@fleetless/contracts 15.6.0-next.1 → 16.0.0-next.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.
@@ -966,11 +966,26 @@
966
966
  "properties": {
967
967
  "text_id": {
968
968
  "type": "string",
969
- "const": "DR-1374-draft-3-C.4"
969
+ "enum": [
970
+ "C4-1168-checkout",
971
+ "C4-1168-pay-and-switch",
972
+ "C4-1168-switch",
973
+ "C4-1168-schedule-switch",
974
+ "C4-1168-schedule-downgrade",
975
+ "C4-1168-cancel"
976
+ ],
977
+ "description": "The approved sentence this display shows, one per action."
970
978
  },
971
979
  "text": {
972
980
  "type": "string",
973
- "minLength": 1
981
+ "minLength": 1,
982
+ "pattern": "^By selecting “",
983
+ "description": "The consent sentence shown directly above the button, naming the button."
984
+ },
985
+ "action_label": {
986
+ "type": "string",
987
+ "minLength": 1,
988
+ "description": "The label of the one button that confirms this decision."
974
989
  },
975
990
  "terms": {
976
991
  "type": "object",
@@ -1030,10 +1045,127 @@
1030
1045
  "required": [
1031
1046
  "text_id",
1032
1047
  "text",
1048
+ "action_label",
1033
1049
  "terms",
1034
1050
  "dpa"
1035
1051
  ],
1036
- "additionalProperties": false
1052
+ "additionalProperties": false,
1053
+ "allOf": [
1054
+ {
1055
+ "if": {
1056
+ "properties": {
1057
+ "text_id": {
1058
+ "const": "C4-1168-checkout"
1059
+ }
1060
+ },
1061
+ "required": [
1062
+ "text_id"
1063
+ ]
1064
+ },
1065
+ "then": {
1066
+ "properties": {
1067
+ "action_label": {
1068
+ "pattern": "^Pay \\S.* with Mollie$"
1069
+ }
1070
+ }
1071
+ }
1072
+ },
1073
+ {
1074
+ "if": {
1075
+ "properties": {
1076
+ "text_id": {
1077
+ "const": "C4-1168-pay-and-switch"
1078
+ }
1079
+ },
1080
+ "required": [
1081
+ "text_id"
1082
+ ]
1083
+ },
1084
+ "then": {
1085
+ "properties": {
1086
+ "action_label": {
1087
+ "pattern": "^Pay \\S.* and switch$"
1088
+ }
1089
+ }
1090
+ }
1091
+ },
1092
+ {
1093
+ "if": {
1094
+ "properties": {
1095
+ "text_id": {
1096
+ "const": "C4-1168-switch"
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "text_id"
1101
+ ]
1102
+ },
1103
+ "then": {
1104
+ "properties": {
1105
+ "action_label": {
1106
+ "pattern": "^Switch to \\S.*$"
1107
+ }
1108
+ }
1109
+ }
1110
+ },
1111
+ {
1112
+ "if": {
1113
+ "properties": {
1114
+ "text_id": {
1115
+ "const": "C4-1168-schedule-switch"
1116
+ }
1117
+ },
1118
+ "required": [
1119
+ "text_id"
1120
+ ]
1121
+ },
1122
+ "then": {
1123
+ "properties": {
1124
+ "action_label": {
1125
+ "const": "Switch to monthly at period end"
1126
+ }
1127
+ }
1128
+ }
1129
+ },
1130
+ {
1131
+ "if": {
1132
+ "properties": {
1133
+ "text_id": {
1134
+ "const": "C4-1168-schedule-downgrade"
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "text_id"
1139
+ ]
1140
+ },
1141
+ "then": {
1142
+ "properties": {
1143
+ "action_label": {
1144
+ "pattern": "^Schedule downgrade to \\S.*$"
1145
+ }
1146
+ }
1147
+ }
1148
+ },
1149
+ {
1150
+ "if": {
1151
+ "properties": {
1152
+ "text_id": {
1153
+ "const": "C4-1168-cancel"
1154
+ }
1155
+ },
1156
+ "required": [
1157
+ "text_id"
1158
+ ]
1159
+ },
1160
+ "then": {
1161
+ "properties": {
1162
+ "action_label": {
1163
+ "const": "Cancel at period end"
1164
+ }
1165
+ }
1166
+ }
1167
+ }
1168
+ ]
1037
1169
  },
1038
1170
  "expires_at": {
1039
1171
  "type": "string",
@@ -2013,11 +2145,26 @@
2013
2145
  "properties": {
2014
2146
  "text_id": {
2015
2147
  "type": "string",
2016
- "const": "DR-1374-draft-3-C.4"
2148
+ "enum": [
2149
+ "C4-1168-checkout",
2150
+ "C4-1168-pay-and-switch",
2151
+ "C4-1168-switch",
2152
+ "C4-1168-schedule-switch",
2153
+ "C4-1168-schedule-downgrade",
2154
+ "C4-1168-cancel"
2155
+ ],
2156
+ "description": "The approved sentence this display shows, one per action."
2017
2157
  },
2018
2158
  "text": {
2019
2159
  "type": "string",
2020
- "minLength": 1
2160
+ "minLength": 1,
2161
+ "pattern": "^By selecting “",
2162
+ "description": "The consent sentence shown directly above the button, naming the button."
2163
+ },
2164
+ "action_label": {
2165
+ "type": "string",
2166
+ "minLength": 1,
2167
+ "description": "The label of the one button that confirms this decision."
2021
2168
  },
2022
2169
  "terms": {
2023
2170
  "type": "object",
@@ -2077,10 +2224,127 @@
2077
2224
  "required": [
2078
2225
  "text_id",
2079
2226
  "text",
2227
+ "action_label",
2080
2228
  "terms",
2081
2229
  "dpa"
2082
2230
  ],
2083
- "additionalProperties": false
2231
+ "additionalProperties": false,
2232
+ "allOf": [
2233
+ {
2234
+ "if": {
2235
+ "properties": {
2236
+ "text_id": {
2237
+ "const": "C4-1168-checkout"
2238
+ }
2239
+ },
2240
+ "required": [
2241
+ "text_id"
2242
+ ]
2243
+ },
2244
+ "then": {
2245
+ "properties": {
2246
+ "action_label": {
2247
+ "pattern": "^Pay \\S.* with Mollie$"
2248
+ }
2249
+ }
2250
+ }
2251
+ },
2252
+ {
2253
+ "if": {
2254
+ "properties": {
2255
+ "text_id": {
2256
+ "const": "C4-1168-pay-and-switch"
2257
+ }
2258
+ },
2259
+ "required": [
2260
+ "text_id"
2261
+ ]
2262
+ },
2263
+ "then": {
2264
+ "properties": {
2265
+ "action_label": {
2266
+ "pattern": "^Pay \\S.* and switch$"
2267
+ }
2268
+ }
2269
+ }
2270
+ },
2271
+ {
2272
+ "if": {
2273
+ "properties": {
2274
+ "text_id": {
2275
+ "const": "C4-1168-switch"
2276
+ }
2277
+ },
2278
+ "required": [
2279
+ "text_id"
2280
+ ]
2281
+ },
2282
+ "then": {
2283
+ "properties": {
2284
+ "action_label": {
2285
+ "pattern": "^Switch to \\S.*$"
2286
+ }
2287
+ }
2288
+ }
2289
+ },
2290
+ {
2291
+ "if": {
2292
+ "properties": {
2293
+ "text_id": {
2294
+ "const": "C4-1168-schedule-switch"
2295
+ }
2296
+ },
2297
+ "required": [
2298
+ "text_id"
2299
+ ]
2300
+ },
2301
+ "then": {
2302
+ "properties": {
2303
+ "action_label": {
2304
+ "const": "Switch to monthly at period end"
2305
+ }
2306
+ }
2307
+ }
2308
+ },
2309
+ {
2310
+ "if": {
2311
+ "properties": {
2312
+ "text_id": {
2313
+ "const": "C4-1168-schedule-downgrade"
2314
+ }
2315
+ },
2316
+ "required": [
2317
+ "text_id"
2318
+ ]
2319
+ },
2320
+ "then": {
2321
+ "properties": {
2322
+ "action_label": {
2323
+ "pattern": "^Schedule downgrade to \\S.*$"
2324
+ }
2325
+ }
2326
+ }
2327
+ },
2328
+ {
2329
+ "if": {
2330
+ "properties": {
2331
+ "text_id": {
2332
+ "const": "C4-1168-cancel"
2333
+ }
2334
+ },
2335
+ "required": [
2336
+ "text_id"
2337
+ ]
2338
+ },
2339
+ "then": {
2340
+ "properties": {
2341
+ "action_label": {
2342
+ "const": "Cancel at period end"
2343
+ }
2344
+ }
2345
+ }
2346
+ }
2347
+ ]
2084
2348
  },
2085
2349
  "expires_at": {
2086
2350
  "type": "string",
@@ -3060,11 +3324,26 @@
3060
3324
  "properties": {
3061
3325
  "text_id": {
3062
3326
  "type": "string",
3063
- "const": "DR-1374-draft-3-C.4"
3327
+ "enum": [
3328
+ "C4-1168-checkout",
3329
+ "C4-1168-pay-and-switch",
3330
+ "C4-1168-switch",
3331
+ "C4-1168-schedule-switch",
3332
+ "C4-1168-schedule-downgrade",
3333
+ "C4-1168-cancel"
3334
+ ],
3335
+ "description": "The approved sentence this display shows, one per action."
3064
3336
  },
3065
3337
  "text": {
3066
3338
  "type": "string",
3067
- "minLength": 1
3339
+ "minLength": 1,
3340
+ "pattern": "^By selecting “",
3341
+ "description": "The consent sentence shown directly above the button, naming the button."
3342
+ },
3343
+ "action_label": {
3344
+ "type": "string",
3345
+ "minLength": 1,
3346
+ "description": "The label of the one button that confirms this decision."
3068
3347
  },
3069
3348
  "terms": {
3070
3349
  "type": "object",
@@ -3124,10 +3403,127 @@
3124
3403
  "required": [
3125
3404
  "text_id",
3126
3405
  "text",
3406
+ "action_label",
3127
3407
  "terms",
3128
3408
  "dpa"
3129
3409
  ],
3130
- "additionalProperties": false
3410
+ "additionalProperties": false,
3411
+ "allOf": [
3412
+ {
3413
+ "if": {
3414
+ "properties": {
3415
+ "text_id": {
3416
+ "const": "C4-1168-checkout"
3417
+ }
3418
+ },
3419
+ "required": [
3420
+ "text_id"
3421
+ ]
3422
+ },
3423
+ "then": {
3424
+ "properties": {
3425
+ "action_label": {
3426
+ "pattern": "^Pay \\S.* with Mollie$"
3427
+ }
3428
+ }
3429
+ }
3430
+ },
3431
+ {
3432
+ "if": {
3433
+ "properties": {
3434
+ "text_id": {
3435
+ "const": "C4-1168-pay-and-switch"
3436
+ }
3437
+ },
3438
+ "required": [
3439
+ "text_id"
3440
+ ]
3441
+ },
3442
+ "then": {
3443
+ "properties": {
3444
+ "action_label": {
3445
+ "pattern": "^Pay \\S.* and switch$"
3446
+ }
3447
+ }
3448
+ }
3449
+ },
3450
+ {
3451
+ "if": {
3452
+ "properties": {
3453
+ "text_id": {
3454
+ "const": "C4-1168-switch"
3455
+ }
3456
+ },
3457
+ "required": [
3458
+ "text_id"
3459
+ ]
3460
+ },
3461
+ "then": {
3462
+ "properties": {
3463
+ "action_label": {
3464
+ "pattern": "^Switch to \\S.*$"
3465
+ }
3466
+ }
3467
+ }
3468
+ },
3469
+ {
3470
+ "if": {
3471
+ "properties": {
3472
+ "text_id": {
3473
+ "const": "C4-1168-schedule-switch"
3474
+ }
3475
+ },
3476
+ "required": [
3477
+ "text_id"
3478
+ ]
3479
+ },
3480
+ "then": {
3481
+ "properties": {
3482
+ "action_label": {
3483
+ "const": "Switch to monthly at period end"
3484
+ }
3485
+ }
3486
+ }
3487
+ },
3488
+ {
3489
+ "if": {
3490
+ "properties": {
3491
+ "text_id": {
3492
+ "const": "C4-1168-schedule-downgrade"
3493
+ }
3494
+ },
3495
+ "required": [
3496
+ "text_id"
3497
+ ]
3498
+ },
3499
+ "then": {
3500
+ "properties": {
3501
+ "action_label": {
3502
+ "pattern": "^Schedule downgrade to \\S.*$"
3503
+ }
3504
+ }
3505
+ }
3506
+ },
3507
+ {
3508
+ "if": {
3509
+ "properties": {
3510
+ "text_id": {
3511
+ "const": "C4-1168-cancel"
3512
+ }
3513
+ },
3514
+ "required": [
3515
+ "text_id"
3516
+ ]
3517
+ },
3518
+ "then": {
3519
+ "properties": {
3520
+ "action_label": {
3521
+ "const": "Cancel at period end"
3522
+ }
3523
+ }
3524
+ }
3525
+ }
3526
+ ]
3131
3527
  },
3132
3528
  "expires_at": {
3133
3529
  "type": "string",
@@ -19,6 +19,25 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ {
23
+ "type": "object",
24
+ "properties": {
25
+ "field": {
26
+ "type": "string",
27
+ "const": "confirmation_proof"
28
+ },
29
+ "rule": {
30
+ "type": "string",
31
+ "const": "display_stale"
32
+ }
33
+ },
34
+ "required": [
35
+ "field",
36
+ "rule"
37
+ ],
38
+ "additionalProperties": false,
39
+ "description": "The display was spent, expired or no longer matches: fetch a fresh one and press again."
40
+ },
22
41
  {
23
42
  "type": "object",
24
43
  "properties": {
@@ -236,10 +255,7 @@
236
255
  "legacy_usd_invoice",
237
256
  "legacy_payer_unresolved",
238
257
  "mandate_policy_unresolved",
239
- "lexware_contact_pending",
240
- "lexware_contact_changed",
241
- "issuer_cutover_in_progress",
242
- "lexware_issuance_paused"
258
+ "issuer_cutover_in_progress"
243
259
  ]
244
260
  },
245
261
  "original_amount": {
@@ -5,9 +5,6 @@
5
5
  "legacy_usd_invoice",
6
6
  "legacy_payer_unresolved",
7
7
  "mandate_policy_unresolved",
8
- "lexware_contact_pending",
9
- "lexware_contact_changed",
10
- "issuer_cutover_in_progress",
11
- "lexware_issuance_paused"
8
+ "issuer_cutover_in_progress"
12
9
  ]
13
10
  }
@@ -200,10 +200,7 @@
200
200
  "legacy_usd_invoice",
201
201
  "legacy_payer_unresolved",
202
202
  "mandate_policy_unresolved",
203
- "lexware_contact_pending",
204
- "lexware_contact_changed",
205
- "issuer_cutover_in_progress",
206
- "lexware_issuance_paused"
203
+ "issuer_cutover_in_progress"
207
204
  ]
208
205
  },
209
206
  "original_amount": {
@@ -202,10 +202,7 @@
202
202
  "legacy_usd_invoice",
203
203
  "legacy_payer_unresolved",
204
204
  "mandate_policy_unresolved",
205
- "lexware_contact_pending",
206
- "lexware_contact_changed",
207
- "issuer_cutover_in_progress",
208
- "lexware_issuance_paused"
205
+ "issuer_cutover_in_progress"
209
206
  ]
210
207
  },
211
208
  "original_amount": {
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "field": {
6
+ "type": "string",
7
+ "const": "billing.vat_id"
8
+ },
9
+ "rule": {
10
+ "type": "string",
11
+ "const": "vies_unavailable"
12
+ },
13
+ "reason": {
14
+ "type": "string",
15
+ "enum": [
16
+ "vies_unavailable",
17
+ "vies_unverified",
18
+ "vies_identifier_missing"
19
+ ]
20
+ }
21
+ },
22
+ "required": [
23
+ "field",
24
+ "rule",
25
+ "reason"
26
+ ],
27
+ "additionalProperties": false
28
+ }