@tillhub/schemas 6.98.0 → 6.98.1
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,10 @@
|
|
|
1
|
+
## [6.98.1](https://github.com/tillhub/schemas/compare/v6.98.0...v6.98.1) (2021-10-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **configurations:** payback ([da10e00](https://github.com/tillhub/schemas/commit/da10e00))
|
|
7
|
+
|
|
1
8
|
# [6.98.0](https://github.com/tillhub/schemas/compare/v6.97.0...v6.98.0) (2021-10-06)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -49,6 +49,32 @@ module.exports = oneOf({
|
|
|
49
49
|
})
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
|
+
payback: oneOf({
|
|
53
|
+
description: 'Payback.de behavior configuration',
|
|
54
|
+
type: 'object',
|
|
55
|
+
additionalProperties: false,
|
|
56
|
+
properties: {
|
|
57
|
+
prompt: {
|
|
58
|
+
description: 'If true - show a prompt that asks the customer for a payback number',
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
number_format: {
|
|
63
|
+
description: 'The format of the customer payback number that is being validated against the input',
|
|
64
|
+
type: 'string',
|
|
65
|
+
format: 'regex',
|
|
66
|
+
example: '^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$',
|
|
67
|
+
default: '^[0-9]{10}$'
|
|
68
|
+
},
|
|
69
|
+
number_length_max: {
|
|
70
|
+
description: 'The maxiumum length of a customer payback number (as a helper for the UI)',
|
|
71
|
+
type: 'integer',
|
|
72
|
+
minimum: 2,
|
|
73
|
+
maximum: 99,
|
|
74
|
+
default: 10
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
52
78
|
split_receipt: oneOf({
|
|
53
79
|
description: 'Restaurant case: split bill between a group of guests',
|
|
54
80
|
type: 'object',
|
|
@@ -741,68 +741,7 @@ module.exports = {
|
|
|
741
741
|
'voucher_systems' // new system with a single product per system and all nested prefixes and actions
|
|
742
742
|
],
|
|
743
743
|
default: 'configurations' // starting from legacy
|
|
744
|
-
}
|
|
745
|
-
apollo: oneOf({
|
|
746
|
-
type: 'object',
|
|
747
|
-
additionalProperties: false,
|
|
748
|
-
properties: {
|
|
749
|
-
payback: oneOf({
|
|
750
|
-
description: 'Payback behavior configuration',
|
|
751
|
-
type: 'object',
|
|
752
|
-
additionalProperties: false,
|
|
753
|
-
properties: {
|
|
754
|
-
prompt: {
|
|
755
|
-
description: 'If true - show a prompt that asks the customer for a payback number',
|
|
756
|
-
type: 'boolean',
|
|
757
|
-
default: false
|
|
758
|
-
},
|
|
759
|
-
number_format: {
|
|
760
|
-
description: 'The format of the customer payback number that is being validated against the input',
|
|
761
|
-
type: 'string',
|
|
762
|
-
format: 'regex',
|
|
763
|
-
example: '^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$',
|
|
764
|
-
default: '^[0-9]{10}$'
|
|
765
|
-
},
|
|
766
|
-
number_length_max: {
|
|
767
|
-
description: 'The maxiumum length of a customer payback number (as a helper for the UI)',
|
|
768
|
-
type: 'integer',
|
|
769
|
-
minimum: 2,
|
|
770
|
-
maximum: 99,
|
|
771
|
-
default: 10
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
}),
|
|
775
|
-
custom_order_receipt: {
|
|
776
|
-
description: 'Temporary feature for the Apollo test phase',
|
|
777
|
-
type: 'object',
|
|
778
|
-
additionalProperties: false,
|
|
779
|
-
properties: {
|
|
780
|
-
enabled: {
|
|
781
|
-
type: 'boolean',
|
|
782
|
-
default: false
|
|
783
|
-
},
|
|
784
|
-
endpoint: {
|
|
785
|
-
type: 'string',
|
|
786
|
-
format: 'url',
|
|
787
|
-
example: 'https://arboreal-groove-198520.appspot.com/orders'
|
|
788
|
-
},
|
|
789
|
-
parameters: {
|
|
790
|
-
items: {
|
|
791
|
-
type: 'string',
|
|
792
|
-
example: 'branch',
|
|
793
|
-
enum: [
|
|
794
|
-
'branch'
|
|
795
|
-
]
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
token: {
|
|
799
|
-
type: 'string',
|
|
800
|
-
example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImluZm9AYXBvbGxvLmRlIiwiZXhwIjoxNjAwNTE4MzMwLCJpYXQiOjE1OTA1MTgzMzAsImlqdCI6IjY5Yzc1ZTBlLWM4MTMtNGFkMS1hMDU1LWJjZDYyODA4MTYyMSIsImlzcyI6ImV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOSIsIm5iZiI6MTU5MDUxODMzMCwidWlkIjoiNjljNzVlMGUtYzgxMy00YWQxLWEwNTUtYmNkNjI4MDgxNjIxIiwidXVpZCI6IjY5Yzc1ZTBlLWM4MTMtNGFkMS1hMDU1LWJjZDYyODA4MTYyMSJ9.3_WlUPW8mFza-VDne425EP40QeWmtkmh8Q7sjBu2W_4'
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
})
|
|
744
|
+
}
|
|
806
745
|
}
|
|
807
746
|
}
|
|
808
747
|
]
|