@tillhub/schemas 6.111.0 → 6.112.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.112.0](https://github.com/tillhub/schemas/compare/v6.111.0...v6.112.0) (2022-01-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * **voucher_systems:** Add support for validity_period ([#660](https://github.com/tillhub/schemas/issues/660)) ([9ffdee4](https://github.com/tillhub/schemas/commit/9ffdee4))
7
+
1
8
  # [6.111.0](https://github.com/tillhub/schemas/compare/v6.110.0...v6.111.0) (2022-01-06)
2
9
 
3
10
 
@@ -261,5 +261,29 @@ module.exports = {
261
261
  type: 'string',
262
262
  format: 'date-time'
263
263
  })
264
+ },
265
+ validity_period: {
266
+ default: null,
267
+ ...oneOf({
268
+ description: 'A user defined timeframe (e.g. 3 years) that is used to determine the next expires_at value after a charge (top-up).',
269
+ type: 'object',
270
+ properties: {
271
+ unit: {
272
+ description: 'Unit of the validity period.',
273
+ type: 'string',
274
+ enum: [
275
+ 'days',
276
+ 'weeks',
277
+ 'months',
278
+ 'years'
279
+ ]
280
+ },
281
+ value: {
282
+ description: 'The value of the validity period, defines a timeframe together with the set unit.',
283
+ type: 'integer',
284
+ minimum: 1
285
+ }
286
+ }
287
+ })
264
288
  }
265
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.111.0",
3
+ "version": "6.112.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",