mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Merge pull request #92 from roopakv/roopakv/use_correct_payee
Use correct payee for PurchaseUnitRequest
This commit is contained in:
commit
42de9cae2e
10
types.go
10
types.go
|
@ -335,9 +335,9 @@ type (
|
|||
|
||||
// PurchaseUnitRequest struct
|
||||
PurchaseUnitRequest struct {
|
||||
ReferenceID string `json:"reference_id"`
|
||||
ReferenceID string `json:"reference_id,omitempty"`
|
||||
Amount *PurchaseUnitAmount `json:"amount"`
|
||||
Payee Payee `json:"payee,omitempty"`
|
||||
Payee PayeeForOrders `json:"payee,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
CustomID string `json:"custom_id,omitempty"`
|
||||
InvoiceID string `json:"invoice_id,omitempty"`
|
||||
|
@ -569,6 +569,12 @@ type (
|
|||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
// PayeeForOrders struct
|
||||
PayeeForOrders struct {
|
||||
EmailAddress string `json:"email_address,omitempty"`
|
||||
MerchantID string `json:"merchant_id,omitempty"`
|
||||
}
|
||||
|
||||
// UserInfo struct
|
||||
UserInfo struct {
|
||||
ID string `json:"user_id"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user