@@ -296,7 +296,7 @@ components:
296
296
' firstnames ' : ['Bob'],
297
297
' gender ' : ' Male' ,
298
298
' birthdate ' : ' 1980-03-21' ,
299
- ' contactInformation ' :
['+32123456789', '[email protected] ']
299
+ ' contactInformation ' :
['+32123456789', '[email protected] '],
300
300
}
301
301
302
302
LocationSearch :
@@ -326,7 +326,7 @@ components:
326
326
' south ' : 50.0929802,
327
327
' west ' : 14.4012451,
328
328
' north ' : 50.0812615,
329
- ' east ' : 14.4394467
329
+ ' east ' : 14.4394467,
330
330
}
331
331
332
332
LocationCircle :
@@ -425,7 +425,7 @@ components:
425
425
{
426
426
' type ' : ' refundable_with_deadline' ,
427
427
' deadline ' : ' 2022-10-12T23:59:59.59Z' ,
428
- ' penaltyAmount ' : ' 100.00'
428
+ ' penaltyAmount ' : ' 100.00' ,
429
429
}
430
430
431
431
AccommodationType :
@@ -462,7 +462,7 @@ components:
462
462
' checkinoutPolicy' ,
463
463
' otherPolicies' ,
464
464
' media' ,
465
- ' roomTypes'
465
+ ' roomTypes' ,
466
466
]
467
467
properties :
468
468
hotelId :
@@ -517,7 +517,7 @@ components:
517
517
' media' ,
518
518
' roomTypes' ,
519
519
' id' ,
520
- ' providerHotelId'
520
+ ' providerHotelId' ,
521
521
]
522
522
properties :
523
523
hotelId :
@@ -578,7 +578,7 @@ components:
578
578
' size' ,
579
579
' maximumOccupancy' ,
580
580
' media' ,
581
- ' policies'
581
+ ' policies' ,
582
582
]
583
583
properties :
584
584
name :
@@ -760,7 +760,7 @@ components:
760
760
example :
761
761
{
762
762
' 7b7b18e2-7357-4e98-9be6-aa182e0b090a ' :
763
- { 'accommodation': 'prov.1234', 'roomType': 'ND' }
763
+ { 'accommodation': 'prov.1234', 'roomType': 'ND' },
764
764
}
765
765
766
766
AdditionalPricePlanProperties :
@@ -791,7 +791,7 @@ components:
791
791
example : { 'mealPlan': 'BB', 'ratePlan': 'BAR', 'roomTypeId': 'FM4' }
792
792
793
793
Order :
794
- description : An Order object
794
+ description : Representation of the order
795
795
type : object
796
796
required : ['supplierReservationId', 'status']
797
797
properties :
@@ -801,8 +801,7 @@ components:
801
801
restrictions :
802
802
$ref : ' #/components/schemas/ServiceRestrictions'
803
803
status :
804
- description : Status of an order
805
- type : string
804
+ $ref : ' #/components/schemas/OrderStatus'
806
805
807
806
SearchCriteria :
808
807
description : An object to provide search criteria
@@ -910,28 +909,24 @@ components:
910
909
required : ['orderId', 'order']
911
910
properties :
912
911
orderId :
913
- description : The ID of the order Created
914
- anyOf :
915
- - $ref : ' #/components/schemas/UUID'
912
+ $ref : ' #/components/schemas/UUID'
916
913
order :
917
- description : The created order
918
- anyOf :
919
- - $ref : ' #/components/schemas/Order'
914
+ $ref : ' #/components/schemas/Order'
920
915
921
916
OrderCancellationResponse :
922
917
description : Confirmation of an order cancellation
923
918
type : object
924
919
required : ['orderId', 'status']
925
920
properties :
926
921
orderId :
927
- description : Order ID
928
- allOf :
929
- - $ref : ' #/components/schemas/UUID'
922
+ $ref : ' #/components/schemas/UUID'
930
923
status :
931
- description : Result of cancellation
932
- type : string
924
+ $ref : ' #/components/schemas/OrderStatus'
933
925
example :
934
- { 'orderId': '11111111-2222-3333-4444-000000000001', 'status': 'CANCELLED' }
926
+ {
927
+ ' orderId ' : ' 11111111-2222-3333-4444-000000000001' ,
928
+ ' status ' : ' CANCELLED' ,
929
+ }
935
930
936
931
Iban :
937
932
description : The International Bank Account Number
@@ -1016,7 +1011,7 @@ components:
1016
1011
' sourceAmount' ,
1017
1012
' targetCurrency' ,
1018
1013
' targetAmount' ,
1019
- ' rate'
1014
+ ' rate' ,
1020
1015
]
1021
1016
type : object
1022
1017
properties :
@@ -1638,8 +1633,13 @@ components:
1638
1633
$ref : ' #/components/schemas/Amount'
1639
1634
example :
1640
1635
{
1641
- ' EUR ' : { 'total': '12500.00', 'reserved': '4500.00', 'available': '8000.00' },
1642
- ' CLP ' : { 'total': '45000', 'reserved': '0', 'available': '45000' }
1636
+ ' EUR ' :
1637
+ {
1638
+ ' total ' : ' 12500.00' ,
1639
+ ' reserved ' : ' 4500.00' ,
1640
+ ' available ' : ' 8000.00' ,
1641
+ },
1642
+ ' CLP ' : { 'total': '45000', 'reserved': '0', 'available': '45000' },
1643
1643
}
1644
1644
1645
1645
BankAddress :
@@ -1692,9 +1692,9 @@ components:
1692
1692
' postCode ' : ' 80687' ,
1693
1693
' city ' : ' München' ,
1694
1694
' country ' : ' Germany' ,
1695
- ' stateCode ' : null
1696
- }
1697
- }
1695
+ ' stateCode ' : null,
1696
+ },
1697
+ },
1698
1698
}
1699
1699
1700
1700
MongoLocation :
@@ -1838,7 +1838,7 @@ components:
1838
1838
' paymentValidationError' ,
1839
1839
' networkError' ,
1840
1840
' creationFailed' ,
1841
- ' cancelled'
1841
+ ' cancelled' ,
1842
1842
]
1843
1843
message :
1844
1844
type : string
@@ -2087,7 +2087,7 @@ components:
2087
2087
' firstnames ' : ['Bob'],
2088
2088
' gender ' : ' Male' ,
2089
2089
' birthdate ' : ' 1980-03-21' ,
2090
- ' contactInformation ' :
['+32123456789', '[email protected] ']
2090
+ ' contactInformation ' :
['+32123456789', '[email protected] '],
2091
2091
}
2092
2092
2093
2093
AdultGuest :
@@ -2278,3 +2278,13 @@ components:
2278
2278
decimals :
2279
2279
description : The number of decimals for this currency
2280
2280
type : integer
2281
+
2282
+ OrderStatus :
2283
+ description : Status of the order
2284
+ type : string
2285
+ enum :
2286
+ - IN_PROGRESS
2287
+ - CONFIRMED
2288
+ - WAITLIST
2289
+ - CANCELLED
2290
+ - CREATION_FAILED
0 commit comments