File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -351,13 +351,13 @@ List of supported endpoints
351351 amadeus.airline.destinations.get(airlineCode = ' BA' )
352352
353353 # Transfer Offers Search
354- amadeus.shopping.transfer_offers_search .post(body)
354+ amadeus.shopping.transfer_offers .post(body)
355355
356- # Transfer Create Order
356+ # Transfer Booking
357357 amadeus.ordering.transfer_orders.post(body, offerId = ' 1000000000' )
358358
359- # Transfer Order Management
360- amadeus.ordering.transfer_order (' ABC' ).transfers.cancellation.post(body, confirmNbr = 123 )
359+ # Transfer Management
360+ amadeus.ordering.transfer_orders (' ABC' ).transfers.cancellation.post(body, confirmNbr = 123 )
361361
362362 Development & Contributing
363363--------------------------
Original file line number Diff line number Diff line change 99from amadeus .shopping ._availability import Availability
1010from amadeus .shopping ._hotel_offer_search import HotelOfferSearch
1111from amadeus .shopping ._hotel_offers_search import HotelOffersSearch
12- from amadeus .shopping ._transfer_offers_search import TransferOffersSearch
12+ from amadeus .shopping ._transfer_offers import TransferOffersSearch
1313
1414
1515class Shopping (Decorator , object ):
Original file line number Diff line number Diff line change 44from ._hotel_offer_search import HotelOfferSearch
55from ._hotel_offers_search import HotelOffersSearch
66from ._activities import Activities
7- from ._transfer_offers_search import TransferOffersSearch
7+ from ._transfer_offers import TransferOffersSearch
88
99__all__ = ['FlightDates' , 'FlightDestinations' ,
1010 'HotelOffersSearch' , 'HotelOfferSearch' ,
1111 'FlightOffersSearch' , 'Activities' ,
12- 'TransferOffersSearch ' ]
12+ 'TransferOffers ' ]
Original file line number Diff line number Diff line change 11from amadeus .client .decorator import Decorator
22
33
4- class TransferOffersSearch (Decorator , object ):
4+ class TransferOffers (Decorator , object ):
55 def post (self , body ):
66 '''
77 Get transfer offers
88
99 .. code-block:: python
1010
11- amadeus.shopping.transfer_offers_search .post(body)
11+ amadeus.shopping.transfer_offers .post(body)
1212
1313 :param body: the parameters to send to the API
1414
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def test_expected_paths(client):
6767 assert client .duty_of_care is not None
6868 assert client .duty_of_care .diseases .covid19_report is not None
6969 assert client .airline .destinations is not None
70- assert client .shopping .transfer_offers_search is not None
70+ assert client .shopping .transfer_offers is not None
7171 assert client .ordering .transfer_orders is not None
7272 assert client .ordering .transfer_order is not None
7373
@@ -548,8 +548,8 @@ def test_airline_destinations_get(client_setup):
548548 )
549549
550550
551- def test_shopping_transfer_offers_search_post (client_setup ):
552- client_setup .shopping .transfer_offers_search .post ({'foo' : 'bar' })
551+ def test_shopping_transfer_offers_post (client_setup ):
552+ client_setup .shopping .transfer_offers .post ({'foo' : 'bar' })
553553 client_setup .post .assert_called_with (
554554 '/v1/shopping/transfer-offers' , {'foo' : 'bar' }
555555 )
You can’t perform that action at this time.
0 commit comments