@@ -6,14 +6,16 @@ import Seatmaps from './shopping/seatmaps';
66import HotelOffers from './shopping/hotel_offers' ;
77import HotelOffersByHotel from './shopping/hotel_offers_by_hotel' ;
88import HotelOffer from './shopping/hotel_offer' ;
9+ import HotelOfferSearch from './shopping/hotel_offer_search' ;
10+ import HotelOffersSearch from './shopping/hotel_offers_search' ;
911import Activities from './shopping/activities' ;
1012import Activity from './shopping/activity' ;
1113import Availability from './shopping/availability' ;
1214
1315
1416/**
1517 * A namespaced client for the
16- * `/v1/shopping` and `/v2 /shopping` endpoints
18+ * `/v1/shopping`, `/v2/shopping` and `/v3 /shopping` endpoints
1719 *
1820 * Access via the {@link Amadeus} object
1921 *
@@ -31,6 +33,8 @@ import Availability from './shopping/availability';
3133 * @property {HotelOffers } hotelOffers
3234 * @property {HotelOffer } hotelOffer
3335 * @property {HotelOffersByHotel } hotelOffersByHotel
36+ * @property {HotelOfferSearch } hotelOffers
37+ * @property {HotelOffersSearch } hotelOffers
3438 * @property {Availability } availability
3539 */
3640class Shopping {
@@ -43,13 +47,14 @@ class Shopping {
4347 this . seatmaps = new Seatmaps ( client ) ;
4448 this . hotelOffers = new HotelOffers ( client ) ;
4549 this . hotelOffersByHotel = new HotelOffersByHotel ( client ) ;
50+ this . hotelOffersSearch = new HotelOffersSearch ( client ) ;
4651 this . activities = new Activities ( client ) ;
4752 this . availability = new Availability ( client ) ;
4853 }
4954
5055
5156 /**
52- * Loads a namespaced path for a specific offer ID
57+ * Loads a namespaced path for a specific offer ID for Hotel Search V2
5358 *
5459 * @param {string } [offerId] The ID of the offer for a dedicated hotel
5560 * @return {HotelOffer }
@@ -58,6 +63,16 @@ class Shopping {
5863 return new HotelOffer ( this . client , offerId ) ;
5964 }
6065
66+ /**
67+ * Loads a namespaced path for a specific offer ID for Hotel Search V3
68+ *
69+ * @param {string } [offerId] The ID of the offer for a dedicated hotel
70+ * @return {HotelOfferSearch }
71+ **/
72+ hotelOfferSearch ( offerId ) {
73+ return new HotelOfferSearch ( this . client , offerId ) ;
74+ }
75+
6176 /**
6277 * Loads a namespaced path for a specific activity ID
6378 *
0 commit comments