@tillhub/schemas 6.226.0 → 6.227.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,10 @@
1
+ # [6.227.0](https://github.com/tillhub/schemas/compare/v6.226.0...v6.227.0) (2023-07-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** tips ([a6a0ca4](https://github.com/tillhub/schemas/commit/a6a0ca4))
7
+
1
8
  # [6.226.0](https://github.com/tillhub/schemas/compare/v6.225.0...v6.226.0) (2023-06-23)
2
9
 
3
10
 
@@ -1,4 +1,5 @@
1
1
  const { oneOf } = require('../../../helpers/payload-or-null')
2
+ const currencyAmountObject = require('../../../common/currency_amount')
2
3
 
3
4
  const tipsCartItemTemplate = {
4
5
  description: 'Defines mandatory cart item properties to enable encoding tips as cart items (similar to Fiskaltrust)',
@@ -85,6 +86,14 @@ module.exports = oneOf({
85
86
  maximum: 2.0,
86
87
  default: null // -> 1.3 in POS
87
88
  }),
89
+ max_value: oneOf({
90
+ type: 'array',
91
+ description: 'Secondary! The maximum total value (by currency) that tips can not exceed when max_factor can not be used, e.g. on zero-carts',
92
+ items: {
93
+ ...currencyAmountObject
94
+ },
95
+ default: [ { 'amounnt': 200.0, 'currency': 'EUR' } ]
96
+ }),
88
97
  auto_propose: oneOf({
89
98
  description: 'if true, automatically selects the highest tip possible according to the given amount or the max_factor, no tips otherwise',
90
99
  type: 'boolean',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.226.0",
3
+ "version": "6.227.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",