18 lines
346 B
TypeScript
18 lines
346 B
TypeScript
import { IContact } from '..';
|
|
|
|
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
|
|
|
export interface IInvoiceItem {
|
|
name: string;
|
|
unitType: string;
|
|
quantity: number;
|
|
vatPercentage: number;
|
|
}
|
|
|
|
export interface IInvoice {
|
|
billedBy: IContact;
|
|
billedTo: IContact;
|
|
status: TInvoiceStatus;
|
|
items: IInvoiceItem[];
|
|
}
|