mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
Added missing items
on PurchaseUnit
struct
When you call `GetOrder()` paypal also returns the items for `purchase_unit` ref: https://developer.paypal.com/docs/api/orders/v2/#definition-purchase_unit The `PurchaseUnit` struct was missing this parameter.
This commit is contained in:
parent
06067823c6
commit
e6a47fe5e7
1
types.go
1
types.go
|
@ -591,6 +591,7 @@ type (
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
||||||
Shipping *ShippingDetail `json:"shipping,omitempty"`
|
Shipping *ShippingDetail `json:"shipping,omitempty"`
|
||||||
|
Items []Item `json:"items,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TaxInfo used for orders.
|
// TaxInfo used for orders.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user