From 954c3cc071618d75d25d82fafbf7770f0dfe09cc Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Wed, 9 Aug 2023 19:16:57 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- gateway_attributes.go | 2 +- gateway_attributes_create.go | 2 +- openapi/api.yaml | 24 +++++++++++++++++++----- subscription.go | 3 +++ transaction.go | 3 +++ 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/gateway_attributes.go b/gateway_attributes.go index 99b063c..d1cde8c 100644 --- a/gateway_attributes.go +++ b/gateway_attributes.go @@ -12,7 +12,7 @@ import ( type GatewayAttributes struct { recurlyResponse *ResponseMetadata - // Used by Adyen gateways. The Shopper Reference value used when the external token was created. + // Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response. AccountReference string `json:"account_reference,omitempty"` } diff --git a/gateway_attributes_create.go b/gateway_attributes_create.go index 2e5faf7..68fedc0 100644 --- a/gateway_attributes_create.go +++ b/gateway_attributes_create.go @@ -8,6 +8,6 @@ import () type GatewayAttributesCreate struct { - // Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code. + // Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code. For Braintree the PayPal PayerID is populated in the response. AccountReference *string `json:"account_reference,omitempty"` } diff --git a/openapi/api.yaml b/openapi/api.yaml index 4c7ca56..f649648 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -18204,9 +18204,10 @@ components: properties: account_reference: type: string - description: Used by Adyen gateways. The Shopper Reference value used - when the external token was created. Must be used in conjunction with - gateway_token and gateway_code. + description: Used by Adyen and Braintree gateways. For Adyen the Shopper + Reference value used when the external token was created. Must be + used in conjunction with gateway_token and gateway_code. For Braintree + the PayPal PayerID is populated in the response. maxLength: 264 amazon_billing_agreement_id: type: string @@ -21712,6 +21713,12 @@ components: format: date-time description: When the subscription was converted from a gift card. title: Converted at + action_result: + type: object + description: Action result params to be used in Recurly-JS to complete a + payment when using asynchronous payment methods, e.g., Boleto, iDEAL and + Sofort. + title: Action result SubscriptionAddOn: type: object title: Subscription Add-on @@ -23027,6 +23034,12 @@ components: format: date-time title: Collected at, or if not collected yet, the time the transaction was created. + action_result: + type: object + description: Action result params to be used in Recurly-JS to complete a + payment when using asynchronous payment methods, e.g., Boleto, iDEAL and + Sofort. + title: Action result ExternalTransaction: type: object properties: @@ -24149,8 +24162,9 @@ components: properties: account_reference: type: string - description: Used by Adyen gateways. The Shopper Reference value used - when the external token was created. + description: Used by Adyen and Braintree gateways. For Adyen the Shopper + Reference value used when the external token was created. For Braintree + the PayPal PayerID is populated in the response. maxLength: 264 billing_agreement_id: type: string diff --git a/subscription.go b/subscription.go index 7cf1d44..72d8bcf 100644 --- a/subscription.go +++ b/subscription.go @@ -181,6 +181,9 @@ type Subscription struct { // When the subscription was converted from a gift card. ConvertedAt time.Time `json:"converted_at,omitempty"` + + // Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort. + ActionResult map[string]interface{} `json:"action_result,omitempty"` } // GetResponse returns the ResponseMetadata that generated this resource diff --git a/transaction.go b/transaction.go index 55f0734..18dc7da 100644 --- a/transaction.go +++ b/transaction.go @@ -130,6 +130,9 @@ type Transaction struct { // Collected at, or if not collected yet, the time the transaction was created. CollectedAt time.Time `json:"collected_at,omitempty"` + + // Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort. + ActionResult map[string]interface{} `json:"action_result,omitempty"` } // GetResponse returns the ResponseMetadata that generated this resource