SourceAccount

An account a sender may designate as the source of funding for a transfer

Definition

public struct SourceAccount: Sendable {
    public init(
        alias: String,
        balance: Double,
        last4: String,
        sourceProviderId: String
    ) {
        ...
    }
}

Parameters

PropertyTypeDescription
aliasStringAn alias for the source account
balanceDoublePrimary brand color applied to primary buttons and links
last4StringThe last four digits of the source account
sourceProviderIdStringA unique identifier for the source account

Sample Usages

private let checkingAccount: SourceAccount = .init(
    alias: "Checking",
    balance: 500.00,
    last4: "1234",
    sourceProviderId: "5163e857-9a05-4170-9d35-d6ad780a0584"
)