@tillhub/schemas 6.151.1 → 6.154.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.154.0](https://github.com/tillhub/schemas/compare/v6.153.0...v6.154.0) (2022-08-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **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))
|
|
7
|
+
|
|
8
|
+
# [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **products:** refine attributes ([9e3c85b](https://github.com/tillhub/schemas/commit/9e3c85b))
|
|
14
|
+
|
|
15
|
+
# [6.152.0](https://github.com/tillhub/schemas/compare/v6.151.1...v6.152.0) (2022-08-03)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **configurations:** transactions ([26f486c](https://github.com/tillhub/schemas/commit/26f486c))
|
|
21
|
+
|
|
1
22
|
## [6.151.1](https://github.com/tillhub/schemas/compare/v6.151.0...v6.151.1) (2022-08-03)
|
|
2
23
|
|
|
3
24
|
|
package/lib/v0/trash/get.js
CHANGED
package/lib/v0/trash/update.js
CHANGED
|
@@ -3,6 +3,21 @@ const { oneOf } = require('../../../helpers/payload-or-null')
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
properties: {
|
|
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
|
+
}),
|
|
6
21
|
cross_register_refunding: oneOf({
|
|
7
22
|
description: 'Allows refunding transactions from different registers in the same branch',
|
|
8
23
|
type: 'boolean',
|
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'
|