// Debt Analysis Types - Using Credit Report Data

export interface DebtAnalysisAccount {
  id: string;
  accountName: string;
  accountType: string;
  currentBalance: number;
  creditLimit?: number;
  monthlyPayment: number;
  paymentHistory: string;
  accountStatus: string;
  openDate?: string;
  lastActivityDate?: string;
  creditorName: string;
  utilizationRate?: number;
  latePayments: {
    days30: number;
    days60: number;
    days90: number;
  };
  isCollection: boolean;
  isClosed: boolean;
}

export interface DebtAnalysisSummary {
  totalOpenBalances: number;
  totalMonthlyPayments: number;
  totalAccounts: number;
  openAccounts: number;
  closedAccounts: number;
  collectionAccounts: number;
  averageUtilization: number;
  totalCreditLimit: number;
  debtToIncomeRatio?: number;
}

// Transformed data types for UI components
export interface DebtAnalysisTableData {
  id: number;
  account: string;
  balance: string;
  monthlyPayments: string;
  paymentHistory: string;
  borderLeftColor: string;
}

export interface CreditCardTableData {
  id: number;
  title: string;
  balance: string;
  limit?: string;
  cardUsage?: string;
  paymentHistory: string;
  borderLeftColor: string;
}

export interface StudentLoanTableData {
  id: number;
  title: string;
  balance: string;
  months?: string;
  monthlyPayment?: string;
  paymentHistory: string;
  borderLeftColor: string;
}

export interface AutoLoanTableData {
  id: number;
  title: string;
  balance: string;
  monthlyPayment?: string;
  paymentHistory: string;
  borderLeftColor: string;
}

export interface CollectionTableData {
  id: number;
  title: string;
  balance: string;
  monthlyPayment?: string;
  paymentHistory: string;
  borderLeftColor: string;
}
