@tillhub/schemas 6.418.0 → 6.419.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.419.0](https://github.com/tillhub/schemas/compare/v6.418.1...v6.419.0) (2026-02-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * **UNTIL-18651:** Add payment options report module and schema ([#1108](https://github.com/tillhub/schemas/issues/1108)) ([6b2ac7e](https://github.com/tillhub/schemas/commit/6b2ac7e))
7
+
8
+ ## [6.418.1](https://github.com/tillhub/schemas/compare/v6.418.0...v6.418.1) (2026-01-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **registers:** increase allowed length for registers' name ([#1107](https://github.com/tillhub/schemas/issues/1107)) ([2a38e60](https://github.com/tillhub/schemas/commit/2a38e60))
14
+
1
15
  # [6.418.0](https://github.com/tillhub/schemas/compare/v6.417.0...v6.418.0) (2026-01-15)
2
16
 
3
17
 
@@ -1,3 +1,4 @@
1
1
  module.exports = {
2
- products: require('./products')
2
+ products: require('./products'),
3
+ payment_options: require('./payment_options')
3
4
  }
@@ -0,0 +1,51 @@
1
+ module.exports.request = {
2
+ $id: 'https://schemas.tillhub.com/v0/analytics.reports.payment_options.export.request.schema.json',
3
+ $schema: 'http://json-schema.org/draft-07/schema#',
4
+ type: 'object',
5
+ // Keep this permissive: Tillhub API report queries include many filters.
6
+ // Validation here is focused on export-pipeline metadata.
7
+ additionalProperties: true,
8
+ required: ['format', 'documentType', 'email'],
9
+ properties: {
10
+ // timeframe (payment_options uses start/end)
11
+ start: { type: 'string', format: 'date-time' },
12
+ end: { type: 'string', format: 'date-time' },
13
+
14
+ // aliases used by other reports (optional)
15
+ date_start: { type: 'string', format: 'date-time' },
16
+ date_end: { type: 'string', format: 'date-time' },
17
+
18
+ // report/query filters (optional but validated when present)
19
+ cursor_field: { type: 'string' },
20
+ branch_number: {
21
+ anyOf: [
22
+ { type: 'string', minLength: 1, maxLength: 64 },
23
+ { type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
24
+ ]
25
+ },
26
+ branch_group: {
27
+ anyOf: [
28
+ { type: 'string', minLength: 1, maxLength: 64 },
29
+ { type: 'array', items: { type: 'string', minLength: 1, maxLength: 64 } }
30
+ ]
31
+ },
32
+ context_locations: { type: 'string', minLength: 1, maxLength: 64 },
33
+ payment_option_type_name: { type: 'string', minLength: 1, maxLength: 64 },
34
+ legacy: { enum: ['true', 'false', true, false] },
35
+ report_v2: { enum: ['true', 'false', true, false] },
36
+
37
+ // export pipeline metadata
38
+ format: { type: 'string', enum: ['csv', 'xls'] },
39
+ delimiter: { type: 'string', enum: ['comma', 'semicolon'] },
40
+ enclosure: { type: 'string', enum: ['single', 'double'] },
41
+ show_column_name: { type: 'string', enum: ['true', 'false'] },
42
+ column_selection: { type: 'array', items: { type: 'string' } },
43
+
44
+ documentType: { type: 'string', enum: ['PaymentOptionsExport'] },
45
+ email: { type: 'string', minLength: 5 },
46
+ lang: { type: 'string' },
47
+ scheduled_id: { type: 'string', minLength: 1, maxLength: 64 },
48
+ existingId: { type: 'string', format: 'uuid' },
49
+ correlationId: { type: 'string', format: 'uuid' }
50
+ }
51
+ }
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ export: require('./export')
3
+ }
@@ -96,7 +96,7 @@ module.exports = {
96
96
  transactions: oneOf({
97
97
  description: 'Specifies if Orderpro should fetch transactions to potentially process cancellations and refunds',
98
98
  type: 'boolean',
99
- default: false
99
+ default: true
100
100
  })
101
101
  }
102
102
  })
@@ -9,7 +9,7 @@ module.exports = {
9
9
  anyOf: [
10
10
  {
11
11
  type: 'string',
12
- maxLength: 32,
12
+ maxLength: 256,
13
13
  minLength: 1
14
14
  },
15
15
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.418.0",
3
+ "version": "6.419.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",