Skip to content

Commit

Permalink
Merge pull request #342 from recurly/v3-v2021-02-25-13551033823
Browse files Browse the repository at this point in the history
Add `funding_source` to `BillingInfo` and `Transaction`
  • Loading branch information
cbarton authored Feb 26, 2025
2 parents ad73196 + e482258 commit 866b21b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
8 changes: 6 additions & 2 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/ExternalAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/recurly/resources/PaymentMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -42,6 +43,7 @@ class PaymentMethod extends Resource {
expMonth: Number,
expYear: Number,
firstSix: String,
fundingSource: String,
gatewayAttributes: 'GatewayAttributes',
gatewayCode: String,
gatewayToken: String,
Expand Down
19 changes: 15 additions & 4 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18838,7 +18838,7 @@ components:
"$ref": "#/components/schemas/PaymentGatewayReferences"
properties:
token:
type: strings
type: string
maxLength: 50
reference_type:
type: string
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -27018,6 +27021,14 @@ components:
- Dankort
- MasterCard
- Visa
CardFundingSourceEnum:
type: string
enum:
- credit
- debit
- charge
- prepaid
- deferred_debit
AccountTypeEnum:
type: string
enum:
Expand Down

0 comments on commit 866b21b

Please sign in to comment.