-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
43 lines (38 loc) · 745 Bytes
/
types.ts
File metadata and controls
43 lines (38 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export interface PaymentRecord {
id: string;
amount: number;
date: string;
note?: string;
}
export interface InvoiceItem {
id: string;
description: string;
quantity: number;
rate: number;
}
export interface ClientDetails {
name: string;
email: string;
address: string;
businessName: string;
}
export interface Invoice {
id: string;
invoiceNumber: string;
issueDate: string;
dueDate: string;
client: ClientDetails;
items: InvoiceItem[];
payments: PaymentRecord[];
terms: string;
status: 'draft' | 'pending' | 'partially_paid' | 'paid';
logo?: string;
}
export interface UserProfile {
name: string;
title: string;
email: string;
businessName: string;
logo?: string;
website?: string;
}