@inbridge/oif-ts
Version:
TypeScript integration for the Open Invoice Format (OIF) schema. Easily create OIF-compliant PDFs and parse/validate JSON.
26 lines (23 loc) • 681 B
TypeScript
import { DiscountType } from '../enums/discount.enum.js';
import { InvoiceItemWithoutDiscount } from './invoice-item-without-discount.js';
import '../enums/invoice-item-unit.enum.js';
import '../enums/currency.enum.js';
declare class InvoiceItemWithDiscount extends InvoiceItemWithoutDiscount {
/**
* The discount amount
*/
discount: number;
/**
* The type of the discount
* @default DiscountType.FIXED
* @see DiscountType
*/
discountType: DiscountType;
/**
* The reason for the discount
*/
discountReason: string;
get discountAmount(): number;
get netPrice(): number;
}
export { InvoiceItemWithDiscount };