balance.ts 489 B

123456789101112131415161718192021
  1. export interface WalletBalanceResponse {
  2. withdrawableBalance: number;
  3. totalEarned: number;
  4. totalWithdrawn: number;
  5. totalStoreCommission: number;
  6. pendingWithdrawal: number;
  7. recentTransactions: UnifiedTransaction[];
  8. }
  9. export type TransactionCategory = 'donation'|'commission'|'other';
  10. export interface UnifiedTransaction {
  11. id: number;
  12. category: TransactionCategory;
  13. type: string;
  14. amount: number;
  15. balance: number;
  16. refID: string|null;
  17. description: string;
  18. createdAt: string;
  19. }