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.
Files changed (197) hide show
  1. package/README_advanced_usage.md +70 -0
  2. package/dist/client.d.ts +89 -0
  3. package/dist/client.js +473 -0
  4. package/dist/client.js.map +1 -0
  5. package/dist/constants.d.ts +15 -0
  6. package/dist/constants.js +19 -0
  7. package/dist/constants.js.map +1 -0
  8. package/dist/dialog.d.ts +111 -0
  9. package/dist/dialog.js +187 -0
  10. package/dist/dialog.js.map +1 -0
  11. package/dist/error-codes.d.ts +39 -0
  12. package/dist/error-codes.js +228 -0
  13. package/dist/error-codes.js.map +1 -0
  14. package/dist/errors/fints-error.d.ts +55 -0
  15. package/dist/errors/fints-error.js +131 -0
  16. package/dist/errors/fints-error.js.map +1 -0
  17. package/dist/errors/response-error.d.ts +6 -0
  18. package/dist/errors/response-error.js +20 -0
  19. package/dist/errors/response-error.js.map +1 -0
  20. package/dist/errors/tan-required-error.d.ts +40 -0
  21. package/dist/errors/tan-required-error.js +54 -0
  22. package/dist/errors/tan-required-error.js.map +1 -0
  23. package/dist/format.d.ts +81 -0
  24. package/dist/format.js +112 -0
  25. package/dist/format.js.map +1 -0
  26. package/dist/http-connection.d.ts +36 -0
  27. package/dist/http-connection.js +109 -0
  28. package/dist/http-connection.js.map +1 -0
  29. package/dist/index.d.ts +23 -0
  30. package/dist/index.js +40 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/logger.d.ts +4 -0
  33. package/dist/logger.js +13 -0
  34. package/dist/logger.js.map +1 -0
  35. package/dist/mt535.d.ts +19 -0
  36. package/dist/mt535.js +153 -0
  37. package/dist/mt535.js.map +1 -0
  38. package/dist/mt940-86-structured.d.ts +47 -0
  39. package/dist/mt940-86-structured.js +213 -0
  40. package/dist/mt940-86-structured.js.map +1 -0
  41. package/dist/pain-formats.d.ts +50 -0
  42. package/dist/pain-formats.js +7 -0
  43. package/dist/pain-formats.js.map +1 -0
  44. package/dist/pain.d.ts +21 -0
  45. package/dist/pain.js +315 -0
  46. package/dist/pain.js.map +1 -0
  47. package/dist/parse.d.ts +46 -0
  48. package/dist/parse.js +97 -0
  49. package/dist/parse.js.map +1 -0
  50. package/dist/pin-tan-client.d.ts +47 -0
  51. package/dist/pin-tan-client.js +35 -0
  52. package/dist/pin-tan-client.js.map +1 -0
  53. package/dist/request.d.ts +90 -0
  54. package/dist/request.js +102 -0
  55. package/dist/request.js.map +1 -0
  56. package/dist/response.d.ts +104 -0
  57. package/dist/response.js +197 -0
  58. package/dist/response.js.map +1 -0
  59. package/dist/return-value.d.ts +37 -0
  60. package/dist/return-value.js +31 -0
  61. package/dist/return-value.js.map +1 -0
  62. package/dist/segments/hibpa.d.ts +22 -0
  63. package/dist/segments/hibpa.js +36 -0
  64. package/dist/segments/hibpa.js.map +1 -0
  65. package/dist/segments/hiccs.d.ts +14 -0
  66. package/dist/segments/hiccs.js +28 -0
  67. package/dist/segments/hiccs.js.map +1 -0
  68. package/dist/segments/hiccss.d.ts +13 -0
  69. package/dist/segments/hiccss.js +24 -0
  70. package/dist/segments/hiccss.js.map +1 -0
  71. package/dist/segments/hicdb.d.ts +17 -0
  72. package/dist/segments/hicdb.js +62 -0
  73. package/dist/segments/hicdb.js.map +1 -0
  74. package/dist/segments/hicdbs.d.ts +16 -0
  75. package/dist/segments/hicdbs.js +28 -0
  76. package/dist/segments/hicdbs.js.map +1 -0
  77. package/dist/segments/hidse.d.ts +14 -0
  78. package/dist/segments/hidse.js +28 -0
  79. package/dist/segments/hidse.js.map +1 -0
  80. package/dist/segments/hidses.d.ts +13 -0
  81. package/dist/segments/hidses.js +24 -0
  82. package/dist/segments/hidses.js.map +1 -0
  83. package/dist/segments/hikaz.d.ts +16 -0
  84. package/dist/segments/hikaz.js +31 -0
  85. package/dist/segments/hikaz.js.map +1 -0
  86. package/dist/segments/hikazs.d.ts +16 -0
  87. package/dist/segments/hikazs.js +28 -0
  88. package/dist/segments/hikazs.js.map +1 -0
  89. package/dist/segments/hirmg.d.ts +17 -0
  90. package/dist/segments/hirmg.js +39 -0
  91. package/dist/segments/hirmg.js.map +1 -0
  92. package/dist/segments/hirms.d.ts +16 -0
  93. package/dist/segments/hirms.js +37 -0
  94. package/dist/segments/hirms.js.map +1 -0
  95. package/dist/segments/hisal.d.ts +22 -0
  96. package/dist/segments/hisal.js +33 -0
  97. package/dist/segments/hisal.js.map +1 -0
  98. package/dist/segments/hisals.d.ts +16 -0
  99. package/dist/segments/hisals.js +28 -0
  100. package/dist/segments/hisals.js.map +1 -0
  101. package/dist/segments/hispa.d.ts +16 -0
  102. package/dist/segments/hispa.js +31 -0
  103. package/dist/segments/hispa.js.map +1 -0
  104. package/dist/segments/hispas.d.ts +14 -0
  105. package/dist/segments/hispas.js +28 -0
  106. package/dist/segments/hispas.js.map +1 -0
  107. package/dist/segments/hisyn.d.ts +15 -0
  108. package/dist/segments/hisyn.js +26 -0
  109. package/dist/segments/hisyn.js.map +1 -0
  110. package/dist/segments/hitan.d.ts +18 -0
  111. package/dist/segments/hitan.js +66 -0
  112. package/dist/segments/hitan.js.map +1 -0
  113. package/dist/segments/hitans.d.ts +18 -0
  114. package/dist/segments/hitans.js +46 -0
  115. package/dist/segments/hitans.js.map +1 -0
  116. package/dist/segments/hiupd.d.ts +16 -0
  117. package/dist/segments/hiupd.js +34 -0
  118. package/dist/segments/hiupd.js.map +1 -0
  119. package/dist/segments/hiwpd.d.ts +15 -0
  120. package/dist/segments/hiwpd.js +26 -0
  121. package/dist/segments/hiwpd.js.map +1 -0
  122. package/dist/segments/hiwpds.d.ts +16 -0
  123. package/dist/segments/hiwpds.js +32 -0
  124. package/dist/segments/hiwpds.js.map +1 -0
  125. package/dist/segments/hkccs.d.ts +18 -0
  126. package/dist/segments/hkccs.js +32 -0
  127. package/dist/segments/hkccs.js.map +1 -0
  128. package/dist/segments/hkcdb.d.ts +19 -0
  129. package/dist/segments/hkcdb.js +30 -0
  130. package/dist/segments/hkcdb.js.map +1 -0
  131. package/dist/segments/hkdse.d.ts +18 -0
  132. package/dist/segments/hkdse.js +27 -0
  133. package/dist/segments/hkdse.js.map +1 -0
  134. package/dist/segments/hkend.d.ts +12 -0
  135. package/dist/segments/hkend.js +24 -0
  136. package/dist/segments/hkend.js.map +1 -0
  137. package/dist/segments/hkidn.d.ts +19 -0
  138. package/dist/segments/hkidn.js +33 -0
  139. package/dist/segments/hkidn.js.map +1 -0
  140. package/dist/segments/hkkaz.d.ts +20 -0
  141. package/dist/segments/hkkaz.js +42 -0
  142. package/dist/segments/hkkaz.js.map +1 -0
  143. package/dist/segments/hksal.d.ts +18 -0
  144. package/dist/segments/hksal.js +35 -0
  145. package/dist/segments/hksal.js.map +1 -0
  146. package/dist/segments/hkspa.d.ts +18 -0
  147. package/dist/segments/hkspa.js +31 -0
  148. package/dist/segments/hkspa.js.map +1 -0
  149. package/dist/segments/hksyn.d.ts +16 -0
  150. package/dist/segments/hksyn.js +31 -0
  151. package/dist/segments/hksyn.js.map +1 -0
  152. package/dist/segments/hktab.d.ts +17 -0
  153. package/dist/segments/hktab.js +31 -0
  154. package/dist/segments/hktab.js.map +1 -0
  155. package/dist/segments/hktan.d.ts +19 -0
  156. package/dist/segments/hktan.js +66 -0
  157. package/dist/segments/hktan.js.map +1 -0
  158. package/dist/segments/hkvvb.d.ts +17 -0
  159. package/dist/segments/hkvvb.js +39 -0
  160. package/dist/segments/hkvvb.js.map +1 -0
  161. package/dist/segments/hkwpd.d.ts +21 -0
  162. package/dist/segments/hkwpd.js +39 -0
  163. package/dist/segments/hkwpd.js.map +1 -0
  164. package/dist/segments/hnhbk.d.ts +22 -0
  165. package/dist/segments/hnhbk.js +54 -0
  166. package/dist/segments/hnhbk.js.map +1 -0
  167. package/dist/segments/hnhbs.d.ts +16 -0
  168. package/dist/segments/hnhbs.js +29 -0
  169. package/dist/segments/hnhbs.js.map +1 -0
  170. package/dist/segments/hnsha.d.ts +18 -0
  171. package/dist/segments/hnsha.js +30 -0
  172. package/dist/segments/hnsha.js.map +1 -0
  173. package/dist/segments/hnshk.d.ts +21 -0
  174. package/dist/segments/hnshk.js +44 -0
  175. package/dist/segments/hnshk.js.map +1 -0
  176. package/dist/segments/hnvsd.d.ts +25 -0
  177. package/dist/segments/hnvsd.js +31 -0
  178. package/dist/segments/hnvsd.js.map +1 -0
  179. package/dist/segments/hnvsk.d.ts +15 -0
  180. package/dist/segments/hnvsk.js +51 -0
  181. package/dist/segments/hnvsk.js.map +1 -0
  182. package/dist/segments/index.d.ts +40 -0
  183. package/dist/segments/index.js +57 -0
  184. package/dist/segments/index.js.map +1 -0
  185. package/dist/segments/segment.d.ts +60 -0
  186. package/dist/segments/segment.js +74 -0
  187. package/dist/segments/segment.js.map +1 -0
  188. package/dist/tan-method.d.ts +36 -0
  189. package/dist/tan-method.js +224 -0
  190. package/dist/tan-method.js.map +1 -0
  191. package/dist/types.d.ts +386 -0
  192. package/dist/types.js +3 -0
  193. package/dist/types.js.map +1 -0
  194. package/dist/utils.d.ts +55 -0
  195. package/dist/utils.js +178 -0
  196. package/dist/utils.js.map +1 -0
  197. package/package.json +1 -1
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HICDB = exports.HICDBProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ const parse_1 = require("../parse");
6
+ class HICDBProps {
7
+ }
8
+ exports.HICDBProps = HICDBProps;
9
+ /**
10
+ * HICDB (SEPA-Dauerauftragsbestand rückmelden)
11
+ * Section C.10.2.3.4
12
+ */
13
+ class HICDB extends (0, segment_1.SegmentClass)(HICDBProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HICDB";
17
+ }
18
+ serialize() {
19
+ throw new Error("Not implemented.");
20
+ }
21
+ deserialize(input) {
22
+ const [[], [], [sepaMessage], [], [nextOrder, timeUnit, interval, orderDay, lastOrder]] = input;
23
+ const parsed = parse_1.Parse.xml(sepaMessage);
24
+ if (!this.isDocument(parsed)) {
25
+ throw new Error("Received sepa-message seems not to be a valid 'Document' object!");
26
+ }
27
+ const jsonMessage = parsed.Document.CstmrCdtTrfInitn;
28
+ const instructionInfo = Array.isArray(jsonMessage.PmtInf)
29
+ ? jsonMessage.PmtInf[0]
30
+ : jsonMessage.PmtInf;
31
+ const creditTransaction = Array.isArray(instructionInfo.CdtTrfTxInf)
32
+ ? instructionInfo.CdtTrfTxInf[0]
33
+ : instructionInfo.CdtTrfTxInf;
34
+ this.standingOrder = {
35
+ nextOrderDate: parse_1.Parse.date(nextOrder),
36
+ timeUnit,
37
+ interval: parse_1.Parse.num(interval),
38
+ orderDay: parse_1.Parse.num(orderDay),
39
+ lastOrderDate: lastOrder ? parse_1.Parse.date(lastOrder) : null,
40
+ creationDate: new Date(jsonMessage.GrpHdr.CreDtTm),
41
+ amount: jsonMessage.GrpHdr.CtrlSum,
42
+ paymentPurpose: creditTransaction.RmtInf.Ustrd,
43
+ debitor: {
44
+ name: instructionInfo.Dbtr.Nm,
45
+ iban: instructionInfo.DbtrAcct.Id.IBAN,
46
+ bic: instructionInfo.DbtrAgt.FinInstnId.BIC,
47
+ },
48
+ creditor: {
49
+ name: creditTransaction.Cdtr.Nm,
50
+ iban: creditTransaction.CdtrAcct.Id.IBAN,
51
+ bic: creditTransaction.CdtrAgt.FinInstnId.BIC,
52
+ },
53
+ };
54
+ }
55
+ isDocument(d) {
56
+ return (typeof d !== "undefined" &&
57
+ typeof d.Document !== "undefined" &&
58
+ typeof d.Document.CstmrCdtTrfInitn !== "undefined");
59
+ }
60
+ }
61
+ exports.HICDB = HICDB;
62
+ //# sourceMappingURL=hicdb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hicdb.js","sourceRoot":"","sources":["../../src/segments/hicdb.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,oCAAiC;AAQjC,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAoD1B,CAAC;IAlDa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC;QAEhG,MAAM,MAAM,GAAY,aAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAE/C,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;QACxF,CAAC;QAED,MAAM,WAAW,GAAwC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC1F,MAAM,eAAe,GAAqC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC;YACvF,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YACvB,CAAC,CAAE,WAAW,CAAC,MAA2C,CAAC;QAC/D,MAAM,iBAAiB,GAA4C,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC;YACzG,CAAC,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;YAChC,CAAC,CAAE,eAAe,CAAC,WAAuD,CAAC;QAE/E,IAAI,CAAC,aAAa,GAAG;YACjB,aAAa,EAAE,aAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YACpC,QAAQ;YACR,QAAQ,EAAE,aAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC7B,QAAQ,EAAE,aAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC7B,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,aAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;YACvD,YAAY,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;YAClD,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO;YAClC,cAAc,EAAE,iBAAiB,CAAC,MAAM,CAAC,KAAK;YAC9C,OAAO,EAAE;gBACL,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,EAAE;gBAC7B,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI;gBACtC,GAAG,EAAE,eAAe,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG;aAC9C;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE;gBAC/B,IAAI,EAAE,iBAAiB,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI;gBACxC,GAAG,EAAE,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG;aAChD;SACJ,CAAC;IACN,CAAC;IAEO,UAAU,CAAC,CAAM;QACrB,OAAO,CACH,OAAO,CAAC,KAAK,WAAW;YACxB,OAAO,CAAC,CAAC,QAAQ,KAAK,WAAW;YACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,gBAAgB,KAAK,WAAW,CACrD,CAAC;IACN,CAAC;CACJ;AArDD,sBAqDC"}
@@ -0,0 +1,16 @@
1
+ export declare class HICDBSProps {
2
+ segNo: number;
3
+ maxRequestCount: number;
4
+ minSignatures: number;
5
+ }
6
+ declare const HICDBS_base: import("..").Constructable<HICDBSProps & import("./segment").Segment<HICDBSProps>>;
7
+ /**
8
+ * HICDBS (SEPA-Dauerauftragsbestand Parameter)
9
+ * Section C.10.2.3.4
10
+ */
11
+ export declare class HICDBS extends HICDBS_base {
12
+ type: string;
13
+ protected serialize(): string[][];
14
+ protected deserialize(input: string[][]): void;
15
+ }
16
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HICDBS = exports.HICDBSProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ const parse_1 = require("../parse");
6
+ class HICDBSProps {
7
+ }
8
+ exports.HICDBSProps = HICDBSProps;
9
+ /**
10
+ * HICDBS (SEPA-Dauerauftragsbestand Parameter)
11
+ * Section C.10.2.3.4
12
+ */
13
+ class HICDBS extends (0, segment_1.SegmentClass)(HICDBSProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HICDBS";
17
+ }
18
+ serialize() {
19
+ throw new Error("Not implemented.");
20
+ }
21
+ deserialize(input) {
22
+ const [[maxRequestCount], [minSignatures]] = input;
23
+ this.minSignatures = parse_1.Parse.num(minSignatures);
24
+ this.maxRequestCount = parse_1.Parse.num(maxRequestCount);
25
+ }
26
+ }
27
+ exports.HICDBS = HICDBS;
28
+ //# sourceMappingURL=hicdbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hicdbs.js","sourceRoot":"","sources":["../../src/segments/hicdbs.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,oCAAiC;AAEjC,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED;;;GAGG;AACH,MAAa,MAAO,SAAQ,IAAA,sBAAY,EAAC,WAAW,CAAC;IAArD;;QACW,SAAI,GAAG,QAAQ,CAAC;IAW3B,CAAC;IATa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC;QACnD,IAAI,CAAC,aAAa,GAAG,aAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,aAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;CACJ;AAZD,wBAYC"}
@@ -0,0 +1,14 @@
1
+ export declare class HIDSEProps {
2
+ segNo: number;
3
+ taskId?: string;
4
+ }
5
+ declare const HIDSE_base: import("..").Constructable<HIDSEProps & import("./segment").Segment<HIDSEProps>>;
6
+ /**
7
+ * HIDSE (Einreichung terminierter SEPA-Einzellastschrift bestätigen)
8
+ */
9
+ export declare class HIDSE extends HIDSE_base {
10
+ type: string;
11
+ protected serialize(): string[][];
12
+ protected deserialize(input: string[][]): void;
13
+ }
14
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HIDSE = exports.HIDSEProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ class HIDSEProps {
6
+ }
7
+ exports.HIDSEProps = HIDSEProps;
8
+ /**
9
+ * HIDSE (Einreichung terminierter SEPA-Einzellastschrift bestätigen)
10
+ */
11
+ class HIDSE extends (0, segment_1.SegmentClass)(HIDSEProps) {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.type = "HIDSE";
15
+ }
16
+ serialize() {
17
+ throw new Error("Not implemented.");
18
+ }
19
+ deserialize(input) {
20
+ if (input.length === 0) {
21
+ return;
22
+ }
23
+ const [[taskId = ""] = []] = input;
24
+ this.taskId = taskId || undefined;
25
+ }
26
+ }
27
+ exports.HIDSE = HIDSE;
28
+ //# sourceMappingURL=hidse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hidse.js","sourceRoot":"","sources":["../../src/segments/hidse.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;GAEG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAa1B,CAAC;IAXa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QACD,MAAM,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,SAAS,CAAC;IACtC,CAAC;CACJ;AAdD,sBAcC"}
@@ -0,0 +1,13 @@
1
+ export declare class HIDSESProps {
2
+ segNo: number;
3
+ }
4
+ declare const HIDSES_base: import("..").Constructable<HIDSESProps & import("./segment").Segment<HIDSESProps>>;
5
+ /**
6
+ * HIDSES (Terminierte SEPA-Einzellastschrift einreichen Parameter)
7
+ */
8
+ export declare class HIDSES extends HIDSES_base {
9
+ type: string;
10
+ protected serialize(): string[][];
11
+ protected deserialize(): void;
12
+ }
13
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HIDSES = exports.HIDSESProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ class HIDSESProps {
6
+ }
7
+ exports.HIDSESProps = HIDSESProps;
8
+ /**
9
+ * HIDSES (Terminierte SEPA-Einzellastschrift einreichen Parameter)
10
+ */
11
+ class HIDSES extends (0, segment_1.SegmentClass)(HIDSESProps) {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.type = "HIDSES";
15
+ }
16
+ serialize() {
17
+ throw new Error("Not implemented.");
18
+ }
19
+ deserialize() {
20
+ return;
21
+ }
22
+ }
23
+ exports.HIDSES = HIDSES;
24
+ //# sourceMappingURL=hidses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hidses.js","sourceRoot":"","sources":["../../src/segments/hidses.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED;;GAEG;AACH,MAAa,MAAO,SAAQ,IAAA,sBAAY,EAAC,WAAW,CAAC;IAArD;;QACW,SAAI,GAAG,QAAQ,CAAC;IAS3B,CAAC;IAPa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW;QACjB,OAAO;IACX,CAAC;CACJ;AAVD,wBAUC"}
@@ -0,0 +1,16 @@
1
+ export declare class HIKAZProps {
2
+ segNo: number;
3
+ bookedTransactions: string;
4
+ pendingTransactions: string;
5
+ }
6
+ declare const HIKAZ_base: import("..").Constructable<HIKAZProps & import("./segment").Segment<HIKAZProps>>;
7
+ /**
8
+ * HIKAZ (Kontoumsätze rückmelden/Zeitraum)
9
+ * Section C.2.1.1.1.1
10
+ */
11
+ export declare class HIKAZ extends HIKAZ_base {
12
+ type: string;
13
+ protected serialize(): string[][];
14
+ protected deserialize(input: string[][]): void;
15
+ }
16
+ export {};
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HIKAZ = exports.HIKAZProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ class HIKAZProps {
6
+ }
7
+ exports.HIKAZProps = HIKAZProps;
8
+ /**
9
+ * HIKAZ (Kontoumsätze rückmelden/Zeitraum)
10
+ * Section C.2.1.1.1.1
11
+ */
12
+ class HIKAZ extends (0, segment_1.SegmentClass)(HIKAZProps) {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.type = "HIKAZ";
16
+ }
17
+ serialize() {
18
+ throw new Error("Not implemented.");
19
+ }
20
+ deserialize(input) {
21
+ const [bookedTransactions, pendingTransactions] = input;
22
+ if (pendingTransactions && pendingTransactions[0]) {
23
+ this.pendingTransactions = pendingTransactions[0];
24
+ }
25
+ if (bookedTransactions && bookedTransactions[0]) {
26
+ this.bookedTransactions = bookedTransactions[0];
27
+ }
28
+ }
29
+ }
30
+ exports.HIKAZ = HIKAZ;
31
+ //# sourceMappingURL=hikaz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hikaz.js","sourceRoot":"","sources":["../../src/segments/hikaz.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,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,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,GAAG,KAAK,CAAC;QACxD,IAAI,mBAAmB,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC;QACD,IAAI,kBAAkB,IAAI,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACL,CAAC;CACJ;AAhBD,sBAgBC"}
@@ -0,0 +1,16 @@
1
+ export declare class HIKAZSProps {
2
+ segNo: number;
3
+ maxRequestCount: number;
4
+ minSignatures: number;
5
+ }
6
+ declare const HIKAZS_base: import("..").Constructable<HIKAZSProps & import("./segment").Segment<HIKAZSProps>>;
7
+ /**
8
+ * HIKAZS (Kontoumsätze/Zeitraum Parameter)
9
+ * Section C.2.1.1.1.1
10
+ */
11
+ export declare class HIKAZS extends HIKAZS_base {
12
+ type: string;
13
+ protected serialize(): string[][];
14
+ protected deserialize(input: string[][]): void;
15
+ }
16
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HIKAZS = exports.HIKAZSProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ const parse_1 = require("../parse");
6
+ class HIKAZSProps {
7
+ }
8
+ exports.HIKAZSProps = HIKAZSProps;
9
+ /**
10
+ * HIKAZS (Kontoumsätze/Zeitraum Parameter)
11
+ * Section C.2.1.1.1.1
12
+ */
13
+ class HIKAZS extends (0, segment_1.SegmentClass)(HIKAZSProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HIKAZS";
17
+ }
18
+ serialize() {
19
+ throw new Error("Not implemented.");
20
+ }
21
+ deserialize(input) {
22
+ const [[maxRequestCount], [minSignatures]] = input;
23
+ this.minSignatures = parse_1.Parse.num(minSignatures);
24
+ this.maxRequestCount = parse_1.Parse.num(maxRequestCount);
25
+ }
26
+ }
27
+ exports.HIKAZS = HIKAZS;
28
+ //# sourceMappingURL=hikazs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hikazs.js","sourceRoot":"","sources":["../../src/segments/hikazs.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,oCAAiC;AAEjC,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED;;;GAGG;AACH,MAAa,MAAO,SAAQ,IAAA,sBAAY,EAAC,WAAW,CAAC;IAArD;;QACW,SAAI,GAAG,QAAQ,CAAC;IAW3B,CAAC;IATa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC;QACnD,IAAI,CAAC,aAAa,GAAG,aAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,aAAK,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;CACJ;AAZD,wBAYC"}
@@ -0,0 +1,17 @@
1
+ import { ReturnValue } from "../return-value";
2
+ export declare class HIRMGProps {
3
+ segNo: number;
4
+ returnValues: Map<string, ReturnValue>;
5
+ }
6
+ declare const HIRMG_base: import("..").Constructable<HIRMGProps & import("./segment").Segment<HIRMGProps>>;
7
+ /**
8
+ * HIRMG (Rückmeldungen zur Gesamtnachricht)
9
+ * Section B.7.2
10
+ */
11
+ export declare class HIRMG extends HIRMG_base {
12
+ type: string;
13
+ protected defaults(): void;
14
+ protected serialize(): string[][];
15
+ protected deserialize(input: string[][]): void;
16
+ }
17
+ export {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HIRMG = exports.HIRMGProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ const return_value_1 = require("../return-value");
6
+ class HIRMGProps {
7
+ }
8
+ exports.HIRMGProps = HIRMGProps;
9
+ /**
10
+ * HIRMG (Rückmeldungen zur Gesamtnachricht)
11
+ * Section B.7.2
12
+ */
13
+ class HIRMG extends (0, segment_1.SegmentClass)(HIRMGProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HIRMG";
17
+ }
18
+ defaults() {
19
+ this.version = 2;
20
+ }
21
+ serialize() {
22
+ throw new Error("Not implemented.");
23
+ }
24
+ deserialize(input) {
25
+ this.returnValues = new Map();
26
+ input
27
+ .map((dataElements) => {
28
+ const [code, , message, ...parameters] = dataElements;
29
+ return new return_value_1.ReturnValue({
30
+ code,
31
+ message,
32
+ parameters,
33
+ });
34
+ })
35
+ .forEach((response) => this.returnValues.set(response.code, response));
36
+ }
37
+ }
38
+ exports.HIRMG = HIRMG;
39
+ //# sourceMappingURL=hirmg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hirmg.js","sourceRoot":"","sources":["../../src/segments/hirmg.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,kDAA8C;AAE9C,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAuB1B,CAAC;IArBa,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAES,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC9B,KAAK;aACA,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;YAClB,MAAM,CAAC,IAAI,EAAE,AAAD,EAAG,OAAO,EAAE,GAAG,UAAU,CAAC,GAAG,YAAY,CAAC;YACtD,OAAO,IAAI,0BAAW,CAAC;gBACnB,IAAI;gBACJ,OAAO;gBACP,UAAU;aACb,CAAC,CAAC;QACP,CAAC,CAAC;aACD,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC/E,CAAC;CACJ;AAxBD,sBAwBC"}
@@ -0,0 +1,16 @@
1
+ import { ReturnValue } from "../return-value";
2
+ export declare class HIRMSProps {
3
+ segNo: number;
4
+ returnValues: Map<string, ReturnValue>;
5
+ }
6
+ declare const HIRMS_base: import("..").Constructable<HIRMSProps & import("./segment").Segment<HIRMSProps>>;
7
+ /**
8
+ * HIRMS (Rückmeldungen zu Segmenten)
9
+ * Section B.7.3
10
+ */
11
+ export declare class HIRMS extends HIRMS_base {
12
+ type: string;
13
+ protected serialize(): string[][];
14
+ protected deserialize(input: string[][]): void;
15
+ }
16
+ export {};
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HIRMS = exports.HIRMSProps = void 0;
4
+ const return_value_1 = require("../return-value");
5
+ const segment_1 = require("./segment");
6
+ class HIRMSProps {
7
+ }
8
+ exports.HIRMSProps = HIRMSProps;
9
+ /**
10
+ * HIRMS (Rückmeldungen zu Segmenten)
11
+ * Section B.7.3
12
+ */
13
+ class HIRMS extends (0, segment_1.SegmentClass)(HIRMSProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HIRMS";
17
+ }
18
+ serialize() {
19
+ throw new Error("Not implemented.");
20
+ }
21
+ deserialize(input) {
22
+ this.returnValues = new Map();
23
+ input
24
+ .map((dataElements) => {
25
+ const [code, references, message, ...parameters] = dataElements;
26
+ return new return_value_1.ReturnValue({
27
+ code,
28
+ message,
29
+ references: references.length > 0 ? references.split(",").map((reference) => Number(reference.trim())) : [],
30
+ parameters,
31
+ });
32
+ })
33
+ .forEach((response) => this.returnValues.set(response.code, response));
34
+ }
35
+ }
36
+ exports.HIRMS = HIRMS;
37
+ //# sourceMappingURL=hirms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hirms.js","sourceRoot":"","sources":["../../src/segments/hirms.ts"],"names":[],"mappings":";;;AAAA,kDAA8C;AAC9C,uCAAyC;AAEzC,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAqB1B,CAAC;IAnBa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC9B,KAAK;aACA,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;YAClB,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,GAAG,YAAY,CAAC;YAChE,OAAO,IAAI,0BAAW,CAAC;gBACnB,IAAI;gBACJ,OAAO;gBACP,UAAU,EACN,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBACnG,UAAU;aACb,CAAC,CAAC;QACP,CAAC,CAAC;aACD,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC/E,CAAC;CACJ;AAtBD,sBAsBC"}
@@ -0,0 +1,22 @@
1
+ import { SEPAAccount } from "../types";
2
+ export declare class HISALProps {
3
+ segNo: number;
4
+ account: SEPAAccount;
5
+ productName: string;
6
+ currency: string;
7
+ bookedBalance: number;
8
+ pendingBalance: number;
9
+ creditLimit: number;
10
+ availableBalance: number;
11
+ }
12
+ declare const HISAL_base: import("../types").Constructable<HISALProps & import("./segment").Segment<HISALProps>>;
13
+ /**
14
+ * HISAL (Saldenrückmeldung)
15
+ * Section C.2.1.2.2
16
+ */
17
+ export declare class HISAL extends HISAL_base {
18
+ type: string;
19
+ protected serialize(): string[][];
20
+ protected deserialize(input: string[][]): void;
21
+ }
22
+ export {};
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HISAL = exports.HISALProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ const parse_1 = require("../parse");
6
+ class HISALProps {
7
+ }
8
+ exports.HISALProps = HISALProps;
9
+ /**
10
+ * HISAL (Saldenrückmeldung)
11
+ * Section C.2.1.2.2
12
+ */
13
+ class HISAL extends (0, segment_1.SegmentClass)(HISALProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HISAL";
17
+ }
18
+ serialize() {
19
+ throw new Error("Not implemented.");
20
+ }
21
+ deserialize(input) {
22
+ const [[accountNumber, subAccount, _country, blz], [productName], [currency], [_cb, booked], [_cp, pending], [dispo], [available],] = input;
23
+ this.account = { accountNumber, subAccount, blz, iban: null, bic: null };
24
+ this.productName = productName;
25
+ this.currency = currency;
26
+ this.bookedBalance = parse_1.Parse.num(booked);
27
+ this.pendingBalance = parse_1.Parse.num(pending);
28
+ this.creditLimit = parse_1.Parse.num(dispo);
29
+ this.availableBalance = parse_1.Parse.num(available);
30
+ }
31
+ }
32
+ exports.HISAL = HISAL;
33
+ //# sourceMappingURL=hisal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hisal.js","sourceRoot":"","sources":["../../src/segments/hisal.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,oCAAiC;AAEjC,MAAa,UAAU;CAStB;AATD,gCASC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAwB1B,CAAC;IAtBa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CACF,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,CAAC,EAC1C,CAAC,WAAW,CAAC,EACb,CAAC,QAAQ,CAAC,EACV,CAAC,GAAG,EAAE,MAAM,CAAC,EACb,CAAC,GAAG,EAAE,OAAO,CAAC,EACd,CAAC,KAAK,CAAC,EACP,CAAC,SAAS,CAAC,EACd,GAAG,KAAK,CAAC;QACV,IAAI,CAAC,OAAO,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;QACzE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,aAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,aAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,aAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;CACJ;AAzBD,sBAyBC"}
@@ -0,0 +1,16 @@
1
+ export declare class HISALSProps {
2
+ segNo: number;
3
+ maxRequestCount: number;
4
+ minSignatures: number;
5
+ }
6
+ declare const HISALS_base: import("..").Constructable<HISALSProps & import("./segment").Segment<HISALSProps>>;
7
+ /**
8
+ * HISALS (Saldenabfrage Parameter)
9
+ * Section C.2.1.2
10
+ */
11
+ export declare class HISALS extends HISALS_base {
12
+ type: string;
13
+ protected serialize(): string[][];
14
+ protected deserialize(input: string[][]): void;
15
+ }
16
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HISALS = exports.HISALSProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ const parse_1 = require("../parse");
6
+ class HISALSProps {
7
+ }
8
+ exports.HISALSProps = HISALSProps;
9
+ /**
10
+ * HISALS (Saldenabfrage Parameter)
11
+ * Section C.2.1.2
12
+ */
13
+ class HISALS extends (0, segment_1.SegmentClass)(HISALSProps) {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.type = "HISALS";
17
+ }
18
+ serialize() {
19
+ throw new Error("Not implemented.");
20
+ }
21
+ deserialize(input) {
22
+ const [[maxRequestCount], [minSignatures]] = input;
23
+ this.minSignatures = parse_1.Parse.num(minSignatures);
24
+ this.maxRequestCount = parse_1.Parse.num(maxRequestCount);
25
+ }
26
+ }
27
+ exports.HISALS = HISALS;
28
+ //# sourceMappingURL=hisals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hisals.js","sourceRoot":"","sources":["../../src/segments/hisals.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,oCAAiC;AAEjC,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED;;;GAGG;AACH,MAAa,MAAO,SAAQ,IAAA,sBAAY,EAAC,WAAW,CAAC;IAArD;;QACW,SAAI,GAAG,QAAQ,CAAC;IAW3B,CAAC;IATa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC;QACnD,IAAI,CAAC,aAAa,GAAG,aAAK,CAAC,GAAG,CAAC,aAAuB,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,aAAK,CAAC,GAAG,CAAC,eAAyB,CAAC,CAAC;IAChE,CAAC;CACJ;AAZD,wBAYC"}
@@ -0,0 +1,16 @@
1
+ import { SEPAAccount } from "../types";
2
+ export declare class HISPAProps {
3
+ segNo: number;
4
+ accounts: SEPAAccount[];
5
+ }
6
+ declare const HISPA_base: import("../types").Constructable<HISPAProps & import("./segment").Segment<HISPAProps>>;
7
+ /**
8
+ * HISPA (SEPA-Kontoverbindung rückmelden)
9
+ * Section C.10.1.3
10
+ */
11
+ export declare class HISPA extends HISPA_base {
12
+ type: string;
13
+ protected serialize(): string[][];
14
+ protected deserialize(input: string[][]): void;
15
+ }
16
+ export {};
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HISPA = exports.HISPAProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ class HISPAProps {
6
+ }
7
+ exports.HISPAProps = HISPAProps;
8
+ /**
9
+ * HISPA (SEPA-Kontoverbindung rückmelden)
10
+ * Section C.10.1.3
11
+ */
12
+ class HISPA extends (0, segment_1.SegmentClass)(HISPAProps) {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.type = "HISPA";
16
+ }
17
+ serialize() {
18
+ throw new Error("Not implemented.");
19
+ }
20
+ deserialize(input) {
21
+ this.accounts = input.map(([_hasSepa, iban, bic, accountNumber, subAccount, _countryCode, blz]) => ({
22
+ iban,
23
+ bic,
24
+ accountNumber,
25
+ subAccount,
26
+ blz,
27
+ }));
28
+ }
29
+ }
30
+ exports.HISPA = HISPA;
31
+ //# sourceMappingURL=hispa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hispa.js","sourceRoot":"","sources":["../../src/segments/hispa.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAGzC,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED;;;GAGG;AACH,MAAa,KAAM,SAAQ,IAAA,sBAAY,EAAC,UAAU,CAAC;IAAnD;;QACW,SAAI,GAAG,OAAO,CAAC;IAe1B,CAAC;IAba,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;YAChG,IAAI;YACJ,GAAG;YACH,aAAa;YACb,UAAU;YACV,GAAG;SACN,CAAC,CAAC,CAAC;IACR,CAAC;CACJ;AAhBD,sBAgBC"}
@@ -0,0 +1,14 @@
1
+ export declare class HISPASProps {
2
+ segNo: number;
3
+ painFormats: string[];
4
+ }
5
+ declare const HISPAS_base: import("..").Constructable<HISPASProps & import("./segment").Segment<HISPASProps>>;
6
+ /**
7
+ * HISPAS
8
+ */
9
+ export declare class HISPAS extends HISPAS_base {
10
+ type: string;
11
+ protected serialize(): string[][];
12
+ protected deserialize(input: string[][]): void;
13
+ }
14
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HISPAS = exports.HISPASProps = void 0;
4
+ const segment_1 = require("./segment");
5
+ class HISPASProps {
6
+ constructor() {
7
+ this.painFormats = [];
8
+ }
9
+ }
10
+ exports.HISPASProps = HISPASProps;
11
+ /**
12
+ * HISPAS
13
+ */
14
+ class HISPAS extends (0, segment_1.SegmentClass)(HISPASProps) {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.type = "HISPAS";
18
+ }
19
+ serialize() {
20
+ throw new Error("Not implemented.");
21
+ }
22
+ deserialize(input) {
23
+ const [[], [], [], [...painFormats]] = input;
24
+ this.painFormats = painFormats.filter((x) => x.indexOf("pain") !== -1);
25
+ }
26
+ }
27
+ exports.HISPAS = HISPAS;
28
+ //# sourceMappingURL=hispas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hispas.js","sourceRoot":"","sources":["../../src/segments/hispas.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAEzC,MAAa,WAAW;IAAxB;QAEW,gBAAW,GAAa,EAAE,CAAC;IACtC,CAAC;CAAA;AAHD,kCAGC;AAED;;GAEG;AACH,MAAa,MAAO,SAAQ,IAAA,sBAAY,EAAC,WAAW,CAAC;IAArD;;QACW,SAAI,GAAG,QAAQ,CAAC;IAW3B,CAAC;IATa,SAAS;QACf,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAES,WAAW,CAAC,KAAiB;QACnC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,GAAG,KAAK,CAAC;QAE7C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ;AAZD,wBAYC"}