Card

public struct Card : Hashable

Representation of a Virtual Card used in Platform SDK.

Supplementary

  • State of the card.

    • issued: Card is in an issued state and ready to be used.
    • failed: Card is in a failed state and needs to be rectified.
    • closed: Card has been closed.
    • suspended: Card has been suspended.
    • unknown: API Evolution - if this occurs, it may mean you need to update the library.
    See more

    Declaration

    Swift

    public enum State : Hashable, CustomStringConvertible
  • Billing Address of the card.

    See more

    Declaration

    Swift

    public struct BillingAddress : Hashable
  • Expiry of the card.

    See more

    Declaration

    Swift

    public struct Expiry : Hashable

Properties

  • id

    Identifier generated by the Virtual Cards Service.

    Declaration

    Swift

    public let id: String
  • List of identifiers of user/accounts associted with this card.

    Typically, this will consist of at least the user id and sudo id of the account.

    Declaration

    Swift

    public let owners: [Owner]
  • Owner Id of the card.

    Declaration

    Swift

    public let owner: String
  • Virtual cards service supplied version.

    Declaration

    Swift

    public let version: Int
  • Associative Id of the funding source used to provision the card.

    Declaration

    Swift

    public let fundingSourceId: String
  • Current state of the cards status.

    Declaration

    Swift

    public let state: State
  • Owner of the card.

    Declaration

    Swift

    public let cardHolder: String
  • User defined name associated with the card.

    Declaration

    Swift

    public let alias: String
  • Last 4 digits on the card.

    Declaration

    Swift

    public let last4: String
  • pan

    Primary Account Number.

    Declaration

    Swift

    public let pan: String
  • csc

    Card Security Code.

    Declaration

    Swift

    public let csc: String
  • Billing address associated with the card. If billing address is nil, the default billing address will be used.

    Declaration

    Swift

    public let billingAddress: BillingAddress?
  • Expiry of the card.

    Declaration

    Swift

    public let expiry: Expiry
  • Currency ISO code associated with the Card.

    Declaration

    Swift

    public let currency: String
  • Date of the cards active to period.

    Declaration

    Swift

    public let activeTo: Date
  • Date that the card was cancelled at.

    Declaration

    Swift

    public let cancelledAt: Date?
  • VirtualCards service timestamp to when the card entry was created.

    Declaration

    Swift

    public let created: Date
  • VirtualCards service timestamp to when the card entry was last updated.

    Declaration

    Swift

    public let updated: Date

Lifecycle