@tillhub/schemas 6.87.0 → 6.89.2

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,33 @@
1
+ ## [6.89.2](https://github.com/tillhub/schemas/compare/v6.89.1...v6.89.2) (2021-09-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **loyalty_systems:** promote base object for base response for abocrds system #API-1017 ([5a8e7e4](https://github.com/tillhub/schemas/commit/5a8e7e4)), closes [#API-1017](https://github.com/tillhub/schemas/issues/API-1017)
7
+
8
+ ## [6.89.1](https://github.com/tillhub/schemas/compare/v6.89.0...v6.89.1) (2021-09-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * hijacked configuration param properly described ([c21090c](https://github.com/tillhub/schemas/commit/c21090c))
14
+
15
+ # [6.89.0](https://github.com/tillhub/schemas/compare/v6.88.0...v6.89.0) (2021-09-21)
16
+
17
+
18
+ ### Features
19
+
20
+ * **fiscal signing:** add base_url ([90d2f67](https://github.com/tillhub/schemas/commit/90d2f67))
21
+ * **fiscal_signing:** add api version ([b1dc80f](https://github.com/tillhub/schemas/commit/b1dc80f))
22
+
23
+ # [6.88.0](https://github.com/tillhub/schemas/compare/v6.87.1...v6.88.0) (2021-09-21)
24
+
25
+
26
+ ### Features
27
+
28
+ * **configurations:** interfaces ([5c55f6f](https://github.com/tillhub/schemas/commit/5c55f6f))
29
+ * **configurations:** interfaces ([b94687c](https://github.com/tillhub/schemas/commit/b94687c))
30
+
1
31
  # [6.87.0](https://github.com/tillhub/schemas/compare/v6.86.0...v6.87.0) (2021-09-17)
2
32
 
3
33
 
@@ -365,11 +365,10 @@ module.exports = {
365
365
  ]
366
366
  },
367
367
  configuration: {
368
- description: 'The reference to a configuration for branch level configurations. This should be omitted by implementers.',
368
+ description: 'Deprecated: Overwriting a fa_account_number on cash payments for DATEV export.',
369
369
  anyOf: [
370
370
  {
371
- type: 'string',
372
- format: 'uuid'
371
+ type: 'string'
373
372
  },
374
373
  {
375
374
  type: 'null'
@@ -34,7 +34,7 @@ const abocardAction = {
34
34
  ]
35
35
  },
36
36
  product: {
37
- description: 'The product associated with this action. Product creates automatically along with abocard system and based on "linked_product" and "system_revenue_account" field values.',
37
+ description: 'The product associated with this action. Product gets created automatically when creating a abocard system and based on "linked_product" vat and "system_revenue_account" field values.',
38
38
  ...oneOf({
39
39
  type: 'string',
40
40
  format: 'uuid',
@@ -64,7 +64,7 @@ const request = {
64
64
  },
65
65
  name: oneOf({
66
66
  description: 'The abocard system name',
67
- example: 'Buy 3 haircuts and get next 1 for free',
67
+ example: 'Buy 4 haircuts and pay 10 Bucks less.',
68
68
  type: 'string',
69
69
  maxLength: 255
70
70
  }),
@@ -94,7 +94,7 @@ const request = {
94
94
  })
95
95
  },
96
96
  linked_product: oneOf({
97
- description: 'Product linked to abocard system. New products (abocards) being created for "actions[...].product" and "voucher_system.product" based on this value (VAT ID reference is most important part).',
97
+ description: 'The Product that is linked to the abocard, if the abocard system requires a bound product. On creation of the system, a new products (abocard XYZ) is being created for "actions[...].product" and "voucher_system.product" based on this product. The VAT ID reference is propogating system_tax_account, as systems with product binding are creating single purpose vouchers that are tax relevant.',
98
98
  example: '3610eb8a-2d21-4034-9aa6-0a097a2ce5f2',
99
99
  type: 'string',
100
100
  format: 'uuid'
@@ -118,14 +118,14 @@ const request = {
118
118
  format: 'uuid'
119
119
  }),
120
120
  used_product_price: oneOf({
121
- description: 'The price of the product being used',
121
+ description: 'For type=voucher abocard systems: The price of the product used to calculate the value of discounts and vouchers.',
122
122
  example: 12.99,
123
123
  type: 'number',
124
124
  minimum: 0,
125
125
  multipleOf: 0.01
126
126
  }),
127
127
  price_source: oneOf({
128
- description: 'The source of which product price was taken.',
128
+ description: 'The source of where the product price was taken from.',
129
129
  type: 'string',
130
130
  enum: [
131
131
  'product',
@@ -133,46 +133,46 @@ const request = {
133
133
  ]
134
134
  }),
135
135
  price_id: oneOf({
136
- description: 'The price reference inside the price source. For JSONB fields use path.',
136
+ description: 'The price reference of the price source. In case of price book entries, a uuid, in case of default price, the path of the JSONB fields.',
137
137
  example: 'default_prices[0]',
138
138
  type: 'string',
139
139
  maxLength: 255
140
140
  }),
141
141
  selling_price: oneOf({
142
- description: 'The selling price of the abocard',
142
+ description: 'The selling price of the abocard for the POS.',
143
143
  example: 11.99,
144
144
  type: 'number',
145
145
  minimum: 0,
146
146
  multipleOf: 0.01
147
147
  }),
148
148
  discount_value: oneOf({
149
- description: 'The discount value',
149
+ description: 'For type=voucher abocard systems: The total discount value assigned to the abocard',
150
150
  example: 2.00,
151
151
  type: 'number',
152
152
  minimum: 0,
153
153
  multipleOf: 0.01
154
154
  }),
155
155
  total_value: oneOf({
156
- description: 'The total amount value',
156
+ description: 'For type=voucher abocard systems: The total value of the abocard (selling price plus discount)',
157
157
  example: 9.99,
158
158
  type: 'number',
159
159
  minimum: 0,
160
160
  multipleOf: 0.01
161
161
  }),
162
162
  units: oneOf({
163
- description: 'The amount of vouchers that we issue on creation of the abocard.',
163
+ description: 'For type=voucher abocard systems: The amount of vouchers that we issue on creation of the abocard',
164
164
  type: 'number',
165
165
  minimum: 0
166
166
  }),
167
167
  voucher_value_per_unit: oneOf({
168
- description: 'The voucher value per unit (when system_type == "voucher")',
168
+ description: 'For type=voucher abocard systems: The voucher value per unit (when system_type == "voucher")',
169
169
  example: 3,
170
170
  type: 'number',
171
171
  minimum: 0,
172
172
  multipleOf: 0.01
173
173
  }),
174
174
  discount_value_per_unit: oneOf({
175
- description: 'The discount value per unit',
175
+ description: 'For type=voucher abocard systems: The discount value per unit',
176
176
  example: 1.33,
177
177
  type: 'number',
178
178
  minimum: 0,
@@ -199,7 +199,7 @@ const request = {
199
199
  }
200
200
 
201
201
  const response = {
202
- ...baseObject,
202
+ ...baseObject(),
203
203
  deleted: {
204
204
  type: 'boolean'
205
205
  },
@@ -235,7 +235,14 @@ module.exports = {
235
235
  locations: oneOf({
236
236
  type: 'array',
237
237
  description: 'If defined then only these locations will be using this system. If not defined, there will be no restrictions on which locations can use this system.',
238
- minItems: 1,
238
+ items: {
239
+ type: 'string',
240
+ format: 'uuid'
241
+ }
242
+ }),
243
+ branch_groups: oneOf({
244
+ type: 'array',
245
+ description: 'If defined then only these branch groups (plus specified locations if any) will be using this system.',
239
246
  items: {
240
247
  type: 'string',
241
248
  format: 'uuid'
@@ -110,7 +110,12 @@ module.exports = {
110
110
  enabled: {
111
111
  type: 'boolean',
112
112
  default: true
113
- }
113
+ },
114
+ swiss: oneOf({
115
+ description: 'Defines if swiss-specific handling of the OPI protocol will be used',
116
+ type: 'boolean',
117
+ default: false
118
+ })
114
119
  }
115
120
  },
116
121
  sumup: {
@@ -220,6 +220,25 @@ module.exports = {
220
220
  description: 'Per fiskaly account: secret for their API',
221
221
  example: 'QmSgQtMNfm0uZjVedM1BvqGRIQ3D9wjclLYDZcXPZve'
222
222
  },
223
+ api_version: {
224
+ ...oneOf({
225
+ description: 'Fiskaly account API version',
226
+ type: 'string',
227
+ enum: [
228
+ 'v1',
229
+ 'v2'
230
+ ],
231
+ default: 'v1'
232
+ })
233
+ },
234
+ base_url: {
235
+ ...oneOf({
236
+ type: 'string',
237
+ description: 'A custom Fiskaly API endpoint. If not set, the POS will use the version specific default endpoint.',
238
+ example: 'https://kassensichv-middleware.fiskaly.com/api/v2/',
239
+ default: null
240
+ })
241
+ },
223
242
  client_timeout_ms: oneOf({
224
243
  type: 'integer',
225
244
  description: 'The timeout in milliseconds for the Fiskaly client component.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.87.0",
3
+ "version": "6.89.2",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",