From a42eba1c5144d79614ad68e5f48124e34de34cd6 Mon Sep 17 00:00:00 2001 From: minjikarin Date: Mon, 17 Jun 2024 10:51:02 +0200 Subject: [PATCH] modified example --- README.rst | 13 +++++++++---- amadeus/booking/_hotel_orders.py | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) 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