@tillhub/schemas 6.272.0 → 6.274.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.
- package/CHANGELOG.md +21 -0
- package/lib/v0/branches/base.js +19 -1
- package/lib/v0/payment_options/base.js +2 -1
- package/lib/v1/registers/base.js +29 -36
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [6.274.0](https://github.com/tillhub/schemas/compare/v6.273.0...v6.274.0) (2023-11-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **eslint:** fix test ([#898](https://github.com/tillhub/schemas/issues/898)) ([216e8d2](https://github.com/tillhub/schemas/commit/216e8d2))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **fiskaly:** add branch signing_configuration ([944375b](https://github.com/tillhub/schemas/commit/944375b))
|
|
12
|
+
* **paymentOptions:** add buy now pay later option ([093487f](https://github.com/tillhub/schemas/commit/093487f))
|
|
13
|
+
|
|
14
|
+
# [6.273.0](https://github.com/tillhub/schemas/compare/v6.272.0...v6.273.0) (2023-11-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **fiskaly:** add branch signing_configuration ([8f1e7ad](https://github.com/tillhub/schemas/commit/8f1e7ad))
|
|
20
|
+
* **fiskaly:** rollback the last change ([1994f22](https://github.com/tillhub/schemas/commit/1994f22))
|
|
21
|
+
|
|
1
22
|
# [6.272.0](https://github.com/tillhub/schemas/compare/v6.271.0...v6.272.0) (2023-11-02)
|
|
2
23
|
|
|
3
24
|
|
package/lib/v0/branches/base.js
CHANGED
|
@@ -403,9 +403,27 @@ module.exports = {
|
|
|
403
403
|
description: 'Any allowed singing system provider as type, currently only Austria has per-branch licensing.',
|
|
404
404
|
type: 'string',
|
|
405
405
|
enum: [
|
|
406
|
-
'fiskaltrust'
|
|
406
|
+
'fiskaltrust',
|
|
407
|
+
'at_fiskaly'
|
|
407
408
|
]
|
|
409
|
+
},
|
|
410
|
+
auth: {
|
|
411
|
+
description: 'Keeping auth data for the branch, in this case just for at_fiskaly',
|
|
412
|
+
type: 'object',
|
|
413
|
+
properties: {
|
|
414
|
+
key: {
|
|
415
|
+
type: 'string'
|
|
416
|
+
},
|
|
417
|
+
secret: {
|
|
418
|
+
type: 'string'
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
resource: {
|
|
423
|
+
description: 'In case of at_fiskaly its organization_id',
|
|
424
|
+
type: 'string'
|
|
408
425
|
}
|
|
426
|
+
|
|
409
427
|
}
|
|
410
428
|
},
|
|
411
429
|
{
|
package/lib/v1/registers/base.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { stripIndents } = require('common-tags')
|
|
2
|
-
const { oneOf } = require('../../helpers/payload-or-null')
|
|
2
|
+
const { oneOf, anyOf } = require('../../helpers/payload-or-null')
|
|
3
3
|
|
|
4
4
|
const countingDecision = require('../../common/counting_decision')
|
|
5
5
|
|
|
@@ -167,50 +167,43 @@ module.exports = {
|
|
|
167
167
|
type: 'boolean',
|
|
168
168
|
default: false
|
|
169
169
|
},
|
|
170
|
-
fiscal_signing_admin_config: {
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
fiscal_signing_admin_config: anyOf({
|
|
171
|
+
type: 'object',
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
properties: {
|
|
174
|
+
resource: {
|
|
175
|
+
type: 'string',
|
|
176
|
+
description: 'fiskaly cash register id',
|
|
177
|
+
example: 'uuid'
|
|
178
|
+
},
|
|
179
|
+
signature_type: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: 'type of the signature',
|
|
182
|
+
example: 'at_fiskaly'
|
|
183
|
+
},
|
|
184
|
+
fiskaly: {
|
|
173
185
|
type: 'object',
|
|
174
|
-
|
|
186
|
+
description: 'fiskaly meta data',
|
|
175
187
|
properties: {
|
|
176
|
-
|
|
188
|
+
state: {
|
|
177
189
|
type: 'string',
|
|
178
|
-
description: 'fiskaly cash register
|
|
179
|
-
example: '
|
|
190
|
+
description: 'state of the fiskaly cash register',
|
|
191
|
+
example: 'CREATED'
|
|
180
192
|
},
|
|
181
|
-
|
|
193
|
+
serial_number: {
|
|
182
194
|
type: 'string',
|
|
183
|
-
description: '
|
|
184
|
-
example: '
|
|
195
|
+
description: 'serial number of the fiskaly cash register',
|
|
196
|
+
example: 'serial-number'
|
|
185
197
|
},
|
|
186
|
-
|
|
187
|
-
type: '
|
|
188
|
-
description: 'fiskaly
|
|
189
|
-
|
|
190
|
-
state: {
|
|
191
|
-
type: 'string',
|
|
192
|
-
description: 'state of the fiskaly cash register',
|
|
193
|
-
example: 'CREATED'
|
|
194
|
-
},
|
|
195
|
-
serial_number: {
|
|
196
|
-
type: 'string',
|
|
197
|
-
description: 'serial number of the fiskaly cash register',
|
|
198
|
-
example: 'serial-number'
|
|
199
|
-
},
|
|
200
|
-
turnover_counter: {
|
|
201
|
-
type: 'string',
|
|
202
|
-
description: 'turnover counter of the fiskaly cash register',
|
|
203
|
-
example: '12.311'
|
|
204
|
-
}
|
|
205
|
-
}
|
|
198
|
+
turnover_counter: {
|
|
199
|
+
type: 'string',
|
|
200
|
+
description: 'turnover counter of the fiskaly cash register',
|
|
201
|
+
example: '12.311'
|
|
206
202
|
}
|
|
207
203
|
}
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
type: 'null'
|
|
211
204
|
}
|
|
212
|
-
|
|
213
|
-
},
|
|
205
|
+
}
|
|
206
|
+
}),
|
|
214
207
|
device_configuration: {
|
|
215
208
|
anyOf: [
|
|
216
209
|
{
|