CreditCardFundingSource

public struct CreditCardFundingSource : BaseFundingSource, Hashable

Representation of a Credit Card Funding Source

  • Valid Credit Card Network options

    See more

    Declaration

    Swift

    public enum Network : Hashable

Conformance: FundingSource

  • id

    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_CARD

    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?

CreditCardFundingSource

  • 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
  • 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

    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 card number of the funding source.

    network

    Payment Method network of the funding source.

    cardType

    Type of card represented by this funding source.

  • Declaration

    Swift

    public func isUnfunded() -> Bool