6 Commits

Author SHA1 Message Date
fd3932976d 1.0.13 2021-04-15 01:06:14 +00:00
c0539be66e fix(core): update 2021-04-15 01:06:14 +00:00
00e5a96f05 1.0.12 2021-04-15 00:59:57 +00:00
53aada4638 fix(core): update 2021-04-15 00:59:56 +00:00
9724813028 1.0.11 2019-07-07 22:57:13 +02:00
e5b39e0709 fix(core): update 2019-07-07 22:57:12 +02:00
11 changed files with 11929 additions and 772 deletions

View File

@ -1,5 +1,6 @@
{
"gitzone": {
"projectType": "npm",
"module": {
"githost": "gitlab.com",
"gitscope": "financeplus",

12599
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +1,22 @@
{
"name": "@financeplus/finplus-interfaces",
"version": "1.0.10",
"version": "1.0.13",
"private": false,
"description": "an interface package for the financeplus organization",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"author": "Lossless GmbH",
"license": "MIT",
"scripts": {
"test": "(tstest test/)",
"build": "(tsbuild)",
"format": "(gitzone format)"
"test": "(tstest test/ --web)",
"build": "(tsbuild --web)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tstest": "^1.0.24",
"@pushrocks/tapbundle": "^3.0.11",
"@types/node": "^12.0.12",
"tslint": "^5.18.0",
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tstest": "^1.0.52",
"@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^14.14.39",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {},

View File

@ -0,0 +1,5 @@
export abstract class AcCsvParser<T> {
public abstract paymentProviderName: string;
public abstract transactionArray: T[];
public abstract getTransactions(): Promise<T[]>;
}

View File

@ -0,0 +1 @@
export * from './csvparser';

View File

@ -1,3 +1,3 @@
import * as plugins from './finplus-interfaces.plugins';
export * from './abstractclasses';
export * from './interfaces';
export * from './interfaces/csvparser';

View File

@ -1,4 +0,0 @@
export abstract class AcCsvParser<T> {
public abstract transactionArray: T[];
public abstract async getTransactions(): Promise<T[]>;
}

View File

@ -1 +1,3 @@
export * from './csvparser';
export * from './paymentaccount';
export * from './transaction';
export * from './voucher';

View 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;
};
};
};
}

View 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
View File

@ -0,0 +1,5 @@
export interface IVoucher {
voucherDate: Date;
voucherId: string;
voucherStatus: 'uploaded' | 'transmitted';
}