@kreiseck/kasseneck-api 1.24.0 → 1.25.1

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 (71) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/client/receipts.d.ts +19 -0
  3. package/dist/cjs/client/receipts.js +28 -0
  4. package/dist/cjs/index.d.ts +1 -1
  5. package/dist/cjs/models/cancellation.d.ts +1 -1
  6. package/dist/cjs/models/cancellation.js +9 -0
  7. package/dist/cjs/models/index.d.ts +1 -1
  8. package/dist/cjs/models/voucher.d.ts +19 -1
  9. package/dist/cjs/models/voucher.js +2 -2
  10. package/dist/cjs/pos/gutschein.d.ts +10 -0
  11. package/dist/cjs/pos/gutschein.js +7 -0
  12. package/dist/cjs/pos/index.d.ts +2 -2
  13. package/dist/cjs/pos/index.js +3 -1
  14. package/dist/cjs/pos/texte.d.ts +72 -0
  15. package/dist/cjs/pos/texte.js +48 -1
  16. package/dist/cjs/receipt/layout.js +29 -3
  17. package/dist/cjs/stored/vokabular.d.ts +1 -1
  18. package/dist/cjs/stored/vokabular.js +9 -3
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/client/receipts.d.ts +19 -0
  22. package/dist/esm/client/receipts.js +28 -0
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/models/cancellation.d.ts +1 -1
  25. package/dist/esm/models/cancellation.js +9 -0
  26. package/dist/esm/models/index.d.ts +1 -1
  27. package/dist/esm/models/voucher.d.ts +19 -1
  28. package/dist/esm/models/voucher.js +2 -2
  29. package/dist/esm/pos/gutschein.d.ts +10 -0
  30. package/dist/esm/pos/gutschein.js +7 -0
  31. package/dist/esm/pos/index.d.ts +2 -2
  32. package/dist/esm/pos/index.js +1 -1
  33. package/dist/esm/pos/texte.d.ts +72 -0
  34. package/dist/esm/pos/texte.js +46 -0
  35. package/dist/esm/receipt/layout.js +29 -3
  36. package/dist/esm/stored/vokabular.d.ts +1 -1
  37. package/dist/esm/stored/vokabular.js +9 -3
  38. package/dist/esm/version.d.ts +1 -1
  39. package/dist/esm/version.js +1 -1
  40. package/fixtures/expected/voucher-return-tip.grid32.txt +32 -0
  41. package/fixtures/expected/voucher-return-tip.grid48.txt +31 -0
  42. package/fixtures/expected/voucher-return-tip.lines.json +292 -0
  43. package/fixtures/expected/voucher-return-tip.sheet32.json +218 -0
  44. package/fixtures/expected/voucher-return-tip.sheet48.json +212 -0
  45. package/fixtures/expected/voucher-return.grid32.txt +29 -0
  46. package/fixtures/expected/voucher-return.grid48.txt +28 -0
  47. package/fixtures/expected/voucher-return.lines.json +237 -0
  48. package/fixtures/expected/voucher-return.sheet32.json +200 -0
  49. package/fixtures/expected/voucher-return.sheet48.json +194 -0
  50. package/fixtures/hobex-hps-codes.json +1 -1
  51. package/fixtures/invoice-api.schema.json +1 -1
  52. package/fixtures/invoice-texts.json +1 -1
  53. package/fixtures/manifest.json +16 -0
  54. package/fixtures/pos-texts.json +78 -1
  55. package/fixtures/receipts/voucher-return-tip.json +83 -0
  56. package/fixtures/receipts/voucher-return.json +65 -0
  57. package/fixtures/surface.json +1 -1
  58. package/fixtures/v3/antworten/belege.json +1 -1
  59. package/fixtures/v3/antworten/belegmail.json +1 -1
  60. package/fixtures/v3/antworten/berichte.json +1 -1
  61. package/fixtures/v3/antworten/kasse-belege.json +1 -1
  62. package/fixtures/v3/antworten/kasse.json +46 -46
  63. package/fixtures/v3/antworten/lager.json +1 -1
  64. package/fixtures/v3/antworten/rechnungen.json +1 -1
  65. package/fixtures/v3/antworten/storno.json +1 -1
  66. package/fixtures/v3/stored/belege.json +1 -1
  67. package/fixtures/v3/stored/kasse.json +18 -18
  68. package/fixtures/v3/stored/rechnungen.json +1 -1
  69. package/fixtures/v3/v3-vokabular.json +115 -22
  70. package/fixtures/v3/zahlbetrag-faelle.json +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ Melisse Nails e.U.
2
+ Melissenweg 7
3
+ 1070 Wien
4
+ ATU12345675
5
+ +43 1 2345678
6
+
7
+ ================================
8
+ STORNOBELEG
9
+ ================================
10
+ Stornobuchung zu Beleg
11
+ AT0-KASSE1-70
12
+ vom 19.10.2026, 10:15 Uhr
13
+ Grund: Kunde hat storniert
14
+
15
+ Datum: 19.10.2026 10:15:30
16
+ Kassen-ID: KASSE1
17
+ Beleg-ID: AT0-KASSE1-79
18
+
19
+ 1 x Haarschnitt -20,00 A
20
+ Trinkgeld Personal -2,00 D
21
+
22
+ MwSt% MwSt Netto Brutto
23
+ A 20% -3,33 -16,67 -20,00
24
+ D 0% 0,00 -2,00 -2,00
25
+ --------------------------------
26
+ Gesamt: -22,00 €
27
+ Gutschein ····-2D9A -20,00 €
28
+ Barzahlung -2,00 €
29
+
30
+ [QR-Code]
31
+
32
+ Danke für Ihren Besuch
@@ -0,0 +1,31 @@
1
+ Melisse Nails e.U.
2
+ Melissenweg 7
3
+ 1070 Wien
4
+ ATU12345675
5
+ +43 1 2345678
6
+
7
+ ================================================
8
+ STORNOBELEG
9
+ ================================================
10
+ Stornobuchung zu Beleg AT0-KASSE1-70
11
+ vom 19.10.2026, 10:15 Uhr
12
+ Grund: Kunde hat storniert
13
+
14
+ Datum: 19.10.2026 10:15:30
15
+ Kassen-ID: KASSE1
16
+ Beleg-ID: AT0-KASSE1-79
17
+
18
+ 1 x Haarschnitt -20,00 A
19
+ Trinkgeld Personal -2,00 D
20
+
21
+ MwSt% MwSt Netto Brutto
22
+ A 20% -3,33 -16,67 -20,00
23
+ D 0% 0,00 -2,00 -2,00
24
+ ------------------------------------------------
25
+ Gesamt: -22,00 €
26
+ Gutschein ····-2D9A -20,00 €
27
+ Barzahlung -2,00 €
28
+
29
+ [QR-Code]
30
+
31
+ Danke für Ihren Besuch
@@ -0,0 +1,292 @@
1
+ {
2
+ "lines": [
3
+ {
4
+ "kind": "text",
5
+ "text": "Melisse Nails e.U.",
6
+ "align": "center",
7
+ "bold": true
8
+ },
9
+ {
10
+ "kind": "text",
11
+ "text": "Melissenweg 7",
12
+ "align": "center",
13
+ "bold": false
14
+ },
15
+ {
16
+ "kind": "text",
17
+ "text": "1070 Wien",
18
+ "align": "center",
19
+ "bold": false
20
+ },
21
+ {
22
+ "kind": "text",
23
+ "text": "ATU12345675",
24
+ "align": "center",
25
+ "bold": false
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "+43 1 2345678",
30
+ "align": "center",
31
+ "bold": false
32
+ },
33
+ {
34
+ "kind": "space",
35
+ "lines": 1
36
+ },
37
+ {
38
+ "kind": "banner",
39
+ "text": "STORNOBELEG",
40
+ "tone": "receipt_type"
41
+ },
42
+ {
43
+ "kind": "text",
44
+ "text": "Stornobuchung zu Beleg AT0-KASSE1-70",
45
+ "align": "center",
46
+ "bold": false
47
+ },
48
+ {
49
+ "kind": "text",
50
+ "text": "vom 19.10.2026, 10:15 Uhr",
51
+ "align": "center",
52
+ "bold": false
53
+ },
54
+ {
55
+ "kind": "text",
56
+ "text": "Grund: Kunde hat storniert",
57
+ "align": "center",
58
+ "bold": false
59
+ },
60
+ {
61
+ "kind": "space",
62
+ "lines": 1
63
+ },
64
+ {
65
+ "kind": "columns",
66
+ "columns": [
67
+ {
68
+ "text": "Datum:",
69
+ "width": 4,
70
+ "align": "left"
71
+ },
72
+ {
73
+ "text": "19.10.2026 10:15:30",
74
+ "width": 8,
75
+ "align": "right"
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "kind": "columns",
81
+ "columns": [
82
+ {
83
+ "text": "Kassen-ID:",
84
+ "width": 6,
85
+ "align": "left"
86
+ },
87
+ {
88
+ "text": "KASSE1",
89
+ "width": 6,
90
+ "align": "right"
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "kind": "columns",
96
+ "columns": [
97
+ {
98
+ "text": "Beleg-ID:",
99
+ "width": 6,
100
+ "align": "left"
101
+ },
102
+ {
103
+ "text": "AT0-KASSE1-79",
104
+ "width": 6,
105
+ "align": "right"
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ "kind": "space",
111
+ "lines": 1
112
+ },
113
+ {
114
+ "kind": "columns",
115
+ "columns": [
116
+ {
117
+ "text": "1 x Haarschnitt",
118
+ "width": 7,
119
+ "align": "left"
120
+ },
121
+ {
122
+ "text": "-20,00 A",
123
+ "width": 5,
124
+ "align": "right"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "kind": "columns",
130
+ "columns": [
131
+ {
132
+ "text": "Trinkgeld Personal",
133
+ "width": 8,
134
+ "align": "left"
135
+ },
136
+ {
137
+ "text": "-2,00 D",
138
+ "width": 4,
139
+ "align": "right"
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "kind": "space",
145
+ "lines": 1
146
+ },
147
+ {
148
+ "kind": "columns",
149
+ "columns": [
150
+ {
151
+ "text": "MwSt%",
152
+ "width": 3,
153
+ "align": "left"
154
+ },
155
+ {
156
+ "text": "MwSt",
157
+ "width": 4,
158
+ "align": "left"
159
+ },
160
+ {
161
+ "text": "Netto",
162
+ "width": 3,
163
+ "align": "left"
164
+ },
165
+ {
166
+ "text": "Brutto",
167
+ "width": 2,
168
+ "align": "right"
169
+ }
170
+ ]
171
+ },
172
+ {
173
+ "kind": "columns",
174
+ "columns": [
175
+ {
176
+ "text": "A 20%",
177
+ "width": 3,
178
+ "align": "left"
179
+ },
180
+ {
181
+ "text": "-3,33",
182
+ "width": 4,
183
+ "align": "left"
184
+ },
185
+ {
186
+ "text": "-16,67",
187
+ "width": 3,
188
+ "align": "left"
189
+ },
190
+ {
191
+ "text": "-20,00",
192
+ "width": 2,
193
+ "align": "right"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "kind": "columns",
199
+ "columns": [
200
+ {
201
+ "text": "D 0%",
202
+ "width": 3,
203
+ "align": "left"
204
+ },
205
+ {
206
+ "text": "0,00",
207
+ "width": 4,
208
+ "align": "left"
209
+ },
210
+ {
211
+ "text": "-2,00",
212
+ "width": 3,
213
+ "align": "left"
214
+ },
215
+ {
216
+ "text": "-2,00",
217
+ "width": 2,
218
+ "align": "right"
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "kind": "rule",
224
+ "char": "-"
225
+ },
226
+ {
227
+ "kind": "columns",
228
+ "columns": [
229
+ {
230
+ "text": "Gesamt:",
231
+ "width": 6,
232
+ "align": "left"
233
+ },
234
+ {
235
+ "text": "-22,00 €",
236
+ "width": 6,
237
+ "align": "right"
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ "kind": "columns",
243
+ "columns": [
244
+ {
245
+ "text": "Gutschein ····-2D9A",
246
+ "width": 8,
247
+ "align": "left"
248
+ },
249
+ {
250
+ "text": "-20,00 €",
251
+ "width": 4,
252
+ "align": "right"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "kind": "columns",
258
+ "columns": [
259
+ {
260
+ "text": "Barzahlung",
261
+ "width": 8,
262
+ "align": "left"
263
+ },
264
+ {
265
+ "text": "-2,00 €",
266
+ "width": 4,
267
+ "align": "right"
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "kind": "space",
273
+ "lines": 1
274
+ },
275
+ {
276
+ "kind": "qr",
277
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-79_2026-10-19T10:15:30_-20,00_0,00_0,00_-2,00_0,00_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR"
278
+ },
279
+ {
280
+ "kind": "space",
281
+ "lines": 1
282
+ },
283
+ {
284
+ "kind": "text",
285
+ "text": "Danke für Ihren Besuch",
286
+ "align": "center",
287
+ "bold": false
288
+ }
289
+ ],
290
+ "paperSize": "mm80",
291
+ "ruleset": 2
292
+ }
@@ -0,0 +1,218 @@
1
+ {
2
+ "charsPerLine": 32,
3
+ "blocks": [
4
+ {
5
+ "kind": "logo",
6
+ "widthFraction": 0.62,
7
+ "heightLines": 3.968
8
+ },
9
+ {
10
+ "kind": "line",
11
+ "text": " ",
12
+ "bold": false,
13
+ "blank": true
14
+ },
15
+ {
16
+ "kind": "line",
17
+ "text": " Melisse Nails e.U. ",
18
+ "bold": true,
19
+ "blank": false
20
+ },
21
+ {
22
+ "kind": "line",
23
+ "text": " Melissenweg 7 ",
24
+ "bold": false,
25
+ "blank": false
26
+ },
27
+ {
28
+ "kind": "line",
29
+ "text": " 1070 Wien ",
30
+ "bold": false,
31
+ "blank": false
32
+ },
33
+ {
34
+ "kind": "line",
35
+ "text": " ATU12345675 ",
36
+ "bold": false,
37
+ "blank": false
38
+ },
39
+ {
40
+ "kind": "line",
41
+ "text": " +43 1 2345678 ",
42
+ "bold": false,
43
+ "blank": false
44
+ },
45
+ {
46
+ "kind": "line",
47
+ "text": " ",
48
+ "bold": false,
49
+ "blank": true
50
+ },
51
+ {
52
+ "kind": "line",
53
+ "text": "================================",
54
+ "bold": true,
55
+ "blank": false
56
+ },
57
+ {
58
+ "kind": "line",
59
+ "text": " STORNOBELEG ",
60
+ "bold": true,
61
+ "blank": false
62
+ },
63
+ {
64
+ "kind": "line",
65
+ "text": "================================",
66
+ "bold": true,
67
+ "blank": false
68
+ },
69
+ {
70
+ "kind": "line",
71
+ "text": " Stornobuchung zu Beleg ",
72
+ "bold": false,
73
+ "blank": false
74
+ },
75
+ {
76
+ "kind": "line",
77
+ "text": " AT0-KASSE1-70 ",
78
+ "bold": false,
79
+ "blank": false
80
+ },
81
+ {
82
+ "kind": "line",
83
+ "text": " vom 19.10.2026, 10:15 Uhr ",
84
+ "bold": false,
85
+ "blank": false
86
+ },
87
+ {
88
+ "kind": "line",
89
+ "text": " Grund: Kunde hat storniert ",
90
+ "bold": false,
91
+ "blank": false
92
+ },
93
+ {
94
+ "kind": "line",
95
+ "text": " ",
96
+ "bold": false,
97
+ "blank": true
98
+ },
99
+ {
100
+ "kind": "line",
101
+ "text": "Datum: 19.10.2026 10:15:30",
102
+ "bold": false,
103
+ "blank": false
104
+ },
105
+ {
106
+ "kind": "line",
107
+ "text": "Kassen-ID: KASSE1",
108
+ "bold": false,
109
+ "blank": false
110
+ },
111
+ {
112
+ "kind": "line",
113
+ "text": "Beleg-ID: AT0-KASSE1-79",
114
+ "bold": false,
115
+ "blank": false
116
+ },
117
+ {
118
+ "kind": "line",
119
+ "text": " ",
120
+ "bold": false,
121
+ "blank": true
122
+ },
123
+ {
124
+ "kind": "line",
125
+ "text": "1 x Haarschnitt -20,00 A",
126
+ "bold": false,
127
+ "blank": false
128
+ },
129
+ {
130
+ "kind": "line",
131
+ "text": "Trinkgeld Personal -2,00 D",
132
+ "bold": false,
133
+ "blank": false
134
+ },
135
+ {
136
+ "kind": "line",
137
+ "text": " ",
138
+ "bold": false,
139
+ "blank": true
140
+ },
141
+ {
142
+ "kind": "line",
143
+ "text": "MwSt% MwSt Netto Brutto",
144
+ "bold": false,
145
+ "blank": false
146
+ },
147
+ {
148
+ "kind": "line",
149
+ "text": "A 20% -3,33 -16,67 -20,00",
150
+ "bold": false,
151
+ "blank": false
152
+ },
153
+ {
154
+ "kind": "line",
155
+ "text": "D 0% 0,00 -2,00 -2,00",
156
+ "bold": false,
157
+ "blank": false
158
+ },
159
+ {
160
+ "kind": "line",
161
+ "text": "--------------------------------",
162
+ "bold": false,
163
+ "blank": false
164
+ },
165
+ {
166
+ "kind": "line",
167
+ "text": "Gesamt: -22,00 €",
168
+ "bold": false,
169
+ "blank": false
170
+ },
171
+ {
172
+ "kind": "line",
173
+ "text": "Gutschein ····-2D9A -20,00 €",
174
+ "bold": false,
175
+ "blank": false
176
+ },
177
+ {
178
+ "kind": "line",
179
+ "text": "Barzahlung -2,00 €",
180
+ "bold": false,
181
+ "blank": false
182
+ },
183
+ {
184
+ "kind": "line",
185
+ "text": " ",
186
+ "bold": false,
187
+ "blank": true
188
+ },
189
+ {
190
+ "kind": "qr",
191
+ "payload": "_R1-AT1_KASSE1_AT0-KASSE1-79_2026-10-19T10:15:30_-20,00_0,00_0,00_-2,00_0,00_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR",
192
+ "widthFraction": 0.828125
193
+ },
194
+ {
195
+ "kind": "line",
196
+ "text": " ",
197
+ "bold": false,
198
+ "blank": true
199
+ },
200
+ {
201
+ "kind": "line",
202
+ "text": " Danke für Ihren Besuch ",
203
+ "bold": false,
204
+ "blank": false
205
+ },
206
+ {
207
+ "kind": "line",
208
+ "text": " ",
209
+ "bold": false,
210
+ "blank": true
211
+ },
212
+ {
213
+ "kind": "brandMark",
214
+ "width": 234,
215
+ "height": 34
216
+ }
217
+ ]
218
+ }