@tillhub/schemas 6.89.0 → 6.90.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,31 @@
1
+ ## [6.90.1](https://github.com/tillhub/schemas/compare/v6.90.0...v6.90.1) (2021-09-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **loyalty_systems:** add validity_period to abocard system #API-1017 ([e172dd2](https://github.com/tillhub/schemas/commit/e172dd2)), closes [#API-1017](https://github.com/tillhub/schemas/issues/API-1017)
7
+
8
+ # [6.90.0](https://github.com/tillhub/schemas/compare/v6.89.2...v6.90.0) (2021-09-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * **configurations:** products ([#621](https://github.com/tillhub/schemas/issues/621)) ([ebc8268](https://github.com/tillhub/schemas/commit/ebc8268))
14
+
15
+ ## [6.89.2](https://github.com/tillhub/schemas/compare/v6.89.1...v6.89.2) (2021-09-22)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **loyalty_systems:** promote base object for base response for abocrds system #API-1017 ([5a8e7e4](https://github.com/tillhub/schemas/commit/5a8e7e4)), closes [#API-1017](https://github.com/tillhub/schemas/issues/API-1017)
21
+
22
+ ## [6.89.1](https://github.com/tillhub/schemas/compare/v6.89.0...v6.89.1) (2021-09-21)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * hijacked configuration param properly described ([c21090c](https://github.com/tillhub/schemas/commit/c21090c))
28
+
1
29
  # [6.89.0](https://github.com/tillhub/schemas/compare/v6.88.0...v6.89.0) (2021-09-21)
2
30
 
3
31
 
@@ -365,11 +365,10 @@ module.exports = {
365
365
  ]
366
366
  },
367
367
  configuration: {
368
- description: 'The reference to a configuration for branch level configurations. This should be omitted by implementers.',
368
+ description: 'Deprecated: Overwriting a fa_account_number on cash payments for DATEV export.',
369
369
  anyOf: [
370
370
  {
371
- type: 'string',
372
- format: 'uuid'
371
+ type: 'string'
373
372
  },
374
373
  {
375
374
  type: 'null'
@@ -68,6 +68,28 @@ const request = {
68
68
  type: 'string',
69
69
  maxLength: 255
70
70
  }),
71
+ validity_period: {
72
+ description: 'Validity period of issued abocrads',
73
+ type: 'object',
74
+ additionalProperties: false,
75
+ required: ['unit', 'value'],
76
+ properties: {
77
+ unit: {
78
+ description: 'The type of period',
79
+ example: 'years',
80
+ type: 'string',
81
+ enum: [
82
+ 'years'
83
+ ]
84
+ },
85
+ value: {
86
+ description: 'The period value in given units',
87
+ example: 3,
88
+ type: 'number',
89
+ minimum: 0
90
+ }
91
+ }
92
+ },
71
93
  voucher_system: oneOf({
72
94
  description: 'Referenced voucher system when system_type == "voucher". 1 to 1 relationship with voucher system instance.',
73
95
  type: 'object',
@@ -199,7 +221,7 @@ const request = {
199
221
  }
200
222
 
201
223
  const response = {
202
- ...baseObject,
224
+ ...baseObject(),
203
225
  deleted: {
204
226
  type: 'boolean'
205
227
  },
@@ -70,6 +70,11 @@ module.exports = {
70
70
  }
71
71
  ]
72
72
  },
73
+ attributes_in_name: {
74
+ description: 'Defines whether a child product inherits attributes as part of the product name',
75
+ type: 'boolean',
76
+ default: true
77
+ },
73
78
  auto_product_number_enabled: { // should be deprecated
74
79
  description: 'If true, product id will be generated automatically',
75
80
  oneOf: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.89.0",
3
+ "version": "6.90.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",