Update shipping address to reflect paypal API

This commit is contained in:
Roopak Venkatakrishnan 2019-07-21 12:46:13 -07:00
parent 888360be1f
commit 80ccf89d37
No known key found for this signature in database
GPG Key ID: 01FD0BAB58C09E04

View File

@ -528,6 +528,16 @@ type (
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 {
FullName string `json:"full_name,omitempty"`
@ -535,8 +545,8 @@ type (
// ShippingDetail struct
ShippingDetail struct {
Name Name `json:"name,omitempty"`
Address Address `json:"address,omitempty"`
Name *Name `json:"name,omitempty"`
Address *ShippingDetailAddressPortable `json:"address,omitempty"`
}
expirationTime int64