@tillhub/schemas 6.225.0 → 6.227.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,17 @@
|
|
|
1
|
+
# [6.227.0](https://github.com/tillhub/schemas/compare/v6.226.0...v6.227.0) (2023-07-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** tips ([a6a0ca4](https://github.com/tillhub/schemas/commit/a6a0ca4))
|
|
7
|
+
|
|
8
|
+
# [6.226.0](https://github.com/tillhub/schemas/compare/v6.225.0...v6.226.0) (2023-06-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **configurations:** features ([c6fc993](https://github.com/tillhub/schemas/commit/c6fc993))
|
|
14
|
+
|
|
1
15
|
# [6.225.0](https://github.com/tillhub/schemas/compare/v6.224.0...v6.225.0) (2023-06-21)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
const { oneOf } = require('../../../helpers/payload-or-null')
|
|
2
|
+
const TimeInterval = {
|
|
3
|
+
description: 'Defines a time interval.',
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
unit: {
|
|
7
|
+
description: 'Unit of the interval, defines a timeframe together with the set value.',
|
|
8
|
+
type: 'string',
|
|
9
|
+
enum: [
|
|
10
|
+
'hours',
|
|
11
|
+
'days',
|
|
12
|
+
'weeks',
|
|
13
|
+
'months',
|
|
14
|
+
'years'
|
|
15
|
+
],
|
|
16
|
+
default: 'months'
|
|
17
|
+
},
|
|
18
|
+
value: {
|
|
19
|
+
description: 'The value of the interval, defines a timeframe together with the set unit.',
|
|
20
|
+
type: 'integer',
|
|
21
|
+
minimum: 1,
|
|
22
|
+
maximum: 500,
|
|
23
|
+
default: 2
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
2
28
|
module.exports = oneOf({
|
|
3
29
|
type: 'object',
|
|
4
30
|
properties: {
|
|
@@ -109,7 +135,20 @@ module.exports = oneOf({
|
|
|
109
135
|
name: {
|
|
110
136
|
description: 'Display name of the action',
|
|
111
137
|
type: 'string'
|
|
112
|
-
}
|
|
138
|
+
},
|
|
139
|
+
date_range: oneOf({
|
|
140
|
+
description: 'Defines the maximum range for selectable start and end dates',
|
|
141
|
+
type: 'object',
|
|
142
|
+
additionalProperties: false,
|
|
143
|
+
properties: {
|
|
144
|
+
past: oneOf({
|
|
145
|
+
...TimeInterval
|
|
146
|
+
}),
|
|
147
|
+
future: oneOf({
|
|
148
|
+
...TimeInterval
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
})
|
|
113
152
|
}
|
|
114
153
|
}),
|
|
115
154
|
gastro_tables: oneOf({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const { oneOf } = require('../../../helpers/payload-or-null')
|
|
2
|
+
const currencyAmountObject = require('../../../common/currency_amount')
|
|
2
3
|
|
|
3
4
|
const tipsCartItemTemplate = {
|
|
4
5
|
description: 'Defines mandatory cart item properties to enable encoding tips as cart items (similar to Fiskaltrust)',
|
|
@@ -85,6 +86,14 @@ module.exports = oneOf({
|
|
|
85
86
|
maximum: 2.0,
|
|
86
87
|
default: null // -> 1.3 in POS
|
|
87
88
|
}),
|
|
89
|
+
max_value: oneOf({
|
|
90
|
+
type: 'array',
|
|
91
|
+
description: 'Secondary! The maximum total value (by currency) that tips can not exceed when max_factor can not be used, e.g. on zero-carts',
|
|
92
|
+
items: {
|
|
93
|
+
...currencyAmountObject
|
|
94
|
+
},
|
|
95
|
+
default: [ { 'amounnt': 200.0, 'currency': 'EUR' } ]
|
|
96
|
+
}),
|
|
88
97
|
auto_propose: oneOf({
|
|
89
98
|
description: 'if true, automatically selects the highest tip possible according to the given amount or the max_factor, no tips otherwise',
|
|
90
99
|
type: 'boolean',
|