zumokit
Version:
ZumoKit is a Wallet as a Service SDK
32 lines (31 loc) • 1.26 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustodyOrder = void 0;
var decimal_js_1 = require("decimal.js");
var CustodyOrder = /** @class */ (function () {
/** @internal */
function CustodyOrder(json) {
this.json = json;
this.id = json.id;
this.type = json.type;
this.status = json.status.toUpperCase();
this.amount = json.amount ? new decimal_js_1.default(json.amount) : null;
this.feeInAmount = json.feeInAmount;
this.estimatedFees = json.estimatedFees
? new decimal_js_1.default(json.estimatedFees)
: null;
this.fees = json.fees ? new decimal_js_1.default(json.fees) : null;
this.fromAddresses = json.fromAddresses;
this.fromAccountId = json.fromAccountId;
this.fromUserId = json.fromUserId;
this.fromUserIntegratorId = json.fromUserIntegratorId;
this.toAddress = json.toAddress;
this.toAccountId = json.toAccountId;
this.toUserId = json.toUserId;
this.toUserIntegratorId = json.toUserIntegratorId;
this.createdAt = json.createdAt;
this.updatedAt = json.updatedAt;
}
return CustodyOrder;
}());
exports.CustodyOrder = CustodyOrder;