File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -275,12 +275,17 @@ List of supported endpoints
275275 # Hotel Name Autocomplete
276276 amadeus.reference_data.locations.hotel.get(keyword = ' PARI' , subType = [Hotel.HOTEL_GDS , Hotel.HOTEL_LEISURE ])
277277
278- # Hotel Booking
278+ # Hotel Booking V2
279279 # The offerId comes from the hotel_offer above
280- amadeus.booking.hotel_bookings.post(offerId, guests, payments)
280+ response = amadeus.booking.hotel_orders.post(
281+ guests = guests,
282+ travel_agent = travel_agent,
283+ room_associations = room_associations,
284+ payment = payment)
281285
282- # Hotel Orders
283- amadeus.booking.hotel_orders.post(guests = guests, travel_agent = travel_agent)
286+ # Hotel Booking V1
287+ # The offerId comes from the hotel_offer above
288+ amadeus.booking.hotel_bookings.post(offerId, guests, payments)
284289
285290 # Hotel Ratings
286291 # What travelers think about this hotel?
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def post(self,
99 payment = {},
1010 arrival_information = {}):
1111 '''
12- Create Hotel Order
12+ Book hotel(s) via Hotel Booking API V2
1313
1414 .. code-block:: python
1515
You can’t perform that action at this time.
0 commit comments