@tillhub/schemas 6.163.0 → 6.164.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,11 @@
|
|
|
1
|
+
# [6.164.0](https://github.com/tillhub/schemas/compare/v6.163.0...v6.164.0) (2022-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** base ([06aaf8a](https://github.com/tillhub/schemas/commit/06aaf8a))
|
|
7
|
+
* **configurations:** tips ([0947fcb](https://github.com/tillhub/schemas/commit/0947fcb))
|
|
8
|
+
|
|
1
9
|
# [6.163.0](https://github.com/tillhub/schemas/compare/v6.162.0...v6.163.0) (2022-09-29)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -62,28 +62,30 @@ const tipsCartItemTemplate = {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
module.exports = {
|
|
65
|
+
module.exports = oneOf({
|
|
66
66
|
type: 'object',
|
|
67
|
+
required: [
|
|
68
|
+
'owner_item',
|
|
69
|
+
'employee_item'
|
|
70
|
+
],
|
|
67
71
|
properties: {
|
|
68
|
-
enabled: {
|
|
72
|
+
enabled: oneOf({
|
|
69
73
|
description: 'global on-off-switch for the tips-feature',
|
|
70
74
|
type: 'boolean',
|
|
71
75
|
default: false
|
|
72
|
-
},
|
|
73
|
-
max_factor: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
maximum: 2.0
|
|
79
|
-
}),
|
|
76
|
+
}),
|
|
77
|
+
max_factor: oneOf({
|
|
78
|
+
description: 'The maximum multiplier to determine tips suggestions from a given cart price.',
|
|
79
|
+
type: 'number',
|
|
80
|
+
minimum: 1.0,
|
|
81
|
+
maximum: 2.0,
|
|
80
82
|
default: null // -> 1.3 in POS
|
|
81
|
-
},
|
|
82
|
-
auto_propose: {
|
|
83
|
+
}),
|
|
84
|
+
auto_propose: oneOf({
|
|
83
85
|
description: 'if true, automatically selects the highest tip possible according to the given amount or the max_factor, no tips otherwise',
|
|
84
86
|
type: 'boolean',
|
|
85
87
|
default: false
|
|
86
|
-
},
|
|
88
|
+
}),
|
|
87
89
|
owner_item: {
|
|
88
90
|
description: 'Tip item template if the shop owner IS the recipient of the tip (e.g. non-zero tax account).',
|
|
89
91
|
...tipsCartItemTemplate
|
|
@@ -92,28 +94,25 @@ module.exports = {
|
|
|
92
94
|
description: 'Tip item template if the shop owner is NOT the recipient of the tip (e.g. zero tax account).',
|
|
93
95
|
...tipsCartItemTemplate
|
|
94
96
|
},
|
|
95
|
-
payment_types: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
'
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
default: null // -> tips feature disabled in POS
|
|
117
|
-
}
|
|
97
|
+
payment_types: oneOf({
|
|
98
|
+
description: 'Defines which payment types can be used with the tips-feature',
|
|
99
|
+
type: 'array',
|
|
100
|
+
items: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
'enum': [
|
|
103
|
+
'cash',
|
|
104
|
+
'card',
|
|
105
|
+
'invoice',
|
|
106
|
+
'card_opi', // deprecated, use 'card' instead
|
|
107
|
+
'card_concardis', // deprecated, use 'card' instead
|
|
108
|
+
'card_tim', // deprecated, use 'card' instead
|
|
109
|
+
'card_adyen', // deprecated, use 'card' instead
|
|
110
|
+
'gift_card',
|
|
111
|
+
'default',
|
|
112
|
+
'undefined',
|
|
113
|
+
'voucher'
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
})
|
|
118
117
|
}
|
|
119
|
-
}
|
|
118
|
+
})
|