@weiliang79/ubl-builder
Version:
Tool to create xml documents with UBL 2.1 standard
73 lines • 2.81 kB
TypeScript
import GenericAggregateComponent from './GenericAggregateComponent';
import { UdtIdentifier, UdtText, UdtQuantity, UdtDate, UdtCode, UdtIndicator } from '../types/UnqualifiedDataTypes';
import { UdtAmount } from '../types/UnqualifiedDataTypes/UdtAmount';
import { PeriodType } from './PeriodTypeGroup';
import { OrderLineReference } from './OrderLineReference';
import { DespatchLineReference, ReceiptLineReference } from './LineReferenceTypeGroup';
import { BillingReference } from './BillingReference';
import { DocumentReference } from './DocumentReferenceGroup';
import { Party } from './PartyTypeGroup';
import { Delivery } from './DeliveryTypeGroup';
import { PaymentTerms } from './PaymentTermsTypeGroup';
import { TaxTotal, WithholdingTaxTotal } from './TaxTotalTypeGroup';
import { Item } from './ItemTypeGroup';
import { Price } from './PriceTypeGroup';
import { DeliveryTerms } from './DeliveryTerms';
import { ItemPriceExtension } from './ItemPriceExtension';
import { AllowanceCharge } from './AllowanceChargeTypeGroup';
type AllowedParams = {
id: string | UdtIdentifier;
uuid?: string | UdtIdentifier;
notes?: string[] | UdtText[];
invoicedQuantity: string | UdtQuantity;
lineExtensionAmount: string | UdtAmount;
taxPointDate?: string | UdtDate;
accountingCostCode?: string | UdtCode;
accountingCost?: string | UdtText;
paymentPurposeCode?: string | UdtCode;
freeOfChargeIndicator?: string | UdtIndicator;
invoicePeriods?: PeriodType[];
orderLineReferences?: OrderLineReference[];
despatchLineReference?: DespatchLineReference[];
receiptLineReference?: ReceiptLineReference[];
billingReference?: BillingReference[];
documentReference?: DocumentReference[];
originatorParty?: Party;
delivery?: Delivery;
paymentTerms?: PaymentTerms;
allowanceCharges?: AllowanceCharge[];
taxTotals?: TaxTotal[];
withholdingTaxTotal?: WithholdingTaxTotal[];
item: Item;
price: Price;
deliveryTerms?: DeliveryTerms;
itemPriceExtension?: ItemPriceExtension;
};
/**
*
*/
declare class InvoiceLine extends GenericAggregateComponent {
constructor(content: AllowedParams);
/**
* @returns { TaxTotal[] }
*/
getTaxTotals(): any;
/**
* @param { TaxTotal[] } taxTotals
*/
setTaxTotals(taxTotals: TaxTotal[]): void;
setId(value: string | UdtIdentifier): void;
/**
*
* @param {boolean} rawValue
* @returns { UdtAmount | string }
*/
getLineExtensionAmount(rawValue?: boolean): any;
setLineExtensionAmount(value: string | UdtAmount, currencyID?: string): void;
/**
* @returns { Price } Price object
*/
getPrice(): any;
}
export { InvoiceLine, AllowedParams as InvoiceLineParams };
//# sourceMappingURL=InvoiceLineTypeGroup.d.ts.map