@tillhub/schemas 6.108.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,36 @@
|
|
|
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
|
+
|
|
8
|
+
# [6.111.0](https://github.com/tillhub/schemas/compare/v6.110.0...v6.111.0) (2022-01-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **discounts:** add branch_groups to discounts ([39cbd66](https://github.com/tillhub/schemas/commit/39cbd66))
|
|
14
|
+
|
|
15
|
+
# [6.110.0](https://github.com/tillhub/schemas/compare/v6.109.0...v6.110.0) (2022-01-04)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **abocard-systems:** add action name #API-1169 ([38e7d7f](https://github.com/tillhub/schemas/commit/38e7d7f)), closes [#API-1169](https://github.com/tillhub/schemas/issues/API-1169)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **carts:** customers ([07cf41e](https://github.com/tillhub/schemas/commit/07cf41e))
|
|
26
|
+
|
|
27
|
+
# [6.109.0](https://github.com/tillhub/schemas/compare/v6.108.0...v6.109.0) (2022-01-04)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **expense_accounts:** add branch_groups ([8c8cefc](https://github.com/tillhub/schemas/commit/8c8cefc))
|
|
33
|
+
|
|
1
34
|
# [6.108.0](https://github.com/tillhub/schemas/compare/v6.107.0...v6.108.0) (2021-12-22)
|
|
2
35
|
|
|
3
36
|
|
package/lib/v0/discounts/base.js
CHANGED
|
@@ -364,6 +364,20 @@ module.exports = {
|
|
|
364
364
|
}
|
|
365
365
|
]
|
|
366
366
|
},
|
|
367
|
+
branch_groups: {
|
|
368
|
+
oneOf: [
|
|
369
|
+
{
|
|
370
|
+
type: 'array',
|
|
371
|
+
items: {
|
|
372
|
+
type: 'string',
|
|
373
|
+
format: 'uuid'
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
type: 'null'
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
},
|
|
367
381
|
order: {
|
|
368
382
|
oneOf: [
|
|
369
383
|
{
|
|
@@ -83,6 +83,20 @@ module.exports = {
|
|
|
83
83
|
}
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
+
branch_groups: {
|
|
87
|
+
oneOf: [
|
|
88
|
+
{
|
|
89
|
+
type: 'array',
|
|
90
|
+
items: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
format: 'uuid'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: 'null'
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
86
100
|
accepts_booking_from_safe: {
|
|
87
101
|
type: 'boolean',
|
|
88
102
|
default: false
|
|
@@ -34,6 +34,11 @@ const abocardAction = {
|
|
|
34
34
|
'sell'
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
+
name: {
|
|
38
|
+
description: 'The abocard action name (usually the same as linked product)',
|
|
39
|
+
type: 'string',
|
|
40
|
+
example: 'Brainwashing'
|
|
41
|
+
},
|
|
37
42
|
product: {
|
|
38
43
|
description: 'The product associated with this action. Product gets created automatically when creating a abocard system and based on "linked_product" vat and "system_revenue_account" field values.',
|
|
39
44
|
...oneOf({
|
|
@@ -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
|
}
|