Skip to content

Commit cd07692

Browse files
authored
Merge pull request #834 from recurly/v3-v2021-02-25-13551033823
Add `funding_source` to `BillingInfo` and `Transaction`
2 parents 8c8970f + a387b68 commit cd07692

File tree

3 files changed

+41
-6
lines changed

3 files changed

+41
-6
lines changed

lib/recurly/resources/external_account.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function setExternalAccountCode(string $external_account_code): void
7171

7272
/**
7373
* Getter method for the external_connection_type attribute.
74-
* Represents the connection type. `AppleAppStore` or `GooglePlayStore`
74+
* Represents the connection type. One of the connection types of your enabled App Connectors
7575
*
7676
* @return ?string
7777
*/

lib/recurly/resources/payment_method.php

+25-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class PaymentMethod extends RecurlyResource
2020
private $_exp_month;
2121
private $_exp_year;
2222
private $_first_six;
23+
private $_funding_source;
2324
private $_gateway_attributes;
2425
private $_gateway_code;
2526
private $_gateway_token;
@@ -129,7 +130,7 @@ public function setCardType(string $card_type): void
129130

130131
/**
131132
* Getter method for the cc_bin_country attribute.
132-
* 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.
133+
* The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known.
133134
*
134135
* @return ?string
135136
*/
@@ -219,6 +220,29 @@ public function setFirstSix(string $first_six): void
219220
$this->_first_six = $first_six;
220221
}
221222

223+
/**
224+
* Getter method for the funding_source attribute.
225+
* The funding source of the card, if known.
226+
*
227+
* @return ?string
228+
*/
229+
public function getFundingSource(): ?string
230+
{
231+
return $this->_funding_source;
232+
}
233+
234+
/**
235+
* Setter method for the funding_source attribute.
236+
*
237+
* @param string $funding_source
238+
*
239+
* @return void
240+
*/
241+
public function setFundingSource(string $funding_source): void
242+
{
243+
$this->_funding_source = $funding_source;
244+
}
245+
222246
/**
223247
* Getter method for the gateway_attributes attribute.
224248
* Gateway specific attributes associated with this PaymentMethod

openapi/api.yaml

+15-4
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)