@tillhub/schemas 6.347.0 → 6.348.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 +14 -0
- package/lib/v1/configurations/items/interfaces.js +17 -0
- package/lib/v1/configurations/items/receipts.js +2 -2
- package/lib/v1/products/bulk_create_v2.js +62 -0
- package/lib/v1/products/index.js +4 -0
- package/lib/v1/transactions/components/embedded/terminal/base.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.348.0](https://github.com/tillhub/schemas/compare/v6.347.1...v6.348.0) (2024-12-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** support new bulk create ([#1013](https://github.com/tillhub/schemas/issues/1013)) ([7ce792e](https://github.com/tillhub/schemas/commit/7ce792e))
|
|
7
|
+
|
|
8
|
+
## [6.347.1](https://github.com/tillhub/schemas/compare/v6.347.0...v6.347.1) (2024-12-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **configurations:** interfaces ([fbb28ec](https://github.com/tillhub/schemas/commit/fbb28ec))
|
|
14
|
+
|
|
1
15
|
# [6.347.0](https://github.com/tillhub/schemas/compare/v6.346.0...v6.347.0) (2024-10-26)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -203,6 +203,23 @@ module.exports = {
|
|
|
203
203
|
})
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
|
+
spos: {
|
|
207
|
+
type: 'object',
|
|
208
|
+
properties: {
|
|
209
|
+
enabled: {
|
|
210
|
+
type: 'boolean',
|
|
211
|
+
default: true
|
|
212
|
+
},
|
|
213
|
+
inter_call_delay_seconds: oneOf({
|
|
214
|
+
type: 'number',
|
|
215
|
+
description: 'Artificial delay between a previous terminal response and the next terminal request when performed automatically (some devices require additional cooldowns to avoid \'busy\' states)',
|
|
216
|
+
minimum: 0.0,
|
|
217
|
+
maximum: 10.0,
|
|
218
|
+
multipleOf: 0.001,
|
|
219
|
+
default: 0.0
|
|
220
|
+
})
|
|
221
|
+
}
|
|
222
|
+
},
|
|
206
223
|
ZVT: { // capitalized for historical reasons
|
|
207
224
|
type: 'object',
|
|
208
225
|
properties: {
|
|
@@ -496,7 +496,7 @@ module.exports = oneOf({
|
|
|
496
496
|
}),
|
|
497
497
|
customer_triggers: oneOf({
|
|
498
498
|
type: 'object',
|
|
499
|
-
description: 'States which conditions will trigger automatic printing of
|
|
499
|
+
description: 'States which conditions of the customer receipt will trigger automatic printing of available receipts on finish payments',
|
|
500
500
|
additionalProperties: false,
|
|
501
501
|
properties: {
|
|
502
502
|
fiscal_signing: oneOf({
|
|
@@ -523,7 +523,7 @@ module.exports = oneOf({
|
|
|
523
523
|
}),
|
|
524
524
|
merchant_triggers: oneOf({
|
|
525
525
|
type: 'object',
|
|
526
|
-
description: 'States which conditions will
|
|
526
|
+
description: 'States which conditions will include the merchant receipt in the printing process',
|
|
527
527
|
additionalProperties: false,
|
|
528
528
|
properties: {
|
|
529
529
|
terminal_payments: oneOf({
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const base = require('./base').request
|
|
2
|
+
const locationType = require('../../common/location_type')
|
|
3
|
+
const { anyOf, oneOf } = require('../../helpers/payload-or-null')
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
$id: 'https://schemas.tillhub.com/v1/products.bulk_create_v2.request.schema.json',
|
|
7
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
8
|
+
additionalProperties: false,
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
preferUpdate: {
|
|
12
|
+
type: 'boolean'
|
|
13
|
+
},
|
|
14
|
+
products: {
|
|
15
|
+
type: 'array',
|
|
16
|
+
minItems: 1,
|
|
17
|
+
items: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
required: [
|
|
20
|
+
'name',
|
|
21
|
+
'account',
|
|
22
|
+
'tax',
|
|
23
|
+
'type'
|
|
24
|
+
],
|
|
25
|
+
properties: {
|
|
26
|
+
...base,
|
|
27
|
+
business_partners: oneOf({
|
|
28
|
+
type: 'array',
|
|
29
|
+
items: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
format: 'uuid'
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
tags: oneOf({
|
|
35
|
+
type: 'array',
|
|
36
|
+
items: {
|
|
37
|
+
type: 'string'
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
stock_configuration_location: oneOf({
|
|
41
|
+
type: 'object',
|
|
42
|
+
required: [
|
|
43
|
+
'location',
|
|
44
|
+
'qty',
|
|
45
|
+
'location_type'
|
|
46
|
+
],
|
|
47
|
+
properties: {
|
|
48
|
+
location: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
format: 'uuid'
|
|
51
|
+
},
|
|
52
|
+
qty: {
|
|
53
|
+
type: 'number'
|
|
54
|
+
},
|
|
55
|
+
location_type: anyOf(locationType)
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/lib/v1/products/index.js
CHANGED