@tillhub/schemas 6.172.0 → 6.174.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 +15 -0
- package/lib/v1/configurations/items/payments.js +14 -0
- package/lib/v1/products/branch/customization/base.js +51 -0
- package/lib/v1/products/branch/customization/create.request.js +12 -0
- package/lib/v1/products/branch/customization/index.js +2 -0
- package/lib/v1/products/branch/customization/update.request.js +10 -0
- package/lib/v1/products/index.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.174.0](https://github.com/tillhub/schemas/compare/v6.173.0...v6.174.0) (2022-11-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **payments:** blacklisted_payment_types configuration ([6ab0762](https://github.com/tillhub/schemas/commit/6ab0762))
|
|
7
|
+
* **payments:** payments black list ([3e896be](https://github.com/tillhub/schemas/commit/3e896be))
|
|
8
|
+
|
|
9
|
+
# [6.173.0](https://github.com/tillhub/schemas/compare/v6.172.0...v6.173.0) (2022-11-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **products:** Create CRUD endpoints for product customization by branch ([#740](https://github.com/tillhub/schemas/issues/740)) ([b9b8510](https://github.com/tillhub/schemas/commit/b9b8510))
|
|
15
|
+
|
|
1
16
|
# [6.172.0](https://github.com/tillhub/schemas/compare/v6.171.0...v6.172.0) (2022-11-17)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -17,6 +17,20 @@ module.exports = {
|
|
|
17
17
|
],
|
|
18
18
|
default: 'never'
|
|
19
19
|
}),
|
|
20
|
+
blacklisted_payment_types: oneOf({
|
|
21
|
+
description: 'Hides the payment options that match the blacklisted type from payment screen',
|
|
22
|
+
type: 'array',
|
|
23
|
+
items: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
enum: [
|
|
26
|
+
'cash',
|
|
27
|
+
'card',
|
|
28
|
+
'invoice',
|
|
29
|
+
'gift_card',
|
|
30
|
+
'terminal_gift_card'
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
20
34
|
allow_refund_split: oneOf({
|
|
21
35
|
description: 'If true, allows multiple payments on negative cart totals, e.g. undefined + cash (e.g. health insurance case).',
|
|
22
36
|
default: false,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const { oneOf } = require('../../../../helpers/payload-or-null')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
product: {
|
|
5
|
+
description: 'The reference to the actual product',
|
|
6
|
+
type: 'string',
|
|
7
|
+
format: 'uuid'
|
|
8
|
+
},
|
|
9
|
+
name: oneOf({
|
|
10
|
+
description: 'Product name',
|
|
11
|
+
type: 'string',
|
|
12
|
+
maxLength: 512
|
|
13
|
+
}),
|
|
14
|
+
branches: oneOf({
|
|
15
|
+
type: 'array',
|
|
16
|
+
items: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
format: 'uuid'
|
|
19
|
+
}
|
|
20
|
+
}),
|
|
21
|
+
branch_groups: oneOf({
|
|
22
|
+
type: 'array',
|
|
23
|
+
items: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
format: 'uuid'
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
description: oneOf({
|
|
29
|
+
description: 'Product name',
|
|
30
|
+
type: 'string',
|
|
31
|
+
maxLength: 4096
|
|
32
|
+
}),
|
|
33
|
+
summary: oneOf({
|
|
34
|
+
description: 'Product name',
|
|
35
|
+
type: 'string',
|
|
36
|
+
maxLength: 1024
|
|
37
|
+
}),
|
|
38
|
+
default_tile_color: oneOf({
|
|
39
|
+
description: 'Product name',
|
|
40
|
+
type: 'string',
|
|
41
|
+
maxLength: 50
|
|
42
|
+
}),
|
|
43
|
+
active: {
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
deleted: {
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const base = require('./base')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
$id: 'https://schemas.tillhub.com/v1/products.branch.customization.create.request.schema.json',
|
|
5
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: [
|
|
9
|
+
'product'
|
|
10
|
+
],
|
|
11
|
+
properties: base
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const base = require('./base')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
$id: 'https://schemas.tillhub.com/v1/products.branch.customization.update.request.schema.json',
|
|
5
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: [],
|
|
9
|
+
properties: base
|
|
10
|
+
}
|
package/lib/v1/products/index.js
CHANGED