forked from go-packages/paypal
Add omitempty to JSON tags to CardBillingAddress AddressLine2 and AdminArea2
This commit is contained in:
parent
6217511bbd
commit
f840b7aac7
4
types.go
4
types.go
|
@ -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