import { AccountTypeV2, AccountUsage, LoanTypeV2, SavingsType } from './Account.enum'; import { Aggregator } from './Aggregator.interface'; import { Transaction } from './Transaction.interface'; export interface Account { id: string; organizationId: string; projectId: string; customerId: string; balance: number; balanceDate: string; currency: string; type: AccountTypeV2; usage: AccountUsage; owners: Owner[]; iban: string; bic: string; name: string; bank: BankV2; country: string; createdAt: string; updatedAt: string; coming: number; details: Details; aggregator?: Aggregator; transactions: Transaction[]; dailyBalances: DailyBalance[]; } export interface Owner { name: string; } export interface BankV2 { id: string; logoUrl?: string; name: string; country: string; } export interface Details { savings?: Savings; loan?: Loan; } export interface DailyBalance { date: string; balance: number; } export interface Savings { type: SavingsType; openedAt: string; maximumAmount: number; interestRate: number; } export interface Loan { type: LoanTypeV2; amount: number; startDate: string; endDate: string; duration: number; insuranceLabel: string; payment: number; remainingCapital: number; interestRate: number; }