@tillhub/schemas 6.102.0 → 6.103.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,10 @@
1
+ # [6.103.0](https://github.com/tillhub/schemas/compare/v6.102.0...v6.103.0) (2021-11-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **product_addons:** Extend add-ons with editable quantity functionality ([#645](https://github.com/tillhub/schemas/issues/645)) ([ba8a564](https://github.com/tillhub/schemas/commit/ba8a564))
7
+
1
8
  # [6.102.0](https://github.com/tillhub/schemas/compare/v6.101.0...v6.102.0) (2021-11-03)
2
9
 
3
10
 
@@ -38,7 +38,7 @@ module.exports = {
38
38
  }
39
39
  }
40
40
  ),
41
- quantity: {
41
+ stock_quantity: {
42
42
  type: 'number',
43
43
  description: 'How much of the product stock will be moved (defaults to 1 - only important if it affects stock). This value can be negative number!',
44
44
  default: 1
@@ -53,6 +53,11 @@ module.exports = {
53
53
  description: 'Can the cashier edit the quantity of the addon selected (only important if it affects stock)',
54
54
  default: false
55
55
  },
56
+ max_quantity: {
57
+ type: 'number',
58
+ description: 'Maximum count the product stock will be moved. Related to the allow_quantity_edit - only if it set to true',
59
+ default: 1
60
+ },
56
61
  order_index: {
57
62
  type: 'number',
58
63
  description: 'Display the Addon in a specific order',
@@ -33,6 +33,14 @@ module.exports = {
33
33
  maxLength: 3
34
34
  },
35
35
  quantity: {
36
+ type: 'number',
37
+ description: 'Number of times the addon is applied to the cart item. Respects the max_quantity setting on the Addon',
38
+ example: 3.6,
39
+ minimum: -32767.000,
40
+ maximum: 32767.000,
41
+ multipleOf: 0.001
42
+ },
43
+ stock_quantity: {
36
44
  type: 'number',
37
45
  description: 'The quantity of this addon, e.g. 1 pc or 0.125kg - this does never affect the price (only used for stock).',
38
46
  example: 3.6,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.102.0",
3
+ "version": "6.103.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",