UNPKG

einvoicing

Version:

A JavaScript library for creating and parsing electronic invoices compliant with the eInvoicing Directive, EN 16931, and popular extensions

22 lines (21 loc) 599 B
/** * AllowanceCharge.ts * * @copyright Vitalii Savchuk <esvit666@gmail.com> * @package esvit/einvoicing * @licence MIT https://opensource.org/licenses/MIT */ import { ValueObject } from "../base/ValueObject"; import Tax from "../entity/Tax"; export interface IAllowanceCharge { isCharge?: boolean; reasonCode?: string; reasonText?: string; factorAmount?: number; amount?: number; tax?: Tax; } export default class AllowanceCharge extends ValueObject<IAllowanceCharge> { static create(ref: IAllowanceCharge): AllowanceCharge; toPrimitive(): IAllowanceCharge; }