@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.
@@ -0,0 +1,4081 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "intent_id": {
8
+ "type": "string",
9
+ "format": "uuid",
10
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
11
+ "description": "The persisted checkout intent; confirm it with `POST /api/billing/intents/:id/confirm`."
12
+ },
13
+ "operation_key": {
14
+ "type": "string",
15
+ "format": "uuid",
16
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
17
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
18
+ },
19
+ "operation": {
20
+ "type": "string",
21
+ "const": "checkout"
22
+ },
23
+ "state": {
24
+ "type": "string",
25
+ "const": "eligible"
26
+ },
27
+ "quote_revision": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 200,
31
+ "description": "Opaque revision of the displayed quote; echo it when confirming."
32
+ },
33
+ "buyer_fingerprint": {
34
+ "type": "string",
35
+ "minLength": 1,
36
+ "maxLength": 200,
37
+ "description": "Opaque revision of buyer details and email policy; never full VIES evidence."
38
+ },
39
+ "quote": {
40
+ "type": "object",
41
+ "properties": {
42
+ "currency": {
43
+ "type": "string",
44
+ "const": "eur",
45
+ "description": "Every new quote is in EUR."
46
+ },
47
+ "net_cents": {
48
+ "type": "integer",
49
+ "minimum": 0,
50
+ "maximum": 9007199254740991,
51
+ "description": "Current charge excluding VAT, in cents."
52
+ },
53
+ "vat_cents": {
54
+ "type": "integer",
55
+ "minimum": 0,
56
+ "maximum": 9007199254740991,
57
+ "description": "VAT on the current charge, in cents."
58
+ },
59
+ "gross_cents": {
60
+ "type": "integer",
61
+ "minimum": 0,
62
+ "maximum": 9007199254740991,
63
+ "description": "Total to confirm, including VAT, in cents."
64
+ },
65
+ "rate_percent": {
66
+ "type": "integer",
67
+ "minimum": 0,
68
+ "maximum": 100,
69
+ "description": "VAT rate in whole percent."
70
+ }
71
+ },
72
+ "required": [
73
+ "currency",
74
+ "net_cents",
75
+ "vat_cents",
76
+ "gross_cents",
77
+ "rate_percent"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "display": {
82
+ "type": "object",
83
+ "properties": {
84
+ "confirmation_proof": {
85
+ "type": "string",
86
+ "pattern": "^[A-Za-z0-9_-]{43}$",
87
+ "description": "Opaque 32-byte Cloud proof, unpadded base64url. Syntax alone is not evidence."
88
+ },
89
+ "expires_at": {
90
+ "type": "string",
91
+ "allOf": [
92
+ {
93
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
94
+ },
95
+ {
96
+ "pattern": "Z$"
97
+ }
98
+ ]
99
+ },
100
+ "snapshot": {
101
+ "oneOf": [
102
+ {
103
+ "type": "object",
104
+ "properties": {
105
+ "snapshot_id": {
106
+ "type": "string",
107
+ "format": "uuid",
108
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
109
+ },
110
+ "decision_id": {
111
+ "type": "string",
112
+ "format": "uuid",
113
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
114
+ },
115
+ "operation_key": {
116
+ "type": "string",
117
+ "format": "uuid",
118
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
119
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
120
+ },
121
+ "owner_id": {
122
+ "type": "string",
123
+ "format": "uuid",
124
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
125
+ },
126
+ "organization_id": {
127
+ "type": "string",
128
+ "format": "uuid",
129
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
130
+ },
131
+ "organization_name": {
132
+ "type": "string",
133
+ "minLength": 1
134
+ },
135
+ "quote_revision": {
136
+ "type": "string",
137
+ "minLength": 1,
138
+ "maxLength": 200,
139
+ "description": "Opaque revision of the displayed quote; echo it when confirming."
140
+ },
141
+ "buyer_fingerprint": {
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "maxLength": 200,
145
+ "description": "Opaque revision of buyer details and email policy; never full VIES evidence."
146
+ },
147
+ "amounts": {
148
+ "type": "object",
149
+ "properties": {
150
+ "currency": {
151
+ "type": "string",
152
+ "const": "eur"
153
+ },
154
+ "quote": {
155
+ "type": "object",
156
+ "properties": {
157
+ "currency": {
158
+ "type": "string",
159
+ "const": "eur",
160
+ "description": "Every new quote is in EUR."
161
+ },
162
+ "net_cents": {
163
+ "type": "integer",
164
+ "minimum": 0,
165
+ "maximum": 9007199254740991,
166
+ "description": "Current charge excluding VAT, in cents."
167
+ },
168
+ "vat_cents": {
169
+ "type": "integer",
170
+ "minimum": 0,
171
+ "maximum": 9007199254740991,
172
+ "description": "VAT on the current charge, in cents."
173
+ },
174
+ "gross_cents": {
175
+ "type": "integer",
176
+ "minimum": 0,
177
+ "maximum": 9007199254740991,
178
+ "description": "Total to confirm, including VAT, in cents."
179
+ },
180
+ "rate_percent": {
181
+ "type": "integer",
182
+ "minimum": 0,
183
+ "maximum": 100,
184
+ "description": "VAT rate in whole percent."
185
+ }
186
+ },
187
+ "required": [
188
+ "currency",
189
+ "net_cents",
190
+ "vat_cents",
191
+ "gross_cents",
192
+ "rate_percent"
193
+ ],
194
+ "additionalProperties": false
195
+ },
196
+ "plan_net_cents": {
197
+ "type": "integer",
198
+ "minimum": 0,
199
+ "maximum": 9007199254740991
200
+ },
201
+ "addon_lines": {
202
+ "type": "array",
203
+ "items": {
204
+ "type": "object",
205
+ "properties": {
206
+ "addon": {
207
+ "type": "string",
208
+ "enum": [
209
+ "seats",
210
+ "robots",
211
+ "apps",
212
+ "app_user_packs",
213
+ "live_video_packs"
214
+ ]
215
+ },
216
+ "quantity": {
217
+ "type": "integer",
218
+ "exclusiveMinimum": 0,
219
+ "maximum": 9007199254740991
220
+ },
221
+ "net_cents": {
222
+ "type": "integer",
223
+ "minimum": 0,
224
+ "maximum": 9007199254740991
225
+ }
226
+ },
227
+ "required": [
228
+ "addon",
229
+ "quantity",
230
+ "net_cents"
231
+ ],
232
+ "additionalProperties": false
233
+ }
234
+ },
235
+ "period_net_cents": {
236
+ "type": "integer",
237
+ "minimum": 0,
238
+ "maximum": 9007199254740991
239
+ },
240
+ "period_vat_cents": {
241
+ "type": "integer",
242
+ "minimum": 0,
243
+ "maximum": 9007199254740991
244
+ },
245
+ "period_gross_cents": {
246
+ "type": "integer",
247
+ "minimum": 0,
248
+ "maximum": 9007199254740991
249
+ },
250
+ "vat_treatment": {
251
+ "type": "string",
252
+ "enum": [
253
+ "de_standard",
254
+ "reverse_charge",
255
+ "outside_eu"
256
+ ]
257
+ },
258
+ "vat_treatment_line": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ },
262
+ "due_today_gross_cents": {
263
+ "type": "integer",
264
+ "minimum": 0,
265
+ "maximum": 9007199254740991
266
+ },
267
+ "prorated_net_cents": {
268
+ "anyOf": [
269
+ {
270
+ "type": "integer",
271
+ "minimum": 0,
272
+ "maximum": 9007199254740991
273
+ },
274
+ {
275
+ "type": "null"
276
+ }
277
+ ]
278
+ },
279
+ "renewal_net_cents": {
280
+ "type": "integer",
281
+ "minimum": 0,
282
+ "maximum": 9007199254740991
283
+ }
284
+ },
285
+ "required": [
286
+ "currency",
287
+ "quote",
288
+ "plan_net_cents",
289
+ "addon_lines",
290
+ "period_net_cents",
291
+ "period_vat_cents",
292
+ "period_gross_cents",
293
+ "vat_treatment",
294
+ "vat_treatment_line",
295
+ "due_today_gross_cents",
296
+ "prorated_net_cents",
297
+ "renewal_net_cents"
298
+ ],
299
+ "additionalProperties": false,
300
+ "allOf": [
301
+ {
302
+ "if": {
303
+ "properties": {
304
+ "vat_treatment": {
305
+ "const": "de_standard"
306
+ }
307
+ },
308
+ "required": [
309
+ "vat_treatment"
310
+ ]
311
+ },
312
+ "then": {
313
+ "properties": {
314
+ "quote": {
315
+ "properties": {
316
+ "rate_percent": {
317
+ "const": 19
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ },
324
+ {
325
+ "if": {
326
+ "properties": {
327
+ "vat_treatment": {
328
+ "const": "reverse_charge"
329
+ }
330
+ },
331
+ "required": [
332
+ "vat_treatment"
333
+ ]
334
+ },
335
+ "then": {
336
+ "properties": {
337
+ "quote": {
338
+ "properties": {
339
+ "rate_percent": {
340
+ "const": 0
341
+ },
342
+ "vat_cents": {
343
+ "const": 0
344
+ }
345
+ }
346
+ },
347
+ "period_vat_cents": {
348
+ "const": 0
349
+ },
350
+ "vat_treatment_line": {
351
+ "const": "Reverse charge — VAT payable by the recipient"
352
+ }
353
+ }
354
+ }
355
+ },
356
+ {
357
+ "if": {
358
+ "properties": {
359
+ "vat_treatment": {
360
+ "const": "outside_eu"
361
+ }
362
+ },
363
+ "required": [
364
+ "vat_treatment"
365
+ ]
366
+ },
367
+ "then": {
368
+ "properties": {
369
+ "quote": {
370
+ "properties": {
371
+ "rate_percent": {
372
+ "const": 0
373
+ },
374
+ "vat_cents": {
375
+ "const": 0
376
+ }
377
+ }
378
+ },
379
+ "period_vat_cents": {
380
+ "const": 0
381
+ },
382
+ "vat_treatment_line": {
383
+ "const": "Not taxable in Germany"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ ]
389
+ },
390
+ "period": {
391
+ "anyOf": [
392
+ {
393
+ "type": "object",
394
+ "properties": {
395
+ "anchor": {
396
+ "type": "string",
397
+ "const": "existing_period"
398
+ },
399
+ "display_time_zone": {
400
+ "type": "string",
401
+ "enum": [
402
+ "UTC",
403
+ "Etc/UTC",
404
+ "Etc/GMT",
405
+ "Africa/Abidjan",
406
+ "Africa/Accra",
407
+ "Africa/Addis_Ababa",
408
+ "Africa/Algiers",
409
+ "Africa/Asmera",
410
+ "Africa/Bamako",
411
+ "Africa/Bangui",
412
+ "Africa/Banjul",
413
+ "Africa/Bissau",
414
+ "Africa/Blantyre",
415
+ "Africa/Brazzaville",
416
+ "Africa/Bujumbura",
417
+ "Africa/Cairo",
418
+ "Africa/Casablanca",
419
+ "Africa/Ceuta",
420
+ "Africa/Conakry",
421
+ "Africa/Dakar",
422
+ "Africa/Dar_es_Salaam",
423
+ "Africa/Djibouti",
424
+ "Africa/Douala",
425
+ "Africa/El_Aaiun",
426
+ "Africa/Freetown",
427
+ "Africa/Gaborone",
428
+ "Africa/Harare",
429
+ "Africa/Johannesburg",
430
+ "Africa/Juba",
431
+ "Africa/Kampala",
432
+ "Africa/Khartoum",
433
+ "Africa/Kigali",
434
+ "Africa/Kinshasa",
435
+ "Africa/Lagos",
436
+ "Africa/Libreville",
437
+ "Africa/Lome",
438
+ "Africa/Luanda",
439
+ "Africa/Lubumbashi",
440
+ "Africa/Lusaka",
441
+ "Africa/Malabo",
442
+ "Africa/Maputo",
443
+ "Africa/Maseru",
444
+ "Africa/Mbabane",
445
+ "Africa/Mogadishu",
446
+ "Africa/Monrovia",
447
+ "Africa/Nairobi",
448
+ "Africa/Ndjamena",
449
+ "Africa/Niamey",
450
+ "Africa/Nouakchott",
451
+ "Africa/Ouagadougou",
452
+ "Africa/Porto-Novo",
453
+ "Africa/Sao_Tome",
454
+ "Africa/Tripoli",
455
+ "Africa/Tunis",
456
+ "Africa/Windhoek",
457
+ "America/Adak",
458
+ "America/Anchorage",
459
+ "America/Anguilla",
460
+ "America/Antigua",
461
+ "America/Araguaina",
462
+ "America/Argentina/La_Rioja",
463
+ "America/Argentina/Rio_Gallegos",
464
+ "America/Argentina/Salta",
465
+ "America/Argentina/San_Juan",
466
+ "America/Argentina/San_Luis",
467
+ "America/Argentina/Tucuman",
468
+ "America/Argentina/Ushuaia",
469
+ "America/Aruba",
470
+ "America/Asuncion",
471
+ "America/Bahia",
472
+ "America/Bahia_Banderas",
473
+ "America/Barbados",
474
+ "America/Belem",
475
+ "America/Belize",
476
+ "America/Blanc-Sablon",
477
+ "America/Boa_Vista",
478
+ "America/Bogota",
479
+ "America/Boise",
480
+ "America/Buenos_Aires",
481
+ "America/Cambridge_Bay",
482
+ "America/Campo_Grande",
483
+ "America/Cancun",
484
+ "America/Caracas",
485
+ "America/Catamarca",
486
+ "America/Cayenne",
487
+ "America/Cayman",
488
+ "America/Chicago",
489
+ "America/Chihuahua",
490
+ "America/Ciudad_Juarez",
491
+ "America/Coral_Harbour",
492
+ "America/Cordoba",
493
+ "America/Costa_Rica",
494
+ "America/Coyhaique",
495
+ "America/Creston",
496
+ "America/Cuiaba",
497
+ "America/Curacao",
498
+ "America/Danmarkshavn",
499
+ "America/Dawson",
500
+ "America/Dawson_Creek",
501
+ "America/Denver",
502
+ "America/Detroit",
503
+ "America/Dominica",
504
+ "America/Edmonton",
505
+ "America/Eirunepe",
506
+ "America/El_Salvador",
507
+ "America/Fort_Nelson",
508
+ "America/Fortaleza",
509
+ "America/Glace_Bay",
510
+ "America/Godthab",
511
+ "America/Goose_Bay",
512
+ "America/Grand_Turk",
513
+ "America/Grenada",
514
+ "America/Guadeloupe",
515
+ "America/Guatemala",
516
+ "America/Guayaquil",
517
+ "America/Guyana",
518
+ "America/Halifax",
519
+ "America/Havana",
520
+ "America/Hermosillo",
521
+ "America/Indiana/Knox",
522
+ "America/Indiana/Marengo",
523
+ "America/Indiana/Petersburg",
524
+ "America/Indiana/Tell_City",
525
+ "America/Indiana/Vevay",
526
+ "America/Indiana/Vincennes",
527
+ "America/Indiana/Winamac",
528
+ "America/Indianapolis",
529
+ "America/Inuvik",
530
+ "America/Iqaluit",
531
+ "America/Jamaica",
532
+ "America/Jujuy",
533
+ "America/Juneau",
534
+ "America/Kentucky/Monticello",
535
+ "America/Kralendijk",
536
+ "America/La_Paz",
537
+ "America/Lima",
538
+ "America/Los_Angeles",
539
+ "America/Louisville",
540
+ "America/Lower_Princes",
541
+ "America/Maceio",
542
+ "America/Managua",
543
+ "America/Manaus",
544
+ "America/Marigot",
545
+ "America/Martinique",
546
+ "America/Matamoros",
547
+ "America/Mazatlan",
548
+ "America/Mendoza",
549
+ "America/Menominee",
550
+ "America/Merida",
551
+ "America/Metlakatla",
552
+ "America/Mexico_City",
553
+ "America/Miquelon",
554
+ "America/Moncton",
555
+ "America/Monterrey",
556
+ "America/Montevideo",
557
+ "America/Montserrat",
558
+ "America/Nassau",
559
+ "America/New_York",
560
+ "America/Nome",
561
+ "America/Noronha",
562
+ "America/North_Dakota/Beulah",
563
+ "America/North_Dakota/Center",
564
+ "America/North_Dakota/New_Salem",
565
+ "America/Ojinaga",
566
+ "America/Panama",
567
+ "America/Paramaribo",
568
+ "America/Phoenix",
569
+ "America/Port-au-Prince",
570
+ "America/Port_of_Spain",
571
+ "America/Porto_Velho",
572
+ "America/Puerto_Rico",
573
+ "America/Punta_Arenas",
574
+ "America/Rankin_Inlet",
575
+ "America/Recife",
576
+ "America/Regina",
577
+ "America/Resolute",
578
+ "America/Rio_Branco",
579
+ "America/Santarem",
580
+ "America/Santiago",
581
+ "America/Santo_Domingo",
582
+ "America/Sao_Paulo",
583
+ "America/Scoresbysund",
584
+ "America/Sitka",
585
+ "America/St_Barthelemy",
586
+ "America/St_Johns",
587
+ "America/St_Kitts",
588
+ "America/St_Lucia",
589
+ "America/St_Thomas",
590
+ "America/St_Vincent",
591
+ "America/Swift_Current",
592
+ "America/Tegucigalpa",
593
+ "America/Thule",
594
+ "America/Tijuana",
595
+ "America/Toronto",
596
+ "America/Tortola",
597
+ "America/Vancouver",
598
+ "America/Whitehorse",
599
+ "America/Winnipeg",
600
+ "America/Yakutat",
601
+ "Antarctica/Casey",
602
+ "Antarctica/Davis",
603
+ "Antarctica/DumontDUrville",
604
+ "Antarctica/Macquarie",
605
+ "Antarctica/Mawson",
606
+ "Antarctica/McMurdo",
607
+ "Antarctica/Palmer",
608
+ "Antarctica/Rothera",
609
+ "Antarctica/Syowa",
610
+ "Antarctica/Troll",
611
+ "Antarctica/Vostok",
612
+ "Arctic/Longyearbyen",
613
+ "Asia/Aden",
614
+ "Asia/Almaty",
615
+ "Asia/Amman",
616
+ "Asia/Anadyr",
617
+ "Asia/Aqtau",
618
+ "Asia/Aqtobe",
619
+ "Asia/Ashgabat",
620
+ "Asia/Atyrau",
621
+ "Asia/Baghdad",
622
+ "Asia/Bahrain",
623
+ "Asia/Baku",
624
+ "Asia/Bangkok",
625
+ "Asia/Barnaul",
626
+ "Asia/Beirut",
627
+ "Asia/Bishkek",
628
+ "Asia/Brunei",
629
+ "Asia/Calcutta",
630
+ "Asia/Chita",
631
+ "Asia/Colombo",
632
+ "Asia/Damascus",
633
+ "Asia/Dhaka",
634
+ "Asia/Dili",
635
+ "Asia/Dubai",
636
+ "Asia/Dushanbe",
637
+ "Asia/Famagusta",
638
+ "Asia/Gaza",
639
+ "Asia/Hebron",
640
+ "Asia/Hong_Kong",
641
+ "Asia/Hovd",
642
+ "Asia/Irkutsk",
643
+ "Asia/Jakarta",
644
+ "Asia/Jayapura",
645
+ "Asia/Jerusalem",
646
+ "Asia/Kabul",
647
+ "Asia/Kamchatka",
648
+ "Asia/Karachi",
649
+ "Asia/Katmandu",
650
+ "Asia/Khandyga",
651
+ "Asia/Krasnoyarsk",
652
+ "Asia/Kuala_Lumpur",
653
+ "Asia/Kuching",
654
+ "Asia/Kuwait",
655
+ "Asia/Macau",
656
+ "Asia/Magadan",
657
+ "Asia/Makassar",
658
+ "Asia/Manila",
659
+ "Asia/Muscat",
660
+ "Asia/Nicosia",
661
+ "Asia/Novokuznetsk",
662
+ "Asia/Novosibirsk",
663
+ "Asia/Omsk",
664
+ "Asia/Oral",
665
+ "Asia/Phnom_Penh",
666
+ "Asia/Pontianak",
667
+ "Asia/Pyongyang",
668
+ "Asia/Qatar",
669
+ "Asia/Qostanay",
670
+ "Asia/Qyzylorda",
671
+ "Asia/Rangoon",
672
+ "Asia/Riyadh",
673
+ "Asia/Saigon",
674
+ "Asia/Sakhalin",
675
+ "Asia/Samarkand",
676
+ "Asia/Seoul",
677
+ "Asia/Shanghai",
678
+ "Asia/Singapore",
679
+ "Asia/Srednekolymsk",
680
+ "Asia/Taipei",
681
+ "Asia/Tashkent",
682
+ "Asia/Tbilisi",
683
+ "Asia/Tehran",
684
+ "Asia/Thimphu",
685
+ "Asia/Tokyo",
686
+ "Asia/Tomsk",
687
+ "Asia/Ulaanbaatar",
688
+ "Asia/Urumqi",
689
+ "Asia/Ust-Nera",
690
+ "Asia/Vientiane",
691
+ "Asia/Vladivostok",
692
+ "Asia/Yakutsk",
693
+ "Asia/Yekaterinburg",
694
+ "Asia/Yerevan",
695
+ "Atlantic/Azores",
696
+ "Atlantic/Bermuda",
697
+ "Atlantic/Canary",
698
+ "Atlantic/Cape_Verde",
699
+ "Atlantic/Faeroe",
700
+ "Atlantic/Madeira",
701
+ "Atlantic/Reykjavik",
702
+ "Atlantic/South_Georgia",
703
+ "Atlantic/St_Helena",
704
+ "Atlantic/Stanley",
705
+ "Australia/Adelaide",
706
+ "Australia/Brisbane",
707
+ "Australia/Broken_Hill",
708
+ "Australia/Darwin",
709
+ "Australia/Eucla",
710
+ "Australia/Hobart",
711
+ "Australia/Lindeman",
712
+ "Australia/Lord_Howe",
713
+ "Australia/Melbourne",
714
+ "Australia/Perth",
715
+ "Australia/Sydney",
716
+ "Europe/Amsterdam",
717
+ "Europe/Andorra",
718
+ "Europe/Astrakhan",
719
+ "Europe/Athens",
720
+ "Europe/Belgrade",
721
+ "Europe/Berlin",
722
+ "Europe/Bratislava",
723
+ "Europe/Brussels",
724
+ "Europe/Bucharest",
725
+ "Europe/Budapest",
726
+ "Europe/Busingen",
727
+ "Europe/Chisinau",
728
+ "Europe/Copenhagen",
729
+ "Europe/Dublin",
730
+ "Europe/Gibraltar",
731
+ "Europe/Guernsey",
732
+ "Europe/Helsinki",
733
+ "Europe/Isle_of_Man",
734
+ "Europe/Istanbul",
735
+ "Europe/Jersey",
736
+ "Europe/Kaliningrad",
737
+ "Europe/Kiev",
738
+ "Europe/Kirov",
739
+ "Europe/Lisbon",
740
+ "Europe/Ljubljana",
741
+ "Europe/London",
742
+ "Europe/Luxembourg",
743
+ "Europe/Madrid",
744
+ "Europe/Malta",
745
+ "Europe/Mariehamn",
746
+ "Europe/Minsk",
747
+ "Europe/Monaco",
748
+ "Europe/Moscow",
749
+ "Europe/Oslo",
750
+ "Europe/Paris",
751
+ "Europe/Podgorica",
752
+ "Europe/Prague",
753
+ "Europe/Riga",
754
+ "Europe/Rome",
755
+ "Europe/Samara",
756
+ "Europe/San_Marino",
757
+ "Europe/Sarajevo",
758
+ "Europe/Saratov",
759
+ "Europe/Simferopol",
760
+ "Europe/Skopje",
761
+ "Europe/Sofia",
762
+ "Europe/Stockholm",
763
+ "Europe/Tallinn",
764
+ "Europe/Tirane",
765
+ "Europe/Ulyanovsk",
766
+ "Europe/Vaduz",
767
+ "Europe/Vatican",
768
+ "Europe/Vienna",
769
+ "Europe/Vilnius",
770
+ "Europe/Volgograd",
771
+ "Europe/Warsaw",
772
+ "Europe/Zagreb",
773
+ "Europe/Zurich",
774
+ "Indian/Antananarivo",
775
+ "Indian/Chagos",
776
+ "Indian/Christmas",
777
+ "Indian/Cocos",
778
+ "Indian/Comoro",
779
+ "Indian/Kerguelen",
780
+ "Indian/Mahe",
781
+ "Indian/Maldives",
782
+ "Indian/Mauritius",
783
+ "Indian/Mayotte",
784
+ "Indian/Reunion",
785
+ "Pacific/Apia",
786
+ "Pacific/Auckland",
787
+ "Pacific/Bougainville",
788
+ "Pacific/Chatham",
789
+ "Pacific/Easter",
790
+ "Pacific/Efate",
791
+ "Pacific/Enderbury",
792
+ "Pacific/Fakaofo",
793
+ "Pacific/Fiji",
794
+ "Pacific/Funafuti",
795
+ "Pacific/Galapagos",
796
+ "Pacific/Gambier",
797
+ "Pacific/Guadalcanal",
798
+ "Pacific/Guam",
799
+ "Pacific/Honolulu",
800
+ "Pacific/Kiritimati",
801
+ "Pacific/Kosrae",
802
+ "Pacific/Kwajalein",
803
+ "Pacific/Majuro",
804
+ "Pacific/Marquesas",
805
+ "Pacific/Midway",
806
+ "Pacific/Nauru",
807
+ "Pacific/Niue",
808
+ "Pacific/Norfolk",
809
+ "Pacific/Noumea",
810
+ "Pacific/Pago_Pago",
811
+ "Pacific/Palau",
812
+ "Pacific/Pitcairn",
813
+ "Pacific/Ponape",
814
+ "Pacific/Port_Moresby",
815
+ "Pacific/Rarotonga",
816
+ "Pacific/Saipan",
817
+ "Pacific/Tahiti",
818
+ "Pacific/Tarawa",
819
+ "Pacific/Tongatapu",
820
+ "Pacific/Truk",
821
+ "Pacific/Wake",
822
+ "Pacific/Wallis"
823
+ ]
824
+ },
825
+ "starts_on": {
826
+ "type": "string",
827
+ "format": "date",
828
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
829
+ },
830
+ "starts_at": {
831
+ "anyOf": [
832
+ {
833
+ "type": "string",
834
+ "allOf": [
835
+ {
836
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
837
+ },
838
+ {
839
+ "pattern": "Z$"
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ "type": "null"
845
+ }
846
+ ]
847
+ },
848
+ "current_period_ends_at": {
849
+ "type": "string",
850
+ "allOf": [
851
+ {
852
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
853
+ },
854
+ {
855
+ "pattern": "Z$"
856
+ }
857
+ ]
858
+ },
859
+ "renews_at": {
860
+ "type": "string",
861
+ "allOf": [
862
+ {
863
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
864
+ },
865
+ {
866
+ "pattern": "Z$"
867
+ }
868
+ ]
869
+ },
870
+ "effective": {
871
+ "oneOf": [
872
+ {
873
+ "type": "object",
874
+ "properties": {
875
+ "mode": {
876
+ "type": "string",
877
+ "const": "on_confirmation"
878
+ },
879
+ "quoted_as_of_at": {
880
+ "type": "string",
881
+ "allOf": [
882
+ {
883
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
884
+ },
885
+ {
886
+ "pattern": "Z$"
887
+ }
888
+ ]
889
+ },
890
+ "local_date": {
891
+ "type": "string",
892
+ "format": "date",
893
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
894
+ }
895
+ },
896
+ "required": [
897
+ "mode",
898
+ "quoted_as_of_at",
899
+ "local_date"
900
+ ],
901
+ "additionalProperties": false
902
+ },
903
+ {
904
+ "type": "object",
905
+ "properties": {
906
+ "mode": {
907
+ "type": "string",
908
+ "const": "scheduled"
909
+ },
910
+ "at": {
911
+ "type": "string",
912
+ "allOf": [
913
+ {
914
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
915
+ },
916
+ {
917
+ "pattern": "Z$"
918
+ }
919
+ ]
920
+ },
921
+ "at_period_end": {
922
+ "type": "boolean"
923
+ }
924
+ },
925
+ "required": [
926
+ "mode",
927
+ "at",
928
+ "at_period_end"
929
+ ],
930
+ "additionalProperties": false
931
+ }
932
+ ]
933
+ }
934
+ },
935
+ "required": [
936
+ "anchor",
937
+ "display_time_zone",
938
+ "starts_on",
939
+ "starts_at",
940
+ "current_period_ends_at",
941
+ "renews_at",
942
+ "effective"
943
+ ],
944
+ "additionalProperties": false
945
+ },
946
+ {
947
+ "oneOf": [
948
+ {
949
+ "type": "object",
950
+ "properties": {
951
+ "anchor": {
952
+ "type": "string",
953
+ "const": "on_first_successful_payment"
954
+ },
955
+ "cycle": {
956
+ "type": "string",
957
+ "const": "monthly"
958
+ },
959
+ "start_statement": {
960
+ "type": "string",
961
+ "const": "Starts when your first payment succeeds"
962
+ },
963
+ "period_statement": {
964
+ "type": "string",
965
+ "const": "First billing period: one full month from successful payment; renews at the end of that period"
966
+ }
967
+ },
968
+ "required": [
969
+ "anchor",
970
+ "cycle",
971
+ "start_statement",
972
+ "period_statement"
973
+ ],
974
+ "additionalProperties": false
975
+ },
976
+ {
977
+ "type": "object",
978
+ "properties": {
979
+ "anchor": {
980
+ "type": "string",
981
+ "const": "on_first_successful_payment"
982
+ },
983
+ "cycle": {
984
+ "type": "string",
985
+ "const": "yearly"
986
+ },
987
+ "start_statement": {
988
+ "type": "string",
989
+ "const": "Starts when your first payment succeeds"
990
+ },
991
+ "period_statement": {
992
+ "type": "string",
993
+ "const": "First billing period: one full year from successful payment; renews at the end of that period"
994
+ }
995
+ },
996
+ "required": [
997
+ "anchor",
998
+ "cycle",
999
+ "start_statement",
1000
+ "period_statement"
1001
+ ],
1002
+ "additionalProperties": false
1003
+ }
1004
+ ]
1005
+ }
1006
+ ]
1007
+ },
1008
+ "future_price_replacement": {
1009
+ "anyOf": [
1010
+ {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "agreement_id": {
1014
+ "type": "string",
1015
+ "format": "uuid",
1016
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
1017
+ },
1018
+ "text": {
1019
+ "type": "string",
1020
+ "minLength": 1,
1021
+ "pattern": "\\S"
1022
+ }
1023
+ },
1024
+ "required": [
1025
+ "agreement_id",
1026
+ "text"
1027
+ ],
1028
+ "additionalProperties": false
1029
+ },
1030
+ {
1031
+ "type": "null"
1032
+ }
1033
+ ]
1034
+ },
1035
+ "declaration": {
1036
+ "type": "object",
1037
+ "properties": {
1038
+ "text_id": {
1039
+ "type": "string",
1040
+ "enum": [
1041
+ "C4-1168-checkout",
1042
+ "C4-1168-pay-and-switch",
1043
+ "C4-1168-switch",
1044
+ "C4-1168-schedule-switch",
1045
+ "C4-1168-schedule-downgrade",
1046
+ "C4-1168-cancel"
1047
+ ],
1048
+ "description": "The approved sentence this display shows, one per action."
1049
+ },
1050
+ "text": {
1051
+ "type": "string",
1052
+ "minLength": 1,
1053
+ "pattern": "^By selecting “",
1054
+ "description": "The consent sentence shown directly above the button, naming the button."
1055
+ },
1056
+ "action_label": {
1057
+ "type": "string",
1058
+ "minLength": 1,
1059
+ "description": "The label of the one button that confirms this decision."
1060
+ },
1061
+ "terms": {
1062
+ "type": "object",
1063
+ "properties": {
1064
+ "version": {
1065
+ "type": "string",
1066
+ "minLength": 1,
1067
+ "maxLength": 80
1068
+ },
1069
+ "version_date": {
1070
+ "type": "string",
1071
+ "format": "date",
1072
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
1073
+ },
1074
+ "url": {
1075
+ "type": "string",
1076
+ "maxLength": 2048,
1077
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
1078
+ "format": "uri"
1079
+ }
1080
+ },
1081
+ "required": [
1082
+ "version",
1083
+ "version_date",
1084
+ "url"
1085
+ ],
1086
+ "additionalProperties": false
1087
+ },
1088
+ "dpa": {
1089
+ "type": "object",
1090
+ "properties": {
1091
+ "version": {
1092
+ "type": "string",
1093
+ "minLength": 1,
1094
+ "maxLength": 80
1095
+ },
1096
+ "version_date": {
1097
+ "type": "string",
1098
+ "format": "date",
1099
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
1100
+ },
1101
+ "url": {
1102
+ "type": "string",
1103
+ "maxLength": 2048,
1104
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
1105
+ "format": "uri"
1106
+ }
1107
+ },
1108
+ "required": [
1109
+ "version",
1110
+ "version_date",
1111
+ "url"
1112
+ ],
1113
+ "additionalProperties": false
1114
+ }
1115
+ },
1116
+ "required": [
1117
+ "text_id",
1118
+ "text",
1119
+ "action_label",
1120
+ "terms",
1121
+ "dpa"
1122
+ ],
1123
+ "additionalProperties": false,
1124
+ "allOf": [
1125
+ {
1126
+ "if": {
1127
+ "properties": {
1128
+ "text_id": {
1129
+ "const": "C4-1168-checkout"
1130
+ }
1131
+ },
1132
+ "required": [
1133
+ "text_id"
1134
+ ]
1135
+ },
1136
+ "then": {
1137
+ "properties": {
1138
+ "action_label": {
1139
+ "pattern": "^Pay \\S.* with Mollie$"
1140
+ }
1141
+ }
1142
+ }
1143
+ },
1144
+ {
1145
+ "if": {
1146
+ "properties": {
1147
+ "text_id": {
1148
+ "const": "C4-1168-pay-and-switch"
1149
+ }
1150
+ },
1151
+ "required": [
1152
+ "text_id"
1153
+ ]
1154
+ },
1155
+ "then": {
1156
+ "properties": {
1157
+ "action_label": {
1158
+ "pattern": "^Pay \\S.* and switch$"
1159
+ }
1160
+ }
1161
+ }
1162
+ },
1163
+ {
1164
+ "if": {
1165
+ "properties": {
1166
+ "text_id": {
1167
+ "const": "C4-1168-switch"
1168
+ }
1169
+ },
1170
+ "required": [
1171
+ "text_id"
1172
+ ]
1173
+ },
1174
+ "then": {
1175
+ "properties": {
1176
+ "action_label": {
1177
+ "pattern": "^Switch to \\S.*$"
1178
+ }
1179
+ }
1180
+ }
1181
+ },
1182
+ {
1183
+ "if": {
1184
+ "properties": {
1185
+ "text_id": {
1186
+ "const": "C4-1168-schedule-switch"
1187
+ }
1188
+ },
1189
+ "required": [
1190
+ "text_id"
1191
+ ]
1192
+ },
1193
+ "then": {
1194
+ "properties": {
1195
+ "action_label": {
1196
+ "const": "Switch to monthly at period end"
1197
+ }
1198
+ }
1199
+ }
1200
+ },
1201
+ {
1202
+ "if": {
1203
+ "properties": {
1204
+ "text_id": {
1205
+ "const": "C4-1168-schedule-downgrade"
1206
+ }
1207
+ },
1208
+ "required": [
1209
+ "text_id"
1210
+ ]
1211
+ },
1212
+ "then": {
1213
+ "properties": {
1214
+ "action_label": {
1215
+ "pattern": "^Schedule downgrade to \\S.*$"
1216
+ }
1217
+ }
1218
+ }
1219
+ },
1220
+ {
1221
+ "if": {
1222
+ "properties": {
1223
+ "text_id": {
1224
+ "const": "C4-1168-cancel"
1225
+ }
1226
+ },
1227
+ "required": [
1228
+ "text_id"
1229
+ ]
1230
+ },
1231
+ "then": {
1232
+ "properties": {
1233
+ "action_label": {
1234
+ "const": "Cancel at period end"
1235
+ }
1236
+ }
1237
+ }
1238
+ }
1239
+ ]
1240
+ },
1241
+ "expires_at": {
1242
+ "type": "string",
1243
+ "allOf": [
1244
+ {
1245
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
1246
+ },
1247
+ {
1248
+ "pattern": "Z$"
1249
+ }
1250
+ ]
1251
+ },
1252
+ "decision_kind": {
1253
+ "type": "string",
1254
+ "const": "checkout"
1255
+ },
1256
+ "selection": {
1257
+ "type": "object",
1258
+ "properties": {
1259
+ "plan": {
1260
+ "type": "string",
1261
+ "enum": [
1262
+ "basic",
1263
+ "plus",
1264
+ "pro"
1265
+ ]
1266
+ },
1267
+ "cycle": {
1268
+ "type": "string",
1269
+ "enum": [
1270
+ "monthly",
1271
+ "yearly"
1272
+ ]
1273
+ },
1274
+ "addons": {
1275
+ "type": "object",
1276
+ "properties": {
1277
+ "seats": {
1278
+ "type": "integer",
1279
+ "minimum": 0,
1280
+ "maximum": 9007199254740991,
1281
+ "description": "Extra developer seats, one each."
1282
+ },
1283
+ "robots": {
1284
+ "type": "integer",
1285
+ "minimum": 0,
1286
+ "maximum": 9007199254740991,
1287
+ "description": "Extra robots, one each."
1288
+ },
1289
+ "apps": {
1290
+ "type": "integer",
1291
+ "minimum": 0,
1292
+ "maximum": 9007199254740991,
1293
+ "description": "Extra apps, one each."
1294
+ },
1295
+ "app_user_packs": {
1296
+ "type": "integer",
1297
+ "minimum": 0,
1298
+ "maximum": 9007199254740991,
1299
+ "description": "Packs of five extra app users."
1300
+ },
1301
+ "live_video_packs": {
1302
+ "type": "integer",
1303
+ "minimum": 0,
1304
+ "maximum": 9007199254740991,
1305
+ "description": "Packs of 250 extra hours of app-user live video per month."
1306
+ }
1307
+ },
1308
+ "required": [
1309
+ "seats",
1310
+ "robots",
1311
+ "apps",
1312
+ "app_user_packs",
1313
+ "live_video_packs"
1314
+ ],
1315
+ "additionalProperties": false
1316
+ }
1317
+ },
1318
+ "required": [
1319
+ "plan",
1320
+ "cycle",
1321
+ "addons"
1322
+ ],
1323
+ "additionalProperties": false
1324
+ }
1325
+ },
1326
+ "required": [
1327
+ "snapshot_id",
1328
+ "decision_id",
1329
+ "operation_key",
1330
+ "owner_id",
1331
+ "organization_id",
1332
+ "organization_name",
1333
+ "quote_revision",
1334
+ "buyer_fingerprint",
1335
+ "amounts",
1336
+ "period",
1337
+ "future_price_replacement",
1338
+ "declaration",
1339
+ "expires_at",
1340
+ "decision_kind",
1341
+ "selection"
1342
+ ],
1343
+ "additionalProperties": false
1344
+ },
1345
+ {
1346
+ "type": "object",
1347
+ "properties": {
1348
+ "snapshot_id": {
1349
+ "type": "string",
1350
+ "format": "uuid",
1351
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
1352
+ },
1353
+ "decision_id": {
1354
+ "type": "string",
1355
+ "format": "uuid",
1356
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
1357
+ },
1358
+ "operation_key": {
1359
+ "type": "string",
1360
+ "format": "uuid",
1361
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1362
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
1363
+ },
1364
+ "owner_id": {
1365
+ "type": "string",
1366
+ "format": "uuid",
1367
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
1368
+ },
1369
+ "organization_id": {
1370
+ "type": "string",
1371
+ "format": "uuid",
1372
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
1373
+ },
1374
+ "organization_name": {
1375
+ "type": "string",
1376
+ "minLength": 1
1377
+ },
1378
+ "quote_revision": {
1379
+ "type": "string",
1380
+ "minLength": 1,
1381
+ "maxLength": 200,
1382
+ "description": "Opaque revision of the displayed quote; echo it when confirming."
1383
+ },
1384
+ "buyer_fingerprint": {
1385
+ "type": "string",
1386
+ "minLength": 1,
1387
+ "maxLength": 200,
1388
+ "description": "Opaque revision of buyer details and email policy; never full VIES evidence."
1389
+ },
1390
+ "amounts": {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "currency": {
1394
+ "type": "string",
1395
+ "const": "eur"
1396
+ },
1397
+ "quote": {
1398
+ "type": "object",
1399
+ "properties": {
1400
+ "currency": {
1401
+ "type": "string",
1402
+ "const": "eur",
1403
+ "description": "Every new quote is in EUR."
1404
+ },
1405
+ "net_cents": {
1406
+ "type": "integer",
1407
+ "minimum": 0,
1408
+ "maximum": 9007199254740991,
1409
+ "description": "Current charge excluding VAT, in cents."
1410
+ },
1411
+ "vat_cents": {
1412
+ "type": "integer",
1413
+ "minimum": 0,
1414
+ "maximum": 9007199254740991,
1415
+ "description": "VAT on the current charge, in cents."
1416
+ },
1417
+ "gross_cents": {
1418
+ "type": "integer",
1419
+ "minimum": 0,
1420
+ "maximum": 9007199254740991,
1421
+ "description": "Total to confirm, including VAT, in cents."
1422
+ },
1423
+ "rate_percent": {
1424
+ "type": "integer",
1425
+ "minimum": 0,
1426
+ "maximum": 100,
1427
+ "description": "VAT rate in whole percent."
1428
+ }
1429
+ },
1430
+ "required": [
1431
+ "currency",
1432
+ "net_cents",
1433
+ "vat_cents",
1434
+ "gross_cents",
1435
+ "rate_percent"
1436
+ ],
1437
+ "additionalProperties": false
1438
+ },
1439
+ "plan_net_cents": {
1440
+ "type": "integer",
1441
+ "minimum": 0,
1442
+ "maximum": 9007199254740991
1443
+ },
1444
+ "addon_lines": {
1445
+ "type": "array",
1446
+ "items": {
1447
+ "type": "object",
1448
+ "properties": {
1449
+ "addon": {
1450
+ "type": "string",
1451
+ "enum": [
1452
+ "seats",
1453
+ "robots",
1454
+ "apps",
1455
+ "app_user_packs",
1456
+ "live_video_packs"
1457
+ ]
1458
+ },
1459
+ "quantity": {
1460
+ "type": "integer",
1461
+ "exclusiveMinimum": 0,
1462
+ "maximum": 9007199254740991
1463
+ },
1464
+ "net_cents": {
1465
+ "type": "integer",
1466
+ "minimum": 0,
1467
+ "maximum": 9007199254740991
1468
+ }
1469
+ },
1470
+ "required": [
1471
+ "addon",
1472
+ "quantity",
1473
+ "net_cents"
1474
+ ],
1475
+ "additionalProperties": false
1476
+ }
1477
+ },
1478
+ "period_net_cents": {
1479
+ "type": "integer",
1480
+ "minimum": 0,
1481
+ "maximum": 9007199254740991
1482
+ },
1483
+ "period_vat_cents": {
1484
+ "type": "integer",
1485
+ "minimum": 0,
1486
+ "maximum": 9007199254740991
1487
+ },
1488
+ "period_gross_cents": {
1489
+ "type": "integer",
1490
+ "minimum": 0,
1491
+ "maximum": 9007199254740991
1492
+ },
1493
+ "vat_treatment": {
1494
+ "type": "string",
1495
+ "enum": [
1496
+ "de_standard",
1497
+ "reverse_charge",
1498
+ "outside_eu"
1499
+ ]
1500
+ },
1501
+ "vat_treatment_line": {
1502
+ "type": "string",
1503
+ "minLength": 1
1504
+ },
1505
+ "due_today_gross_cents": {
1506
+ "type": "integer",
1507
+ "minimum": 0,
1508
+ "maximum": 9007199254740991
1509
+ },
1510
+ "prorated_net_cents": {
1511
+ "anyOf": [
1512
+ {
1513
+ "type": "integer",
1514
+ "minimum": 0,
1515
+ "maximum": 9007199254740991
1516
+ },
1517
+ {
1518
+ "type": "null"
1519
+ }
1520
+ ]
1521
+ },
1522
+ "renewal_net_cents": {
1523
+ "type": "integer",
1524
+ "minimum": 0,
1525
+ "maximum": 9007199254740991
1526
+ }
1527
+ },
1528
+ "required": [
1529
+ "currency",
1530
+ "quote",
1531
+ "plan_net_cents",
1532
+ "addon_lines",
1533
+ "period_net_cents",
1534
+ "period_vat_cents",
1535
+ "period_gross_cents",
1536
+ "vat_treatment",
1537
+ "vat_treatment_line",
1538
+ "due_today_gross_cents",
1539
+ "prorated_net_cents",
1540
+ "renewal_net_cents"
1541
+ ],
1542
+ "additionalProperties": false,
1543
+ "allOf": [
1544
+ {
1545
+ "if": {
1546
+ "properties": {
1547
+ "vat_treatment": {
1548
+ "const": "de_standard"
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "vat_treatment"
1553
+ ]
1554
+ },
1555
+ "then": {
1556
+ "properties": {
1557
+ "quote": {
1558
+ "properties": {
1559
+ "rate_percent": {
1560
+ "const": 19
1561
+ }
1562
+ }
1563
+ }
1564
+ }
1565
+ }
1566
+ },
1567
+ {
1568
+ "if": {
1569
+ "properties": {
1570
+ "vat_treatment": {
1571
+ "const": "reverse_charge"
1572
+ }
1573
+ },
1574
+ "required": [
1575
+ "vat_treatment"
1576
+ ]
1577
+ },
1578
+ "then": {
1579
+ "properties": {
1580
+ "quote": {
1581
+ "properties": {
1582
+ "rate_percent": {
1583
+ "const": 0
1584
+ },
1585
+ "vat_cents": {
1586
+ "const": 0
1587
+ }
1588
+ }
1589
+ },
1590
+ "period_vat_cents": {
1591
+ "const": 0
1592
+ },
1593
+ "vat_treatment_line": {
1594
+ "const": "Reverse charge — VAT payable by the recipient"
1595
+ }
1596
+ }
1597
+ }
1598
+ },
1599
+ {
1600
+ "if": {
1601
+ "properties": {
1602
+ "vat_treatment": {
1603
+ "const": "outside_eu"
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "vat_treatment"
1608
+ ]
1609
+ },
1610
+ "then": {
1611
+ "properties": {
1612
+ "quote": {
1613
+ "properties": {
1614
+ "rate_percent": {
1615
+ "const": 0
1616
+ },
1617
+ "vat_cents": {
1618
+ "const": 0
1619
+ }
1620
+ }
1621
+ },
1622
+ "period_vat_cents": {
1623
+ "const": 0
1624
+ },
1625
+ "vat_treatment_line": {
1626
+ "const": "Not taxable in Germany"
1627
+ }
1628
+ }
1629
+ }
1630
+ }
1631
+ ]
1632
+ },
1633
+ "period": {
1634
+ "type": "object",
1635
+ "properties": {
1636
+ "anchor": {
1637
+ "type": "string",
1638
+ "const": "existing_period"
1639
+ },
1640
+ "display_time_zone": {
1641
+ "type": "string",
1642
+ "enum": [
1643
+ "UTC",
1644
+ "Etc/UTC",
1645
+ "Etc/GMT",
1646
+ "Africa/Abidjan",
1647
+ "Africa/Accra",
1648
+ "Africa/Addis_Ababa",
1649
+ "Africa/Algiers",
1650
+ "Africa/Asmera",
1651
+ "Africa/Bamako",
1652
+ "Africa/Bangui",
1653
+ "Africa/Banjul",
1654
+ "Africa/Bissau",
1655
+ "Africa/Blantyre",
1656
+ "Africa/Brazzaville",
1657
+ "Africa/Bujumbura",
1658
+ "Africa/Cairo",
1659
+ "Africa/Casablanca",
1660
+ "Africa/Ceuta",
1661
+ "Africa/Conakry",
1662
+ "Africa/Dakar",
1663
+ "Africa/Dar_es_Salaam",
1664
+ "Africa/Djibouti",
1665
+ "Africa/Douala",
1666
+ "Africa/El_Aaiun",
1667
+ "Africa/Freetown",
1668
+ "Africa/Gaborone",
1669
+ "Africa/Harare",
1670
+ "Africa/Johannesburg",
1671
+ "Africa/Juba",
1672
+ "Africa/Kampala",
1673
+ "Africa/Khartoum",
1674
+ "Africa/Kigali",
1675
+ "Africa/Kinshasa",
1676
+ "Africa/Lagos",
1677
+ "Africa/Libreville",
1678
+ "Africa/Lome",
1679
+ "Africa/Luanda",
1680
+ "Africa/Lubumbashi",
1681
+ "Africa/Lusaka",
1682
+ "Africa/Malabo",
1683
+ "Africa/Maputo",
1684
+ "Africa/Maseru",
1685
+ "Africa/Mbabane",
1686
+ "Africa/Mogadishu",
1687
+ "Africa/Monrovia",
1688
+ "Africa/Nairobi",
1689
+ "Africa/Ndjamena",
1690
+ "Africa/Niamey",
1691
+ "Africa/Nouakchott",
1692
+ "Africa/Ouagadougou",
1693
+ "Africa/Porto-Novo",
1694
+ "Africa/Sao_Tome",
1695
+ "Africa/Tripoli",
1696
+ "Africa/Tunis",
1697
+ "Africa/Windhoek",
1698
+ "America/Adak",
1699
+ "America/Anchorage",
1700
+ "America/Anguilla",
1701
+ "America/Antigua",
1702
+ "America/Araguaina",
1703
+ "America/Argentina/La_Rioja",
1704
+ "America/Argentina/Rio_Gallegos",
1705
+ "America/Argentina/Salta",
1706
+ "America/Argentina/San_Juan",
1707
+ "America/Argentina/San_Luis",
1708
+ "America/Argentina/Tucuman",
1709
+ "America/Argentina/Ushuaia",
1710
+ "America/Aruba",
1711
+ "America/Asuncion",
1712
+ "America/Bahia",
1713
+ "America/Bahia_Banderas",
1714
+ "America/Barbados",
1715
+ "America/Belem",
1716
+ "America/Belize",
1717
+ "America/Blanc-Sablon",
1718
+ "America/Boa_Vista",
1719
+ "America/Bogota",
1720
+ "America/Boise",
1721
+ "America/Buenos_Aires",
1722
+ "America/Cambridge_Bay",
1723
+ "America/Campo_Grande",
1724
+ "America/Cancun",
1725
+ "America/Caracas",
1726
+ "America/Catamarca",
1727
+ "America/Cayenne",
1728
+ "America/Cayman",
1729
+ "America/Chicago",
1730
+ "America/Chihuahua",
1731
+ "America/Ciudad_Juarez",
1732
+ "America/Coral_Harbour",
1733
+ "America/Cordoba",
1734
+ "America/Costa_Rica",
1735
+ "America/Coyhaique",
1736
+ "America/Creston",
1737
+ "America/Cuiaba",
1738
+ "America/Curacao",
1739
+ "America/Danmarkshavn",
1740
+ "America/Dawson",
1741
+ "America/Dawson_Creek",
1742
+ "America/Denver",
1743
+ "America/Detroit",
1744
+ "America/Dominica",
1745
+ "America/Edmonton",
1746
+ "America/Eirunepe",
1747
+ "America/El_Salvador",
1748
+ "America/Fort_Nelson",
1749
+ "America/Fortaleza",
1750
+ "America/Glace_Bay",
1751
+ "America/Godthab",
1752
+ "America/Goose_Bay",
1753
+ "America/Grand_Turk",
1754
+ "America/Grenada",
1755
+ "America/Guadeloupe",
1756
+ "America/Guatemala",
1757
+ "America/Guayaquil",
1758
+ "America/Guyana",
1759
+ "America/Halifax",
1760
+ "America/Havana",
1761
+ "America/Hermosillo",
1762
+ "America/Indiana/Knox",
1763
+ "America/Indiana/Marengo",
1764
+ "America/Indiana/Petersburg",
1765
+ "America/Indiana/Tell_City",
1766
+ "America/Indiana/Vevay",
1767
+ "America/Indiana/Vincennes",
1768
+ "America/Indiana/Winamac",
1769
+ "America/Indianapolis",
1770
+ "America/Inuvik",
1771
+ "America/Iqaluit",
1772
+ "America/Jamaica",
1773
+ "America/Jujuy",
1774
+ "America/Juneau",
1775
+ "America/Kentucky/Monticello",
1776
+ "America/Kralendijk",
1777
+ "America/La_Paz",
1778
+ "America/Lima",
1779
+ "America/Los_Angeles",
1780
+ "America/Louisville",
1781
+ "America/Lower_Princes",
1782
+ "America/Maceio",
1783
+ "America/Managua",
1784
+ "America/Manaus",
1785
+ "America/Marigot",
1786
+ "America/Martinique",
1787
+ "America/Matamoros",
1788
+ "America/Mazatlan",
1789
+ "America/Mendoza",
1790
+ "America/Menominee",
1791
+ "America/Merida",
1792
+ "America/Metlakatla",
1793
+ "America/Mexico_City",
1794
+ "America/Miquelon",
1795
+ "America/Moncton",
1796
+ "America/Monterrey",
1797
+ "America/Montevideo",
1798
+ "America/Montserrat",
1799
+ "America/Nassau",
1800
+ "America/New_York",
1801
+ "America/Nome",
1802
+ "America/Noronha",
1803
+ "America/North_Dakota/Beulah",
1804
+ "America/North_Dakota/Center",
1805
+ "America/North_Dakota/New_Salem",
1806
+ "America/Ojinaga",
1807
+ "America/Panama",
1808
+ "America/Paramaribo",
1809
+ "America/Phoenix",
1810
+ "America/Port-au-Prince",
1811
+ "America/Port_of_Spain",
1812
+ "America/Porto_Velho",
1813
+ "America/Puerto_Rico",
1814
+ "America/Punta_Arenas",
1815
+ "America/Rankin_Inlet",
1816
+ "America/Recife",
1817
+ "America/Regina",
1818
+ "America/Resolute",
1819
+ "America/Rio_Branco",
1820
+ "America/Santarem",
1821
+ "America/Santiago",
1822
+ "America/Santo_Domingo",
1823
+ "America/Sao_Paulo",
1824
+ "America/Scoresbysund",
1825
+ "America/Sitka",
1826
+ "America/St_Barthelemy",
1827
+ "America/St_Johns",
1828
+ "America/St_Kitts",
1829
+ "America/St_Lucia",
1830
+ "America/St_Thomas",
1831
+ "America/St_Vincent",
1832
+ "America/Swift_Current",
1833
+ "America/Tegucigalpa",
1834
+ "America/Thule",
1835
+ "America/Tijuana",
1836
+ "America/Toronto",
1837
+ "America/Tortola",
1838
+ "America/Vancouver",
1839
+ "America/Whitehorse",
1840
+ "America/Winnipeg",
1841
+ "America/Yakutat",
1842
+ "Antarctica/Casey",
1843
+ "Antarctica/Davis",
1844
+ "Antarctica/DumontDUrville",
1845
+ "Antarctica/Macquarie",
1846
+ "Antarctica/Mawson",
1847
+ "Antarctica/McMurdo",
1848
+ "Antarctica/Palmer",
1849
+ "Antarctica/Rothera",
1850
+ "Antarctica/Syowa",
1851
+ "Antarctica/Troll",
1852
+ "Antarctica/Vostok",
1853
+ "Arctic/Longyearbyen",
1854
+ "Asia/Aden",
1855
+ "Asia/Almaty",
1856
+ "Asia/Amman",
1857
+ "Asia/Anadyr",
1858
+ "Asia/Aqtau",
1859
+ "Asia/Aqtobe",
1860
+ "Asia/Ashgabat",
1861
+ "Asia/Atyrau",
1862
+ "Asia/Baghdad",
1863
+ "Asia/Bahrain",
1864
+ "Asia/Baku",
1865
+ "Asia/Bangkok",
1866
+ "Asia/Barnaul",
1867
+ "Asia/Beirut",
1868
+ "Asia/Bishkek",
1869
+ "Asia/Brunei",
1870
+ "Asia/Calcutta",
1871
+ "Asia/Chita",
1872
+ "Asia/Colombo",
1873
+ "Asia/Damascus",
1874
+ "Asia/Dhaka",
1875
+ "Asia/Dili",
1876
+ "Asia/Dubai",
1877
+ "Asia/Dushanbe",
1878
+ "Asia/Famagusta",
1879
+ "Asia/Gaza",
1880
+ "Asia/Hebron",
1881
+ "Asia/Hong_Kong",
1882
+ "Asia/Hovd",
1883
+ "Asia/Irkutsk",
1884
+ "Asia/Jakarta",
1885
+ "Asia/Jayapura",
1886
+ "Asia/Jerusalem",
1887
+ "Asia/Kabul",
1888
+ "Asia/Kamchatka",
1889
+ "Asia/Karachi",
1890
+ "Asia/Katmandu",
1891
+ "Asia/Khandyga",
1892
+ "Asia/Krasnoyarsk",
1893
+ "Asia/Kuala_Lumpur",
1894
+ "Asia/Kuching",
1895
+ "Asia/Kuwait",
1896
+ "Asia/Macau",
1897
+ "Asia/Magadan",
1898
+ "Asia/Makassar",
1899
+ "Asia/Manila",
1900
+ "Asia/Muscat",
1901
+ "Asia/Nicosia",
1902
+ "Asia/Novokuznetsk",
1903
+ "Asia/Novosibirsk",
1904
+ "Asia/Omsk",
1905
+ "Asia/Oral",
1906
+ "Asia/Phnom_Penh",
1907
+ "Asia/Pontianak",
1908
+ "Asia/Pyongyang",
1909
+ "Asia/Qatar",
1910
+ "Asia/Qostanay",
1911
+ "Asia/Qyzylorda",
1912
+ "Asia/Rangoon",
1913
+ "Asia/Riyadh",
1914
+ "Asia/Saigon",
1915
+ "Asia/Sakhalin",
1916
+ "Asia/Samarkand",
1917
+ "Asia/Seoul",
1918
+ "Asia/Shanghai",
1919
+ "Asia/Singapore",
1920
+ "Asia/Srednekolymsk",
1921
+ "Asia/Taipei",
1922
+ "Asia/Tashkent",
1923
+ "Asia/Tbilisi",
1924
+ "Asia/Tehran",
1925
+ "Asia/Thimphu",
1926
+ "Asia/Tokyo",
1927
+ "Asia/Tomsk",
1928
+ "Asia/Ulaanbaatar",
1929
+ "Asia/Urumqi",
1930
+ "Asia/Ust-Nera",
1931
+ "Asia/Vientiane",
1932
+ "Asia/Vladivostok",
1933
+ "Asia/Yakutsk",
1934
+ "Asia/Yekaterinburg",
1935
+ "Asia/Yerevan",
1936
+ "Atlantic/Azores",
1937
+ "Atlantic/Bermuda",
1938
+ "Atlantic/Canary",
1939
+ "Atlantic/Cape_Verde",
1940
+ "Atlantic/Faeroe",
1941
+ "Atlantic/Madeira",
1942
+ "Atlantic/Reykjavik",
1943
+ "Atlantic/South_Georgia",
1944
+ "Atlantic/St_Helena",
1945
+ "Atlantic/Stanley",
1946
+ "Australia/Adelaide",
1947
+ "Australia/Brisbane",
1948
+ "Australia/Broken_Hill",
1949
+ "Australia/Darwin",
1950
+ "Australia/Eucla",
1951
+ "Australia/Hobart",
1952
+ "Australia/Lindeman",
1953
+ "Australia/Lord_Howe",
1954
+ "Australia/Melbourne",
1955
+ "Australia/Perth",
1956
+ "Australia/Sydney",
1957
+ "Europe/Amsterdam",
1958
+ "Europe/Andorra",
1959
+ "Europe/Astrakhan",
1960
+ "Europe/Athens",
1961
+ "Europe/Belgrade",
1962
+ "Europe/Berlin",
1963
+ "Europe/Bratislava",
1964
+ "Europe/Brussels",
1965
+ "Europe/Bucharest",
1966
+ "Europe/Budapest",
1967
+ "Europe/Busingen",
1968
+ "Europe/Chisinau",
1969
+ "Europe/Copenhagen",
1970
+ "Europe/Dublin",
1971
+ "Europe/Gibraltar",
1972
+ "Europe/Guernsey",
1973
+ "Europe/Helsinki",
1974
+ "Europe/Isle_of_Man",
1975
+ "Europe/Istanbul",
1976
+ "Europe/Jersey",
1977
+ "Europe/Kaliningrad",
1978
+ "Europe/Kiev",
1979
+ "Europe/Kirov",
1980
+ "Europe/Lisbon",
1981
+ "Europe/Ljubljana",
1982
+ "Europe/London",
1983
+ "Europe/Luxembourg",
1984
+ "Europe/Madrid",
1985
+ "Europe/Malta",
1986
+ "Europe/Mariehamn",
1987
+ "Europe/Minsk",
1988
+ "Europe/Monaco",
1989
+ "Europe/Moscow",
1990
+ "Europe/Oslo",
1991
+ "Europe/Paris",
1992
+ "Europe/Podgorica",
1993
+ "Europe/Prague",
1994
+ "Europe/Riga",
1995
+ "Europe/Rome",
1996
+ "Europe/Samara",
1997
+ "Europe/San_Marino",
1998
+ "Europe/Sarajevo",
1999
+ "Europe/Saratov",
2000
+ "Europe/Simferopol",
2001
+ "Europe/Skopje",
2002
+ "Europe/Sofia",
2003
+ "Europe/Stockholm",
2004
+ "Europe/Tallinn",
2005
+ "Europe/Tirane",
2006
+ "Europe/Ulyanovsk",
2007
+ "Europe/Vaduz",
2008
+ "Europe/Vatican",
2009
+ "Europe/Vienna",
2010
+ "Europe/Vilnius",
2011
+ "Europe/Volgograd",
2012
+ "Europe/Warsaw",
2013
+ "Europe/Zagreb",
2014
+ "Europe/Zurich",
2015
+ "Indian/Antananarivo",
2016
+ "Indian/Chagos",
2017
+ "Indian/Christmas",
2018
+ "Indian/Cocos",
2019
+ "Indian/Comoro",
2020
+ "Indian/Kerguelen",
2021
+ "Indian/Mahe",
2022
+ "Indian/Maldives",
2023
+ "Indian/Mauritius",
2024
+ "Indian/Mayotte",
2025
+ "Indian/Reunion",
2026
+ "Pacific/Apia",
2027
+ "Pacific/Auckland",
2028
+ "Pacific/Bougainville",
2029
+ "Pacific/Chatham",
2030
+ "Pacific/Easter",
2031
+ "Pacific/Efate",
2032
+ "Pacific/Enderbury",
2033
+ "Pacific/Fakaofo",
2034
+ "Pacific/Fiji",
2035
+ "Pacific/Funafuti",
2036
+ "Pacific/Galapagos",
2037
+ "Pacific/Gambier",
2038
+ "Pacific/Guadalcanal",
2039
+ "Pacific/Guam",
2040
+ "Pacific/Honolulu",
2041
+ "Pacific/Kiritimati",
2042
+ "Pacific/Kosrae",
2043
+ "Pacific/Kwajalein",
2044
+ "Pacific/Majuro",
2045
+ "Pacific/Marquesas",
2046
+ "Pacific/Midway",
2047
+ "Pacific/Nauru",
2048
+ "Pacific/Niue",
2049
+ "Pacific/Norfolk",
2050
+ "Pacific/Noumea",
2051
+ "Pacific/Pago_Pago",
2052
+ "Pacific/Palau",
2053
+ "Pacific/Pitcairn",
2054
+ "Pacific/Ponape",
2055
+ "Pacific/Port_Moresby",
2056
+ "Pacific/Rarotonga",
2057
+ "Pacific/Saipan",
2058
+ "Pacific/Tahiti",
2059
+ "Pacific/Tarawa",
2060
+ "Pacific/Tongatapu",
2061
+ "Pacific/Truk",
2062
+ "Pacific/Wake",
2063
+ "Pacific/Wallis"
2064
+ ]
2065
+ },
2066
+ "starts_on": {
2067
+ "type": "string",
2068
+ "format": "date",
2069
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
2070
+ },
2071
+ "starts_at": {
2072
+ "anyOf": [
2073
+ {
2074
+ "type": "string",
2075
+ "allOf": [
2076
+ {
2077
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
2078
+ },
2079
+ {
2080
+ "pattern": "Z$"
2081
+ }
2082
+ ]
2083
+ },
2084
+ {
2085
+ "type": "null"
2086
+ }
2087
+ ]
2088
+ },
2089
+ "current_period_ends_at": {
2090
+ "type": "string",
2091
+ "allOf": [
2092
+ {
2093
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
2094
+ },
2095
+ {
2096
+ "pattern": "Z$"
2097
+ }
2098
+ ]
2099
+ },
2100
+ "renews_at": {
2101
+ "type": "string",
2102
+ "allOf": [
2103
+ {
2104
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
2105
+ },
2106
+ {
2107
+ "pattern": "Z$"
2108
+ }
2109
+ ]
2110
+ },
2111
+ "effective": {
2112
+ "oneOf": [
2113
+ {
2114
+ "type": "object",
2115
+ "properties": {
2116
+ "mode": {
2117
+ "type": "string",
2118
+ "const": "on_confirmation"
2119
+ },
2120
+ "quoted_as_of_at": {
2121
+ "type": "string",
2122
+ "allOf": [
2123
+ {
2124
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
2125
+ },
2126
+ {
2127
+ "pattern": "Z$"
2128
+ }
2129
+ ]
2130
+ },
2131
+ "local_date": {
2132
+ "type": "string",
2133
+ "format": "date",
2134
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
2135
+ }
2136
+ },
2137
+ "required": [
2138
+ "mode",
2139
+ "quoted_as_of_at",
2140
+ "local_date"
2141
+ ],
2142
+ "additionalProperties": false
2143
+ },
2144
+ {
2145
+ "type": "object",
2146
+ "properties": {
2147
+ "mode": {
2148
+ "type": "string",
2149
+ "const": "scheduled"
2150
+ },
2151
+ "at": {
2152
+ "type": "string",
2153
+ "allOf": [
2154
+ {
2155
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
2156
+ },
2157
+ {
2158
+ "pattern": "Z$"
2159
+ }
2160
+ ]
2161
+ },
2162
+ "at_period_end": {
2163
+ "type": "boolean"
2164
+ }
2165
+ },
2166
+ "required": [
2167
+ "mode",
2168
+ "at",
2169
+ "at_period_end"
2170
+ ],
2171
+ "additionalProperties": false
2172
+ }
2173
+ ]
2174
+ }
2175
+ },
2176
+ "required": [
2177
+ "anchor",
2178
+ "display_time_zone",
2179
+ "starts_on",
2180
+ "starts_at",
2181
+ "current_period_ends_at",
2182
+ "renews_at",
2183
+ "effective"
2184
+ ],
2185
+ "additionalProperties": false
2186
+ },
2187
+ "future_price_replacement": {
2188
+ "anyOf": [
2189
+ {
2190
+ "type": "object",
2191
+ "properties": {
2192
+ "agreement_id": {
2193
+ "type": "string",
2194
+ "format": "uuid",
2195
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
2196
+ },
2197
+ "text": {
2198
+ "type": "string",
2199
+ "minLength": 1,
2200
+ "pattern": "\\S"
2201
+ }
2202
+ },
2203
+ "required": [
2204
+ "agreement_id",
2205
+ "text"
2206
+ ],
2207
+ "additionalProperties": false
2208
+ },
2209
+ {
2210
+ "type": "null"
2211
+ }
2212
+ ]
2213
+ },
2214
+ "declaration": {
2215
+ "type": "object",
2216
+ "properties": {
2217
+ "text_id": {
2218
+ "type": "string",
2219
+ "enum": [
2220
+ "C4-1168-checkout",
2221
+ "C4-1168-pay-and-switch",
2222
+ "C4-1168-switch",
2223
+ "C4-1168-schedule-switch",
2224
+ "C4-1168-schedule-downgrade",
2225
+ "C4-1168-cancel"
2226
+ ],
2227
+ "description": "The approved sentence this display shows, one per action."
2228
+ },
2229
+ "text": {
2230
+ "type": "string",
2231
+ "minLength": 1,
2232
+ "pattern": "^By selecting “",
2233
+ "description": "The consent sentence shown directly above the button, naming the button."
2234
+ },
2235
+ "action_label": {
2236
+ "type": "string",
2237
+ "minLength": 1,
2238
+ "description": "The label of the one button that confirms this decision."
2239
+ },
2240
+ "terms": {
2241
+ "type": "object",
2242
+ "properties": {
2243
+ "version": {
2244
+ "type": "string",
2245
+ "minLength": 1,
2246
+ "maxLength": 80
2247
+ },
2248
+ "version_date": {
2249
+ "type": "string",
2250
+ "format": "date",
2251
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
2252
+ },
2253
+ "url": {
2254
+ "type": "string",
2255
+ "maxLength": 2048,
2256
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
2257
+ "format": "uri"
2258
+ }
2259
+ },
2260
+ "required": [
2261
+ "version",
2262
+ "version_date",
2263
+ "url"
2264
+ ],
2265
+ "additionalProperties": false
2266
+ },
2267
+ "dpa": {
2268
+ "type": "object",
2269
+ "properties": {
2270
+ "version": {
2271
+ "type": "string",
2272
+ "minLength": 1,
2273
+ "maxLength": 80
2274
+ },
2275
+ "version_date": {
2276
+ "type": "string",
2277
+ "format": "date",
2278
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
2279
+ },
2280
+ "url": {
2281
+ "type": "string",
2282
+ "maxLength": 2048,
2283
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
2284
+ "format": "uri"
2285
+ }
2286
+ },
2287
+ "required": [
2288
+ "version",
2289
+ "version_date",
2290
+ "url"
2291
+ ],
2292
+ "additionalProperties": false
2293
+ }
2294
+ },
2295
+ "required": [
2296
+ "text_id",
2297
+ "text",
2298
+ "action_label",
2299
+ "terms",
2300
+ "dpa"
2301
+ ],
2302
+ "additionalProperties": false,
2303
+ "allOf": [
2304
+ {
2305
+ "if": {
2306
+ "properties": {
2307
+ "text_id": {
2308
+ "const": "C4-1168-checkout"
2309
+ }
2310
+ },
2311
+ "required": [
2312
+ "text_id"
2313
+ ]
2314
+ },
2315
+ "then": {
2316
+ "properties": {
2317
+ "action_label": {
2318
+ "pattern": "^Pay \\S.* with Mollie$"
2319
+ }
2320
+ }
2321
+ }
2322
+ },
2323
+ {
2324
+ "if": {
2325
+ "properties": {
2326
+ "text_id": {
2327
+ "const": "C4-1168-pay-and-switch"
2328
+ }
2329
+ },
2330
+ "required": [
2331
+ "text_id"
2332
+ ]
2333
+ },
2334
+ "then": {
2335
+ "properties": {
2336
+ "action_label": {
2337
+ "pattern": "^Pay \\S.* and switch$"
2338
+ }
2339
+ }
2340
+ }
2341
+ },
2342
+ {
2343
+ "if": {
2344
+ "properties": {
2345
+ "text_id": {
2346
+ "const": "C4-1168-switch"
2347
+ }
2348
+ },
2349
+ "required": [
2350
+ "text_id"
2351
+ ]
2352
+ },
2353
+ "then": {
2354
+ "properties": {
2355
+ "action_label": {
2356
+ "pattern": "^Switch to \\S.*$"
2357
+ }
2358
+ }
2359
+ }
2360
+ },
2361
+ {
2362
+ "if": {
2363
+ "properties": {
2364
+ "text_id": {
2365
+ "const": "C4-1168-schedule-switch"
2366
+ }
2367
+ },
2368
+ "required": [
2369
+ "text_id"
2370
+ ]
2371
+ },
2372
+ "then": {
2373
+ "properties": {
2374
+ "action_label": {
2375
+ "const": "Switch to monthly at period end"
2376
+ }
2377
+ }
2378
+ }
2379
+ },
2380
+ {
2381
+ "if": {
2382
+ "properties": {
2383
+ "text_id": {
2384
+ "const": "C4-1168-schedule-downgrade"
2385
+ }
2386
+ },
2387
+ "required": [
2388
+ "text_id"
2389
+ ]
2390
+ },
2391
+ "then": {
2392
+ "properties": {
2393
+ "action_label": {
2394
+ "pattern": "^Schedule downgrade to \\S.*$"
2395
+ }
2396
+ }
2397
+ }
2398
+ },
2399
+ {
2400
+ "if": {
2401
+ "properties": {
2402
+ "text_id": {
2403
+ "const": "C4-1168-cancel"
2404
+ }
2405
+ },
2406
+ "required": [
2407
+ "text_id"
2408
+ ]
2409
+ },
2410
+ "then": {
2411
+ "properties": {
2412
+ "action_label": {
2413
+ "const": "Cancel at period end"
2414
+ }
2415
+ }
2416
+ }
2417
+ }
2418
+ ]
2419
+ },
2420
+ "expires_at": {
2421
+ "type": "string",
2422
+ "allOf": [
2423
+ {
2424
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
2425
+ },
2426
+ {
2427
+ "pattern": "Z$"
2428
+ }
2429
+ ]
2430
+ },
2431
+ "decision_kind": {
2432
+ "type": "string",
2433
+ "const": "paid_change"
2434
+ },
2435
+ "selection": {
2436
+ "type": "object",
2437
+ "properties": {
2438
+ "plan": {
2439
+ "type": "string",
2440
+ "enum": [
2441
+ "basic",
2442
+ "plus",
2443
+ "pro"
2444
+ ]
2445
+ },
2446
+ "cycle": {
2447
+ "type": "string",
2448
+ "enum": [
2449
+ "monthly",
2450
+ "yearly"
2451
+ ]
2452
+ },
2453
+ "addons": {
2454
+ "type": "object",
2455
+ "properties": {
2456
+ "seats": {
2457
+ "type": "integer",
2458
+ "minimum": 0,
2459
+ "maximum": 9007199254740991,
2460
+ "description": "Extra developer seats, one each."
2461
+ },
2462
+ "robots": {
2463
+ "type": "integer",
2464
+ "minimum": 0,
2465
+ "maximum": 9007199254740991,
2466
+ "description": "Extra robots, one each."
2467
+ },
2468
+ "apps": {
2469
+ "type": "integer",
2470
+ "minimum": 0,
2471
+ "maximum": 9007199254740991,
2472
+ "description": "Extra apps, one each."
2473
+ },
2474
+ "app_user_packs": {
2475
+ "type": "integer",
2476
+ "minimum": 0,
2477
+ "maximum": 9007199254740991,
2478
+ "description": "Packs of five extra app users."
2479
+ },
2480
+ "live_video_packs": {
2481
+ "type": "integer",
2482
+ "minimum": 0,
2483
+ "maximum": 9007199254740991,
2484
+ "description": "Packs of 250 extra hours of app-user live video per month."
2485
+ }
2486
+ },
2487
+ "required": [
2488
+ "seats",
2489
+ "robots",
2490
+ "apps",
2491
+ "app_user_packs",
2492
+ "live_video_packs"
2493
+ ],
2494
+ "additionalProperties": false
2495
+ }
2496
+ },
2497
+ "required": [
2498
+ "plan",
2499
+ "cycle",
2500
+ "addons"
2501
+ ],
2502
+ "additionalProperties": false
2503
+ }
2504
+ },
2505
+ "required": [
2506
+ "snapshot_id",
2507
+ "decision_id",
2508
+ "operation_key",
2509
+ "owner_id",
2510
+ "organization_id",
2511
+ "organization_name",
2512
+ "quote_revision",
2513
+ "buyer_fingerprint",
2514
+ "amounts",
2515
+ "period",
2516
+ "future_price_replacement",
2517
+ "declaration",
2518
+ "expires_at",
2519
+ "decision_kind",
2520
+ "selection"
2521
+ ],
2522
+ "additionalProperties": false
2523
+ },
2524
+ {
2525
+ "type": "object",
2526
+ "properties": {
2527
+ "snapshot_id": {
2528
+ "type": "string",
2529
+ "format": "uuid",
2530
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
2531
+ },
2532
+ "decision_id": {
2533
+ "type": "string",
2534
+ "format": "uuid",
2535
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
2536
+ },
2537
+ "operation_key": {
2538
+ "type": "string",
2539
+ "format": "uuid",
2540
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
2541
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
2542
+ },
2543
+ "owner_id": {
2544
+ "type": "string",
2545
+ "format": "uuid",
2546
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
2547
+ },
2548
+ "organization_id": {
2549
+ "type": "string",
2550
+ "format": "uuid",
2551
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
2552
+ },
2553
+ "organization_name": {
2554
+ "type": "string",
2555
+ "minLength": 1
2556
+ },
2557
+ "quote_revision": {
2558
+ "type": "string",
2559
+ "minLength": 1,
2560
+ "maxLength": 200,
2561
+ "description": "Opaque revision of the displayed quote; echo it when confirming."
2562
+ },
2563
+ "buyer_fingerprint": {
2564
+ "type": "string",
2565
+ "minLength": 1,
2566
+ "maxLength": 200,
2567
+ "description": "Opaque revision of buyer details and email policy; never full VIES evidence."
2568
+ },
2569
+ "amounts": {
2570
+ "type": "object",
2571
+ "properties": {
2572
+ "currency": {
2573
+ "type": "string",
2574
+ "const": "eur"
2575
+ },
2576
+ "quote": {
2577
+ "type": "object",
2578
+ "properties": {
2579
+ "currency": {
2580
+ "type": "string",
2581
+ "const": "eur",
2582
+ "description": "Every new quote is in EUR."
2583
+ },
2584
+ "net_cents": {
2585
+ "type": "integer",
2586
+ "minimum": 0,
2587
+ "maximum": 9007199254740991,
2588
+ "description": "Current charge excluding VAT, in cents."
2589
+ },
2590
+ "vat_cents": {
2591
+ "type": "integer",
2592
+ "minimum": 0,
2593
+ "maximum": 9007199254740991,
2594
+ "description": "VAT on the current charge, in cents."
2595
+ },
2596
+ "gross_cents": {
2597
+ "type": "integer",
2598
+ "minimum": 0,
2599
+ "maximum": 9007199254740991,
2600
+ "description": "Total to confirm, including VAT, in cents."
2601
+ },
2602
+ "rate_percent": {
2603
+ "type": "integer",
2604
+ "minimum": 0,
2605
+ "maximum": 100,
2606
+ "description": "VAT rate in whole percent."
2607
+ }
2608
+ },
2609
+ "required": [
2610
+ "currency",
2611
+ "net_cents",
2612
+ "vat_cents",
2613
+ "gross_cents",
2614
+ "rate_percent"
2615
+ ],
2616
+ "additionalProperties": false
2617
+ },
2618
+ "plan_net_cents": {
2619
+ "type": "integer",
2620
+ "minimum": 0,
2621
+ "maximum": 9007199254740991
2622
+ },
2623
+ "addon_lines": {
2624
+ "type": "array",
2625
+ "items": {
2626
+ "type": "object",
2627
+ "properties": {
2628
+ "addon": {
2629
+ "type": "string",
2630
+ "enum": [
2631
+ "seats",
2632
+ "robots",
2633
+ "apps",
2634
+ "app_user_packs",
2635
+ "live_video_packs"
2636
+ ]
2637
+ },
2638
+ "quantity": {
2639
+ "type": "integer",
2640
+ "exclusiveMinimum": 0,
2641
+ "maximum": 9007199254740991
2642
+ },
2643
+ "net_cents": {
2644
+ "type": "integer",
2645
+ "minimum": 0,
2646
+ "maximum": 9007199254740991
2647
+ }
2648
+ },
2649
+ "required": [
2650
+ "addon",
2651
+ "quantity",
2652
+ "net_cents"
2653
+ ],
2654
+ "additionalProperties": false
2655
+ }
2656
+ },
2657
+ "period_net_cents": {
2658
+ "type": "integer",
2659
+ "minimum": 0,
2660
+ "maximum": 9007199254740991
2661
+ },
2662
+ "period_vat_cents": {
2663
+ "type": "integer",
2664
+ "minimum": 0,
2665
+ "maximum": 9007199254740991
2666
+ },
2667
+ "period_gross_cents": {
2668
+ "type": "integer",
2669
+ "minimum": 0,
2670
+ "maximum": 9007199254740991
2671
+ },
2672
+ "vat_treatment": {
2673
+ "type": "string",
2674
+ "enum": [
2675
+ "de_standard",
2676
+ "reverse_charge",
2677
+ "outside_eu"
2678
+ ]
2679
+ },
2680
+ "vat_treatment_line": {
2681
+ "type": "string",
2682
+ "minLength": 1
2683
+ },
2684
+ "due_today_gross_cents": {
2685
+ "type": "integer",
2686
+ "minimum": 0,
2687
+ "maximum": 9007199254740991
2688
+ },
2689
+ "prorated_net_cents": {
2690
+ "anyOf": [
2691
+ {
2692
+ "type": "integer",
2693
+ "minimum": 0,
2694
+ "maximum": 9007199254740991
2695
+ },
2696
+ {
2697
+ "type": "null"
2698
+ }
2699
+ ]
2700
+ },
2701
+ "renewal_net_cents": {
2702
+ "type": "integer",
2703
+ "minimum": 0,
2704
+ "maximum": 9007199254740991
2705
+ }
2706
+ },
2707
+ "required": [
2708
+ "currency",
2709
+ "quote",
2710
+ "plan_net_cents",
2711
+ "addon_lines",
2712
+ "period_net_cents",
2713
+ "period_vat_cents",
2714
+ "period_gross_cents",
2715
+ "vat_treatment",
2716
+ "vat_treatment_line",
2717
+ "due_today_gross_cents",
2718
+ "prorated_net_cents",
2719
+ "renewal_net_cents"
2720
+ ],
2721
+ "additionalProperties": false,
2722
+ "allOf": [
2723
+ {
2724
+ "if": {
2725
+ "properties": {
2726
+ "vat_treatment": {
2727
+ "const": "de_standard"
2728
+ }
2729
+ },
2730
+ "required": [
2731
+ "vat_treatment"
2732
+ ]
2733
+ },
2734
+ "then": {
2735
+ "properties": {
2736
+ "quote": {
2737
+ "properties": {
2738
+ "rate_percent": {
2739
+ "const": 19
2740
+ }
2741
+ }
2742
+ }
2743
+ }
2744
+ }
2745
+ },
2746
+ {
2747
+ "if": {
2748
+ "properties": {
2749
+ "vat_treatment": {
2750
+ "const": "reverse_charge"
2751
+ }
2752
+ },
2753
+ "required": [
2754
+ "vat_treatment"
2755
+ ]
2756
+ },
2757
+ "then": {
2758
+ "properties": {
2759
+ "quote": {
2760
+ "properties": {
2761
+ "rate_percent": {
2762
+ "const": 0
2763
+ },
2764
+ "vat_cents": {
2765
+ "const": 0
2766
+ }
2767
+ }
2768
+ },
2769
+ "period_vat_cents": {
2770
+ "const": 0
2771
+ },
2772
+ "vat_treatment_line": {
2773
+ "const": "Reverse charge — VAT payable by the recipient"
2774
+ }
2775
+ }
2776
+ }
2777
+ },
2778
+ {
2779
+ "if": {
2780
+ "properties": {
2781
+ "vat_treatment": {
2782
+ "const": "outside_eu"
2783
+ }
2784
+ },
2785
+ "required": [
2786
+ "vat_treatment"
2787
+ ]
2788
+ },
2789
+ "then": {
2790
+ "properties": {
2791
+ "quote": {
2792
+ "properties": {
2793
+ "rate_percent": {
2794
+ "const": 0
2795
+ },
2796
+ "vat_cents": {
2797
+ "const": 0
2798
+ }
2799
+ }
2800
+ },
2801
+ "period_vat_cents": {
2802
+ "const": 0
2803
+ },
2804
+ "vat_treatment_line": {
2805
+ "const": "Not taxable in Germany"
2806
+ }
2807
+ }
2808
+ }
2809
+ }
2810
+ ]
2811
+ },
2812
+ "period": {
2813
+ "type": "object",
2814
+ "properties": {
2815
+ "anchor": {
2816
+ "type": "string",
2817
+ "const": "existing_period"
2818
+ },
2819
+ "display_time_zone": {
2820
+ "type": "string",
2821
+ "enum": [
2822
+ "UTC",
2823
+ "Etc/UTC",
2824
+ "Etc/GMT",
2825
+ "Africa/Abidjan",
2826
+ "Africa/Accra",
2827
+ "Africa/Addis_Ababa",
2828
+ "Africa/Algiers",
2829
+ "Africa/Asmera",
2830
+ "Africa/Bamako",
2831
+ "Africa/Bangui",
2832
+ "Africa/Banjul",
2833
+ "Africa/Bissau",
2834
+ "Africa/Blantyre",
2835
+ "Africa/Brazzaville",
2836
+ "Africa/Bujumbura",
2837
+ "Africa/Cairo",
2838
+ "Africa/Casablanca",
2839
+ "Africa/Ceuta",
2840
+ "Africa/Conakry",
2841
+ "Africa/Dakar",
2842
+ "Africa/Dar_es_Salaam",
2843
+ "Africa/Djibouti",
2844
+ "Africa/Douala",
2845
+ "Africa/El_Aaiun",
2846
+ "Africa/Freetown",
2847
+ "Africa/Gaborone",
2848
+ "Africa/Harare",
2849
+ "Africa/Johannesburg",
2850
+ "Africa/Juba",
2851
+ "Africa/Kampala",
2852
+ "Africa/Khartoum",
2853
+ "Africa/Kigali",
2854
+ "Africa/Kinshasa",
2855
+ "Africa/Lagos",
2856
+ "Africa/Libreville",
2857
+ "Africa/Lome",
2858
+ "Africa/Luanda",
2859
+ "Africa/Lubumbashi",
2860
+ "Africa/Lusaka",
2861
+ "Africa/Malabo",
2862
+ "Africa/Maputo",
2863
+ "Africa/Maseru",
2864
+ "Africa/Mbabane",
2865
+ "Africa/Mogadishu",
2866
+ "Africa/Monrovia",
2867
+ "Africa/Nairobi",
2868
+ "Africa/Ndjamena",
2869
+ "Africa/Niamey",
2870
+ "Africa/Nouakchott",
2871
+ "Africa/Ouagadougou",
2872
+ "Africa/Porto-Novo",
2873
+ "Africa/Sao_Tome",
2874
+ "Africa/Tripoli",
2875
+ "Africa/Tunis",
2876
+ "Africa/Windhoek",
2877
+ "America/Adak",
2878
+ "America/Anchorage",
2879
+ "America/Anguilla",
2880
+ "America/Antigua",
2881
+ "America/Araguaina",
2882
+ "America/Argentina/La_Rioja",
2883
+ "America/Argentina/Rio_Gallegos",
2884
+ "America/Argentina/Salta",
2885
+ "America/Argentina/San_Juan",
2886
+ "America/Argentina/San_Luis",
2887
+ "America/Argentina/Tucuman",
2888
+ "America/Argentina/Ushuaia",
2889
+ "America/Aruba",
2890
+ "America/Asuncion",
2891
+ "America/Bahia",
2892
+ "America/Bahia_Banderas",
2893
+ "America/Barbados",
2894
+ "America/Belem",
2895
+ "America/Belize",
2896
+ "America/Blanc-Sablon",
2897
+ "America/Boa_Vista",
2898
+ "America/Bogota",
2899
+ "America/Boise",
2900
+ "America/Buenos_Aires",
2901
+ "America/Cambridge_Bay",
2902
+ "America/Campo_Grande",
2903
+ "America/Cancun",
2904
+ "America/Caracas",
2905
+ "America/Catamarca",
2906
+ "America/Cayenne",
2907
+ "America/Cayman",
2908
+ "America/Chicago",
2909
+ "America/Chihuahua",
2910
+ "America/Ciudad_Juarez",
2911
+ "America/Coral_Harbour",
2912
+ "America/Cordoba",
2913
+ "America/Costa_Rica",
2914
+ "America/Coyhaique",
2915
+ "America/Creston",
2916
+ "America/Cuiaba",
2917
+ "America/Curacao",
2918
+ "America/Danmarkshavn",
2919
+ "America/Dawson",
2920
+ "America/Dawson_Creek",
2921
+ "America/Denver",
2922
+ "America/Detroit",
2923
+ "America/Dominica",
2924
+ "America/Edmonton",
2925
+ "America/Eirunepe",
2926
+ "America/El_Salvador",
2927
+ "America/Fort_Nelson",
2928
+ "America/Fortaleza",
2929
+ "America/Glace_Bay",
2930
+ "America/Godthab",
2931
+ "America/Goose_Bay",
2932
+ "America/Grand_Turk",
2933
+ "America/Grenada",
2934
+ "America/Guadeloupe",
2935
+ "America/Guatemala",
2936
+ "America/Guayaquil",
2937
+ "America/Guyana",
2938
+ "America/Halifax",
2939
+ "America/Havana",
2940
+ "America/Hermosillo",
2941
+ "America/Indiana/Knox",
2942
+ "America/Indiana/Marengo",
2943
+ "America/Indiana/Petersburg",
2944
+ "America/Indiana/Tell_City",
2945
+ "America/Indiana/Vevay",
2946
+ "America/Indiana/Vincennes",
2947
+ "America/Indiana/Winamac",
2948
+ "America/Indianapolis",
2949
+ "America/Inuvik",
2950
+ "America/Iqaluit",
2951
+ "America/Jamaica",
2952
+ "America/Jujuy",
2953
+ "America/Juneau",
2954
+ "America/Kentucky/Monticello",
2955
+ "America/Kralendijk",
2956
+ "America/La_Paz",
2957
+ "America/Lima",
2958
+ "America/Los_Angeles",
2959
+ "America/Louisville",
2960
+ "America/Lower_Princes",
2961
+ "America/Maceio",
2962
+ "America/Managua",
2963
+ "America/Manaus",
2964
+ "America/Marigot",
2965
+ "America/Martinique",
2966
+ "America/Matamoros",
2967
+ "America/Mazatlan",
2968
+ "America/Mendoza",
2969
+ "America/Menominee",
2970
+ "America/Merida",
2971
+ "America/Metlakatla",
2972
+ "America/Mexico_City",
2973
+ "America/Miquelon",
2974
+ "America/Moncton",
2975
+ "America/Monterrey",
2976
+ "America/Montevideo",
2977
+ "America/Montserrat",
2978
+ "America/Nassau",
2979
+ "America/New_York",
2980
+ "America/Nome",
2981
+ "America/Noronha",
2982
+ "America/North_Dakota/Beulah",
2983
+ "America/North_Dakota/Center",
2984
+ "America/North_Dakota/New_Salem",
2985
+ "America/Ojinaga",
2986
+ "America/Panama",
2987
+ "America/Paramaribo",
2988
+ "America/Phoenix",
2989
+ "America/Port-au-Prince",
2990
+ "America/Port_of_Spain",
2991
+ "America/Porto_Velho",
2992
+ "America/Puerto_Rico",
2993
+ "America/Punta_Arenas",
2994
+ "America/Rankin_Inlet",
2995
+ "America/Recife",
2996
+ "America/Regina",
2997
+ "America/Resolute",
2998
+ "America/Rio_Branco",
2999
+ "America/Santarem",
3000
+ "America/Santiago",
3001
+ "America/Santo_Domingo",
3002
+ "America/Sao_Paulo",
3003
+ "America/Scoresbysund",
3004
+ "America/Sitka",
3005
+ "America/St_Barthelemy",
3006
+ "America/St_Johns",
3007
+ "America/St_Kitts",
3008
+ "America/St_Lucia",
3009
+ "America/St_Thomas",
3010
+ "America/St_Vincent",
3011
+ "America/Swift_Current",
3012
+ "America/Tegucigalpa",
3013
+ "America/Thule",
3014
+ "America/Tijuana",
3015
+ "America/Toronto",
3016
+ "America/Tortola",
3017
+ "America/Vancouver",
3018
+ "America/Whitehorse",
3019
+ "America/Winnipeg",
3020
+ "America/Yakutat",
3021
+ "Antarctica/Casey",
3022
+ "Antarctica/Davis",
3023
+ "Antarctica/DumontDUrville",
3024
+ "Antarctica/Macquarie",
3025
+ "Antarctica/Mawson",
3026
+ "Antarctica/McMurdo",
3027
+ "Antarctica/Palmer",
3028
+ "Antarctica/Rothera",
3029
+ "Antarctica/Syowa",
3030
+ "Antarctica/Troll",
3031
+ "Antarctica/Vostok",
3032
+ "Arctic/Longyearbyen",
3033
+ "Asia/Aden",
3034
+ "Asia/Almaty",
3035
+ "Asia/Amman",
3036
+ "Asia/Anadyr",
3037
+ "Asia/Aqtau",
3038
+ "Asia/Aqtobe",
3039
+ "Asia/Ashgabat",
3040
+ "Asia/Atyrau",
3041
+ "Asia/Baghdad",
3042
+ "Asia/Bahrain",
3043
+ "Asia/Baku",
3044
+ "Asia/Bangkok",
3045
+ "Asia/Barnaul",
3046
+ "Asia/Beirut",
3047
+ "Asia/Bishkek",
3048
+ "Asia/Brunei",
3049
+ "Asia/Calcutta",
3050
+ "Asia/Chita",
3051
+ "Asia/Colombo",
3052
+ "Asia/Damascus",
3053
+ "Asia/Dhaka",
3054
+ "Asia/Dili",
3055
+ "Asia/Dubai",
3056
+ "Asia/Dushanbe",
3057
+ "Asia/Famagusta",
3058
+ "Asia/Gaza",
3059
+ "Asia/Hebron",
3060
+ "Asia/Hong_Kong",
3061
+ "Asia/Hovd",
3062
+ "Asia/Irkutsk",
3063
+ "Asia/Jakarta",
3064
+ "Asia/Jayapura",
3065
+ "Asia/Jerusalem",
3066
+ "Asia/Kabul",
3067
+ "Asia/Kamchatka",
3068
+ "Asia/Karachi",
3069
+ "Asia/Katmandu",
3070
+ "Asia/Khandyga",
3071
+ "Asia/Krasnoyarsk",
3072
+ "Asia/Kuala_Lumpur",
3073
+ "Asia/Kuching",
3074
+ "Asia/Kuwait",
3075
+ "Asia/Macau",
3076
+ "Asia/Magadan",
3077
+ "Asia/Makassar",
3078
+ "Asia/Manila",
3079
+ "Asia/Muscat",
3080
+ "Asia/Nicosia",
3081
+ "Asia/Novokuznetsk",
3082
+ "Asia/Novosibirsk",
3083
+ "Asia/Omsk",
3084
+ "Asia/Oral",
3085
+ "Asia/Phnom_Penh",
3086
+ "Asia/Pontianak",
3087
+ "Asia/Pyongyang",
3088
+ "Asia/Qatar",
3089
+ "Asia/Qostanay",
3090
+ "Asia/Qyzylorda",
3091
+ "Asia/Rangoon",
3092
+ "Asia/Riyadh",
3093
+ "Asia/Saigon",
3094
+ "Asia/Sakhalin",
3095
+ "Asia/Samarkand",
3096
+ "Asia/Seoul",
3097
+ "Asia/Shanghai",
3098
+ "Asia/Singapore",
3099
+ "Asia/Srednekolymsk",
3100
+ "Asia/Taipei",
3101
+ "Asia/Tashkent",
3102
+ "Asia/Tbilisi",
3103
+ "Asia/Tehran",
3104
+ "Asia/Thimphu",
3105
+ "Asia/Tokyo",
3106
+ "Asia/Tomsk",
3107
+ "Asia/Ulaanbaatar",
3108
+ "Asia/Urumqi",
3109
+ "Asia/Ust-Nera",
3110
+ "Asia/Vientiane",
3111
+ "Asia/Vladivostok",
3112
+ "Asia/Yakutsk",
3113
+ "Asia/Yekaterinburg",
3114
+ "Asia/Yerevan",
3115
+ "Atlantic/Azores",
3116
+ "Atlantic/Bermuda",
3117
+ "Atlantic/Canary",
3118
+ "Atlantic/Cape_Verde",
3119
+ "Atlantic/Faeroe",
3120
+ "Atlantic/Madeira",
3121
+ "Atlantic/Reykjavik",
3122
+ "Atlantic/South_Georgia",
3123
+ "Atlantic/St_Helena",
3124
+ "Atlantic/Stanley",
3125
+ "Australia/Adelaide",
3126
+ "Australia/Brisbane",
3127
+ "Australia/Broken_Hill",
3128
+ "Australia/Darwin",
3129
+ "Australia/Eucla",
3130
+ "Australia/Hobart",
3131
+ "Australia/Lindeman",
3132
+ "Australia/Lord_Howe",
3133
+ "Australia/Melbourne",
3134
+ "Australia/Perth",
3135
+ "Australia/Sydney",
3136
+ "Europe/Amsterdam",
3137
+ "Europe/Andorra",
3138
+ "Europe/Astrakhan",
3139
+ "Europe/Athens",
3140
+ "Europe/Belgrade",
3141
+ "Europe/Berlin",
3142
+ "Europe/Bratislava",
3143
+ "Europe/Brussels",
3144
+ "Europe/Bucharest",
3145
+ "Europe/Budapest",
3146
+ "Europe/Busingen",
3147
+ "Europe/Chisinau",
3148
+ "Europe/Copenhagen",
3149
+ "Europe/Dublin",
3150
+ "Europe/Gibraltar",
3151
+ "Europe/Guernsey",
3152
+ "Europe/Helsinki",
3153
+ "Europe/Isle_of_Man",
3154
+ "Europe/Istanbul",
3155
+ "Europe/Jersey",
3156
+ "Europe/Kaliningrad",
3157
+ "Europe/Kiev",
3158
+ "Europe/Kirov",
3159
+ "Europe/Lisbon",
3160
+ "Europe/Ljubljana",
3161
+ "Europe/London",
3162
+ "Europe/Luxembourg",
3163
+ "Europe/Madrid",
3164
+ "Europe/Malta",
3165
+ "Europe/Mariehamn",
3166
+ "Europe/Minsk",
3167
+ "Europe/Monaco",
3168
+ "Europe/Moscow",
3169
+ "Europe/Oslo",
3170
+ "Europe/Paris",
3171
+ "Europe/Podgorica",
3172
+ "Europe/Prague",
3173
+ "Europe/Riga",
3174
+ "Europe/Rome",
3175
+ "Europe/Samara",
3176
+ "Europe/San_Marino",
3177
+ "Europe/Sarajevo",
3178
+ "Europe/Saratov",
3179
+ "Europe/Simferopol",
3180
+ "Europe/Skopje",
3181
+ "Europe/Sofia",
3182
+ "Europe/Stockholm",
3183
+ "Europe/Tallinn",
3184
+ "Europe/Tirane",
3185
+ "Europe/Ulyanovsk",
3186
+ "Europe/Vaduz",
3187
+ "Europe/Vatican",
3188
+ "Europe/Vienna",
3189
+ "Europe/Vilnius",
3190
+ "Europe/Volgograd",
3191
+ "Europe/Warsaw",
3192
+ "Europe/Zagreb",
3193
+ "Europe/Zurich",
3194
+ "Indian/Antananarivo",
3195
+ "Indian/Chagos",
3196
+ "Indian/Christmas",
3197
+ "Indian/Cocos",
3198
+ "Indian/Comoro",
3199
+ "Indian/Kerguelen",
3200
+ "Indian/Mahe",
3201
+ "Indian/Maldives",
3202
+ "Indian/Mauritius",
3203
+ "Indian/Mayotte",
3204
+ "Indian/Reunion",
3205
+ "Pacific/Apia",
3206
+ "Pacific/Auckland",
3207
+ "Pacific/Bougainville",
3208
+ "Pacific/Chatham",
3209
+ "Pacific/Easter",
3210
+ "Pacific/Efate",
3211
+ "Pacific/Enderbury",
3212
+ "Pacific/Fakaofo",
3213
+ "Pacific/Fiji",
3214
+ "Pacific/Funafuti",
3215
+ "Pacific/Galapagos",
3216
+ "Pacific/Gambier",
3217
+ "Pacific/Guadalcanal",
3218
+ "Pacific/Guam",
3219
+ "Pacific/Honolulu",
3220
+ "Pacific/Kiritimati",
3221
+ "Pacific/Kosrae",
3222
+ "Pacific/Kwajalein",
3223
+ "Pacific/Majuro",
3224
+ "Pacific/Marquesas",
3225
+ "Pacific/Midway",
3226
+ "Pacific/Nauru",
3227
+ "Pacific/Niue",
3228
+ "Pacific/Norfolk",
3229
+ "Pacific/Noumea",
3230
+ "Pacific/Pago_Pago",
3231
+ "Pacific/Palau",
3232
+ "Pacific/Pitcairn",
3233
+ "Pacific/Ponape",
3234
+ "Pacific/Port_Moresby",
3235
+ "Pacific/Rarotonga",
3236
+ "Pacific/Saipan",
3237
+ "Pacific/Tahiti",
3238
+ "Pacific/Tarawa",
3239
+ "Pacific/Tongatapu",
3240
+ "Pacific/Truk",
3241
+ "Pacific/Wake",
3242
+ "Pacific/Wallis"
3243
+ ]
3244
+ },
3245
+ "starts_on": {
3246
+ "type": "string",
3247
+ "format": "date",
3248
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
3249
+ },
3250
+ "starts_at": {
3251
+ "anyOf": [
3252
+ {
3253
+ "type": "string",
3254
+ "allOf": [
3255
+ {
3256
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
3257
+ },
3258
+ {
3259
+ "pattern": "Z$"
3260
+ }
3261
+ ]
3262
+ },
3263
+ {
3264
+ "type": "null"
3265
+ }
3266
+ ]
3267
+ },
3268
+ "current_period_ends_at": {
3269
+ "type": "string",
3270
+ "allOf": [
3271
+ {
3272
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
3273
+ },
3274
+ {
3275
+ "pattern": "Z$"
3276
+ }
3277
+ ]
3278
+ },
3279
+ "renews_at": {
3280
+ "type": "string",
3281
+ "allOf": [
3282
+ {
3283
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
3284
+ },
3285
+ {
3286
+ "pattern": "Z$"
3287
+ }
3288
+ ]
3289
+ },
3290
+ "effective": {
3291
+ "oneOf": [
3292
+ {
3293
+ "type": "object",
3294
+ "properties": {
3295
+ "mode": {
3296
+ "type": "string",
3297
+ "const": "on_confirmation"
3298
+ },
3299
+ "quoted_as_of_at": {
3300
+ "type": "string",
3301
+ "allOf": [
3302
+ {
3303
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
3304
+ },
3305
+ {
3306
+ "pattern": "Z$"
3307
+ }
3308
+ ]
3309
+ },
3310
+ "local_date": {
3311
+ "type": "string",
3312
+ "format": "date",
3313
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
3314
+ }
3315
+ },
3316
+ "required": [
3317
+ "mode",
3318
+ "quoted_as_of_at",
3319
+ "local_date"
3320
+ ],
3321
+ "additionalProperties": false
3322
+ },
3323
+ {
3324
+ "type": "object",
3325
+ "properties": {
3326
+ "mode": {
3327
+ "type": "string",
3328
+ "const": "scheduled"
3329
+ },
3330
+ "at": {
3331
+ "type": "string",
3332
+ "allOf": [
3333
+ {
3334
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
3335
+ },
3336
+ {
3337
+ "pattern": "Z$"
3338
+ }
3339
+ ]
3340
+ },
3341
+ "at_period_end": {
3342
+ "type": "boolean"
3343
+ }
3344
+ },
3345
+ "required": [
3346
+ "mode",
3347
+ "at",
3348
+ "at_period_end"
3349
+ ],
3350
+ "additionalProperties": false
3351
+ }
3352
+ ]
3353
+ }
3354
+ },
3355
+ "required": [
3356
+ "anchor",
3357
+ "display_time_zone",
3358
+ "starts_on",
3359
+ "starts_at",
3360
+ "current_period_ends_at",
3361
+ "renews_at",
3362
+ "effective"
3363
+ ],
3364
+ "additionalProperties": false
3365
+ },
3366
+ "future_price_replacement": {
3367
+ "anyOf": [
3368
+ {
3369
+ "type": "object",
3370
+ "properties": {
3371
+ "agreement_id": {
3372
+ "type": "string",
3373
+ "format": "uuid",
3374
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
3375
+ },
3376
+ "text": {
3377
+ "type": "string",
3378
+ "minLength": 1,
3379
+ "pattern": "\\S"
3380
+ }
3381
+ },
3382
+ "required": [
3383
+ "agreement_id",
3384
+ "text"
3385
+ ],
3386
+ "additionalProperties": false
3387
+ },
3388
+ {
3389
+ "type": "null"
3390
+ }
3391
+ ]
3392
+ },
3393
+ "declaration": {
3394
+ "type": "object",
3395
+ "properties": {
3396
+ "text_id": {
3397
+ "type": "string",
3398
+ "enum": [
3399
+ "C4-1168-checkout",
3400
+ "C4-1168-pay-and-switch",
3401
+ "C4-1168-switch",
3402
+ "C4-1168-schedule-switch",
3403
+ "C4-1168-schedule-downgrade",
3404
+ "C4-1168-cancel"
3405
+ ],
3406
+ "description": "The approved sentence this display shows, one per action."
3407
+ },
3408
+ "text": {
3409
+ "type": "string",
3410
+ "minLength": 1,
3411
+ "pattern": "^By selecting “",
3412
+ "description": "The consent sentence shown directly above the button, naming the button."
3413
+ },
3414
+ "action_label": {
3415
+ "type": "string",
3416
+ "minLength": 1,
3417
+ "description": "The label of the one button that confirms this decision."
3418
+ },
3419
+ "terms": {
3420
+ "type": "object",
3421
+ "properties": {
3422
+ "version": {
3423
+ "type": "string",
3424
+ "minLength": 1,
3425
+ "maxLength": 80
3426
+ },
3427
+ "version_date": {
3428
+ "type": "string",
3429
+ "format": "date",
3430
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
3431
+ },
3432
+ "url": {
3433
+ "type": "string",
3434
+ "maxLength": 2048,
3435
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
3436
+ "format": "uri"
3437
+ }
3438
+ },
3439
+ "required": [
3440
+ "version",
3441
+ "version_date",
3442
+ "url"
3443
+ ],
3444
+ "additionalProperties": false
3445
+ },
3446
+ "dpa": {
3447
+ "type": "object",
3448
+ "properties": {
3449
+ "version": {
3450
+ "type": "string",
3451
+ "minLength": 1,
3452
+ "maxLength": 80
3453
+ },
3454
+ "version_date": {
3455
+ "type": "string",
3456
+ "format": "date",
3457
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
3458
+ },
3459
+ "url": {
3460
+ "type": "string",
3461
+ "maxLength": 2048,
3462
+ "pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
3463
+ "format": "uri"
3464
+ }
3465
+ },
3466
+ "required": [
3467
+ "version",
3468
+ "version_date",
3469
+ "url"
3470
+ ],
3471
+ "additionalProperties": false
3472
+ }
3473
+ },
3474
+ "required": [
3475
+ "text_id",
3476
+ "text",
3477
+ "action_label",
3478
+ "terms",
3479
+ "dpa"
3480
+ ],
3481
+ "additionalProperties": false,
3482
+ "allOf": [
3483
+ {
3484
+ "if": {
3485
+ "properties": {
3486
+ "text_id": {
3487
+ "const": "C4-1168-checkout"
3488
+ }
3489
+ },
3490
+ "required": [
3491
+ "text_id"
3492
+ ]
3493
+ },
3494
+ "then": {
3495
+ "properties": {
3496
+ "action_label": {
3497
+ "pattern": "^Pay \\S.* with Mollie$"
3498
+ }
3499
+ }
3500
+ }
3501
+ },
3502
+ {
3503
+ "if": {
3504
+ "properties": {
3505
+ "text_id": {
3506
+ "const": "C4-1168-pay-and-switch"
3507
+ }
3508
+ },
3509
+ "required": [
3510
+ "text_id"
3511
+ ]
3512
+ },
3513
+ "then": {
3514
+ "properties": {
3515
+ "action_label": {
3516
+ "pattern": "^Pay \\S.* and switch$"
3517
+ }
3518
+ }
3519
+ }
3520
+ },
3521
+ {
3522
+ "if": {
3523
+ "properties": {
3524
+ "text_id": {
3525
+ "const": "C4-1168-switch"
3526
+ }
3527
+ },
3528
+ "required": [
3529
+ "text_id"
3530
+ ]
3531
+ },
3532
+ "then": {
3533
+ "properties": {
3534
+ "action_label": {
3535
+ "pattern": "^Switch to \\S.*$"
3536
+ }
3537
+ }
3538
+ }
3539
+ },
3540
+ {
3541
+ "if": {
3542
+ "properties": {
3543
+ "text_id": {
3544
+ "const": "C4-1168-schedule-switch"
3545
+ }
3546
+ },
3547
+ "required": [
3548
+ "text_id"
3549
+ ]
3550
+ },
3551
+ "then": {
3552
+ "properties": {
3553
+ "action_label": {
3554
+ "const": "Switch to monthly at period end"
3555
+ }
3556
+ }
3557
+ }
3558
+ },
3559
+ {
3560
+ "if": {
3561
+ "properties": {
3562
+ "text_id": {
3563
+ "const": "C4-1168-schedule-downgrade"
3564
+ }
3565
+ },
3566
+ "required": [
3567
+ "text_id"
3568
+ ]
3569
+ },
3570
+ "then": {
3571
+ "properties": {
3572
+ "action_label": {
3573
+ "pattern": "^Schedule downgrade to \\S.*$"
3574
+ }
3575
+ }
3576
+ }
3577
+ },
3578
+ {
3579
+ "if": {
3580
+ "properties": {
3581
+ "text_id": {
3582
+ "const": "C4-1168-cancel"
3583
+ }
3584
+ },
3585
+ "required": [
3586
+ "text_id"
3587
+ ]
3588
+ },
3589
+ "then": {
3590
+ "properties": {
3591
+ "action_label": {
3592
+ "const": "Cancel at period end"
3593
+ }
3594
+ }
3595
+ }
3596
+ }
3597
+ ]
3598
+ },
3599
+ "expires_at": {
3600
+ "type": "string",
3601
+ "allOf": [
3602
+ {
3603
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
3604
+ },
3605
+ {
3606
+ "pattern": "Z$"
3607
+ }
3608
+ ]
3609
+ },
3610
+ "decision_kind": {
3611
+ "type": "string",
3612
+ "const": "plan_change"
3613
+ },
3614
+ "selection": {
3615
+ "type": "object",
3616
+ "properties": {
3617
+ "plan": {
3618
+ "type": "string",
3619
+ "enum": [
3620
+ "basic",
3621
+ "plus",
3622
+ "pro"
3623
+ ]
3624
+ },
3625
+ "cycle": {
3626
+ "type": "string",
3627
+ "enum": [
3628
+ "monthly",
3629
+ "yearly"
3630
+ ]
3631
+ },
3632
+ "addons": {
3633
+ "type": "object",
3634
+ "properties": {
3635
+ "seats": {
3636
+ "type": "integer",
3637
+ "minimum": 0,
3638
+ "maximum": 9007199254740991,
3639
+ "description": "Extra developer seats, one each."
3640
+ },
3641
+ "robots": {
3642
+ "type": "integer",
3643
+ "minimum": 0,
3644
+ "maximum": 9007199254740991,
3645
+ "description": "Extra robots, one each."
3646
+ },
3647
+ "apps": {
3648
+ "type": "integer",
3649
+ "minimum": 0,
3650
+ "maximum": 9007199254740991,
3651
+ "description": "Extra apps, one each."
3652
+ },
3653
+ "app_user_packs": {
3654
+ "type": "integer",
3655
+ "minimum": 0,
3656
+ "maximum": 9007199254740991,
3657
+ "description": "Packs of five extra app users."
3658
+ },
3659
+ "live_video_packs": {
3660
+ "type": "integer",
3661
+ "minimum": 0,
3662
+ "maximum": 9007199254740991,
3663
+ "description": "Packs of 250 extra hours of app-user live video per month."
3664
+ }
3665
+ },
3666
+ "required": [
3667
+ "seats",
3668
+ "robots",
3669
+ "apps",
3670
+ "app_user_packs",
3671
+ "live_video_packs"
3672
+ ],
3673
+ "additionalProperties": false
3674
+ },
3675
+ "keep": {
3676
+ "anyOf": [
3677
+ {
3678
+ "type": "object",
3679
+ "properties": {
3680
+ "robots": {
3681
+ "type": "array",
3682
+ "items": {
3683
+ "type": "string",
3684
+ "format": "uuid",
3685
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
3686
+ },
3687
+ "description": "The robots that stay, by id. Every other robot is deleted when the change takes effect."
3688
+ },
3689
+ "apps": {
3690
+ "type": "array",
3691
+ "items": {
3692
+ "type": "string",
3693
+ "format": "uuid",
3694
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
3695
+ },
3696
+ "description": "The apps that stay, by id. Every other app is deleted when the change takes effect."
3697
+ },
3698
+ "app_users": {
3699
+ "type": "array",
3700
+ "items": {
3701
+ "type": "string",
3702
+ "format": "uuid",
3703
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
3704
+ },
3705
+ "description": "The app users that stay, by id, across every app. Every other app user is deleted when the change takes effect."
3706
+ },
3707
+ "developers": {
3708
+ "type": "array",
3709
+ "items": {
3710
+ "type": "string",
3711
+ "format": "uuid",
3712
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
3713
+ },
3714
+ "description": "The developers that stay, by user id, owners never among them: every owner stays. Every other developer is removed from the org when the change takes effect."
3715
+ }
3716
+ },
3717
+ "required": [
3718
+ "robots",
3719
+ "apps",
3720
+ "app_users",
3721
+ "developers"
3722
+ ],
3723
+ "additionalProperties": false
3724
+ },
3725
+ {
3726
+ "type": "null"
3727
+ }
3728
+ ]
3729
+ }
3730
+ },
3731
+ "required": [
3732
+ "plan",
3733
+ "cycle",
3734
+ "addons",
3735
+ "keep"
3736
+ ],
3737
+ "additionalProperties": false
3738
+ }
3739
+ },
3740
+ "required": [
3741
+ "snapshot_id",
3742
+ "decision_id",
3743
+ "operation_key",
3744
+ "owner_id",
3745
+ "organization_id",
3746
+ "organization_name",
3747
+ "quote_revision",
3748
+ "buyer_fingerprint",
3749
+ "amounts",
3750
+ "period",
3751
+ "future_price_replacement",
3752
+ "declaration",
3753
+ "expires_at",
3754
+ "decision_kind",
3755
+ "selection"
3756
+ ],
3757
+ "additionalProperties": false
3758
+ }
3759
+ ],
3760
+ "allOf": [
3761
+ {
3762
+ "if": {
3763
+ "properties": {
3764
+ "period": {
3765
+ "properties": {
3766
+ "anchor": {
3767
+ "const": "on_first_successful_payment"
3768
+ },
3769
+ "cycle": {
3770
+ "const": "monthly"
3771
+ }
3772
+ },
3773
+ "required": [
3774
+ "anchor",
3775
+ "cycle"
3776
+ ]
3777
+ }
3778
+ },
3779
+ "required": [
3780
+ "period"
3781
+ ]
3782
+ },
3783
+ "then": {
3784
+ "properties": {
3785
+ "selection": {
3786
+ "properties": {
3787
+ "cycle": {
3788
+ "const": "monthly"
3789
+ }
3790
+ },
3791
+ "required": [
3792
+ "cycle"
3793
+ ]
3794
+ }
3795
+ },
3796
+ "required": [
3797
+ "selection"
3798
+ ]
3799
+ }
3800
+ },
3801
+ {
3802
+ "if": {
3803
+ "properties": {
3804
+ "period": {
3805
+ "properties": {
3806
+ "anchor": {
3807
+ "const": "on_first_successful_payment"
3808
+ },
3809
+ "cycle": {
3810
+ "const": "yearly"
3811
+ }
3812
+ },
3813
+ "required": [
3814
+ "anchor",
3815
+ "cycle"
3816
+ ]
3817
+ }
3818
+ },
3819
+ "required": [
3820
+ "period"
3821
+ ]
3822
+ },
3823
+ "then": {
3824
+ "properties": {
3825
+ "selection": {
3826
+ "properties": {
3827
+ "cycle": {
3828
+ "const": "yearly"
3829
+ }
3830
+ },
3831
+ "required": [
3832
+ "cycle"
3833
+ ]
3834
+ }
3835
+ },
3836
+ "required": [
3837
+ "selection"
3838
+ ]
3839
+ }
3840
+ }
3841
+ ]
3842
+ }
3843
+ },
3844
+ "required": [
3845
+ "confirmation_proof",
3846
+ "expires_at",
3847
+ "snapshot"
3848
+ ],
3849
+ "additionalProperties": false
3850
+ }
3851
+ },
3852
+ "required": [
3853
+ "intent_id",
3854
+ "operation_key",
3855
+ "operation",
3856
+ "state",
3857
+ "quote_revision",
3858
+ "buyer_fingerprint",
3859
+ "quote",
3860
+ "display"
3861
+ ],
3862
+ "additionalProperties": false,
3863
+ "description": "Eligible: the price is frozen and the display shown; one click on its button confirms."
3864
+ },
3865
+ {
3866
+ "type": "object",
3867
+ "properties": {
3868
+ "state": {
3869
+ "type": "string",
3870
+ "const": "vies_unavailable"
3871
+ },
3872
+ "field": {
3873
+ "type": "string",
3874
+ "const": "billing.vat_id"
3875
+ },
3876
+ "reason": {
3877
+ "type": "string",
3878
+ "enum": [
3879
+ "vies_unavailable",
3880
+ "vies_unverified",
3881
+ "vies_identifier_missing"
3882
+ ]
3883
+ }
3884
+ },
3885
+ "required": [
3886
+ "state",
3887
+ "field",
3888
+ "reason"
3889
+ ],
3890
+ "additionalProperties": false,
3891
+ "description": "VIES did not confirm the VAT ID within its retries. Nothing is stored; check again."
3892
+ },
3893
+ {
3894
+ "type": "object",
3895
+ "properties": {
3896
+ "state": {
3897
+ "type": "string",
3898
+ "const": "invalid_vat_id"
3899
+ },
3900
+ "field": {
3901
+ "type": "string",
3902
+ "const": "billing.vat_id"
3903
+ },
3904
+ "rule": {
3905
+ "type": "string",
3906
+ "const": "vat_id_invalid"
3907
+ }
3908
+ },
3909
+ "required": [
3910
+ "state",
3911
+ "field",
3912
+ "rule"
3913
+ ],
3914
+ "additionalProperties": false,
3915
+ "description": "VIES says the VAT ID is invalid. Nothing is stored."
3916
+ },
3917
+ {
3918
+ "type": "object",
3919
+ "properties": {
3920
+ "state": {
3921
+ "type": "string",
3922
+ "const": "refused"
3923
+ },
3924
+ "field": {
3925
+ "type": "string",
3926
+ "minLength": 1
3927
+ },
3928
+ "rule": {
3929
+ "type": "string",
3930
+ "enum": [
3931
+ "company_required",
3932
+ "vat_id_required",
3933
+ "vat_id_invalid",
3934
+ "tax_id_required",
3935
+ "us_state_required",
3936
+ "public_email_domain",
3937
+ "invoice_not_open"
3938
+ ]
3939
+ }
3940
+ },
3941
+ "required": [
3942
+ "state",
3943
+ "field",
3944
+ "rule"
3945
+ ],
3946
+ "additionalProperties": false,
3947
+ "description": "A field the purchase cannot accept. Nothing is stored."
3948
+ },
3949
+ {
3950
+ "type": "object",
3951
+ "properties": {
3952
+ "intent_id": {
3953
+ "type": "string",
3954
+ "format": "uuid",
3955
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
3956
+ "description": "The persisted checkout intent; confirm it with `POST /api/billing/intents/:id/confirm`."
3957
+ },
3958
+ "operation_key": {
3959
+ "type": "string",
3960
+ "format": "uuid",
3961
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
3962
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
3963
+ },
3964
+ "operation": {
3965
+ "type": "string",
3966
+ "const": "checkout"
3967
+ },
3968
+ "state": {
3969
+ "type": "string",
3970
+ "const": "held"
3971
+ },
3972
+ "reason": {
3973
+ "type": "string",
3974
+ "const": "issuer_cutover_in_progress"
3975
+ }
3976
+ },
3977
+ "required": [
3978
+ "intent_id",
3979
+ "operation_key",
3980
+ "operation",
3981
+ "state",
3982
+ "reason"
3983
+ ],
3984
+ "additionalProperties": false,
3985
+ "description": "An issuer cutover is running; try again in a few minutes."
3986
+ },
3987
+ {
3988
+ "type": "object",
3989
+ "properties": {
3990
+ "intent_id": {
3991
+ "type": "string",
3992
+ "format": "uuid",
3993
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
3994
+ "description": "The persisted checkout intent; confirm it with `POST /api/billing/intents/:id/confirm`."
3995
+ },
3996
+ "operation_key": {
3997
+ "type": "string",
3998
+ "format": "uuid",
3999
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
4000
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
4001
+ },
4002
+ "operation": {
4003
+ "type": "string",
4004
+ "const": "checkout"
4005
+ },
4006
+ "state": {
4007
+ "type": "string",
4008
+ "const": "payment_started"
4009
+ },
4010
+ "payment_id": {
4011
+ "type": "string",
4012
+ "format": "uuid",
4013
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
4014
+ },
4015
+ "payment": {
4016
+ "type": "object",
4017
+ "properties": {
4018
+ "kind": {
4019
+ "type": "string",
4020
+ "const": "hosted"
4021
+ },
4022
+ "checkout_id": {
4023
+ "type": "string",
4024
+ "format": "uuid",
4025
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
4026
+ },
4027
+ "checkout_url": {
4028
+ "type": "string",
4029
+ "format": "uri"
4030
+ }
4031
+ },
4032
+ "required": [
4033
+ "kind",
4034
+ "checkout_id",
4035
+ "checkout_url"
4036
+ ],
4037
+ "additionalProperties": false
4038
+ }
4039
+ },
4040
+ "required": [
4041
+ "intent_id",
4042
+ "operation_key",
4043
+ "operation",
4044
+ "state",
4045
+ "payment_id",
4046
+ "payment"
4047
+ ],
4048
+ "additionalProperties": false,
4049
+ "description": "The key was already confirmed: the hosted payment it started."
4050
+ }
4051
+ ],
4052
+ "allOf": [
4053
+ {
4054
+ "if": {
4055
+ "properties": {
4056
+ "state": {
4057
+ "const": "eligible"
4058
+ }
4059
+ },
4060
+ "required": [
4061
+ "state"
4062
+ ]
4063
+ },
4064
+ "then": {
4065
+ "properties": {
4066
+ "display": {
4067
+ "properties": {
4068
+ "snapshot": {
4069
+ "properties": {
4070
+ "decision_kind": {
4071
+ "const": "checkout"
4072
+ }
4073
+ }
4074
+ }
4075
+ }
4076
+ }
4077
+ }
4078
+ }
4079
+ }
4080
+ ]
4081
+ }