-
Notifications
You must be signed in to change notification settings - Fork 39
/
types.d.ts
59 lines (53 loc) · 1.26 KB
/
types.d.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
interface CompanyDetails {
email?: string | null;
companyName?: string | null;
companyAddress?: string | null;
companyCity?: string | null;
companyState?: string | null;
companyCountry?: string | null;
companyLogo?: string | null;
companyTaxId?: string | null;
companyZip?: string | null;
}
interface YourDetails {
yourEmail?: string | null;
yourName?: string | null;
yourAddress?: string | null;
yourCity?: string | null;
yourState?: string | null;
yourCountry?: string | null;
yourLogo?: string | null;
yourTaxId?: string | null;
yourZip?: string | null;
}
interface InvoiceItemDetails {
note?: string | null;
discount?: string | null;
taxRate?: string | null;
items: Item[];
currency?: string;
}
interface Item {
itemDescription: string;
qty?: number;
amount?: number;
}
interface InvoiceTerms {
invoiceNumber?: string | null;
issueDate?: string | null;
dueDate?: string | null;
}
interface PaymentDetails {
bankName?: string | null;
accountNumber?: string | null;
accountName?: string | null;
routingCode?: string | null;
swiftCode?: string | null;
ifscCode?: string | null;
currency?: string;
}
type InvoiceData = PaymentDetails &
InvoiceTerms &
InvoiceItemDetails &
YourDetails &
CompanyDetails;