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:
Rens Tillmann 2021-09-17 00:56:14 +02:00 committed by GitHub
parent 06067823c6
commit e6a47fe5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,6 +591,7 @@ type (
ID string `json:"id,omitempty"`
SoftDescriptor string `json:"soft_descriptor,omitempty"`
Shipping *ShippingDetail `json:"shipping,omitempty"`
Items []Item `json:"items,omitempty"`
}
// TaxInfo used for orders.