mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Adds EventCheckoutOrderApproved constant and Intent, PurchaseUnits, Payer fields to Resource type (#181)
This commit is contained in:
parent
ced90e676f
commit
5508bfebaf
5
types.go
5
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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user