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_ACCOUNTDeclaration
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
idIdentifier generated by the Virtual Cards Service.
ownerOwner identifier of the funding source. Typically the user sub.
versionVersion assigned by the service.
createdAtVirtual Cards service timestamp to when the funding source record was created.
updatedAtVirtual Cards service timestamp to when the funding source record was last updated.
stateCurrent state of the funding source.
flagsCurrent set of flags associated with the funding source
currencyCurrency of the funding source.
transactionVelocityEffective transaction velocity, if any, applied to virtual card transactions funded by this funding source.
last4Last 4 digits of the bank account of the funding source.
bankAccountTypeType of bank account represented by this funding source.
institutionNameName of the financial institution with which this funding source is associated.
institutionLogoLogo of the financial institution with which this funding source is associated, if any.
unfundedAmountThe amount by which this funding source is unfunded, if at all, in the currency of the funding source
-
Declaration
Swift
public func isUnfunded() -> Bool
BankAccountFundingSource Structure Reference