@tillhub/schemas 6.308.1 → 6.309.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,17 @@
1
+ # [6.309.0](https://github.com/tillhub/schemas/compare/v6.308.2...v6.309.0) (2024-05-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** stock ([0f8f5ba](https://github.com/tillhub/schemas/commit/0f8f5ba))
7
+
8
+ ## [6.308.2](https://github.com/tillhub/schemas/compare/v6.308.1...v6.308.2) (2024-05-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **pdf:** fix for exporting pdf with negative total_price_include_vat ([#953](https://github.com/tillhub/schemas/issues/953)) ([ed4c3d4](https://github.com/tillhub/schemas/commit/ed4c3d4))
14
+
1
15
  ## [6.308.1](https://github.com/tillhub/schemas/compare/v6.308.0...v6.308.1) (2024-05-14)
2
16
 
3
17
 
@@ -199,7 +199,6 @@ module.exports = {
199
199
  type: 'number',
200
200
  description: 'Total price without discounts',
201
201
  example: '27.55', // == 27.55 Euros
202
- minimum: 0,
203
202
  multipleOf: 0.01
204
203
  },
205
204
  currency: {
@@ -64,15 +64,37 @@ module.exports = {
64
64
  default: false
65
65
  }),
66
66
  reference_enabled: oneOf({
67
+ deprecated: true,
67
68
  type: 'boolean',
68
69
  description: 'Defines if delivery note reference should be requested for changing stock',
69
70
  default: false
70
71
  }),
71
72
  reference_required: oneOf({
73
+ deprecated: true,
72
74
  type: 'boolean',
73
75
  description: 'Defines if delivery note reference is mandatory for changing stock',
74
76
  default: false
75
77
  }),
78
+ increment_reference: oneOf({
79
+ description: 'Defines how a delivery note reference will be requested when incrementing stock',
80
+ type: 'string',
81
+ enum: [
82
+ 'none',
83
+ 'optional',
84
+ 'required'
85
+ ],
86
+ default: 'none'
87
+ }),
88
+ decrement_reference: oneOf({
89
+ description: 'Defines how a delivery note reference will be requested when decrementing stock',
90
+ type: 'string',
91
+ enum: [
92
+ 'none',
93
+ 'optional',
94
+ 'required'
95
+ ],
96
+ default: 'none'
97
+ }),
76
98
  reference_format: {
77
99
  description: 'The format of the delivery note reference that is being validated against the input',
78
100
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.308.1",
3
+ "version": "6.309.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",