@voyant-travel/openapi 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +8 -5
  2. package/spec/admin/accommodations.json +1395 -0
  3. package/spec/admin/action-ledger.json +6202 -0
  4. package/spec/admin/booking-requirements.json +5689 -0
  5. package/spec/admin/bookings.json +18794 -0
  6. package/spec/admin/catalog.json +690 -0
  7. package/spec/admin/distribution.json +19581 -0
  8. package/spec/admin/external-refs.json +1382 -0
  9. package/spec/admin/extras.json +4648 -0
  10. package/spec/admin/finance.json +35506 -0
  11. package/spec/admin/identity.json +4072 -0
  12. package/spec/admin/legal.json +14339 -0
  13. package/spec/admin/markets.json +5286 -0
  14. package/spec/admin/notifications.json +8409 -0
  15. package/spec/admin/operations.json +39806 -0
  16. package/spec/admin/operator-settings.json +1389 -0
  17. package/spec/admin/pricing.json +10640 -0
  18. package/spec/admin/products.json +22131 -0
  19. package/spec/admin/promotions.json +2730 -0
  20. package/spec/admin/quotes.json +7033 -0
  21. package/spec/admin/relationships.json +13911 -0
  22. package/spec/admin/sellability.json +4840 -0
  23. package/spec/admin/storefront.json +1953 -0
  24. package/spec/admin/suppliers.json +5850 -0
  25. package/spec/admin/trips.json +9357 -0
  26. package/spec/framework-admin.json +2552 -276
  27. package/spec/framework-openapi.json +2785 -708
  28. package/spec/framework-storefront.json +252 -451
  29. package/spec/storefront/booking-requirements.json +367 -0
  30. package/spec/storefront/bookings.json +6137 -0
  31. package/spec/storefront/catalog.json +690 -0
  32. package/spec/storefront/customer-portal.json +6038 -0
  33. package/spec/storefront/finance.json +4824 -0
  34. package/spec/storefront/legal.json +2082 -0
  35. package/spec/storefront/markets.json +256 -0
  36. package/spec/storefront/operator-settings.json +309 -0
  37. package/spec/storefront/pricing.json +585 -0
  38. package/spec/storefront/products.json +2910 -0
  39. package/spec/storefront/storefront-verification.json +909 -0
  40. package/spec/storefront/storefront.json +4067 -0
  41. package/spec/storefront/trips.json +9357 -0
@@ -0,0 +1,1389 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "Voyant Framework API",
5
+ "version": "0.0.0",
6
+ "description": "Generated from the Voyant framework's standard module composition. Do not edit by hand."
7
+ },
8
+ "components": {
9
+ "schemas": {
10
+ "CatalogSearchFilter": {
11
+ "anyOf": [
12
+ {
13
+ "type": "object",
14
+ "properties": {
15
+ "kind": {
16
+ "type": "string",
17
+ "enum": [
18
+ "eq"
19
+ ]
20
+ },
21
+ "field": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "value": {
26
+ "anyOf": [
27
+ {
28
+ "type": "string"
29
+ },
30
+ {
31
+ "type": "number"
32
+ },
33
+ {
34
+ "type": "boolean"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ "required": [
40
+ "kind",
41
+ "field",
42
+ "value"
43
+ ]
44
+ },
45
+ {
46
+ "type": "object",
47
+ "properties": {
48
+ "kind": {
49
+ "type": "string",
50
+ "enum": [
51
+ "in"
52
+ ]
53
+ },
54
+ "field": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "values": {
59
+ "type": "array",
60
+ "items": {
61
+ "anyOf": [
62
+ {
63
+ "type": "string"
64
+ },
65
+ {
66
+ "type": "number"
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ },
72
+ "required": [
73
+ "kind",
74
+ "field",
75
+ "values"
76
+ ]
77
+ },
78
+ {
79
+ "type": "object",
80
+ "properties": {
81
+ "kind": {
82
+ "type": "string",
83
+ "enum": [
84
+ "range"
85
+ ]
86
+ },
87
+ "field": {
88
+ "type": "string",
89
+ "minLength": 1
90
+ },
91
+ "gte": {
92
+ "type": "number"
93
+ },
94
+ "lte": {
95
+ "type": "number"
96
+ }
97
+ },
98
+ "required": [
99
+ "kind",
100
+ "field"
101
+ ]
102
+ },
103
+ {
104
+ "type": "object",
105
+ "properties": {
106
+ "kind": {
107
+ "type": "string",
108
+ "enum": [
109
+ "and"
110
+ ]
111
+ },
112
+ "clauses": {
113
+ "type": "array",
114
+ "items": {
115
+ "$ref": "#/components/schemas/CatalogSearchFilter"
116
+ }
117
+ }
118
+ },
119
+ "required": [
120
+ "kind",
121
+ "clauses"
122
+ ]
123
+ },
124
+ {
125
+ "type": "object",
126
+ "properties": {
127
+ "kind": {
128
+ "type": "string",
129
+ "enum": [
130
+ "or"
131
+ ]
132
+ },
133
+ "clauses": {
134
+ "type": "array",
135
+ "items": {
136
+ "$ref": "#/components/schemas/CatalogSearchFilter"
137
+ }
138
+ }
139
+ },
140
+ "required": [
141
+ "kind",
142
+ "clauses"
143
+ ]
144
+ }
145
+ ]
146
+ }
147
+ },
148
+ "parameters": {}
149
+ },
150
+ "paths": {
151
+ "/v1/admin/settings/operator-profile": {
152
+ "get": {
153
+ "responses": {
154
+ "200": {
155
+ "description": "The operator profile",
156
+ "content": {
157
+ "application/json": {
158
+ "schema": {
159
+ "type": "object",
160
+ "properties": {
161
+ "data": {
162
+ "type": [
163
+ "object",
164
+ "null"
165
+ ],
166
+ "properties": {
167
+ "id": {
168
+ "type": "string"
169
+ },
170
+ "name": {
171
+ "type": [
172
+ "string",
173
+ "null"
174
+ ]
175
+ },
176
+ "legalName": {
177
+ "type": [
178
+ "string",
179
+ "null"
180
+ ]
181
+ },
182
+ "vatId": {
183
+ "type": [
184
+ "string",
185
+ "null"
186
+ ]
187
+ },
188
+ "registrationNumber": {
189
+ "type": [
190
+ "string",
191
+ "null"
192
+ ]
193
+ },
194
+ "address": {
195
+ "type": [
196
+ "string",
197
+ "null"
198
+ ]
199
+ },
200
+ "phone": {
201
+ "type": [
202
+ "string",
203
+ "null"
204
+ ]
205
+ },
206
+ "email": {
207
+ "type": [
208
+ "string",
209
+ "null"
210
+ ]
211
+ },
212
+ "website": {
213
+ "type": [
214
+ "string",
215
+ "null"
216
+ ]
217
+ },
218
+ "license": {
219
+ "type": [
220
+ "string",
221
+ "null"
222
+ ]
223
+ },
224
+ "licenseAuthority": {
225
+ "type": [
226
+ "string",
227
+ "null"
228
+ ]
229
+ },
230
+ "signatoryName": {
231
+ "type": [
232
+ "string",
233
+ "null"
234
+ ]
235
+ },
236
+ "signatoryRole": {
237
+ "type": [
238
+ "string",
239
+ "null"
240
+ ]
241
+ },
242
+ "createdAt": {
243
+ "type": "string"
244
+ },
245
+ "updatedAt": {
246
+ "type": "string"
247
+ }
248
+ },
249
+ "required": [
250
+ "id",
251
+ "name",
252
+ "legalName",
253
+ "vatId",
254
+ "registrationNumber",
255
+ "address",
256
+ "phone",
257
+ "email",
258
+ "website",
259
+ "license",
260
+ "licenseAuthority",
261
+ "signatoryName",
262
+ "signatoryRole",
263
+ "createdAt",
264
+ "updatedAt"
265
+ ]
266
+ }
267
+ },
268
+ "required": [
269
+ "data"
270
+ ]
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ },
277
+ "patch": {
278
+ "requestBody": {
279
+ "required": true,
280
+ "content": {
281
+ "application/json": {
282
+ "schema": {
283
+ "type": "object",
284
+ "properties": {
285
+ "name": {
286
+ "type": [
287
+ "string",
288
+ "null"
289
+ ]
290
+ },
291
+ "legalName": {
292
+ "type": [
293
+ "string",
294
+ "null"
295
+ ]
296
+ },
297
+ "vatId": {
298
+ "type": [
299
+ "string",
300
+ "null"
301
+ ]
302
+ },
303
+ "registrationNumber": {
304
+ "type": [
305
+ "string",
306
+ "null"
307
+ ]
308
+ },
309
+ "address": {
310
+ "type": [
311
+ "string",
312
+ "null"
313
+ ]
314
+ },
315
+ "phone": {
316
+ "type": [
317
+ "string",
318
+ "null"
319
+ ]
320
+ },
321
+ "email": {
322
+ "anyOf": [
323
+ {
324
+ "type": [
325
+ "string",
326
+ "null"
327
+ ],
328
+ "format": "email"
329
+ },
330
+ {
331
+ "type": "string",
332
+ "enum": [
333
+ ""
334
+ ]
335
+ },
336
+ {
337
+ "type": "null"
338
+ }
339
+ ]
340
+ },
341
+ "website": {
342
+ "anyOf": [
343
+ {
344
+ "type": [
345
+ "string",
346
+ "null"
347
+ ],
348
+ "format": "uri"
349
+ },
350
+ {
351
+ "type": "string",
352
+ "enum": [
353
+ ""
354
+ ]
355
+ },
356
+ {
357
+ "type": "null"
358
+ }
359
+ ]
360
+ },
361
+ "license": {
362
+ "type": [
363
+ "string",
364
+ "null"
365
+ ]
366
+ },
367
+ "licenseAuthority": {
368
+ "type": [
369
+ "string",
370
+ "null"
371
+ ]
372
+ },
373
+ "signatoryName": {
374
+ "type": [
375
+ "string",
376
+ "null"
377
+ ]
378
+ },
379
+ "signatoryRole": {
380
+ "type": [
381
+ "string",
382
+ "null"
383
+ ]
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
389
+ },
390
+ "responses": {
391
+ "200": {
392
+ "description": "The updated operator profile",
393
+ "content": {
394
+ "application/json": {
395
+ "schema": {
396
+ "type": "object",
397
+ "properties": {
398
+ "data": {
399
+ "type": [
400
+ "object",
401
+ "null"
402
+ ],
403
+ "properties": {
404
+ "id": {
405
+ "type": "string"
406
+ },
407
+ "name": {
408
+ "type": [
409
+ "string",
410
+ "null"
411
+ ]
412
+ },
413
+ "legalName": {
414
+ "type": [
415
+ "string",
416
+ "null"
417
+ ]
418
+ },
419
+ "vatId": {
420
+ "type": [
421
+ "string",
422
+ "null"
423
+ ]
424
+ },
425
+ "registrationNumber": {
426
+ "type": [
427
+ "string",
428
+ "null"
429
+ ]
430
+ },
431
+ "address": {
432
+ "type": [
433
+ "string",
434
+ "null"
435
+ ]
436
+ },
437
+ "phone": {
438
+ "type": [
439
+ "string",
440
+ "null"
441
+ ]
442
+ },
443
+ "email": {
444
+ "type": [
445
+ "string",
446
+ "null"
447
+ ]
448
+ },
449
+ "website": {
450
+ "type": [
451
+ "string",
452
+ "null"
453
+ ]
454
+ },
455
+ "license": {
456
+ "type": [
457
+ "string",
458
+ "null"
459
+ ]
460
+ },
461
+ "licenseAuthority": {
462
+ "type": [
463
+ "string",
464
+ "null"
465
+ ]
466
+ },
467
+ "signatoryName": {
468
+ "type": [
469
+ "string",
470
+ "null"
471
+ ]
472
+ },
473
+ "signatoryRole": {
474
+ "type": [
475
+ "string",
476
+ "null"
477
+ ]
478
+ },
479
+ "createdAt": {
480
+ "type": "string"
481
+ },
482
+ "updatedAt": {
483
+ "type": "string"
484
+ }
485
+ },
486
+ "required": [
487
+ "id",
488
+ "name",
489
+ "legalName",
490
+ "vatId",
491
+ "registrationNumber",
492
+ "address",
493
+ "phone",
494
+ "email",
495
+ "website",
496
+ "license",
497
+ "licenseAuthority",
498
+ "signatoryName",
499
+ "signatoryRole",
500
+ "createdAt",
501
+ "updatedAt"
502
+ ]
503
+ }
504
+ },
505
+ "required": [
506
+ "data"
507
+ ]
508
+ }
509
+ }
510
+ }
511
+ }
512
+ }
513
+ }
514
+ },
515
+ "/v1/admin/settings/operator-payment-instructions": {
516
+ "get": {
517
+ "responses": {
518
+ "200": {
519
+ "description": "The operator payment instructions",
520
+ "content": {
521
+ "application/json": {
522
+ "schema": {
523
+ "type": "object",
524
+ "properties": {
525
+ "data": {
526
+ "type": [
527
+ "object",
528
+ "null"
529
+ ],
530
+ "properties": {
531
+ "id": {
532
+ "type": "string"
533
+ },
534
+ "bankTransferBeneficiary": {
535
+ "type": [
536
+ "string",
537
+ "null"
538
+ ]
539
+ },
540
+ "iban": {
541
+ "type": [
542
+ "string",
543
+ "null"
544
+ ]
545
+ },
546
+ "bank": {
547
+ "type": [
548
+ "string",
549
+ "null"
550
+ ]
551
+ },
552
+ "notes": {
553
+ "type": [
554
+ "string",
555
+ "null"
556
+ ]
557
+ },
558
+ "createdAt": {
559
+ "type": "string"
560
+ },
561
+ "updatedAt": {
562
+ "type": "string"
563
+ }
564
+ },
565
+ "required": [
566
+ "id",
567
+ "bankTransferBeneficiary",
568
+ "iban",
569
+ "bank",
570
+ "notes",
571
+ "createdAt",
572
+ "updatedAt"
573
+ ]
574
+ }
575
+ },
576
+ "required": [
577
+ "data"
578
+ ]
579
+ }
580
+ }
581
+ }
582
+ }
583
+ }
584
+ },
585
+ "patch": {
586
+ "requestBody": {
587
+ "required": true,
588
+ "content": {
589
+ "application/json": {
590
+ "schema": {
591
+ "type": "object",
592
+ "properties": {
593
+ "bankTransferBeneficiary": {
594
+ "type": [
595
+ "string",
596
+ "null"
597
+ ]
598
+ },
599
+ "iban": {
600
+ "type": [
601
+ "string",
602
+ "null"
603
+ ]
604
+ },
605
+ "bank": {
606
+ "type": [
607
+ "string",
608
+ "null"
609
+ ]
610
+ },
611
+ "notes": {
612
+ "type": [
613
+ "string",
614
+ "null"
615
+ ]
616
+ }
617
+ }
618
+ }
619
+ }
620
+ }
621
+ },
622
+ "responses": {
623
+ "200": {
624
+ "description": "The updated operator payment instructions",
625
+ "content": {
626
+ "application/json": {
627
+ "schema": {
628
+ "type": "object",
629
+ "properties": {
630
+ "data": {
631
+ "type": [
632
+ "object",
633
+ "null"
634
+ ],
635
+ "properties": {
636
+ "id": {
637
+ "type": "string"
638
+ },
639
+ "bankTransferBeneficiary": {
640
+ "type": [
641
+ "string",
642
+ "null"
643
+ ]
644
+ },
645
+ "iban": {
646
+ "type": [
647
+ "string",
648
+ "null"
649
+ ]
650
+ },
651
+ "bank": {
652
+ "type": [
653
+ "string",
654
+ "null"
655
+ ]
656
+ },
657
+ "notes": {
658
+ "type": [
659
+ "string",
660
+ "null"
661
+ ]
662
+ },
663
+ "createdAt": {
664
+ "type": "string"
665
+ },
666
+ "updatedAt": {
667
+ "type": "string"
668
+ }
669
+ },
670
+ "required": [
671
+ "id",
672
+ "bankTransferBeneficiary",
673
+ "iban",
674
+ "bank",
675
+ "notes",
676
+ "createdAt",
677
+ "updatedAt"
678
+ ]
679
+ }
680
+ },
681
+ "required": [
682
+ "data"
683
+ ]
684
+ }
685
+ }
686
+ }
687
+ }
688
+ }
689
+ }
690
+ },
691
+ "/v1/admin/settings/operator-payment-defaults": {
692
+ "get": {
693
+ "responses": {
694
+ "200": {
695
+ "description": "The operator payment defaults",
696
+ "content": {
697
+ "application/json": {
698
+ "schema": {
699
+ "type": "object",
700
+ "properties": {
701
+ "data": {
702
+ "type": [
703
+ "object",
704
+ "null"
705
+ ],
706
+ "properties": {
707
+ "id": {
708
+ "type": "string"
709
+ },
710
+ "customerPaymentPolicy": {},
711
+ "bookingCheckoutUrlTemplate": {
712
+ "type": [
713
+ "string",
714
+ "null"
715
+ ]
716
+ },
717
+ "invoicePayUrlTemplate": {
718
+ "type": [
719
+ "string",
720
+ "null"
721
+ ]
722
+ },
723
+ "createdAt": {
724
+ "type": "string"
725
+ },
726
+ "updatedAt": {
727
+ "type": "string"
728
+ }
729
+ },
730
+ "required": [
731
+ "id",
732
+ "bookingCheckoutUrlTemplate",
733
+ "invoicePayUrlTemplate",
734
+ "createdAt",
735
+ "updatedAt"
736
+ ]
737
+ }
738
+ },
739
+ "required": [
740
+ "data"
741
+ ]
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ },
748
+ "patch": {
749
+ "requestBody": {
750
+ "required": true,
751
+ "content": {
752
+ "application/json": {
753
+ "schema": {
754
+ "type": "object",
755
+ "properties": {
756
+ "customerPaymentPolicy": {
757
+ "type": [
758
+ "object",
759
+ "null"
760
+ ],
761
+ "properties": {
762
+ "deposit": {
763
+ "type": "object",
764
+ "properties": {
765
+ "kind": {
766
+ "type": "string",
767
+ "enum": [
768
+ "none",
769
+ "percent",
770
+ "fixed_cents"
771
+ ]
772
+ },
773
+ "percent": {
774
+ "type": "number",
775
+ "minimum": 0,
776
+ "maximum": 100
777
+ },
778
+ "amountCents": {
779
+ "type": "integer",
780
+ "minimum": 0
781
+ }
782
+ },
783
+ "required": [
784
+ "kind"
785
+ ]
786
+ },
787
+ "minDaysBeforeDepartureForDeposit": {
788
+ "type": "integer",
789
+ "minimum": 0
790
+ },
791
+ "balanceDueDaysBeforeDeparture": {
792
+ "type": "integer",
793
+ "minimum": 0
794
+ },
795
+ "balanceDueMinDaysFromNow": {
796
+ "type": "integer",
797
+ "minimum": 0
798
+ }
799
+ },
800
+ "required": [
801
+ "deposit",
802
+ "minDaysBeforeDepartureForDeposit",
803
+ "balanceDueDaysBeforeDeparture",
804
+ "balanceDueMinDaysFromNow"
805
+ ]
806
+ },
807
+ "bookingCheckoutUrlTemplate": {
808
+ "type": [
809
+ "string",
810
+ "null"
811
+ ]
812
+ },
813
+ "invoicePayUrlTemplate": {
814
+ "type": [
815
+ "string",
816
+ "null"
817
+ ]
818
+ }
819
+ }
820
+ }
821
+ }
822
+ }
823
+ },
824
+ "responses": {
825
+ "200": {
826
+ "description": "The updated operator payment defaults",
827
+ "content": {
828
+ "application/json": {
829
+ "schema": {
830
+ "type": "object",
831
+ "properties": {
832
+ "data": {
833
+ "type": [
834
+ "object",
835
+ "null"
836
+ ],
837
+ "properties": {
838
+ "id": {
839
+ "type": "string"
840
+ },
841
+ "customerPaymentPolicy": {},
842
+ "bookingCheckoutUrlTemplate": {
843
+ "type": [
844
+ "string",
845
+ "null"
846
+ ]
847
+ },
848
+ "invoicePayUrlTemplate": {
849
+ "type": [
850
+ "string",
851
+ "null"
852
+ ]
853
+ },
854
+ "createdAt": {
855
+ "type": "string"
856
+ },
857
+ "updatedAt": {
858
+ "type": "string"
859
+ }
860
+ },
861
+ "required": [
862
+ "id",
863
+ "bookingCheckoutUrlTemplate",
864
+ "invoicePayUrlTemplate",
865
+ "createdAt",
866
+ "updatedAt"
867
+ ]
868
+ }
869
+ },
870
+ "required": [
871
+ "data"
872
+ ]
873
+ }
874
+ }
875
+ }
876
+ }
877
+ }
878
+ }
879
+ },
880
+ "/v1/admin/settings/operator": {
881
+ "get": {
882
+ "responses": {
883
+ "200": {
884
+ "description": "The combined operator settings",
885
+ "content": {
886
+ "application/json": {
887
+ "schema": {
888
+ "type": "object",
889
+ "properties": {
890
+ "data": {
891
+ "type": [
892
+ "object",
893
+ "null"
894
+ ],
895
+ "properties": {
896
+ "id": {
897
+ "type": "string"
898
+ },
899
+ "name": {
900
+ "type": [
901
+ "string",
902
+ "null"
903
+ ]
904
+ },
905
+ "legalName": {
906
+ "type": [
907
+ "string",
908
+ "null"
909
+ ]
910
+ },
911
+ "vatId": {
912
+ "type": [
913
+ "string",
914
+ "null"
915
+ ]
916
+ },
917
+ "registrationNumber": {
918
+ "type": [
919
+ "string",
920
+ "null"
921
+ ]
922
+ },
923
+ "address": {
924
+ "type": [
925
+ "string",
926
+ "null"
927
+ ]
928
+ },
929
+ "phone": {
930
+ "type": [
931
+ "string",
932
+ "null"
933
+ ]
934
+ },
935
+ "email": {
936
+ "type": [
937
+ "string",
938
+ "null"
939
+ ]
940
+ },
941
+ "website": {
942
+ "type": [
943
+ "string",
944
+ "null"
945
+ ]
946
+ },
947
+ "license": {
948
+ "type": [
949
+ "string",
950
+ "null"
951
+ ]
952
+ },
953
+ "licenseAuthority": {
954
+ "type": [
955
+ "string",
956
+ "null"
957
+ ]
958
+ },
959
+ "signatoryName": {
960
+ "type": [
961
+ "string",
962
+ "null"
963
+ ]
964
+ },
965
+ "signatoryRole": {
966
+ "type": [
967
+ "string",
968
+ "null"
969
+ ]
970
+ },
971
+ "createdAt": {
972
+ "type": "string"
973
+ },
974
+ "updatedAt": {
975
+ "type": "string"
976
+ },
977
+ "bankTransferBeneficiary": {
978
+ "type": [
979
+ "string",
980
+ "null"
981
+ ]
982
+ },
983
+ "iban": {
984
+ "type": [
985
+ "string",
986
+ "null"
987
+ ]
988
+ },
989
+ "bank": {
990
+ "type": [
991
+ "string",
992
+ "null"
993
+ ]
994
+ },
995
+ "notes": {
996
+ "type": [
997
+ "string",
998
+ "null"
999
+ ]
1000
+ },
1001
+ "customerPaymentPolicy": {},
1002
+ "bookingCheckoutUrlTemplate": {
1003
+ "type": [
1004
+ "string",
1005
+ "null"
1006
+ ]
1007
+ },
1008
+ "invoicePayUrlTemplate": {
1009
+ "type": [
1010
+ "string",
1011
+ "null"
1012
+ ]
1013
+ }
1014
+ },
1015
+ "required": [
1016
+ "bankTransferBeneficiary",
1017
+ "iban",
1018
+ "bank",
1019
+ "notes",
1020
+ "bookingCheckoutUrlTemplate",
1021
+ "invoicePayUrlTemplate"
1022
+ ]
1023
+ }
1024
+ },
1025
+ "required": [
1026
+ "data"
1027
+ ]
1028
+ }
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ },
1034
+ "patch": {
1035
+ "requestBody": {
1036
+ "required": true,
1037
+ "content": {
1038
+ "application/json": {
1039
+ "schema": {
1040
+ "type": "object",
1041
+ "properties": {
1042
+ "name": {
1043
+ "type": [
1044
+ "string",
1045
+ "null"
1046
+ ]
1047
+ },
1048
+ "legalName": {
1049
+ "type": [
1050
+ "string",
1051
+ "null"
1052
+ ]
1053
+ },
1054
+ "vatId": {
1055
+ "type": [
1056
+ "string",
1057
+ "null"
1058
+ ]
1059
+ },
1060
+ "registrationNumber": {
1061
+ "type": [
1062
+ "string",
1063
+ "null"
1064
+ ]
1065
+ },
1066
+ "address": {
1067
+ "type": [
1068
+ "string",
1069
+ "null"
1070
+ ]
1071
+ },
1072
+ "phone": {
1073
+ "type": [
1074
+ "string",
1075
+ "null"
1076
+ ]
1077
+ },
1078
+ "email": {
1079
+ "anyOf": [
1080
+ {
1081
+ "type": [
1082
+ "string",
1083
+ "null"
1084
+ ],
1085
+ "format": "email"
1086
+ },
1087
+ {
1088
+ "type": "string",
1089
+ "enum": [
1090
+ ""
1091
+ ]
1092
+ },
1093
+ {
1094
+ "type": "null"
1095
+ }
1096
+ ]
1097
+ },
1098
+ "website": {
1099
+ "anyOf": [
1100
+ {
1101
+ "type": [
1102
+ "string",
1103
+ "null"
1104
+ ],
1105
+ "format": "uri"
1106
+ },
1107
+ {
1108
+ "type": "string",
1109
+ "enum": [
1110
+ ""
1111
+ ]
1112
+ },
1113
+ {
1114
+ "type": "null"
1115
+ }
1116
+ ]
1117
+ },
1118
+ "license": {
1119
+ "type": [
1120
+ "string",
1121
+ "null"
1122
+ ]
1123
+ },
1124
+ "licenseAuthority": {
1125
+ "type": [
1126
+ "string",
1127
+ "null"
1128
+ ]
1129
+ },
1130
+ "signatoryName": {
1131
+ "type": [
1132
+ "string",
1133
+ "null"
1134
+ ]
1135
+ },
1136
+ "signatoryRole": {
1137
+ "type": [
1138
+ "string",
1139
+ "null"
1140
+ ]
1141
+ },
1142
+ "bankTransferBeneficiary": {
1143
+ "type": [
1144
+ "string",
1145
+ "null"
1146
+ ]
1147
+ },
1148
+ "iban": {
1149
+ "type": [
1150
+ "string",
1151
+ "null"
1152
+ ]
1153
+ },
1154
+ "bank": {
1155
+ "type": [
1156
+ "string",
1157
+ "null"
1158
+ ]
1159
+ },
1160
+ "notes": {
1161
+ "type": [
1162
+ "string",
1163
+ "null"
1164
+ ]
1165
+ },
1166
+ "customerPaymentPolicy": {
1167
+ "type": [
1168
+ "object",
1169
+ "null"
1170
+ ],
1171
+ "properties": {
1172
+ "deposit": {
1173
+ "type": "object",
1174
+ "properties": {
1175
+ "kind": {
1176
+ "type": "string",
1177
+ "enum": [
1178
+ "none",
1179
+ "percent",
1180
+ "fixed_cents"
1181
+ ]
1182
+ },
1183
+ "percent": {
1184
+ "type": "number",
1185
+ "minimum": 0,
1186
+ "maximum": 100
1187
+ },
1188
+ "amountCents": {
1189
+ "type": "integer",
1190
+ "minimum": 0
1191
+ }
1192
+ },
1193
+ "required": [
1194
+ "kind"
1195
+ ]
1196
+ },
1197
+ "minDaysBeforeDepartureForDeposit": {
1198
+ "type": "integer",
1199
+ "minimum": 0
1200
+ },
1201
+ "balanceDueDaysBeforeDeparture": {
1202
+ "type": "integer",
1203
+ "minimum": 0
1204
+ },
1205
+ "balanceDueMinDaysFromNow": {
1206
+ "type": "integer",
1207
+ "minimum": 0
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "deposit",
1212
+ "minDaysBeforeDepartureForDeposit",
1213
+ "balanceDueDaysBeforeDeparture",
1214
+ "balanceDueMinDaysFromNow"
1215
+ ]
1216
+ },
1217
+ "bookingCheckoutUrlTemplate": {
1218
+ "type": [
1219
+ "string",
1220
+ "null"
1221
+ ]
1222
+ },
1223
+ "invoicePayUrlTemplate": {
1224
+ "type": [
1225
+ "string",
1226
+ "null"
1227
+ ]
1228
+ }
1229
+ }
1230
+ }
1231
+ }
1232
+ }
1233
+ },
1234
+ "responses": {
1235
+ "200": {
1236
+ "description": "The updated combined operator settings",
1237
+ "content": {
1238
+ "application/json": {
1239
+ "schema": {
1240
+ "type": "object",
1241
+ "properties": {
1242
+ "data": {
1243
+ "type": [
1244
+ "object",
1245
+ "null"
1246
+ ],
1247
+ "properties": {
1248
+ "id": {
1249
+ "type": "string"
1250
+ },
1251
+ "name": {
1252
+ "type": [
1253
+ "string",
1254
+ "null"
1255
+ ]
1256
+ },
1257
+ "legalName": {
1258
+ "type": [
1259
+ "string",
1260
+ "null"
1261
+ ]
1262
+ },
1263
+ "vatId": {
1264
+ "type": [
1265
+ "string",
1266
+ "null"
1267
+ ]
1268
+ },
1269
+ "registrationNumber": {
1270
+ "type": [
1271
+ "string",
1272
+ "null"
1273
+ ]
1274
+ },
1275
+ "address": {
1276
+ "type": [
1277
+ "string",
1278
+ "null"
1279
+ ]
1280
+ },
1281
+ "phone": {
1282
+ "type": [
1283
+ "string",
1284
+ "null"
1285
+ ]
1286
+ },
1287
+ "email": {
1288
+ "type": [
1289
+ "string",
1290
+ "null"
1291
+ ]
1292
+ },
1293
+ "website": {
1294
+ "type": [
1295
+ "string",
1296
+ "null"
1297
+ ]
1298
+ },
1299
+ "license": {
1300
+ "type": [
1301
+ "string",
1302
+ "null"
1303
+ ]
1304
+ },
1305
+ "licenseAuthority": {
1306
+ "type": [
1307
+ "string",
1308
+ "null"
1309
+ ]
1310
+ },
1311
+ "signatoryName": {
1312
+ "type": [
1313
+ "string",
1314
+ "null"
1315
+ ]
1316
+ },
1317
+ "signatoryRole": {
1318
+ "type": [
1319
+ "string",
1320
+ "null"
1321
+ ]
1322
+ },
1323
+ "createdAt": {
1324
+ "type": "string"
1325
+ },
1326
+ "updatedAt": {
1327
+ "type": "string"
1328
+ },
1329
+ "bankTransferBeneficiary": {
1330
+ "type": [
1331
+ "string",
1332
+ "null"
1333
+ ]
1334
+ },
1335
+ "iban": {
1336
+ "type": [
1337
+ "string",
1338
+ "null"
1339
+ ]
1340
+ },
1341
+ "bank": {
1342
+ "type": [
1343
+ "string",
1344
+ "null"
1345
+ ]
1346
+ },
1347
+ "notes": {
1348
+ "type": [
1349
+ "string",
1350
+ "null"
1351
+ ]
1352
+ },
1353
+ "customerPaymentPolicy": {},
1354
+ "bookingCheckoutUrlTemplate": {
1355
+ "type": [
1356
+ "string",
1357
+ "null"
1358
+ ]
1359
+ },
1360
+ "invoicePayUrlTemplate": {
1361
+ "type": [
1362
+ "string",
1363
+ "null"
1364
+ ]
1365
+ }
1366
+ },
1367
+ "required": [
1368
+ "bankTransferBeneficiary",
1369
+ "iban",
1370
+ "bank",
1371
+ "notes",
1372
+ "bookingCheckoutUrlTemplate",
1373
+ "invoicePayUrlTemplate"
1374
+ ]
1375
+ }
1376
+ },
1377
+ "required": [
1378
+ "data"
1379
+ ]
1380
+ }
1381
+ }
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+ }
1387
+ },
1388
+ "webhooks": {}
1389
+ }