Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
00e5a96f05 | |||
53aada4638 | |||
9724813028 | |||
e5b39e0709 | |||
12242006aa | |||
2e0164eaf0 |
@ -1,5 +1,5 @@
|
|||||||
# gitzone standard
|
# gitzone ci_default
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -49,23 +49,11 @@ testLTS:
|
|||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
testSTABLE:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
|
||||||
- npmci npm install
|
|
||||||
- npmci npm test
|
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install lts
|
||||||
- npmci npm publish
|
- npmci npm publish
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
@ -78,19 +66,11 @@ release:
|
|||||||
# ====================
|
# ====================
|
||||||
codequality:
|
codequality:
|
||||||
stage: metadata
|
stage: metadata
|
||||||
image: docker:stable
|
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
services:
|
|
||||||
- docker:stable-dind
|
|
||||||
script:
|
script:
|
||||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
- npmci command npm install -g tslint typescript
|
||||||
- docker run
|
- npmci npm install
|
||||||
--env SOURCE_CODE="$PWD"
|
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
||||||
--volume "$PWD":/code
|
|
||||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
|
||||||
artifacts:
|
|
||||||
paths: [codeclimate.json]
|
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- priv
|
- priv
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@financeplus/finplus-interfaces",
|
"name": "@financeplus/finplus-interfaces",
|
||||||
"version": "1.0.9",
|
"version": "1.0.12",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@financeplus/finplus-interfaces",
|
"name": "@financeplus/finplus-interfaces",
|
||||||
"version": "1.0.9",
|
"version": "1.0.12",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "an interface package for the financeplus organization",
|
"description": "an interface package for the financeplus organization",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@ -20,5 +20,15 @@
|
|||||||
"tslint": "^5.18.0",
|
"tslint": "^5.18.0",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {}
|
"dependencies": {},
|
||||||
|
"files": [
|
||||||
|
"ts/*",
|
||||||
|
"ts_web/*",
|
||||||
|
"dist/*",
|
||||||
|
"dist_web/*",
|
||||||
|
"assets/*",
|
||||||
|
"cli.js",
|
||||||
|
"npmextra.json",
|
||||||
|
"readme.md"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
5
ts/abstractclasses/csvparser.ts
Normal file
5
ts/abstractclasses/csvparser.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export abstract class AcCsvParser<T> {
|
||||||
|
public abstract paymentProviderName: string;
|
||||||
|
public abstract transactionArray: 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,4 +1,3 @@
|
|||||||
import * as plugins from './finplus-interfaces.plugins';
|
export * from './abstractclasses';
|
||||||
|
export * from './interfaces';
|
||||||
export * from './interfaces/csvparser';
|
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
export abstract class AcCsvParser<T> {
|
|
||||||
public abstract transactionArray: T[];
|
|
||||||
public abstract async getTransactions (): Promise<T[]>;
|
|
||||||
}
|
|
@ -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';
|
||||||
|
}
|
Reference in New Issue
Block a user