import { Bank } from './bank'; import { Transaction } from "./transaction"; import { BankProductCategory } from "./bank-product"; export interface BankAccount { id: string; bankAccessId: string; category?: BankProductCategory; title?: string; accountNumber: string; iban?: string; updatedAt: Date; balance?: number; currency?: string; overdraftLimit?: number; availableBalance?: number; bank?: Bank; isPaymentAvailable: boolean; transactions: Transaction[]; /** false when the transactions come without AI/Connect categories */ categorized?: boolean; hasError?: boolean; errorType?: 'EXPIRED_AUTH' | 'REFRESH_FAILED'; }