ZKTransactionCardProperties

Objective-C

@interface ZKTransactionCardProperties : NSObject

Swift

class ZKTransactionCardProperties : NSObject

Record containing properties associated with a card transaction.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithCardId:(nonnull NSString *)cardId
                         transactionAmount:(nonnull NSDecimalNumber *)transactionAmount
                       transactionCurrency:(nonnull NSString *)transactionCurrency
                             billingAmount:(nonnull NSDecimalNumber *)billingAmount
                           billingCurrency:(nonnull NSString *)billingCurrency
                         exchangeRateValue:(nonnull NSDecimalNumber *)exchangeRateValue
                                       mcc:(nullable NSString *)mcc
                              merchantName:(nullable NSString *)merchantName
                           merchantCountry:(nullable NSString *)merchantCountry;

    Swift

    init(cardId: String, transactionAmount: NSDecimalNumber, transactionCurrency: String, billingAmount: NSDecimalNumber, billingCurrency: String, exchangeRateValue: NSDecimalNumber, mcc: String?, merchantName: String?, merchantCountry: String?)
  • Declaration

    Objective-C

    + (nonnull instancetype)transactionCardPropertiesWithCardId:(nonnull NSString *)cardId
                                              transactionAmount:(nonnull NSDecimalNumber *)transactionAmount
                                            transactionCurrency:(nonnull NSString *)transactionCurrency
                                                  billingAmount:(nonnull NSDecimalNumber *)billingAmount
                                                billingCurrency:(nonnull NSString *)billingCurrency
                                              exchangeRateValue:(nonnull NSDecimalNumber *)exchangeRateValue
                                                            mcc:(nullable NSString *)mcc
                                                   merchantName:(nullable NSString *)merchantName
                                                merchantCountry:(nullable NSString *)merchantCountry;
  • Card identifier.

    See

    ZKCard

    Declaration

    Objective-C

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

    Swift

    var cardId: String { get }
  • Transaction amount.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *transactionAmount;

    Swift

    var transactionAmount: NSDecimalNumber { get }
  • Transaction currency code.

    Declaration

    Objective-C

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

    Swift

    var transactionCurrency: String { get }
  • Billing amount.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *billingAmount;

    Swift

    var billingAmount: NSDecimalNumber { get }
  • Billing currency code.

    Declaration

    Objective-C

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

    Swift

    var billingCurrency: String { get }
  • Exchange rate applied to any conversion between transaction & billing amount rounded to 6 decimal places.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *exchangeRateValue;

    Swift

    var exchangeRateValue: NSDecimalNumber { get }
  • mcc

    The Merchant Category Code (MCC) for the card activity in ISO-18245 format if available.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *mcc;

    Swift

    var mcc: String? { get }
  • The merchant name if available.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *merchantName;

    Swift

    var merchantName: String? { get }
  • The 3 letter ISO 3166 merchant country code if available.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *merchantCountry;

    Swift

    var merchantCountry: String? { get }