main
ts 34 lines 611 Bytes
Raw
1 export type TransactionStatus =
2 | "pending"
3 | "processing"
4 | "completed"
5 | "failed";
6
7 export type Currency = "USD" | "EUR" | "GBP" | "NGN" | "KES" | "GHS";
8
9 export interface Transaction {
10 id: string;
11 amount: number;
12 currency: Currency;
13 status: TransactionStatus;
14 sender: string;
15 recipient: string;
16 recipientName: string;
17 timestamp: Date;
18 description?: string;
19 fee: number;
20 exchangeRate?: number;
21 }
22
23 export interface ExchangeRate {
24 from: Currency;
25 to: Currency;
26 rate: number;
27 }
28
29 export interface Recipient {
30 id: string;
31 name: string;
32 email: string;
33 avatar?: string;
34 }