@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,52 @@
1
+ {
2
+ "company": {
3
+ "companyName": "Bäckerei Muster",
4
+ "street": "Hauptplatz 1",
5
+ "zip": "4830",
6
+ "city": "Hallstatt",
7
+ "phone": "+43 6134 12345",
8
+ "uid": "ATU12345678",
9
+ "taxnr": "",
10
+ "isSmallBusiness": false,
11
+ "footer1": "Vielen Dank für Ihren Einkauf",
12
+ "footer2": "www.baeckerei-muster.at",
13
+ "thanksMessage": [],
14
+ "showKreiseckLogo": false
15
+ },
16
+ "receipt": {
17
+ "receiptId": "AT0-KASSE1-65",
18
+ "cashregisterId": "KASSE1",
19
+ "timeStamp": "2026-08-13T10:15:30",
20
+ "items": [
21
+ {
22
+ "name": "Behandlung",
23
+ "quantity": 1,
24
+ "unitPriceCents": 12000,
25
+ "vatRate": 20
26
+ }
27
+ ],
28
+ "vouchers": [],
29
+ "paymentMethod": "creditCard",
30
+ "turnoverCounterAES256ICM": "UMSATZ",
31
+ "signaturePreviousReceipt": "VORGAENGER",
32
+ "certificateSerialNumber": "6F0404F0",
33
+ "receiptType": "standard",
34
+ "sig": "eyJhbGciOiJFUzI1NiJ9.QVQx.SIGNATURWERT",
35
+ "qr": "_R1-AT1_KASSE1_AT0-KASSE1-65_2026-08-13T10:15:30_120,00_0,00_0,00_0,00_0,00_UMSATZ_VORGAENGER_6F0404F0_SIGNATUR",
36
+ "fullReceiptId": "VOLL",
37
+ "customerDetails": [],
38
+ "legalMessage": [],
39
+ "creditCardProvider": "stripe",
40
+ "cardPaymentData": {
41
+ "paymentMethodType": "eps",
42
+ "epsBank": "bank_austria",
43
+ "amount": 12000,
44
+ "currency": "eur",
45
+ "paidAt": 1786774530
46
+ },
47
+ "cardPaymentId": "pi_3QabcXYZ0002"
48
+ },
49
+ "options": {
50
+ "paperSize": "mm80"
51
+ }
52
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "company": {
3
+ "companyName": "Bäckerei Muster",
4
+ "street": "Hauptplatz 1",
5
+ "zip": "4830",
6
+ "city": "Hallstatt",
7
+ "phone": "+43 6134 12345",
8
+ "uid": "ATU12345678",
9
+ "taxnr": "",
10
+ "isSmallBusiness": false,
11
+ "footer1": "Vielen Dank für Ihren Einkauf",
12
+ "footer2": "www.baeckerei-muster.at",
13
+ "thanksMessage": [],
14
+ "showKreiseckLogo": false
15
+ },
16
+ "receipt": {
17
+ "receiptId": "AT0-KASSE1-64",
18
+ "cashregisterId": "KASSE1",
19
+ "timeStamp": "2026-08-13T10:15:30",
20
+ "items": [
21
+ {
22
+ "name": "Behandlung",
23
+ "quantity": 1,
24
+ "unitPriceCents": 12000,
25
+ "vatRate": 20
26
+ }
27
+ ],
28
+ "vouchers": [],
29
+ "paymentMethod": "creditCard",
30
+ "turnoverCounterAES256ICM": "UMSATZ",
31
+ "signaturePreviousReceipt": "VORGAENGER",
32
+ "certificateSerialNumber": "6F0404F0",
33
+ "receiptType": "standard",
34
+ "sig": "eyJhbGciOiJFUzI1NiJ9.QVQx.SIGNATURWERT",
35
+ "qr": "_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",
36
+ "fullReceiptId": "VOLL",
37
+ "customerDetails": [],
38
+ "legalMessage": [],
39
+ "creditCardProvider": "stripe",
40
+ "cardPaymentData": {
41
+ "paymentMethodType": "card",
42
+ "cardBrand": "Visa",
43
+ "cardFunding": "credit",
44
+ "wallet": "apple_pay",
45
+ "cardLastDigits": "4242",
46
+ "threeDSecure": "authenticated",
47
+ "amount": 12000,
48
+ "currency": "eur",
49
+ "paidAt": 1786774530,
50
+ "statementDescriptor": "MUSTER STUDIO"
51
+ },
52
+ "cardPaymentId": "pi_3QabcXYZ0001"
53
+ },
54
+ "options": {
55
+ "paperSize": "mm80"
56
+ }
57
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "company": {
3
+ "companyName": "Bäckerei Muster",
4
+ "street": "Hauptplatz 1",
5
+ "zip": "4830",
6
+ "city": "Hallstatt",
7
+ "phone": "+43 6134 12345",
8
+ "uid": "ATU12345678",
9
+ "taxnr": "",
10
+ "isSmallBusiness": false,
11
+ "footer1": "Vielen Dank für Ihren Einkauf",
12
+ "footer2": "www.baeckerei-muster.at",
13
+ "thanksMessage": [],
14
+ "showKreiseckLogo": false
15
+ },
16
+ "receipt": {
17
+ "receiptId": "AT0-KASSE1-62",
18
+ "cashregisterId": "KASSE1",
19
+ "timeStamp": "2026-08-13T10:15:30",
20
+ "items": [
21
+ {
22
+ "name": "Behandlung",
23
+ "quantity": 1,
24
+ "unitPriceCents": 12000,
25
+ "vatRate": 20
26
+ }
27
+ ],
28
+ "vouchers": [],
29
+ "paymentMethod": "creditCard",
30
+ "turnoverCounterAES256ICM": "UMSATZ",
31
+ "signaturePreviousReceipt": "VORGAENGER",
32
+ "certificateSerialNumber": "6F0404F0",
33
+ "receiptType": "standard",
34
+ "sig": "eyJhbGciOiJFUzI1NiJ9.QVQx.SIGNATURWERT",
35
+ "qr": "_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",
36
+ "fullReceiptId": "VOLL",
37
+ "customerDetails": [],
38
+ "legalMessage": [],
39
+ "creditCardProvider": "sumup",
40
+ "cardPaymentData": {
41
+ "cardType": "MASTERCARD",
42
+ "cardLastDigits": "4720",
43
+ "paymentType": "CONTACTLESS",
44
+ "amount": 12000,
45
+ "currency": "EUR",
46
+ "transactionCode": "TEZBA9K7QK",
47
+ "entryMode": "contactless"
48
+ }
49
+ },
50
+ "options": {
51
+ "paperSize": "mm80"
52
+ }
53
+ }
@@ -0,0 +1,22 @@
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-66
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
+ Vielen Dank für Ihren Einkauf
22
+ www.baeckerei-muster.at
@@ -0,0 +1,22 @@
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-66
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
+ Vielen Dank für Ihren Einkauf
22
+ www.baeckerei-muster.at
@@ -0,0 +1,216 @@
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-66",
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-66_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": "Vielen Dank für Ihren Einkauf",
204
+ "align": "center",
205
+ "bold": false
206
+ },
207
+ {
208
+ "kind": "text",
209
+ "text": "www.baeckerei-muster.at",
210
+ "align": "center",
211
+ "bold": false
212
+ }
213
+ ],
214
+ "paperSize": "mm80",
215
+ "regelwerk": 2
216
+ }
@@ -0,0 +1,34 @@
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-67
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
+ GP Tom Beleg
22
+ Batch: 12
23
+ Receipt: TX-9911
24
+ TID: T-55
25
+ A0000000031010
26
+ VISA CREDIT CONTACTLESS
27
+ **** **** **** 4720
28
+ Refund Amount EUR 120,00
29
+ PIN NOT OK
30
+ Authorization Code 123456
31
+ Sequence Number: 42
32
+
33
+ Vielen Dank für Ihren Einkauf
34
+ www.baeckerei-muster.at
@@ -0,0 +1,34 @@
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-67
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
+ GP Tom Beleg
22
+ Batch: 12
23
+ Receipt: TX-9911
24
+ TID: T-55
25
+ A0000000031010
26
+ VISA CREDIT CONTACTLESS
27
+ **** **** **** 4720
28
+ Refund Amount EUR 120,00
29
+ PIN NOT OK
30
+ Authorization Code 123456
31
+ Sequence Number: 42
32
+
33
+ Vielen Dank für Ihren Einkauf
34
+ www.baeckerei-muster.at