-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (46 loc) · 1.1 KB
/
types.ts
File metadata and controls
50 lines (46 loc) · 1.1 KB
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
// Assets: Liquid (Cash), Term, Gold/Foreign Currency, Funds
export interface Asset {
id: string;
type: 'liquid' | 'term' | 'gold_currency' | 'funds';
name: string;
value: number;
currency: string;
details?: string;
}
// Liabilities: Credit Card (Total Limit, Current Debt, Closing Date), Personal Debts
export interface Liability {
id: string;
type: 'credit_card' | 'personal_debt';
name: string;
totalLimit?: number;
currentDebt: number;
dueDate?: string;
debtorName?: string;
details?: string;
}
// Receivables: From whom, Amount, Due Date
export interface Receivable {
id: string;
debtor: string;
amount: number;
dueDate: string;
details?: string;
}
// StrategicInstallments: Installment amount, End date, Remaining months
export interface StrategicInstallment {
id: string;
installmentAmount: number;
endDate: string;
remainingMonths: number;
name?: string;
details?: string;
}
// Transaction: Income/Expense movement
export interface Transaction {
id: string;
type: 'asset' | 'liability';
name: string;
amount: number;
date: string;
details?: string;
}