diff --git a/types.go b/types.go index ef46201..852f5d0 100644 --- a/types.go +++ b/types.go @@ -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"` }