mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Update shipping address to reflect paypal API
This commit is contained in:
parent
888360be1f
commit
80ccf89d37
14
types.go
14
types.go
|
@ -528,6 +528,16 @@ type (
|
||||||
Phone string `json:"phone,omitempty"`
|
Phone string `json:"phone,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ShippingDetailAddressPortable used with create orders
|
||||||
|
ShippingDetailAddressPortable struct {
|
||||||
|
AddressLine1 string `json:"address_line_1,omitempty"`
|
||||||
|
AddressLine2 string `json:"address_line_2,omitempty"`
|
||||||
|
AdminArea1 string `json:"admin_area_1,omitempty"`
|
||||||
|
AdminArea2 string `json:"admin_area_2,omitempty"`
|
||||||
|
PostalCode string `json:"postal_code,omitempty"`
|
||||||
|
CountryCode string `json:"country_code,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// Name struct
|
// Name struct
|
||||||
Name struct {
|
Name struct {
|
||||||
FullName string `json:"full_name,omitempty"`
|
FullName string `json:"full_name,omitempty"`
|
||||||
|
@ -535,8 +545,8 @@ type (
|
||||||
|
|
||||||
// ShippingDetail struct
|
// ShippingDetail struct
|
||||||
ShippingDetail struct {
|
ShippingDetail struct {
|
||||||
Name Name `json:"name,omitempty"`
|
Name *Name `json:"name,omitempty"`
|
||||||
Address Address `json:"address,omitempty"`
|
Address *ShippingDetailAddressPortable `json:"address,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
expirationTime int64
|
expirationTime int64
|
||||||
|
|
Loading…
Reference in New Issue
Block a user