@tillhub/schemas 6.273.0 → 6.275.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,23 @@
1
+ # [6.275.0](https://github.com/tillhub/schemas/compare/v6.274.0...v6.275.0) (2023-11-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * **reports:** add reports configuration ([#897](https://github.com/tillhub/schemas/issues/897)) ([8495caf](https://github.com/tillhub/schemas/commit/8495caf))
7
+
8
+ # [6.274.0](https://github.com/tillhub/schemas/compare/v6.273.0...v6.274.0) (2023-11-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **eslint:** fix test ([#898](https://github.com/tillhub/schemas/issues/898)) ([216e8d2](https://github.com/tillhub/schemas/commit/216e8d2))
14
+
15
+
16
+ ### Features
17
+
18
+ * **fiskaly:** add branch signing_configuration ([944375b](https://github.com/tillhub/schemas/commit/944375b))
19
+ * **paymentOptions:** add buy now pay later option ([093487f](https://github.com/tillhub/schemas/commit/093487f))
20
+
1
21
  # [6.273.0](https://github.com/tillhub/schemas/compare/v6.272.0...v6.273.0) (2023-11-02)
2
22
 
3
23
 
@@ -403,9 +403,27 @@ module.exports = {
403
403
  description: 'Any allowed singing system provider as type, currently only Austria has per-branch licensing.',
404
404
  type: 'string',
405
405
  enum: [
406
- 'fiskaltrust'
406
+ 'fiskaltrust',
407
+ 'at_fiskaly'
407
408
  ]
409
+ },
410
+ auth: {
411
+ description: 'Keeping auth data for the branch, in this case just for at_fiskaly',
412
+ type: 'object',
413
+ properties: {
414
+ key: {
415
+ type: 'string'
416
+ },
417
+ secret: {
418
+ type: 'string'
419
+ }
420
+ }
421
+ },
422
+ resource: {
423
+ description: 'In case of at_fiskaly its organization_id',
424
+ type: 'string'
408
425
  }
426
+
409
427
  }
410
428
  },
411
429
  {
@@ -21,7 +21,8 @@ module.exports = {
21
21
  'default',
22
22
  'undefined',
23
23
  'voucher',
24
- 'sumup'
24
+ 'sumup',
25
+ 'buy_now_pay_later' // Unzer: Buy-Now-Pay-Later
25
26
  ]
26
27
  },
27
28
  metadata: {
@@ -754,6 +754,62 @@ module.exports = {
754
754
  }
755
755
  })
756
756
  }
757
+ }),
758
+ reports: oneOf({
759
+ type: 'object',
760
+ patternProperties: {
761
+ '^[a-zA-Z0-9_]+$': {
762
+ type: 'object',
763
+ properties: {
764
+ delimiter: oneOf({
765
+ type: 'string',
766
+ description: 'The delimiter used in the CSV file',
767
+ enum: ['comma', 'semicolon']
768
+ }),
769
+ format: oneOf({
770
+ type: 'string',
771
+ description: 'The format of the Report file',
772
+ enum: ['csv', 'excel']
773
+ }),
774
+ enclosure: oneOf({
775
+ type: 'string',
776
+ description: 'The enclosure used in the CSV file',
777
+ enum: ['single', 'double']
778
+ }),
779
+ show_summary: oneOf({
780
+ type: 'boolean'
781
+ }),
782
+ show_column_name: oneOf({
783
+ description: 'The header of the report',
784
+ type: 'boolean'
785
+ }),
786
+ date_range: oneOf({
787
+ type: 'string'
788
+ }),
789
+ filter: oneOf({
790
+ type: 'object'
791
+ }),
792
+ is_recurring: oneOf({
793
+ type: 'boolean'
794
+ }),
795
+ recurring_cycle: oneOf({
796
+ type: 'string',
797
+ description: 'The recurring cycle of the report',
798
+ enum: ['weekly', 'daily', 'monthly']
799
+ }),
800
+ recurring_on: oneOf({
801
+ type: 'number',
802
+ description: 'The recurring day of the report'
803
+ }),
804
+ column_selection: oneOf({
805
+ type: 'string',
806
+ description: 'The column selection of the report',
807
+ enum: ['current_view', 'all']
808
+ })
809
+ },
810
+ required: ['delimiter', 'format', 'enclosure', 'show_summary', 'show_column_name', 'date_range', 'filter', 'is_recurring', 'recurring_cycle', 'recurring_on', 'column_selection']
811
+ }
812
+ }
757
813
  })
758
814
  }
759
815
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.273.0",
3
+ "version": "6.275.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",