mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
fixes
This commit is contained in:
parent
dd82be9889
commit
f51b1fe7a0
26
types.go
26
types.go
|
@ -335,15 +335,15 @@ type (
|
|||
|
||||
// PurchaseUnitRequest struct
|
||||
PurchaseUnitRequest struct {
|
||||
ReferenceID string `json:"reference_id"`
|
||||
Amount *PurchaseUnitAmount `json:"amount"`
|
||||
Payee PayeeForPurchaseUnitRequest `json:"payee,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
CustomID string `json:"custom_id,omitempty"`
|
||||
InvoiceID string `json:"invoice_id,omitempty"`
|
||||
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
||||
Items []Item `json:"items,omitempty"`
|
||||
Shipping ShippingDetail `json:"shipping,omitempty"`
|
||||
ReferenceID string `json:"reference_id,omitempty"`
|
||||
Amount *PurchaseUnitAmount `json:"amount"`
|
||||
Payee PayeeForOrders `json:"payee,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
CustomID string `json:"custom_id,omitempty"`
|
||||
InvoiceID string `json:"invoice_id,omitempty"`
|
||||
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
||||
Items []Item `json:"items,omitempty"`
|
||||
Shipping ShippingDetail `json:"shipping,omitempty"`
|
||||
}
|
||||
|
||||
// MerchantPreferences struct
|
||||
|
@ -569,10 +569,10 @@ type (
|
|||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
// PayeeForPurchaseUnitRequest struct
|
||||
PayeeForPurchaseUnitRequest struct {
|
||||
EmailAddress string `json:"email_address"`
|
||||
MerchantID string `json:"merchant_id"`
|
||||
// PayeeForOrders struct
|
||||
PayeeForOrders struct {
|
||||
EmailAddress string `json:"email_address,omitempty"`
|
||||
MerchantID string `json:"merchant_id,omitempty"`
|
||||
}
|
||||
|
||||
// UserInfo struct
|
||||
|
|
Loading…
Reference in New Issue
Block a user