@tillhub/schemas 6.278.0 → 6.279.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,22 @@
1
+ # [6.279.0](https://github.com/tillhub/schemas/compare/v6.278.1...v6.279.0) (2024-01-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **functions:** decimal quantity fix ([dfab14d](https://github.com/tillhub/schemas/commit/dfab14d))
7
+
8
+
9
+ ### Features
10
+
11
+ * **configurations:** payments ([0b52e3f](https://github.com/tillhub/schemas/commit/0b52e3f))
12
+
13
+ ## [6.278.1](https://github.com/tillhub/schemas/compare/v6.278.0...v6.278.1) (2023-12-20)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **config:** fix value for default data format ([4a53467](https://github.com/tillhub/schemas/commit/4a53467))
19
+
1
20
  # [6.278.0](https://github.com/tillhub/schemas/compare/v6.277.1...v6.278.0) (2023-12-20)
2
21
 
3
22
 
@@ -28,7 +28,7 @@ const instantCheckoutPayload = {
28
28
  example: '100',
29
29
  minimum: -32767,
30
30
  maximum: 32767,
31
- multipleOf: 0.001
31
+ multipleOf: 0.0001
32
32
  }
33
33
  }
34
34
  }
@@ -18,7 +18,7 @@ module.exports = {
18
18
  default: 'never'
19
19
  }),
20
20
  blacklisted_payment_types: oneOf({
21
- description: 'Hides the payment options that match the blacklisted type from payment screen',
21
+ description: 'Hides the payment options that match the blacklisted types from payment screen',
22
22
  type: 'array',
23
23
  items: {
24
24
  type: 'string',
@@ -31,6 +31,14 @@ module.exports = {
31
31
  ]
32
32
  }
33
33
  }),
34
+ blacklisted_payment_options: oneOf({
35
+ description: 'Hides the payment options that match the blacklisted uuids from payment screen',
36
+ type: 'array',
37
+ items: {
38
+ type: 'string',
39
+ format: 'uuid'
40
+ }
41
+ }),
34
42
  allow_refund_split: oneOf({
35
43
  description: 'If true, allows multiple payments on negative cart totals, e.g. undefined + cash (e.g. health insurance case).',
36
44
  default: false,
@@ -174,7 +174,7 @@ module.exports = {
174
174
  'MMMM d, yyyy', // January 7, 2017
175
175
  'MM/dd/yyyy', // 01/07/2017
176
176
  'dd/MM/yyyy', // 07/01/2017
177
- 'yyyy/mm/dd' // 2017/01/07
177
+ 'yyyy/MM/dd' // 2017/01/07
178
178
  ]
179
179
  },
180
180
  {
@@ -298,7 +298,8 @@ module.exports = {
298
298
  {
299
299
  type: 'integer',
300
300
  minimum: 1,
301
- maximum: 1000
301
+ maximum: 1000,
302
+ default: 100
302
303
  },
303
304
  {
304
305
  type: 'null'
@@ -306,6 +307,9 @@ module.exports = {
306
307
  ]
307
308
  },
308
309
  active: {
310
+ // not yet supported on POS, always on
311
+ description: 'If true, products will be downloaded to the POS',
312
+ default: true,
309
313
  type: 'boolean'
310
314
  }
311
315
  }
@@ -320,7 +324,8 @@ module.exports = {
320
324
  {
321
325
  type: 'integer',
322
326
  minimum: 1,
323
- maximum: 1000
327
+ maximum: 1000,
328
+ default: 200
324
329
  },
325
330
  {
326
331
  type: 'null'
@@ -328,6 +333,9 @@ module.exports = {
328
333
  ]
329
334
  },
330
335
  active: {
336
+ // supported on POS, FALSE for e.g. KHG, TRUE by default
337
+ description: 'If true, products will be downloaded to the POS',
338
+ default: true,
331
339
  type: 'boolean'
332
340
  }
333
341
  }
@@ -342,7 +350,8 @@ module.exports = {
342
350
  {
343
351
  type: 'integer',
344
352
  minimum: 1,
345
- maximum: 1000
353
+ maximum: 1000,
354
+ default: 250
346
355
  },
347
356
  {
348
357
  type: 'null'
@@ -350,6 +359,9 @@ module.exports = {
350
359
  ]
351
360
  },
352
361
  active: {
362
+ // not yet supported on POS, always TRUE
363
+ description: 'If true, staffs will be downloaded to the POS',
364
+ default: true,
353
365
  type: 'boolean'
354
366
  }
355
367
  }
@@ -362,9 +374,11 @@ module.exports = {
362
374
  description: 'Initial page size for syncing with GET all calls. In-app default is 500. Set this if you run into timeouts.',
363
375
  oneOf: [
364
376
  {
377
+ // not yet supported on POS
365
378
  type: 'integer',
366
379
  minimum: 1,
367
- maximum: 500
380
+ maximum: 500,
381
+ default: 500
368
382
  },
369
383
  {
370
384
  type: 'null'
@@ -372,6 +386,8 @@ module.exports = {
372
386
  ]
373
387
  },
374
388
  active: {
389
+ // not yet supported on POS, always TRUE
390
+ description: 'If true, favourites will be downloaded to the POS',
375
391
  default: true,
376
392
  type: 'boolean'
377
393
  },
@@ -409,7 +425,8 @@ module.exports = {
409
425
  {
410
426
  type: 'integer',
411
427
  minimum: 1,
412
- maximum: 1000
428
+ maximum: 1000,
429
+ default: 100
413
430
  },
414
431
  {
415
432
  type: 'null'
@@ -417,6 +434,9 @@ module.exports = {
417
434
  ]
418
435
  },
419
436
  active: {
437
+ // not yet supported on POS, always TRUE
438
+ description: 'If true, transactions will be downloaded to the POS',
439
+ default: true,
420
440
  type: 'boolean'
421
441
  }
422
442
  }
@@ -450,7 +470,8 @@ module.exports = {
450
470
  {
451
471
  type: 'integer',
452
472
  minimum: 1,
453
- maximum: 1000
473
+ maximum: 1000,
474
+ default: 50 // can be quite big and slow down parsers
454
475
  },
455
476
  {
456
477
  type: 'null'
@@ -458,6 +479,9 @@ module.exports = {
458
479
  ]
459
480
  },
460
481
  active: {
482
+ // not yet supported on POS, always TRUE
483
+ description: 'If true, balances will be downloaded to the POS',
484
+ default: true,
461
485
  type: 'boolean'
462
486
  }
463
487
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.278.0",
3
+ "version": "6.279.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",