FundingSource

public struct FundingSource : Hashable

Representation of a Funding Source used in Platform SDK.

Supplementary

  • State type associated with FundingSource.

    • active: funding source is active.
    • inactive: funding source is inactive.
    • unknown: type could not be discerned - associated value is unknown and suggests that the SDK version is out of sync with the service.

    Declaration

    Swift

    public enum State : Hashable
  • Network type associated with FundingSource.

    See more

    Declaration

    Swift

    public enum Network : Hashable

Properties

  • id

    Identifier generated by the Virtual Cards Service.

    Declaration

    Swift

    public var id: String
  • Owner identifier of the funding source. Typically the user id.

    Declaration

    Swift

    public var owner: String
  • Version assigned by the service.

    Declaration

    Swift

    public var version: Int
  • Current state of the funding source.

    Declaration

    Swift

    public var state: State
  • Currency of the funding source.

    Declaration

    Swift

    public var currency: String
  • Last 4 digits of the card of the funding source.

    Declaration

    Swift

    public var last4: String
  • Payment Method network of the funding source.

    Declaration

    Swift

    public var network: Network
  • Type of card represented by this funding source

    Declaration

    Swift

    public var cardType: CardType
  • VirtualCards service timestamp to when the funding source record was created.

    Declaration

    Swift

    public var createdAt: Date
  • VirtualCards service timestamp to when the funding source record was last updated.

    Declaration

    Swift

    public var updatedAt: Date

Lifecycle