@tillhub/schemas 6.240.1 → 6.242.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 +15 -0
- package/lib/v1/configurations/items/receipts.js +68 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [6.242.0](https://github.com/tillhub/schemas/compare/v6.241.0...v6.242.0) (2023-08-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **configurations:** receipts ([e897492](https://github.com/tillhub/schemas/commit/e897492))
|
|
7
|
+
|
|
8
|
+
# [6.241.0](https://github.com/tillhub/schemas/compare/v6.240.1...v6.241.0) (2023-08-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **configurations:** features ([e642ef1](https://github.com/tillhub/schemas/commit/e642ef1))
|
|
14
|
+
* **configurations:** receipts ([4be436d](https://github.com/tillhub/schemas/commit/4be436d))
|
|
15
|
+
|
|
1
16
|
## [6.240.1](https://github.com/tillhub/schemas/compare/v6.240.0...v6.240.1) (2023-08-03)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -187,6 +187,30 @@ const cartReceipt = {
|
|
|
187
187
|
type: 'boolean',
|
|
188
188
|
default: false
|
|
189
189
|
}),
|
|
190
|
+
external_rewards: oneOf({
|
|
191
|
+
description: 'Defines external rewards printing',
|
|
192
|
+
type: 'object',
|
|
193
|
+
additionalProperties: false,
|
|
194
|
+
properties: {
|
|
195
|
+
enabled: {
|
|
196
|
+
description: 'States if external rewards information will be printed',
|
|
197
|
+
type: 'boolean',
|
|
198
|
+
default: false // maybe true on 'customer'
|
|
199
|
+
},
|
|
200
|
+
coop: oneOf({
|
|
201
|
+
description: 'Defines external rewards printing for coop',
|
|
202
|
+
type: 'object',
|
|
203
|
+
additionalProperties: false,
|
|
204
|
+
properties: {
|
|
205
|
+
print_balances: oneOf({
|
|
206
|
+
description: 'Defines if previous and anticipated balances will be printed',
|
|
207
|
+
type: 'boolean',
|
|
208
|
+
default: false
|
|
209
|
+
})
|
|
210
|
+
}
|
|
211
|
+
})
|
|
212
|
+
}
|
|
213
|
+
}),
|
|
190
214
|
minimize_signing_footer: oneOf({
|
|
191
215
|
description: 'Defines if signing footer is printed without any spaces and line breaks',
|
|
192
216
|
type: 'boolean',
|
|
@@ -299,6 +323,45 @@ const balanceReceipt = {
|
|
|
299
323
|
}
|
|
300
324
|
}
|
|
301
325
|
|
|
326
|
+
const stockAdjustmentReceipt = {
|
|
327
|
+
type: 'object',
|
|
328
|
+
description: 'Defines receipt printing for stock adjustments',
|
|
329
|
+
additionalProperties: false,
|
|
330
|
+
properties: {
|
|
331
|
+
print_cashier_policy: oneOf({
|
|
332
|
+
description: 'Defines if and how the cashier will be printed on the receipt.',
|
|
333
|
+
type: 'string',
|
|
334
|
+
enum: [
|
|
335
|
+
'number',
|
|
336
|
+
'name', // legacy, will indicate full name printing
|
|
337
|
+
'none',
|
|
338
|
+
'first_name', // first name only
|
|
339
|
+
'last_name' // last name only
|
|
340
|
+
]
|
|
341
|
+
}),
|
|
342
|
+
print_product_description: oneOf({
|
|
343
|
+
description: 'Defines if the product description will be printed (e.g. just for the customer)',
|
|
344
|
+
type: 'boolean',
|
|
345
|
+
default: false
|
|
346
|
+
}),
|
|
347
|
+
print_product_group: oneOf({
|
|
348
|
+
description: 'Defines if the product group will be printed (e.g. just for the merchant)',
|
|
349
|
+
type: 'boolean',
|
|
350
|
+
default: false
|
|
351
|
+
}),
|
|
352
|
+
print_product_number: oneOf({
|
|
353
|
+
description: 'Defines if the product number (in case of options) will be printed (e.g. just for the merchant)',
|
|
354
|
+
type: 'boolean',
|
|
355
|
+
default: true
|
|
356
|
+
}),
|
|
357
|
+
print_product_name: oneOf({
|
|
358
|
+
description: 'Defines if the product name (in case of options) will be printed (e.g. just for the merchant)',
|
|
359
|
+
type: 'boolean',
|
|
360
|
+
default: true
|
|
361
|
+
})
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
302
365
|
const voucherReceipt = {
|
|
303
366
|
type: 'object',
|
|
304
367
|
description: 'Defines receipt printing for vouchers',
|
|
@@ -542,6 +605,11 @@ module.exports = oneOf({
|
|
|
542
605
|
type: 'object',
|
|
543
606
|
...balanceReceipt
|
|
544
607
|
},
|
|
608
|
+
stock_adjustment: {
|
|
609
|
+
description: 'Defines stock adjustment receipt printing',
|
|
610
|
+
type: 'object',
|
|
611
|
+
...stockAdjustmentReceipt
|
|
612
|
+
},
|
|
545
613
|
register_opening_protocol: {
|
|
546
614
|
description: 'Defines register opening protocol receipt printing',
|
|
547
615
|
type: 'object',
|