Skip to content

Commit 56541d8

Browse files
authored
Merge pull request #921 from recurly/v3-v2021-02-25-13551033823
Add `funding_source` to `BillingInfo` and `Transaction`
2 parents 9f2dfcb + 6dcf081 commit 56541d8

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

lib/recurly/resources/external_account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ExternalAccount < Resource
1515
define_attribute :external_account_code, String
1616

1717
# @!attribute external_connection_type
18-
# @return [String] Represents the connection type. `AppleAppStore` or `GooglePlayStore`
18+
# @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
1919
define_attribute :external_connection_type, String
2020

2121
# @!attribute id

lib/recurly/resources/payment_method.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PaymentMethod < Resource
2323
define_attribute :card_type, String
2424

2525
# @!attribute cc_bin_country
26-
# @return [String] 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.
26+
# @return [String] The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known.
2727
define_attribute :cc_bin_country, String
2828

2929
# @!attribute exp_month
@@ -38,6 +38,10 @@ class PaymentMethod < Resource
3838
# @return [String] Credit card number's first six digits.
3939
define_attribute :first_six, String
4040

41+
# @!attribute funding_source
42+
# @return [String] The funding source of the card, if known.
43+
define_attribute :funding_source, String
44+
4145
# @!attribute gateway_attributes
4246
# @return [GatewayAttributes] Gateway specific attributes associated with this PaymentMethod
4347
define_attribute :gateway_attributes, :GatewayAttributes

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:

0 commit comments

Comments
 (0)