BankAccountFundingSource
public struct BankAccountFundingSource : BaseFundingSource, Hashable
Representation of a Bank Account Funding Source
-
Declaration
Swift
public struct InstitutionLogo : Decodable, Hashable
-
Identifier generated by the Virtual Cards Service.
Declaration
Swift
public let id: String
-
Owner identifier of the funding source. Typically the user sub.
Declaration
Swift
public let owner: String
-
Version assigned by the service.
Declaration
Swift
public let version: Int
-
Virtual Cards service timestamp to when the funding source record was created.
Declaration
Swift
public let createdAt: Date
-
Virtual Cards service timestamp to when the funding source record was last updated.
Declaration
Swift
public let updatedAt: Date
-
Type of this funding source - always
BANK_ACCOUNT
Declaration
Swift
public let type: FundingSourceType
-
Current state of the funding source.
Declaration
Swift
public let state: FundingSourceState
-
Set of flags associated with the funding source
Declaration
Swift
public let flags: [FundingSourceFlags]
-
Currency of the funding source.
Declaration
Swift
public let currency: String
-
Effective transaction velocity, if any, applied to virtual card transactions funded by this funding source. This is the combined result of all velocity policies (global and funding source specific) as at the time this funding source was retrieved.
Declaration
Swift
public let transactionVelocity: TransactionVelocity?
-
Last 4 digits of the bank account of the funding source.
Declaration
Swift
public let last4: String
-
Type of bank account represented by this funding source.
Declaration
Swift
public let bankAccountType: BankAccountType
-
Name of the financial institution with which this funding source is associated.
Declaration
Swift
public let institutionName: String
-
Logo of the financial institution with which this funding source is associated, if any.
Declaration
Swift
public let institutionLogo: InstitutionLogo?
-
The amount by which this funding source is unfunded, if at all, in the currency of the funding source
Declaration
Swift
public let unfundedAmount: CurrencyAmount?
-
init(id:
owner: version: createdAt: updatedAt: state: flags: currency: transactionVelocity: last4: bankAccountType: institutionName: institutionLogo: unfundedAmount: ) Construct a bank account funding source
Declaration
Swift
public init( id: String, owner: String, version: Int, createdAt: Date, updatedAt: Date, state: FundingSourceState, flags: [FundingSourceFlags], currency: String, transactionVelocity: TransactionVelocity? = nil, last4: String, bankAccountType: BankAccountType, institutionName: String, institutionLogo: InstitutionLogo? = nil, unfundedAmount: CurrencyAmount? = nil )
Parameters
id
Identifier generated by the Virtual Cards Service.
owner
Owner identifier of the funding source. Typically the user sub.
version
Version assigned by the service.
createdAt
Virtual Cards service timestamp to when the funding source record was created.
updatedAt
Virtual Cards service timestamp to when the funding source record was last updated.
state
Current state of the funding source.
flags
Current set of flags associated with the funding source
currency
Currency of the funding source.
transactionVelocity
Effective transaction velocity, if any, applied to virtual card transactions funded by this funding source.
last4
Last 4 digits of the bank account of the funding source.
bankAccountType
Type of bank account represented by this funding source.
institutionName
Name of the financial institution with which this funding source is associated.
institutionLogo
Logo of the financial institution with which this funding source is associated, if any.
unfundedAmount
The amount by which this funding source is unfunded, if at all, in the currency of the funding source
-
Declaration
Swift
public func isUnfunded() -> Bool