-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
IOU.ts
59 lines (55 loc) · 1.4 KB
/
IOU.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
import type {ValueOf} from 'type-fest';
import type CONST from '@src/CONST';
import type {Icon} from './OnyxCommon';
type Participant = {
accountID?: number;
login?: string;
displayName?: string;
isPolicyExpenseChat?: boolean;
isOwnPolicyExpenseChat?: boolean;
chatType?: ValueOf<typeof CONST.REPORT.CHAT_TYPE>;
reportID?: string;
policyID?: string;
selected?: boolean;
searchText?: string;
alternateText?: string;
firstName?: string;
icons?: Icon[];
keyForList?: string;
lastName?: string;
phoneNumber?: string;
text?: string;
isSelected?: boolean;
};
type Split = {
email?: string;
amount?: number;
accountID?: number;
chatReportID?: string;
iouReportID?: string;
reportActionID?: string;
transactionID?: string;
policyID?: string;
createdChatReportActionID?: string;
createdIOUReportActionID?: string;
reportPreviewReportActionID?: string;
};
type IOU = {
id: string;
amount?: number;
/** Selected Currency Code of the current IOU */
currency?: string;
comment?: string;
category?: string;
merchant?: string;
created?: string;
receiptPath?: string;
receiptFilename?: string;
transactionID?: string;
participants?: Participant[];
tag?: string;
billable?: boolean;
isSplitRequest?: boolean;
};
export default IOU;
export type {Participant, Split};