@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,343 @@
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-74",
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 Festtafel je 1234,56",
91
+ "width": 7,
92
+ "align": "left"
93
+ },
94
+ {
95
+ "text": "2469,12 B",
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": 3,
116
+ "align": "left"
117
+ },
118
+ {
119
+ "text": "Netto",
120
+ "width": 3,
121
+ "align": "left"
122
+ },
123
+ {
124
+ "text": "Brutto",
125
+ "width": 3,
126
+ "align": "right"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "kind": "columns",
132
+ "columns": [
133
+ {
134
+ "text": "B 10%",
135
+ "width": 3,
136
+ "align": "left"
137
+ },
138
+ {
139
+ "text": "224,47",
140
+ "width": 3,
141
+ "align": "left"
142
+ },
143
+ {
144
+ "text": "2244,65",
145
+ "width": 3,
146
+ "align": "left"
147
+ },
148
+ {
149
+ "text": "2469,12",
150
+ "width": 3,
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": "2469,12 €",
169
+ "width": 6,
170
+ "align": "right"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "kind": "text",
176
+ "text": "Zahlungsarten:",
177
+ "align": "left",
178
+ "bold": false
179
+ },
180
+ {
181
+ "kind": "columns",
182
+ "columns": [
183
+ {
184
+ "text": "1. Kartenzahlung",
185
+ "width": 8,
186
+ "align": "left"
187
+ },
188
+ {
189
+ "text": "1234,56 €",
190
+ "width": 4,
191
+ "align": "right"
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "kind": "columns",
197
+ "columns": [
198
+ {
199
+ "text": "2. Barzahlung",
200
+ "width": 8,
201
+ "align": "left"
202
+ },
203
+ {
204
+ "text": "1234,56 €",
205
+ "width": 4,
206
+ "align": "right"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "kind": "columns",
212
+ "columns": [
213
+ {
214
+ "text": " Gegeben:",
215
+ "width": 8,
216
+ "align": "left"
217
+ },
218
+ {
219
+ "text": "1300,00 €",
220
+ "width": 4,
221
+ "align": "right"
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "kind": "columns",
227
+ "columns": [
228
+ {
229
+ "text": " Rückgeld:",
230
+ "width": 8,
231
+ "align": "left"
232
+ },
233
+ {
234
+ "text": "65,44 €",
235
+ "width": 4,
236
+ "align": "right"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "kind": "space",
242
+ "lines": 1
243
+ },
244
+ {
245
+ "kind": "qr",
246
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-74_2026-09-25T10:15:30_0,00_2469,12_0,00_0,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR"
247
+ },
248
+ {
249
+ "kind": "space",
250
+ "lines": 1
251
+ },
252
+ {
253
+ "kind": "text",
254
+ "text": "1. Kartenzahlung",
255
+ "align": "center",
256
+ "bold": false
257
+ },
258
+ {
259
+ "kind": "text",
260
+ "text": "GP Tom Beleg",
261
+ "align": "center",
262
+ "bold": true
263
+ },
264
+ {
265
+ "kind": "text",
266
+ "text": "Batch: 12",
267
+ "align": "center",
268
+ "bold": false
269
+ },
270
+ {
271
+ "kind": "text",
272
+ "text": "Receipt: TX-9902",
273
+ "align": "center",
274
+ "bold": false
275
+ },
276
+ {
277
+ "kind": "text",
278
+ "text": "TID: T-55",
279
+ "align": "center",
280
+ "bold": false
281
+ },
282
+ {
283
+ "kind": "text",
284
+ "text": "A0000000031010",
285
+ "align": "center",
286
+ "bold": false
287
+ },
288
+ {
289
+ "kind": "text",
290
+ "text": "VISA CREDIT CONTACTLESS",
291
+ "align": "center",
292
+ "bold": false
293
+ },
294
+ {
295
+ "kind": "text",
296
+ "text": "**** **** **** 4720",
297
+ "align": "center",
298
+ "bold": false
299
+ },
300
+ {
301
+ "kind": "text",
302
+ "text": "Sale Amount EUR 1234,56",
303
+ "align": "center",
304
+ "bold": false
305
+ },
306
+ {
307
+ "kind": "text",
308
+ "text": "PIN OK",
309
+ "align": "center",
310
+ "bold": false
311
+ },
312
+ {
313
+ "kind": "text",
314
+ "text": "Authorization Code 123402",
315
+ "align": "center",
316
+ "bold": false
317
+ },
318
+ {
319
+ "kind": "text",
320
+ "text": "Sequence Number: 2",
321
+ "align": "center",
322
+ "bold": false
323
+ },
324
+ {
325
+ "kind": "space",
326
+ "lines": 1
327
+ },
328
+ {
329
+ "kind": "text",
330
+ "text": "Vielen Dank für Ihren Einkauf",
331
+ "align": "center",
332
+ "bold": false
333
+ },
334
+ {
335
+ "kind": "text",
336
+ "text": "www.baeckerei-muster.at",
337
+ "align": "center",
338
+ "bold": false
339
+ }
340
+ ],
341
+ "paperSize": "mm58",
342
+ "regelwerk": 2
343
+ }