Card

public struct Card : Codable

The card model.

  • The unique token for this card. This is how you will identify this card in the future throughout the API.

    Declaration

    Swift

    public var paymentMethodUuid: String
  • The account uuid.

    Declaration

    Swift

    public var accountUuid: String?
  • The unique identifier of the bank account in your own system.

    Declaration

    Swift

    public var externalId: String?
  • The card network to which this card belongs.

    Declaration

    Swift

    public var brandString: String?
  • The card network to which this card belongs. Check brandString if nil.

    Declaration

    Swift

    public var brand: CardBrand? { get }
  • The type of card.

    Declaration

    Swift

    public var typeString: String
  • The type of card. Check typeString if nil.

    Declaration

    Swift

    public var type: CardType? { get }
  • The 3-letter code of the country of issuance of the card. The keys can be mapped from Country if you want type safety.

    Declaration

    Swift

    public var country: String
  • The last 4 digits of the card.

    Declaration

    Swift

    public var lastFourDigits: String
  • The status of the card.

    Declaration

    Swift

    public var statusString: String
  • The status of the card. Check statusString if nil.

    Declaration

    Swift

    public var status: CardStatus? { get }
  • The status reason of the card.

    Declaration

    Swift

    public var statusReasonString: String?
  • The status reason of the card. Check statusReasonString if nil.

    Declaration

    Swift

    public var statusReason: PaymentMethodStatusReason? { get }
  • Types of transactions supported by this card.

    Declaration

    Swift

    public var flags: CardFlags?
  • Allows for any number of custom metadata keys and values to be stored with a given entity.

    Declaration

    Swift

    public var metadata: [String : Any]?
  • The date this card was created.

    Declaration

    Swift

    public var createdAt: String
  • The date this card was last updated.

    Declaration

    Swift

    public var updatedAt: String
  • Creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes the instance by encoding to the given decoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.