ZKCard
Objective-C
@interface ZKCard : NSObject
Swift
class ZKCard : NSObject
Record containing basic card details.
-
Declaration
Objective-C
- (nonnull instancetype)initWithId:(nonnull NSString *)id accountId:(nonnull NSString *)accountId cardType:(nonnull NSString *)cardType cardStatus:(nonnull NSString *)cardStatus limit:(int32_t)limit maskedPan:(nonnull NSString *)maskedPan expiry:(nonnull NSString *)expiry sca:(BOOL)sca;
Swift
init(id: String, accountId: String, cardType: String, cardStatus: String, limit: Int32, maskedPan: String, expiry: String, sca: Bool)
-
Declaration
Objective-C
+ (nonnull instancetype)cardWithId:(nonnull NSString *)id accountId:(nonnull NSString *)accountId cardType:(nonnull NSString *)cardType cardStatus:(nonnull NSString *)cardStatus limit:(int32_t)limit maskedPan:(nonnull NSString *)maskedPan expiry:(nonnull NSString *)expiry sca:(BOOL)sca;
-
Unique card identifier.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *id;
Swift
var id: String { get }
-
Associated account’s identifier.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *accountId;
Swift
var accountId: String { get }
-
Card type.
See
ZKCardType.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *cardType;
Swift
var cardType: String { get }
-
Current card status.
See
ZKCardStatus
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *cardStatus;
Swift
var cardStatus: String { get }
-
Current card limit.
Declaration
Objective-C
@property (nonatomic, readonly) int32_t limit;
Swift
var limit: Int32 { get }
-
Card masked pan, e.g **** **** **** 5454.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *maskedPan;
Swift
var maskedPan: String { get }
-
Card year and month of expiry, e.g. 2024-08.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *expiry;
Swift
var expiry: String { get }
-
Boolean indicating if card is SCA compliant.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL sca;
Swift
var sca: Bool { get }