UNPKG

@craynic/qr-platba

Version:

Library to work with Czech QR payments

21 lines (20 loc) 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QrRequestDate = void 0; var QrRequestDate = /** @class */ (function () { function QrRequestDate(_date) { this._date = _date; } Object.defineProperty(QrRequestDate.prototype, "date", { get: function () { return this._date; }, enumerable: false, configurable: true }); QrRequestDate.prototype.toString = function () { return "".concat(this._date.getFullYear()).concat(String(this._date.getMonth() + 1).padStart(2, '0')).concat(String(this._date.getDate()).padStart(2, '0')); }; return QrRequestDate; }()); exports.QrRequestDate = QrRequestDate;