@kreiseck/kasseneck-api 0.8.0 → 0.9.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 (46) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/cjs/receipt/layout.d.ts +11 -5
  3. package/dist/cjs/receipt/layout.js +248 -26
  4. package/dist/esm/receipt/layout.d.ts +11 -5
  5. package/dist/esm/receipt/layout.js +247 -26
  6. package/fixtures/belege/karte-eigener.json +44 -0
  7. package/fixtures/belege/karte-gptom-ios.json +59 -0
  8. package/fixtures/belege/karte-gptom.json +59 -0
  9. package/fixtures/belege/karte-hobex-cloud.json +54 -0
  10. package/fixtures/belege/karte-hobex-hps.json +54 -0
  11. package/fixtures/belege/karte-mypos.json +55 -0
  12. package/fixtures/belege/karte-stripe-eps.json +52 -0
  13. package/fixtures/belege/karte-stripe.json +57 -0
  14. package/fixtures/belege/karte-sumup.json +53 -0
  15. package/fixtures/erwartet/karte-eigener.grid32.txt +22 -0
  16. package/fixtures/erwartet/karte-eigener.grid48.txt +22 -0
  17. package/fixtures/erwartet/karte-eigener.lines.json +216 -0
  18. package/fixtures/erwartet/karte-gptom-ios.grid32.txt +34 -0
  19. package/fixtures/erwartet/karte-gptom-ios.grid48.txt +34 -0
  20. package/fixtures/erwartet/karte-gptom-ios.lines.json +286 -0
  21. package/fixtures/erwartet/karte-gptom.grid32.txt +34 -0
  22. package/fixtures/erwartet/karte-gptom.grid48.txt +34 -0
  23. package/fixtures/erwartet/karte-gptom.lines.json +286 -0
  24. package/fixtures/erwartet/karte-hobex-cloud.grid32.txt +29 -0
  25. package/fixtures/erwartet/karte-hobex-cloud.grid48.txt +29 -0
  26. package/fixtures/erwartet/karte-hobex-cloud.lines.json +256 -0
  27. package/fixtures/erwartet/karte-hobex-hps.grid32.txt +33 -0
  28. package/fixtures/erwartet/karte-hobex-hps.grid48.txt +33 -0
  29. package/fixtures/erwartet/karte-hobex-hps.lines.json +272 -0
  30. package/fixtures/erwartet/karte-mypos.grid32.txt +38 -0
  31. package/fixtures/erwartet/karte-mypos.grid48.txt +36 -0
  32. package/fixtures/erwartet/karte-mypos.lines.json +353 -0
  33. package/fixtures/erwartet/karte-stripe-eps.grid32.txt +28 -0
  34. package/fixtures/erwartet/karte-stripe-eps.grid48.txt +28 -0
  35. package/fixtures/erwartet/karte-stripe-eps.lines.json +250 -0
  36. package/fixtures/erwartet/karte-stripe.grid32.txt +31 -0
  37. package/fixtures/erwartet/karte-stripe.grid48.txt +31 -0
  38. package/fixtures/erwartet/karte-stripe.lines.json +268 -0
  39. package/fixtures/erwartet/karte-sumup.grid32.txt +32 -0
  40. package/fixtures/erwartet/karte-sumup.grid48.txt +30 -0
  41. package/fixtures/erwartet/karte-sumup.lines.json +316 -0
  42. package/fixtures/hobex-hps-codes.json +1 -1
  43. package/fixtures/kasse-texte.json +1 -1
  44. package/fixtures/manifest.json +54 -0
  45. package/fixtures/oberflaeche.json +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-64
10
+
11
+ 1 x Behandlung 120,00 A
12
+
13
+ MwSt% MwSt Netto Brutto
14
+ A 20% 20,00 100,00 120,00
15
+ ------------------------------------------------
16
+ Gesamt: 120,00 €
17
+ Zahlungsart: Kartenzahlung
18
+
19
+ [QR-Code]
20
+
21
+ Online-Zahlung (Stripe)
22
+ Visa Kreditkarte (Apple Pay)
23
+ **** **** **** 4242
24
+ 3-D Secure: ja
25
+ Gesamtbetrag 120,00 EUR
26
+ Bezahlt: 15.08.2026 08:15
27
+ Abrechnung: MUSTER STUDIO
28
+ Referenz: pi_3QabcXYZ0001
29
+
30
+ Vielen Dank für Ihren Einkauf
31
+ www.baeckerei-muster.at
@@ -0,0 +1,268 @@
1
+ {
2
+ "lines": [
3
+ {
4
+ "kind": "text",
5
+ "text": "Bäckerei Muster",
6
+ "align": "center",
7
+ "bold": true
8
+ },
9
+ {
10
+ "kind": "text",
11
+ "text": "Hauptplatz 1",
12
+ "align": "center",
13
+ "bold": false
14
+ },
15
+ {
16
+ "kind": "text",
17
+ "text": "4830 Hallstatt",
18
+ "align": "center",
19
+ "bold": false
20
+ },
21
+ {
22
+ "kind": "text",
23
+ "text": "ATU12345678",
24
+ "align": "center",
25
+ "bold": false
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "+43 6134 12345",
30
+ "align": "center",
31
+ "bold": false
32
+ },
33
+ {
34
+ "kind": "space",
35
+ "lines": 1
36
+ },
37
+ {
38
+ "kind": "columns",
39
+ "columns": [
40
+ {
41
+ "text": "Datum:",
42
+ "width": 4,
43
+ "align": "left"
44
+ },
45
+ {
46
+ "text": "13.08.2026 10:15:30",
47
+ "width": 8,
48
+ "align": "right"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "kind": "columns",
54
+ "columns": [
55
+ {
56
+ "text": "Kassen-ID:",
57
+ "width": 6,
58
+ "align": "left"
59
+ },
60
+ {
61
+ "text": "KASSE1",
62
+ "width": 6,
63
+ "align": "right"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "kind": "columns",
69
+ "columns": [
70
+ {
71
+ "text": "Beleg-ID:",
72
+ "width": 6,
73
+ "align": "left"
74
+ },
75
+ {
76
+ "text": "AT0-KASSE1-64",
77
+ "width": 6,
78
+ "align": "right"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "kind": "space",
84
+ "lines": 1
85
+ },
86
+ {
87
+ "kind": "columns",
88
+ "columns": [
89
+ {
90
+ "text": "1 x Behandlung",
91
+ "width": 7,
92
+ "align": "left"
93
+ },
94
+ {
95
+ "text": "120,00 A",
96
+ "width": 5,
97
+ "align": "right"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "kind": "space",
103
+ "lines": 1
104
+ },
105
+ {
106
+ "kind": "columns",
107
+ "columns": [
108
+ {
109
+ "text": "MwSt%",
110
+ "width": 3,
111
+ "align": "left"
112
+ },
113
+ {
114
+ "text": "MwSt",
115
+ "width": 4,
116
+ "align": "left"
117
+ },
118
+ {
119
+ "text": "Netto",
120
+ "width": 3,
121
+ "align": "left"
122
+ },
123
+ {
124
+ "text": "Brutto",
125
+ "width": 2,
126
+ "align": "right"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "kind": "columns",
132
+ "columns": [
133
+ {
134
+ "text": "A 20%",
135
+ "width": 3,
136
+ "align": "left"
137
+ },
138
+ {
139
+ "text": "20,00",
140
+ "width": 4,
141
+ "align": "left"
142
+ },
143
+ {
144
+ "text": "100,00",
145
+ "width": 3,
146
+ "align": "left"
147
+ },
148
+ {
149
+ "text": "120,00",
150
+ "width": 2,
151
+ "align": "right"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "kind": "rule",
157
+ "char": "-"
158
+ },
159
+ {
160
+ "kind": "columns",
161
+ "columns": [
162
+ {
163
+ "text": "Gesamt:",
164
+ "width": 6,
165
+ "align": "left"
166
+ },
167
+ {
168
+ "text": "120,00 €",
169
+ "width": 6,
170
+ "align": "right"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "kind": "columns",
176
+ "columns": [
177
+ {
178
+ "text": "Zahlungsart:",
179
+ "width": 6,
180
+ "align": "left"
181
+ },
182
+ {
183
+ "text": "Kartenzahlung",
184
+ "width": 6,
185
+ "align": "right"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "kind": "space",
191
+ "lines": 1
192
+ },
193
+ {
194
+ "kind": "qr",
195
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-64_2026-08-13T10:15:30_120,00_0,00_0,00_0,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR"
196
+ },
197
+ {
198
+ "kind": "space",
199
+ "lines": 1
200
+ },
201
+ {
202
+ "kind": "text",
203
+ "text": "Online-Zahlung (Stripe)",
204
+ "align": "center",
205
+ "bold": true
206
+ },
207
+ {
208
+ "kind": "text",
209
+ "text": "Visa Kreditkarte (Apple Pay)",
210
+ "align": "center",
211
+ "bold": false
212
+ },
213
+ {
214
+ "kind": "text",
215
+ "text": "**** **** **** 4242",
216
+ "align": "center",
217
+ "bold": false
218
+ },
219
+ {
220
+ "kind": "text",
221
+ "text": "3-D Secure: ja",
222
+ "align": "center",
223
+ "bold": false
224
+ },
225
+ {
226
+ "kind": "text",
227
+ "text": "Gesamtbetrag 120,00 EUR",
228
+ "align": "center",
229
+ "bold": false
230
+ },
231
+ {
232
+ "kind": "text",
233
+ "text": "Bezahlt: 15.08.2026 08:15",
234
+ "align": "center",
235
+ "bold": false
236
+ },
237
+ {
238
+ "kind": "text",
239
+ "text": "Abrechnung: MUSTER STUDIO",
240
+ "align": "center",
241
+ "bold": false
242
+ },
243
+ {
244
+ "kind": "text",
245
+ "text": "Referenz: pi_3QabcXYZ0001",
246
+ "align": "center",
247
+ "bold": false
248
+ },
249
+ {
250
+ "kind": "space",
251
+ "lines": 1
252
+ },
253
+ {
254
+ "kind": "text",
255
+ "text": "Vielen Dank für Ihren Einkauf",
256
+ "align": "center",
257
+ "bold": false
258
+ },
259
+ {
260
+ "kind": "text",
261
+ "text": "www.baeckerei-muster.at",
262
+ "align": "center",
263
+ "bold": false
264
+ }
265
+ ],
266
+ "paperSize": "mm80",
267
+ "regelwerk": 2
268
+ }
@@ -0,0 +1,32 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-62
10
+
11
+ 1 x Behandlung 120,00 A
12
+
13
+ MwSt% MwSt Netto Brutto
14
+ A 20% 20,00 100,00 120,00
15
+ --------------------------------
16
+ Gesamt: 120,00 €
17
+ Zahlungsart: Kartenzahlung
18
+
19
+ [QR-Code]
20
+
21
+ Sumup Beleg
22
+ Kartentyp: MASTERCARD
23
+ Kartennummer: **** **** ****
24
+ 4720
25
+ Zahlungstyp: CONTACTLESS
26
+ Gesamtbetrag: 120,00 EUR
27
+ Transaktionscod TEZBA9K7QK
28
+ e:
29
+ Modus: CONTACTLESS
30
+
31
+ Vielen Dank für Ihren Einkauf
32
+ www.baeckerei-muster.at
@@ -0,0 +1,30 @@
1
+ Bäckerei Muster
2
+ Hauptplatz 1
3
+ 4830 Hallstatt
4
+ ATU12345678
5
+ +43 6134 12345
6
+
7
+ Datum: 13.08.2026 10:15:30
8
+ Kassen-ID: KASSE1
9
+ Beleg-ID: AT0-KASSE1-62
10
+
11
+ 1 x Behandlung 120,00 A
12
+
13
+ MwSt% MwSt Netto Brutto
14
+ A 20% 20,00 100,00 120,00
15
+ ------------------------------------------------
16
+ Gesamt: 120,00 €
17
+ Zahlungsart: Kartenzahlung
18
+
19
+ [QR-Code]
20
+
21
+ Sumup Beleg
22
+ Kartentyp: MASTERCARD
23
+ Kartennummer: **** **** **** 4720
24
+ Zahlungstyp: CONTACTLESS
25
+ Gesamtbetrag: 120,00 EUR
26
+ Transaktionscode: TEZBA9K7QK
27
+ Modus: CONTACTLESS
28
+
29
+ Vielen Dank für Ihren Einkauf
30
+ www.baeckerei-muster.at
@@ -0,0 +1,316 @@
1
+ {
2
+ "lines": [
3
+ {
4
+ "kind": "text",
5
+ "text": "Bäckerei Muster",
6
+ "align": "center",
7
+ "bold": true
8
+ },
9
+ {
10
+ "kind": "text",
11
+ "text": "Hauptplatz 1",
12
+ "align": "center",
13
+ "bold": false
14
+ },
15
+ {
16
+ "kind": "text",
17
+ "text": "4830 Hallstatt",
18
+ "align": "center",
19
+ "bold": false
20
+ },
21
+ {
22
+ "kind": "text",
23
+ "text": "ATU12345678",
24
+ "align": "center",
25
+ "bold": false
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "+43 6134 12345",
30
+ "align": "center",
31
+ "bold": false
32
+ },
33
+ {
34
+ "kind": "space",
35
+ "lines": 1
36
+ },
37
+ {
38
+ "kind": "columns",
39
+ "columns": [
40
+ {
41
+ "text": "Datum:",
42
+ "width": 4,
43
+ "align": "left"
44
+ },
45
+ {
46
+ "text": "13.08.2026 10:15:30",
47
+ "width": 8,
48
+ "align": "right"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "kind": "columns",
54
+ "columns": [
55
+ {
56
+ "text": "Kassen-ID:",
57
+ "width": 6,
58
+ "align": "left"
59
+ },
60
+ {
61
+ "text": "KASSE1",
62
+ "width": 6,
63
+ "align": "right"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "kind": "columns",
69
+ "columns": [
70
+ {
71
+ "text": "Beleg-ID:",
72
+ "width": 6,
73
+ "align": "left"
74
+ },
75
+ {
76
+ "text": "AT0-KASSE1-62",
77
+ "width": 6,
78
+ "align": "right"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "kind": "space",
84
+ "lines": 1
85
+ },
86
+ {
87
+ "kind": "columns",
88
+ "columns": [
89
+ {
90
+ "text": "1 x Behandlung",
91
+ "width": 7,
92
+ "align": "left"
93
+ },
94
+ {
95
+ "text": "120,00 A",
96
+ "width": 5,
97
+ "align": "right"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "kind": "space",
103
+ "lines": 1
104
+ },
105
+ {
106
+ "kind": "columns",
107
+ "columns": [
108
+ {
109
+ "text": "MwSt%",
110
+ "width": 3,
111
+ "align": "left"
112
+ },
113
+ {
114
+ "text": "MwSt",
115
+ "width": 4,
116
+ "align": "left"
117
+ },
118
+ {
119
+ "text": "Netto",
120
+ "width": 3,
121
+ "align": "left"
122
+ },
123
+ {
124
+ "text": "Brutto",
125
+ "width": 2,
126
+ "align": "right"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "kind": "columns",
132
+ "columns": [
133
+ {
134
+ "text": "A 20%",
135
+ "width": 3,
136
+ "align": "left"
137
+ },
138
+ {
139
+ "text": "20,00",
140
+ "width": 4,
141
+ "align": "left"
142
+ },
143
+ {
144
+ "text": "100,00",
145
+ "width": 3,
146
+ "align": "left"
147
+ },
148
+ {
149
+ "text": "120,00",
150
+ "width": 2,
151
+ "align": "right"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "kind": "rule",
157
+ "char": "-"
158
+ },
159
+ {
160
+ "kind": "columns",
161
+ "columns": [
162
+ {
163
+ "text": "Gesamt:",
164
+ "width": 6,
165
+ "align": "left"
166
+ },
167
+ {
168
+ "text": "120,00 €",
169
+ "width": 6,
170
+ "align": "right"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "kind": "columns",
176
+ "columns": [
177
+ {
178
+ "text": "Zahlungsart:",
179
+ "width": 6,
180
+ "align": "left"
181
+ },
182
+ {
183
+ "text": "Kartenzahlung",
184
+ "width": 6,
185
+ "align": "right"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "kind": "space",
191
+ "lines": 1
192
+ },
193
+ {
194
+ "kind": "qr",
195
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-62_2026-08-13T10:15:30_120,00_0,00_0,00_0,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR"
196
+ },
197
+ {
198
+ "kind": "space",
199
+ "lines": 1
200
+ },
201
+ {
202
+ "kind": "text",
203
+ "text": "Sumup Beleg",
204
+ "align": "center",
205
+ "bold": true
206
+ },
207
+ {
208
+ "kind": "columns",
209
+ "columns": [
210
+ {
211
+ "text": "Kartentyp:",
212
+ "width": 6,
213
+ "align": "left"
214
+ },
215
+ {
216
+ "text": "MASTERCARD",
217
+ "width": 6,
218
+ "align": "right"
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "kind": "columns",
224
+ "columns": [
225
+ {
226
+ "text": "Kartennummer:",
227
+ "width": 6,
228
+ "align": "left"
229
+ },
230
+ {
231
+ "text": "**** **** **** 4720",
232
+ "width": 6,
233
+ "align": "right"
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "kind": "columns",
239
+ "columns": [
240
+ {
241
+ "text": "Zahlungstyp:",
242
+ "width": 6,
243
+ "align": "left"
244
+ },
245
+ {
246
+ "text": "CONTACTLESS",
247
+ "width": 6,
248
+ "align": "right"
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "kind": "columns",
254
+ "columns": [
255
+ {
256
+ "text": "Gesamtbetrag:",
257
+ "width": 6,
258
+ "align": "left"
259
+ },
260
+ {
261
+ "text": "120,00 EUR",
262
+ "width": 6,
263
+ "align": "right"
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "kind": "columns",
269
+ "columns": [
270
+ {
271
+ "text": "Transaktionscode:",
272
+ "width": 6,
273
+ "align": "left"
274
+ },
275
+ {
276
+ "text": "TEZBA9K7QK",
277
+ "width": 6,
278
+ "align": "right"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "kind": "columns",
284
+ "columns": [
285
+ {
286
+ "text": "Modus:",
287
+ "width": 6,
288
+ "align": "left"
289
+ },
290
+ {
291
+ "text": "CONTACTLESS",
292
+ "width": 6,
293
+ "align": "right"
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "kind": "space",
299
+ "lines": 1
300
+ },
301
+ {
302
+ "kind": "text",
303
+ "text": "Vielen Dank für Ihren Einkauf",
304
+ "align": "center",
305
+ "bold": false
306
+ },
307
+ {
308
+ "kind": "text",
309
+ "text": "www.baeckerei-muster.at",
310
+ "align": "center",
311
+ "bold": false
312
+ }
313
+ ],
314
+ "paperSize": "mm80",
315
+ "regelwerk": 2
316
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.0",
2
+ "version": "0.9.0",
3
3
  "gemessenAn": {
4
4
  "tid": "3600335",
5
5
  "hpsVersion": "1.10.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.0",
2
+ "version": "0.9.0",
3
3
  "meldungen": {
4
4
  "netz.keine_verbindung": {
5
5
  "text": "Keine Verbindung zum Server. Bitte die Internetverbindung prüfen und erneut versuchen."