forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
38 lines (36 loc) · 855 Bytes
/
Copy pathindex.ts
File metadata and controls
38 lines (36 loc) · 855 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
export interface Participant {
id: string;
userId?: string;
name: string;
avatar?: string; // URL to avatar image
amountOwed: number;
amountPaid?: number;
amountDue?: number;
status: 'paid' | 'pending' | 'partial';
isCurrentUser?: boolean;
walletAddress?: string;
email?: string;
}
export interface Item {
id?: string;
name: string;
price: number;
quantity?: number;
unitPrice?: number;
confidence?: number;
assignedToIds?: string[];
}
export interface Split {
id: string;
title: string;
totalAmount: number;
amountPaid?: number;
currency: string;
date: string;
status: 'active' | 'completed' | 'partial';
receiptUrl?: string;
creatorWalletAddress?: string;
preferredCurrency?: string;
participants: Participant[];
items?: Item[];
}