SQRDCard

@interface SQRDCard : NSObject <NSCopying>

Represents the non-confidential details of a payment card.

  • The card brand (for example, Visa).

    Declaration

    Objective-C

    @property (readonly, nonatomic) SQRDCardBrand brand;

    Swift

    var brand: SQRDCardBrand { get }
  • The last four digits of the card number.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSString *lastFourDigits;

    Swift

    var lastFourDigits: String { get }
  • Returns a Boolean value that indicates whether the receiver and a given SQRDCard are equal.

    Declaration

    Objective-C

    - (BOOL)isEqual:(nullable SQRDCard *)object;

    Swift

    func isEqual(_ object: SQRDCard?) -> Bool
  • Returns an integer that can be used as a table address in a hash table structure.

    Declaration

    Objective-C

    @property (readonly, atomic) NSUInteger hash;

    Swift

    var hash: UInt { get }