mirror of
https://github.com/plutov/paypal.git
synced 2025-02-02 15:10:36 +01:00
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:
parent
5508bfebaf
commit
13112c66e5
24
types.go
24
types.go
|
@ -1049,17 +1049,19 @@ type (
|
||||||
|
|
||||||
Resource struct {
|
Resource struct {
|
||||||
// Payment Resource type
|
// Payment Resource type
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Status string `json:"status,omitempty"`
|
Status string `json:"status,omitempty"`
|
||||||
StatusDetails *CaptureStatusDetails `json:"status_details,omitempty"`
|
StatusDetails *CaptureStatusDetails `json:"status_details,omitempty"`
|
||||||
Amount *PurchaseUnitAmount `json:"amount,omitempty"`
|
Amount *PurchaseUnitAmount `json:"amount,omitempty"`
|
||||||
UpdateTime string `json:"update_time,omitempty"`
|
UpdateTime string `json:"update_time,omitempty"`
|
||||||
CreateTime string `json:"create_time,omitempty"`
|
CreateTime string `json:"create_time,omitempty"`
|
||||||
ExpirationTime string `json:"expiration_time,omitempty"`
|
ExpirationTime string `json:"expiration_time,omitempty"`
|
||||||
SellerProtection *SellerProtection `json:"seller_protection,omitempty"`
|
SellerProtection *SellerProtection `json:"seller_protection,omitempty"`
|
||||||
FinalCapture bool `json:"final_capture,omitempty"`
|
FinalCapture bool `json:"final_capture,omitempty"`
|
||||||
SellerPayableBreakdown *CaptureSellerBreakdown `json:"seller_payable_breakdown,omitempty"`
|
SellerPayableBreakdown *CaptureSellerBreakdown `json:"seller_payable_breakdown,omitempty"`
|
||||||
NoteToPayer string `json:"note_to_payer,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
|
// merchant-onboarding Resource type
|
||||||
PartnerClientID string `json:"partner_client_id,omitempty"`
|
PartnerClientID string `json:"partner_client_id,omitempty"`
|
||||||
MerchantID string `json:"merchant_id,omitempty"`
|
MerchantID string `json:"merchant_id,omitempty"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user