@tillhub/schemas 6.216.0 → 6.218.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 +17 -0
- package/lib/v1/balances/legacy/embedded/payments/base.js +0 -14
- package/lib/v1/configurations/items/interfaces.js +2 -2
- package/lib/v1/configurations/items/products.js +2 -1
- package/lib/v1/configurations/items/searches.js +5 -0
- package/lib/v1/products/pricelist/response.js +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# [6.218.0](https://github.com/tillhub/schemas/compare/v6.217.0...v6.218.0) (2023-06-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **search:** added stock adjustment view search configuration ([ba42a12](https://github.com/tillhub/schemas/commit/ba42a12))
|
|
7
|
+
* **UNTIL-6873_pricelist:** add location-based to type_precedence.default ([1f37a81](https://github.com/tillhub/schemas/commit/1f37a81))
|
|
8
|
+
* **UNTIL-6873_pricelist:** add location-based type ([25f6029](https://github.com/tillhub/schemas/commit/25f6029))
|
|
9
|
+
* **UNTIL-6873_pricelist:** add location-based type_precedence ([77c05d4](https://github.com/tillhub/schemas/commit/77c05d4))
|
|
10
|
+
|
|
11
|
+
# [6.217.0](https://github.com/tillhub/schemas/compare/v6.216.0...v6.217.0) (2023-05-25)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **balances:** payments ([a1bd0d2](https://github.com/tillhub/schemas/commit/a1bd0d2))
|
|
17
|
+
|
|
1
18
|
# [6.216.0](https://github.com/tillhub/schemas/compare/v6.215.0...v6.216.0) (2023-05-23)
|
|
2
19
|
|
|
3
20
|
|
|
@@ -26,13 +26,6 @@ module.exports = {
|
|
|
26
26
|
example: '5ad2351d-9a67-45f9-ad4f-0abcbefa9037',
|
|
27
27
|
description: 'The payment_option ressource id'
|
|
28
28
|
},
|
|
29
|
-
payment_option_id: {
|
|
30
|
-
...oneOf({
|
|
31
|
-
type: 'integer',
|
|
32
|
-
example: 131,
|
|
33
|
-
description: 'Legacy id of the payment option'
|
|
34
|
-
})
|
|
35
|
-
},
|
|
36
29
|
payment_option_name: {
|
|
37
30
|
...oneOf({
|
|
38
31
|
type: 'string',
|
|
@@ -95,13 +88,6 @@ module.exports = {
|
|
|
95
88
|
example: 1850,
|
|
96
89
|
description: 'The daily discrepancy between calculated and counted amounts, POS: counted - calculated, not available anymore for non-cash types (e.g. terminal) (in cent-format: 1267 == 12.67€)'
|
|
97
90
|
})
|
|
98
|
-
},
|
|
99
|
-
exchangeRate: {
|
|
100
|
-
...oneOf({
|
|
101
|
-
type: 'number',
|
|
102
|
-
example: 1.403,
|
|
103
|
-
description: 'Exchange rate of the payment option, not used.'
|
|
104
|
-
})
|
|
105
91
|
}
|
|
106
92
|
}
|
|
107
93
|
}
|
|
@@ -24,7 +24,7 @@ module.exports = {
|
|
|
24
24
|
type: 'integer',
|
|
25
25
|
example: 15,
|
|
26
26
|
minimum: 0,
|
|
27
|
-
maximum:
|
|
27
|
+
maximum: 30, // to be on the safe side of Apple
|
|
28
28
|
default: 25
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -41,7 +41,7 @@ module.exports = {
|
|
|
41
41
|
type: 'integer',
|
|
42
42
|
example: 15,
|
|
43
43
|
minimum: 0,
|
|
44
|
-
maximum:
|
|
44
|
+
maximum: 30, // to be on the safe side of Apple
|
|
45
45
|
default: 25
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -62,11 +62,12 @@ module.exports = {
|
|
|
62
62
|
description: 'Price types sorted by priority.',
|
|
63
63
|
type: 'array',
|
|
64
64
|
uniqueItems: true,
|
|
65
|
-
default: ['scaled', 'time-based', 'branch'],
|
|
65
|
+
default: ['scaled', 'time-based', 'location-based', 'branch'],
|
|
66
66
|
items: {
|
|
67
67
|
type: 'string',
|
|
68
68
|
enum: [
|
|
69
69
|
'time-based',
|
|
70
|
+
'location-based',
|
|
70
71
|
'branch',
|
|
71
72
|
'scaled'
|
|
72
73
|
]
|
|
@@ -82,6 +82,11 @@ module.exports = {
|
|
|
82
82
|
type: 'object',
|
|
83
83
|
...searchBehavior
|
|
84
84
|
},
|
|
85
|
+
stock_adjustment: {
|
|
86
|
+
description: 'Stock adjustment view',
|
|
87
|
+
type: 'object',
|
|
88
|
+
...searchBehavior
|
|
89
|
+
},
|
|
85
90
|
tile_view: {
|
|
86
91
|
description: 'Tile view, no limitations, probably account requirements dependent',
|
|
87
92
|
type: 'object',
|
|
@@ -14,9 +14,10 @@ module.exports = {
|
|
|
14
14
|
description: 'Type of the product prices',
|
|
15
15
|
type: 'string',
|
|
16
16
|
enum: [
|
|
17
|
-
'scaled',
|
|
18
|
-
'branch',
|
|
19
|
-
'time-based'
|
|
17
|
+
'scaled', // defined by product
|
|
18
|
+
'branch', // defined by product
|
|
19
|
+
'time-based', // defined by pricebook-entry
|
|
20
|
+
'location-based' // defined by pricebook-entry
|
|
20
21
|
],
|
|
21
22
|
example: 'scaled'
|
|
22
23
|
},
|