CreditCardFundingSource
public struct CreditCardFundingSource : BaseFundingSource, Hashable
Representation of a Credit Card Funding Source
-
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
CREDIT_CARDDeclaration
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 card of the funding source.
Declaration
Swift
public let last4: String -
Payment Method network of the funding source.
Declaration
Swift
public let network: Network -
Type of card represented by this funding source
Declaration
Swift
public let cardType: CardType -
init(id:owner: version: state: flags: currency: transactionVelocity: last4: network: cardType: createdAt: updatedAt: ) Construct a credit card funding source
Declaration
Swift
public init( id: String, owner: String, version: Int, state: FundingSourceState, flags: [FundingSourceFlags], currency: String, transactionVelocity: TransactionVelocity? = nil, last4: String, network: Network, cardType: CardType, createdAt: Date, updatedAt: Date )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 card number of the funding source.
networkPayment Method network of the funding source.
cardTypeType of card represented by this funding source.
-
Declaration
Swift
public func isUnfunded() -> Bool
CreditCardFundingSource Structure Reference