SavedCard

@objcMembers
public final class SavedCard : NSObject, OptionallyIdentifiableWithString

Saved Card model.

  • Identifier.

    Declaration

    Swift

    public private(set) var identifier: String?
  • Object type.

    Declaration

    Swift

    public let object: String
  • First six digits of card number.

    Declaration

    Swift

    public let firstSixDigits: String
  • Last 4 digits of card number.

    Declaration

    Swift

    public let lastFourDigits: String
  • Card brand.

    Declaration

    Swift

    public let brand: CardBrand
  • Card fingerprint.

    Declaration

    Swift

    public let fingerprint: String?
  • Expiration month.

    Declaration

    Swift

    public var expirationMonth: Int { get }
  • Expiration year.

    Declaration

    Swift

    public var expirationYear: Int { get }
  • Cardholder name.

    Declaration

    Swift

    public let cardholderName: String?
  • Checks whether two saved cards are equal.

    Declaration

    Swift

    public static func == (lhs: SavedCard, rhs: SavedCard) -> Bool

    Parameters

    lhs

    Left side.

    rhs

    Ride side.

    Return Value

    true if two saved cards are equal, false otherwise.

  • Declaration

    Swift

    public convenience init(from decoder: Decoder) throws