From 13112c66e5b82e72faeac29aa468054c01c0284b Mon Sep 17 00:00:00 2001 From: Jason Hord <51338560+pravus@users.noreply.github.com> Date: Tue, 17 Nov 2020 02:59:19 -0700 Subject: [PATCH] Adds SellerReceivableBreakdown and CustomID fields to the Resource type (#180) * Adds SellerReceivableBreakdown and CustomID fields to the Resource type * Adds EventCheckoutOrderApproved constant and Intent, PurchaseUnits, Payer fields to Resource type --- types.go | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/types.go b/types.go index 852f5d0..bebd42f 100644 --- a/types.go +++ b/types.go @@ -1049,17 +1049,19 @@ type ( Resource struct { // Payment Resource type - ID string `json:"id,omitempty"` - Status string `json:"status,omitempty"` - StatusDetails *CaptureStatusDetails `json:"status_details,omitempty"` - Amount *PurchaseUnitAmount `json:"amount,omitempty"` - UpdateTime string `json:"update_time,omitempty"` - CreateTime string `json:"create_time,omitempty"` - ExpirationTime string `json:"expiration_time,omitempty"` - SellerProtection *SellerProtection `json:"seller_protection,omitempty"` - FinalCapture bool `json:"final_capture,omitempty"` - SellerPayableBreakdown *CaptureSellerBreakdown `json:"seller_payable_breakdown,omitempty"` - NoteToPayer string `json:"note_to_payer,omitempty"` + ID string `json:"id,omitempty"` + Status string `json:"status,omitempty"` + StatusDetails *CaptureStatusDetails `json:"status_details,omitempty"` + Amount *PurchaseUnitAmount `json:"amount,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + CreateTime string `json:"create_time,omitempty"` + ExpirationTime string `json:"expiration_time,omitempty"` + SellerProtection *SellerProtection `json:"seller_protection,omitempty"` + FinalCapture bool `json:"final_capture,omitempty"` + SellerPayableBreakdown *CaptureSellerBreakdown `json:"seller_payable_breakdown,omitempty"` + SellerReceivableBreakdown *SellerReceivableBreakdown `json:"seller_receivable_breakdown,omitempty"` + NoteToPayer string `json:"note_to_payer,omitempty"` + CustomID string `json:"custom_id,omitempty"` // merchant-onboarding Resource type PartnerClientID string `json:"partner_client_id,omitempty"` MerchantID string `json:"merchant_id,omitempty"`