@tillhub/schemas 6.151.1 → 6.152.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.152.0](https://github.com/tillhub/schemas/compare/v6.151.1...v6.152.0) (2022-08-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * **configurations:** transactions ([26f486c](https://github.com/tillhub/schemas/commit/26f486c))
7
+
1
8
  ## [6.151.1](https://github.com/tillhub/schemas/compare/v6.151.0...v6.151.1) (2022-08-03)
2
9
 
3
10
 
@@ -3,6 +3,21 @@ const { oneOf } = require('../../../helpers/payload-or-null')
3
3
  module.exports = {
4
4
  type: 'object',
5
5
  properties: {
6
+ barcode: oneOf({
7
+ type: 'object',
8
+ description: 'Defines specific bahviors for barcode usage and generation, e.g. for BSH',
9
+ properties: {
10
+ source: oneOf({
11
+ description: 'Defines how the transaction barcode field will be set - this will get printed at the bottom of a receipt.',
12
+ type: 'string',
13
+ enum: [
14
+ 'generate', // default Tillhub style, e.g. RTEA33D915 - which supports also API lookup
15
+ 'external_reference_id' // any external ID comimng from e.g. carts or manual entry, BSH: 1111728444 or even UUIDs - API lookup not guaranteed, printing for UUIDs not possible
16
+ ],
17
+ default: 'generate' // -> BSH needs to be specifically set to get their current behavior
18
+ })
19
+ }
20
+ }),
6
21
  cross_register_refunding: oneOf({
7
22
  description: 'Allows refunding transactions from different registers in the same branch',
8
23
  type: 'boolean',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.151.1",
3
+ "version": "6.152.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",