@tillhub/schemas 6.151.0 → 6.153.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
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** refine attributes ([9e3c85b](https://github.com/tillhub/schemas/commit/9e3c85b))
|
|
7
|
+
|
|
8
|
+
# [6.152.0](https://github.com/tillhub/schemas/compare/v6.151.1...v6.152.0) (2022-08-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **configurations:** transactions ([26f486c](https://github.com/tillhub/schemas/commit/26f486c))
|
|
14
|
+
|
|
15
|
+
## [6.151.1](https://github.com/tillhub/schemas/compare/v6.151.0...v6.151.1) (2022-08-03)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **configurations:** transactions ([de90a47](https://github.com/tillhub/schemas/commit/de90a47))
|
|
21
|
+
|
|
1
22
|
# [6.151.0](https://github.com/tillhub/schemas/compare/v6.150.0...v6.151.0) (2022-08-03)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -3,22 +3,37 @@ const { oneOf } = require('../../../helpers/payload-or-null')
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
properties: {
|
|
6
|
-
|
|
6
|
+
barcode: oneOf({
|
|
7
|
+
type: 'object',
|
|
8
|
+
description: 'Defines specific bahviors for barcode usage and generation, e.g. for BSH',
|
|
9
|
+
properties: {
|
|
10
|
+
source: oneOf({
|
|
11
|
+
description: 'Defines how the transaction barcode field will be set - this will get printed at the bottom of a receipt.',
|
|
12
|
+
type: 'string',
|
|
13
|
+
enum: [
|
|
14
|
+
'generate', // default Tillhub style, e.g. RTEA33D915 - which supports also API lookup
|
|
15
|
+
'external_reference_id' // any external ID from e.g. saved carts or manual entry, BSH: 1111728444 or even UUIDs - API lookup not guaranteed, printing for UUIDs not possible
|
|
16
|
+
],
|
|
17
|
+
default: 'generate' // -> BSH must set source to 'external_reference_id' to keep their current behavior
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
}),
|
|
21
|
+
cross_register_refunding: oneOf({
|
|
7
22
|
description: 'Allows refunding transactions from different registers in the same branch',
|
|
8
23
|
type: 'boolean',
|
|
9
24
|
default: false
|
|
10
|
-
},
|
|
11
|
-
cross_branch_refunding: {
|
|
25
|
+
}),
|
|
26
|
+
cross_branch_refunding: oneOf({
|
|
12
27
|
description: 'Allows refunding transactions from different branches',
|
|
13
28
|
type: 'boolean',
|
|
14
29
|
default: false
|
|
15
|
-
},
|
|
30
|
+
}),
|
|
16
31
|
refund_reason_required: oneOf({
|
|
17
32
|
type: 'boolean',
|
|
18
33
|
description: 'Defines if reasons are mandatory for refunding items from a previous transaction',
|
|
19
34
|
default: true
|
|
20
35
|
}),
|
|
21
|
-
signing: {
|
|
36
|
+
signing: oneOf({
|
|
22
37
|
type: 'object',
|
|
23
38
|
description: 'Decides if and how transactions will be fiscally signed and where the specific configuration can be found',
|
|
24
39
|
properties: {
|
|
@@ -42,11 +57,11 @@ module.exports = {
|
|
|
42
57
|
]
|
|
43
58
|
}
|
|
44
59
|
}
|
|
45
|
-
},
|
|
46
|
-
history: {
|
|
60
|
+
}),
|
|
61
|
+
history: oneOf({
|
|
47
62
|
type: 'object',
|
|
48
63
|
properties: {
|
|
49
|
-
range: {
|
|
64
|
+
range: oneOf({
|
|
50
65
|
description: 'Transactions created before (Now() - Range) are not guaranteed to be kept on the client (e.g. older ones will be deleted).',
|
|
51
66
|
type: 'object',
|
|
52
67
|
properties: {
|
|
@@ -70,15 +85,15 @@ module.exports = {
|
|
|
70
85
|
default: 2
|
|
71
86
|
}
|
|
72
87
|
}
|
|
73
|
-
},
|
|
74
|
-
max_count: {
|
|
88
|
+
}),
|
|
89
|
+
max_count: oneOf({
|
|
75
90
|
description: 'Maximum number of transactions that are kept on the client.',
|
|
76
91
|
type: 'integer',
|
|
77
92
|
minimum: 1,
|
|
78
93
|
maximum: 75000,
|
|
79
94
|
default: 20000
|
|
80
|
-
}
|
|
95
|
+
})
|
|
81
96
|
}
|
|
82
|
-
}
|
|
97
|
+
})
|
|
83
98
|
}
|
|
84
99
|
}
|
package/lib/v1/products/base.js
CHANGED
|
@@ -84,7 +84,9 @@ const request = {
|
|
|
84
84
|
description: 'Arbitrary attributes a product has, that will be displayed in e.g. a sale',
|
|
85
85
|
anyOf: [
|
|
86
86
|
{
|
|
87
|
-
type: 'object'
|
|
87
|
+
type: 'object',
|
|
88
|
+
description: 'A dictionary <string, string> describing all values for one specific variant',
|
|
89
|
+
additionalProperties: { type: 'string' }
|
|
88
90
|
},
|
|
89
91
|
{
|
|
90
92
|
type: 'null'
|