UNPKG

@weiliang79/ubl-builder

Version:

Tool to create xml documents with UBL 2.1 standard

27 lines 1.06 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Country = void 0; const GenericAggregateComponent_1 = __importDefault(require("./GenericAggregateComponent")); /* TODO GENERIC CLASSES */ const UnqualifiedDataTypes_1 = require("../types/UnqualifiedDataTypes"); const ParamsMap = { identificationCode: { order: 1, attributeName: 'cbc:IdentificationCode', min: 0, max: 1, classRef: UnqualifiedDataTypes_1.UdtCode }, name: { order: 2, attributeName: 'cbc:Name', min: 0, max: 1, classRef: UnqualifiedDataTypes_1.UdtName }, }; /** * A class to describe a country. */ class CountryType extends GenericAggregateComponent_1.default { /** * @param {AllowedParams} content * @param {string} name */ constructor(content) { super(content, ParamsMap, 'cac:CountryType'); } } exports.Country = CountryType; //# sourceMappingURL=CountryTypeGroup.js.map