export interface DcbTransaction {
  id: string;
  msisdn: string;
  operator: string;
  country: string;
  amount: number;
  currency: string;
  status: TransactionStatus;
  productId?: string;
  productName: string;
  transactionDate: Date;
  createdAt: Date;
  errorCode?: string;
  errorMessage?: string;
}

export interface DcbAnalytics {
  totalRevenue: number;
  totalTransactions: number;
  successRate: number;
  averageAmount: number;
  topOperators: { operator: string; revenue: number; count: number }[];
  dailyStats: { date: string; revenue: number; transactions: number }[];
  monthlyGrowth: number;
  todayStats: {
    revenue: number;
    transactions: number;
    successCount: number;
    failedCount: number;
  };
}

export interface TransactionStats {
  pending: number;
  successful: number;
  failed: number;
  refunded: number;
}

export type TransactionStatus = 
  | 'PENDING' 
  | 'SUCCESS' 
  | 'FAILED' 
  | 'REFUNDED';

export interface DcbOperator {
  id: string;
  name: string;
  code: string;
  country: string;
  status: 'ACTIVE' | 'INACTIVE';
  successRate: number;
}