diff --git a/types.go b/types.go index 30f694f..42ed11c 100644 --- a/types.go +++ b/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"`