fints-lib 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README_advanced_usage.md +70 -0
- package/dist/client.d.ts +89 -0
- package/dist/client.js +473 -0
- package/dist/client.js.map +1 -0
- package/dist/constants.d.ts +15 -0
- package/dist/constants.js +19 -0
- package/dist/constants.js.map +1 -0
- package/dist/dialog.d.ts +111 -0
- package/dist/dialog.js +187 -0
- package/dist/dialog.js.map +1 -0
- package/dist/error-codes.d.ts +39 -0
- package/dist/error-codes.js +228 -0
- package/dist/error-codes.js.map +1 -0
- package/dist/errors/fints-error.d.ts +55 -0
- package/dist/errors/fints-error.js +131 -0
- package/dist/errors/fints-error.js.map +1 -0
- package/dist/errors/response-error.d.ts +6 -0
- package/dist/errors/response-error.js +20 -0
- package/dist/errors/response-error.js.map +1 -0
- package/dist/errors/tan-required-error.d.ts +40 -0
- package/dist/errors/tan-required-error.js +54 -0
- package/dist/errors/tan-required-error.js.map +1 -0
- package/dist/format.d.ts +81 -0
- package/dist/format.js +112 -0
- package/dist/format.js.map +1 -0
- package/dist/http-connection.d.ts +36 -0
- package/dist/http-connection.js +109 -0
- package/dist/http-connection.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.js +13 -0
- package/dist/logger.js.map +1 -0
- package/dist/mt535.d.ts +19 -0
- package/dist/mt535.js +153 -0
- package/dist/mt535.js.map +1 -0
- package/dist/mt940-86-structured.d.ts +47 -0
- package/dist/mt940-86-structured.js +213 -0
- package/dist/mt940-86-structured.js.map +1 -0
- package/dist/pain-formats.d.ts +50 -0
- package/dist/pain-formats.js +7 -0
- package/dist/pain-formats.js.map +1 -0
- package/dist/pain.d.ts +21 -0
- package/dist/pain.js +315 -0
- package/dist/pain.js.map +1 -0
- package/dist/parse.d.ts +46 -0
- package/dist/parse.js +97 -0
- package/dist/parse.js.map +1 -0
- package/dist/pin-tan-client.d.ts +47 -0
- package/dist/pin-tan-client.js +35 -0
- package/dist/pin-tan-client.js.map +1 -0
- package/dist/request.d.ts +90 -0
- package/dist/request.js +102 -0
- package/dist/request.js.map +1 -0
- package/dist/response.d.ts +104 -0
- package/dist/response.js +197 -0
- package/dist/response.js.map +1 -0
- package/dist/return-value.d.ts +37 -0
- package/dist/return-value.js +31 -0
- package/dist/return-value.js.map +1 -0
- package/dist/segments/hibpa.d.ts +22 -0
- package/dist/segments/hibpa.js +36 -0
- package/dist/segments/hibpa.js.map +1 -0
- package/dist/segments/hiccs.d.ts +14 -0
- package/dist/segments/hiccs.js +28 -0
- package/dist/segments/hiccs.js.map +1 -0
- package/dist/segments/hiccss.d.ts +13 -0
- package/dist/segments/hiccss.js +24 -0
- package/dist/segments/hiccss.js.map +1 -0
- package/dist/segments/hicdb.d.ts +17 -0
- package/dist/segments/hicdb.js +62 -0
- package/dist/segments/hicdb.js.map +1 -0
- package/dist/segments/hicdbs.d.ts +16 -0
- package/dist/segments/hicdbs.js +28 -0
- package/dist/segments/hicdbs.js.map +1 -0
- package/dist/segments/hidse.d.ts +14 -0
- package/dist/segments/hidse.js +28 -0
- package/dist/segments/hidse.js.map +1 -0
- package/dist/segments/hidses.d.ts +13 -0
- package/dist/segments/hidses.js +24 -0
- package/dist/segments/hidses.js.map +1 -0
- package/dist/segments/hikaz.d.ts +16 -0
- package/dist/segments/hikaz.js +31 -0
- package/dist/segments/hikaz.js.map +1 -0
- package/dist/segments/hikazs.d.ts +16 -0
- package/dist/segments/hikazs.js +28 -0
- package/dist/segments/hikazs.js.map +1 -0
- package/dist/segments/hirmg.d.ts +17 -0
- package/dist/segments/hirmg.js +39 -0
- package/dist/segments/hirmg.js.map +1 -0
- package/dist/segments/hirms.d.ts +16 -0
- package/dist/segments/hirms.js +37 -0
- package/dist/segments/hirms.js.map +1 -0
- package/dist/segments/hisal.d.ts +22 -0
- package/dist/segments/hisal.js +33 -0
- package/dist/segments/hisal.js.map +1 -0
- package/dist/segments/hisals.d.ts +16 -0
- package/dist/segments/hisals.js +28 -0
- package/dist/segments/hisals.js.map +1 -0
- package/dist/segments/hispa.d.ts +16 -0
- package/dist/segments/hispa.js +31 -0
- package/dist/segments/hispa.js.map +1 -0
- package/dist/segments/hispas.d.ts +14 -0
- package/dist/segments/hispas.js +28 -0
- package/dist/segments/hispas.js.map +1 -0
- package/dist/segments/hisyn.d.ts +15 -0
- package/dist/segments/hisyn.js +26 -0
- package/dist/segments/hisyn.js.map +1 -0
- package/dist/segments/hitan.d.ts +18 -0
- package/dist/segments/hitan.js +66 -0
- package/dist/segments/hitan.js.map +1 -0
- package/dist/segments/hitans.d.ts +18 -0
- package/dist/segments/hitans.js +46 -0
- package/dist/segments/hitans.js.map +1 -0
- package/dist/segments/hiupd.d.ts +16 -0
- package/dist/segments/hiupd.js +34 -0
- package/dist/segments/hiupd.js.map +1 -0
- package/dist/segments/hiwpd.d.ts +15 -0
- package/dist/segments/hiwpd.js +26 -0
- package/dist/segments/hiwpd.js.map +1 -0
- package/dist/segments/hiwpds.d.ts +16 -0
- package/dist/segments/hiwpds.js +32 -0
- package/dist/segments/hiwpds.js.map +1 -0
- package/dist/segments/hkccs.d.ts +18 -0
- package/dist/segments/hkccs.js +32 -0
- package/dist/segments/hkccs.js.map +1 -0
- package/dist/segments/hkcdb.d.ts +19 -0
- package/dist/segments/hkcdb.js +30 -0
- package/dist/segments/hkcdb.js.map +1 -0
- package/dist/segments/hkdse.d.ts +18 -0
- package/dist/segments/hkdse.js +27 -0
- package/dist/segments/hkdse.js.map +1 -0
- package/dist/segments/hkend.d.ts +12 -0
- package/dist/segments/hkend.js +24 -0
- package/dist/segments/hkend.js.map +1 -0
- package/dist/segments/hkidn.d.ts +19 -0
- package/dist/segments/hkidn.js +33 -0
- package/dist/segments/hkidn.js.map +1 -0
- package/dist/segments/hkkaz.d.ts +20 -0
- package/dist/segments/hkkaz.js +42 -0
- package/dist/segments/hkkaz.js.map +1 -0
- package/dist/segments/hksal.d.ts +18 -0
- package/dist/segments/hksal.js +35 -0
- package/dist/segments/hksal.js.map +1 -0
- package/dist/segments/hkspa.d.ts +18 -0
- package/dist/segments/hkspa.js +31 -0
- package/dist/segments/hkspa.js.map +1 -0
- package/dist/segments/hksyn.d.ts +16 -0
- package/dist/segments/hksyn.js +31 -0
- package/dist/segments/hksyn.js.map +1 -0
- package/dist/segments/hktab.d.ts +17 -0
- package/dist/segments/hktab.js +31 -0
- package/dist/segments/hktab.js.map +1 -0
- package/dist/segments/hktan.d.ts +19 -0
- package/dist/segments/hktan.js +66 -0
- package/dist/segments/hktan.js.map +1 -0
- package/dist/segments/hkvvb.d.ts +17 -0
- package/dist/segments/hkvvb.js +39 -0
- package/dist/segments/hkvvb.js.map +1 -0
- package/dist/segments/hkwpd.d.ts +21 -0
- package/dist/segments/hkwpd.js +39 -0
- package/dist/segments/hkwpd.js.map +1 -0
- package/dist/segments/hnhbk.d.ts +22 -0
- package/dist/segments/hnhbk.js +54 -0
- package/dist/segments/hnhbk.js.map +1 -0
- package/dist/segments/hnhbs.d.ts +16 -0
- package/dist/segments/hnhbs.js +29 -0
- package/dist/segments/hnhbs.js.map +1 -0
- package/dist/segments/hnsha.d.ts +18 -0
- package/dist/segments/hnsha.js +30 -0
- package/dist/segments/hnsha.js.map +1 -0
- package/dist/segments/hnshk.d.ts +21 -0
- package/dist/segments/hnshk.js +44 -0
- package/dist/segments/hnshk.js.map +1 -0
- package/dist/segments/hnvsd.d.ts +25 -0
- package/dist/segments/hnvsd.js +31 -0
- package/dist/segments/hnvsd.js.map +1 -0
- package/dist/segments/hnvsk.d.ts +15 -0
- package/dist/segments/hnvsk.js +51 -0
- package/dist/segments/hnvsk.js.map +1 -0
- package/dist/segments/index.d.ts +40 -0
- package/dist/segments/index.js +57 -0
- package/dist/segments/index.js.map +1 -0
- package/dist/segments/segment.d.ts +60 -0
- package/dist/segments/segment.js +74 -0
- package/dist/segments/segment.js.map +1 -0
- package/dist/tan-method.d.ts +36 -0
- package/dist/tan-method.js +224 -0
- package/dist/tan-method.js.map +1 -0
- package/dist/types.d.ts +386 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +55 -0
- package/dist/utils.js +178 -0
- package/dist/utils.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SEPAAccount } from "../types";
|
|
2
|
+
export declare class HKKAZProps {
|
|
3
|
+
segNo: number;
|
|
4
|
+
version: number;
|
|
5
|
+
account: SEPAAccount;
|
|
6
|
+
startDate: Date;
|
|
7
|
+
endDate: Date;
|
|
8
|
+
touchdown: string;
|
|
9
|
+
}
|
|
10
|
+
declare const HKKAZ_base: import("../types").Constructable<HKKAZProps & import("./segment").Segment<HKKAZProps>>;
|
|
11
|
+
/**
|
|
12
|
+
* HKKAZ (Kontoumsätze)
|
|
13
|
+
* Section C.2.1.1.1.2
|
|
14
|
+
*/
|
|
15
|
+
export declare class HKKAZ extends HKKAZ_base {
|
|
16
|
+
type: string;
|
|
17
|
+
protected serialize(): (string | string[])[];
|
|
18
|
+
protected deserialize(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKKAZ = exports.HKKAZProps = void 0;
|
|
4
|
+
const format_1 = require("../format");
|
|
5
|
+
const segment_1 = require("./segment");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
class HKKAZProps {
|
|
8
|
+
}
|
|
9
|
+
exports.HKKAZProps = HKKAZProps;
|
|
10
|
+
/**
|
|
11
|
+
* HKKAZ (Kontoumsätze)
|
|
12
|
+
* Section C.2.1.1.1.2
|
|
13
|
+
*/
|
|
14
|
+
class HKKAZ extends (0, segment_1.SegmentClass)(HKKAZProps) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.type = "HKKAZ";
|
|
18
|
+
}
|
|
19
|
+
serialize() {
|
|
20
|
+
const { version, account, endDate, startDate, touchdown } = this;
|
|
21
|
+
const { iban, bic, accountNumber, subAccount, blz } = account;
|
|
22
|
+
if (![4, 5, 6, 7].includes(version)) {
|
|
23
|
+
throw new Error(`Unsupported HKKAZ version ${version}.`);
|
|
24
|
+
}
|
|
25
|
+
const serializedAccount = version === 7
|
|
26
|
+
? [iban, bic, accountNumber, subAccount, String(constants_1.COUNTRY_CODE), blz]
|
|
27
|
+
: [accountNumber, subAccount, String(constants_1.COUNTRY_CODE), blz];
|
|
28
|
+
return [
|
|
29
|
+
serializedAccount,
|
|
30
|
+
format_1.Format.jn(false),
|
|
31
|
+
format_1.Format.date(startDate),
|
|
32
|
+
format_1.Format.date(endDate),
|
|
33
|
+
format_1.Format.empty(),
|
|
34
|
+
format_1.Format.stringEscaped(touchdown),
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
deserialize() {
|
|
38
|
+
throw new Error("Not implemented.");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.HKKAZ = HKKAZ;
|
|
42
|
+
//# sourceMappingURL=hkkaz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hkkaz.js","sourceRoot":"","sources":["../../src/segments/hkkaz.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AACnC,uCAAyC;AAEzC,4CAA4C;AAE5C,MAAa,UAAU;CAOtB;AAPD,gCAOC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAyB1B,CAAC;IAvBa,SAAS;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACjE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;QAC9D,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,OAAO,GAAG,CAAC,CAAC;QAC7D,CAAC;QACD,MAAM,iBAAiB,GACnB,OAAO,KAAK,CAAC;YACT,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,CAAC,wBAAY,CAAC,EAAE,GAAG,CAAC;YACnE,CAAC,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,MAAM,CAAC,wBAAY,CAAC,EAAE,GAAG,CAAC,CAAC;QACjE,OAAO;YACH,iBAAiB;YACjB,eAAM,CAAC,EAAE,CAAC,KAAK,CAAC;YAChB,eAAM,CAAC,IAAI,CAAC,SAAS,CAAC;YACtB,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACpB,eAAM,CAAC,KAAK,EAAE;YACd,eAAM,CAAC,aAAa,CAAC,SAAS,CAAC;SAClC,CAAC;IACN,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;CACJ;AA1BD,sBA0BC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SEPAAccount } from "../types";
|
|
2
|
+
export declare class HKSALProps {
|
|
3
|
+
segNo: number;
|
|
4
|
+
version: number;
|
|
5
|
+
account: SEPAAccount;
|
|
6
|
+
touchdown: string;
|
|
7
|
+
}
|
|
8
|
+
declare const HKSAL_base: import("../types").Constructable<HKSALProps & import("./segment").Segment<HKSALProps>>;
|
|
9
|
+
/**
|
|
10
|
+
* HKSAL (Saldenabfrage)
|
|
11
|
+
* Section C.2.1.2.2
|
|
12
|
+
*/
|
|
13
|
+
export declare class HKSAL extends HKSAL_base {
|
|
14
|
+
type: string;
|
|
15
|
+
protected serialize(): (string | string[])[];
|
|
16
|
+
protected deserialize(): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKSAL = exports.HKSALProps = void 0;
|
|
4
|
+
const format_1 = require("../format");
|
|
5
|
+
const segment_1 = require("./segment");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
class HKSALProps {
|
|
8
|
+
}
|
|
9
|
+
exports.HKSALProps = HKSALProps;
|
|
10
|
+
/**
|
|
11
|
+
* HKSAL (Saldenabfrage)
|
|
12
|
+
* Section C.2.1.2.2
|
|
13
|
+
*/
|
|
14
|
+
class HKSAL extends (0, segment_1.SegmentClass)(HKSALProps) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.type = "HKSAL";
|
|
18
|
+
}
|
|
19
|
+
serialize() {
|
|
20
|
+
const { version, account, touchdown } = this;
|
|
21
|
+
const { iban, bic, accountNumber, subAccount, blz } = account;
|
|
22
|
+
if (![4, 5, 6, 7].includes(version)) {
|
|
23
|
+
throw new Error(`Unsupported HKSAL version ${version}.`);
|
|
24
|
+
}
|
|
25
|
+
const serializedAccount = version === 7
|
|
26
|
+
? [iban, bic, accountNumber, subAccount, String(constants_1.COUNTRY_CODE), blz]
|
|
27
|
+
: [accountNumber, subAccount, String(constants_1.COUNTRY_CODE), blz];
|
|
28
|
+
return [serializedAccount, format_1.Format.jn(false), format_1.Format.empty(), format_1.Format.stringEscaped(touchdown)];
|
|
29
|
+
}
|
|
30
|
+
deserialize() {
|
|
31
|
+
throw new Error("Not implemented.");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.HKSAL = HKSAL;
|
|
35
|
+
//# sourceMappingURL=hksal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hksal.js","sourceRoot":"","sources":["../../src/segments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
accNo?: number;
|
|
5
|
+
segNo: number;
|
|
6
|
+
}
|
|
7
|
+
declare const HKSPA_base: import("..").Constructable<HKSPAProps & import("./segment").Segment<HKSPAProps>>;
|
|
8
|
+
/**
|
|
9
|
+
* HKSPA (SEPA-Kontoverbindung anfordern)
|
|
10
|
+
* Section C.10.1.3
|
|
11
|
+
*/
|
|
12
|
+
export declare class HKSPA extends HKSPA_base {
|
|
13
|
+
type: string;
|
|
14
|
+
protected defaults(): void;
|
|
15
|
+
protected serialize(): string[];
|
|
16
|
+
protected deserialize(): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKSPA = exports.HKSPAProps = void 0;
|
|
4
|
+
const format_1 = require("../format");
|
|
5
|
+
const segment_1 = require("./segment");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
class HKSPAProps {
|
|
8
|
+
}
|
|
9
|
+
exports.HKSPAProps = HKSPAProps;
|
|
10
|
+
/**
|
|
11
|
+
* HKSPA (SEPA-Kontoverbindung anfordern)
|
|
12
|
+
* Section C.10.1.3
|
|
13
|
+
*/
|
|
14
|
+
class HKSPA extends (0, segment_1.SegmentClass)(HKSPAProps) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.type = "HKSPA";
|
|
18
|
+
}
|
|
19
|
+
defaults() {
|
|
20
|
+
this.version = 1;
|
|
21
|
+
}
|
|
22
|
+
serialize() {
|
|
23
|
+
const { accNo, subAccFeature, blz } = this;
|
|
24
|
+
return accNo ? [format_1.Format.num(accNo), subAccFeature, format_1.Format.num(constants_1.COUNTRY_CODE), blz] : [];
|
|
25
|
+
}
|
|
26
|
+
deserialize() {
|
|
27
|
+
throw new Error("Not implemented.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.HKSPA = HKSPA;
|
|
31
|
+
//# sourceMappingURL=hkspa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hkspa.js","sourceRoot":"","sources":["../../src/segments/hkspa.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AACnC,uCAAyC;AACzC,4CAA4C;AAE5C,MAAa,UAAU;CAKtB;AALD,gCAKC;AACD;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAc1B,CAAC;IAZa,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAES,SAAS;QACf,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAC3C,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,eAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,eAAM,CAAC,GAAG,CAAC,wBAAY,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1F,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;CACJ;AAfD,sBAeC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class HKSYNProps {
|
|
2
|
+
segNo: number;
|
|
3
|
+
mode?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const HKSYN_base: import("..").Constructable<HKSYNProps & import("./segment").Segment<HKSYNProps>>;
|
|
6
|
+
/**
|
|
7
|
+
* HKSYN (Synchronisation)
|
|
8
|
+
* Section C.8.1.2
|
|
9
|
+
*/
|
|
10
|
+
export declare class HKSYN extends HKSYN_base {
|
|
11
|
+
type: string;
|
|
12
|
+
protected defaults(): void;
|
|
13
|
+
protected serialize(): string[];
|
|
14
|
+
protected deserialize(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKSYN = exports.HKSYNProps = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const format_1 = require("../format");
|
|
6
|
+
const segment_1 = require("./segment");
|
|
7
|
+
class HKSYNProps {
|
|
8
|
+
}
|
|
9
|
+
exports.HKSYNProps = HKSYNProps;
|
|
10
|
+
/**
|
|
11
|
+
* HKSYN (Synchronisation)
|
|
12
|
+
* Section C.8.1.2
|
|
13
|
+
*/
|
|
14
|
+
class HKSYN extends (0, segment_1.SegmentClass)(HKSYNProps) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.type = "HKSYN";
|
|
18
|
+
}
|
|
19
|
+
defaults() {
|
|
20
|
+
this.version = 3;
|
|
21
|
+
this.mode = constants_1.SYNC_MODE_NEW_CUSTOMER_ID;
|
|
22
|
+
}
|
|
23
|
+
serialize() {
|
|
24
|
+
return [format_1.Format.num(this.mode)];
|
|
25
|
+
}
|
|
26
|
+
deserialize() {
|
|
27
|
+
throw new Error("Not implemented.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.HKSYN = HKSYN;
|
|
31
|
+
//# sourceMappingURL=hksyn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hksyn.js","sourceRoot":"","sources":["../../src/segments/hksyn.ts"],"names":[],"mappings":";;;AAAA,4CAAyD;AACzD,sCAAmC;AACnC,uCAAyC;AAEzC,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAc1B,CAAC;IAZa,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,qCAAyB,CAAC;IAC1C,CAAC;IAES,SAAS;QACf,OAAO,CAAC,eAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnC,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;CACJ;AAfD,sBAeC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class HKTABProps {
|
|
2
|
+
segNo: number;
|
|
3
|
+
tanClass: string;
|
|
4
|
+
mode: number;
|
|
5
|
+
}
|
|
6
|
+
declare const HKTAB_base: import("..").Constructable<HKTABProps & import("./segment").Segment<HKTABProps>>;
|
|
7
|
+
/**
|
|
8
|
+
* HKTAB (Verfügbare TAN-Medien ermitteln)
|
|
9
|
+
* Section C.2.1.2
|
|
10
|
+
*/
|
|
11
|
+
export declare class HKTAB extends HKTAB_base {
|
|
12
|
+
type: string;
|
|
13
|
+
protected defaults(): void;
|
|
14
|
+
protected serialize(): string[];
|
|
15
|
+
protected deserialize(): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKTAB = exports.HKTABProps = void 0;
|
|
4
|
+
const segment_1 = require("./segment");
|
|
5
|
+
const format_1 = require("../format");
|
|
6
|
+
class HKTABProps {
|
|
7
|
+
}
|
|
8
|
+
exports.HKTABProps = HKTABProps;
|
|
9
|
+
/**
|
|
10
|
+
* HKTAB (Verfügbare TAN-Medien ermitteln)
|
|
11
|
+
* Section C.2.1.2
|
|
12
|
+
*/
|
|
13
|
+
class HKTAB extends (0, segment_1.SegmentClass)(HKTABProps) {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.type = "HKTAB";
|
|
17
|
+
}
|
|
18
|
+
defaults() {
|
|
19
|
+
this.version = 5;
|
|
20
|
+
this.tanClass = "A";
|
|
21
|
+
this.mode = 0;
|
|
22
|
+
}
|
|
23
|
+
serialize() {
|
|
24
|
+
return [format_1.Format.num(this.mode), this.tanClass];
|
|
25
|
+
}
|
|
26
|
+
deserialize() {
|
|
27
|
+
throw new Error("Not implemented.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.HKTAB = HKTAB;
|
|
31
|
+
//# sourceMappingURL=hktab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hktab.js","sourceRoot":"","sources":["../../src/segments/hktab.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,sCAAmC;AAEnC,MAAa,UAAU;CAItB;AAJD,gCAIC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAe1B,CAAC;IAba,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IAClB,CAAC;IAES,SAAS;QACf,OAAO,CAAC,eAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;CACJ;AAhBD,sBAgBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class HKTANProps {
|
|
2
|
+
segNo: number;
|
|
3
|
+
version: number;
|
|
4
|
+
process: string;
|
|
5
|
+
segmentReference: string;
|
|
6
|
+
aref: string;
|
|
7
|
+
medium: string;
|
|
8
|
+
}
|
|
9
|
+
declare const HKTAN_base: import("..").Constructable<HKTANProps & import("./segment").Segment<HKTANProps>>;
|
|
10
|
+
/**
|
|
11
|
+
* HKTAN (TAN-Verfahren festlegen)
|
|
12
|
+
* Section B.5.1
|
|
13
|
+
*/
|
|
14
|
+
export declare class HKTAN extends HKTAN_base {
|
|
15
|
+
type: string;
|
|
16
|
+
protected deserialize(): void;
|
|
17
|
+
protected serialize(): string[];
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKTAN = exports.HKTANProps = void 0;
|
|
4
|
+
const segment_1 = require("./segment");
|
|
5
|
+
class HKTANProps {
|
|
6
|
+
}
|
|
7
|
+
exports.HKTANProps = HKTANProps;
|
|
8
|
+
/**
|
|
9
|
+
* HKTAN (TAN-Verfahren festlegen)
|
|
10
|
+
* Section B.5.1
|
|
11
|
+
*/
|
|
12
|
+
class HKTAN extends (0, segment_1.SegmentClass)(HKTANProps) {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.type = "HKTAN";
|
|
16
|
+
}
|
|
17
|
+
deserialize() {
|
|
18
|
+
throw new Error("Not implemented.");
|
|
19
|
+
}
|
|
20
|
+
serialize() {
|
|
21
|
+
const { process, segmentReference, aref, medium, version } = this;
|
|
22
|
+
if (!["2", "4"].includes(process)) {
|
|
23
|
+
throw new Error(`HKTAN process ${process} not implemented.`);
|
|
24
|
+
}
|
|
25
|
+
if (![3, 4, 5, 6, 7].includes(version)) {
|
|
26
|
+
throw new Error(`HKTAN version ${version} not implemented.`);
|
|
27
|
+
}
|
|
28
|
+
if (process === "4") {
|
|
29
|
+
if (medium) {
|
|
30
|
+
if (version === 3) {
|
|
31
|
+
return [process, segmentReference, "", "", "", "", "", "", medium];
|
|
32
|
+
}
|
|
33
|
+
if (version === 4) {
|
|
34
|
+
return [process, segmentReference, "", "", "", "", "", "", "", medium];
|
|
35
|
+
}
|
|
36
|
+
if (version === 5) {
|
|
37
|
+
return [process, segmentReference, "", "", "", "", "", "", "", "", "", medium];
|
|
38
|
+
}
|
|
39
|
+
if (version === 6 || version === 7) {
|
|
40
|
+
return [process, segmentReference, "", "", "", "", "", "", "", "", medium];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
if (version === 6 || version === 7) {
|
|
45
|
+
return [process, "HKIDN"];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return [process];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else if (process === "2") {
|
|
53
|
+
if (version === 6 || version === 7) {
|
|
54
|
+
return [process, "", "", "", aref, "N"];
|
|
55
|
+
}
|
|
56
|
+
if (version === 5) {
|
|
57
|
+
return [process, segmentReference, "", "", aref, "", "N"];
|
|
58
|
+
}
|
|
59
|
+
if (version === 3 || version === 4) {
|
|
60
|
+
return [process, segmentReference, aref, "", "N"];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.HKTAN = HKTAN;
|
|
66
|
+
//# sourceMappingURL=hktan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hktan.js","sourceRoot":"","sources":["../../src/segments/hktan.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,MAAa,UAAU;CAOtB;AAPD,gCAOC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IA+C1B,CAAC;IA7Ca,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,SAAS;QACf,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAClE,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,iBAAiB,OAAO,mBAAmB,CAAC,CAAC;QACjE,CAAC;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ACjC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAC9B,CAAC;qBAAM,CAAC;oBACJ,OAAO,CAAC,OAAO,CAAC,CAAC;gBACrB,CAAC;YACL,CAAC;QACL,CAAC;aAAM,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YACzB,IAAI,OAAO,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;gBACjC,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YAC5C,CAAC;YACD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;gBAChB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC9D,CAAC;YACD,IAAI,OAAO,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;gBACjC,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YACtD,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAhDD,sBAgDC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class HKVVBProps {
|
|
2
|
+
segNo: number;
|
|
3
|
+
lang?: number;
|
|
4
|
+
protected productId: string;
|
|
5
|
+
}
|
|
6
|
+
declare const HKVVB_base: import("..").Constructable<HKVVBProps & import("./segment").Segment<HKVVBProps>>;
|
|
7
|
+
/**
|
|
8
|
+
* HKVVB (Verarbeitungsvorbereitung)
|
|
9
|
+
* Section C.3.1.3
|
|
10
|
+
*/
|
|
11
|
+
export declare class HKVVB extends HKVVB_base {
|
|
12
|
+
type: string;
|
|
13
|
+
protected defaults(): void;
|
|
14
|
+
protected serialize(): string[];
|
|
15
|
+
protected deserialize(): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKVVB = exports.HKVVBProps = void 0;
|
|
4
|
+
const format_1 = require("../format");
|
|
5
|
+
const segment_1 = require("./segment");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
class HKVVBProps {
|
|
8
|
+
}
|
|
9
|
+
exports.HKVVBProps = HKVVBProps;
|
|
10
|
+
/**
|
|
11
|
+
* HKVVB (Verarbeitungsvorbereitung)
|
|
12
|
+
* Section C.3.1.3
|
|
13
|
+
*/
|
|
14
|
+
class HKVVB extends (0, segment_1.SegmentClass)(HKVVBProps) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.type = "HKVVB";
|
|
18
|
+
}
|
|
19
|
+
defaults() {
|
|
20
|
+
this.version = 3;
|
|
21
|
+
this.lang = constants_1.LANG_DE;
|
|
22
|
+
this.productId = constants_1.PRODUCT_NAME;
|
|
23
|
+
}
|
|
24
|
+
serialize() {
|
|
25
|
+
const { lang, productId } = this;
|
|
26
|
+
return [
|
|
27
|
+
format_1.Format.num(0),
|
|
28
|
+
format_1.Format.num(0),
|
|
29
|
+
format_1.Format.num(lang),
|
|
30
|
+
format_1.Format.stringEscaped(productId),
|
|
31
|
+
format_1.Format.stringEscaped(constants_1.PRODUCT_VERSION),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
deserialize() {
|
|
35
|
+
throw new Error("Not implemented.");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.HKVVB = HKVVB;
|
|
39
|
+
//# sourceMappingURL=hkvvb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hkvvb.js","sourceRoot":"","sources":["../../src/segments/hkvvb.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AACnC,uCAAyC;AACzC,4CAAsE;AAEtE,MAAa,UAAU;CAItB;AAJD,gCAIC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAsB1B,CAAC;IApBa,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,mBAAO,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,wBAAY,CAAC;IAClC,CAAC;IAES,SAAS;QACf,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACjC,OAAO;YACH,eAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YACb,eAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YACb,eAAM,CAAC,GAAG,CAAC,IAAI,CAAC;YAChB,eAAM,CAAC,aAAa,CAAC,SAAS,CAAC;YAC/B,eAAM,CAAC,aAAa,CAAC,2BAAe,CAAC;SACxC,CAAC;IACN,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;CACJ;AAvBD,sBAuBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SEPAAccount } from "../types";
|
|
2
|
+
export declare class HKWPDProps {
|
|
3
|
+
segNo: number;
|
|
4
|
+
version: number;
|
|
5
|
+
account: SEPAAccount;
|
|
6
|
+
currency?: string;
|
|
7
|
+
quality?: string;
|
|
8
|
+
maxEntries?: number;
|
|
9
|
+
touchdown?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const HKWPD_base: import("../types").Constructable<HKWPDProps & import("./segment").Segment<HKWPDProps>>;
|
|
12
|
+
/**
|
|
13
|
+
* HKWPD (Depotaufstellung anfordern)
|
|
14
|
+
* Section D.6.1
|
|
15
|
+
*/
|
|
16
|
+
export declare class HKWPD extends HKWPD_base {
|
|
17
|
+
type: string;
|
|
18
|
+
protected serialize(): (string | string[])[];
|
|
19
|
+
protected deserialize(): void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKWPD = exports.HKWPDProps = void 0;
|
|
4
|
+
const format_1 = require("../format");
|
|
5
|
+
const segment_1 = require("./segment");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
class HKWPDProps {
|
|
8
|
+
}
|
|
9
|
+
exports.HKWPDProps = HKWPDProps;
|
|
10
|
+
/**
|
|
11
|
+
* HKWPD (Depotaufstellung anfordern)
|
|
12
|
+
* Section D.6.1
|
|
13
|
+
*/
|
|
14
|
+
class HKWPD extends (0, segment_1.SegmentClass)(HKWPDProps) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.type = "HKWPD";
|
|
18
|
+
}
|
|
19
|
+
serialize() {
|
|
20
|
+
const { version, account, currency, quality, maxEntries, touchdown } = this;
|
|
21
|
+
const { accountNumber, subAccount, blz } = account;
|
|
22
|
+
if (![5, 6].includes(version)) {
|
|
23
|
+
throw new Error(`Unsupported HKWPD version ${version}.`);
|
|
24
|
+
}
|
|
25
|
+
const serializedAccount = [accountNumber, subAccount, String(constants_1.COUNTRY_CODE), blz];
|
|
26
|
+
return [
|
|
27
|
+
serializedAccount,
|
|
28
|
+
currency || format_1.Format.empty(),
|
|
29
|
+
quality || format_1.Format.empty(),
|
|
30
|
+
typeof maxEntries === "number" ? format_1.Format.num(maxEntries) : format_1.Format.empty(),
|
|
31
|
+
format_1.Format.stringEscaped(touchdown),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
deserialize() {
|
|
35
|
+
throw new Error("Not implemented.");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.HKWPD = HKWPD;
|
|
39
|
+
//# sourceMappingURL=hkwpd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hkwpd.js","sourceRoot":"","sources":["../../src/segments/hkwpd.ts"],"names":[],"mappings":";;;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{
|
|
7
|
+
msgNo: number;
|
|
8
|
+
dialogId: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare const HNHBK_base: import("..").Constructable<HNHBKProps & import("./segment").Segment<HNHBKProps>>;
|
|
12
|
+
/**
|
|
13
|
+
* HNHBK (Nachrichtenkopf)
|
|
14
|
+
* Section B.5.2
|
|
15
|
+
*/
|
|
16
|
+
export declare class HNHBK extends HNHBK_base {
|
|
17
|
+
type: string;
|
|
18
|
+
protected defaults(): void;
|
|
19
|
+
protected serialize(): (string | string[])[];
|
|
20
|
+
protected deserialize(input: string[][]): void;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HNHBK = exports.HNHBKProps = void 0;
|
|
4
|
+
const format_1 = require("../format");
|
|
5
|
+
const parse_1 = require("../parse");
|
|
6
|
+
const segment_1 = require("./segment");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
class HNHBKProps {
|
|
9
|
+
}
|
|
10
|
+
exports.HNHBKProps = HNHBKProps;
|
|
11
|
+
/**
|
|
12
|
+
* HNHBK (Nachrichtenkopf)
|
|
13
|
+
* Section B.5.2
|
|
14
|
+
*/
|
|
15
|
+
class HNHBK extends (0, segment_1.SegmentClass)(HNHBKProps) {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.type = "HNHBK";
|
|
19
|
+
}
|
|
20
|
+
defaults() {
|
|
21
|
+
this.version = 3;
|
|
22
|
+
}
|
|
23
|
+
serialize() {
|
|
24
|
+
const { msgLength, dialogId, msgNo, refMsg } = this;
|
|
25
|
+
const result = [
|
|
26
|
+
format_1.Format.dig(msgLength),
|
|
27
|
+
format_1.Format.num(constants_1.HBCI_VERSION),
|
|
28
|
+
dialogId,
|
|
29
|
+
format_1.Format.num(msgNo),
|
|
30
|
+
];
|
|
31
|
+
if (refMsg) {
|
|
32
|
+
result.push([refMsg.dialogId, String(refMsg.msgNo)]);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
deserialize(input) {
|
|
37
|
+
const [[msgLength], [hbciVersion], [dialogId], [msgNo], refMsg] = input;
|
|
38
|
+
if (hbciVersion !== "300") {
|
|
39
|
+
throw new Error(`Version mismatch. Server is using HBCI version ${hbciVersion}.`);
|
|
40
|
+
}
|
|
41
|
+
this.msgLength = parse_1.Parse.dig(msgLength);
|
|
42
|
+
this.dialogId = dialogId;
|
|
43
|
+
this.msgNo = parse_1.Parse.dig(msgNo);
|
|
44
|
+
if (typeof refMsg !== "undefined") {
|
|
45
|
+
const [refDialogId, refMsgNo] = refMsg;
|
|
46
|
+
this.refMsg = {
|
|
47
|
+
dialogId: refDialogId,
|
|
48
|
+
msgNo: parse_1.Parse.num(refMsgNo),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.HNHBK = HNHBK;
|
|
54
|
+
//# sourceMappingURL=hnhbk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hnhbk.js","sourceRoot":"","sources":["../../src/segments/hnhbk.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AACnC,oCAAiC;AACjC,uCAAyC;AACzC,4CAA4C;AAE5C,MAAa,UAAU;CAStB;AATD,gCASC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAoC1B,CAAC;IAlCa,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAES,SAAS;QACf,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACpD,MAAM,MAAM,GAA0B;YAClC,eAAM,CAAC,GAAG,CAAC,SAAS,CAAC;YACrB,eAAM,CAAC,GAAG,CAAC,wBAAY,CAAC;YACxB,QAAQ;YACR,eAAM,CAAC,GAAG,CAAC,KAAK,CAAC;SACpB,CAAC;QACF,IAAI,MAAM,EAAE,CAAC;YACT,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;QACxE,IAAI,WAAW,KAAK,KAAK,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,kDAAkD,WAAW,GAAG,CAAC,CAAC;QACtF,CAAC;QACD,IAAI,CAAC,SAAS,GAAG,aAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,aAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAChC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,MAAM,CAAC;YACvC,IAAI,CAAC,MAAM,GAAG;gBACV,QAAQ,EAAE,WAAW;gBACrB,KAAK,EAAE,aAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;aAC7B,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AArCD,sBAqCC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class HNHBSProps {
|
|
2
|
+
segNo: number;
|
|
3
|
+
msgNo: number;
|
|
4
|
+
}
|
|
5
|
+
declare const HNHBS_base: import("..").Constructable<HNHBSProps & import("./segment").Segment<HNHBSProps>>;
|
|
6
|
+
/**
|
|
7
|
+
* HNHBS (Nachrichtenabschluss)
|
|
8
|
+
* Section B.5.3
|
|
9
|
+
*/
|
|
10
|
+
export declare class HNHBS extends HNHBS_base {
|
|
11
|
+
type: string;
|
|
12
|
+
protected defaults(): void;
|
|
13
|
+
protected serialize(): string[];
|
|
14
|
+
protected deserialize(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HNHBS = exports.HNHBSProps = void 0;
|
|
4
|
+
const segment_1 = require("./segment");
|
|
5
|
+
const format_1 = require("../format");
|
|
6
|
+
class HNHBSProps {
|
|
7
|
+
}
|
|
8
|
+
exports.HNHBSProps = HNHBSProps;
|
|
9
|
+
/**
|
|
10
|
+
* HNHBS (Nachrichtenabschluss)
|
|
11
|
+
* Section B.5.3
|
|
12
|
+
*/
|
|
13
|
+
class HNHBS extends (0, segment_1.SegmentClass)(HNHBSProps) {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.type = "HNHBS";
|
|
17
|
+
}
|
|
18
|
+
defaults() {
|
|
19
|
+
this.version = 1;
|
|
20
|
+
}
|
|
21
|
+
serialize() {
|
|
22
|
+
return [format_1.Format.num(this.msgNo)];
|
|
23
|
+
}
|
|
24
|
+
deserialize() {
|
|
25
|
+
throw new Error("Not implemented.");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.HNHBS = HNHBS;
|
|
29
|
+
//# sourceMappingURL=hnhbs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hnhbs.js","sourceRoot":"","sources":["../../src/segments/hnhbs.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,sCAAmC;AAEnC,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAa1B,CAAC;IAXa,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAES,SAAS;QACf,OAAO,CAAC,eAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;IAES,WAAW;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;CACJ;AAdD,sBAcC"}
|