postel-ita
Version:
Library to create files compatible with italian Poste Postel system
41 lines • 1.21 kB
JavaScript
"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 Address_1 = __importDefault(require("./Address"));
const Form_1 = __importDefault(require("./Form"));
const Missive_1 = __importDefault(require("./Missive"));
class Payment {
constructor({ address, comm, bank }) {
this.pAddress = new Address_1.default(address);
this.pMissive = new Missive_1.default(this);
this.pForm = new Form_1.default(this);
this._bank = bank;
this._comm = comm;
}
get address() {
return this.pAddress;
}
get missive() {
return this.pMissive;
}
get form() {
return this.pForm;
}
get bank() {
return this._bank;
}
get comm() {
return this._comm;
}
result() {
const rows = [];
rows.push(this.pMissive.result());
rows.push(this.pForm.result());
return rows.join(Lang_1.default.EOL);
}
}
exports.default = Payment;
//# sourceMappingURL=Payment.js.map