From 7f2eec9b56900a241daebd1f273a577031b54c0d Mon Sep 17 00:00:00 2001 From: Gerasimovich Igor Date: Wed, 14 Jul 2021 10:08:11 +0300 Subject: [PATCH] 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 --- types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types.go b/types.go index e963983b..af04c152 100644 --- a/types.go +++ b/types.go @@ -1150,6 +1150,7 @@ type ( PartnerClientID string `json:"partner_client_id,omitempty"` MerchantID string `json:"merchant_id,omitempty"` Intent string `json:"intent,omitempty"` + BillingAgreementID *string `json:"billing_agreement_id,omitempty"` PurchaseUnits []*PurchaseUnitRequest `json:"purchase_units,omitempty"` Payer *PayerWithNameAndPhone `json:"payer,omitempty"` Links []Link `json:"links,omitempty"`