@tillhub/schemas 6.153.0 → 6.156.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 +22 -0
- package/lib/v0/trash/get.js +1 -0
- package/lib/v0/trash/update.js +1 -0
- package/lib/v1/configurations/items/customers.js +3 -1
- package/lib/v1/configurations/items/products.js +3 -1
- package/lib/v1/configurations/items/receipts.js +10 -0
- package/lib/v1/configurations/items/staff.js +20 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# [6.156.0](https://github.com/tillhub/schemas/compare/v6.155.0...v6.156.0) (2022-08-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** receipts ([7c9d972](https://github.com/tillhub/schemas/commit/7c9d972))
|
|
7
|
+
* **configurations:** receipts ([31de842](https://github.com/tillhub/schemas/commit/31de842))
|
|
8
|
+
|
|
9
|
+
# [6.155.0](https://github.com/tillhub/schemas/compare/v6.154.0...v6.155.0) (2022-08-08)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **generate_id:** make SEQUENCE mandatory for customer, product & staff ([bd831b9](https://github.com/tillhub/schemas/commit/bd831b9))
|
|
15
|
+
|
|
16
|
+
# [6.154.0](https://github.com/tillhub/schemas/compare/v6.153.0...v6.154.0) (2022-08-06)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **trash:** Add AddonGroups to revision history to be able to recover ([#720](https://github.com/tillhub/schemas/issues/720)) ([0402a86](https://github.com/tillhub/schemas/commit/0402a86))
|
|
22
|
+
|
|
1
23
|
# [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
|
|
2
24
|
|
|
3
25
|
|
package/lib/v0/trash/get.js
CHANGED
package/lib/v0/trash/update.js
CHANGED
|
@@ -189,6 +189,16 @@ const cartReceipt = {
|
|
|
189
189
|
type: 'boolean',
|
|
190
190
|
default: true
|
|
191
191
|
}),
|
|
192
|
+
signing_footer_style: oneOf({
|
|
193
|
+
description: 'Defines if signing footer is printed as text-only, qr-code-only or with text and qr-code. Legal requirements will always have precedence.',
|
|
194
|
+
type: 'string',
|
|
195
|
+
enum: [
|
|
196
|
+
'qr_only',
|
|
197
|
+
'text_only',
|
|
198
|
+
'text_qr'
|
|
199
|
+
],
|
|
200
|
+
default: 'qr_only'
|
|
201
|
+
}),
|
|
192
202
|
refund_options: oneOf({
|
|
193
203
|
description: 'If the sale is a refund - the following options will be considered',
|
|
194
204
|
type: 'object',
|
|
@@ -5,6 +5,26 @@ module.exports = {
|
|
|
5
5
|
type: 'object',
|
|
6
6
|
additionalProperties: true,
|
|
7
7
|
properties: {
|
|
8
|
+
staff_id_template: {
|
|
9
|
+
description: 'A Tillhub string pattern that allows for parameterized staff number generation',
|
|
10
|
+
oneOf: [
|
|
11
|
+
{
|
|
12
|
+
type: 'null'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'We need to have a SEQUENCE to assure the uniqueness of the id',
|
|
17
|
+
minLength: 4,
|
|
18
|
+
maxLength: 512,
|
|
19
|
+
pattern: 'SEQUENCE'
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
generate_staff_id: {
|
|
24
|
+
description: 'The toggle to opt-in or -out of the staff number generation. Send this as query parameter on creation: ?generate_staff_number=true',
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
default: 'false'
|
|
27
|
+
},
|
|
8
28
|
cashier_pin_cancel_enabled: {
|
|
9
29
|
'description': 'If true, a cashier is allowed to cancel a PIN request. If false, the PIN request is not cancelable and will stay there',
|
|
10
30
|
...oneOf({
|