Skip to content

Commit 18b86fe

Browse files
authored
Merge pull request #711 from recurly/v3-v2021-02-25-13551033823
Add `funding_source` to `BillingInfo` and `Transaction`
2 parents 49edb2d + 56f5392 commit 18b86fe

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

openapi/api.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18838,7 +18838,7 @@ components:
1883818838
"$ref": "#/components/schemas/PaymentGatewayReferences"
1883918839
properties:
1884018840
token:
18841-
type: strings
18841+
type: string
1884218842
maxLength: 50
1884318843
reference_type:
1884418844
type: string
@@ -25314,7 +25314,8 @@ components:
2531425314
description: Represents the account code for the external account.
2531525315
external_connection_type:
2531625316
type: string
25317-
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
25317+
description: Represents the connection type. One of the connection types
25318+
of your enabled App Connectors
2531825319
created_at:
2531925320
type: string
2532025321
format: date-time
@@ -25864,8 +25865,10 @@ components:
2586425865
cc_bin_country:
2586525866
type: string
2586625867
description: The 2-letter ISO 3166-1 alpha-2 country code associated with
25867-
the credit card BIN, if known by Recurly. Available on the BillingInfo
25868-
object only. Available when the BIN country lookup feature is enabled.
25868+
the card's issuer, if known.
25869+
funding_source:
25870+
"$ref": "#/components/schemas/CardFundingSourceEnum"
25871+
description: The funding source of the card, if known.
2586925872
gateway_code:
2587025873
type: string
2587125874
description: An identifier for a specific payment gateway.
@@ -27018,6 +27021,14 @@ components:
2701827021
- Dankort
2701927022
- MasterCard
2702027023
- Visa
27024+
CardFundingSourceEnum:
27025+
type: string
27026+
enum:
27027+
- credit
27028+
- debit
27029+
- charge
27030+
- prepaid
27031+
- deferred_debit
2702127032
AccountTypeEnum:
2702227033
type: string
2702327034
enum:

recurly/resources.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class ExternalAccount(Resource):
299299
external_account_code : str
300300
Represents the account code for the external account.
301301
external_connection_type : str
302-
Represents the connection type. `AppleAppStore` or `GooglePlayStore`
302+
Represents the connection type. One of the connection types of your enabled App Connectors
303303
id : str
304304
UUID of the external_account .
305305
object : str
@@ -382,13 +382,15 @@ class PaymentMethod(Resource):
382382
card_type : str
383383
Visa, MasterCard, American Express, Discover, JCB, etc.
384384
cc_bin_country : str
385-
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.
385+
The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known.
386386
exp_month : int
387387
Expiration month.
388388
exp_year : int
389389
Expiration year.
390390
first_six : str
391391
Credit card number's first six digits.
392+
funding_source : str
393+
The funding source of the card, if known.
392394
gateway_attributes : GatewayAttributes
393395
Gateway specific attributes associated with this PaymentMethod
394396
gateway_code : str
@@ -419,6 +421,7 @@ class PaymentMethod(Resource):
419421
"exp_month": int,
420422
"exp_year": int,
421423
"first_six": str,
424+
"funding_source": str,
422425
"gateway_attributes": "GatewayAttributes",
423426
"gateway_code": str,
424427
"gateway_token": str,

0 commit comments

Comments
 (0)