From afcca29314e6c39aaa03fd020418fefcd96e6f15 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Tue, 19 Mar 2024 17:14:31 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- lib/recurly/requests/billing_info_create.rb | 4 ++++ .../resources/external_subscription.rb | 4 ++++ lib/recurly/resources/payment_method.rb | 4 ++++ openapi/api.yaml | 24 +++++++++++++++++-- 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/lib/recurly/requests/billing_info_create.rb b/lib/recurly/requests/billing_info_create.rb index 1290c42f9..d1e27d8e2 100644 --- a/lib/recurly/requests/billing_info_create.rb +++ b/lib/recurly/requests/billing_info_create.rb @@ -26,6 +26,10 @@ class BillingInfoCreate < Request # @return [Boolean] The `backup_payment_method` field is used to designate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined. All payment methods, including the billing info marked `primary_payment_method` can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such. define_attribute :backup_payment_method, :Boolean + # @!attribute card_network_preference + # @return [String] Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network. + define_attribute :card_network_preference, String + # @!attribute card_type # @return [String] define_attribute :card_type, String diff --git a/lib/recurly/resources/external_subscription.rb b/lib/recurly/resources/external_subscription.rb index c60a439ac..9361bf5ae 100644 --- a/lib/recurly/resources/external_subscription.rb +++ b/lib/recurly/resources/external_subscription.rb @@ -66,6 +66,10 @@ class ExternalSubscription < Resource # @return [String] External subscriptions can be active, canceled, expired, or past_due. define_attribute :state, String + # @!attribute test + # @return [Boolean] An indication of whether or not the external subscription was purchased in a sandbox environment. + define_attribute :test, :Boolean + # @!attribute trial_ends_at # @return [DateTime] When the external subscription trial period ends in the external platform. define_attribute :trial_ends_at, DateTime diff --git a/lib/recurly/resources/payment_method.rb b/lib/recurly/resources/payment_method.rb index 2e36c3a55..00a4b69bc 100644 --- a/lib/recurly/resources/payment_method.rb +++ b/lib/recurly/resources/payment_method.rb @@ -14,6 +14,10 @@ class PaymentMethod < Resource # @return [String] Billing Agreement identifier. Only present for Amazon or Paypal payment methods. define_attribute :billing_agreement_id, String + # @!attribute card_network_preference + # @return [String] Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network. + define_attribute :card_network_preference, String + # @!attribute card_type # @return [String] Visa, MasterCard, American Express, Discover, JCB, etc. define_attribute :card_type, String diff --git a/openapi/api.yaml b/openapi/api.yaml index 6e8d8d128..ad7a4e4d7 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: