@tillhub/schemas 6.149.0 → 6.151.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.151.1](https://github.com/tillhub/schemas/compare/v6.151.0...v6.151.1) (2022-08-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **configurations:** transactions ([de90a47](https://github.com/tillhub/schemas/commit/de90a47))
|
|
7
|
+
|
|
8
|
+
# [6.151.0](https://github.com/tillhub/schemas/compare/v6.150.0...v6.151.0) (2022-08-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **interfaces:** add epsonFpIt (Epson Fiscal Printer - Italy) ([2014457](https://github.com/tillhub/schemas/commit/2014457))
|
|
14
|
+
* **staff:** Add Staff filter to Staff report ([#717](https://github.com/tillhub/schemas/issues/717)) ([63bf4b8](https://github.com/tillhub/schemas/commit/63bf4b8))
|
|
15
|
+
|
|
16
|
+
# [6.150.0](https://github.com/tillhub/schemas/compare/v6.149.0...v6.150.0) (2022-07-26)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **register:** add example for unit ([ca3a118](https://github.com/tillhub/schemas/commit/ca3a118))
|
|
22
|
+
* **register:** add example for unit ([57e5f77](https://github.com/tillhub/schemas/commit/57e5f77))
|
|
23
|
+
* **register:** add ip address ([34faae2](https://github.com/tillhub/schemas/commit/34faae2))
|
|
24
|
+
* **register:** added Italian fiscal config ([c6a73a7](https://github.com/tillhub/schemas/commit/c6a73a7))
|
|
25
|
+
* **register:** added Italian fiscal config ([dc8347b](https://github.com/tillhub/schemas/commit/dc8347b))
|
|
26
|
+
* **register:** added unit to configuration ([b8459f3](https://github.com/tillhub/schemas/commit/b8459f3))
|
|
27
|
+
* **register:** fix description for epson fiscal printer ([f78a52a](https://github.com/tillhub/schemas/commit/f78a52a))
|
|
28
|
+
|
|
1
29
|
# [6.149.0](https://github.com/tillhub/schemas/compare/v6.148.0...v6.149.0) (2022-07-13)
|
|
2
30
|
|
|
3
31
|
|
|
@@ -3,22 +3,22 @@ const { oneOf } = require('../../../helpers/payload-or-null')
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
properties: {
|
|
6
|
-
cross_register_refunding: {
|
|
6
|
+
cross_register_refunding: oneOf({
|
|
7
7
|
description: 'Allows refunding transactions from different registers in the same branch',
|
|
8
8
|
type: 'boolean',
|
|
9
9
|
default: false
|
|
10
|
-
},
|
|
11
|
-
cross_branch_refunding: {
|
|
10
|
+
}),
|
|
11
|
+
cross_branch_refunding: oneOf({
|
|
12
12
|
description: 'Allows refunding transactions from different branches',
|
|
13
13
|
type: 'boolean',
|
|
14
14
|
default: false
|
|
15
|
-
},
|
|
15
|
+
}),
|
|
16
16
|
refund_reason_required: oneOf({
|
|
17
17
|
type: 'boolean',
|
|
18
18
|
description: 'Defines if reasons are mandatory for refunding items from a previous transaction',
|
|
19
19
|
default: true
|
|
20
20
|
}),
|
|
21
|
-
signing: {
|
|
21
|
+
signing: oneOf({
|
|
22
22
|
type: 'object',
|
|
23
23
|
description: 'Decides if and how transactions will be fiscally signed and where the specific configuration can be found',
|
|
24
24
|
properties: {
|
|
@@ -29,7 +29,8 @@ module.exports = {
|
|
|
29
29
|
'fiskaltrust',
|
|
30
30
|
'tse_fiskaly',
|
|
31
31
|
'tse_epson',
|
|
32
|
-
'fr_NF525'
|
|
32
|
+
'fr_NF525',
|
|
33
|
+
'it_epson'
|
|
33
34
|
]
|
|
34
35
|
},
|
|
35
36
|
resource_type: {
|
|
@@ -41,11 +42,11 @@ module.exports = {
|
|
|
41
42
|
]
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
|
-
},
|
|
45
|
-
history: {
|
|
45
|
+
}),
|
|
46
|
+
history: oneOf({
|
|
46
47
|
type: 'object',
|
|
47
48
|
properties: {
|
|
48
|
-
range: {
|
|
49
|
+
range: oneOf({
|
|
49
50
|
description: 'Transactions created before (Now() - Range) are not guaranteed to be kept on the client (e.g. older ones will be deleted).',
|
|
50
51
|
type: 'object',
|
|
51
52
|
properties: {
|
|
@@ -69,15 +70,15 @@ module.exports = {
|
|
|
69
70
|
default: 2
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
-
max_count: {
|
|
73
|
+
}),
|
|
74
|
+
max_count: oneOf({
|
|
74
75
|
description: 'Maximum number of transactions that are kept on the client.',
|
|
75
76
|
type: 'integer',
|
|
76
77
|
minimum: 1,
|
|
77
78
|
maximum: 75000,
|
|
78
79
|
default: 20000
|
|
79
|
-
}
|
|
80
|
+
})
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
+
})
|
|
82
83
|
}
|
|
83
84
|
}
|
package/lib/v1/registers/base.js
CHANGED
|
@@ -177,7 +177,8 @@ module.exports = {
|
|
|
177
177
|
'fiskaltrust',
|
|
178
178
|
'tse_fiskaly',
|
|
179
179
|
'tse_epson',
|
|
180
|
-
'fr_NF525'
|
|
180
|
+
'fr_NF525',
|
|
181
|
+
'it_epson'
|
|
181
182
|
]
|
|
182
183
|
})
|
|
183
184
|
},
|
|
@@ -314,6 +315,26 @@ module.exports = {
|
|
|
314
315
|
}
|
|
315
316
|
}
|
|
316
317
|
},
|
|
318
|
+
{
|
|
319
|
+
type: 'object',
|
|
320
|
+
description: 'Configuration object for Italy: Epson Fiscal Printer',
|
|
321
|
+
properties: {
|
|
322
|
+
unit: {
|
|
323
|
+
...oneOf({
|
|
324
|
+
type: 'string',
|
|
325
|
+
description: 'Eleven character ID of the signing unit (Epson.serialNumber) - should be updated after client is initialized',
|
|
326
|
+
example: '99IEB03890'
|
|
327
|
+
})
|
|
328
|
+
},
|
|
329
|
+
target: {
|
|
330
|
+
...oneOf({
|
|
331
|
+
type: 'string',
|
|
332
|
+
description: 'IP address of the signing unit - should be updated after client is initialized',
|
|
333
|
+
example: '192.168.0.211'
|
|
334
|
+
})
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
},
|
|
317
338
|
{
|
|
318
339
|
type: 'null'
|
|
319
340
|
}
|