@weiliang79/ubl-builder
Version:
Tool to create xml documents with UBL 2.1 standard
96 lines • 4.02 kB
TypeScript
import GenericAggregateComponent from './GenericAggregateComponent';
import { UdtIdentifier, UdtIndicator, UdtCode } from '../types/UnqualifiedDataTypes';
/**
*
*/
/**
* An interface to define the allowed params for document reference.
*
* @property {string} id - The id of the component.
* @property {string} [copyIndicator] - The copy indicator of the component.
* @property {UDTIdentifier|string} [uuid] - The uuid of the component.
* @property {string} [issueDate] - The issue date of the component.
* @property {string} [issueTime] - The issue time of the component.
* @property {UDTCode|string} [documentTypeCode] - The document type code of the component.
* @property {string} [documentType] - The document type of the component.
* @property {string} [xPath] - The x path of the component.
* @property {string} [languageID] - The language id of the component.
* @property {string} [localeCode] - The locale code of the component.
* @property {string} [versionID] - The version id of the component.
* @property {string} [documentStatusCode] - The document status code of the component.
* @property {string} [documentDescription] - The document description of the component.
* @property {string} [attachment] - The attachment of the component.
* @property {string} [validityPeriod] - The validity period of the component.
* @property {string} [issuerParty] - The issuer party of the component.
*/
interface AllowedParams {
id: string;
copyIndicator?: string;
uuid?: UdtIdentifier | string;
issueDate?: string;
issueTime?: string;
documentTypeCode?: UdtCode | string;
documentType?: string;
xPath?: string;
languageID?: string;
localeCode?: string;
versionID?: string;
documentStatusCode?: string;
documentDescription?: string;
attachment?: string;
validityPeriod?: string;
issuerParty?: string;
}
declare class DespatchDocumentReference extends GenericAggregateComponent {
constructor(content: AllowedParams);
}
/**
* A class to define a reference to an Order.
*/
declare class DocumentReference extends GenericAggregateComponent {
constructor(content: AllowedParams);
/**
* @param value
*/
setCopyIndicator(value: boolean | UdtIndicator): this;
}
declare class InvoiceDocumentReference extends GenericAggregateComponent {
/**
* @param content
*/
constructor(content: AllowedParams);
}
declare class ReceiptDocumentReference extends GenericAggregateComponent {
/**
* @param {AllowedParams} content
*/
constructor(content: AllowedParams);
}
declare class StatementDocumentReference extends GenericAggregateComponent {
/**
* @param {AllowedParams} content
* @param {string} name
*/
constructor(content: AllowedParams);
}
declare class OriginatorDocumentReference extends GenericAggregateComponent {
/**
* @param {AllowedParams} content
*/
constructor(content: AllowedParams);
}
declare class ContractDocumentReference extends GenericAggregateComponent {
/**
* @param {AllowedParams} content
*/
constructor(content: AllowedParams);
}
declare class AdditionalDocumentReference extends GenericAggregateComponent {
/**
* @param {AllowedParams} content
* @param {string} name
*/
constructor(content: AllowedParams);
}
export { DespatchDocumentReference, AllowedParams as DespatchDocumentReferenceParams, DocumentReference, AllowedParams as DocumentReferenceParams, InvoiceDocumentReference, AllowedParams as InvoiceDocumentReferenceParams, ReceiptDocumentReference, AllowedParams as ReceiptDocumentReferenceParams, StatementDocumentReference, AllowedParams as StatementDocumentReferenceParams, OriginatorDocumentReference, AllowedParams as OriginatorDocumentReferenceParams, ContractDocumentReference, AllowedParams as ContractDocumentReferenceParams, AdditionalDocumentReference, AllowedParams as AdditionalDocumentReferenceParams, };
//# sourceMappingURL=DocumentReferenceGroup.d.ts.map