UNPKG

@weiliang79/ubl-builder

Version:

Tool to create xml documents with UBL 2.1 standard

40 lines 1.93 kB
import GenericAggregateComponent from './GenericAggregateComponent'; import { UdtIdentifier, UdtIdentifierAttributes, UdtText, UdtName } from '../types/UnqualifiedDataTypes'; import { AddressLine } from './AddressLine'; import { Country } from './CountryTypeGroup'; type AllowedParams = { /** An identifier for this address within an agreed scheme of address identifiers */ id?: string | UdtIdentifier; /** The name of a city, town, or village */ cityName?: string | UdtName; /** The political or administrative division of a country in which this address is located, such as the name of its county, province, or state, expressed as text */ countrySubentity?: string | UdtText; /** The political or administrative division of a country in which this address is located, such as a county, province, or state, expressed as a code (typically nationally agreed) */ countrySubentityCode?: string | UdtText; /** An unstructured address line */ addressLines?: AddressLine[]; /** The country in which this address is situated */ country?: Country; }; /** * cac:AddressType * A class to define common information related to an address. * Namespace: urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 */ declare class Address extends GenericAggregateComponent { /** * * @param {AllowedParams} content * @param {string} name */ constructor(content: AllowedParams); addAddressLine(value: string | AddressLine): void; setCountry(value: string | Country): void; /** * * @param value * @param attributes */ setId(value: string | UdtIdentifier, attributes: UdtIdentifierAttributes): void; } export { Address, Address as AddressParams, Address as RegistrationAddress, Address as JurisdictionRegionAddress, Address as DeliveryAddress, Address as DespatchAddress, }; //# sourceMappingURL=AddressTypeGroup.d.ts.map