forked from go-packages/paypal
Merge pull request 'staging' (#3) from staging into master
Reviewed-on: #3
This commit is contained in:
commit
283485068c
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
vendor/
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/plutov/paypal/v4
|
module euphoria-laxis.fr/go-packages/paypale/v4
|
||||||
|
|
||||||
go 1.23
|
go 1.23
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/plutov/paypal/v4"
|
"euphoria-laxis.fr/go-packages/paypale/v4"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
20
types.go
20
types.go
|
@ -1057,14 +1057,14 @@ type (
|
||||||
|
|
||||||
// PaymentSourceCard structure
|
// PaymentSourceCard structure
|
||||||
PaymentSourceCard struct {
|
PaymentSourceCard struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name,omitempty"`
|
||||||
Number string `json:"number"`
|
Number string `json:"number,omitempty"`
|
||||||
Expiry string `json:"expiry"`
|
Expiry string `json:"expiry,omitempty"`
|
||||||
SecurityCode string `json:"security_code"`
|
SecurityCode string `json:"security_code,omitempty"`
|
||||||
LastDigits string `json:"last_digits"`
|
LastDigits string `json:"last_digits,omitempty"`
|
||||||
CardType string `json:"card_type"`
|
CardType string `json:"card_type,omitempty"`
|
||||||
BillingAddress *CardBillingAddress `json:"billing_address"`
|
BillingAddress *CardBillingAddress `json:"billing_address,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PaymentSourcePaypal structure
|
// PaymentSourcePaypal structure
|
||||||
|
@ -1086,8 +1086,8 @@ type (
|
||||||
// CardBillingAddress structure
|
// CardBillingAddress structure
|
||||||
CardBillingAddress struct {
|
CardBillingAddress struct {
|
||||||
AddressLine1 string `json:"address_line_1"`
|
AddressLine1 string `json:"address_line_1"`
|
||||||
AddressLine2 string `json:"address_line_2"`
|
AddressLine2 string `json:"address_line_2,omitempty"`
|
||||||
AdminArea2 string `json:"admin_area_2"`
|
AdminArea2 string `json:"admin_area_2,omitempty"`
|
||||||
AdminArea1 string `json:"admin_area_1"`
|
AdminArea1 string `json:"admin_area_1"`
|
||||||
PostalCode string `json:"postal_code"`
|
PostalCode string `json:"postal_code"`
|
||||||
CountryCode string `json:"country_code"`
|
CountryCode string `json:"country_code"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user