@tillhub/schemas 6.384.0 → 6.387.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,26 @@
1
+ # [6.387.0](https://github.com/tillhub/schemas/compare/v6.386.0...v6.387.0) (2025-05-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** receipts ([eb5315f](https://github.com/tillhub/schemas/commit/eb5315f))
7
+
8
+ # [6.386.0](https://github.com/tillhub/schemas/compare/v6.385.0...v6.386.0) (2025-05-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configurations:** receipts ([80c2e8a](https://github.com/tillhub/schemas/commit/80c2e8a))
14
+
15
+ # [6.385.0](https://github.com/tillhub/schemas/compare/v6.384.0...v6.385.0) (2025-05-09)
16
+
17
+
18
+ ### Features
19
+
20
+ * **addons:** add addons field to carts, orders and delivery notes ([9c9d2ca](https://github.com/tillhub/schemas/commit/9c9d2ca))
21
+ * **addons:** new fields ([9bd6bcc](https://github.com/tillhub/schemas/commit/9bd6bcc))
22
+ * **carts:** items ([ff85fee](https://github.com/tillhub/schemas/commit/ff85fee))
23
+
1
24
  # [6.384.0](https://github.com/tillhub/schemas/compare/v6.383.0...v6.384.0) (2025-05-07)
2
25
 
3
26
 
@@ -19,6 +19,13 @@ const masterData = {
19
19
  type: 'string',
20
20
  format: 'uuid'
21
21
  },
22
+ addons: oneOf({
23
+ description: 'The list of applied addons.',
24
+ type: 'array',
25
+ items: {
26
+ ...addonObject
27
+ }
28
+ }),
22
29
  account: {
23
30
  description: 'Account ID',
24
31
  type: 'string',
@@ -47,7 +47,8 @@ const salespersonConfiguration = {
47
47
  'name',
48
48
  'first_name', // first name only
49
49
  'last_name' // last name only
50
- ]
50
+ ],
51
+ default: 'none'
51
52
  }),
52
53
  conditions: oneOf({
53
54
  description: 'Defines the conditions, e.g. is_unique for header level, does stack - empty means: no restrictions, depends on style then alone',
@@ -640,7 +641,8 @@ module.exports = oneOf({
640
641
  'none',
641
642
  'first_name', // first name only
642
643
  'last_name' // last name only
643
- ]
644
+ ],
645
+ default: 'name'
644
646
  }),
645
647
  print_salesman_policy: oneOf({
646
648
  description: 'Defines if and how the salesperson will be printed on any receipt',
@@ -649,7 +651,8 @@ module.exports = oneOf({
649
651
  'number',
650
652
  'name',
651
653
  'none'
652
- ]
654
+ ],
655
+ default: 'none'
653
656
  }),
654
657
  print_salesperson_policy: oneOf({
655
658
  description: 'Defines further if the salesperson will be printed on a receipt',
@@ -658,7 +661,8 @@ module.exports = oneOf({
658
661
  'not_cashier',
659
662
  'always',
660
663
  'never'
661
- ]
664
+ ],
665
+ default: 'always'
662
666
  }),
663
667
  print_product_attributes: oneOf({
664
668
  description: 'Defines the receipt-types the product attributes (in case of options) will be printed on (e.g. just for the customer)',
@@ -670,7 +674,8 @@ module.exports = oneOf({
670
674
  'customer',
671
675
  'order'
672
676
  ]
673
- }
677
+ },
678
+ default: ['order']
674
679
  }),
675
680
  print_product_description: oneOf({
676
681
  description: 'Defines the receipt-types the product description will be printed on (e.g. just for the customer)',
@@ -3,6 +3,7 @@ const productServiceAnswerObject = require('../../transactions/components/embedd
3
3
  const returnReason = require('../../transactions/components/embedded/return/return_reason')
4
4
  const voucherObject = require('../../transactions/components/embedded/voucher/base')
5
5
  const customProperties = require('../../../common/custom_properties')
6
+ const addonObject = require('../../transactions/components/embedded/addon/base')
6
7
 
7
8
  const masterData = {
8
9
  salesman_staff: {
@@ -20,6 +21,13 @@ const masterData = {
20
21
  }
21
22
  ]
22
23
  },
24
+ addons: oneOf({
25
+ description: 'The list of applied addons.',
26
+ type: 'array',
27
+ items: {
28
+ ...addonObject
29
+ }
30
+ }),
23
31
  account: {
24
32
  oneOf: [
25
33
  {
@@ -54,6 +54,15 @@ module.exports = {
54
54
  example: 'Extra Mushrooms',
55
55
  minLength: 1,
56
56
  maxLength: 256
57
+ },
58
+ group_name: {
59
+ type: 'string',
60
+ description: 'Optional name of the addon group this item belongs to.',
61
+ example: 'Toppings'
62
+ },
63
+ is_add_to_cart: {
64
+ type: 'boolean',
65
+ description: 'Flag indicating whether this addon was explicitly added to cart.'
57
66
  }
58
67
  },
59
68
  required: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.384.0",
3
+ "version": "6.387.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",