From e482258bb76e6e18c66795cedd333219f7e1b899 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Wed, 26 Feb 2025 18:41:54 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- lib/recurly.d.ts | 8 ++++++-- lib/recurly/resources/ExternalAccount.js | 2 +- lib/recurly/resources/PaymentMethod.js | 4 +++- openapi/api.yaml | 19 +++++++++++++++---- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/lib/recurly.d.ts b/lib/recurly.d.ts index 7afad55b..db87d328 100644 --- a/lib/recurly.d.ts +++ b/lib/recurly.d.ts @@ -299,7 +299,7 @@ export declare class ExternalAccount { */ externalAccountCode?: string | null; /** - * Represents the connection type. `AppleAppStore` or `GooglePlayStore` + * Represents the connection type. One of the connection types of your enabled App Connectors */ externalConnectionType?: string | null; /** @@ -389,9 +389,13 @@ export declare class PaymentMethod { */ gatewayToken?: string | null; /** - * The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled. + * The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known. */ ccBinCountry?: string | null; + /** + * The funding source of the card, if known. + */ + fundingSource?: string | null; /** * An identifier for a specific payment gateway. */ diff --git a/lib/recurly/resources/ExternalAccount.js b/lib/recurly/resources/ExternalAccount.js index 78d4b511..9318f154 100644 --- a/lib/recurly/resources/ExternalAccount.js +++ b/lib/recurly/resources/ExternalAccount.js @@ -14,7 +14,7 @@ const Resource = require('../Resource') * @typedef {Object} ExternalAccount * @prop {Date} createdAt - Created at * @prop {string} externalAccountCode - Represents the account code for the external account. - * @prop {string} externalConnectionType - Represents the connection type. `AppleAppStore` or `GooglePlayStore` + * @prop {string} externalConnectionType - Represents the connection type. One of the connection types of your enabled App Connectors * @prop {string} id - UUID of the external_account . * @prop {string} object * @prop {Date} updatedAt - Last updated at diff --git a/lib/recurly/resources/PaymentMethod.js b/lib/recurly/resources/PaymentMethod.js index eaf064f4..96979931 100644 --- a/lib/recurly/resources/PaymentMethod.js +++ b/lib/recurly/resources/PaymentMethod.js @@ -16,10 +16,11 @@ const Resource = require('../Resource') * @prop {string} billingAgreementId - Billing Agreement identifier. Only present for Amazon or Paypal payment methods. * @prop {string} cardNetworkPreference - Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network. * @prop {string} cardType - Visa, MasterCard, American Express, Discover, JCB, etc. - * @prop {string} ccBinCountry - The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled. + * @prop {string} ccBinCountry - The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known. * @prop {number} expMonth - Expiration month. * @prop {number} expYear - Expiration year. * @prop {string} firstSix - Credit card number's first six digits. + * @prop {string} fundingSource - The funding source of the card, if known. * @prop {GatewayAttributes} gatewayAttributes - Gateway specific attributes associated with this PaymentMethod * @prop {string} gatewayCode - An identifier for a specific payment gateway. * @prop {string} gatewayToken - A token used in place of a credit card in order to perform transactions. @@ -42,6 +43,7 @@ class PaymentMethod extends Resource { expMonth: Number, expYear: Number, firstSix: String, + fundingSource: String, gatewayAttributes: 'GatewayAttributes', gatewayCode: String, gatewayToken: String, diff --git a/openapi/api.yaml b/openapi/api.yaml index ea3982f5..f9c6768e 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -18838,7 +18838,7 @@ components: "$ref": "#/components/schemas/PaymentGatewayReferences" properties: token: - type: strings + type: string maxLength: 50 reference_type: type: string @@ -25314,7 +25314,8 @@ components: description: Represents the account code for the external account. external_connection_type: type: string - description: Represents the connection type. `AppleAppStore` or `GooglePlayStore` + description: Represents the connection type. One of the connection types + of your enabled App Connectors created_at: type: string format: date-time @@ -25864,8 +25865,10 @@ components: cc_bin_country: type: string description: The 2-letter ISO 3166-1 alpha-2 country code associated with - the credit card BIN, if known by Recurly. Available on the BillingInfo - object only. Available when the BIN country lookup feature is enabled. + the card's issuer, if known. + funding_source: + "$ref": "#/components/schemas/CardFundingSourceEnum" + description: The funding source of the card, if known. gateway_code: type: string description: An identifier for a specific payment gateway. @@ -27018,6 +27021,14 @@ components: - Dankort - MasterCard - Visa + CardFundingSourceEnum: + type: string + enum: + - credit + - debit + - charge + - prepaid + - deferred_debit AccountTypeEnum: type: string enum: