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