Token

@objcMembers
public final class Token : NSObject, IdentifiableWithString

Token model.

  • Unique token identifier.

    Declaration

    Swift

    public let identifier: String
  • Object type.

    Declaration

    Swift

    public let object: String
  • Tokenized card.

    Declaration

    Swift

    public let card: TokenizedCard
  • Token type.

    Declaration

    Swift

    public let type: TokenType
  • Token creation date.

    Declaration

    Swift

    public let creationDate: Date
  • Client IP address.

    Declaration

    Swift

    public private(set) var clientIPAddress: String?
  • Defines if object is existing in live mode.

    Declaration

    Swift

    public let isLiveMode: Bool
  • Defines if token is used.

    Declaration

    Swift

    public let isUsed: Bool
  • Declaration

    Swift

    public convenience init(from decoder: Decoder) throws