add payer_id field to Subscriber struct (#239)

This commit is contained in:
Konnor Klashinsky 2022-06-18 20:04:38 +00:00 committed by GitHub
parent 7dc1f997d6
commit 48f8ee15ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ type (
Locale string `json:"locale,omitempty"` Locale string `json:"locale,omitempty"`
ShippingPreference ShippingPreference `json:"shipping_preference,omitempty"` ShippingPreference ShippingPreference `json:"shipping_preference,omitempty"`
UserAction UserAction `json:"user_action,omitempty"` UserAction UserAction `json:"user_action,omitempty"`
PaymentMethod PaymentMethod `json:"payment_method,omitempty"` PaymentMethod PaymentMethod `json:"payment_method,omitempty"`
//LandingPage string `json:"landing_page,omitempty"` // not found in documentation //LandingPage string `json:"landing_page,omitempty"` // not found in documentation
ReturnURL string `json:"return_url,omitempty"` ReturnURL string `json:"return_url,omitempty"`
CancelURL string `json:"cancel_url,omitempty"` CancelURL string `json:"cancel_url,omitempty"`
@ -206,8 +206,8 @@ type (
// Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method
PaymentMethod struct { PaymentMethod struct {
PayeePreferred PayeePreferred `json:"payee_preferred,omitempty"` PayeePreferred PayeePreferred `json:"payee_preferred,omitempty"`
StandardEntryClassCode StandardEntryClassCode `json:"standard_entry_class_code,omitempty"` StandardEntryClassCode StandardEntryClassCode `json:"standard_entry_class_code,omitempty"`
} }
// Authorization struct // Authorization struct
@ -990,6 +990,7 @@ type (
// Subscriber struct // Subscriber struct
Subscriber struct { Subscriber struct {
PayerID string `json:"payer_id"`
ShippingAddress ShippingDetail `json:"shipping_address,omitempty"` ShippingAddress ShippingDetail `json:"shipping_address,omitempty"`
Name CreateOrderPayerName `json:"name,omitempty"` Name CreateOrderPayerName `json:"name,omitempty"`
EmailAddress string `json:"email_address,omitempty"` EmailAddress string `json:"email_address,omitempty"`