@kreiseck/kasseneck-api 0.28.0 → 0.30.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 (113) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +41 -5
  3. package/dist/cjs/client/api.d.ts +3 -3
  4. package/dist/cjs/client/index.d.ts +1 -1
  5. package/dist/cjs/client/receipts.d.ts +32 -3
  6. package/dist/cjs/client/receipts.js +121 -6
  7. package/dist/cjs/enums/keck-payment-method.d.ts +10 -0
  8. package/dist/cjs/enums/keck-payment-method.js +6 -0
  9. package/dist/cjs/index.d.ts +2 -2
  10. package/dist/cjs/index.js +6 -2
  11. package/dist/cjs/models/cancellation.d.ts +11 -1
  12. package/dist/cjs/models/cancellation.js +15 -0
  13. package/dist/cjs/models/index.d.ts +2 -0
  14. package/dist/cjs/models/index.js +7 -1
  15. package/dist/cjs/models/payment-errors.d.ts +22 -0
  16. package/dist/cjs/models/payment-errors.js +46 -0
  17. package/dist/cjs/models/receipt-payment.d.ts +85 -0
  18. package/dist/cjs/models/receipt-payment.js +40 -0
  19. package/dist/cjs/models/receipt-summary.d.ts +9 -0
  20. package/dist/cjs/models/receipt-summary.js +2 -0
  21. package/dist/cjs/models/receipt.d.ts +9 -0
  22. package/dist/cjs/models/receipt.js +3 -0
  23. package/dist/cjs/partner/fehler.d.ts +28 -2
  24. package/dist/cjs/partner/fehler.js +55 -11
  25. package/dist/cjs/partner/index.d.ts +1 -1
  26. package/dist/cjs/partner/typen.d.ts +9 -2
  27. package/dist/cjs/receipt/layout.js +112 -10
  28. package/dist/esm/client/api.d.ts +3 -3
  29. package/dist/esm/client/index.d.ts +1 -1
  30. package/dist/esm/client/receipts.d.ts +32 -3
  31. package/dist/esm/client/receipts.js +121 -6
  32. package/dist/esm/enums/keck-payment-method.d.ts +10 -0
  33. package/dist/esm/enums/keck-payment-method.js +6 -0
  34. package/dist/esm/index.d.ts +2 -2
  35. package/dist/esm/index.js +1 -1
  36. package/dist/esm/models/cancellation.d.ts +11 -1
  37. package/dist/esm/models/cancellation.js +15 -0
  38. package/dist/esm/models/index.d.ts +2 -0
  39. package/dist/esm/models/index.js +2 -0
  40. package/dist/esm/models/payment-errors.d.ts +22 -0
  41. package/dist/esm/models/payment-errors.js +42 -0
  42. package/dist/esm/models/receipt-payment.d.ts +85 -0
  43. package/dist/esm/models/receipt-payment.js +36 -0
  44. package/dist/esm/models/receipt-summary.d.ts +9 -0
  45. package/dist/esm/models/receipt-summary.js +2 -0
  46. package/dist/esm/models/receipt.d.ts +9 -0
  47. package/dist/esm/models/receipt.js +3 -0
  48. package/dist/esm/partner/fehler.d.ts +28 -2
  49. package/dist/esm/partner/fehler.js +55 -11
  50. package/dist/esm/partner/index.d.ts +1 -1
  51. package/dist/esm/partner/typen.d.ts +9 -2
  52. package/dist/esm/receipt/layout.js +112 -10
  53. package/fixtures/belege/split-bar-rueckgeld.json +58 -0
  54. package/fixtures/belege/split-eine-karte-trinkgeld.json +75 -0
  55. package/fixtures/belege/split-karte-karte-bar.json +102 -0
  56. package/fixtures/belege/split-langer-betrag.json +74 -0
  57. package/fixtures/belege/split-tischrunde-trinkgeld.json +152 -0
  58. package/fixtures/belege/split-trinkgeld-karte.json +82 -0
  59. package/fixtures/belege/split-zwei-karten-gleicher-anbieter.json +89 -0
  60. package/fixtures/belege/storno-split-teil.json +71 -0
  61. package/fixtures/belege/storno-split-voll.json +100 -0
  62. package/fixtures/erwartet/split-bar-rueckgeld.blatt32.json +194 -0
  63. package/fixtures/erwartet/split-bar-rueckgeld.blatt48.json +182 -0
  64. package/fixtures/erwartet/split-bar-rueckgeld.grid32.txt +28 -0
  65. package/fixtures/erwartet/split-bar-rueckgeld.grid48.txt +26 -0
  66. package/fixtures/erwartet/split-bar-rueckgeld.lines.json +286 -0
  67. package/fixtures/erwartet/split-eine-karte-trinkgeld.blatt32.json +242 -0
  68. package/fixtures/erwartet/split-eine-karte-trinkgeld.blatt48.json +224 -0
  69. package/fixtures/erwartet/split-eine-karte-trinkgeld.grid32.txt +36 -0
  70. package/fixtures/erwartet/split-eine-karte-trinkgeld.grid48.txt +33 -0
  71. package/fixtures/erwartet/split-eine-karte-trinkgeld.lines.json +371 -0
  72. package/fixtures/erwartet/split-karte-karte-bar.blatt32.json +356 -0
  73. package/fixtures/erwartet/split-karte-karte-bar.blatt48.json +338 -0
  74. package/fixtures/erwartet/split-karte-karte-bar.grid32.txt +55 -0
  75. package/fixtures/erwartet/split-karte-karte-bar.grid48.txt +52 -0
  76. package/fixtures/erwartet/split-karte-karte-bar.lines.json +519 -0
  77. package/fixtures/erwartet/split-langer-betrag.blatt32.json +266 -0
  78. package/fixtures/erwartet/split-langer-betrag.blatt48.json +260 -0
  79. package/fixtures/erwartet/split-langer-betrag.grid32.txt +40 -0
  80. package/fixtures/erwartet/split-langer-betrag.grid48.txt +39 -0
  81. package/fixtures/erwartet/split-langer-betrag.lines.json +343 -0
  82. package/fixtures/erwartet/split-tischrunde-trinkgeld.blatt32.json +470 -0
  83. package/fixtures/erwartet/split-tischrunde-trinkgeld.blatt48.json +434 -0
  84. package/fixtures/erwartet/split-tischrunde-trinkgeld.grid32.txt +74 -0
  85. package/fixtures/erwartet/split-tischrunde-trinkgeld.grid48.txt +68 -0
  86. package/fixtures/erwartet/split-tischrunde-trinkgeld.lines.json +740 -0
  87. package/fixtures/erwartet/split-trinkgeld-karte.blatt32.json +272 -0
  88. package/fixtures/erwartet/split-trinkgeld-karte.blatt48.json +254 -0
  89. package/fixtures/erwartet/split-trinkgeld-karte.grid32.txt +41 -0
  90. package/fixtures/erwartet/split-trinkgeld-karte.grid48.txt +38 -0
  91. package/fixtures/erwartet/split-trinkgeld-karte.lines.json +428 -0
  92. package/fixtures/erwartet/split-zwei-karten-gleicher-anbieter.blatt32.json +326 -0
  93. package/fixtures/erwartet/split-zwei-karten-gleicher-anbieter.blatt48.json +296 -0
  94. package/fixtures/erwartet/split-zwei-karten-gleicher-anbieter.grid32.txt +50 -0
  95. package/fixtures/erwartet/split-zwei-karten-gleicher-anbieter.grid48.txt +45 -0
  96. package/fixtures/erwartet/split-zwei-karten-gleicher-anbieter.lines.json +504 -0
  97. package/fixtures/erwartet/storno-split-teil.blatt32.json +230 -0
  98. package/fixtures/erwartet/storno-split-teil.blatt48.json +224 -0
  99. package/fixtures/erwartet/storno-split-teil.grid32.txt +34 -0
  100. package/fixtures/erwartet/storno-split-teil.grid48.txt +33 -0
  101. package/fixtures/erwartet/storno-split-teil.lines.json +304 -0
  102. package/fixtures/erwartet/storno-split-voll.blatt32.json +320 -0
  103. package/fixtures/erwartet/storno-split-voll.blatt48.json +314 -0
  104. package/fixtures/erwartet/storno-split-voll.grid32.txt +49 -0
  105. package/fixtures/erwartet/storno-split-voll.grid48.txt +48 -0
  106. package/fixtures/erwartet/storno-split-voll.lines.json +410 -0
  107. package/fixtures/hobex-hps-codes.json +1 -1
  108. package/fixtures/kasse-texte.json +1 -1
  109. package/fixtures/manifest.json +72 -0
  110. package/fixtures/oberflaeche.json +12 -6
  111. package/fixtures/rechnung-api.schema.json +1 -1
  112. package/fixtures/rechnung-texte.json +1 -1
  113. package/package.json +1 -1
@@ -0,0 +1,428 @@
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": "25.09.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-73",
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": "2 x Tagesteller je 18,90",
91
+ "width": 7,
92
+ "align": "left"
93
+ },
94
+ {
95
+ "text": "37,80 B",
96
+ "width": 5,
97
+ "align": "right"
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "kind": "columns",
103
+ "columns": [
104
+ {
105
+ "text": "Trinkgeld Personal",
106
+ "width": 8,
107
+ "align": "left"
108
+ },
109
+ {
110
+ "text": "3,00 D",
111
+ "width": 4,
112
+ "align": "right"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "kind": "space",
118
+ "lines": 1
119
+ },
120
+ {
121
+ "kind": "columns",
122
+ "columns": [
123
+ {
124
+ "text": "MwSt%",
125
+ "width": 3,
126
+ "align": "left"
127
+ },
128
+ {
129
+ "text": "MwSt",
130
+ "width": 3,
131
+ "align": "left"
132
+ },
133
+ {
134
+ "text": "Netto",
135
+ "width": 3,
136
+ "align": "left"
137
+ },
138
+ {
139
+ "text": "Brutto",
140
+ "width": 3,
141
+ "align": "right"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "kind": "columns",
147
+ "columns": [
148
+ {
149
+ "text": "B 10%",
150
+ "width": 3,
151
+ "align": "left"
152
+ },
153
+ {
154
+ "text": "3,44",
155
+ "width": 3,
156
+ "align": "left"
157
+ },
158
+ {
159
+ "text": "34,36",
160
+ "width": 3,
161
+ "align": "left"
162
+ },
163
+ {
164
+ "text": "37,80",
165
+ "width": 3,
166
+ "align": "right"
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "kind": "columns",
172
+ "columns": [
173
+ {
174
+ "text": "D 0%",
175
+ "width": 3,
176
+ "align": "left"
177
+ },
178
+ {
179
+ "text": "0,00",
180
+ "width": 3,
181
+ "align": "left"
182
+ },
183
+ {
184
+ "text": "3,00",
185
+ "width": 3,
186
+ "align": "left"
187
+ },
188
+ {
189
+ "text": "3,00",
190
+ "width": 3,
191
+ "align": "right"
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "kind": "rule",
197
+ "char": "-"
198
+ },
199
+ {
200
+ "kind": "columns",
201
+ "columns": [
202
+ {
203
+ "text": "Gesamt:",
204
+ "width": 6,
205
+ "align": "left"
206
+ },
207
+ {
208
+ "text": "40,80 €",
209
+ "width": 6,
210
+ "align": "right"
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "kind": "text",
216
+ "text": "Zahlungsarten:",
217
+ "align": "left",
218
+ "bold": false
219
+ },
220
+ {
221
+ "kind": "columns",
222
+ "columns": [
223
+ {
224
+ "text": "1. Kartenzahlung",
225
+ "width": 8,
226
+ "align": "left"
227
+ },
228
+ {
229
+ "text": "20,80 €",
230
+ "width": 4,
231
+ "align": "right"
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "columns",
237
+ "columns": [
238
+ {
239
+ "text": " davon Trinkgeld",
240
+ "width": 8,
241
+ "align": "left"
242
+ },
243
+ {
244
+ "text": "3,00 €",
245
+ "width": 4,
246
+ "align": "right"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "kind": "columns",
252
+ "columns": [
253
+ {
254
+ "text": "2. Barzahlung",
255
+ "width": 8,
256
+ "align": "left"
257
+ },
258
+ {
259
+ "text": "20,00 €",
260
+ "width": 4,
261
+ "align": "right"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "kind": "columns",
267
+ "columns": [
268
+ {
269
+ "text": " Gegeben:",
270
+ "width": 8,
271
+ "align": "left"
272
+ },
273
+ {
274
+ "text": "50,00 €",
275
+ "width": 4,
276
+ "align": "right"
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "kind": "columns",
282
+ "columns": [
283
+ {
284
+ "text": " Rückgeld:",
285
+ "width": 8,
286
+ "align": "left"
287
+ },
288
+ {
289
+ "text": "30,00 €",
290
+ "width": 4,
291
+ "align": "right"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "kind": "space",
297
+ "lines": 1
298
+ },
299
+ {
300
+ "kind": "qr",
301
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-73_2026-09-25T10:15:30_0,00_37,80_0,00_3,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR"
302
+ },
303
+ {
304
+ "kind": "space",
305
+ "lines": 1
306
+ },
307
+ {
308
+ "kind": "text",
309
+ "text": "1. Kartenzahlung",
310
+ "align": "center",
311
+ "bold": false
312
+ },
313
+ {
314
+ "kind": "text",
315
+ "text": "Sumup Beleg",
316
+ "align": "center",
317
+ "bold": true
318
+ },
319
+ {
320
+ "kind": "columns",
321
+ "columns": [
322
+ {
323
+ "text": "Kartentyp:",
324
+ "width": 6,
325
+ "align": "left"
326
+ },
327
+ {
328
+ "text": "MASTERCARD",
329
+ "width": 6,
330
+ "align": "right"
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "kind": "columns",
336
+ "columns": [
337
+ {
338
+ "text": "Kartennummer:",
339
+ "width": 6,
340
+ "align": "left"
341
+ },
342
+ {
343
+ "text": "**** **** **** 4720",
344
+ "width": 6,
345
+ "align": "right"
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "kind": "columns",
351
+ "columns": [
352
+ {
353
+ "text": "Zahlungstyp:",
354
+ "width": 6,
355
+ "align": "left"
356
+ },
357
+ {
358
+ "text": "CONTACTLESS",
359
+ "width": 6,
360
+ "align": "right"
361
+ }
362
+ ]
363
+ },
364
+ {
365
+ "kind": "columns",
366
+ "columns": [
367
+ {
368
+ "text": "Gesamtbetrag:",
369
+ "width": 6,
370
+ "align": "left"
371
+ },
372
+ {
373
+ "text": "20,80 EUR",
374
+ "width": 6,
375
+ "align": "right"
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "kind": "columns",
381
+ "columns": [
382
+ {
383
+ "text": "Transaktionscode:",
384
+ "width": 6,
385
+ "align": "left"
386
+ },
387
+ {
388
+ "text": "TEZBA9K7QK",
389
+ "width": 6,
390
+ "align": "right"
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "kind": "columns",
396
+ "columns": [
397
+ {
398
+ "text": "Modus:",
399
+ "width": 6,
400
+ "align": "left"
401
+ },
402
+ {
403
+ "text": "CONTACTLESS",
404
+ "width": 6,
405
+ "align": "right"
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "kind": "space",
411
+ "lines": 1
412
+ },
413
+ {
414
+ "kind": "text",
415
+ "text": "Vielen Dank für Ihren Einkauf",
416
+ "align": "center",
417
+ "bold": false
418
+ },
419
+ {
420
+ "kind": "text",
421
+ "text": "www.baeckerei-muster.at",
422
+ "align": "center",
423
+ "bold": false
424
+ }
425
+ ],
426
+ "paperSize": "mm58",
427
+ "regelwerk": 2
428
+ }