portablefinance/ts/interfaces/paymentaccount.ts
2023-11-16 02:09:48 +01:00

37 lines
825 B
TypeScript

import { type IVoucher } from './voucher.js';
export interface IMonthlyCheckpoint {
start: number;
end: number;
pdfVoucher: IVoucher;
}
export interface IPaymentAccount {
id: string;
data: {
status: 'active' | 'inactive' | 'deleted';
connectionData: {
bankAdapterType: string;
credentials: unknown;
};
currency: 'EUR' | 'USD';
name: string;
checkpoints: {
[key: string]: {
1: IMonthlyCheckpoint;
2: IMonthlyCheckpoint;
3: IMonthlyCheckpoint;
4: IMonthlyCheckpoint;
5: IMonthlyCheckpoint;
6: IMonthlyCheckpoint;
7: IMonthlyCheckpoint;
8: IMonthlyCheckpoint;
9: IMonthlyCheckpoint;
10: IMonthlyCheckpoint;
11: IMonthlyCheckpoint;
12: IMonthlyCheckpoint;
};
};
};
}