From e6a47fe5e7602917d5894caffc8ea902c10f4c2f Mon Sep 17 00:00:00 2001 From: Rens Tillmann Date: Fri, 17 Sep 2021 00:56:14 +0200 Subject: [PATCH] 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. --- types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types.go b/types.go index 2e4515a..1cae1e5 100644 --- a/types.go +++ b/types.go @@ -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.