Added missing BillingAgreementId key in webhook (#205)

* Added missing BillingAgreementId key in webhook

Webhook resource contains `billing_agreement_id`. Exists in type: `PAYMENT.SALE.COMPLETED` when a subscription is paid.

* review fix
This commit is contained in:
Gerasimovich Igor 2021-07-14 10:08:11 +03:00 committed by GitHub
parent 392c0e9d69
commit 7f2eec9b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1150,6 +1150,7 @@ 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"`
Intent string `json:"intent,omitempty"` Intent string `json:"intent,omitempty"`
BillingAgreementID *string `json:"billing_agreement_id,omitempty"`
PurchaseUnits []*PurchaseUnitRequest `json:"purchase_units,omitempty"` PurchaseUnits []*PurchaseUnitRequest `json:"purchase_units,omitempty"`
Payer *PayerWithNameAndPhone `json:"payer,omitempty"` Payer *PayerWithNameAndPhone `json:"payer,omitempty"`
Links []Link `json:"links,omitempty"` Links []Link `json:"links,omitempty"`