UNPKG

postel-ita

Version:

Library to create files compatible with italian Poste Postel system

24 lines 795 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Lang_1 = __importDefault(require("./Lang")); const MissiveBody_1 = __importDefault(require("./MissiveBody")); class Missive { get body() { return this._body; } constructor(payment) { this.pPayment = payment; this._body = new MissiveBody_1.default(payment); } result() { const rows = []; rows.push('@A' + this.pPayment.address.result({ where: 'missive' })); rows.push(this._body.result()); return rows.join(Lang_1.default.EOL); } } exports.default = Missive; //# sourceMappingURL=Missive.js.map