aade-mydata-client
Version:
Node.js Client for AADE myDATA (my Digital Accounting and Tax Application) REST API
31 lines (30 loc) • 1.86 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AadeBookInvoiceType = void 0;
var InvoiceSummary_1 = require("./InvoiceSummary");
var TaxTotals_1 = require("./TaxTotals");
var PaymentMethodDetail_1 = require("./PaymentMethodDetail");
var InvoiceRow_1 = require("./InvoiceRow");
var InvoiceHeader_1 = require("./InvoiceHeader");
var PartyType_1 = require("./PartyType");
// Παραστατικό ΑΑΔΕ
var AadeBookInvoiceType = /** @class */ (function () {
function AadeBookInvoiceType(props) {
var _a, _b, _c;
if (props) {
this.uid = props.uid;
this.mark = props.mark;
this.cancelledByMark = props.cancelledByMark;
this.authenticationCode = props.authenticationCode;
this.issuer = (props.issuer) ? new PartyType_1.PartyType(props.issuer) : undefined;
this.counterpart = (props.counterpart) ? new PartyType_1.PartyType(props.counterpart) : undefined;
this.invoiceHeader = (props.invoiceHeader) ? new InvoiceHeader_1.InvoiceHeaderType(props.invoiceHeader) : undefined;
this.paymentMethods = (_a = props.paymentMethods) === null || _a === void 0 ? void 0 : _a.map(function (o) { return new PaymentMethodDetail_1.PaymentMethodDetailType(o); });
this.invoiceDetails = (_b = props.invoiceDetails) === null || _b === void 0 ? void 0 : _b.map(function (o) { return new InvoiceRow_1.InvoiceRowType(o); });
this.taxesTotals = (_c = props.taxesTotals) === null || _c === void 0 ? void 0 : _c.map(function (o) { return new TaxTotals_1.TaxTotalsType(o); });
this.invoiceSummary = (props.invoiceSummary) ? new InvoiceSummary_1.InvoiceSummaryType(props.invoiceSummary) : undefined;
}
}
return AadeBookInvoiceType;
}());
exports.AadeBookInvoiceType = AadeBookInvoiceType;