forked from go-packages/paypal
use specific payee
This commit is contained in:
parent
973f502217
commit
dd82be9889
8
types.go
8
types.go
|
@ -337,7 +337,7 @@ type (
|
||||||
PurchaseUnitRequest struct {
|
PurchaseUnitRequest struct {
|
||||||
ReferenceID string `json:"reference_id"`
|
ReferenceID string `json:"reference_id"`
|
||||||
Amount *PurchaseUnitAmount `json:"amount"`
|
Amount *PurchaseUnitAmount `json:"amount"`
|
||||||
Payee Payee `json:"payee,omitempty"`
|
Payee PayeeForPurchaseUnitRequest `json:"payee,omitempty"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
CustomID string `json:"custom_id,omitempty"`
|
CustomID string `json:"custom_id,omitempty"`
|
||||||
InvoiceID string `json:"invoice_id,omitempty"`
|
InvoiceID string `json:"invoice_id,omitempty"`
|
||||||
|
@ -569,6 +569,12 @@ type (
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PayeeForPurchaseUnitRequest struct
|
||||||
|
PayeeForPurchaseUnitRequest struct {
|
||||||
|
EmailAddress string `json:"email_address"`
|
||||||
|
MerchantID string `json:"merchant_id"`
|
||||||
|
}
|
||||||
|
|
||||||
// UserInfo struct
|
// UserInfo struct
|
||||||
UserInfo struct {
|
UserInfo struct {
|
||||||
ID string `json:"user_id"`
|
ID string `json:"user_id"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user