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;

    Swift

    init(id: String, accountId: String, cardType: String, cardStatus: String, limit: Int32, maskedPan: String, expiry: String)
  • 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;
  • id

    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.

    Declaration

    Objective-C

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

    Swift

    var cardType: String { get }
  • Current card status.

    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 }