ZKInternalTransaction

Objective-C

@interface ZKInternalTransaction : NSObject

Swift

class ZKInternalTransaction : NSObject

Record containing internal transaction details.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithFromUserId:(nullable NSString *)fromUserId
                          fromUserIntegratorId:(nullable NSString *)fromUserIntegratorId
                                 fromAccountId:(nullable NSString *)fromAccountId
                                   fromAddress:(nonnull NSString *)fromAddress
                                      toUserId:(nullable NSString *)toUserId
                            toUserIntegratorId:(nullable NSString *)toUserIntegratorId
                                   toAccountId:(nullable NSString *)toAccountId
                                     toAddress:(nonnull NSString *)toAddress
                                        amount:(nonnull NSDecimalNumber *)amount
                                    fiatAmount:(nullable NSDictionary<NSString *, NSNumber *> *)fiatAmount;

    Swift

    init(fromUserId: String?, fromUserIntegratorId: String?, fromAccountId: String?, fromAddress: String, toUserId: String?, toUserIntegratorId: String?, toAccountId: String?, toAddress: String, amount: NSDecimalNumber, fiatAmount: [String : NSNumber]?)
  • Declaration

    Objective-C

    + (nonnull instancetype)internalTransactionWithFromUserId:(nullable NSString *)fromUserId
                                         fromUserIntegratorId:(nullable NSString *)fromUserIntegratorId
                                                fromAccountId:(nullable NSString *)fromAccountId
                                                  fromAddress:(nonnull NSString *)fromAddress
                                                     toUserId:(nullable NSString *)toUserId
                                           toUserIntegratorId:(nullable NSString *)toUserIntegratorId
                                                  toAccountId:(nullable NSString *)toAccountId
                                                    toAddress:(nonnull NSString *)toAddress
                                                       amount:(nonnull NSDecimalNumber *)amount
                                                   fiatAmount:(nullable NSDictionary<NSString *, NSNumber *> *)fiatAmount;
  • Sender user id or null if it is external user.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var fromUserIntegratorId: String? { get }
  • Sender account id or null if it is external user.

    Declaration

    Objective-C

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

    Swift

    var fromAccountId: String? { get }
  • Sender address.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var toUserIntegratorId: String? { get }
  • Recipient account id or null if it is external user.

    Declaration

    Objective-C

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

    Swift

    var toAccountId: String? { get }
  • Recipient address.

    Declaration

    Objective-C

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

    Swift

    var toAddress: String { get }
  • Transaction amount in transaction currency.

    Declaration

    Objective-C

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

    Swift

    var amount: NSDecimalNumber { get }
  • Value 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 }