From eb10c840937f393c001dd9804d1805941b2f5bf9 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Tue, 19 Mar 2024 17:13:55 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- billing_info_create.go | 3 +++ external_subscription.go | 3 +++ openapi/api.yaml | 24 ++++++++++++++++++++++-- payment_method.go | 3 +++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/billing_info_create.go b/billing_info_create.go index 92a1158..7e64ead 100644 --- a/billing_info_create.go +++ b/billing_info_create.go @@ -110,4 +110,7 @@ type BillingInfoCreate struct { OnlineBankingPaymentType *string `json:"online_banking_payment_type,omitempty"` CardType *string `json:"card_type,omitempty"` + + // Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network. + CardNetworkPreference *string `json:"card_network_preference,omitempty"` } diff --git a/external_subscription.go b/external_subscription.go index 38a9f42..881adc9 100644 --- a/external_subscription.go +++ b/external_subscription.go @@ -61,6 +61,9 @@ type ExternalSubscription struct { // When the external subscription trial period ends in the external platform. TrialEndsAt time.Time `json:"trial_ends_at,omitempty"` + // An indication of whether or not the external subscription was purchased in a sandbox environment. + Test bool `json:"test,omitempty"` + // When the external subscription was created in Recurly. CreatedAt time.Time `json:"created_at,omitempty"` diff --git a/openapi/api.yaml b/openapi/api.yaml index 6e8d8d1..ad7a4e4 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -8617,8 +8617,6 @@ paths: summary: Apply available credit to a pending or past due charge invoice description: Apply credit payment to the outstanding balance on an existing charge invoice from an account’s available balance from existing credit invoices. - Credit that was refunded from the invoice cannot be applied back to the invoice - as payment. parameters: - "$ref": "#/components/parameters/site_id" - "$ref": "#/components/parameters/invoice_id" @@ -18389,6 +18387,10 @@ components: deprecated: true card_type: "$ref": "#/components/schemas/CardTypeEnum" + card_network_preference: + description: Represents the card network preference associated with the + billing info for dual badged cards. Must be a supported card network. + "$ref": "#/components/schemas/CardNetworkEnum" BillingInfoVerify: type: object properties: @@ -24173,6 +24175,12 @@ components: title: Trial ends at description: When the external subscription trial period ends in the external platform. + test: + type: boolean + title: Test + description: An indication of whether or not the external subscription was + purchased in a sandbox environment. + default: false created_at: type: string format: date-time @@ -24427,6 +24435,10 @@ components: Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response. maxLength: 264 + card_network_preference: + description: Represents the card network preference associated with the + billing info for dual badged cards. Must be a supported card network. + "$ref": "#/components/schemas/CardNetworkEnum" billing_agreement_id: type: string description: Billing Agreement identifier. Only present for Amazon or Paypal @@ -25469,6 +25481,14 @@ components: - Unknown - Visa - Tarjeta Naranja + CardNetworkEnum: + type: string + enum: + - Bancontact + - CartesBancaires + - Dankort + - MasterCard + - Visa AccountTypeEnum: type: string enum: diff --git a/payment_method.go b/payment_method.go index 5d4c524..0d77b15 100644 --- a/payment_method.go +++ b/payment_method.go @@ -44,6 +44,9 @@ type PaymentMethod struct { // Gateway specific attributes associated with this PaymentMethod GatewayAttributes GatewayAttributes `json:"gateway_attributes,omitempty"` + // Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network. + CardNetworkPreference string `json:"card_network_preference,omitempty"` + // Billing Agreement identifier. Only present for Amazon or Paypal payment methods. BillingAgreementId string `json:"billing_agreement_id,omitempty"`