@tillhub/schemas 6.413.0 → 6.415.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,17 @@
1
+ # [6.415.0](https://github.com/tillhub/schemas/compare/v6.414.0...v6.415.0) (2025-12-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **UNTIL-17787:** branch selection schema ([#1101](https://github.com/tillhub/schemas/issues/1101)) ([1a458e5](https://github.com/tillhub/schemas/commit/1a458e5))
7
+
8
+ # [6.414.0](https://github.com/tillhub/schemas/compare/v6.413.0...v6.414.0) (2025-11-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * **payment_options:** types ([58e97fd](https://github.com/tillhub/schemas/commit/58e97fd))
14
+
1
15
  # [6.413.0](https://github.com/tillhub/schemas/compare/v6.412.0...v6.413.0) (2025-11-25)
2
16
 
3
17
 
@@ -22,7 +22,9 @@ module.exports = {
22
22
  'undefined',
23
23
  'voucher',
24
24
  'sumup',
25
- 'buy_now_pay_later' // Unzer: Buy-Now-Pay-Later
25
+ 'buy_now_pay_later', // Unzer: Buy-Now-Pay-Later
26
+ 'unzer_installment', // Unzer: TH LinkPay installments
27
+ 'unzer_invoice' // Unzer: TH LinkPay invoice
26
28
  ]
27
29
  },
28
30
  metadata: {
@@ -0,0 +1,37 @@
1
+ const { all } = require('../../v0/branches/read')
2
+
3
+ // MMS-specific properties for v1 branches
4
+ const mmsProperties = {
5
+ mms_id: {
6
+ description: 'Id from mms branch',
7
+ example: '0e3da0e5-be16-4085-964d-19655070b714',
8
+ type: 'string'
9
+ },
10
+ mms_state: {
11
+ description: 'State from mms branch',
12
+ example: 'ACTIVE',
13
+ type: 'string'
14
+ },
15
+ mms_type: {
16
+ description: 'Type from mms branch',
17
+ example: 'POS_BRANCH',
18
+ type: 'string'
19
+ },
20
+ mms_unit_unzer_id: {
21
+ description: 'Unit unzer id from mms branch',
22
+ example: 'UZ4453975',
23
+ type: 'string'
24
+ }
25
+ }
26
+
27
+ // Create result items with MMS properties
28
+ const resultItems = {
29
+ ...all.response.properties.results.items,
30
+ properties: {
31
+ ...all.response.properties.results.items.properties,
32
+ ...mmsProperties
33
+ }
34
+ }
35
+
36
+ module.exports.mmsProperties = mmsProperties
37
+ module.exports.resultItems = resultItems
@@ -1 +1,2 @@
1
1
  module.exports.read = require('./read')
2
+ module.exports.selection = require('./selection')
@@ -1,5 +1,6 @@
1
1
  const commonResponse = require('../../common/response')
2
2
  const { all } = require('../../v0/branches/read')
3
+ const { resultItems } = require('./base')
3
4
 
4
5
  module.exports.all = {
5
6
  query: {
@@ -18,35 +19,9 @@ module.exports.all = {
18
19
  $id: 'https://schemas.tillhub.com/v1/branches.read.all.query.schema.json'
19
20
  },
20
21
  response: {
21
- ...all.response,
22
- properties: {
23
- ...all.response.properties,
24
- ...{
25
- mms_id: {
26
- description: 'Id from mms branch',
27
- example: '0e3da0e5-be16-4085-964d-19655070b714',
28
- type: 'string'
29
- },
30
- mms_state: {
31
- description: 'State from mms branch',
32
- example: '10785',
33
- type: 'ACTIVE'
34
- },
35
- mms_type: {
36
- description: 'Type from mms branch',
37
- example: 'POS_BRANCH',
38
- type: 'string'
39
- },
40
- mms_unit_unzer_id: {
41
- description: 'Unit unzer id from mms branch',
42
- example: 'UZ4453975',
43
- type: 'string'
44
- }
45
- }
46
- },
47
22
  $id: 'https://schemas.tillhub.com/v1/branches.read.all.response.schema.json',
48
23
  ...commonResponse({
49
- resultItems: all.response.properties.results.items
24
+ resultItems
50
25
  }, { hasCursor: true })
51
26
  }
52
27
  }
@@ -0,0 +1,33 @@
1
+ const commonResponse = require('../../common/response')
2
+ const { resultItems } = require('./base')
3
+
4
+ module.exports = {
5
+ request: {
6
+ $id: 'https://schemas.tillhub.com/v1/branches.selection.request.schema.json',
7
+ $schema: 'http://json-schema.org/draft-07/schema#',
8
+ additionalProperties: false,
9
+ type: 'object',
10
+ required: ['branch_ids'],
11
+ properties: {
12
+ branch_ids: {
13
+ type: 'array',
14
+ minItems: 0,
15
+ maxItems: 200,
16
+ items: {
17
+ description: 'Branch UUID',
18
+ type: 'string',
19
+ format: 'uuid',
20
+ example: '936835f7-2d75-41d2-9001-38ed6e458328'
21
+ }
22
+ }
23
+ }
24
+ },
25
+ response: {
26
+ $id: 'https://schemas.tillhub.com/v1/branches.selection.response.schema.json',
27
+ $schema: 'http://json-schema.org/draft-07/schema#',
28
+ additionalProperties: false,
29
+ ...commonResponse({
30
+ resultItems
31
+ })
32
+ }
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.413.0",
3
+ "version": "6.415.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",