xinvoice/ts/interfaces.ts

34 lines
567 B
TypeScript
Raw Permalink Normal View History

2024-04-22 14:30:55 +00:00
export interface IXInvoice {
InvoiceNumber: string;
DateIssued: string; // Date in ISO 8601 format
Seller: IParty;
Buyer: IParty;
Items: IInvoiceItem[];
TotalAmount: number;
}
export interface IParty {
Name: string;
Address: IAddress;
Contact: IContact;
}
export interface IAddress {
Street: string;
City: string;
PostalCode: string;
Country: string;
}
export interface IContact {
Email: string;
Phone: string;
}
export interface IInvoiceItem {
Description: string;
Quantity: number;
UnitPrice: number;
TotalPrice: number;
}