fix(core): update
This commit is contained in:
parent
9724813028
commit
53aada4638
@ -1,5 +1,5 @@
|
|||||||
export abstract class AcCsvParser<T> {
|
export abstract class AcCsvParser<T> {
|
||||||
public abstract paymentProviderName: string;
|
public abstract paymentProviderName: string;
|
||||||
public abstract transactionArray: T[];
|
public abstract transactionArray: T[];
|
||||||
public abstract async getTransactions(): Promise<T[]>;
|
public abstract getTransactions(): Promise<T[]>;
|
||||||
}
|
}
|
1
ts/abstractclasses/index.ts
Normal file
1
ts/abstractclasses/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './csvparser';
|
@ -1,3 +1,3 @@
|
|||||||
import * as plugins from './finplus-interfaces.plugins';
|
export * from './abstractclasses';
|
||||||
|
export * from './interfaces';
|
||||||
|
|
||||||
export * from './interfaces/csvparser';
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
export * from './csvparser';
|
|
36
ts/interfaces/paymentaccount.ts
Normal file
36
ts/interfaces/paymentaccount.ts
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import { IVoucher } from './voucher';
|
||||||
|
|
||||||
|
export interface IMonthlyCheckpoint {
|
||||||
|
start: number;
|
||||||
|
end: number;
|
||||||
|
pdfVoucher: IVoucher;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IFinplusPaymentAccount {
|
||||||
|
finplusPaymentAccountId: 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
21
ts/interfaces/transaction.ts
Normal file
21
ts/interfaces/transaction.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { IVoucher } from "./voucher";
|
||||||
|
|
||||||
|
export interface IFinplusTransaction {
|
||||||
|
finplusTransactionId: string;
|
||||||
|
data: {
|
||||||
|
finplusPaymentAccountId: string;
|
||||||
|
originTransactionId: string;
|
||||||
|
originAccountId: string;
|
||||||
|
additionalIds: string[];
|
||||||
|
date: number;
|
||||||
|
amount: number;
|
||||||
|
description: string;
|
||||||
|
name: string;
|
||||||
|
voucherData?: IVoucher;
|
||||||
|
justForLooks?: {
|
||||||
|
paymentAcountName: string;
|
||||||
|
voucherSizeInMB: number;
|
||||||
|
dateIso?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
5
ts/interfaces/voucher.ts
Normal file
5
ts/interfaces/voucher.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface IVoucher {
|
||||||
|
voucherDate: Date;
|
||||||
|
voucherId: string;
|
||||||
|
voucherStatus: 'uploaded' | 'transmitted';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user