@weiliang79/ubl-builder
Version:
Tool to create xml documents with UBL 2.1 standard
44 lines • 1.52 kB
TypeScript
import GenericAggregateComponent from './GenericAggregateComponent';
import { UdtAmount } from '../types/UnqualifiedDataTypes/UdtAmount';
import { UdtQuantity, UdtText, UdtCode } from '../types/UnqualifiedDataTypes';
import { UdtRate } from '../types/UnqualifiedDataTypes/UdtRate';
import { ValidityPeriod } from './ValidityPeriod';
import { AllowanceCharge } from './AllowanceChargeTypeGroup';
import { PriceList } from './PriceListTypeGroup';
import { PricingExchangeRate } from './ExchangeRateTypeGroup';
type AllowedParams = {
priceAmount: string | UdtAmount;
baseQuantity?: string | UdtQuantity;
priceChangeReasons?: string | UdtText;
priceTypeCode?: string | UdtCode;
priceType?: string | UdtText;
orderableUnitFactorRate?: string | UdtRate;
validityPeriods?: ValidityPeriod;
priceList?: PriceList;
allowanceCharges?: AllowanceCharge;
pricingExchangeRate?: PricingExchangeRate;
};
/**
*
*/
declare class Price extends GenericAggregateComponent {
constructor(content: AllowedParams);
setPriceAmount(value: string | UdtAmount): void;
/**
*
* @param {boolean} [rawValue=true]
*/
getPriceAmount(rawValue?: boolean): any;
/**
*
* @param { UdtQuantity | string | number} value
*/
setBaseQuantity(value: string | UdtQuantity): void;
/**
*
* @param {boolean} rawValue
*/
getBaseQuantity(rawValue?: boolean): any;
}
export { Price, AllowedParams as PriceParams };
//# sourceMappingURL=PriceTypeGroup.d.ts.map