UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

30 lines (29 loc) 980 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionAmount = void 0; var decimal_js_1 = require("decimal.js"); /** * Transaction amount details. * <p> * See {@link Transaction}. * */ var TransactionAmount = /** @class */ (function () { /** @internal */ function TransactionAmount(json) { this.json = json; this.direction = json.direction; this.userId = json.userId; this.userIntegratorId = json.userIntegratorId; this.accountId = json.accountId; this.amount = json.amount ? new decimal_js_1.Decimal(json.amount) : null; this.fiatAmount = json.fiatAmount; this.address = json.address; this.isChange = json.isChange; this.accountNumber = json.accountNumber; this.sortCode = json.sortCode; this.bic = json.bic; this.iban = json.iban; } return TransactionAmount; }()); exports.TransactionAmount = TransactionAmount;