@tillhub/schemas 6.90.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,10 @@
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
+
1
8
  # [6.90.0](https://github.com/tillhub/schemas/compare/v6.89.2...v6.90.0) (2021-09-22)
2
9
 
3
10
 
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.90.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",