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
This commit is contained in:
Jason Hord 2020-11-17 02:59:19 -07:00 committed by GitHub
parent 5508bfebaf
commit 13112c66e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"`