Card

public struct Card : Codable, Sendable

Card model.

  • Unique uuid for this card.

    Declaration

    Swift

    public let cardUuid: String
  • The account uuid.

    Declaration

    Swift

    public let accountUuid: String?
  • Product id of the card.

    Declaration

    Swift

    public let productId: String
  • Product id of the card.

    Declaration

    Swift

    public let externalId: String
  • The ID to be used at the embossing process.

    Declaration

    Swift

    public let embossId: String?
  • The uuid of the wallet to which this card is linked to.

    Declaration

    Swift

    public let walletUuid: String
  • Type of card

    Declaration

    Swift

    public let typeString: String
  • Type of card. Check typeString if nil.

    Declaration

    Swift

    public var type: CardType? { get }
  • Status of the card.

    Declaration

    Swift

    public let statusString: String
  • Status of the card. Check statusString if nil.

    Declaration

    Swift

    public var status: CardStatus? { get }
  • The initial balance on the card. Only applicable to cards that support this feature.

    Declaration

    Swift

    public let initialBalance: Int
  • Card brand.

    Declaration

    Swift

    public let brand: String
  • Address to ship the card to. If not present, the system will send the card to the address defined in the user account profile.

    Declaration

    Swift

    public let shippingAddress: Address?
  • The rules this card should use when authorizing a transaction.

    Declaration

    Swift

    public let authRules: AuthRules?
  • Card custom fields. The keys can be mapped from CardCustomField if you want type safety.

    Declaration

    Swift

    public let customFields: [String : CustomValue]?
  • Service fees to be applied to a transaction.

    Declaration

    Swift

    public let serviceFees: [CardServiceFee]?
  • Card metadata fields.

    Declaration

    Swift

    public let metadata: [String : CustomValue]?
  • Flag determining if the card is blocked or not.

    Declaration

    Swift

    public let isBlocked: Bool?
  • Flag determining if the pin is set.

    Declaration

    Swift

    public let isPinSet: Bool?
  • The card’s expiration date.

    Declaration

    Swift

    public let cardExpiration: String?
  • The last four digits of the card PAN.

    Declaration

    Swift

    public let lastFourDigits: String?
  • Array of incentive rule UUIDs that apply to this card.

    Declaration

    Swift

    public let incentiveRuleUuids: [String]?
  • The reason why the card might be in a particular status.

    Declaration

    Swift

    public let statusReason: String?
  • The card’s creation date.

    Declaration

    Swift

    public let createdAt: String?
  • The card’s modification date.

    Declaration

    Swift

    public let updatedAt: String?