@kreiseck/kasseneck-api 1.24.0 → 1.25.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 (71) hide show
  1. package/CHANGELOG.md +13 -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 +48 -0
  15. package/dist/cjs/pos/texte.js +39 -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 +48 -0
  34. package/dist/esm/pos/texte.js +37 -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 +41 -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,29 @@
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-78
18
+
19
+ 1 x Torte -24,90 B
20
+
21
+ MwSt% MwSt Netto Brutto
22
+ B 10% -2,26 -22,64 -24,90
23
+ --------------------------------
24
+ Gesamt: -24,90 €
25
+ Gutschein ····-2D9A -24,90 €
26
+
27
+ [QR-Code]
28
+
29
+ Danke für Ihren Besuch
@@ -0,0 +1,28 @@
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-78
17
+
18
+ 1 x Torte -24,90 B
19
+
20
+ MwSt% MwSt Netto Brutto
21
+ B 10% -2,26 -22,64 -24,90
22
+ ------------------------------------------------
23
+ Gesamt: -24,90 €
24
+ Gutschein ····-2D9A -24,90 €
25
+
26
+ [QR-Code]
27
+
28
+ Danke für Ihren Besuch
@@ -0,0 +1,237 @@
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-78",
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 Torte",
118
+ "width": 7,
119
+ "align": "left"
120
+ },
121
+ {
122
+ "text": "-24,90 B",
123
+ "width": 5,
124
+ "align": "right"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "kind": "space",
130
+ "lines": 1
131
+ },
132
+ {
133
+ "kind": "columns",
134
+ "columns": [
135
+ {
136
+ "text": "MwSt%",
137
+ "width": 3,
138
+ "align": "left"
139
+ },
140
+ {
141
+ "text": "MwSt",
142
+ "width": 4,
143
+ "align": "left"
144
+ },
145
+ {
146
+ "text": "Netto",
147
+ "width": 3,
148
+ "align": "left"
149
+ },
150
+ {
151
+ "text": "Brutto",
152
+ "width": 2,
153
+ "align": "right"
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "kind": "columns",
159
+ "columns": [
160
+ {
161
+ "text": "B 10%",
162
+ "width": 3,
163
+ "align": "left"
164
+ },
165
+ {
166
+ "text": "-2,26",
167
+ "width": 4,
168
+ "align": "left"
169
+ },
170
+ {
171
+ "text": "-22,64",
172
+ "width": 3,
173
+ "align": "left"
174
+ },
175
+ {
176
+ "text": "-24,90",
177
+ "width": 2,
178
+ "align": "right"
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ "kind": "rule",
184
+ "char": "-"
185
+ },
186
+ {
187
+ "kind": "columns",
188
+ "columns": [
189
+ {
190
+ "text": "Gesamt:",
191
+ "width": 6,
192
+ "align": "left"
193
+ },
194
+ {
195
+ "text": "-24,90 €",
196
+ "width": 6,
197
+ "align": "right"
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "kind": "columns",
203
+ "columns": [
204
+ {
205
+ "text": "Gutschein ····-2D9A",
206
+ "width": 8,
207
+ "align": "left"
208
+ },
209
+ {
210
+ "text": "-24,90 €",
211
+ "width": 4,
212
+ "align": "right"
213
+ }
214
+ ]
215
+ },
216
+ {
217
+ "kind": "space",
218
+ "lines": 1
219
+ },
220
+ {
221
+ "kind": "qr",
222
+ "data": "_R1-AT1_KASSE1_AT0-KASSE1-78_2026-10-19T10:15:30_0,00_-24,90_0,00_0,00_0,00_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR"
223
+ },
224
+ {
225
+ "kind": "space",
226
+ "lines": 1
227
+ },
228
+ {
229
+ "kind": "text",
230
+ "text": "Danke für Ihren Besuch",
231
+ "align": "center",
232
+ "bold": false
233
+ }
234
+ ],
235
+ "paperSize": "mm80",
236
+ "ruleset": 2
237
+ }
@@ -0,0 +1,200 @@
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-78",
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 Torte -24,90 B",
126
+ "bold": false,
127
+ "blank": false
128
+ },
129
+ {
130
+ "kind": "line",
131
+ "text": " ",
132
+ "bold": false,
133
+ "blank": true
134
+ },
135
+ {
136
+ "kind": "line",
137
+ "text": "MwSt% MwSt Netto Brutto",
138
+ "bold": false,
139
+ "blank": false
140
+ },
141
+ {
142
+ "kind": "line",
143
+ "text": "B 10% -2,26 -22,64 -24,90",
144
+ "bold": false,
145
+ "blank": false
146
+ },
147
+ {
148
+ "kind": "line",
149
+ "text": "--------------------------------",
150
+ "bold": false,
151
+ "blank": false
152
+ },
153
+ {
154
+ "kind": "line",
155
+ "text": "Gesamt: -24,90 €",
156
+ "bold": false,
157
+ "blank": false
158
+ },
159
+ {
160
+ "kind": "line",
161
+ "text": "Gutschein ····-2D9A -24,90 €",
162
+ "bold": false,
163
+ "blank": false
164
+ },
165
+ {
166
+ "kind": "line",
167
+ "text": " ",
168
+ "bold": false,
169
+ "blank": true
170
+ },
171
+ {
172
+ "kind": "qr",
173
+ "payload": "_R1-AT1_KASSE1_AT0-KASSE1-78_2026-10-19T10:15:30_0,00_-24,90_0,00_0,00_0,00_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR",
174
+ "widthFraction": 0.828125
175
+ },
176
+ {
177
+ "kind": "line",
178
+ "text": " ",
179
+ "bold": false,
180
+ "blank": true
181
+ },
182
+ {
183
+ "kind": "line",
184
+ "text": " Danke für Ihren Besuch ",
185
+ "bold": false,
186
+ "blank": false
187
+ },
188
+ {
189
+ "kind": "line",
190
+ "text": " ",
191
+ "bold": false,
192
+ "blank": true
193
+ },
194
+ {
195
+ "kind": "brandMark",
196
+ "width": 234,
197
+ "height": 34
198
+ }
199
+ ]
200
+ }
@@ -0,0 +1,194 @@
1
+ {
2
+ "charsPerLine": 48,
3
+ "blocks": [
4
+ {
5
+ "kind": "logo",
6
+ "widthFraction": 0.5208333333333334,
7
+ "heightLines": 5
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 AT0-KASSE1-70 ",
72
+ "bold": false,
73
+ "blank": false
74
+ },
75
+ {
76
+ "kind": "line",
77
+ "text": " vom 19.10.2026, 10:15 Uhr ",
78
+ "bold": false,
79
+ "blank": false
80
+ },
81
+ {
82
+ "kind": "line",
83
+ "text": " Grund: Kunde hat storniert ",
84
+ "bold": false,
85
+ "blank": false
86
+ },
87
+ {
88
+ "kind": "line",
89
+ "text": " ",
90
+ "bold": false,
91
+ "blank": true
92
+ },
93
+ {
94
+ "kind": "line",
95
+ "text": "Datum: 19.10.2026 10:15:30",
96
+ "bold": false,
97
+ "blank": false
98
+ },
99
+ {
100
+ "kind": "line",
101
+ "text": "Kassen-ID: KASSE1",
102
+ "bold": false,
103
+ "blank": false
104
+ },
105
+ {
106
+ "kind": "line",
107
+ "text": "Beleg-ID: AT0-KASSE1-78",
108
+ "bold": false,
109
+ "blank": false
110
+ },
111
+ {
112
+ "kind": "line",
113
+ "text": " ",
114
+ "bold": false,
115
+ "blank": true
116
+ },
117
+ {
118
+ "kind": "line",
119
+ "text": "1 x Torte -24,90 B",
120
+ "bold": false,
121
+ "blank": false
122
+ },
123
+ {
124
+ "kind": "line",
125
+ "text": " ",
126
+ "bold": false,
127
+ "blank": true
128
+ },
129
+ {
130
+ "kind": "line",
131
+ "text": "MwSt% MwSt Netto Brutto",
132
+ "bold": false,
133
+ "blank": false
134
+ },
135
+ {
136
+ "kind": "line",
137
+ "text": "B 10% -2,26 -22,64 -24,90",
138
+ "bold": false,
139
+ "blank": false
140
+ },
141
+ {
142
+ "kind": "line",
143
+ "text": "------------------------------------------------",
144
+ "bold": false,
145
+ "blank": false
146
+ },
147
+ {
148
+ "kind": "line",
149
+ "text": "Gesamt: -24,90 €",
150
+ "bold": false,
151
+ "blank": false
152
+ },
153
+ {
154
+ "kind": "line",
155
+ "text": "Gutschein ····-2D9A -24,90 €",
156
+ "bold": false,
157
+ "blank": false
158
+ },
159
+ {
160
+ "kind": "line",
161
+ "text": " ",
162
+ "bold": false,
163
+ "blank": true
164
+ },
165
+ {
166
+ "kind": "qr",
167
+ "payload": "_R1-AT1_KASSE1_AT0-KASSE1-78_2026-10-19T10:15:30_0,00_-24,90_0,00_0,00_0,00_UMSATZ_VORGAENGER_5A1C3E07_SIGNATUR",
168
+ "widthFraction": 0.5520833333333334
169
+ },
170
+ {
171
+ "kind": "line",
172
+ "text": " ",
173
+ "bold": false,
174
+ "blank": true
175
+ },
176
+ {
177
+ "kind": "line",
178
+ "text": " Danke für Ihren Besuch ",
179
+ "bold": false,
180
+ "blank": false
181
+ },
182
+ {
183
+ "kind": "line",
184
+ "text": " ",
185
+ "bold": false,
186
+ "blank": true
187
+ },
188
+ {
189
+ "kind": "brandMark",
190
+ "width": 352,
191
+ "height": 51
192
+ }
193
+ ]
194
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.24.0",
2
+ "version": "1.25.0",
3
3
  "measuredOn": {
4
4
  "tid": "3600335",
5
5
  "hpsVersion": "1.10.0",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "title": "Kasseneck Rechnungs-API",
4
4
  "version": 2,
5
- "package": "1.24.0",
5
+ "package": "1.25.0",
6
6
  "endpoints": {
7
7
  "createCustomer": {
8
8
  "request": {