@revolugo/booking-api-client
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -25,2 +25,3 @@ /** | ||
onlyRecommendedHotelOffers?: boolean; | ||
priceHistogramStepCount?: number; | ||
sortBy?: HotelOffersSortByEnum; | ||
@@ -50,2 +51,3 @@ sortByOrder?: HotelOffersSortByOrderEnum; | ||
* @param {boolean} [onlyRecommendedHotelOffers] By default, filtering and sorting of returned **Hotel Offer** list is performed by our own **Search Engine** algorithm in order to maximize conversion rate. 💡 <span style=\"color:green\">When turned on, the endpoint returns a list limited to 10 **Hotel Offers**</span> Set it to **false** in order to disable this feature. | ||
* @param {number} [priceHistogramStepCount] Number of price steps to be included in the returned **price_histogram** dataset. e.g.: \"15\" will return a dataset with 15 price steps. | ||
* @param {'distance' | 'price' | 'rating' | 'review_rating'} [sortBy] Sort the returned **Hotel Offer** list. The sorting feature can only perform sorting based on 1 type whichever specified first. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default). | ||
@@ -52,0 +54,0 @@ * @param {'asc' | 'desc'} [sortByOrder] Sort **Hotel Offer** list in **asc**ending or **desc**ending order. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default). |
@@ -89,2 +89,5 @@ "use strict"; | ||
} | ||
if (requestParameters.priceHistogramStepCount !== undefined) { | ||
queryParameters['price_histogram_step_count'] = requestParameters.priceHistogramStepCount; | ||
} | ||
if (requestParameters.sortBy !== undefined) { | ||
@@ -91,0 +94,0 @@ queryParameters['sort_by'] = requestParameters.sortBy; |
{ | ||
"name": "@revolugo/booking-api-client", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "Javascript Revolugo Booking API Client (browser + server)", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -37,2 +37,3 @@ /* tslint:disable */ | ||
onlyRecommendedHotelOffers?: boolean; | ||
priceHistogramStepCount?: number; | ||
sortBy?: HotelOffersSortByEnum; | ||
@@ -62,2 +63,3 @@ sortByOrder?: HotelOffersSortByOrderEnum; | ||
* @param {boolean} [onlyRecommendedHotelOffers] By default, filtering and sorting of returned **Hotel Offer** list is performed by our own **Search Engine** algorithm in order to maximize conversion rate. 💡 <span style=\"color:green\">When turned on, the endpoint returns a list limited to 10 **Hotel Offers**</span> Set it to **false** in order to disable this feature. | ||
* @param {number} [priceHistogramStepCount] Number of price steps to be included in the returned **price_histogram** dataset. e.g.: \"15\" will return a dataset with 15 price steps. | ||
* @param {'distance' | 'price' | 'rating' | 'review_rating'} [sortBy] Sort the returned **Hotel Offer** list. The sorting feature can only perform sorting based on 1 type whichever specified first. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default). | ||
@@ -121,2 +123,5 @@ * @param {'asc' | 'desc'} [sortByOrder] Sort **Hotel Offer** list in **asc**ending or **desc**ending order. ⚠️ Has no effect when **only_recommended_hotel_offers** = **true** (default). | ||
} | ||
if (requestParameters.priceHistogramStepCount !== undefined) { | ||
queryParameters['price_histogram_step_count'] = requestParameters.priceHistogramStepCount; | ||
} | ||
if (requestParameters.sortBy !== undefined) { | ||
@@ -123,0 +128,0 @@ queryParameters['sort_by'] = requestParameters.sortBy; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1030455
20166