diff --git a/README.rst b/README.rst index 51f7f04..316e79b 100644 --- a/README.rst +++ b/README.rst @@ -275,12 +275,17 @@ List of supported endpoints # Hotel Name Autocomplete amadeus.reference_data.locations.hotel.get(keyword='PARI', subType=[Hotel.HOTEL_GDS, Hotel.HOTEL_LEISURE]) - # Hotel Booking + # Hotel Booking V2 # The offerId comes from the hotel_offer above - amadeus.booking.hotel_bookings.post(offerId, guests, payments) + response = amadeus.booking.hotel_orders.post( + guests=guests, + travel_agent=travel_agent, + room_associations=room_associations, + payment=payment) - # Hotel Orders - amadeus.booking.hotel_orders.post(guests=guests, travel_agent=travel_agent) + # Hotel Booking V1 + # The offerId comes from the hotel_offer above + amadeus.booking.hotel_bookings.post(offerId, guests, payments) # Hotel Ratings # What travelers think about this hotel? diff --git a/amadeus/booking/_hotel_orders.py b/amadeus/booking/_hotel_orders.py index 7dd3507..8e4aa16 100644 --- a/amadeus/booking/_hotel_orders.py +++ b/amadeus/booking/_hotel_orders.py @@ -9,7 +9,7 @@ def post(self, payment={}, arrival_information={}): ''' - Create Hotel Order + Book hotel(s) via Hotel Booking API V2 .. code-block:: python