Skip to content

Commit a42eba1

Browse files
committed
modified example
1 parent 3c84af4 commit a42eba1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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?

amadeus/booking/_hotel_orders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)