@tillhub/schemas 6.269.0 → 6.270.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 +12 -0
- package/lib/v1/products/pricelist/response.js +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [6.270.0](https://github.com/tillhub/schemas/compare/v6.269.0...v6.270.0) (2023-10-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **products:** pricelist ([68d37d1](https://github.com/tillhub/schemas/commit/68d37d1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **pricebook:** customer price book for pricelist ([678c133](https://github.com/tillhub/schemas/commit/678c133))
|
|
12
|
+
|
|
1
13
|
# [6.269.0](https://github.com/tillhub/schemas/compare/v6.268.0...v6.269.0) (2023-10-24)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -11,10 +11,9 @@ module.exports = {
|
|
|
11
11
|
format: 'uuid'
|
|
12
12
|
},
|
|
13
13
|
type: {
|
|
14
|
-
description: '
|
|
14
|
+
description: 'The product prices type',
|
|
15
15
|
type: 'string',
|
|
16
16
|
enum: [
|
|
17
|
-
'customer', // defined by pricebook when of type 'customer'
|
|
18
17
|
'scaled', // defined by product
|
|
19
18
|
'branch', // defined by product
|
|
20
19
|
'time-based', // defined by pricebook-entry
|
|
@@ -22,6 +21,15 @@ module.exports = {
|
|
|
22
21
|
],
|
|
23
22
|
example: 'scaled'
|
|
24
23
|
},
|
|
24
|
+
price_book_type: oneOf({
|
|
25
|
+
description: 'The price book type',
|
|
26
|
+
type: 'string',
|
|
27
|
+
enum: [
|
|
28
|
+
'general', // price book is applied to every customer
|
|
29
|
+
'customer' // price book is bound to a specific customer
|
|
30
|
+
],
|
|
31
|
+
example: 'general'
|
|
32
|
+
}),
|
|
25
33
|
created_at: {
|
|
26
34
|
type: 'string',
|
|
27
35
|
format: 'date-time',
|