Card

public struct Card
extension Card: Codable

Card model.

  • Unique uuid for this card.

    Declaration

    Swift

    public var cardUuid: String
  • The account uuid.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var walletUuid: String
  • Type of card

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var 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 var initialBalance: Int
  • Card brand.

    Declaration

    Swift

    public var 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 var shippingAddress: Address?
  • The rules this card should use when authorizing a transaction.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    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 this value into the given encoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.