Skip to content

Rename linkedAccount on STPPaymentMethodUSBankAccount #4624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG_v25_draft.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
### Financial Connections
* [Added] Added an async versions of `present(from:)` and `presentForToken(from:)`.
* [Added] Added an async versions of `present(from:)` and `presentForToken(from:)`.
### Payments
* [Changed] `linkedAccount` on `STPPaymentMethodUSBankAccount` has been renamed to `financialConnectionsAccount`.
2 changes: 2 additions & 0 deletions MIGRATING_v25_draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Payments
* [Changed] `linkedAccount` on `STPPaymentMethodUSBankAccount` has been renamed to `financialConnectionsAccount`.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class STPPaymentMethodUSBankAccount: NSObject {
/// Last four digits of the bank account number
@objc public let last4: String

/// The token of the Linked Account used to create the payment method
@objc public let linkedAccount: String?
/// The ID of the Financial Connections Account used to create the payment method
@objc public let financialConnectionsAccount: String?

/// Contains information about US bank account networks that can be used
@objc public let networks: STPPaymentMethodUSBankAccountNetworks?
Expand All @@ -46,7 +46,7 @@ public class STPPaymentMethodUSBankAccount: NSObject {
bankName: String,
fingerprint: String,
last4: String,
linkedAccount: String?,
financialConnectionsAccount: String?,
networks: STPPaymentMethodUSBankAccountNetworks?,
routingNumber: String,
allResponseFields: [AnyHashable: Any]
Expand All @@ -56,7 +56,7 @@ public class STPPaymentMethodUSBankAccount: NSObject {
self.bankName = bankName
self.fingerprint = fingerprint
self.last4 = last4
self.linkedAccount = linkedAccount
self.financialConnectionsAccount = financialConnectionsAccount
self.networks = networks
self.routingNumber = routingNumber
self.allResponseFields = allResponseFields
Expand Down Expand Up @@ -97,7 +97,7 @@ extension STPPaymentMethodUSBankAccount: STPAPIResponseDecodable {
bankName: bankName,
fingerprint: fingerprint,
last4: last4,
linkedAccount: response["financial_connections_account"] as? String,
financialConnectionsAccount: response["financial_connections_account"] as? String,
networks: networks,
routingNumber: routingNumber,
allResponseFields: response
Expand Down
Loading