UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

22 lines (21 loc) 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExchangeRate = void 0; var decimal_js_1 = require("decimal.js"); /** * Record containing Zumo exchange rates for information purposes only. * Can be used to display amounts in local currency to the user. */ var ExchangeRate = /** @class */ (function () { /** @internal */ function ExchangeRate(json) { this.json = json; this.id = json.id; this.fromCurrency = json.fromCurrency; this.toCurrency = json.toCurrency; this.value = new decimal_js_1.Decimal(json.value); this.timestamp = json.timestamp; } return ExchangeRate; }()); exports.ExchangeRate = ExchangeRate;