@tillhub/schemas 6.133.0 → 6.135.1

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,24 @@
1
+ ## [6.135.1](https://github.com/tillhub/schemas/compare/v6.135.0...v6.135.1) (2022-04-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **client_accounts:** Accept `regiondo` as valid Whitelabel and dashboard value when creating account ([87fc826](https://github.com/tillhub/schemas/commit/87fc826))
7
+
8
+ # [6.135.0](https://github.com/tillhub/schemas/compare/v6.134.0...v6.135.0) (2022-04-13)
9
+
10
+
11
+ ### Features
12
+
13
+ * **transactions:** Add key to fr_transaction_cartitem_context_option ([#690](https://github.com/tillhub/schemas/issues/690)) ([10c0371](https://github.com/tillhub/schemas/commit/10c0371))
14
+
15
+ # [6.134.0](https://github.com/tillhub/schemas/compare/v6.133.0...v6.134.0) (2022-04-05)
16
+
17
+
18
+ ### Features
19
+
20
+ * **products:** configuration ([3050bd5](https://github.com/tillhub/schemas/commit/3050bd5))
21
+
1
22
  # [6.133.0](https://github.com/tillhub/schemas/compare/v6.132.0...v6.133.0) (2022-04-01)
2
23
 
3
24
 
@@ -33,12 +33,14 @@ module.exports = {
33
33
  'default': 'tillhub_init'
34
34
  },
35
35
  dashboard: {
36
+ description: 'Defines this account\'s preferred dashboard',
36
37
  type: 'string',
37
38
  'enum': [
38
39
  'tillhub',
39
40
  'tillhub_legacy',
40
41
  'shore',
41
- 'localsearch'
42
+ 'localsearch',
43
+ 'regiondo'
42
44
  ],
43
45
  'default': 'tillhub'
44
46
  },
@@ -188,7 +188,14 @@ module.exports = {
188
188
  ]
189
189
  },
190
190
  allow_zero_prices: {
191
- description: 'If true, a product can be added to the cart with 0.0 as price or its price can be changed to 0.0.',
191
+ deprecated: true,
192
+ description: stripIndents`
193
+ If true, a product can be added to the cart with 0.0 as price or its price can be changed to 0.0.
194
+
195
+ NOTE: Hard validation will be removed entirely!
196
+ Behavior will be driven by 'v1/products.configuration.pricing.request_input'
197
+ and 'v1/products.configuration.pricing.zero_input_allowed'.
198
+ `,
192
199
  oneOf: [
193
200
  {
194
201
  type: 'null'
@@ -1,3 +1,4 @@
1
+ const { stripIndents } = require('common-tags')
1
2
  module.exports = {
2
3
  description: 'Defines various product behaviours.',
3
4
  default: {
@@ -12,6 +13,7 @@ module.exports = {
12
13
  additionalProperties: true,
13
14
  properties: {
14
15
  allow_zero_prices: {
16
+ deprecated: true,
15
17
  description: 'Allow adding this product to a cart if it has no price.',
16
18
  type: 'boolean'
17
19
  },
@@ -19,8 +21,27 @@ module.exports = {
19
21
  type: 'object',
20
22
  properties: {
21
23
  allow_is_free: {
24
+ deprecated: true,
22
25
  description: 'If an eligible price is 0 define whether the user is prompted to enter a price or whether the price can stay 0, to essentially be a freebie.',
23
26
  type: 'boolean'
27
+ },
28
+ request_input: {
29
+ type: 'boolean',
30
+ default: false,
31
+ description: stripIndents`
32
+ If true, request cashier input - regardless of the current price value, but pre-filled with it.
33
+
34
+ NOTE: If false and price is 0 - adds item with 0 price automatically.
35
+ `
36
+ },
37
+ zero_input_allowed: {
38
+ type: 'boolean',
39
+ default: false,
40
+ description: stripIndents`
41
+ Defines whether a requested price input can be confirmed with a zero value or not.
42
+
43
+ NOTE: Does not affect any zero price behavior directly, just the input validation when 'request_input'=true.
44
+ `
24
45
  }
25
46
  }
26
47
  }
@@ -393,6 +393,7 @@ module.exports = {
393
393
  'note', // Cashier/customer note on this item
394
394
  'related_transaction_guid', // In cases of refund or cancellation, or invoicing a delivery note or selling a saved cart: the GUID of the origin transaction
395
395
  'serial_number', // Product serial number recorded at the point of sale
396
+ 'price_change_reason', // Price change reason recorded at the point of sale
396
397
  'voucher_value', // The DELTA value of this voucher operation, INT 2500 = 25.00 EUR or 2500 HUF respectively
397
398
  'voucher_id', // If is_voucher, the Tillhub voucher resource used to create this item
398
399
  'voucher_client_id', // If is_voucher, the client assigned id of the item\'s associated vocuher operation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.133.0",
3
+ "version": "6.135.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",