@weiliang79/ubl-builder
Version:
Tool to create xml documents with UBL 2.1 standard
41 lines (39 loc) • 2.31 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrderLineReference = void 0;
const GenericAggregateComponent_1 = __importDefault(require("./GenericAggregateComponent"));
const UnqualifiedDataTypes_1 = require("../types/UnqualifiedDataTypes");
const OrderReference_1 = require("./OrderReference");
// const GenericAggregateComponent = require("./GenericAggregateComponent");
// /* TODO GANERIC CLASSES */
// const { UdtCode, UdtIdentifier, UdtDate, UdtText, UdtTime, UdtName, UdtQuantity } = require("../types/UnqualifiedDataTypes");
// const { OrderReference } = require("./OrderReference");
/* TODO GANERIC CLASSES */
/*
http://www.datypic.com/sc/ubl21/e-cac_OrderLineReference.html
1 cbc:LineID [1..1] An identifier for the referenced order line, assigned by the buyer.
2 cbc:SalesOrderLineID [0..1] An identifier for the referenced order line, assigned by the seller.
3 cbc:UUID [0..1] A universally unique identifier for this order line reference.
4 cbc:LineStatusCode [0..1] A code signifying the status of the referenced order line with respect to its original state.
5 cac:OrderReference [0..1] A reference to the Order containing the referenced order line.
*/
const ParamsMap = {
lineID: { order: 1, attributeName: 'cbc:LineID', min: 0, max: 1, classRef: UnqualifiedDataTypes_1.UdtIdentifier },
salesOrderLineID: { order: 2, attributeName: 'cbc:SalesOrderLineID', min: 0, max: 1, classRef: UnqualifiedDataTypes_1.UdtIdentifier },
uuid: { order: 3, attributeName: 'cbc:UUID', min: 0, max: 1, classRef: UnqualifiedDataTypes_1.UdtIdentifier },
lineStatusCode: { order: 4, attributeName: 'cbc:LineStatusCode', min: 0, max: 1, classRef: UnqualifiedDataTypes_1.UdtIdentifier },
orderReference: { order: 5, attributeName: 'cac:OrderReference', min: 0, max: 1, classRef: OrderReference_1.OrderReference },
};
/**
*
*/
class OrderLineReference extends GenericAggregateComponent_1.default {
constructor(content) {
super(content, ParamsMap, 'cac:OrderLineReference');
}
}
exports.OrderLineReference = OrderLineReference;
//# sourceMappingURL=OrderLineReference.js.map