UNPKG

aade-mydata-client

Version:

Node.js Client for AADE myDATA (my Digital Accounting and Tax Application) REST API

35 lines (34 loc) 1.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvoiceRowType = void 0; var Ship_1 = require("./Ship"); var InvoiceRowType = /** @class */ (function () { function InvoiceRowType(props) { var _a, _b; if (props) { this.lineNumber = props.lineNumber; this.quantity = props.quantity; this.measurementUnit = props.measurementUnit; this.invoiceDetail = props.invoiceDetail; this.netValue = props.netValue; this.vatCategory = props.vatCategory; this.vatAmount = props.vatAmount; this.vatExemptionCategory = props.vatExemptionCategory; this.dienergia = (props.dienergia) ? new Ship_1.ShipType(props.dienergia) : undefined; this.discountOption = props.discountOption; this.withheldAmount = props.withheldAmount; this.withheldPercentCategory = props.withheldPercentCategory; this.stampDutyAmount = props.stampDutyAmount; this.stampDutyPercentCategory = props.stampDutyPercentCategory; this.feesAmount = props.feesAmount; this.feesPercentCategory = props.feesPercentCategory; this.otherTaxesPercentCategory = props.otherTaxesPercentCategory; this.otherTaxesAmount = props.otherTaxesAmount; this.deductionsAmount = props.deductionsAmount; this.incomeClassification = (_a = props.incomeClassification) === null || _a === void 0 ? void 0 : _a.map(function (o) { return o; }); this.expensesClassification = (_b = props.expensesClassification) === null || _b === void 0 ? void 0 : _b.map(function (o) { return o; }); } } return InvoiceRowType; }()); exports.InvoiceRowType = InvoiceRowType;