@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
@@ -43812,6 +43812,42 @@
43812
43812
  }
43813
43813
  }
43814
43814
  }
43815
+ },
43816
+ "404": {
43817
+ "description": "Referenced resource pool or resource not found",
43818
+ "content": {
43819
+ "application/json": {
43820
+ "schema": {
43821
+ "type": "object",
43822
+ "properties": {
43823
+ "error": {
43824
+ "type": "string"
43825
+ }
43826
+ },
43827
+ "required": [
43828
+ "error"
43829
+ ]
43830
+ }
43831
+ }
43832
+ }
43833
+ },
43834
+ "409": {
43835
+ "description": "Resource pool member already exists",
43836
+ "content": {
43837
+ "application/json": {
43838
+ "schema": {
43839
+ "type": "object",
43840
+ "properties": {
43841
+ "error": {
43842
+ "type": "string"
43843
+ }
43844
+ },
43845
+ "required": [
43846
+ "error"
43847
+ ]
43848
+ }
43849
+ }
43850
+ }
43815
43851
  }
43816
43852
  }
43817
43853
  }
@@ -44163,6 +44199,24 @@
44163
44199
  }
44164
44200
  }
44165
44201
  }
44202
+ },
44203
+ "404": {
44204
+ "description": "Referenced resource pool not found",
44205
+ "content": {
44206
+ "application/json": {
44207
+ "schema": {
44208
+ "type": "object",
44209
+ "properties": {
44210
+ "error": {
44211
+ "type": "string"
44212
+ }
44213
+ },
44214
+ "required": [
44215
+ "error"
44216
+ ]
44217
+ }
44218
+ }
44219
+ }
44166
44220
  }
44167
44221
  }
44168
44222
  }
@@ -44707,7 +44761,7 @@
44707
44761
  }
44708
44762
  },
44709
44763
  "404": {
44710
- "description": "Resource requirement not found",
44764
+ "description": "Resource requirement or referenced resource pool not found",
44711
44765
  "content": {
44712
44766
  "application/json": {
44713
44767
  "schema": {
@@ -45072,6 +45126,24 @@
45072
45126
  }
45073
45127
  }
45074
45128
  }
45129
+ },
45130
+ "404": {
45131
+ "description": "Referenced resource pool not found",
45132
+ "content": {
45133
+ "application/json": {
45134
+ "schema": {
45135
+ "type": "object",
45136
+ "properties": {
45137
+ "error": {
45138
+ "type": "string"
45139
+ }
45140
+ },
45141
+ "required": [
45142
+ "error"
45143
+ ]
45144
+ }
45145
+ }
45146
+ }
45075
45147
  }
45076
45148
  }
45077
45149
  }
@@ -45616,7 +45688,7 @@
45616
45688
  }
45617
45689
  },
45618
45690
  "404": {
45619
- "description": "Resource allocation not found",
45691
+ "description": "Resource allocation or referenced resource pool not found",
45620
45692
  "content": {
45621
45693
  "application/json": {
45622
45694
  "schema": {
@@ -46041,6 +46113,24 @@
46041
46113
  }
46042
46114
  }
46043
46115
  }
46116
+ },
46117
+ "404": {
46118
+ "description": "Referenced resource pool or resource not found",
46119
+ "content": {
46120
+ "application/json": {
46121
+ "schema": {
46122
+ "type": "object",
46123
+ "properties": {
46124
+ "error": {
46125
+ "type": "string"
46126
+ }
46127
+ },
46128
+ "required": [
46129
+ "error"
46130
+ ]
46131
+ }
46132
+ }
46133
+ }
46044
46134
  }
46045
46135
  }
46046
46136
  }
@@ -46662,7 +46752,7 @@
46662
46752
  }
46663
46753
  },
46664
46754
  "404": {
46665
- "description": "Resource slot assignment not found",
46755
+ "description": "Resource slot assignment or referenced resource pool/resource not found",
46666
46756
  "content": {
46667
46757
  "application/json": {
46668
46758
  "schema": {
@@ -46998,6 +47088,24 @@
46998
47088
  }
46999
47089
  }
47000
47090
  }
47091
+ },
47092
+ "404": {
47093
+ "description": "Referenced resource not found",
47094
+ "content": {
47095
+ "application/json": {
47096
+ "schema": {
47097
+ "type": "object",
47098
+ "properties": {
47099
+ "error": {
47100
+ "type": "string"
47101
+ }
47102
+ },
47103
+ "required": [
47104
+ "error"
47105
+ ]
47106
+ }
47107
+ }
47108
+ }
47001
47109
  }
47002
47110
  }
47003
47111
  }
@@ -47520,7 +47628,7 @@
47520
47628
  }
47521
47629
  },
47522
47630
  "404": {
47523
- "description": "Resource closeout not found",
47631
+ "description": "Resource closeout or referenced resource not found",
47524
47632
  "content": {
47525
47633
  "application/json": {
47526
47634
  "schema": {
@@ -76650,6 +76758,39 @@
76650
76758
  "active": {
76651
76759
  "type": "boolean",
76652
76760
  "default": true
76761
+ },
76762
+ "sourceKind": {
76763
+ "type": [
76764
+ "string",
76765
+ "null"
76766
+ ],
76767
+ "minLength": 1
76768
+ },
76769
+ "sourceConnectionId": {
76770
+ "type": [
76771
+ "string",
76772
+ "null"
76773
+ ],
76774
+ "minLength": 1
76775
+ },
76776
+ "pushBookings": {
76777
+ "type": "boolean",
76778
+ "default": true
76779
+ },
76780
+ "pushAvailability": {
76781
+ "type": "boolean",
76782
+ "default": true
76783
+ },
76784
+ "pushContent": {
76785
+ "type": "boolean",
76786
+ "default": true
76787
+ },
76788
+ "policy": {
76789
+ "type": [
76790
+ "object",
76791
+ "null"
76792
+ ],
76793
+ "additionalProperties": {}
76653
76794
  }
76654
76795
  },
76655
76796
  "required": [
@@ -76843,8 +76984,37 @@
76843
76984
  ]
76844
76985
  },
76845
76986
  "active": {
76846
- "type": "boolean",
76847
- "default": true
76987
+ "type": "boolean"
76988
+ },
76989
+ "sourceKind": {
76990
+ "type": [
76991
+ "string",
76992
+ "null"
76993
+ ],
76994
+ "minLength": 1
76995
+ },
76996
+ "sourceConnectionId": {
76997
+ "type": [
76998
+ "string",
76999
+ "null"
77000
+ ],
77001
+ "minLength": 1
77002
+ },
77003
+ "pushBookings": {
77004
+ "type": "boolean"
77005
+ },
77006
+ "pushAvailability": {
77007
+ "type": "boolean"
77008
+ },
77009
+ "pushContent": {
77010
+ "type": "boolean"
77011
+ },
77012
+ "policy": {
77013
+ "type": [
77014
+ "object",
77015
+ "null"
77016
+ ],
77017
+ "additionalProperties": {}
76848
77018
  }
76849
77019
  }
76850
77020
  }
@@ -77311,8 +77481,37 @@
77311
77481
  ]
77312
77482
  },
77313
77483
  "active": {
77314
- "type": "boolean",
77315
- "default": true
77484
+ "type": "boolean"
77485
+ },
77486
+ "sourceKind": {
77487
+ "type": [
77488
+ "string",
77489
+ "null"
77490
+ ],
77491
+ "minLength": 1
77492
+ },
77493
+ "sourceConnectionId": {
77494
+ "type": [
77495
+ "string",
77496
+ "null"
77497
+ ],
77498
+ "minLength": 1
77499
+ },
77500
+ "pushBookings": {
77501
+ "type": "boolean"
77502
+ },
77503
+ "pushAvailability": {
77504
+ "type": "boolean"
77505
+ },
77506
+ "pushContent": {
77507
+ "type": "boolean"
77508
+ },
77509
+ "policy": {
77510
+ "type": [
77511
+ "object",
77512
+ "null"
77513
+ ],
77514
+ "additionalProperties": {}
77316
77515
  }
77317
77516
  }
77318
77517
  }
@@ -77938,6 +78137,24 @@
77938
78137
  }
77939
78138
  }
77940
78139
  }
78140
+ },
78141
+ "409": {
78142
+ "description": "duplicate_channel_booking_link",
78143
+ "content": {
78144
+ "application/json": {
78145
+ "schema": {
78146
+ "type": "object",
78147
+ "properties": {
78148
+ "error": {
78149
+ "type": "string"
78150
+ }
78151
+ },
78152
+ "required": [
78153
+ "error"
78154
+ ]
78155
+ }
78156
+ }
78157
+ }
77941
78158
  }
77942
78159
  }
77943
78160
  }
@@ -127973,6 +128190,34 @@
127973
128190
  }
127974
128191
  }
127975
128192
  }
128193
+ },
128194
+ "409": {
128195
+ "description": "Active promotional offer slug or code already exists",
128196
+ "content": {
128197
+ "application/json": {
128198
+ "schema": {
128199
+ "type": "object",
128200
+ "properties": {
128201
+ "error": {
128202
+ "type": "string"
128203
+ },
128204
+ "code": {
128205
+ "type": "string"
128206
+ },
128207
+ "requestId": {
128208
+ "type": "string"
128209
+ },
128210
+ "details": {
128211
+ "type": "object",
128212
+ "additionalProperties": {}
128213
+ }
128214
+ },
128215
+ "required": [
128216
+ "error"
128217
+ ]
128218
+ }
128219
+ }
128220
+ }
127976
128221
  }
127977
128222
  }
127978
128223
  }
@@ -128974,6 +129219,34 @@
128974
129219
  }
128975
129220
  }
128976
129221
  }
129222
+ },
129223
+ "409": {
129224
+ "description": "Active promotional offer slug or code already exists",
129225
+ "content": {
129226
+ "application/json": {
129227
+ "schema": {
129228
+ "type": "object",
129229
+ "properties": {
129230
+ "error": {
129231
+ "type": "string"
129232
+ },
129233
+ "code": {
129234
+ "type": "string"
129235
+ },
129236
+ "requestId": {
129237
+ "type": "string"
129238
+ },
129239
+ "details": {
129240
+ "type": "object",
129241
+ "additionalProperties": {}
129242
+ }
129243
+ },
129244
+ "required": [
129245
+ "error"
129246
+ ]
129247
+ }
129248
+ }
129249
+ }
128977
129250
  }
128978
129251
  }
128979
129252
  },
@@ -161591,6 +161864,24 @@
161591
161864
  }
161592
161865
  }
161593
161866
  }
161867
+ },
161868
+ "409": {
161869
+ "description": "Booking item mutations are not allowed for this booking",
161870
+ "content": {
161871
+ "application/json": {
161872
+ "schema": {
161873
+ "type": "object",
161874
+ "properties": {
161875
+ "error": {
161876
+ "type": "string"
161877
+ }
161878
+ },
161879
+ "required": [
161880
+ "error"
161881
+ ]
161882
+ }
161883
+ }
161884
+ }
161594
161885
  }
161595
161886
  }
161596
161887
  }
@@ -162075,6 +162366,24 @@
162075
162366
  }
162076
162367
  }
162077
162368
  }
162369
+ },
162370
+ "409": {
162371
+ "description": "Booking item mutations are not allowed for this booking",
162372
+ "content": {
162373
+ "application/json": {
162374
+ "schema": {
162375
+ "type": "object",
162376
+ "properties": {
162377
+ "error": {
162378
+ "type": "string"
162379
+ }
162380
+ },
162381
+ "required": [
162382
+ "error"
162383
+ ]
162384
+ }
162385
+ }
162386
+ }
162078
162387
  }
162079
162388
  }
162080
162389
  },
@@ -162133,6 +162442,24 @@
162133
162442
  }
162134
162443
  }
162135
162444
  }
162445
+ },
162446
+ "409": {
162447
+ "description": "Booking item mutations are not allowed for this booking",
162448
+ "content": {
162449
+ "application/json": {
162450
+ "schema": {
162451
+ "type": "object",
162452
+ "properties": {
162453
+ "error": {
162454
+ "type": "string"
162455
+ }
162456
+ },
162457
+ "required": [
162458
+ "error"
162459
+ ]
162460
+ }
162461
+ }
162462
+ }
162136
162463
  }
162137
162464
  }
162138
162465
  }
@@ -162353,6 +162680,24 @@
162353
162680
  }
162354
162681
  }
162355
162682
  }
162683
+ },
162684
+ "409": {
162685
+ "description": "Booking item mutations are not allowed for this booking",
162686
+ "content": {
162687
+ "application/json": {
162688
+ "schema": {
162689
+ "type": "object",
162690
+ "properties": {
162691
+ "error": {
162692
+ "type": "string"
162693
+ }
162694
+ },
162695
+ "required": [
162696
+ "error"
162697
+ ]
162698
+ }
162699
+ }
162700
+ }
162356
162701
  }
162357
162702
  }
162358
162703
  }
@@ -162421,6 +162766,24 @@
162421
162766
  }
162422
162767
  }
162423
162768
  }
162769
+ },
162770
+ "409": {
162771
+ "description": "Booking item mutations are not allowed for this booking",
162772
+ "content": {
162773
+ "application/json": {
162774
+ "schema": {
162775
+ "type": "object",
162776
+ "properties": {
162777
+ "error": {
162778
+ "type": "string"
162779
+ }
162780
+ },
162781
+ "required": [
162782
+ "error"
162783
+ ]
162784
+ }
162785
+ }
162786
+ }
162424
162787
  }
162425
162788
  }
162426
162789
  }
@@ -166990,7 +167353,7 @@
166990
167353
  ],
166991
167354
  "responses": {
166992
167355
  "200": {
166993
- "description": "A booking by id (PII redacted unless reveal-authorized)",
167356
+ "description": "A booking by id with its bookings-owned child collections (items, travelers, documents); PII redacted unless reveal-authorized",
166994
167357
  "content": {
166995
167358
  "application/json": {
166996
167359
  "schema": {
@@ -167266,6 +167629,386 @@
167266
167629
  },
167267
167630
  "updatedAt": {
167268
167631
  "type": "string"
167632
+ },
167633
+ "items": {
167634
+ "type": "array",
167635
+ "items": {
167636
+ "type": "object",
167637
+ "properties": {
167638
+ "id": {
167639
+ "type": "string"
167640
+ },
167641
+ "bookingId": {
167642
+ "type": "string"
167643
+ },
167644
+ "title": {
167645
+ "type": "string"
167646
+ },
167647
+ "description": {
167648
+ "type": [
167649
+ "string",
167650
+ "null"
167651
+ ]
167652
+ },
167653
+ "itemType": {
167654
+ "type": "string",
167655
+ "enum": [
167656
+ "unit",
167657
+ "extra",
167658
+ "service",
167659
+ "fee",
167660
+ "tax",
167661
+ "discount",
167662
+ "adjustment",
167663
+ "accommodation",
167664
+ "transport",
167665
+ "other"
167666
+ ]
167667
+ },
167668
+ "status": {
167669
+ "type": "string",
167670
+ "enum": [
167671
+ "draft",
167672
+ "on_hold",
167673
+ "confirmed",
167674
+ "cancelled",
167675
+ "expired",
167676
+ "fulfilled"
167677
+ ]
167678
+ },
167679
+ "serviceDate": {
167680
+ "type": [
167681
+ "string",
167682
+ "null"
167683
+ ]
167684
+ },
167685
+ "startsAt": {
167686
+ "type": [
167687
+ "string",
167688
+ "null"
167689
+ ]
167690
+ },
167691
+ "endsAt": {
167692
+ "type": [
167693
+ "string",
167694
+ "null"
167695
+ ]
167696
+ },
167697
+ "quantity": {
167698
+ "type": "integer"
167699
+ },
167700
+ "sellCurrency": {
167701
+ "type": "string"
167702
+ },
167703
+ "unitSellAmountCents": {
167704
+ "type": [
167705
+ "integer",
167706
+ "null"
167707
+ ]
167708
+ },
167709
+ "totalSellAmountCents": {
167710
+ "type": [
167711
+ "integer",
167712
+ "null"
167713
+ ]
167714
+ },
167715
+ "costCurrency": {
167716
+ "type": [
167717
+ "string",
167718
+ "null"
167719
+ ]
167720
+ },
167721
+ "unitCostAmountCents": {
167722
+ "type": [
167723
+ "integer",
167724
+ "null"
167725
+ ]
167726
+ },
167727
+ "totalCostAmountCents": {
167728
+ "type": [
167729
+ "integer",
167730
+ "null"
167731
+ ]
167732
+ },
167733
+ "notes": {
167734
+ "type": [
167735
+ "string",
167736
+ "null"
167737
+ ]
167738
+ },
167739
+ "productId": {
167740
+ "type": [
167741
+ "string",
167742
+ "null"
167743
+ ]
167744
+ },
167745
+ "optionId": {
167746
+ "type": [
167747
+ "string",
167748
+ "null"
167749
+ ]
167750
+ },
167751
+ "optionUnitId": {
167752
+ "type": [
167753
+ "string",
167754
+ "null"
167755
+ ]
167756
+ },
167757
+ "pricingCategoryId": {
167758
+ "type": [
167759
+ "string",
167760
+ "null"
167761
+ ]
167762
+ },
167763
+ "availabilitySlotId": {
167764
+ "type": [
167765
+ "string",
167766
+ "null"
167767
+ ]
167768
+ },
167769
+ "productNameSnapshot": {
167770
+ "type": [
167771
+ "string",
167772
+ "null"
167773
+ ]
167774
+ },
167775
+ "optionNameSnapshot": {
167776
+ "type": [
167777
+ "string",
167778
+ "null"
167779
+ ]
167780
+ },
167781
+ "unitNameSnapshot": {
167782
+ "type": [
167783
+ "string",
167784
+ "null"
167785
+ ]
167786
+ },
167787
+ "departureLabelSnapshot": {
167788
+ "type": [
167789
+ "string",
167790
+ "null"
167791
+ ]
167792
+ },
167793
+ "sourceSnapshotId": {
167794
+ "type": [
167795
+ "string",
167796
+ "null"
167797
+ ]
167798
+ },
167799
+ "sourceOfferId": {
167800
+ "type": [
167801
+ "string",
167802
+ "null"
167803
+ ]
167804
+ },
167805
+ "metadata": {
167806
+ "type": [
167807
+ "object",
167808
+ "null"
167809
+ ],
167810
+ "additionalProperties": {}
167811
+ },
167812
+ "createdAt": {
167813
+ "type": "string"
167814
+ },
167815
+ "updatedAt": {
167816
+ "type": "string"
167817
+ }
167818
+ },
167819
+ "required": [
167820
+ "id",
167821
+ "bookingId",
167822
+ "title",
167823
+ "description",
167824
+ "itemType",
167825
+ "status",
167826
+ "serviceDate",
167827
+ "startsAt",
167828
+ "endsAt",
167829
+ "quantity",
167830
+ "sellCurrency",
167831
+ "unitSellAmountCents",
167832
+ "totalSellAmountCents",
167833
+ "costCurrency",
167834
+ "unitCostAmountCents",
167835
+ "totalCostAmountCents",
167836
+ "notes",
167837
+ "productId",
167838
+ "optionId",
167839
+ "optionUnitId",
167840
+ "pricingCategoryId",
167841
+ "availabilitySlotId",
167842
+ "productNameSnapshot",
167843
+ "optionNameSnapshot",
167844
+ "unitNameSnapshot",
167845
+ "departureLabelSnapshot",
167846
+ "sourceSnapshotId",
167847
+ "sourceOfferId",
167848
+ "metadata",
167849
+ "createdAt",
167850
+ "updatedAt"
167851
+ ]
167852
+ }
167853
+ },
167854
+ "travelers": {
167855
+ "type": "array",
167856
+ "items": {
167857
+ "type": "object",
167858
+ "properties": {
167859
+ "id": {
167860
+ "type": "string"
167861
+ },
167862
+ "bookingId": {
167863
+ "type": "string"
167864
+ },
167865
+ "participantType": {
167866
+ "type": "string",
167867
+ "enum": [
167868
+ "traveler",
167869
+ "occupant",
167870
+ "other"
167871
+ ]
167872
+ },
167873
+ "travelerCategory": {
167874
+ "type": [
167875
+ "string",
167876
+ "null"
167877
+ ],
167878
+ "enum": [
167879
+ "adult",
167880
+ "child",
167881
+ "infant",
167882
+ "senior",
167883
+ "other",
167884
+ null
167885
+ ]
167886
+ },
167887
+ "firstName": {
167888
+ "type": "string"
167889
+ },
167890
+ "lastName": {
167891
+ "type": "string"
167892
+ },
167893
+ "email": {
167894
+ "type": [
167895
+ "string",
167896
+ "null"
167897
+ ]
167898
+ },
167899
+ "phone": {
167900
+ "type": [
167901
+ "string",
167902
+ "null"
167903
+ ]
167904
+ },
167905
+ "preferredLanguage": {
167906
+ "type": [
167907
+ "string",
167908
+ "null"
167909
+ ]
167910
+ },
167911
+ "specialRequests": {
167912
+ "type": [
167913
+ "string",
167914
+ "null"
167915
+ ]
167916
+ },
167917
+ "isPrimary": {
167918
+ "type": "boolean"
167919
+ },
167920
+ "notes": {
167921
+ "type": [
167922
+ "string",
167923
+ "null"
167924
+ ]
167925
+ },
167926
+ "createdAt": {
167927
+ "type": "string"
167928
+ },
167929
+ "updatedAt": {
167930
+ "type": "string"
167931
+ }
167932
+ },
167933
+ "required": [
167934
+ "id",
167935
+ "bookingId",
167936
+ "participantType",
167937
+ "travelerCategory",
167938
+ "firstName",
167939
+ "lastName",
167940
+ "email",
167941
+ "phone",
167942
+ "preferredLanguage",
167943
+ "specialRequests",
167944
+ "isPrimary",
167945
+ "notes",
167946
+ "createdAt",
167947
+ "updatedAt"
167948
+ ]
167949
+ }
167950
+ },
167951
+ "documents": {
167952
+ "type": "array",
167953
+ "items": {
167954
+ "type": "object",
167955
+ "properties": {
167956
+ "id": {
167957
+ "type": "string"
167958
+ },
167959
+ "bookingId": {
167960
+ "type": "string"
167961
+ },
167962
+ "travelerId": {
167963
+ "type": [
167964
+ "string",
167965
+ "null"
167966
+ ]
167967
+ },
167968
+ "type": {
167969
+ "type": "string",
167970
+ "enum": [
167971
+ "visa",
167972
+ "insurance",
167973
+ "health",
167974
+ "passport_copy",
167975
+ "other"
167976
+ ]
167977
+ },
167978
+ "fileName": {
167979
+ "type": "string"
167980
+ },
167981
+ "fileUrl": {
167982
+ "type": "string"
167983
+ },
167984
+ "expiresAt": {
167985
+ "type": [
167986
+ "string",
167987
+ "null"
167988
+ ]
167989
+ },
167990
+ "notes": {
167991
+ "type": [
167992
+ "string",
167993
+ "null"
167994
+ ]
167995
+ },
167996
+ "createdAt": {
167997
+ "type": "string"
167998
+ }
167999
+ },
168000
+ "required": [
168001
+ "id",
168002
+ "bookingId",
168003
+ "travelerId",
168004
+ "type",
168005
+ "fileName",
168006
+ "fileUrl",
168007
+ "expiresAt",
168008
+ "notes",
168009
+ "createdAt"
168010
+ ]
168011
+ }
167269
168012
  }
167270
168013
  },
167271
168014
  "required": [
@@ -167313,7 +168056,10 @@
167313
168056
  "paidAt",
167314
168057
  "redeemedAt",
167315
168058
  "createdAt",
167316
- "updatedAt"
168059
+ "updatedAt",
168060
+ "items",
168061
+ "travelers",
168062
+ "documents"
167317
168063
  ]
167318
168064
  }
167319
168065
  },
@@ -175399,7 +176145,7 @@
175399
176145
  },
175400
176146
  "amountCents": {
175401
176147
  "type": "integer",
175402
- "minimum": 0
176148
+ "minimum": 1
175403
176149
  },
175404
176150
  "provider": {
175405
176151
  "type": [
@@ -176121,7 +176867,7 @@
176121
176867
  },
176122
176868
  "amountCents": {
176123
176869
  "type": "integer",
176124
- "minimum": 0
176870
+ "minimum": 1
176125
176871
  },
176126
176872
  "provider": {
176127
176873
  "type": [
@@ -176634,7 +177380,7 @@
176634
177380
  },
176635
177381
  "amountCents": {
176636
177382
  "type": "integer",
176637
- "minimum": 0
177383
+ "minimum": 1
176638
177384
  },
176639
177385
  "provider": {
176640
177386
  "type": [
@@ -176984,7 +177730,7 @@
176984
177730
  },
176985
177731
  "amountCents": {
176986
177732
  "type": "integer",
176987
- "minimum": 0
177733
+ "minimum": 1
176988
177734
  },
176989
177735
  "provider": {
176990
177736
  "type": [
@@ -181991,6 +182737,32 @@
181991
182737
  }
181992
182738
  }
181993
182739
  },
182740
+ "400": {
182741
+ "description": "invalid_request: guarantee state does not allow deletion",
182742
+ "content": {
182743
+ "application/json": {
182744
+ "schema": {
182745
+ "type": "object",
182746
+ "properties": {
182747
+ "error": {
182748
+ "type": "string"
182749
+ },
182750
+ "code": {
182751
+ "type": "string"
182752
+ },
182753
+ "details": {
182754
+ "type": "object",
182755
+ "additionalProperties": {}
182756
+ }
182757
+ },
182758
+ "required": [
182759
+ "error",
182760
+ "code"
182761
+ ]
182762
+ }
182763
+ }
182764
+ }
182765
+ },
181994
182766
  "404": {
181995
182767
  "description": "Booking guarantee not found",
181996
182768
  "content": {
@@ -182177,238 +182949,240 @@
182177
182949
  "maxLength": 3
182178
182950
  },
182179
182951
  "amountCents": {
182180
- "type": "integer"
182181
- },
182182
- "rateBasisPoints": {
182183
- "type": [
182184
- "integer",
182185
- "null"
182186
- ],
182187
- "minimum": 0
182188
- },
182189
- "includedInPrice": {
182190
- "type": "boolean",
182191
- "default": false
182192
- },
182193
- "remittanceParty": {
182194
- "type": [
182195
- "string",
182196
- "null"
182197
- ],
182198
- "maxLength": 255
182199
- },
182200
- "sortOrder": {
182201
182952
  "type": "integer",
182202
- "minimum": 0,
182203
- "default": 0
182204
- }
182205
- },
182206
- "required": [
182207
- "name",
182208
- "currency",
182209
- "amountCents"
182210
- ]
182211
- }
182212
- }
182213
- }
182214
- },
182215
- "responses": {
182216
- "201": {
182217
- "description": "The created tax line",
182218
- "content": {
182219
- "application/json": {
182220
- "schema": {
182221
- "type": "object",
182222
- "properties": {
182223
- "data": {
182224
- "type": "object",
182225
- "properties": {
182226
- "id": {
182227
- "type": "string"
182228
- },
182229
- "bookingItemId": {
182230
- "type": "string"
182231
- },
182232
- "code": {
182233
- "type": [
182234
- "string",
182235
- "null"
182236
- ]
182237
- },
182238
- "name": {
182239
- "type": "string"
182240
- },
182241
- "jurisdiction": {
182242
- "type": [
182243
- "string",
182244
- "null"
182245
- ]
182246
- },
182247
- "scope": {
182248
- "type": "string",
182249
- "enum": [
182250
- "included",
182251
- "excluded",
182252
- "withheld"
182253
- ]
182254
- },
182255
- "currency": {
182256
- "type": "string"
182257
- },
182258
- "amountCents": {
182259
- "type": "integer"
182260
- },
182261
- "rateBasisPoints": {
182262
- "type": [
182263
- "integer",
182264
- "null"
182265
- ]
182266
- },
182267
- "includedInPrice": {
182268
- "type": "boolean"
182269
- },
182270
- "remittanceParty": {
182271
- "type": [
182272
- "string",
182273
- "null"
182274
- ]
182275
- },
182276
- "sortOrder": {
182277
- "type": "integer"
182278
- },
182279
- "createdAt": {
182280
- "type": "string"
182281
- },
182282
- "updatedAt": {
182283
- "type": "string"
182284
- }
182285
- },
182286
- "required": [
182287
- "id",
182288
- "bookingItemId",
182289
- "code",
182290
- "name",
182291
- "jurisdiction",
182292
- "scope",
182293
- "currency",
182294
- "amountCents",
182295
- "rateBasisPoints",
182296
- "includedInPrice",
182297
- "remittanceParty",
182298
- "sortOrder",
182299
- "createdAt",
182300
- "updatedAt"
182301
- ]
182302
- }
182303
- },
182304
- "required": [
182305
- "data"
182306
- ]
182307
- }
182308
- }
182309
- }
182310
- },
182311
- "400": {
182312
- "description": "invalid_request: request body failed validation",
182313
- "content": {
182314
- "application/json": {
182315
- "schema": {
182316
- "type": "object",
182317
- "properties": {
182318
- "error": {
182319
- "type": "string"
182320
- }
182321
- },
182322
- "required": [
182323
- "error"
182324
- ]
182325
- }
182326
- }
182327
- }
182328
- },
182329
- "404": {
182330
- "description": "Booking item not found",
182331
- "content": {
182332
- "application/json": {
182333
- "schema": {
182334
- "type": "object",
182335
- "properties": {
182336
- "error": {
182337
- "type": "string"
182338
- }
182339
- },
182340
- "required": [
182341
- "error"
182342
- ]
182343
- }
182344
- }
182345
- }
182346
- }
182347
- }
182348
- }
182349
- },
182350
- "/v1/admin/finance/booking-items/{bookingItemId}/tax-lines/{taxLineId}": {
182351
- "patch": {
182352
- "parameters": [
182353
- {
182354
- "schema": {
182355
- "type": "string"
182356
- },
182357
- "required": true,
182358
- "name": "bookingItemId",
182359
- "in": "path"
182360
- },
182361
- {
182362
- "schema": {
182363
- "type": "string"
182364
- },
182365
- "required": true,
182366
- "name": "taxLineId",
182367
- "in": "path"
182368
- }
182369
- ],
182370
- "requestBody": {
182371
- "required": true,
182372
- "content": {
182373
- "application/json": {
182374
- "schema": {
182375
- "type": "object",
182376
- "properties": {
182377
- "code": {
182378
- "type": [
182379
- "string",
182380
- "null"
182381
- ],
182382
- "maxLength": 100
182383
- },
182384
- "name": {
182385
- "type": "string",
182386
- "minLength": 1,
182387
- "maxLength": 255
182388
- },
182389
- "jurisdiction": {
182390
- "type": [
182391
- "string",
182392
- "null"
182393
- ],
182394
- "maxLength": 255
182395
- },
182396
- "scope": {
182397
- "type": "string",
182398
- "enum": [
182399
- "included",
182400
- "excluded",
182401
- "withheld"
182402
- ],
182403
- "default": "excluded"
182404
- },
182405
- "currency": {
182406
- "type": "string",
182407
- "minLength": 3,
182408
- "maxLength": 3
182409
- },
182410
- "amountCents": {
182411
- "type": "integer"
182953
+ "minimum": 0
182954
+ },
182955
+ "rateBasisPoints": {
182956
+ "type": [
182957
+ "integer",
182958
+ "null"
182959
+ ],
182960
+ "minimum": 0
182961
+ },
182962
+ "includedInPrice": {
182963
+ "type": "boolean",
182964
+ "default": false
182965
+ },
182966
+ "remittanceParty": {
182967
+ "type": [
182968
+ "string",
182969
+ "null"
182970
+ ],
182971
+ "maxLength": 255
182972
+ },
182973
+ "sortOrder": {
182974
+ "type": "integer",
182975
+ "minimum": 0,
182976
+ "default": 0
182977
+ }
182978
+ },
182979
+ "required": [
182980
+ "name",
182981
+ "currency",
182982
+ "amountCents"
182983
+ ]
182984
+ }
182985
+ }
182986
+ }
182987
+ },
182988
+ "responses": {
182989
+ "201": {
182990
+ "description": "The created tax line",
182991
+ "content": {
182992
+ "application/json": {
182993
+ "schema": {
182994
+ "type": "object",
182995
+ "properties": {
182996
+ "data": {
182997
+ "type": "object",
182998
+ "properties": {
182999
+ "id": {
183000
+ "type": "string"
183001
+ },
183002
+ "bookingItemId": {
183003
+ "type": "string"
183004
+ },
183005
+ "code": {
183006
+ "type": [
183007
+ "string",
183008
+ "null"
183009
+ ]
183010
+ },
183011
+ "name": {
183012
+ "type": "string"
183013
+ },
183014
+ "jurisdiction": {
183015
+ "type": [
183016
+ "string",
183017
+ "null"
183018
+ ]
183019
+ },
183020
+ "scope": {
183021
+ "type": "string",
183022
+ "enum": [
183023
+ "included",
183024
+ "excluded",
183025
+ "withheld"
183026
+ ]
183027
+ },
183028
+ "currency": {
183029
+ "type": "string"
183030
+ },
183031
+ "amountCents": {
183032
+ "type": "integer"
183033
+ },
183034
+ "rateBasisPoints": {
183035
+ "type": [
183036
+ "integer",
183037
+ "null"
183038
+ ]
183039
+ },
183040
+ "includedInPrice": {
183041
+ "type": "boolean"
183042
+ },
183043
+ "remittanceParty": {
183044
+ "type": [
183045
+ "string",
183046
+ "null"
183047
+ ]
183048
+ },
183049
+ "sortOrder": {
183050
+ "type": "integer"
183051
+ },
183052
+ "createdAt": {
183053
+ "type": "string"
183054
+ },
183055
+ "updatedAt": {
183056
+ "type": "string"
183057
+ }
183058
+ },
183059
+ "required": [
183060
+ "id",
183061
+ "bookingItemId",
183062
+ "code",
183063
+ "name",
183064
+ "jurisdiction",
183065
+ "scope",
183066
+ "currency",
183067
+ "amountCents",
183068
+ "rateBasisPoints",
183069
+ "includedInPrice",
183070
+ "remittanceParty",
183071
+ "sortOrder",
183072
+ "createdAt",
183073
+ "updatedAt"
183074
+ ]
183075
+ }
183076
+ },
183077
+ "required": [
183078
+ "data"
183079
+ ]
183080
+ }
183081
+ }
183082
+ }
183083
+ },
183084
+ "400": {
183085
+ "description": "invalid_request: request body failed validation",
183086
+ "content": {
183087
+ "application/json": {
183088
+ "schema": {
183089
+ "type": "object",
183090
+ "properties": {
183091
+ "error": {
183092
+ "type": "string"
183093
+ }
183094
+ },
183095
+ "required": [
183096
+ "error"
183097
+ ]
183098
+ }
183099
+ }
183100
+ }
183101
+ },
183102
+ "404": {
183103
+ "description": "Booking item not found",
183104
+ "content": {
183105
+ "application/json": {
183106
+ "schema": {
183107
+ "type": "object",
183108
+ "properties": {
183109
+ "error": {
183110
+ "type": "string"
183111
+ }
183112
+ },
183113
+ "required": [
183114
+ "error"
183115
+ ]
183116
+ }
183117
+ }
183118
+ }
183119
+ }
183120
+ }
183121
+ }
183122
+ },
183123
+ "/v1/admin/finance/booking-items/{bookingItemId}/tax-lines/{taxLineId}": {
183124
+ "patch": {
183125
+ "parameters": [
183126
+ {
183127
+ "schema": {
183128
+ "type": "string"
183129
+ },
183130
+ "required": true,
183131
+ "name": "bookingItemId",
183132
+ "in": "path"
183133
+ },
183134
+ {
183135
+ "schema": {
183136
+ "type": "string"
183137
+ },
183138
+ "required": true,
183139
+ "name": "taxLineId",
183140
+ "in": "path"
183141
+ }
183142
+ ],
183143
+ "requestBody": {
183144
+ "required": true,
183145
+ "content": {
183146
+ "application/json": {
183147
+ "schema": {
183148
+ "type": "object",
183149
+ "properties": {
183150
+ "code": {
183151
+ "type": [
183152
+ "string",
183153
+ "null"
183154
+ ],
183155
+ "maxLength": 100
183156
+ },
183157
+ "name": {
183158
+ "type": "string",
183159
+ "minLength": 1,
183160
+ "maxLength": 255
183161
+ },
183162
+ "jurisdiction": {
183163
+ "type": [
183164
+ "string",
183165
+ "null"
183166
+ ],
183167
+ "maxLength": 255
183168
+ },
183169
+ "scope": {
183170
+ "type": "string",
183171
+ "enum": [
183172
+ "included",
183173
+ "excluded",
183174
+ "withheld"
183175
+ ],
183176
+ "default": "excluded"
183177
+ },
183178
+ "currency": {
183179
+ "type": "string",
183180
+ "minLength": 3,
183181
+ "maxLength": 3
183182
+ },
183183
+ "amountCents": {
183184
+ "type": "integer",
183185
+ "minimum": 0
182412
183186
  },
182413
183187
  "rateBasisPoints": {
182414
183188
  "type": [
@@ -182828,7 +183602,8 @@
182828
183602
  "type": [
182829
183603
  "integer",
182830
183604
  "null"
182831
- ]
183605
+ ],
183606
+ "minimum": 0
182832
183607
  },
182833
183608
  "rateBasisPoints": {
182834
183609
  "type": [
@@ -183005,10 +183780,18 @@
183005
183780
  "properties": {
183006
183781
  "error": {
183007
183782
  "type": "string"
183783
+ },
183784
+ "code": {
183785
+ "type": "string"
183786
+ },
183787
+ "details": {
183788
+ "type": "object",
183789
+ "additionalProperties": {}
183008
183790
  }
183009
183791
  },
183010
183792
  "required": [
183011
- "error"
183793
+ "error",
183794
+ "code"
183012
183795
  ]
183013
183796
  }
183014
183797
  }
@@ -183087,8 +183870,7 @@
183087
183870
  "fixed",
183088
183871
  "markup",
183089
183872
  "net"
183090
- ],
183091
- "default": "percentage"
183873
+ ]
183092
183874
  },
183093
183875
  "currency": {
183094
183876
  "type": [
@@ -183102,7 +183884,8 @@
183102
183884
  "type": [
183103
183885
  "integer",
183104
183886
  "null"
183105
- ]
183887
+ ],
183888
+ "minimum": 0
183106
183889
  },
183107
183890
  "rateBasisPoints": {
183108
183891
  "type": [
@@ -183119,8 +183902,7 @@
183119
183902
  "payable",
183120
183903
  "paid",
183121
183904
  "void"
183122
- ],
183123
- "default": "pending"
183905
+ ]
183124
183906
  },
183125
183907
  "payableAt": {
183126
183908
  "type": [
@@ -183276,10 +184058,18 @@
183276
184058
  "properties": {
183277
184059
  "error": {
183278
184060
  "type": "string"
184061
+ },
184062
+ "code": {
184063
+ "type": "string"
184064
+ },
184065
+ "details": {
184066
+ "type": "object",
184067
+ "additionalProperties": {}
183279
184068
  }
183280
184069
  },
183281
184070
  "required": [
183282
- "error"
184071
+ "error",
184072
+ "code"
183283
184073
  ]
183284
184074
  }
183285
184075
  }
@@ -184173,6 +184963,24 @@
184173
184963
  }
184174
184964
  }
184175
184965
  }
184966
+ },
184967
+ "409": {
184968
+ "description": "The payment conflicts with the invoice state (e.g. overpayment)",
184969
+ "content": {
184970
+ "application/json": {
184971
+ "schema": {
184972
+ "type": "object",
184973
+ "properties": {
184974
+ "error": {
184975
+ "type": "string"
184976
+ }
184977
+ },
184978
+ "required": [
184979
+ "error"
184980
+ ]
184981
+ }
184982
+ }
184983
+ }
184176
184984
  }
184177
184985
  }
184178
184986
  },
@@ -184935,6 +185743,28 @@
184935
185743
  }
184936
185744
  }
184937
185745
  }
185746
+ },
185747
+ "422": {
185748
+ "description": "supplier payment payable invariant failed",
185749
+ "content": {
185750
+ "application/json": {
185751
+ "schema": {
185752
+ "type": "object",
185753
+ "properties": {
185754
+ "error": {
185755
+ "type": "string"
185756
+ },
185757
+ "code": {
185758
+ "type": "string"
185759
+ }
185760
+ },
185761
+ "required": [
185762
+ "error",
185763
+ "code"
185764
+ ]
185765
+ }
185766
+ }
185767
+ }
184938
185768
  }
184939
185769
  }
184940
185770
  }
@@ -185242,6 +186072,28 @@
185242
186072
  }
185243
186073
  }
185244
186074
  }
186075
+ },
186076
+ "422": {
186077
+ "description": "supplier payment payable invariant failed",
186078
+ "content": {
186079
+ "application/json": {
186080
+ "schema": {
186081
+ "type": "object",
186082
+ "properties": {
186083
+ "error": {
186084
+ "type": "string"
186085
+ },
186086
+ "code": {
186087
+ "type": "string"
186088
+ }
186089
+ },
186090
+ "required": [
186091
+ "error",
186092
+ "code"
186093
+ ]
186094
+ }
186095
+ }
186096
+ }
185245
186097
  }
185246
186098
  }
185247
186099
  }
@@ -186059,6 +186911,42 @@
186059
186911
  }
186060
186912
  }
186061
186913
  }
186914
+ },
186915
+ "404": {
186916
+ "description": "Booking, person, or organization reference not found",
186917
+ "content": {
186918
+ "application/json": {
186919
+ "schema": {
186920
+ "type": "object",
186921
+ "properties": {
186922
+ "error": {
186923
+ "type": "string"
186924
+ }
186925
+ },
186926
+ "required": [
186927
+ "error"
186928
+ ]
186929
+ }
186930
+ }
186931
+ }
186932
+ },
186933
+ "409": {
186934
+ "description": "Invoice number already exists",
186935
+ "content": {
186936
+ "application/json": {
186937
+ "schema": {
186938
+ "type": "object",
186939
+ "properties": {
186940
+ "error": {
186941
+ "type": "string"
186942
+ }
186943
+ },
186944
+ "required": [
186945
+ "error"
186946
+ ]
186947
+ }
186948
+ }
186949
+ }
186062
186950
  }
186063
186951
  }
186064
186952
  }
@@ -186090,6 +186978,13 @@
186090
186978
  "type": "string",
186091
186979
  "minLength": 1
186092
186980
  },
186981
+ "convertedFromInvoiceId": {
186982
+ "type": [
186983
+ "string",
186984
+ "null"
186985
+ ],
186986
+ "minLength": 1
186987
+ },
186093
186988
  "issueDate": {
186094
186989
  "type": "string",
186095
186990
  "minLength": 1
@@ -187585,6 +188480,24 @@
187585
188480
  }
187586
188481
  }
187587
188482
  }
188483
+ },
188484
+ "409": {
188485
+ "description": "Invoice number already exists",
188486
+ "content": {
188487
+ "application/json": {
188488
+ "schema": {
188489
+ "type": "object",
188490
+ "properties": {
188491
+ "error": {
188492
+ "type": "string"
188493
+ }
188494
+ },
188495
+ "required": [
188496
+ "error"
188497
+ ]
188498
+ }
188499
+ }
188500
+ }
187588
188501
  }
187589
188502
  }
187590
188503
  },
@@ -190041,6 +190954,24 @@
190041
190954
  }
190042
190955
  }
190043
190956
  }
190957
+ },
190958
+ "409": {
190959
+ "description": "Credit note would exceed the invoice balance due",
190960
+ "content": {
190961
+ "application/json": {
190962
+ "schema": {
190963
+ "type": "object",
190964
+ "properties": {
190965
+ "error": {
190966
+ "type": "string"
190967
+ }
190968
+ },
190969
+ "required": [
190970
+ "error"
190971
+ ]
190972
+ }
190973
+ }
190974
+ }
190044
190975
  }
190045
190976
  }
190046
190977
  }
@@ -190259,6 +191190,24 @@
190259
191190
  }
190260
191191
  }
190261
191192
  }
191193
+ },
191194
+ "409": {
191195
+ "description": "Credit note would exceed the invoice balance due",
191196
+ "content": {
191197
+ "application/json": {
191198
+ "schema": {
191199
+ "type": "object",
191200
+ "properties": {
191201
+ "error": {
191202
+ "type": "string"
191203
+ }
191204
+ },
191205
+ "required": [
191206
+ "error"
191207
+ ]
191208
+ }
191209
+ }
191210
+ }
190262
191211
  }
190263
191212
  }
190264
191213
  }
@@ -192591,7 +193540,7 @@
192591
193540
  "null"
192592
193541
  ],
192593
193542
  "minimum": 0,
192594
- "maximum": 10000
193543
+ "maximum": 100
192595
193544
  },
192596
193545
  "description": {
192597
193546
  "type": [
@@ -192915,7 +193864,7 @@
192915
193864
  "null"
192916
193865
  ],
192917
193866
  "minimum": 0,
192918
- "maximum": 10000
193867
+ "maximum": 100
192919
193868
  },
192920
193869
  "description": {
192921
193870
  "type": [
@@ -198005,18 +198954,36 @@
198005
198954
  "id": {
198006
198955
  "type": "string"
198007
198956
  },
198957
+ "source": {
198958
+ "type": "string",
198959
+ "enum": [
198960
+ "payment",
198961
+ "voucher_redemption"
198962
+ ],
198963
+ "default": "payment"
198964
+ },
198008
198965
  "invoiceId": {
198009
- "type": "string"
198966
+ "type": [
198967
+ "string",
198968
+ "null"
198969
+ ]
198010
198970
  },
198011
198971
  "invoiceNumber": {
198012
- "type": "string"
198972
+ "type": [
198973
+ "string",
198974
+ "null"
198975
+ ]
198013
198976
  },
198014
198977
  "invoiceType": {
198015
- "type": "string",
198978
+ "type": [
198979
+ "string",
198980
+ "null"
198981
+ ],
198016
198982
  "enum": [
198017
198983
  "invoice",
198018
198984
  "proforma",
198019
- "credit_note"
198985
+ "credit_note",
198986
+ null
198020
198987
  ]
198021
198988
  },
198022
198989
  "status": {
@@ -200380,6 +201347,27 @@
200380
201347
  }
200381
201348
  }
200382
201349
  }
201350
+ },
201351
+ "422": {
201352
+ "description": "Supplier invoice payable invariant failed",
201353
+ "content": {
201354
+ "application/json": {
201355
+ "schema": {
201356
+ "type": "object",
201357
+ "properties": {
201358
+ "error": {
201359
+ "type": "string"
201360
+ },
201361
+ "code": {
201362
+ "type": "string"
201363
+ }
201364
+ },
201365
+ "required": [
201366
+ "error"
201367
+ ]
201368
+ }
201369
+ }
201370
+ }
200383
201371
  }
200384
201372
  }
200385
201373
  },
@@ -200932,6 +201920,27 @@
200932
201920
  }
200933
201921
  }
200934
201922
  }
201923
+ },
201924
+ "422": {
201925
+ "description": "Supplier invoice payable invariant failed",
201926
+ "content": {
201927
+ "application/json": {
201928
+ "schema": {
201929
+ "type": "object",
201930
+ "properties": {
201931
+ "error": {
201932
+ "type": "string"
201933
+ },
201934
+ "code": {
201935
+ "type": "string"
201936
+ }
201937
+ },
201938
+ "required": [
201939
+ "error"
201940
+ ]
201941
+ }
201942
+ }
201943
+ }
200935
201944
  }
200936
201945
  }
200937
201946
  },
@@ -201529,7 +202538,7 @@
201529
202538
  }
201530
202539
  },
201531
202540
  "422": {
201532
- "description": "Edit would over-allocate a surviving whole-invoice allocation (§6.1)",
202541
+ "description": "Supplier invoice payable or allocation invariant failed",
201533
202542
  "content": {
201534
202543
  "application/json": {
201535
202544
  "schema": {
@@ -202762,6 +203771,27 @@
202762
203771
  }
202763
203772
  }
202764
203773
  }
203774
+ },
203775
+ "422": {
203776
+ "description": "supplier invoice payable invariant failed",
203777
+ "content": {
203778
+ "application/json": {
203779
+ "schema": {
203780
+ "type": "object",
203781
+ "properties": {
203782
+ "error": {
203783
+ "type": "string"
203784
+ },
203785
+ "code": {
203786
+ "type": "string"
203787
+ }
203788
+ },
203789
+ "required": [
203790
+ "error"
203791
+ ]
203792
+ }
203793
+ }
203794
+ }
202765
203795
  }
202766
203796
  }
202767
203797
  }
@@ -205846,14 +206876,12 @@
205846
206876
  },
205847
206877
  "separator": {
205848
206878
  "type": "string",
205849
- "maxLength": 5,
205850
- "default": ""
206879
+ "maxLength": 5
205851
206880
  },
205852
206881
  "padLength": {
205853
206882
  "type": "integer",
205854
206883
  "minimum": 0,
205855
- "maximum": 12,
205856
- "default": 4
206884
+ "maximum": 12
205857
206885
  },
205858
206886
  "resetStrategy": {
205859
206887
  "type": "string",
@@ -205861,8 +206889,7 @@
205861
206889
  "never",
205862
206890
  "annual",
205863
206891
  "monthly"
205864
- ],
205865
- "default": "never"
206892
+ ]
205866
206893
  },
205867
206894
  "scope": {
205868
206895
  "type": "string",
@@ -205872,12 +206899,10 @@
205872
206899
  "partner",
205873
206900
  "channel",
205874
206901
  "other"
205875
- ],
205876
- "default": "customer"
206902
+ ]
205877
206903
  },
205878
206904
  "isDefault": {
205879
- "type": "boolean",
205880
- "default": false
206905
+ "type": "boolean"
205881
206906
  },
205882
206907
  "externalProvider": {
205883
206908
  "type": [
@@ -205896,8 +206921,7 @@
205896
206921
  "maxLength": 100
205897
206922
  },
205898
206923
  "active": {
205899
- "type": "boolean",
205900
- "default": true
206924
+ "type": "boolean"
205901
206925
  }
205902
206926
  }
205903
206927
  }
@@ -213978,8 +215002,7 @@
213978
215002
  "additionalProperties": {}
213979
215003
  },
213980
215004
  "sortOrder": {
213981
- "type": "integer",
213982
- "default": 0
215005
+ "type": "integer"
213983
215006
  }
213984
215007
  }
213985
215008
  }
@@ -216400,8 +217423,7 @@
216400
217423
  "language": {
216401
217424
  "type": "string",
216402
217425
  "minLength": 2,
216403
- "maxLength": 10,
216404
- "default": "en"
217426
+ "maxLength": 10
216405
217427
  },
216406
217428
  "metadata": {
216407
217429
  "type": [
@@ -216576,6 +217598,24 @@
216576
217598
  }
216577
217599
  }
216578
217600
  }
217601
+ },
217602
+ "409": {
217603
+ "description": "Policy has recorded acceptances and cannot be deleted",
217604
+ "content": {
217605
+ "application/json": {
217606
+ "schema": {
217607
+ "type": "object",
217608
+ "properties": {
217609
+ "error": {
217610
+ "type": "string"
217611
+ }
217612
+ },
217613
+ "required": [
217614
+ "error"
217615
+ ]
217616
+ }
217617
+ }
217618
+ }
216579
217619
  }
216580
217620
  }
216581
217621
  }
@@ -239832,6 +240872,1242 @@
239832
240872
  }
239833
240873
  }
239834
240874
  }
240875
+ },
240876
+ "/v1/admin/settings/operator-profile": {
240877
+ "get": {
240878
+ "responses": {
240879
+ "200": {
240880
+ "description": "The operator profile",
240881
+ "content": {
240882
+ "application/json": {
240883
+ "schema": {
240884
+ "type": "object",
240885
+ "properties": {
240886
+ "data": {
240887
+ "type": [
240888
+ "object",
240889
+ "null"
240890
+ ],
240891
+ "properties": {
240892
+ "id": {
240893
+ "type": "string"
240894
+ },
240895
+ "name": {
240896
+ "type": [
240897
+ "string",
240898
+ "null"
240899
+ ]
240900
+ },
240901
+ "legalName": {
240902
+ "type": [
240903
+ "string",
240904
+ "null"
240905
+ ]
240906
+ },
240907
+ "vatId": {
240908
+ "type": [
240909
+ "string",
240910
+ "null"
240911
+ ]
240912
+ },
240913
+ "registrationNumber": {
240914
+ "type": [
240915
+ "string",
240916
+ "null"
240917
+ ]
240918
+ },
240919
+ "address": {
240920
+ "type": [
240921
+ "string",
240922
+ "null"
240923
+ ]
240924
+ },
240925
+ "phone": {
240926
+ "type": [
240927
+ "string",
240928
+ "null"
240929
+ ]
240930
+ },
240931
+ "email": {
240932
+ "type": [
240933
+ "string",
240934
+ "null"
240935
+ ]
240936
+ },
240937
+ "website": {
240938
+ "type": [
240939
+ "string",
240940
+ "null"
240941
+ ]
240942
+ },
240943
+ "license": {
240944
+ "type": [
240945
+ "string",
240946
+ "null"
240947
+ ]
240948
+ },
240949
+ "licenseAuthority": {
240950
+ "type": [
240951
+ "string",
240952
+ "null"
240953
+ ]
240954
+ },
240955
+ "signatoryName": {
240956
+ "type": [
240957
+ "string",
240958
+ "null"
240959
+ ]
240960
+ },
240961
+ "signatoryRole": {
240962
+ "type": [
240963
+ "string",
240964
+ "null"
240965
+ ]
240966
+ },
240967
+ "createdAt": {
240968
+ "type": "string"
240969
+ },
240970
+ "updatedAt": {
240971
+ "type": "string"
240972
+ }
240973
+ },
240974
+ "required": [
240975
+ "id",
240976
+ "name",
240977
+ "legalName",
240978
+ "vatId",
240979
+ "registrationNumber",
240980
+ "address",
240981
+ "phone",
240982
+ "email",
240983
+ "website",
240984
+ "license",
240985
+ "licenseAuthority",
240986
+ "signatoryName",
240987
+ "signatoryRole",
240988
+ "createdAt",
240989
+ "updatedAt"
240990
+ ]
240991
+ }
240992
+ },
240993
+ "required": [
240994
+ "data"
240995
+ ]
240996
+ }
240997
+ }
240998
+ }
240999
+ }
241000
+ }
241001
+ },
241002
+ "patch": {
241003
+ "requestBody": {
241004
+ "required": true,
241005
+ "content": {
241006
+ "application/json": {
241007
+ "schema": {
241008
+ "type": "object",
241009
+ "properties": {
241010
+ "name": {
241011
+ "type": [
241012
+ "string",
241013
+ "null"
241014
+ ]
241015
+ },
241016
+ "legalName": {
241017
+ "type": [
241018
+ "string",
241019
+ "null"
241020
+ ]
241021
+ },
241022
+ "vatId": {
241023
+ "type": [
241024
+ "string",
241025
+ "null"
241026
+ ]
241027
+ },
241028
+ "registrationNumber": {
241029
+ "type": [
241030
+ "string",
241031
+ "null"
241032
+ ]
241033
+ },
241034
+ "address": {
241035
+ "type": [
241036
+ "string",
241037
+ "null"
241038
+ ]
241039
+ },
241040
+ "phone": {
241041
+ "type": [
241042
+ "string",
241043
+ "null"
241044
+ ]
241045
+ },
241046
+ "email": {
241047
+ "anyOf": [
241048
+ {
241049
+ "type": [
241050
+ "string",
241051
+ "null"
241052
+ ],
241053
+ "format": "email"
241054
+ },
241055
+ {
241056
+ "type": "string",
241057
+ "enum": [
241058
+ ""
241059
+ ]
241060
+ },
241061
+ {
241062
+ "type": "null"
241063
+ }
241064
+ ]
241065
+ },
241066
+ "website": {
241067
+ "anyOf": [
241068
+ {
241069
+ "type": [
241070
+ "string",
241071
+ "null"
241072
+ ],
241073
+ "format": "uri"
241074
+ },
241075
+ {
241076
+ "type": "string",
241077
+ "enum": [
241078
+ ""
241079
+ ]
241080
+ },
241081
+ {
241082
+ "type": "null"
241083
+ }
241084
+ ]
241085
+ },
241086
+ "license": {
241087
+ "type": [
241088
+ "string",
241089
+ "null"
241090
+ ]
241091
+ },
241092
+ "licenseAuthority": {
241093
+ "type": [
241094
+ "string",
241095
+ "null"
241096
+ ]
241097
+ },
241098
+ "signatoryName": {
241099
+ "type": [
241100
+ "string",
241101
+ "null"
241102
+ ]
241103
+ },
241104
+ "signatoryRole": {
241105
+ "type": [
241106
+ "string",
241107
+ "null"
241108
+ ]
241109
+ }
241110
+ }
241111
+ }
241112
+ }
241113
+ }
241114
+ },
241115
+ "responses": {
241116
+ "200": {
241117
+ "description": "The updated operator profile",
241118
+ "content": {
241119
+ "application/json": {
241120
+ "schema": {
241121
+ "type": "object",
241122
+ "properties": {
241123
+ "data": {
241124
+ "type": [
241125
+ "object",
241126
+ "null"
241127
+ ],
241128
+ "properties": {
241129
+ "id": {
241130
+ "type": "string"
241131
+ },
241132
+ "name": {
241133
+ "type": [
241134
+ "string",
241135
+ "null"
241136
+ ]
241137
+ },
241138
+ "legalName": {
241139
+ "type": [
241140
+ "string",
241141
+ "null"
241142
+ ]
241143
+ },
241144
+ "vatId": {
241145
+ "type": [
241146
+ "string",
241147
+ "null"
241148
+ ]
241149
+ },
241150
+ "registrationNumber": {
241151
+ "type": [
241152
+ "string",
241153
+ "null"
241154
+ ]
241155
+ },
241156
+ "address": {
241157
+ "type": [
241158
+ "string",
241159
+ "null"
241160
+ ]
241161
+ },
241162
+ "phone": {
241163
+ "type": [
241164
+ "string",
241165
+ "null"
241166
+ ]
241167
+ },
241168
+ "email": {
241169
+ "type": [
241170
+ "string",
241171
+ "null"
241172
+ ]
241173
+ },
241174
+ "website": {
241175
+ "type": [
241176
+ "string",
241177
+ "null"
241178
+ ]
241179
+ },
241180
+ "license": {
241181
+ "type": [
241182
+ "string",
241183
+ "null"
241184
+ ]
241185
+ },
241186
+ "licenseAuthority": {
241187
+ "type": [
241188
+ "string",
241189
+ "null"
241190
+ ]
241191
+ },
241192
+ "signatoryName": {
241193
+ "type": [
241194
+ "string",
241195
+ "null"
241196
+ ]
241197
+ },
241198
+ "signatoryRole": {
241199
+ "type": [
241200
+ "string",
241201
+ "null"
241202
+ ]
241203
+ },
241204
+ "createdAt": {
241205
+ "type": "string"
241206
+ },
241207
+ "updatedAt": {
241208
+ "type": "string"
241209
+ }
241210
+ },
241211
+ "required": [
241212
+ "id",
241213
+ "name",
241214
+ "legalName",
241215
+ "vatId",
241216
+ "registrationNumber",
241217
+ "address",
241218
+ "phone",
241219
+ "email",
241220
+ "website",
241221
+ "license",
241222
+ "licenseAuthority",
241223
+ "signatoryName",
241224
+ "signatoryRole",
241225
+ "createdAt",
241226
+ "updatedAt"
241227
+ ]
241228
+ }
241229
+ },
241230
+ "required": [
241231
+ "data"
241232
+ ]
241233
+ }
241234
+ }
241235
+ }
241236
+ }
241237
+ }
241238
+ }
241239
+ },
241240
+ "/v1/admin/settings/operator-payment-instructions": {
241241
+ "get": {
241242
+ "responses": {
241243
+ "200": {
241244
+ "description": "The operator payment instructions",
241245
+ "content": {
241246
+ "application/json": {
241247
+ "schema": {
241248
+ "type": "object",
241249
+ "properties": {
241250
+ "data": {
241251
+ "type": [
241252
+ "object",
241253
+ "null"
241254
+ ],
241255
+ "properties": {
241256
+ "id": {
241257
+ "type": "string"
241258
+ },
241259
+ "bankTransferBeneficiary": {
241260
+ "type": [
241261
+ "string",
241262
+ "null"
241263
+ ]
241264
+ },
241265
+ "iban": {
241266
+ "type": [
241267
+ "string",
241268
+ "null"
241269
+ ]
241270
+ },
241271
+ "bank": {
241272
+ "type": [
241273
+ "string",
241274
+ "null"
241275
+ ]
241276
+ },
241277
+ "notes": {
241278
+ "type": [
241279
+ "string",
241280
+ "null"
241281
+ ]
241282
+ },
241283
+ "createdAt": {
241284
+ "type": "string"
241285
+ },
241286
+ "updatedAt": {
241287
+ "type": "string"
241288
+ }
241289
+ },
241290
+ "required": [
241291
+ "id",
241292
+ "bankTransferBeneficiary",
241293
+ "iban",
241294
+ "bank",
241295
+ "notes",
241296
+ "createdAt",
241297
+ "updatedAt"
241298
+ ]
241299
+ }
241300
+ },
241301
+ "required": [
241302
+ "data"
241303
+ ]
241304
+ }
241305
+ }
241306
+ }
241307
+ }
241308
+ }
241309
+ },
241310
+ "patch": {
241311
+ "requestBody": {
241312
+ "required": true,
241313
+ "content": {
241314
+ "application/json": {
241315
+ "schema": {
241316
+ "type": "object",
241317
+ "properties": {
241318
+ "bankTransferBeneficiary": {
241319
+ "type": [
241320
+ "string",
241321
+ "null"
241322
+ ]
241323
+ },
241324
+ "iban": {
241325
+ "type": [
241326
+ "string",
241327
+ "null"
241328
+ ]
241329
+ },
241330
+ "bank": {
241331
+ "type": [
241332
+ "string",
241333
+ "null"
241334
+ ]
241335
+ },
241336
+ "notes": {
241337
+ "type": [
241338
+ "string",
241339
+ "null"
241340
+ ]
241341
+ }
241342
+ }
241343
+ }
241344
+ }
241345
+ }
241346
+ },
241347
+ "responses": {
241348
+ "200": {
241349
+ "description": "The updated operator payment instructions",
241350
+ "content": {
241351
+ "application/json": {
241352
+ "schema": {
241353
+ "type": "object",
241354
+ "properties": {
241355
+ "data": {
241356
+ "type": [
241357
+ "object",
241358
+ "null"
241359
+ ],
241360
+ "properties": {
241361
+ "id": {
241362
+ "type": "string"
241363
+ },
241364
+ "bankTransferBeneficiary": {
241365
+ "type": [
241366
+ "string",
241367
+ "null"
241368
+ ]
241369
+ },
241370
+ "iban": {
241371
+ "type": [
241372
+ "string",
241373
+ "null"
241374
+ ]
241375
+ },
241376
+ "bank": {
241377
+ "type": [
241378
+ "string",
241379
+ "null"
241380
+ ]
241381
+ },
241382
+ "notes": {
241383
+ "type": [
241384
+ "string",
241385
+ "null"
241386
+ ]
241387
+ },
241388
+ "createdAt": {
241389
+ "type": "string"
241390
+ },
241391
+ "updatedAt": {
241392
+ "type": "string"
241393
+ }
241394
+ },
241395
+ "required": [
241396
+ "id",
241397
+ "bankTransferBeneficiary",
241398
+ "iban",
241399
+ "bank",
241400
+ "notes",
241401
+ "createdAt",
241402
+ "updatedAt"
241403
+ ]
241404
+ }
241405
+ },
241406
+ "required": [
241407
+ "data"
241408
+ ]
241409
+ }
241410
+ }
241411
+ }
241412
+ }
241413
+ }
241414
+ }
241415
+ },
241416
+ "/v1/admin/settings/operator-payment-defaults": {
241417
+ "get": {
241418
+ "responses": {
241419
+ "200": {
241420
+ "description": "The operator payment defaults",
241421
+ "content": {
241422
+ "application/json": {
241423
+ "schema": {
241424
+ "type": "object",
241425
+ "properties": {
241426
+ "data": {
241427
+ "type": [
241428
+ "object",
241429
+ "null"
241430
+ ],
241431
+ "properties": {
241432
+ "id": {
241433
+ "type": "string"
241434
+ },
241435
+ "customerPaymentPolicy": {},
241436
+ "bookingCheckoutUrlTemplate": {
241437
+ "type": [
241438
+ "string",
241439
+ "null"
241440
+ ]
241441
+ },
241442
+ "invoicePayUrlTemplate": {
241443
+ "type": [
241444
+ "string",
241445
+ "null"
241446
+ ]
241447
+ },
241448
+ "createdAt": {
241449
+ "type": "string"
241450
+ },
241451
+ "updatedAt": {
241452
+ "type": "string"
241453
+ }
241454
+ },
241455
+ "required": [
241456
+ "id",
241457
+ "bookingCheckoutUrlTemplate",
241458
+ "invoicePayUrlTemplate",
241459
+ "createdAt",
241460
+ "updatedAt"
241461
+ ]
241462
+ }
241463
+ },
241464
+ "required": [
241465
+ "data"
241466
+ ]
241467
+ }
241468
+ }
241469
+ }
241470
+ }
241471
+ }
241472
+ },
241473
+ "patch": {
241474
+ "requestBody": {
241475
+ "required": true,
241476
+ "content": {
241477
+ "application/json": {
241478
+ "schema": {
241479
+ "type": "object",
241480
+ "properties": {
241481
+ "customerPaymentPolicy": {
241482
+ "type": [
241483
+ "object",
241484
+ "null"
241485
+ ],
241486
+ "properties": {
241487
+ "deposit": {
241488
+ "type": "object",
241489
+ "properties": {
241490
+ "kind": {
241491
+ "type": "string",
241492
+ "enum": [
241493
+ "none",
241494
+ "percent",
241495
+ "fixed_cents"
241496
+ ]
241497
+ },
241498
+ "percent": {
241499
+ "type": "number",
241500
+ "minimum": 0,
241501
+ "maximum": 100
241502
+ },
241503
+ "amountCents": {
241504
+ "type": "integer",
241505
+ "minimum": 0
241506
+ }
241507
+ },
241508
+ "required": [
241509
+ "kind"
241510
+ ]
241511
+ },
241512
+ "minDaysBeforeDepartureForDeposit": {
241513
+ "type": "integer",
241514
+ "minimum": 0
241515
+ },
241516
+ "balanceDueDaysBeforeDeparture": {
241517
+ "type": "integer",
241518
+ "minimum": 0
241519
+ },
241520
+ "balanceDueMinDaysFromNow": {
241521
+ "type": "integer",
241522
+ "minimum": 0
241523
+ }
241524
+ },
241525
+ "required": [
241526
+ "deposit",
241527
+ "minDaysBeforeDepartureForDeposit",
241528
+ "balanceDueDaysBeforeDeparture",
241529
+ "balanceDueMinDaysFromNow"
241530
+ ]
241531
+ },
241532
+ "bookingCheckoutUrlTemplate": {
241533
+ "type": [
241534
+ "string",
241535
+ "null"
241536
+ ]
241537
+ },
241538
+ "invoicePayUrlTemplate": {
241539
+ "type": [
241540
+ "string",
241541
+ "null"
241542
+ ]
241543
+ }
241544
+ }
241545
+ }
241546
+ }
241547
+ }
241548
+ },
241549
+ "responses": {
241550
+ "200": {
241551
+ "description": "The updated operator payment defaults",
241552
+ "content": {
241553
+ "application/json": {
241554
+ "schema": {
241555
+ "type": "object",
241556
+ "properties": {
241557
+ "data": {
241558
+ "type": [
241559
+ "object",
241560
+ "null"
241561
+ ],
241562
+ "properties": {
241563
+ "id": {
241564
+ "type": "string"
241565
+ },
241566
+ "customerPaymentPolicy": {},
241567
+ "bookingCheckoutUrlTemplate": {
241568
+ "type": [
241569
+ "string",
241570
+ "null"
241571
+ ]
241572
+ },
241573
+ "invoicePayUrlTemplate": {
241574
+ "type": [
241575
+ "string",
241576
+ "null"
241577
+ ]
241578
+ },
241579
+ "createdAt": {
241580
+ "type": "string"
241581
+ },
241582
+ "updatedAt": {
241583
+ "type": "string"
241584
+ }
241585
+ },
241586
+ "required": [
241587
+ "id",
241588
+ "bookingCheckoutUrlTemplate",
241589
+ "invoicePayUrlTemplate",
241590
+ "createdAt",
241591
+ "updatedAt"
241592
+ ]
241593
+ }
241594
+ },
241595
+ "required": [
241596
+ "data"
241597
+ ]
241598
+ }
241599
+ }
241600
+ }
241601
+ }
241602
+ }
241603
+ }
241604
+ },
241605
+ "/v1/admin/settings/operator": {
241606
+ "get": {
241607
+ "responses": {
241608
+ "200": {
241609
+ "description": "The combined operator settings",
241610
+ "content": {
241611
+ "application/json": {
241612
+ "schema": {
241613
+ "type": "object",
241614
+ "properties": {
241615
+ "data": {
241616
+ "type": [
241617
+ "object",
241618
+ "null"
241619
+ ],
241620
+ "properties": {
241621
+ "id": {
241622
+ "type": "string"
241623
+ },
241624
+ "name": {
241625
+ "type": [
241626
+ "string",
241627
+ "null"
241628
+ ]
241629
+ },
241630
+ "legalName": {
241631
+ "type": [
241632
+ "string",
241633
+ "null"
241634
+ ]
241635
+ },
241636
+ "vatId": {
241637
+ "type": [
241638
+ "string",
241639
+ "null"
241640
+ ]
241641
+ },
241642
+ "registrationNumber": {
241643
+ "type": [
241644
+ "string",
241645
+ "null"
241646
+ ]
241647
+ },
241648
+ "address": {
241649
+ "type": [
241650
+ "string",
241651
+ "null"
241652
+ ]
241653
+ },
241654
+ "phone": {
241655
+ "type": [
241656
+ "string",
241657
+ "null"
241658
+ ]
241659
+ },
241660
+ "email": {
241661
+ "type": [
241662
+ "string",
241663
+ "null"
241664
+ ]
241665
+ },
241666
+ "website": {
241667
+ "type": [
241668
+ "string",
241669
+ "null"
241670
+ ]
241671
+ },
241672
+ "license": {
241673
+ "type": [
241674
+ "string",
241675
+ "null"
241676
+ ]
241677
+ },
241678
+ "licenseAuthority": {
241679
+ "type": [
241680
+ "string",
241681
+ "null"
241682
+ ]
241683
+ },
241684
+ "signatoryName": {
241685
+ "type": [
241686
+ "string",
241687
+ "null"
241688
+ ]
241689
+ },
241690
+ "signatoryRole": {
241691
+ "type": [
241692
+ "string",
241693
+ "null"
241694
+ ]
241695
+ },
241696
+ "createdAt": {
241697
+ "type": "string"
241698
+ },
241699
+ "updatedAt": {
241700
+ "type": "string"
241701
+ },
241702
+ "bankTransferBeneficiary": {
241703
+ "type": [
241704
+ "string",
241705
+ "null"
241706
+ ]
241707
+ },
241708
+ "iban": {
241709
+ "type": [
241710
+ "string",
241711
+ "null"
241712
+ ]
241713
+ },
241714
+ "bank": {
241715
+ "type": [
241716
+ "string",
241717
+ "null"
241718
+ ]
241719
+ },
241720
+ "notes": {
241721
+ "type": [
241722
+ "string",
241723
+ "null"
241724
+ ]
241725
+ },
241726
+ "customerPaymentPolicy": {},
241727
+ "bookingCheckoutUrlTemplate": {
241728
+ "type": [
241729
+ "string",
241730
+ "null"
241731
+ ]
241732
+ },
241733
+ "invoicePayUrlTemplate": {
241734
+ "type": [
241735
+ "string",
241736
+ "null"
241737
+ ]
241738
+ }
241739
+ },
241740
+ "required": [
241741
+ "bankTransferBeneficiary",
241742
+ "iban",
241743
+ "bank",
241744
+ "notes",
241745
+ "bookingCheckoutUrlTemplate",
241746
+ "invoicePayUrlTemplate"
241747
+ ]
241748
+ }
241749
+ },
241750
+ "required": [
241751
+ "data"
241752
+ ]
241753
+ }
241754
+ }
241755
+ }
241756
+ }
241757
+ }
241758
+ },
241759
+ "patch": {
241760
+ "requestBody": {
241761
+ "required": true,
241762
+ "content": {
241763
+ "application/json": {
241764
+ "schema": {
241765
+ "type": "object",
241766
+ "properties": {
241767
+ "name": {
241768
+ "type": [
241769
+ "string",
241770
+ "null"
241771
+ ]
241772
+ },
241773
+ "legalName": {
241774
+ "type": [
241775
+ "string",
241776
+ "null"
241777
+ ]
241778
+ },
241779
+ "vatId": {
241780
+ "type": [
241781
+ "string",
241782
+ "null"
241783
+ ]
241784
+ },
241785
+ "registrationNumber": {
241786
+ "type": [
241787
+ "string",
241788
+ "null"
241789
+ ]
241790
+ },
241791
+ "address": {
241792
+ "type": [
241793
+ "string",
241794
+ "null"
241795
+ ]
241796
+ },
241797
+ "phone": {
241798
+ "type": [
241799
+ "string",
241800
+ "null"
241801
+ ]
241802
+ },
241803
+ "email": {
241804
+ "anyOf": [
241805
+ {
241806
+ "type": [
241807
+ "string",
241808
+ "null"
241809
+ ],
241810
+ "format": "email"
241811
+ },
241812
+ {
241813
+ "type": "string",
241814
+ "enum": [
241815
+ ""
241816
+ ]
241817
+ },
241818
+ {
241819
+ "type": "null"
241820
+ }
241821
+ ]
241822
+ },
241823
+ "website": {
241824
+ "anyOf": [
241825
+ {
241826
+ "type": [
241827
+ "string",
241828
+ "null"
241829
+ ],
241830
+ "format": "uri"
241831
+ },
241832
+ {
241833
+ "type": "string",
241834
+ "enum": [
241835
+ ""
241836
+ ]
241837
+ },
241838
+ {
241839
+ "type": "null"
241840
+ }
241841
+ ]
241842
+ },
241843
+ "license": {
241844
+ "type": [
241845
+ "string",
241846
+ "null"
241847
+ ]
241848
+ },
241849
+ "licenseAuthority": {
241850
+ "type": [
241851
+ "string",
241852
+ "null"
241853
+ ]
241854
+ },
241855
+ "signatoryName": {
241856
+ "type": [
241857
+ "string",
241858
+ "null"
241859
+ ]
241860
+ },
241861
+ "signatoryRole": {
241862
+ "type": [
241863
+ "string",
241864
+ "null"
241865
+ ]
241866
+ },
241867
+ "bankTransferBeneficiary": {
241868
+ "type": [
241869
+ "string",
241870
+ "null"
241871
+ ]
241872
+ },
241873
+ "iban": {
241874
+ "type": [
241875
+ "string",
241876
+ "null"
241877
+ ]
241878
+ },
241879
+ "bank": {
241880
+ "type": [
241881
+ "string",
241882
+ "null"
241883
+ ]
241884
+ },
241885
+ "notes": {
241886
+ "type": [
241887
+ "string",
241888
+ "null"
241889
+ ]
241890
+ },
241891
+ "customerPaymentPolicy": {
241892
+ "type": [
241893
+ "object",
241894
+ "null"
241895
+ ],
241896
+ "properties": {
241897
+ "deposit": {
241898
+ "type": "object",
241899
+ "properties": {
241900
+ "kind": {
241901
+ "type": "string",
241902
+ "enum": [
241903
+ "none",
241904
+ "percent",
241905
+ "fixed_cents"
241906
+ ]
241907
+ },
241908
+ "percent": {
241909
+ "type": "number",
241910
+ "minimum": 0,
241911
+ "maximum": 100
241912
+ },
241913
+ "amountCents": {
241914
+ "type": "integer",
241915
+ "minimum": 0
241916
+ }
241917
+ },
241918
+ "required": [
241919
+ "kind"
241920
+ ]
241921
+ },
241922
+ "minDaysBeforeDepartureForDeposit": {
241923
+ "type": "integer",
241924
+ "minimum": 0
241925
+ },
241926
+ "balanceDueDaysBeforeDeparture": {
241927
+ "type": "integer",
241928
+ "minimum": 0
241929
+ },
241930
+ "balanceDueMinDaysFromNow": {
241931
+ "type": "integer",
241932
+ "minimum": 0
241933
+ }
241934
+ },
241935
+ "required": [
241936
+ "deposit",
241937
+ "minDaysBeforeDepartureForDeposit",
241938
+ "balanceDueDaysBeforeDeparture",
241939
+ "balanceDueMinDaysFromNow"
241940
+ ]
241941
+ },
241942
+ "bookingCheckoutUrlTemplate": {
241943
+ "type": [
241944
+ "string",
241945
+ "null"
241946
+ ]
241947
+ },
241948
+ "invoicePayUrlTemplate": {
241949
+ "type": [
241950
+ "string",
241951
+ "null"
241952
+ ]
241953
+ }
241954
+ }
241955
+ }
241956
+ }
241957
+ }
241958
+ },
241959
+ "responses": {
241960
+ "200": {
241961
+ "description": "The updated combined operator settings",
241962
+ "content": {
241963
+ "application/json": {
241964
+ "schema": {
241965
+ "type": "object",
241966
+ "properties": {
241967
+ "data": {
241968
+ "type": [
241969
+ "object",
241970
+ "null"
241971
+ ],
241972
+ "properties": {
241973
+ "id": {
241974
+ "type": "string"
241975
+ },
241976
+ "name": {
241977
+ "type": [
241978
+ "string",
241979
+ "null"
241980
+ ]
241981
+ },
241982
+ "legalName": {
241983
+ "type": [
241984
+ "string",
241985
+ "null"
241986
+ ]
241987
+ },
241988
+ "vatId": {
241989
+ "type": [
241990
+ "string",
241991
+ "null"
241992
+ ]
241993
+ },
241994
+ "registrationNumber": {
241995
+ "type": [
241996
+ "string",
241997
+ "null"
241998
+ ]
241999
+ },
242000
+ "address": {
242001
+ "type": [
242002
+ "string",
242003
+ "null"
242004
+ ]
242005
+ },
242006
+ "phone": {
242007
+ "type": [
242008
+ "string",
242009
+ "null"
242010
+ ]
242011
+ },
242012
+ "email": {
242013
+ "type": [
242014
+ "string",
242015
+ "null"
242016
+ ]
242017
+ },
242018
+ "website": {
242019
+ "type": [
242020
+ "string",
242021
+ "null"
242022
+ ]
242023
+ },
242024
+ "license": {
242025
+ "type": [
242026
+ "string",
242027
+ "null"
242028
+ ]
242029
+ },
242030
+ "licenseAuthority": {
242031
+ "type": [
242032
+ "string",
242033
+ "null"
242034
+ ]
242035
+ },
242036
+ "signatoryName": {
242037
+ "type": [
242038
+ "string",
242039
+ "null"
242040
+ ]
242041
+ },
242042
+ "signatoryRole": {
242043
+ "type": [
242044
+ "string",
242045
+ "null"
242046
+ ]
242047
+ },
242048
+ "createdAt": {
242049
+ "type": "string"
242050
+ },
242051
+ "updatedAt": {
242052
+ "type": "string"
242053
+ },
242054
+ "bankTransferBeneficiary": {
242055
+ "type": [
242056
+ "string",
242057
+ "null"
242058
+ ]
242059
+ },
242060
+ "iban": {
242061
+ "type": [
242062
+ "string",
242063
+ "null"
242064
+ ]
242065
+ },
242066
+ "bank": {
242067
+ "type": [
242068
+ "string",
242069
+ "null"
242070
+ ]
242071
+ },
242072
+ "notes": {
242073
+ "type": [
242074
+ "string",
242075
+ "null"
242076
+ ]
242077
+ },
242078
+ "customerPaymentPolicy": {},
242079
+ "bookingCheckoutUrlTemplate": {
242080
+ "type": [
242081
+ "string",
242082
+ "null"
242083
+ ]
242084
+ },
242085
+ "invoicePayUrlTemplate": {
242086
+ "type": [
242087
+ "string",
242088
+ "null"
242089
+ ]
242090
+ }
242091
+ },
242092
+ "required": [
242093
+ "bankTransferBeneficiary",
242094
+ "iban",
242095
+ "bank",
242096
+ "notes",
242097
+ "bookingCheckoutUrlTemplate",
242098
+ "invoicePayUrlTemplate"
242099
+ ]
242100
+ }
242101
+ },
242102
+ "required": [
242103
+ "data"
242104
+ ]
242105
+ }
242106
+ }
242107
+ }
242108
+ }
242109
+ }
242110
+ }
239835
242111
  }
239836
242112
  },
239837
242113
  "webhooks": {}