BaseFundingSource
public protocol BaseFundingSource
Representation of the common attributes of a funding source used in the Sudo Platform SDK.
-
Identifier generated by the Virtual Cards Service.
Declaration
Swift
var id: String { get }
-
Owner identifier of the funding source. Typically the user sub.
Declaration
Swift
var owner: String { get }
-
Version assigned by the service.
Declaration
Swift
var version: Int { get }
-
Virtual Cards service timestamp to when the funding source record was created.
Declaration
Swift
var createdAt: Date { get }
-
Virtual Cards service timestamp to when the funding source record was last updated.
Declaration
Swift
var updatedAt: Date { get }
-
Type of this funding source
Declaration
Swift
var type: FundingSourceType { get }
-
Current state of the funding source.
Declaration
Swift
var state: FundingSourceState { get }
-
Currency of the funding source.
Declaration
Swift
var currency: String { get }
-
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
var transactionVelocity: TransactionVelocity? { get }