UNPKG

einvoicing

Version:

A JavaScript library for creating and parsing electronic invoices compliant with the eInvoicing Directive, EN 16931, and popular extensions

40 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); /** * Document.ts * * @copyright Vitalii Savchuk <esvit666@gmail.com> * @package esvit/einvoicing * @licence MIT https://opensource.org/licenses/MIT */ var Entity_1 = require("../base/Entity"); var Document = /** @class */ (function (_super) { tslib_1.__extends(Document, _super); function Document() { return _super !== null && _super.apply(this, arguments) || this; } Document.create = function (props) { return new Document(props, props.id); }; Object.defineProperty(Document.prototype, "attachments", { get: function () { return this.props.attachments; }, enumerable: false, configurable: true }); Object.defineProperty(Document.prototype, "dueDate", { get: function () { return this.props.dueDate; }, enumerable: false, configurable: true }); Document.prototype.toPrimitive = function () { return this.props; }; return Document; }(Entity_1.Entity)); exports.default = Document; //# sourceMappingURL=Document.js.map