ZKTransactionAmount

Objective-C

@interface ZKTransactionAmount : NSObject

Swift

class ZKTransactionAmount : NSObject

Record containing transaction amount details.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithDirection:(nonnull NSString *)direction
                                       userId:(nullable NSString *)userId
                             userIntegratorId:(nullable NSString *)userIntegratorId
                                    accountId:(nullable NSString *)accountId
                                       amount:(nullable NSDecimalNumber *)amount
                                   fiatAmount:(nullable NSDictionary<NSString *, NSNumber *> *)fiatAmount
                                      address:(nullable NSString *)address
                                     isChange:(BOOL)isChange
                                accountNumber:(nullable NSString *)accountNumber
                                     sortCode:(nullable NSString *)sortCode
                                          bic:(nullable NSString *)bic
                                         iban:(nullable NSString *)iban;

    Swift

    init(direction: String, userId: String?, userIntegratorId: String?, accountId: String?, amount: NSDecimalNumber?, fiatAmount: [String : NSNumber]?, address: String?, isChange: Bool, accountNumber: String?, sortCode: String?, bic: String?, iban: String?)
  • Declaration

    Objective-C

    + (nonnull instancetype)transactionAmountWithDirection:(nonnull NSString *)direction
                                                    userId:(nullable NSString *)userId
                                          userIntegratorId:(nullable NSString *)userIntegratorId
                                                 accountId:(nullable NSString *)accountId
                                                    amount:(nullable NSDecimalNumber *)amount
                                                fiatAmount:(nullable NSDictionary<NSString *, NSNumber *> *)fiatAmount
                                                   address:(nullable NSString *)address
                                                  isChange:(BOOL)isChange
                                             accountNumber:(nullable NSString *)accountNumber
                                                  sortCode:(nullable NSString *)sortCode
                                                       bic:(nullable NSString *)bic
                                                      iban:(nullable NSString *)iban;
  • Direction, either ‘SENT’ or ‘RECEIVED’.

    Declaration

    Objective-C

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

    Swift

    var direction: String { get }
  • User id or null if it is external user.

    Declaration

    Objective-C

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

    Swift

    var userId: String? { get }
  • User integrator id or null if it is external user.

    Declaration

    Objective-C

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

    Swift

    var userIntegratorId: String? { get }
  • Account id or null if it is external user.

    Declaration

    Objective-C

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

    Swift

    var accountId: String? { get }
  • Amount in transaction currency or null if transaction is Ethereum contract deploy.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDecimalNumber *amount;

    Swift

    var amount: NSDecimalNumber? { get }
  • Amount in fiat currencies at the time of the transaction submission.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSNumber *> *fiatAmount;

    Swift

    var fiatAmount: [String : NSNumber]? { get }
  • Blockchain address or null.

    Declaration

    Objective-C

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

    Swift

    var address: String? { get }
  • Indicates if this amount represents change amount.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isChange;

    Swift

    var isChange: Bool { get }
  • Fiat account number or null.

    Declaration

    Objective-C

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

    Swift

    var accountNumber: String? { get }
  • Fiat account sort code or null.

    Declaration

    Objective-C

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

    Swift

    var sortCode: String? { get }
  • bic

    Fiat account BIC or null.

    Declaration

    Objective-C

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

    Swift

    var bic: String? { get }
  • Fiat account IBAN or null.

    Declaration

    Objective-C

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

    Swift

    var iban: String? { get }