enhance/actions/lint-test #4

Merged
euphoria-laxis merged 3 commits from enhance/actions/lint-test into staging 2024-10-22 17:53:39 +02:00
4 changed files with 14 additions and 13 deletions
Showing only changes of commit 283485068c - Show all commits

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.idea
.vscode
vendor/

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/plutov/paypal/v4
module euphoria-laxis.fr/go-packages/paypale/v4
go 1.23

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"testing"
"github.com/plutov/paypal/v4"
"euphoria-laxis.fr/go-packages/paypale/v4"
"github.com/stretchr/testify/assert"
)

View File

@ -1057,14 +1057,14 @@ type (
// PaymentSourceCard structure
PaymentSourceCard struct {
ID string `json:"id"`
Name string `json:"name"`
Number string `json:"number"`
Expiry string `json:"expiry"`
SecurityCode string `json:"security_code"`
LastDigits string `json:"last_digits"`
CardType string `json:"card_type"`
BillingAddress *CardBillingAddress `json:"billing_address"`
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Number string `json:"number,omitempty"`
Expiry string `json:"expiry,omitempty"`
SecurityCode string `json:"security_code,omitempty"`
LastDigits string `json:"last_digits,omitempty"`
CardType string `json:"card_type,omitempty"`
BillingAddress *CardBillingAddress `json:"billing_address,omitempty"`
}
// PaymentSourcePaypal structure
@ -1086,8 +1086,8 @@ type (
// CardBillingAddress structure
CardBillingAddress struct {
AddressLine1 string `json:"address_line_1"`
AddressLine2 string `json:"address_line_2"`
AdminArea2 string `json:"admin_area_2"`
AddressLine2 string `json:"address_line_2,omitempty"`
AdminArea2 string `json:"admin_area_2,omitempty"`
AdminArea1 string `json:"admin_area_1"`
PostalCode string `json:"postal_code"`
CountryCode string `json:"country_code"`