@fleetless/contracts 15.6.0 → 16.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4141 @@
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
+ "C4-1168-keep-basic"
1048
+ ],
1049
+ "description": "The approved sentence this display shows, one per action."
1050
+ },
1051
+ "text": {
1052
+ "type": "string",
1053
+ "minLength": 1,
1054
+ "pattern": "^By selecting “",
1055
+ "description": "The consent sentence shown directly above the button, naming the button."
1056
+ },
1057
+ "action_label": {
1058
+ "type": "string",
1059
+ "minLength": 1,
1060
+ "description": "The label of the one button that confirms this decision."
1061
+ },
1062
+ "terms": {
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "version": {
1066
+ "type": "string",
1067
+ "minLength": 1,
1068
+ "maxLength": 80
1069
+ },
1070
+ "version_date": {
1071
+ "type": "string",
1072
+ "format": "date",
1073
+ "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])))$"
1074
+ },
1075
+ "url": {
1076
+ "type": "string",
1077
+ "maxLength": 2048,
1078
+ "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]))?(?:[/?#]|$)",
1079
+ "format": "uri"
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "version",
1084
+ "version_date",
1085
+ "url"
1086
+ ],
1087
+ "additionalProperties": false
1088
+ },
1089
+ "dpa": {
1090
+ "type": "object",
1091
+ "properties": {
1092
+ "version": {
1093
+ "type": "string",
1094
+ "minLength": 1,
1095
+ "maxLength": 80
1096
+ },
1097
+ "version_date": {
1098
+ "type": "string",
1099
+ "format": "date",
1100
+ "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])))$"
1101
+ },
1102
+ "url": {
1103
+ "type": "string",
1104
+ "maxLength": 2048,
1105
+ "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]))?(?:[/?#]|$)",
1106
+ "format": "uri"
1107
+ }
1108
+ },
1109
+ "required": [
1110
+ "version",
1111
+ "version_date",
1112
+ "url"
1113
+ ],
1114
+ "additionalProperties": false
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "text_id",
1119
+ "text",
1120
+ "action_label",
1121
+ "terms",
1122
+ "dpa"
1123
+ ],
1124
+ "additionalProperties": false,
1125
+ "allOf": [
1126
+ {
1127
+ "if": {
1128
+ "properties": {
1129
+ "text_id": {
1130
+ "const": "C4-1168-checkout"
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "text_id"
1135
+ ]
1136
+ },
1137
+ "then": {
1138
+ "properties": {
1139
+ "action_label": {
1140
+ "pattern": "^Pay \\S.* with Mollie$"
1141
+ }
1142
+ }
1143
+ }
1144
+ },
1145
+ {
1146
+ "if": {
1147
+ "properties": {
1148
+ "text_id": {
1149
+ "const": "C4-1168-pay-and-switch"
1150
+ }
1151
+ },
1152
+ "required": [
1153
+ "text_id"
1154
+ ]
1155
+ },
1156
+ "then": {
1157
+ "properties": {
1158
+ "action_label": {
1159
+ "pattern": "^Pay \\S.* and switch$"
1160
+ }
1161
+ }
1162
+ }
1163
+ },
1164
+ {
1165
+ "if": {
1166
+ "properties": {
1167
+ "text_id": {
1168
+ "const": "C4-1168-switch"
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "text_id"
1173
+ ]
1174
+ },
1175
+ "then": {
1176
+ "properties": {
1177
+ "action_label": {
1178
+ "pattern": "^Switch to \\S.*$"
1179
+ }
1180
+ }
1181
+ }
1182
+ },
1183
+ {
1184
+ "if": {
1185
+ "properties": {
1186
+ "text_id": {
1187
+ "const": "C4-1168-schedule-switch"
1188
+ }
1189
+ },
1190
+ "required": [
1191
+ "text_id"
1192
+ ]
1193
+ },
1194
+ "then": {
1195
+ "properties": {
1196
+ "action_label": {
1197
+ "const": "Switch to monthly at period end"
1198
+ }
1199
+ }
1200
+ }
1201
+ },
1202
+ {
1203
+ "if": {
1204
+ "properties": {
1205
+ "text_id": {
1206
+ "const": "C4-1168-schedule-downgrade"
1207
+ }
1208
+ },
1209
+ "required": [
1210
+ "text_id"
1211
+ ]
1212
+ },
1213
+ "then": {
1214
+ "properties": {
1215
+ "action_label": {
1216
+ "pattern": "^Schedule downgrade to \\S.*$"
1217
+ }
1218
+ }
1219
+ }
1220
+ },
1221
+ {
1222
+ "if": {
1223
+ "properties": {
1224
+ "text_id": {
1225
+ "const": "C4-1168-cancel"
1226
+ }
1227
+ },
1228
+ "required": [
1229
+ "text_id"
1230
+ ]
1231
+ },
1232
+ "then": {
1233
+ "properties": {
1234
+ "action_label": {
1235
+ "const": "Cancel at period end"
1236
+ }
1237
+ }
1238
+ }
1239
+ },
1240
+ {
1241
+ "if": {
1242
+ "properties": {
1243
+ "text_id": {
1244
+ "const": "C4-1168-keep-basic"
1245
+ }
1246
+ },
1247
+ "required": [
1248
+ "text_id"
1249
+ ]
1250
+ },
1251
+ "then": {
1252
+ "properties": {
1253
+ "action_label": {
1254
+ "const": "Delete the rest and stay on Basic"
1255
+ }
1256
+ }
1257
+ }
1258
+ }
1259
+ ]
1260
+ },
1261
+ "expires_at": {
1262
+ "type": "string",
1263
+ "allOf": [
1264
+ {
1265
+ "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))$"
1266
+ },
1267
+ {
1268
+ "pattern": "Z$"
1269
+ }
1270
+ ]
1271
+ },
1272
+ "decision_kind": {
1273
+ "type": "string",
1274
+ "const": "checkout"
1275
+ },
1276
+ "selection": {
1277
+ "type": "object",
1278
+ "properties": {
1279
+ "plan": {
1280
+ "type": "string",
1281
+ "enum": [
1282
+ "basic",
1283
+ "plus",
1284
+ "pro"
1285
+ ]
1286
+ },
1287
+ "cycle": {
1288
+ "type": "string",
1289
+ "enum": [
1290
+ "monthly",
1291
+ "yearly"
1292
+ ]
1293
+ },
1294
+ "addons": {
1295
+ "type": "object",
1296
+ "properties": {
1297
+ "seats": {
1298
+ "type": "integer",
1299
+ "minimum": 0,
1300
+ "maximum": 9007199254740991,
1301
+ "description": "Extra developer seats, one each."
1302
+ },
1303
+ "robots": {
1304
+ "type": "integer",
1305
+ "minimum": 0,
1306
+ "maximum": 9007199254740991,
1307
+ "description": "Extra robots, one each."
1308
+ },
1309
+ "apps": {
1310
+ "type": "integer",
1311
+ "minimum": 0,
1312
+ "maximum": 9007199254740991,
1313
+ "description": "Extra apps, one each."
1314
+ },
1315
+ "app_user_packs": {
1316
+ "type": "integer",
1317
+ "minimum": 0,
1318
+ "maximum": 9007199254740991,
1319
+ "description": "Packs of five extra app users."
1320
+ },
1321
+ "live_video_packs": {
1322
+ "type": "integer",
1323
+ "minimum": 0,
1324
+ "maximum": 9007199254740991,
1325
+ "description": "Packs of 250 extra hours of app-user live video per month."
1326
+ }
1327
+ },
1328
+ "required": [
1329
+ "seats",
1330
+ "robots",
1331
+ "apps",
1332
+ "app_user_packs",
1333
+ "live_video_packs"
1334
+ ],
1335
+ "additionalProperties": false
1336
+ }
1337
+ },
1338
+ "required": [
1339
+ "plan",
1340
+ "cycle",
1341
+ "addons"
1342
+ ],
1343
+ "additionalProperties": false
1344
+ }
1345
+ },
1346
+ "required": [
1347
+ "snapshot_id",
1348
+ "decision_id",
1349
+ "operation_key",
1350
+ "owner_id",
1351
+ "organization_id",
1352
+ "organization_name",
1353
+ "quote_revision",
1354
+ "buyer_fingerprint",
1355
+ "amounts",
1356
+ "period",
1357
+ "future_price_replacement",
1358
+ "declaration",
1359
+ "expires_at",
1360
+ "decision_kind",
1361
+ "selection"
1362
+ ],
1363
+ "additionalProperties": false
1364
+ },
1365
+ {
1366
+ "type": "object",
1367
+ "properties": {
1368
+ "snapshot_id": {
1369
+ "type": "string",
1370
+ "format": "uuid",
1371
+ "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)$"
1372
+ },
1373
+ "decision_id": {
1374
+ "type": "string",
1375
+ "format": "uuid",
1376
+ "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)$"
1377
+ },
1378
+ "operation_key": {
1379
+ "type": "string",
1380
+ "format": "uuid",
1381
+ "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)$",
1382
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
1383
+ },
1384
+ "owner_id": {
1385
+ "type": "string",
1386
+ "format": "uuid",
1387
+ "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)$"
1388
+ },
1389
+ "organization_id": {
1390
+ "type": "string",
1391
+ "format": "uuid",
1392
+ "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)$"
1393
+ },
1394
+ "organization_name": {
1395
+ "type": "string",
1396
+ "minLength": 1
1397
+ },
1398
+ "quote_revision": {
1399
+ "type": "string",
1400
+ "minLength": 1,
1401
+ "maxLength": 200,
1402
+ "description": "Opaque revision of the displayed quote; echo it when confirming."
1403
+ },
1404
+ "buyer_fingerprint": {
1405
+ "type": "string",
1406
+ "minLength": 1,
1407
+ "maxLength": 200,
1408
+ "description": "Opaque revision of buyer details and email policy; never full VIES evidence."
1409
+ },
1410
+ "amounts": {
1411
+ "type": "object",
1412
+ "properties": {
1413
+ "currency": {
1414
+ "type": "string",
1415
+ "const": "eur"
1416
+ },
1417
+ "quote": {
1418
+ "type": "object",
1419
+ "properties": {
1420
+ "currency": {
1421
+ "type": "string",
1422
+ "const": "eur",
1423
+ "description": "Every new quote is in EUR."
1424
+ },
1425
+ "net_cents": {
1426
+ "type": "integer",
1427
+ "minimum": 0,
1428
+ "maximum": 9007199254740991,
1429
+ "description": "Current charge excluding VAT, in cents."
1430
+ },
1431
+ "vat_cents": {
1432
+ "type": "integer",
1433
+ "minimum": 0,
1434
+ "maximum": 9007199254740991,
1435
+ "description": "VAT on the current charge, in cents."
1436
+ },
1437
+ "gross_cents": {
1438
+ "type": "integer",
1439
+ "minimum": 0,
1440
+ "maximum": 9007199254740991,
1441
+ "description": "Total to confirm, including VAT, in cents."
1442
+ },
1443
+ "rate_percent": {
1444
+ "type": "integer",
1445
+ "minimum": 0,
1446
+ "maximum": 100,
1447
+ "description": "VAT rate in whole percent."
1448
+ }
1449
+ },
1450
+ "required": [
1451
+ "currency",
1452
+ "net_cents",
1453
+ "vat_cents",
1454
+ "gross_cents",
1455
+ "rate_percent"
1456
+ ],
1457
+ "additionalProperties": false
1458
+ },
1459
+ "plan_net_cents": {
1460
+ "type": "integer",
1461
+ "minimum": 0,
1462
+ "maximum": 9007199254740991
1463
+ },
1464
+ "addon_lines": {
1465
+ "type": "array",
1466
+ "items": {
1467
+ "type": "object",
1468
+ "properties": {
1469
+ "addon": {
1470
+ "type": "string",
1471
+ "enum": [
1472
+ "seats",
1473
+ "robots",
1474
+ "apps",
1475
+ "app_user_packs",
1476
+ "live_video_packs"
1477
+ ]
1478
+ },
1479
+ "quantity": {
1480
+ "type": "integer",
1481
+ "exclusiveMinimum": 0,
1482
+ "maximum": 9007199254740991
1483
+ },
1484
+ "net_cents": {
1485
+ "type": "integer",
1486
+ "minimum": 0,
1487
+ "maximum": 9007199254740991
1488
+ }
1489
+ },
1490
+ "required": [
1491
+ "addon",
1492
+ "quantity",
1493
+ "net_cents"
1494
+ ],
1495
+ "additionalProperties": false
1496
+ }
1497
+ },
1498
+ "period_net_cents": {
1499
+ "type": "integer",
1500
+ "minimum": 0,
1501
+ "maximum": 9007199254740991
1502
+ },
1503
+ "period_vat_cents": {
1504
+ "type": "integer",
1505
+ "minimum": 0,
1506
+ "maximum": 9007199254740991
1507
+ },
1508
+ "period_gross_cents": {
1509
+ "type": "integer",
1510
+ "minimum": 0,
1511
+ "maximum": 9007199254740991
1512
+ },
1513
+ "vat_treatment": {
1514
+ "type": "string",
1515
+ "enum": [
1516
+ "de_standard",
1517
+ "reverse_charge",
1518
+ "outside_eu"
1519
+ ]
1520
+ },
1521
+ "vat_treatment_line": {
1522
+ "type": "string",
1523
+ "minLength": 1
1524
+ },
1525
+ "due_today_gross_cents": {
1526
+ "type": "integer",
1527
+ "minimum": 0,
1528
+ "maximum": 9007199254740991
1529
+ },
1530
+ "prorated_net_cents": {
1531
+ "anyOf": [
1532
+ {
1533
+ "type": "integer",
1534
+ "minimum": 0,
1535
+ "maximum": 9007199254740991
1536
+ },
1537
+ {
1538
+ "type": "null"
1539
+ }
1540
+ ]
1541
+ },
1542
+ "renewal_net_cents": {
1543
+ "type": "integer",
1544
+ "minimum": 0,
1545
+ "maximum": 9007199254740991
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "currency",
1550
+ "quote",
1551
+ "plan_net_cents",
1552
+ "addon_lines",
1553
+ "period_net_cents",
1554
+ "period_vat_cents",
1555
+ "period_gross_cents",
1556
+ "vat_treatment",
1557
+ "vat_treatment_line",
1558
+ "due_today_gross_cents",
1559
+ "prorated_net_cents",
1560
+ "renewal_net_cents"
1561
+ ],
1562
+ "additionalProperties": false,
1563
+ "allOf": [
1564
+ {
1565
+ "if": {
1566
+ "properties": {
1567
+ "vat_treatment": {
1568
+ "const": "de_standard"
1569
+ }
1570
+ },
1571
+ "required": [
1572
+ "vat_treatment"
1573
+ ]
1574
+ },
1575
+ "then": {
1576
+ "properties": {
1577
+ "quote": {
1578
+ "properties": {
1579
+ "rate_percent": {
1580
+ "const": 19
1581
+ }
1582
+ }
1583
+ }
1584
+ }
1585
+ }
1586
+ },
1587
+ {
1588
+ "if": {
1589
+ "properties": {
1590
+ "vat_treatment": {
1591
+ "const": "reverse_charge"
1592
+ }
1593
+ },
1594
+ "required": [
1595
+ "vat_treatment"
1596
+ ]
1597
+ },
1598
+ "then": {
1599
+ "properties": {
1600
+ "quote": {
1601
+ "properties": {
1602
+ "rate_percent": {
1603
+ "const": 0
1604
+ },
1605
+ "vat_cents": {
1606
+ "const": 0
1607
+ }
1608
+ }
1609
+ },
1610
+ "period_vat_cents": {
1611
+ "const": 0
1612
+ },
1613
+ "vat_treatment_line": {
1614
+ "const": "Reverse charge — VAT payable by the recipient"
1615
+ }
1616
+ }
1617
+ }
1618
+ },
1619
+ {
1620
+ "if": {
1621
+ "properties": {
1622
+ "vat_treatment": {
1623
+ "const": "outside_eu"
1624
+ }
1625
+ },
1626
+ "required": [
1627
+ "vat_treatment"
1628
+ ]
1629
+ },
1630
+ "then": {
1631
+ "properties": {
1632
+ "quote": {
1633
+ "properties": {
1634
+ "rate_percent": {
1635
+ "const": 0
1636
+ },
1637
+ "vat_cents": {
1638
+ "const": 0
1639
+ }
1640
+ }
1641
+ },
1642
+ "period_vat_cents": {
1643
+ "const": 0
1644
+ },
1645
+ "vat_treatment_line": {
1646
+ "const": "Not taxable in Germany"
1647
+ }
1648
+ }
1649
+ }
1650
+ }
1651
+ ]
1652
+ },
1653
+ "period": {
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "anchor": {
1657
+ "type": "string",
1658
+ "const": "existing_period"
1659
+ },
1660
+ "display_time_zone": {
1661
+ "type": "string",
1662
+ "enum": [
1663
+ "UTC",
1664
+ "Etc/UTC",
1665
+ "Etc/GMT",
1666
+ "Africa/Abidjan",
1667
+ "Africa/Accra",
1668
+ "Africa/Addis_Ababa",
1669
+ "Africa/Algiers",
1670
+ "Africa/Asmera",
1671
+ "Africa/Bamako",
1672
+ "Africa/Bangui",
1673
+ "Africa/Banjul",
1674
+ "Africa/Bissau",
1675
+ "Africa/Blantyre",
1676
+ "Africa/Brazzaville",
1677
+ "Africa/Bujumbura",
1678
+ "Africa/Cairo",
1679
+ "Africa/Casablanca",
1680
+ "Africa/Ceuta",
1681
+ "Africa/Conakry",
1682
+ "Africa/Dakar",
1683
+ "Africa/Dar_es_Salaam",
1684
+ "Africa/Djibouti",
1685
+ "Africa/Douala",
1686
+ "Africa/El_Aaiun",
1687
+ "Africa/Freetown",
1688
+ "Africa/Gaborone",
1689
+ "Africa/Harare",
1690
+ "Africa/Johannesburg",
1691
+ "Africa/Juba",
1692
+ "Africa/Kampala",
1693
+ "Africa/Khartoum",
1694
+ "Africa/Kigali",
1695
+ "Africa/Kinshasa",
1696
+ "Africa/Lagos",
1697
+ "Africa/Libreville",
1698
+ "Africa/Lome",
1699
+ "Africa/Luanda",
1700
+ "Africa/Lubumbashi",
1701
+ "Africa/Lusaka",
1702
+ "Africa/Malabo",
1703
+ "Africa/Maputo",
1704
+ "Africa/Maseru",
1705
+ "Africa/Mbabane",
1706
+ "Africa/Mogadishu",
1707
+ "Africa/Monrovia",
1708
+ "Africa/Nairobi",
1709
+ "Africa/Ndjamena",
1710
+ "Africa/Niamey",
1711
+ "Africa/Nouakchott",
1712
+ "Africa/Ouagadougou",
1713
+ "Africa/Porto-Novo",
1714
+ "Africa/Sao_Tome",
1715
+ "Africa/Tripoli",
1716
+ "Africa/Tunis",
1717
+ "Africa/Windhoek",
1718
+ "America/Adak",
1719
+ "America/Anchorage",
1720
+ "America/Anguilla",
1721
+ "America/Antigua",
1722
+ "America/Araguaina",
1723
+ "America/Argentina/La_Rioja",
1724
+ "America/Argentina/Rio_Gallegos",
1725
+ "America/Argentina/Salta",
1726
+ "America/Argentina/San_Juan",
1727
+ "America/Argentina/San_Luis",
1728
+ "America/Argentina/Tucuman",
1729
+ "America/Argentina/Ushuaia",
1730
+ "America/Aruba",
1731
+ "America/Asuncion",
1732
+ "America/Bahia",
1733
+ "America/Bahia_Banderas",
1734
+ "America/Barbados",
1735
+ "America/Belem",
1736
+ "America/Belize",
1737
+ "America/Blanc-Sablon",
1738
+ "America/Boa_Vista",
1739
+ "America/Bogota",
1740
+ "America/Boise",
1741
+ "America/Buenos_Aires",
1742
+ "America/Cambridge_Bay",
1743
+ "America/Campo_Grande",
1744
+ "America/Cancun",
1745
+ "America/Caracas",
1746
+ "America/Catamarca",
1747
+ "America/Cayenne",
1748
+ "America/Cayman",
1749
+ "America/Chicago",
1750
+ "America/Chihuahua",
1751
+ "America/Ciudad_Juarez",
1752
+ "America/Coral_Harbour",
1753
+ "America/Cordoba",
1754
+ "America/Costa_Rica",
1755
+ "America/Coyhaique",
1756
+ "America/Creston",
1757
+ "America/Cuiaba",
1758
+ "America/Curacao",
1759
+ "America/Danmarkshavn",
1760
+ "America/Dawson",
1761
+ "America/Dawson_Creek",
1762
+ "America/Denver",
1763
+ "America/Detroit",
1764
+ "America/Dominica",
1765
+ "America/Edmonton",
1766
+ "America/Eirunepe",
1767
+ "America/El_Salvador",
1768
+ "America/Fort_Nelson",
1769
+ "America/Fortaleza",
1770
+ "America/Glace_Bay",
1771
+ "America/Godthab",
1772
+ "America/Goose_Bay",
1773
+ "America/Grand_Turk",
1774
+ "America/Grenada",
1775
+ "America/Guadeloupe",
1776
+ "America/Guatemala",
1777
+ "America/Guayaquil",
1778
+ "America/Guyana",
1779
+ "America/Halifax",
1780
+ "America/Havana",
1781
+ "America/Hermosillo",
1782
+ "America/Indiana/Knox",
1783
+ "America/Indiana/Marengo",
1784
+ "America/Indiana/Petersburg",
1785
+ "America/Indiana/Tell_City",
1786
+ "America/Indiana/Vevay",
1787
+ "America/Indiana/Vincennes",
1788
+ "America/Indiana/Winamac",
1789
+ "America/Indianapolis",
1790
+ "America/Inuvik",
1791
+ "America/Iqaluit",
1792
+ "America/Jamaica",
1793
+ "America/Jujuy",
1794
+ "America/Juneau",
1795
+ "America/Kentucky/Monticello",
1796
+ "America/Kralendijk",
1797
+ "America/La_Paz",
1798
+ "America/Lima",
1799
+ "America/Los_Angeles",
1800
+ "America/Louisville",
1801
+ "America/Lower_Princes",
1802
+ "America/Maceio",
1803
+ "America/Managua",
1804
+ "America/Manaus",
1805
+ "America/Marigot",
1806
+ "America/Martinique",
1807
+ "America/Matamoros",
1808
+ "America/Mazatlan",
1809
+ "America/Mendoza",
1810
+ "America/Menominee",
1811
+ "America/Merida",
1812
+ "America/Metlakatla",
1813
+ "America/Mexico_City",
1814
+ "America/Miquelon",
1815
+ "America/Moncton",
1816
+ "America/Monterrey",
1817
+ "America/Montevideo",
1818
+ "America/Montserrat",
1819
+ "America/Nassau",
1820
+ "America/New_York",
1821
+ "America/Nome",
1822
+ "America/Noronha",
1823
+ "America/North_Dakota/Beulah",
1824
+ "America/North_Dakota/Center",
1825
+ "America/North_Dakota/New_Salem",
1826
+ "America/Ojinaga",
1827
+ "America/Panama",
1828
+ "America/Paramaribo",
1829
+ "America/Phoenix",
1830
+ "America/Port-au-Prince",
1831
+ "America/Port_of_Spain",
1832
+ "America/Porto_Velho",
1833
+ "America/Puerto_Rico",
1834
+ "America/Punta_Arenas",
1835
+ "America/Rankin_Inlet",
1836
+ "America/Recife",
1837
+ "America/Regina",
1838
+ "America/Resolute",
1839
+ "America/Rio_Branco",
1840
+ "America/Santarem",
1841
+ "America/Santiago",
1842
+ "America/Santo_Domingo",
1843
+ "America/Sao_Paulo",
1844
+ "America/Scoresbysund",
1845
+ "America/Sitka",
1846
+ "America/St_Barthelemy",
1847
+ "America/St_Johns",
1848
+ "America/St_Kitts",
1849
+ "America/St_Lucia",
1850
+ "America/St_Thomas",
1851
+ "America/St_Vincent",
1852
+ "America/Swift_Current",
1853
+ "America/Tegucigalpa",
1854
+ "America/Thule",
1855
+ "America/Tijuana",
1856
+ "America/Toronto",
1857
+ "America/Tortola",
1858
+ "America/Vancouver",
1859
+ "America/Whitehorse",
1860
+ "America/Winnipeg",
1861
+ "America/Yakutat",
1862
+ "Antarctica/Casey",
1863
+ "Antarctica/Davis",
1864
+ "Antarctica/DumontDUrville",
1865
+ "Antarctica/Macquarie",
1866
+ "Antarctica/Mawson",
1867
+ "Antarctica/McMurdo",
1868
+ "Antarctica/Palmer",
1869
+ "Antarctica/Rothera",
1870
+ "Antarctica/Syowa",
1871
+ "Antarctica/Troll",
1872
+ "Antarctica/Vostok",
1873
+ "Arctic/Longyearbyen",
1874
+ "Asia/Aden",
1875
+ "Asia/Almaty",
1876
+ "Asia/Amman",
1877
+ "Asia/Anadyr",
1878
+ "Asia/Aqtau",
1879
+ "Asia/Aqtobe",
1880
+ "Asia/Ashgabat",
1881
+ "Asia/Atyrau",
1882
+ "Asia/Baghdad",
1883
+ "Asia/Bahrain",
1884
+ "Asia/Baku",
1885
+ "Asia/Bangkok",
1886
+ "Asia/Barnaul",
1887
+ "Asia/Beirut",
1888
+ "Asia/Bishkek",
1889
+ "Asia/Brunei",
1890
+ "Asia/Calcutta",
1891
+ "Asia/Chita",
1892
+ "Asia/Colombo",
1893
+ "Asia/Damascus",
1894
+ "Asia/Dhaka",
1895
+ "Asia/Dili",
1896
+ "Asia/Dubai",
1897
+ "Asia/Dushanbe",
1898
+ "Asia/Famagusta",
1899
+ "Asia/Gaza",
1900
+ "Asia/Hebron",
1901
+ "Asia/Hong_Kong",
1902
+ "Asia/Hovd",
1903
+ "Asia/Irkutsk",
1904
+ "Asia/Jakarta",
1905
+ "Asia/Jayapura",
1906
+ "Asia/Jerusalem",
1907
+ "Asia/Kabul",
1908
+ "Asia/Kamchatka",
1909
+ "Asia/Karachi",
1910
+ "Asia/Katmandu",
1911
+ "Asia/Khandyga",
1912
+ "Asia/Krasnoyarsk",
1913
+ "Asia/Kuala_Lumpur",
1914
+ "Asia/Kuching",
1915
+ "Asia/Kuwait",
1916
+ "Asia/Macau",
1917
+ "Asia/Magadan",
1918
+ "Asia/Makassar",
1919
+ "Asia/Manila",
1920
+ "Asia/Muscat",
1921
+ "Asia/Nicosia",
1922
+ "Asia/Novokuznetsk",
1923
+ "Asia/Novosibirsk",
1924
+ "Asia/Omsk",
1925
+ "Asia/Oral",
1926
+ "Asia/Phnom_Penh",
1927
+ "Asia/Pontianak",
1928
+ "Asia/Pyongyang",
1929
+ "Asia/Qatar",
1930
+ "Asia/Qostanay",
1931
+ "Asia/Qyzylorda",
1932
+ "Asia/Rangoon",
1933
+ "Asia/Riyadh",
1934
+ "Asia/Saigon",
1935
+ "Asia/Sakhalin",
1936
+ "Asia/Samarkand",
1937
+ "Asia/Seoul",
1938
+ "Asia/Shanghai",
1939
+ "Asia/Singapore",
1940
+ "Asia/Srednekolymsk",
1941
+ "Asia/Taipei",
1942
+ "Asia/Tashkent",
1943
+ "Asia/Tbilisi",
1944
+ "Asia/Tehran",
1945
+ "Asia/Thimphu",
1946
+ "Asia/Tokyo",
1947
+ "Asia/Tomsk",
1948
+ "Asia/Ulaanbaatar",
1949
+ "Asia/Urumqi",
1950
+ "Asia/Ust-Nera",
1951
+ "Asia/Vientiane",
1952
+ "Asia/Vladivostok",
1953
+ "Asia/Yakutsk",
1954
+ "Asia/Yekaterinburg",
1955
+ "Asia/Yerevan",
1956
+ "Atlantic/Azores",
1957
+ "Atlantic/Bermuda",
1958
+ "Atlantic/Canary",
1959
+ "Atlantic/Cape_Verde",
1960
+ "Atlantic/Faeroe",
1961
+ "Atlantic/Madeira",
1962
+ "Atlantic/Reykjavik",
1963
+ "Atlantic/South_Georgia",
1964
+ "Atlantic/St_Helena",
1965
+ "Atlantic/Stanley",
1966
+ "Australia/Adelaide",
1967
+ "Australia/Brisbane",
1968
+ "Australia/Broken_Hill",
1969
+ "Australia/Darwin",
1970
+ "Australia/Eucla",
1971
+ "Australia/Hobart",
1972
+ "Australia/Lindeman",
1973
+ "Australia/Lord_Howe",
1974
+ "Australia/Melbourne",
1975
+ "Australia/Perth",
1976
+ "Australia/Sydney",
1977
+ "Europe/Amsterdam",
1978
+ "Europe/Andorra",
1979
+ "Europe/Astrakhan",
1980
+ "Europe/Athens",
1981
+ "Europe/Belgrade",
1982
+ "Europe/Berlin",
1983
+ "Europe/Bratislava",
1984
+ "Europe/Brussels",
1985
+ "Europe/Bucharest",
1986
+ "Europe/Budapest",
1987
+ "Europe/Busingen",
1988
+ "Europe/Chisinau",
1989
+ "Europe/Copenhagen",
1990
+ "Europe/Dublin",
1991
+ "Europe/Gibraltar",
1992
+ "Europe/Guernsey",
1993
+ "Europe/Helsinki",
1994
+ "Europe/Isle_of_Man",
1995
+ "Europe/Istanbul",
1996
+ "Europe/Jersey",
1997
+ "Europe/Kaliningrad",
1998
+ "Europe/Kiev",
1999
+ "Europe/Kirov",
2000
+ "Europe/Lisbon",
2001
+ "Europe/Ljubljana",
2002
+ "Europe/London",
2003
+ "Europe/Luxembourg",
2004
+ "Europe/Madrid",
2005
+ "Europe/Malta",
2006
+ "Europe/Mariehamn",
2007
+ "Europe/Minsk",
2008
+ "Europe/Monaco",
2009
+ "Europe/Moscow",
2010
+ "Europe/Oslo",
2011
+ "Europe/Paris",
2012
+ "Europe/Podgorica",
2013
+ "Europe/Prague",
2014
+ "Europe/Riga",
2015
+ "Europe/Rome",
2016
+ "Europe/Samara",
2017
+ "Europe/San_Marino",
2018
+ "Europe/Sarajevo",
2019
+ "Europe/Saratov",
2020
+ "Europe/Simferopol",
2021
+ "Europe/Skopje",
2022
+ "Europe/Sofia",
2023
+ "Europe/Stockholm",
2024
+ "Europe/Tallinn",
2025
+ "Europe/Tirane",
2026
+ "Europe/Ulyanovsk",
2027
+ "Europe/Vaduz",
2028
+ "Europe/Vatican",
2029
+ "Europe/Vienna",
2030
+ "Europe/Vilnius",
2031
+ "Europe/Volgograd",
2032
+ "Europe/Warsaw",
2033
+ "Europe/Zagreb",
2034
+ "Europe/Zurich",
2035
+ "Indian/Antananarivo",
2036
+ "Indian/Chagos",
2037
+ "Indian/Christmas",
2038
+ "Indian/Cocos",
2039
+ "Indian/Comoro",
2040
+ "Indian/Kerguelen",
2041
+ "Indian/Mahe",
2042
+ "Indian/Maldives",
2043
+ "Indian/Mauritius",
2044
+ "Indian/Mayotte",
2045
+ "Indian/Reunion",
2046
+ "Pacific/Apia",
2047
+ "Pacific/Auckland",
2048
+ "Pacific/Bougainville",
2049
+ "Pacific/Chatham",
2050
+ "Pacific/Easter",
2051
+ "Pacific/Efate",
2052
+ "Pacific/Enderbury",
2053
+ "Pacific/Fakaofo",
2054
+ "Pacific/Fiji",
2055
+ "Pacific/Funafuti",
2056
+ "Pacific/Galapagos",
2057
+ "Pacific/Gambier",
2058
+ "Pacific/Guadalcanal",
2059
+ "Pacific/Guam",
2060
+ "Pacific/Honolulu",
2061
+ "Pacific/Kiritimati",
2062
+ "Pacific/Kosrae",
2063
+ "Pacific/Kwajalein",
2064
+ "Pacific/Majuro",
2065
+ "Pacific/Marquesas",
2066
+ "Pacific/Midway",
2067
+ "Pacific/Nauru",
2068
+ "Pacific/Niue",
2069
+ "Pacific/Norfolk",
2070
+ "Pacific/Noumea",
2071
+ "Pacific/Pago_Pago",
2072
+ "Pacific/Palau",
2073
+ "Pacific/Pitcairn",
2074
+ "Pacific/Ponape",
2075
+ "Pacific/Port_Moresby",
2076
+ "Pacific/Rarotonga",
2077
+ "Pacific/Saipan",
2078
+ "Pacific/Tahiti",
2079
+ "Pacific/Tarawa",
2080
+ "Pacific/Tongatapu",
2081
+ "Pacific/Truk",
2082
+ "Pacific/Wake",
2083
+ "Pacific/Wallis"
2084
+ ]
2085
+ },
2086
+ "starts_on": {
2087
+ "type": "string",
2088
+ "format": "date",
2089
+ "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])))$"
2090
+ },
2091
+ "starts_at": {
2092
+ "anyOf": [
2093
+ {
2094
+ "type": "string",
2095
+ "allOf": [
2096
+ {
2097
+ "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))$"
2098
+ },
2099
+ {
2100
+ "pattern": "Z$"
2101
+ }
2102
+ ]
2103
+ },
2104
+ {
2105
+ "type": "null"
2106
+ }
2107
+ ]
2108
+ },
2109
+ "current_period_ends_at": {
2110
+ "type": "string",
2111
+ "allOf": [
2112
+ {
2113
+ "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))$"
2114
+ },
2115
+ {
2116
+ "pattern": "Z$"
2117
+ }
2118
+ ]
2119
+ },
2120
+ "renews_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
+ "effective": {
2132
+ "oneOf": [
2133
+ {
2134
+ "type": "object",
2135
+ "properties": {
2136
+ "mode": {
2137
+ "type": "string",
2138
+ "const": "on_confirmation"
2139
+ },
2140
+ "quoted_as_of_at": {
2141
+ "type": "string",
2142
+ "allOf": [
2143
+ {
2144
+ "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))$"
2145
+ },
2146
+ {
2147
+ "pattern": "Z$"
2148
+ }
2149
+ ]
2150
+ },
2151
+ "local_date": {
2152
+ "type": "string",
2153
+ "format": "date",
2154
+ "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])))$"
2155
+ }
2156
+ },
2157
+ "required": [
2158
+ "mode",
2159
+ "quoted_as_of_at",
2160
+ "local_date"
2161
+ ],
2162
+ "additionalProperties": false
2163
+ },
2164
+ {
2165
+ "type": "object",
2166
+ "properties": {
2167
+ "mode": {
2168
+ "type": "string",
2169
+ "const": "scheduled"
2170
+ },
2171
+ "at": {
2172
+ "type": "string",
2173
+ "allOf": [
2174
+ {
2175
+ "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))$"
2176
+ },
2177
+ {
2178
+ "pattern": "Z$"
2179
+ }
2180
+ ]
2181
+ },
2182
+ "at_period_end": {
2183
+ "type": "boolean"
2184
+ }
2185
+ },
2186
+ "required": [
2187
+ "mode",
2188
+ "at",
2189
+ "at_period_end"
2190
+ ],
2191
+ "additionalProperties": false
2192
+ }
2193
+ ]
2194
+ }
2195
+ },
2196
+ "required": [
2197
+ "anchor",
2198
+ "display_time_zone",
2199
+ "starts_on",
2200
+ "starts_at",
2201
+ "current_period_ends_at",
2202
+ "renews_at",
2203
+ "effective"
2204
+ ],
2205
+ "additionalProperties": false
2206
+ },
2207
+ "future_price_replacement": {
2208
+ "anyOf": [
2209
+ {
2210
+ "type": "object",
2211
+ "properties": {
2212
+ "agreement_id": {
2213
+ "type": "string",
2214
+ "format": "uuid",
2215
+ "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)$"
2216
+ },
2217
+ "text": {
2218
+ "type": "string",
2219
+ "minLength": 1,
2220
+ "pattern": "\\S"
2221
+ }
2222
+ },
2223
+ "required": [
2224
+ "agreement_id",
2225
+ "text"
2226
+ ],
2227
+ "additionalProperties": false
2228
+ },
2229
+ {
2230
+ "type": "null"
2231
+ }
2232
+ ]
2233
+ },
2234
+ "declaration": {
2235
+ "type": "object",
2236
+ "properties": {
2237
+ "text_id": {
2238
+ "type": "string",
2239
+ "enum": [
2240
+ "C4-1168-checkout",
2241
+ "C4-1168-pay-and-switch",
2242
+ "C4-1168-switch",
2243
+ "C4-1168-schedule-switch",
2244
+ "C4-1168-schedule-downgrade",
2245
+ "C4-1168-cancel",
2246
+ "C4-1168-keep-basic"
2247
+ ],
2248
+ "description": "The approved sentence this display shows, one per action."
2249
+ },
2250
+ "text": {
2251
+ "type": "string",
2252
+ "minLength": 1,
2253
+ "pattern": "^By selecting “",
2254
+ "description": "The consent sentence shown directly above the button, naming the button."
2255
+ },
2256
+ "action_label": {
2257
+ "type": "string",
2258
+ "minLength": 1,
2259
+ "description": "The label of the one button that confirms this decision."
2260
+ },
2261
+ "terms": {
2262
+ "type": "object",
2263
+ "properties": {
2264
+ "version": {
2265
+ "type": "string",
2266
+ "minLength": 1,
2267
+ "maxLength": 80
2268
+ },
2269
+ "version_date": {
2270
+ "type": "string",
2271
+ "format": "date",
2272
+ "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])))$"
2273
+ },
2274
+ "url": {
2275
+ "type": "string",
2276
+ "maxLength": 2048,
2277
+ "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]))?(?:[/?#]|$)",
2278
+ "format": "uri"
2279
+ }
2280
+ },
2281
+ "required": [
2282
+ "version",
2283
+ "version_date",
2284
+ "url"
2285
+ ],
2286
+ "additionalProperties": false
2287
+ },
2288
+ "dpa": {
2289
+ "type": "object",
2290
+ "properties": {
2291
+ "version": {
2292
+ "type": "string",
2293
+ "minLength": 1,
2294
+ "maxLength": 80
2295
+ },
2296
+ "version_date": {
2297
+ "type": "string",
2298
+ "format": "date",
2299
+ "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])))$"
2300
+ },
2301
+ "url": {
2302
+ "type": "string",
2303
+ "maxLength": 2048,
2304
+ "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]))?(?:[/?#]|$)",
2305
+ "format": "uri"
2306
+ }
2307
+ },
2308
+ "required": [
2309
+ "version",
2310
+ "version_date",
2311
+ "url"
2312
+ ],
2313
+ "additionalProperties": false
2314
+ }
2315
+ },
2316
+ "required": [
2317
+ "text_id",
2318
+ "text",
2319
+ "action_label",
2320
+ "terms",
2321
+ "dpa"
2322
+ ],
2323
+ "additionalProperties": false,
2324
+ "allOf": [
2325
+ {
2326
+ "if": {
2327
+ "properties": {
2328
+ "text_id": {
2329
+ "const": "C4-1168-checkout"
2330
+ }
2331
+ },
2332
+ "required": [
2333
+ "text_id"
2334
+ ]
2335
+ },
2336
+ "then": {
2337
+ "properties": {
2338
+ "action_label": {
2339
+ "pattern": "^Pay \\S.* with Mollie$"
2340
+ }
2341
+ }
2342
+ }
2343
+ },
2344
+ {
2345
+ "if": {
2346
+ "properties": {
2347
+ "text_id": {
2348
+ "const": "C4-1168-pay-and-switch"
2349
+ }
2350
+ },
2351
+ "required": [
2352
+ "text_id"
2353
+ ]
2354
+ },
2355
+ "then": {
2356
+ "properties": {
2357
+ "action_label": {
2358
+ "pattern": "^Pay \\S.* and switch$"
2359
+ }
2360
+ }
2361
+ }
2362
+ },
2363
+ {
2364
+ "if": {
2365
+ "properties": {
2366
+ "text_id": {
2367
+ "const": "C4-1168-switch"
2368
+ }
2369
+ },
2370
+ "required": [
2371
+ "text_id"
2372
+ ]
2373
+ },
2374
+ "then": {
2375
+ "properties": {
2376
+ "action_label": {
2377
+ "pattern": "^Switch to \\S.*$"
2378
+ }
2379
+ }
2380
+ }
2381
+ },
2382
+ {
2383
+ "if": {
2384
+ "properties": {
2385
+ "text_id": {
2386
+ "const": "C4-1168-schedule-switch"
2387
+ }
2388
+ },
2389
+ "required": [
2390
+ "text_id"
2391
+ ]
2392
+ },
2393
+ "then": {
2394
+ "properties": {
2395
+ "action_label": {
2396
+ "const": "Switch to monthly at period end"
2397
+ }
2398
+ }
2399
+ }
2400
+ },
2401
+ {
2402
+ "if": {
2403
+ "properties": {
2404
+ "text_id": {
2405
+ "const": "C4-1168-schedule-downgrade"
2406
+ }
2407
+ },
2408
+ "required": [
2409
+ "text_id"
2410
+ ]
2411
+ },
2412
+ "then": {
2413
+ "properties": {
2414
+ "action_label": {
2415
+ "pattern": "^Schedule downgrade to \\S.*$"
2416
+ }
2417
+ }
2418
+ }
2419
+ },
2420
+ {
2421
+ "if": {
2422
+ "properties": {
2423
+ "text_id": {
2424
+ "const": "C4-1168-cancel"
2425
+ }
2426
+ },
2427
+ "required": [
2428
+ "text_id"
2429
+ ]
2430
+ },
2431
+ "then": {
2432
+ "properties": {
2433
+ "action_label": {
2434
+ "const": "Cancel at period end"
2435
+ }
2436
+ }
2437
+ }
2438
+ },
2439
+ {
2440
+ "if": {
2441
+ "properties": {
2442
+ "text_id": {
2443
+ "const": "C4-1168-keep-basic"
2444
+ }
2445
+ },
2446
+ "required": [
2447
+ "text_id"
2448
+ ]
2449
+ },
2450
+ "then": {
2451
+ "properties": {
2452
+ "action_label": {
2453
+ "const": "Delete the rest and stay on Basic"
2454
+ }
2455
+ }
2456
+ }
2457
+ }
2458
+ ]
2459
+ },
2460
+ "expires_at": {
2461
+ "type": "string",
2462
+ "allOf": [
2463
+ {
2464
+ "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))$"
2465
+ },
2466
+ {
2467
+ "pattern": "Z$"
2468
+ }
2469
+ ]
2470
+ },
2471
+ "decision_kind": {
2472
+ "type": "string",
2473
+ "const": "paid_change"
2474
+ },
2475
+ "selection": {
2476
+ "type": "object",
2477
+ "properties": {
2478
+ "plan": {
2479
+ "type": "string",
2480
+ "enum": [
2481
+ "basic",
2482
+ "plus",
2483
+ "pro"
2484
+ ]
2485
+ },
2486
+ "cycle": {
2487
+ "type": "string",
2488
+ "enum": [
2489
+ "monthly",
2490
+ "yearly"
2491
+ ]
2492
+ },
2493
+ "addons": {
2494
+ "type": "object",
2495
+ "properties": {
2496
+ "seats": {
2497
+ "type": "integer",
2498
+ "minimum": 0,
2499
+ "maximum": 9007199254740991,
2500
+ "description": "Extra developer seats, one each."
2501
+ },
2502
+ "robots": {
2503
+ "type": "integer",
2504
+ "minimum": 0,
2505
+ "maximum": 9007199254740991,
2506
+ "description": "Extra robots, one each."
2507
+ },
2508
+ "apps": {
2509
+ "type": "integer",
2510
+ "minimum": 0,
2511
+ "maximum": 9007199254740991,
2512
+ "description": "Extra apps, one each."
2513
+ },
2514
+ "app_user_packs": {
2515
+ "type": "integer",
2516
+ "minimum": 0,
2517
+ "maximum": 9007199254740991,
2518
+ "description": "Packs of five extra app users."
2519
+ },
2520
+ "live_video_packs": {
2521
+ "type": "integer",
2522
+ "minimum": 0,
2523
+ "maximum": 9007199254740991,
2524
+ "description": "Packs of 250 extra hours of app-user live video per month."
2525
+ }
2526
+ },
2527
+ "required": [
2528
+ "seats",
2529
+ "robots",
2530
+ "apps",
2531
+ "app_user_packs",
2532
+ "live_video_packs"
2533
+ ],
2534
+ "additionalProperties": false
2535
+ }
2536
+ },
2537
+ "required": [
2538
+ "plan",
2539
+ "cycle",
2540
+ "addons"
2541
+ ],
2542
+ "additionalProperties": false
2543
+ }
2544
+ },
2545
+ "required": [
2546
+ "snapshot_id",
2547
+ "decision_id",
2548
+ "operation_key",
2549
+ "owner_id",
2550
+ "organization_id",
2551
+ "organization_name",
2552
+ "quote_revision",
2553
+ "buyer_fingerprint",
2554
+ "amounts",
2555
+ "period",
2556
+ "future_price_replacement",
2557
+ "declaration",
2558
+ "expires_at",
2559
+ "decision_kind",
2560
+ "selection"
2561
+ ],
2562
+ "additionalProperties": false
2563
+ },
2564
+ {
2565
+ "type": "object",
2566
+ "properties": {
2567
+ "snapshot_id": {
2568
+ "type": "string",
2569
+ "format": "uuid",
2570
+ "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)$"
2571
+ },
2572
+ "decision_id": {
2573
+ "type": "string",
2574
+ "format": "uuid",
2575
+ "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)$"
2576
+ },
2577
+ "operation_key": {
2578
+ "type": "string",
2579
+ "format": "uuid",
2580
+ "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)$",
2581
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
2582
+ },
2583
+ "owner_id": {
2584
+ "type": "string",
2585
+ "format": "uuid",
2586
+ "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)$"
2587
+ },
2588
+ "organization_id": {
2589
+ "type": "string",
2590
+ "format": "uuid",
2591
+ "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)$"
2592
+ },
2593
+ "organization_name": {
2594
+ "type": "string",
2595
+ "minLength": 1
2596
+ },
2597
+ "quote_revision": {
2598
+ "type": "string",
2599
+ "minLength": 1,
2600
+ "maxLength": 200,
2601
+ "description": "Opaque revision of the displayed quote; echo it when confirming."
2602
+ },
2603
+ "buyer_fingerprint": {
2604
+ "type": "string",
2605
+ "minLength": 1,
2606
+ "maxLength": 200,
2607
+ "description": "Opaque revision of buyer details and email policy; never full VIES evidence."
2608
+ },
2609
+ "amounts": {
2610
+ "type": "object",
2611
+ "properties": {
2612
+ "currency": {
2613
+ "type": "string",
2614
+ "const": "eur"
2615
+ },
2616
+ "quote": {
2617
+ "type": "object",
2618
+ "properties": {
2619
+ "currency": {
2620
+ "type": "string",
2621
+ "const": "eur",
2622
+ "description": "Every new quote is in EUR."
2623
+ },
2624
+ "net_cents": {
2625
+ "type": "integer",
2626
+ "minimum": 0,
2627
+ "maximum": 9007199254740991,
2628
+ "description": "Current charge excluding VAT, in cents."
2629
+ },
2630
+ "vat_cents": {
2631
+ "type": "integer",
2632
+ "minimum": 0,
2633
+ "maximum": 9007199254740991,
2634
+ "description": "VAT on the current charge, in cents."
2635
+ },
2636
+ "gross_cents": {
2637
+ "type": "integer",
2638
+ "minimum": 0,
2639
+ "maximum": 9007199254740991,
2640
+ "description": "Total to confirm, including VAT, in cents."
2641
+ },
2642
+ "rate_percent": {
2643
+ "type": "integer",
2644
+ "minimum": 0,
2645
+ "maximum": 100,
2646
+ "description": "VAT rate in whole percent."
2647
+ }
2648
+ },
2649
+ "required": [
2650
+ "currency",
2651
+ "net_cents",
2652
+ "vat_cents",
2653
+ "gross_cents",
2654
+ "rate_percent"
2655
+ ],
2656
+ "additionalProperties": false
2657
+ },
2658
+ "plan_net_cents": {
2659
+ "type": "integer",
2660
+ "minimum": 0,
2661
+ "maximum": 9007199254740991
2662
+ },
2663
+ "addon_lines": {
2664
+ "type": "array",
2665
+ "items": {
2666
+ "type": "object",
2667
+ "properties": {
2668
+ "addon": {
2669
+ "type": "string",
2670
+ "enum": [
2671
+ "seats",
2672
+ "robots",
2673
+ "apps",
2674
+ "app_user_packs",
2675
+ "live_video_packs"
2676
+ ]
2677
+ },
2678
+ "quantity": {
2679
+ "type": "integer",
2680
+ "exclusiveMinimum": 0,
2681
+ "maximum": 9007199254740991
2682
+ },
2683
+ "net_cents": {
2684
+ "type": "integer",
2685
+ "minimum": 0,
2686
+ "maximum": 9007199254740991
2687
+ }
2688
+ },
2689
+ "required": [
2690
+ "addon",
2691
+ "quantity",
2692
+ "net_cents"
2693
+ ],
2694
+ "additionalProperties": false
2695
+ }
2696
+ },
2697
+ "period_net_cents": {
2698
+ "type": "integer",
2699
+ "minimum": 0,
2700
+ "maximum": 9007199254740991
2701
+ },
2702
+ "period_vat_cents": {
2703
+ "type": "integer",
2704
+ "minimum": 0,
2705
+ "maximum": 9007199254740991
2706
+ },
2707
+ "period_gross_cents": {
2708
+ "type": "integer",
2709
+ "minimum": 0,
2710
+ "maximum": 9007199254740991
2711
+ },
2712
+ "vat_treatment": {
2713
+ "type": "string",
2714
+ "enum": [
2715
+ "de_standard",
2716
+ "reverse_charge",
2717
+ "outside_eu"
2718
+ ]
2719
+ },
2720
+ "vat_treatment_line": {
2721
+ "type": "string",
2722
+ "minLength": 1
2723
+ },
2724
+ "due_today_gross_cents": {
2725
+ "type": "integer",
2726
+ "minimum": 0,
2727
+ "maximum": 9007199254740991
2728
+ },
2729
+ "prorated_net_cents": {
2730
+ "anyOf": [
2731
+ {
2732
+ "type": "integer",
2733
+ "minimum": 0,
2734
+ "maximum": 9007199254740991
2735
+ },
2736
+ {
2737
+ "type": "null"
2738
+ }
2739
+ ]
2740
+ },
2741
+ "renewal_net_cents": {
2742
+ "type": "integer",
2743
+ "minimum": 0,
2744
+ "maximum": 9007199254740991
2745
+ }
2746
+ },
2747
+ "required": [
2748
+ "currency",
2749
+ "quote",
2750
+ "plan_net_cents",
2751
+ "addon_lines",
2752
+ "period_net_cents",
2753
+ "period_vat_cents",
2754
+ "period_gross_cents",
2755
+ "vat_treatment",
2756
+ "vat_treatment_line",
2757
+ "due_today_gross_cents",
2758
+ "prorated_net_cents",
2759
+ "renewal_net_cents"
2760
+ ],
2761
+ "additionalProperties": false,
2762
+ "allOf": [
2763
+ {
2764
+ "if": {
2765
+ "properties": {
2766
+ "vat_treatment": {
2767
+ "const": "de_standard"
2768
+ }
2769
+ },
2770
+ "required": [
2771
+ "vat_treatment"
2772
+ ]
2773
+ },
2774
+ "then": {
2775
+ "properties": {
2776
+ "quote": {
2777
+ "properties": {
2778
+ "rate_percent": {
2779
+ "const": 19
2780
+ }
2781
+ }
2782
+ }
2783
+ }
2784
+ }
2785
+ },
2786
+ {
2787
+ "if": {
2788
+ "properties": {
2789
+ "vat_treatment": {
2790
+ "const": "reverse_charge"
2791
+ }
2792
+ },
2793
+ "required": [
2794
+ "vat_treatment"
2795
+ ]
2796
+ },
2797
+ "then": {
2798
+ "properties": {
2799
+ "quote": {
2800
+ "properties": {
2801
+ "rate_percent": {
2802
+ "const": 0
2803
+ },
2804
+ "vat_cents": {
2805
+ "const": 0
2806
+ }
2807
+ }
2808
+ },
2809
+ "period_vat_cents": {
2810
+ "const": 0
2811
+ },
2812
+ "vat_treatment_line": {
2813
+ "const": "Reverse charge — VAT payable by the recipient"
2814
+ }
2815
+ }
2816
+ }
2817
+ },
2818
+ {
2819
+ "if": {
2820
+ "properties": {
2821
+ "vat_treatment": {
2822
+ "const": "outside_eu"
2823
+ }
2824
+ },
2825
+ "required": [
2826
+ "vat_treatment"
2827
+ ]
2828
+ },
2829
+ "then": {
2830
+ "properties": {
2831
+ "quote": {
2832
+ "properties": {
2833
+ "rate_percent": {
2834
+ "const": 0
2835
+ },
2836
+ "vat_cents": {
2837
+ "const": 0
2838
+ }
2839
+ }
2840
+ },
2841
+ "period_vat_cents": {
2842
+ "const": 0
2843
+ },
2844
+ "vat_treatment_line": {
2845
+ "const": "Not taxable in Germany"
2846
+ }
2847
+ }
2848
+ }
2849
+ }
2850
+ ]
2851
+ },
2852
+ "period": {
2853
+ "type": "object",
2854
+ "properties": {
2855
+ "anchor": {
2856
+ "type": "string",
2857
+ "const": "existing_period"
2858
+ },
2859
+ "display_time_zone": {
2860
+ "type": "string",
2861
+ "enum": [
2862
+ "UTC",
2863
+ "Etc/UTC",
2864
+ "Etc/GMT",
2865
+ "Africa/Abidjan",
2866
+ "Africa/Accra",
2867
+ "Africa/Addis_Ababa",
2868
+ "Africa/Algiers",
2869
+ "Africa/Asmera",
2870
+ "Africa/Bamako",
2871
+ "Africa/Bangui",
2872
+ "Africa/Banjul",
2873
+ "Africa/Bissau",
2874
+ "Africa/Blantyre",
2875
+ "Africa/Brazzaville",
2876
+ "Africa/Bujumbura",
2877
+ "Africa/Cairo",
2878
+ "Africa/Casablanca",
2879
+ "Africa/Ceuta",
2880
+ "Africa/Conakry",
2881
+ "Africa/Dakar",
2882
+ "Africa/Dar_es_Salaam",
2883
+ "Africa/Djibouti",
2884
+ "Africa/Douala",
2885
+ "Africa/El_Aaiun",
2886
+ "Africa/Freetown",
2887
+ "Africa/Gaborone",
2888
+ "Africa/Harare",
2889
+ "Africa/Johannesburg",
2890
+ "Africa/Juba",
2891
+ "Africa/Kampala",
2892
+ "Africa/Khartoum",
2893
+ "Africa/Kigali",
2894
+ "Africa/Kinshasa",
2895
+ "Africa/Lagos",
2896
+ "Africa/Libreville",
2897
+ "Africa/Lome",
2898
+ "Africa/Luanda",
2899
+ "Africa/Lubumbashi",
2900
+ "Africa/Lusaka",
2901
+ "Africa/Malabo",
2902
+ "Africa/Maputo",
2903
+ "Africa/Maseru",
2904
+ "Africa/Mbabane",
2905
+ "Africa/Mogadishu",
2906
+ "Africa/Monrovia",
2907
+ "Africa/Nairobi",
2908
+ "Africa/Ndjamena",
2909
+ "Africa/Niamey",
2910
+ "Africa/Nouakchott",
2911
+ "Africa/Ouagadougou",
2912
+ "Africa/Porto-Novo",
2913
+ "Africa/Sao_Tome",
2914
+ "Africa/Tripoli",
2915
+ "Africa/Tunis",
2916
+ "Africa/Windhoek",
2917
+ "America/Adak",
2918
+ "America/Anchorage",
2919
+ "America/Anguilla",
2920
+ "America/Antigua",
2921
+ "America/Araguaina",
2922
+ "America/Argentina/La_Rioja",
2923
+ "America/Argentina/Rio_Gallegos",
2924
+ "America/Argentina/Salta",
2925
+ "America/Argentina/San_Juan",
2926
+ "America/Argentina/San_Luis",
2927
+ "America/Argentina/Tucuman",
2928
+ "America/Argentina/Ushuaia",
2929
+ "America/Aruba",
2930
+ "America/Asuncion",
2931
+ "America/Bahia",
2932
+ "America/Bahia_Banderas",
2933
+ "America/Barbados",
2934
+ "America/Belem",
2935
+ "America/Belize",
2936
+ "America/Blanc-Sablon",
2937
+ "America/Boa_Vista",
2938
+ "America/Bogota",
2939
+ "America/Boise",
2940
+ "America/Buenos_Aires",
2941
+ "America/Cambridge_Bay",
2942
+ "America/Campo_Grande",
2943
+ "America/Cancun",
2944
+ "America/Caracas",
2945
+ "America/Catamarca",
2946
+ "America/Cayenne",
2947
+ "America/Cayman",
2948
+ "America/Chicago",
2949
+ "America/Chihuahua",
2950
+ "America/Ciudad_Juarez",
2951
+ "America/Coral_Harbour",
2952
+ "America/Cordoba",
2953
+ "America/Costa_Rica",
2954
+ "America/Coyhaique",
2955
+ "America/Creston",
2956
+ "America/Cuiaba",
2957
+ "America/Curacao",
2958
+ "America/Danmarkshavn",
2959
+ "America/Dawson",
2960
+ "America/Dawson_Creek",
2961
+ "America/Denver",
2962
+ "America/Detroit",
2963
+ "America/Dominica",
2964
+ "America/Edmonton",
2965
+ "America/Eirunepe",
2966
+ "America/El_Salvador",
2967
+ "America/Fort_Nelson",
2968
+ "America/Fortaleza",
2969
+ "America/Glace_Bay",
2970
+ "America/Godthab",
2971
+ "America/Goose_Bay",
2972
+ "America/Grand_Turk",
2973
+ "America/Grenada",
2974
+ "America/Guadeloupe",
2975
+ "America/Guatemala",
2976
+ "America/Guayaquil",
2977
+ "America/Guyana",
2978
+ "America/Halifax",
2979
+ "America/Havana",
2980
+ "America/Hermosillo",
2981
+ "America/Indiana/Knox",
2982
+ "America/Indiana/Marengo",
2983
+ "America/Indiana/Petersburg",
2984
+ "America/Indiana/Tell_City",
2985
+ "America/Indiana/Vevay",
2986
+ "America/Indiana/Vincennes",
2987
+ "America/Indiana/Winamac",
2988
+ "America/Indianapolis",
2989
+ "America/Inuvik",
2990
+ "America/Iqaluit",
2991
+ "America/Jamaica",
2992
+ "America/Jujuy",
2993
+ "America/Juneau",
2994
+ "America/Kentucky/Monticello",
2995
+ "America/Kralendijk",
2996
+ "America/La_Paz",
2997
+ "America/Lima",
2998
+ "America/Los_Angeles",
2999
+ "America/Louisville",
3000
+ "America/Lower_Princes",
3001
+ "America/Maceio",
3002
+ "America/Managua",
3003
+ "America/Manaus",
3004
+ "America/Marigot",
3005
+ "America/Martinique",
3006
+ "America/Matamoros",
3007
+ "America/Mazatlan",
3008
+ "America/Mendoza",
3009
+ "America/Menominee",
3010
+ "America/Merida",
3011
+ "America/Metlakatla",
3012
+ "America/Mexico_City",
3013
+ "America/Miquelon",
3014
+ "America/Moncton",
3015
+ "America/Monterrey",
3016
+ "America/Montevideo",
3017
+ "America/Montserrat",
3018
+ "America/Nassau",
3019
+ "America/New_York",
3020
+ "America/Nome",
3021
+ "America/Noronha",
3022
+ "America/North_Dakota/Beulah",
3023
+ "America/North_Dakota/Center",
3024
+ "America/North_Dakota/New_Salem",
3025
+ "America/Ojinaga",
3026
+ "America/Panama",
3027
+ "America/Paramaribo",
3028
+ "America/Phoenix",
3029
+ "America/Port-au-Prince",
3030
+ "America/Port_of_Spain",
3031
+ "America/Porto_Velho",
3032
+ "America/Puerto_Rico",
3033
+ "America/Punta_Arenas",
3034
+ "America/Rankin_Inlet",
3035
+ "America/Recife",
3036
+ "America/Regina",
3037
+ "America/Resolute",
3038
+ "America/Rio_Branco",
3039
+ "America/Santarem",
3040
+ "America/Santiago",
3041
+ "America/Santo_Domingo",
3042
+ "America/Sao_Paulo",
3043
+ "America/Scoresbysund",
3044
+ "America/Sitka",
3045
+ "America/St_Barthelemy",
3046
+ "America/St_Johns",
3047
+ "America/St_Kitts",
3048
+ "America/St_Lucia",
3049
+ "America/St_Thomas",
3050
+ "America/St_Vincent",
3051
+ "America/Swift_Current",
3052
+ "America/Tegucigalpa",
3053
+ "America/Thule",
3054
+ "America/Tijuana",
3055
+ "America/Toronto",
3056
+ "America/Tortola",
3057
+ "America/Vancouver",
3058
+ "America/Whitehorse",
3059
+ "America/Winnipeg",
3060
+ "America/Yakutat",
3061
+ "Antarctica/Casey",
3062
+ "Antarctica/Davis",
3063
+ "Antarctica/DumontDUrville",
3064
+ "Antarctica/Macquarie",
3065
+ "Antarctica/Mawson",
3066
+ "Antarctica/McMurdo",
3067
+ "Antarctica/Palmer",
3068
+ "Antarctica/Rothera",
3069
+ "Antarctica/Syowa",
3070
+ "Antarctica/Troll",
3071
+ "Antarctica/Vostok",
3072
+ "Arctic/Longyearbyen",
3073
+ "Asia/Aden",
3074
+ "Asia/Almaty",
3075
+ "Asia/Amman",
3076
+ "Asia/Anadyr",
3077
+ "Asia/Aqtau",
3078
+ "Asia/Aqtobe",
3079
+ "Asia/Ashgabat",
3080
+ "Asia/Atyrau",
3081
+ "Asia/Baghdad",
3082
+ "Asia/Bahrain",
3083
+ "Asia/Baku",
3084
+ "Asia/Bangkok",
3085
+ "Asia/Barnaul",
3086
+ "Asia/Beirut",
3087
+ "Asia/Bishkek",
3088
+ "Asia/Brunei",
3089
+ "Asia/Calcutta",
3090
+ "Asia/Chita",
3091
+ "Asia/Colombo",
3092
+ "Asia/Damascus",
3093
+ "Asia/Dhaka",
3094
+ "Asia/Dili",
3095
+ "Asia/Dubai",
3096
+ "Asia/Dushanbe",
3097
+ "Asia/Famagusta",
3098
+ "Asia/Gaza",
3099
+ "Asia/Hebron",
3100
+ "Asia/Hong_Kong",
3101
+ "Asia/Hovd",
3102
+ "Asia/Irkutsk",
3103
+ "Asia/Jakarta",
3104
+ "Asia/Jayapura",
3105
+ "Asia/Jerusalem",
3106
+ "Asia/Kabul",
3107
+ "Asia/Kamchatka",
3108
+ "Asia/Karachi",
3109
+ "Asia/Katmandu",
3110
+ "Asia/Khandyga",
3111
+ "Asia/Krasnoyarsk",
3112
+ "Asia/Kuala_Lumpur",
3113
+ "Asia/Kuching",
3114
+ "Asia/Kuwait",
3115
+ "Asia/Macau",
3116
+ "Asia/Magadan",
3117
+ "Asia/Makassar",
3118
+ "Asia/Manila",
3119
+ "Asia/Muscat",
3120
+ "Asia/Nicosia",
3121
+ "Asia/Novokuznetsk",
3122
+ "Asia/Novosibirsk",
3123
+ "Asia/Omsk",
3124
+ "Asia/Oral",
3125
+ "Asia/Phnom_Penh",
3126
+ "Asia/Pontianak",
3127
+ "Asia/Pyongyang",
3128
+ "Asia/Qatar",
3129
+ "Asia/Qostanay",
3130
+ "Asia/Qyzylorda",
3131
+ "Asia/Rangoon",
3132
+ "Asia/Riyadh",
3133
+ "Asia/Saigon",
3134
+ "Asia/Sakhalin",
3135
+ "Asia/Samarkand",
3136
+ "Asia/Seoul",
3137
+ "Asia/Shanghai",
3138
+ "Asia/Singapore",
3139
+ "Asia/Srednekolymsk",
3140
+ "Asia/Taipei",
3141
+ "Asia/Tashkent",
3142
+ "Asia/Tbilisi",
3143
+ "Asia/Tehran",
3144
+ "Asia/Thimphu",
3145
+ "Asia/Tokyo",
3146
+ "Asia/Tomsk",
3147
+ "Asia/Ulaanbaatar",
3148
+ "Asia/Urumqi",
3149
+ "Asia/Ust-Nera",
3150
+ "Asia/Vientiane",
3151
+ "Asia/Vladivostok",
3152
+ "Asia/Yakutsk",
3153
+ "Asia/Yekaterinburg",
3154
+ "Asia/Yerevan",
3155
+ "Atlantic/Azores",
3156
+ "Atlantic/Bermuda",
3157
+ "Atlantic/Canary",
3158
+ "Atlantic/Cape_Verde",
3159
+ "Atlantic/Faeroe",
3160
+ "Atlantic/Madeira",
3161
+ "Atlantic/Reykjavik",
3162
+ "Atlantic/South_Georgia",
3163
+ "Atlantic/St_Helena",
3164
+ "Atlantic/Stanley",
3165
+ "Australia/Adelaide",
3166
+ "Australia/Brisbane",
3167
+ "Australia/Broken_Hill",
3168
+ "Australia/Darwin",
3169
+ "Australia/Eucla",
3170
+ "Australia/Hobart",
3171
+ "Australia/Lindeman",
3172
+ "Australia/Lord_Howe",
3173
+ "Australia/Melbourne",
3174
+ "Australia/Perth",
3175
+ "Australia/Sydney",
3176
+ "Europe/Amsterdam",
3177
+ "Europe/Andorra",
3178
+ "Europe/Astrakhan",
3179
+ "Europe/Athens",
3180
+ "Europe/Belgrade",
3181
+ "Europe/Berlin",
3182
+ "Europe/Bratislava",
3183
+ "Europe/Brussels",
3184
+ "Europe/Bucharest",
3185
+ "Europe/Budapest",
3186
+ "Europe/Busingen",
3187
+ "Europe/Chisinau",
3188
+ "Europe/Copenhagen",
3189
+ "Europe/Dublin",
3190
+ "Europe/Gibraltar",
3191
+ "Europe/Guernsey",
3192
+ "Europe/Helsinki",
3193
+ "Europe/Isle_of_Man",
3194
+ "Europe/Istanbul",
3195
+ "Europe/Jersey",
3196
+ "Europe/Kaliningrad",
3197
+ "Europe/Kiev",
3198
+ "Europe/Kirov",
3199
+ "Europe/Lisbon",
3200
+ "Europe/Ljubljana",
3201
+ "Europe/London",
3202
+ "Europe/Luxembourg",
3203
+ "Europe/Madrid",
3204
+ "Europe/Malta",
3205
+ "Europe/Mariehamn",
3206
+ "Europe/Minsk",
3207
+ "Europe/Monaco",
3208
+ "Europe/Moscow",
3209
+ "Europe/Oslo",
3210
+ "Europe/Paris",
3211
+ "Europe/Podgorica",
3212
+ "Europe/Prague",
3213
+ "Europe/Riga",
3214
+ "Europe/Rome",
3215
+ "Europe/Samara",
3216
+ "Europe/San_Marino",
3217
+ "Europe/Sarajevo",
3218
+ "Europe/Saratov",
3219
+ "Europe/Simferopol",
3220
+ "Europe/Skopje",
3221
+ "Europe/Sofia",
3222
+ "Europe/Stockholm",
3223
+ "Europe/Tallinn",
3224
+ "Europe/Tirane",
3225
+ "Europe/Ulyanovsk",
3226
+ "Europe/Vaduz",
3227
+ "Europe/Vatican",
3228
+ "Europe/Vienna",
3229
+ "Europe/Vilnius",
3230
+ "Europe/Volgograd",
3231
+ "Europe/Warsaw",
3232
+ "Europe/Zagreb",
3233
+ "Europe/Zurich",
3234
+ "Indian/Antananarivo",
3235
+ "Indian/Chagos",
3236
+ "Indian/Christmas",
3237
+ "Indian/Cocos",
3238
+ "Indian/Comoro",
3239
+ "Indian/Kerguelen",
3240
+ "Indian/Mahe",
3241
+ "Indian/Maldives",
3242
+ "Indian/Mauritius",
3243
+ "Indian/Mayotte",
3244
+ "Indian/Reunion",
3245
+ "Pacific/Apia",
3246
+ "Pacific/Auckland",
3247
+ "Pacific/Bougainville",
3248
+ "Pacific/Chatham",
3249
+ "Pacific/Easter",
3250
+ "Pacific/Efate",
3251
+ "Pacific/Enderbury",
3252
+ "Pacific/Fakaofo",
3253
+ "Pacific/Fiji",
3254
+ "Pacific/Funafuti",
3255
+ "Pacific/Galapagos",
3256
+ "Pacific/Gambier",
3257
+ "Pacific/Guadalcanal",
3258
+ "Pacific/Guam",
3259
+ "Pacific/Honolulu",
3260
+ "Pacific/Kiritimati",
3261
+ "Pacific/Kosrae",
3262
+ "Pacific/Kwajalein",
3263
+ "Pacific/Majuro",
3264
+ "Pacific/Marquesas",
3265
+ "Pacific/Midway",
3266
+ "Pacific/Nauru",
3267
+ "Pacific/Niue",
3268
+ "Pacific/Norfolk",
3269
+ "Pacific/Noumea",
3270
+ "Pacific/Pago_Pago",
3271
+ "Pacific/Palau",
3272
+ "Pacific/Pitcairn",
3273
+ "Pacific/Ponape",
3274
+ "Pacific/Port_Moresby",
3275
+ "Pacific/Rarotonga",
3276
+ "Pacific/Saipan",
3277
+ "Pacific/Tahiti",
3278
+ "Pacific/Tarawa",
3279
+ "Pacific/Tongatapu",
3280
+ "Pacific/Truk",
3281
+ "Pacific/Wake",
3282
+ "Pacific/Wallis"
3283
+ ]
3284
+ },
3285
+ "starts_on": {
3286
+ "type": "string",
3287
+ "format": "date",
3288
+ "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])))$"
3289
+ },
3290
+ "starts_at": {
3291
+ "anyOf": [
3292
+ {
3293
+ "type": "string",
3294
+ "allOf": [
3295
+ {
3296
+ "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))$"
3297
+ },
3298
+ {
3299
+ "pattern": "Z$"
3300
+ }
3301
+ ]
3302
+ },
3303
+ {
3304
+ "type": "null"
3305
+ }
3306
+ ]
3307
+ },
3308
+ "current_period_ends_at": {
3309
+ "type": "string",
3310
+ "allOf": [
3311
+ {
3312
+ "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))$"
3313
+ },
3314
+ {
3315
+ "pattern": "Z$"
3316
+ }
3317
+ ]
3318
+ },
3319
+ "renews_at": {
3320
+ "type": "string",
3321
+ "allOf": [
3322
+ {
3323
+ "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))$"
3324
+ },
3325
+ {
3326
+ "pattern": "Z$"
3327
+ }
3328
+ ]
3329
+ },
3330
+ "effective": {
3331
+ "oneOf": [
3332
+ {
3333
+ "type": "object",
3334
+ "properties": {
3335
+ "mode": {
3336
+ "type": "string",
3337
+ "const": "on_confirmation"
3338
+ },
3339
+ "quoted_as_of_at": {
3340
+ "type": "string",
3341
+ "allOf": [
3342
+ {
3343
+ "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))$"
3344
+ },
3345
+ {
3346
+ "pattern": "Z$"
3347
+ }
3348
+ ]
3349
+ },
3350
+ "local_date": {
3351
+ "type": "string",
3352
+ "format": "date",
3353
+ "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])))$"
3354
+ }
3355
+ },
3356
+ "required": [
3357
+ "mode",
3358
+ "quoted_as_of_at",
3359
+ "local_date"
3360
+ ],
3361
+ "additionalProperties": false
3362
+ },
3363
+ {
3364
+ "type": "object",
3365
+ "properties": {
3366
+ "mode": {
3367
+ "type": "string",
3368
+ "const": "scheduled"
3369
+ },
3370
+ "at": {
3371
+ "type": "string",
3372
+ "allOf": [
3373
+ {
3374
+ "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))$"
3375
+ },
3376
+ {
3377
+ "pattern": "Z$"
3378
+ }
3379
+ ]
3380
+ },
3381
+ "at_period_end": {
3382
+ "type": "boolean"
3383
+ }
3384
+ },
3385
+ "required": [
3386
+ "mode",
3387
+ "at",
3388
+ "at_period_end"
3389
+ ],
3390
+ "additionalProperties": false
3391
+ }
3392
+ ]
3393
+ }
3394
+ },
3395
+ "required": [
3396
+ "anchor",
3397
+ "display_time_zone",
3398
+ "starts_on",
3399
+ "starts_at",
3400
+ "current_period_ends_at",
3401
+ "renews_at",
3402
+ "effective"
3403
+ ],
3404
+ "additionalProperties": false
3405
+ },
3406
+ "future_price_replacement": {
3407
+ "anyOf": [
3408
+ {
3409
+ "type": "object",
3410
+ "properties": {
3411
+ "agreement_id": {
3412
+ "type": "string",
3413
+ "format": "uuid",
3414
+ "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)$"
3415
+ },
3416
+ "text": {
3417
+ "type": "string",
3418
+ "minLength": 1,
3419
+ "pattern": "\\S"
3420
+ }
3421
+ },
3422
+ "required": [
3423
+ "agreement_id",
3424
+ "text"
3425
+ ],
3426
+ "additionalProperties": false
3427
+ },
3428
+ {
3429
+ "type": "null"
3430
+ }
3431
+ ]
3432
+ },
3433
+ "declaration": {
3434
+ "type": "object",
3435
+ "properties": {
3436
+ "text_id": {
3437
+ "type": "string",
3438
+ "enum": [
3439
+ "C4-1168-checkout",
3440
+ "C4-1168-pay-and-switch",
3441
+ "C4-1168-switch",
3442
+ "C4-1168-schedule-switch",
3443
+ "C4-1168-schedule-downgrade",
3444
+ "C4-1168-cancel",
3445
+ "C4-1168-keep-basic"
3446
+ ],
3447
+ "description": "The approved sentence this display shows, one per action."
3448
+ },
3449
+ "text": {
3450
+ "type": "string",
3451
+ "minLength": 1,
3452
+ "pattern": "^By selecting “",
3453
+ "description": "The consent sentence shown directly above the button, naming the button."
3454
+ },
3455
+ "action_label": {
3456
+ "type": "string",
3457
+ "minLength": 1,
3458
+ "description": "The label of the one button that confirms this decision."
3459
+ },
3460
+ "terms": {
3461
+ "type": "object",
3462
+ "properties": {
3463
+ "version": {
3464
+ "type": "string",
3465
+ "minLength": 1,
3466
+ "maxLength": 80
3467
+ },
3468
+ "version_date": {
3469
+ "type": "string",
3470
+ "format": "date",
3471
+ "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])))$"
3472
+ },
3473
+ "url": {
3474
+ "type": "string",
3475
+ "maxLength": 2048,
3476
+ "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]))?(?:[/?#]|$)",
3477
+ "format": "uri"
3478
+ }
3479
+ },
3480
+ "required": [
3481
+ "version",
3482
+ "version_date",
3483
+ "url"
3484
+ ],
3485
+ "additionalProperties": false
3486
+ },
3487
+ "dpa": {
3488
+ "type": "object",
3489
+ "properties": {
3490
+ "version": {
3491
+ "type": "string",
3492
+ "minLength": 1,
3493
+ "maxLength": 80
3494
+ },
3495
+ "version_date": {
3496
+ "type": "string",
3497
+ "format": "date",
3498
+ "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])))$"
3499
+ },
3500
+ "url": {
3501
+ "type": "string",
3502
+ "maxLength": 2048,
3503
+ "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]))?(?:[/?#]|$)",
3504
+ "format": "uri"
3505
+ }
3506
+ },
3507
+ "required": [
3508
+ "version",
3509
+ "version_date",
3510
+ "url"
3511
+ ],
3512
+ "additionalProperties": false
3513
+ }
3514
+ },
3515
+ "required": [
3516
+ "text_id",
3517
+ "text",
3518
+ "action_label",
3519
+ "terms",
3520
+ "dpa"
3521
+ ],
3522
+ "additionalProperties": false,
3523
+ "allOf": [
3524
+ {
3525
+ "if": {
3526
+ "properties": {
3527
+ "text_id": {
3528
+ "const": "C4-1168-checkout"
3529
+ }
3530
+ },
3531
+ "required": [
3532
+ "text_id"
3533
+ ]
3534
+ },
3535
+ "then": {
3536
+ "properties": {
3537
+ "action_label": {
3538
+ "pattern": "^Pay \\S.* with Mollie$"
3539
+ }
3540
+ }
3541
+ }
3542
+ },
3543
+ {
3544
+ "if": {
3545
+ "properties": {
3546
+ "text_id": {
3547
+ "const": "C4-1168-pay-and-switch"
3548
+ }
3549
+ },
3550
+ "required": [
3551
+ "text_id"
3552
+ ]
3553
+ },
3554
+ "then": {
3555
+ "properties": {
3556
+ "action_label": {
3557
+ "pattern": "^Pay \\S.* and switch$"
3558
+ }
3559
+ }
3560
+ }
3561
+ },
3562
+ {
3563
+ "if": {
3564
+ "properties": {
3565
+ "text_id": {
3566
+ "const": "C4-1168-switch"
3567
+ }
3568
+ },
3569
+ "required": [
3570
+ "text_id"
3571
+ ]
3572
+ },
3573
+ "then": {
3574
+ "properties": {
3575
+ "action_label": {
3576
+ "pattern": "^Switch to \\S.*$"
3577
+ }
3578
+ }
3579
+ }
3580
+ },
3581
+ {
3582
+ "if": {
3583
+ "properties": {
3584
+ "text_id": {
3585
+ "const": "C4-1168-schedule-switch"
3586
+ }
3587
+ },
3588
+ "required": [
3589
+ "text_id"
3590
+ ]
3591
+ },
3592
+ "then": {
3593
+ "properties": {
3594
+ "action_label": {
3595
+ "const": "Switch to monthly at period end"
3596
+ }
3597
+ }
3598
+ }
3599
+ },
3600
+ {
3601
+ "if": {
3602
+ "properties": {
3603
+ "text_id": {
3604
+ "const": "C4-1168-schedule-downgrade"
3605
+ }
3606
+ },
3607
+ "required": [
3608
+ "text_id"
3609
+ ]
3610
+ },
3611
+ "then": {
3612
+ "properties": {
3613
+ "action_label": {
3614
+ "pattern": "^Schedule downgrade to \\S.*$"
3615
+ }
3616
+ }
3617
+ }
3618
+ },
3619
+ {
3620
+ "if": {
3621
+ "properties": {
3622
+ "text_id": {
3623
+ "const": "C4-1168-cancel"
3624
+ }
3625
+ },
3626
+ "required": [
3627
+ "text_id"
3628
+ ]
3629
+ },
3630
+ "then": {
3631
+ "properties": {
3632
+ "action_label": {
3633
+ "const": "Cancel at period end"
3634
+ }
3635
+ }
3636
+ }
3637
+ },
3638
+ {
3639
+ "if": {
3640
+ "properties": {
3641
+ "text_id": {
3642
+ "const": "C4-1168-keep-basic"
3643
+ }
3644
+ },
3645
+ "required": [
3646
+ "text_id"
3647
+ ]
3648
+ },
3649
+ "then": {
3650
+ "properties": {
3651
+ "action_label": {
3652
+ "const": "Delete the rest and stay on Basic"
3653
+ }
3654
+ }
3655
+ }
3656
+ }
3657
+ ]
3658
+ },
3659
+ "expires_at": {
3660
+ "type": "string",
3661
+ "allOf": [
3662
+ {
3663
+ "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))$"
3664
+ },
3665
+ {
3666
+ "pattern": "Z$"
3667
+ }
3668
+ ]
3669
+ },
3670
+ "decision_kind": {
3671
+ "type": "string",
3672
+ "const": "plan_change"
3673
+ },
3674
+ "selection": {
3675
+ "type": "object",
3676
+ "properties": {
3677
+ "plan": {
3678
+ "type": "string",
3679
+ "enum": [
3680
+ "basic",
3681
+ "plus",
3682
+ "pro"
3683
+ ]
3684
+ },
3685
+ "cycle": {
3686
+ "type": "string",
3687
+ "enum": [
3688
+ "monthly",
3689
+ "yearly"
3690
+ ]
3691
+ },
3692
+ "addons": {
3693
+ "type": "object",
3694
+ "properties": {
3695
+ "seats": {
3696
+ "type": "integer",
3697
+ "minimum": 0,
3698
+ "maximum": 9007199254740991,
3699
+ "description": "Extra developer seats, one each."
3700
+ },
3701
+ "robots": {
3702
+ "type": "integer",
3703
+ "minimum": 0,
3704
+ "maximum": 9007199254740991,
3705
+ "description": "Extra robots, one each."
3706
+ },
3707
+ "apps": {
3708
+ "type": "integer",
3709
+ "minimum": 0,
3710
+ "maximum": 9007199254740991,
3711
+ "description": "Extra apps, one each."
3712
+ },
3713
+ "app_user_packs": {
3714
+ "type": "integer",
3715
+ "minimum": 0,
3716
+ "maximum": 9007199254740991,
3717
+ "description": "Packs of five extra app users."
3718
+ },
3719
+ "live_video_packs": {
3720
+ "type": "integer",
3721
+ "minimum": 0,
3722
+ "maximum": 9007199254740991,
3723
+ "description": "Packs of 250 extra hours of app-user live video per month."
3724
+ }
3725
+ },
3726
+ "required": [
3727
+ "seats",
3728
+ "robots",
3729
+ "apps",
3730
+ "app_user_packs",
3731
+ "live_video_packs"
3732
+ ],
3733
+ "additionalProperties": false
3734
+ },
3735
+ "keep": {
3736
+ "anyOf": [
3737
+ {
3738
+ "type": "object",
3739
+ "properties": {
3740
+ "robots": {
3741
+ "type": "array",
3742
+ "items": {
3743
+ "type": "string",
3744
+ "format": "uuid",
3745
+ "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)$"
3746
+ },
3747
+ "description": "The robots that stay, by id. Every other robot is deleted when the change takes effect."
3748
+ },
3749
+ "apps": {
3750
+ "type": "array",
3751
+ "items": {
3752
+ "type": "string",
3753
+ "format": "uuid",
3754
+ "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)$"
3755
+ },
3756
+ "description": "The apps that stay, by id. Every other app is deleted when the change takes effect."
3757
+ },
3758
+ "app_users": {
3759
+ "type": "array",
3760
+ "items": {
3761
+ "type": "string",
3762
+ "format": "uuid",
3763
+ "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)$"
3764
+ },
3765
+ "description": "The app users that stay, by id, across every app. Every other app user is deleted when the change takes effect."
3766
+ },
3767
+ "developers": {
3768
+ "type": "array",
3769
+ "items": {
3770
+ "type": "string",
3771
+ "format": "uuid",
3772
+ "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)$"
3773
+ },
3774
+ "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."
3775
+ }
3776
+ },
3777
+ "required": [
3778
+ "robots",
3779
+ "apps",
3780
+ "app_users",
3781
+ "developers"
3782
+ ],
3783
+ "additionalProperties": false
3784
+ },
3785
+ {
3786
+ "type": "null"
3787
+ }
3788
+ ]
3789
+ }
3790
+ },
3791
+ "required": [
3792
+ "plan",
3793
+ "cycle",
3794
+ "addons",
3795
+ "keep"
3796
+ ],
3797
+ "additionalProperties": false
3798
+ }
3799
+ },
3800
+ "required": [
3801
+ "snapshot_id",
3802
+ "decision_id",
3803
+ "operation_key",
3804
+ "owner_id",
3805
+ "organization_id",
3806
+ "organization_name",
3807
+ "quote_revision",
3808
+ "buyer_fingerprint",
3809
+ "amounts",
3810
+ "period",
3811
+ "future_price_replacement",
3812
+ "declaration",
3813
+ "expires_at",
3814
+ "decision_kind",
3815
+ "selection"
3816
+ ],
3817
+ "additionalProperties": false
3818
+ }
3819
+ ],
3820
+ "allOf": [
3821
+ {
3822
+ "if": {
3823
+ "properties": {
3824
+ "period": {
3825
+ "properties": {
3826
+ "anchor": {
3827
+ "const": "on_first_successful_payment"
3828
+ },
3829
+ "cycle": {
3830
+ "const": "monthly"
3831
+ }
3832
+ },
3833
+ "required": [
3834
+ "anchor",
3835
+ "cycle"
3836
+ ]
3837
+ }
3838
+ },
3839
+ "required": [
3840
+ "period"
3841
+ ]
3842
+ },
3843
+ "then": {
3844
+ "properties": {
3845
+ "selection": {
3846
+ "properties": {
3847
+ "cycle": {
3848
+ "const": "monthly"
3849
+ }
3850
+ },
3851
+ "required": [
3852
+ "cycle"
3853
+ ]
3854
+ }
3855
+ },
3856
+ "required": [
3857
+ "selection"
3858
+ ]
3859
+ }
3860
+ },
3861
+ {
3862
+ "if": {
3863
+ "properties": {
3864
+ "period": {
3865
+ "properties": {
3866
+ "anchor": {
3867
+ "const": "on_first_successful_payment"
3868
+ },
3869
+ "cycle": {
3870
+ "const": "yearly"
3871
+ }
3872
+ },
3873
+ "required": [
3874
+ "anchor",
3875
+ "cycle"
3876
+ ]
3877
+ }
3878
+ },
3879
+ "required": [
3880
+ "period"
3881
+ ]
3882
+ },
3883
+ "then": {
3884
+ "properties": {
3885
+ "selection": {
3886
+ "properties": {
3887
+ "cycle": {
3888
+ "const": "yearly"
3889
+ }
3890
+ },
3891
+ "required": [
3892
+ "cycle"
3893
+ ]
3894
+ }
3895
+ },
3896
+ "required": [
3897
+ "selection"
3898
+ ]
3899
+ }
3900
+ }
3901
+ ]
3902
+ }
3903
+ },
3904
+ "required": [
3905
+ "confirmation_proof",
3906
+ "expires_at",
3907
+ "snapshot"
3908
+ ],
3909
+ "additionalProperties": false
3910
+ }
3911
+ },
3912
+ "required": [
3913
+ "intent_id",
3914
+ "operation_key",
3915
+ "operation",
3916
+ "state",
3917
+ "quote_revision",
3918
+ "buyer_fingerprint",
3919
+ "quote",
3920
+ "display"
3921
+ ],
3922
+ "additionalProperties": false,
3923
+ "description": "Eligible: the price is frozen and the display shown; one click on its button confirms."
3924
+ },
3925
+ {
3926
+ "type": "object",
3927
+ "properties": {
3928
+ "state": {
3929
+ "type": "string",
3930
+ "const": "vies_unavailable"
3931
+ },
3932
+ "field": {
3933
+ "type": "string",
3934
+ "const": "billing.vat_id"
3935
+ },
3936
+ "reason": {
3937
+ "type": "string",
3938
+ "enum": [
3939
+ "vies_unavailable",
3940
+ "vies_unverified",
3941
+ "vies_identifier_missing"
3942
+ ]
3943
+ }
3944
+ },
3945
+ "required": [
3946
+ "state",
3947
+ "field",
3948
+ "reason"
3949
+ ],
3950
+ "additionalProperties": false,
3951
+ "description": "VIES did not confirm the VAT ID within its retries. Nothing is stored; check again."
3952
+ },
3953
+ {
3954
+ "type": "object",
3955
+ "properties": {
3956
+ "state": {
3957
+ "type": "string",
3958
+ "const": "invalid_vat_id"
3959
+ },
3960
+ "field": {
3961
+ "type": "string",
3962
+ "const": "billing.vat_id"
3963
+ },
3964
+ "rule": {
3965
+ "type": "string",
3966
+ "const": "vat_id_invalid"
3967
+ }
3968
+ },
3969
+ "required": [
3970
+ "state",
3971
+ "field",
3972
+ "rule"
3973
+ ],
3974
+ "additionalProperties": false,
3975
+ "description": "VIES says the VAT ID is invalid. Nothing is stored."
3976
+ },
3977
+ {
3978
+ "type": "object",
3979
+ "properties": {
3980
+ "state": {
3981
+ "type": "string",
3982
+ "const": "refused"
3983
+ },
3984
+ "field": {
3985
+ "type": "string",
3986
+ "minLength": 1
3987
+ },
3988
+ "rule": {
3989
+ "type": "string",
3990
+ "enum": [
3991
+ "company_required",
3992
+ "vat_id_required",
3993
+ "vat_id_invalid",
3994
+ "tax_id_required",
3995
+ "us_state_required",
3996
+ "public_email_domain",
3997
+ "invoice_not_open"
3998
+ ]
3999
+ }
4000
+ },
4001
+ "required": [
4002
+ "state",
4003
+ "field",
4004
+ "rule"
4005
+ ],
4006
+ "additionalProperties": false,
4007
+ "description": "A field the purchase cannot accept. Nothing is stored."
4008
+ },
4009
+ {
4010
+ "type": "object",
4011
+ "properties": {
4012
+ "intent_id": {
4013
+ "type": "string",
4014
+ "format": "uuid",
4015
+ "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)$",
4016
+ "description": "The persisted checkout intent; confirm it with `POST /api/billing/intents/:id/confirm`."
4017
+ },
4018
+ "operation_key": {
4019
+ "type": "string",
4020
+ "format": "uuid",
4021
+ "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)$",
4022
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
4023
+ },
4024
+ "operation": {
4025
+ "type": "string",
4026
+ "const": "checkout"
4027
+ },
4028
+ "state": {
4029
+ "type": "string",
4030
+ "const": "held"
4031
+ },
4032
+ "reason": {
4033
+ "type": "string",
4034
+ "const": "issuer_cutover_in_progress"
4035
+ }
4036
+ },
4037
+ "required": [
4038
+ "intent_id",
4039
+ "operation_key",
4040
+ "operation",
4041
+ "state",
4042
+ "reason"
4043
+ ],
4044
+ "additionalProperties": false,
4045
+ "description": "An issuer cutover is running; try again in a few minutes."
4046
+ },
4047
+ {
4048
+ "type": "object",
4049
+ "properties": {
4050
+ "intent_id": {
4051
+ "type": "string",
4052
+ "format": "uuid",
4053
+ "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)$",
4054
+ "description": "The persisted checkout intent; confirm it with `POST /api/billing/intents/:id/confirm`."
4055
+ },
4056
+ "operation_key": {
4057
+ "type": "string",
4058
+ "format": "uuid",
4059
+ "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)$",
4060
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
4061
+ },
4062
+ "operation": {
4063
+ "type": "string",
4064
+ "const": "checkout"
4065
+ },
4066
+ "state": {
4067
+ "type": "string",
4068
+ "const": "payment_started"
4069
+ },
4070
+ "payment_id": {
4071
+ "type": "string",
4072
+ "format": "uuid",
4073
+ "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)$"
4074
+ },
4075
+ "payment": {
4076
+ "type": "object",
4077
+ "properties": {
4078
+ "kind": {
4079
+ "type": "string",
4080
+ "const": "hosted"
4081
+ },
4082
+ "checkout_id": {
4083
+ "type": "string",
4084
+ "format": "uuid",
4085
+ "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)$"
4086
+ },
4087
+ "checkout_url": {
4088
+ "type": "string",
4089
+ "format": "uri"
4090
+ }
4091
+ },
4092
+ "required": [
4093
+ "kind",
4094
+ "checkout_id",
4095
+ "checkout_url"
4096
+ ],
4097
+ "additionalProperties": false
4098
+ }
4099
+ },
4100
+ "required": [
4101
+ "intent_id",
4102
+ "operation_key",
4103
+ "operation",
4104
+ "state",
4105
+ "payment_id",
4106
+ "payment"
4107
+ ],
4108
+ "additionalProperties": false,
4109
+ "description": "The key was already confirmed: the hosted payment it started."
4110
+ }
4111
+ ],
4112
+ "allOf": [
4113
+ {
4114
+ "if": {
4115
+ "properties": {
4116
+ "state": {
4117
+ "const": "eligible"
4118
+ }
4119
+ },
4120
+ "required": [
4121
+ "state"
4122
+ ]
4123
+ },
4124
+ "then": {
4125
+ "properties": {
4126
+ "display": {
4127
+ "properties": {
4128
+ "snapshot": {
4129
+ "properties": {
4130
+ "decision_kind": {
4131
+ "const": "checkout"
4132
+ }
4133
+ }
4134
+ }
4135
+ }
4136
+ }
4137
+ }
4138
+ }
4139
+ }
4140
+ ]
4141
+ }