@tillhub/schemas 6.132.0 → 6.133.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 +7 -0
- package/lib/v1/carts/items/create.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.133.0](https://github.com/tillhub/schemas/compare/v6.132.0...v6.133.0) (2022-04-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **carts:** add more information about data integrity validation #API-1461 ([19e065b](https://github.com/tillhub/schemas/commit/19e065b)), closes [#API-1461](https://github.com/tillhub/schemas/issues/API-1461)
|
|
7
|
+
|
|
1
8
|
# [6.132.0](https://github.com/tillhub/schemas/compare/v6.131.0...v6.132.0) (2022-03-30)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -13,7 +13,7 @@ const masterData = {
|
|
|
13
13
|
})
|
|
14
14
|
},
|
|
15
15
|
tax: {
|
|
16
|
-
description: 'Tax rate ID',
|
|
16
|
+
description: 'Tax rate ID. If not present, the "vat_rate" must be present. The active tax with such ID must be defined in the system',
|
|
17
17
|
type: 'string',
|
|
18
18
|
format: 'uuid'
|
|
19
19
|
},
|
|
@@ -23,7 +23,7 @@ const masterData = {
|
|
|
23
23
|
format: 'uuid'
|
|
24
24
|
},
|
|
25
25
|
account_number: {
|
|
26
|
-
description: 'Account number',
|
|
26
|
+
description: 'Account number. The only one active account with the same number must be defined in the system (does not apply when "account" value is present)',
|
|
27
27
|
...oneOf({
|
|
28
28
|
type: 'string'
|
|
29
29
|
})
|
|
@@ -498,7 +498,7 @@ const externalCart = {
|
|
|
498
498
|
...amount
|
|
499
499
|
},
|
|
500
500
|
vat_rate: {
|
|
501
|
-
description: 'VAT rate',
|
|
501
|
+
description: 'VAT rate in the range 0-1. Required when "tax" value is not present. The only one active VAT with the same rate must be defined in the system (does not apply when "tax" value is present)',
|
|
502
502
|
example: 0.12,
|
|
503
503
|
type: 'number',
|
|
504
504
|
minimum: 0,
|
|
@@ -618,7 +618,7 @@ const internalCart = {
|
|
|
618
618
|
})
|
|
619
619
|
},
|
|
620
620
|
vat_rate: {
|
|
621
|
-
description: 'VAT rate',
|
|
621
|
+
description: 'VAT rate in the range 0-1. Required when "tax" value is not present. The only one active VAT with the same rate must be defined in the system (does not apply when "tax" value is present)',
|
|
622
622
|
example: 0.12,
|
|
623
623
|
type: 'number',
|
|
624
624
|
minimum: 0,
|