Adds EventCheckoutOrderApproved constant and Intent, PurchaseUnits, Payer fields to Resource type (#181)

This commit is contained in:
Jason Hord 2020-11-17 02:59:02 -07:00 committed by GitHub
parent ced90e676f
commit 5508bfebaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,7 @@ const (
// https://developer.paypal.com/docs/api/orders/v2/#definition-application_context
const (
EventCheckoutOrderApproved string = "CHECKOUT.ORDER.APPROVED"
EventPaymentCaptureCompleted string = "PAYMENT.CAPTURE.COMPLETED"
EventPaymentCaptureDenied string = "PAYMENT.CAPTURE.DENIED"
EventPaymentCaptureRefunded string = "PAYMENT.CAPTURE.REFUNDED"
@ -1062,6 +1063,10 @@ type (
// merchant-onboarding Resource type
PartnerClientID string `json:"partner_client_id,omitempty"`
MerchantID string `json:"merchant_id,omitempty"`
// Checkout Resource type
Intent string `json:"intent,omitempty"`
PurchaseUnits []*PurchaseUnitRequest `json:"purchase_units,omitempty"`
Payer *PayerWithNameAndPhone `json:"payer,omitempty"`
// Common
Links []Link `json:"links,omitempty"`
}