Skip to content

Commit 545fe8f

Browse files
committed
Add defaultForCurrency property to BankAccount struct
1 parent 5c579be commit 545fe8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/StripeKit/Payment Methods/Bank Accounts/BankAccount.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public struct BankAccount: Codable {
2020
public var country: String?
2121
/// Three-letter ISO code for the currency paid out to the bank account.
2222
public var currency: Currency?
23+
/// Whether this bank account is the default external account for its currency.
24+
public var defaultForCurrency: Bool?
2325
/// The customer that this bank account belongs to.
2426
@Expandable<Customer> public var customer: String?
2527
/// Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
@@ -49,6 +51,7 @@ public struct BankAccount: Codable {
4951
bankName: String? = nil,
5052
country: String? = nil,
5153
currency: Currency? = nil,
54+
defaultForCurrency: Bool? = nil,
5255
customer: String? = nil,
5356
fingerprint: String? = nil,
5457
last4: String? = nil,
@@ -65,6 +68,7 @@ public struct BankAccount: Codable {
6568
self.bankName = bankName
6669
self.country = country
6770
self.currency = currency
71+
self.defaultForCurrency = defaultForCurrency
6872
self._customer = Expandable(id: customer)
6973
self.fingerprint = fingerprint
7074
self.last4 = last4

0 commit comments

Comments
 (0)