All Downloads are FREE. Search and download functionalities are using the official Maven repository.

travel.wink.sdk.lookup.api.LookupApi Maven / Gradle / Ivy

package travel.wink.sdk.lookup.api;

import travel.wink.sdk.lookup.invoker.ApiClient;

import travel.wink.sdk.lookup.model.CityScoreRequestNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.CitySearchRequestNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.CountryScoreRequestNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.GenericErrorMessage;
import travel.wink.sdk.lookup.model.GlobalScoreRequestNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.HotelPerCountryCountNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.LookupCachedNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.LookupNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.MapRequestNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.PageHotelWithBestPriceNonAuthenticatedEntity;
import travel.wink.sdk.lookup.model.SearchByGeoLocation400Response;

import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-15T11:59:59.099471418+07:00[Asia/Bangkok]")
public class LookupApi {
    private ApiClient apiClient;

    public LookupApi() {
        this(new ApiClient());
    }

    @Autowired
    public LookupApi(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return apiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    /**
     * Ranked City Search (OAuth2)
     * Search for hotels in / around a city and order by scoring type
     * 

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2ScoreInventoryByCityRequestCreation(CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = cityScoreRequestNonAuthenticatedEntity; // verify the required parameter 'cityScoreRequestNonAuthenticatedEntity' is set if (cityScoreRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'cityScoreRequestNonAuthenticatedEntity' when calling oauth2ScoreInventoryByCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/ranked/search/city", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Ranked City Search (OAuth2) * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono oauth2ScoreInventoryByCity(CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2ScoreInventoryByCityRequestCreation(cityScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Ranked City Search (OAuth2) * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> oauth2ScoreInventoryByCityWithHttpInfo(CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2ScoreInventoryByCityRequestCreation(cityScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Ranked City Search (OAuth2) * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2ScoreInventoryByCityWithResponseSpec(CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return oauth2ScoreInventoryByCityRequestCreation(cityScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * By Geo-Location (OAuth2) * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2SearchByGeoLocationRequestCreation(MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = mapRequestNonAuthenticatedEntity; // verify the required parameter 'mapRequestNonAuthenticatedEntity' is set if (mapRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'mapRequestNonAuthenticatedEntity' when calling oauth2SearchByGeoLocation", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/search/geo", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * By Geo-Location (OAuth2) * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono oauth2SearchByGeoLocation(MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchByGeoLocationRequestCreation(mapRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * By Geo-Location (OAuth2) * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> oauth2SearchByGeoLocationWithHttpInfo(MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchByGeoLocationRequestCreation(mapRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * By Geo-Location (OAuth2) * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2SearchByGeoLocationWithResponseSpec(MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return oauth2SearchByGeoLocationRequestCreation(mapRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * City Search (OAuth2) * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2SearchInventoryByCityRequestCreation(CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = citySearchRequestNonAuthenticatedEntity; // verify the required parameter 'citySearchRequestNonAuthenticatedEntity' is set if (citySearchRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'citySearchRequestNonAuthenticatedEntity' when calling oauth2SearchInventoryByCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/search/city", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * City Search (OAuth2) * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono oauth2SearchInventoryByCity(CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchInventoryByCityRequestCreation(citySearchRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * City Search (OAuth2) * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> oauth2SearchInventoryByCityWithHttpInfo(CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchInventoryByCityRequestCreation(citySearchRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * City Search (OAuth2) * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2SearchInventoryByCityWithResponseSpec(CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return oauth2SearchInventoryByCityRequestCreation(citySearchRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * Ranked Country Search (OAuth2) * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2SearchScoreByCountryRequestCreation(CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = countryScoreRequestNonAuthenticatedEntity; // verify the required parameter 'countryScoreRequestNonAuthenticatedEntity' is set if (countryScoreRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'countryScoreRequestNonAuthenticatedEntity' when calling oauth2SearchScoreByCountry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/ranked/search/country", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Ranked Country Search (OAuth2) * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono oauth2SearchScoreByCountry(CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchScoreByCountryRequestCreation(countryScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Ranked Country Search (OAuth2) * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> oauth2SearchScoreByCountryWithHttpInfo(CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchScoreByCountryRequestCreation(countryScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Ranked Country Search (OAuth2) * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2SearchScoreByCountryWithResponseSpec(CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return oauth2SearchScoreByCountryRequestCreation(countryScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * Ranked Global Search (OAuth2) * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2SearchScoreByGlobalRequestCreation(GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = globalScoreRequestNonAuthenticatedEntity; // verify the required parameter 'globalScoreRequestNonAuthenticatedEntity' is set if (globalScoreRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'globalScoreRequestNonAuthenticatedEntity' when calling oauth2SearchScoreByGlobal", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/ranked/search/global", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Ranked Global Search (OAuth2) * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono oauth2SearchScoreByGlobal(GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchScoreByGlobalRequestCreation(globalScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Ranked Global Search (OAuth2) * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> oauth2SearchScoreByGlobalWithHttpInfo(GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchScoreByGlobalRequestCreation(globalScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Ranked Global Search (OAuth2) * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2SearchScoreByGlobalWithResponseSpec(GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return oauth2SearchScoreByGlobalRequestCreation(globalScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * Search Lookups (OAuth2) * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<LookupCachedNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2SearchSuggestionsRequestCreation(String term, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'term' is set if (term == null) { throw new WebClientResponseException("Missing the required parameter 'term' when calling oauth2SearchSuggestions", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "term", term)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/search", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Search Lookups (OAuth2) * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<LookupCachedNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux oauth2SearchSuggestions(String term, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchSuggestionsRequestCreation(term, winkVersion, accept).bodyToFlux(localVarReturnType); } /** * Search Lookups (OAuth2) * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<LookupCachedNonAuthenticatedEntity>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> oauth2SearchSuggestionsWithHttpInfo(String term, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2SearchSuggestionsRequestCreation(term, winkVersion, accept).toEntityList(localVarReturnType); } /** * Search Lookups (OAuth2) * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2SearchSuggestionsWithResponseSpec(String term, String winkVersion, String accept) throws WebClientResponseException { return oauth2SearchSuggestionsRequestCreation(term, winkVersion, accept); } /** * Show Lookup (OAuth2) * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return LookupNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec oauth2ShowLookupRequestCreation(String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'urlName' is set if (urlName == null) { throw new WebClientResponseException("Missing the required parameter 'urlName' when calling oauth2ShowLookup", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'type' is set if (type == null) { throw new WebClientResponseException("Missing the required parameter 'type' when calling oauth2ShowLookup", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("urlName", urlName); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "type", type)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/lookup/{urlName}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Lookup (OAuth2) * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return LookupNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono oauth2ShowLookup(String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2ShowLookupRequestCreation(urlName, type, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Lookup (OAuth2) * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<LookupNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> oauth2ShowLookupWithHttpInfo(String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return oauth2ShowLookupRequestCreation(urlName, type, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Lookup (OAuth2) * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec oauth2ShowLookupWithResponseSpec(String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { return oauth2ShowLookupRequestCreation(urlName, type, winkVersion, accept); } /** * Ranked City Search * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec scoreInventoryByCityRequestCreation(String companyIdentifier, CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = cityScoreRequestNonAuthenticatedEntity; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling scoreInventoryByCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'cityScoreRequestNonAuthenticatedEntity' is set if (cityScoreRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'cityScoreRequestNonAuthenticatedEntity' when calling scoreInventoryByCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/ranked/search/city", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Ranked City Search * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono scoreInventoryByCity(String companyIdentifier, CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return scoreInventoryByCityRequestCreation(companyIdentifier, cityScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Ranked City Search * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> scoreInventoryByCityWithHttpInfo(String companyIdentifier, CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return scoreInventoryByCityRequestCreation(companyIdentifier, cityScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Ranked City Search * Search for hotels in / around a city and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param cityScoreRequestNonAuthenticatedEntity The cityScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec scoreInventoryByCityWithResponseSpec(String companyIdentifier, CityScoreRequestNonAuthenticatedEntity cityScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return scoreInventoryByCityRequestCreation(companyIdentifier, cityScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * By Geo-Location * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec searchByGeoLocationRequestCreation(String companyIdentifier, MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = mapRequestNonAuthenticatedEntity; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling searchByGeoLocation", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'mapRequestNonAuthenticatedEntity' is set if (mapRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'mapRequestNonAuthenticatedEntity' when calling searchByGeoLocation", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/search/geo", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * By Geo-Location * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono searchByGeoLocation(String companyIdentifier, MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchByGeoLocationRequestCreation(companyIdentifier, mapRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * By Geo-Location * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> searchByGeoLocationWithHttpInfo(String companyIdentifier, MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchByGeoLocationRequestCreation(companyIdentifier, mapRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * By Geo-Location * Search for properties near a point or within bounds. Populate either `request.userSession.location` OR `request.userSession.bounds`. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param mapRequestNonAuthenticatedEntity The mapRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec searchByGeoLocationWithResponseSpec(String companyIdentifier, MapRequestNonAuthenticatedEntity mapRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return searchByGeoLocationRequestCreation(companyIdentifier, mapRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * City Search * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec searchInventoryByCityRequestCreation(String companyIdentifier, CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = citySearchRequestNonAuthenticatedEntity; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling searchInventoryByCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'citySearchRequestNonAuthenticatedEntity' is set if (citySearchRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'citySearchRequestNonAuthenticatedEntity' when calling searchInventoryByCity", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/search/city", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * City Search * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono searchInventoryByCity(String companyIdentifier, CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchInventoryByCityRequestCreation(companyIdentifier, citySearchRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * City Search * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> searchInventoryByCityWithHttpInfo(String companyIdentifier, CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchInventoryByCityRequestCreation(companyIdentifier, citySearchRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * City Search * Search for hotels in / around a city *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param citySearchRequestNonAuthenticatedEntity The citySearchRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec searchInventoryByCityWithResponseSpec(String companyIdentifier, CitySearchRequestNonAuthenticatedEntity citySearchRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return searchInventoryByCityRequestCreation(companyIdentifier, citySearchRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * Ranked Country Search * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec searchScoreByCountryRequestCreation(String companyIdentifier, CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = countryScoreRequestNonAuthenticatedEntity; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling searchScoreByCountry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'countryScoreRequestNonAuthenticatedEntity' is set if (countryScoreRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'countryScoreRequestNonAuthenticatedEntity' when calling searchScoreByCountry", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/ranked/search/country", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Ranked Country Search * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono searchScoreByCountry(String companyIdentifier, CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchScoreByCountryRequestCreation(companyIdentifier, countryScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Ranked Country Search * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> searchScoreByCountryWithHttpInfo(String companyIdentifier, CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchScoreByCountryRequestCreation(companyIdentifier, countryScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Ranked Country Search * Search for hotels in a country and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param countryScoreRequestNonAuthenticatedEntity The countryScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec searchScoreByCountryWithResponseSpec(String companyIdentifier, CountryScoreRequestNonAuthenticatedEntity countryScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return searchScoreByCountryRequestCreation(companyIdentifier, countryScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * Ranked Global Search * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec searchScoreByGlobalRequestCreation(String companyIdentifier, GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = globalScoreRequestNonAuthenticatedEntity; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling searchScoreByGlobal", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'globalScoreRequestNonAuthenticatedEntity' is set if (globalScoreRequestNonAuthenticatedEntity == null) { throw new WebClientResponseException("Missing the required parameter 'globalScoreRequestNonAuthenticatedEntity' when calling searchScoreByGlobal", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/ranked/search/global", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Ranked Global Search * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return PageHotelWithBestPriceNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono searchScoreByGlobal(String companyIdentifier, GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchScoreByGlobalRequestCreation(companyIdentifier, globalScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Ranked Global Search * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<PageHotelWithBestPriceNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> searchScoreByGlobalWithHttpInfo(String companyIdentifier, GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchScoreByGlobalRequestCreation(companyIdentifier, globalScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Ranked Global Search * Search best scoring hotels in the world and order by scoring type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param globalScoreRequestNonAuthenticatedEntity The globalScoreRequestNonAuthenticatedEntity parameter * @param engineConfigurationIdentifier Engine configuration identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec searchScoreByGlobalWithResponseSpec(String companyIdentifier, GlobalScoreRequestNonAuthenticatedEntity globalScoreRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException { return searchScoreByGlobalRequestCreation(companyIdentifier, globalScoreRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept); } /** * Search Lookups * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<LookupCachedNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec searchSuggestionsRequestCreation(String companyIdentifier, String term, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling searchSuggestions", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'term' is set if (term == null) { throw new WebClientResponseException("Missing the required parameter 'term' when calling searchSuggestions", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "term", term)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/search", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Search Lookups * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<LookupCachedNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux searchSuggestions(String companyIdentifier, String term, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchSuggestionsRequestCreation(companyIdentifier, term, winkVersion, accept).bodyToFlux(localVarReturnType); } /** * Search Lookups * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<LookupCachedNonAuthenticatedEntity>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> searchSuggestionsWithHttpInfo(String companyIdentifier, String term, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return searchSuggestionsRequestCreation(companyIdentifier, term, winkVersion, accept).toEntityList(localVarReturnType); } /** * Search Lookups * Searches for hotels, cities or countries by the search term. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param term Search for lookups by this term * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec searchSuggestionsWithResponseSpec(String companyIdentifier, String term, String winkVersion, String accept) throws WebClientResponseException { return searchSuggestionsRequestCreation(companyIdentifier, term, winkVersion, accept); } /** * Aggregate Properties by Country * Show property count by country. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<HotelPerCountryCountNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelAggregatePerCountryRequestCreation(String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/aggregate-per-country", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Aggregate Properties by Country * Show property count by country. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<HotelPerCountryCountNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showHotelAggregatePerCountry(String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelAggregatePerCountryRequestCreation(winkVersion, accept).bodyToFlux(localVarReturnType); } /** * Aggregate Properties by Country * Show property count by country. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<HotelPerCountryCountNonAuthenticatedEntity>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showHotelAggregatePerCountryWithHttpInfo(String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelAggregatePerCountryRequestCreation(winkVersion, accept).toEntityList(localVarReturnType); } /** * Aggregate Properties by Country * Show property count by country. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showHotelAggregatePerCountryWithResponseSpec(String winkVersion, String accept) throws WebClientResponseException { return showHotelAggregatePerCountryRequestCreation(winkVersion, accept); } /** * Show Lookup * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return LookupNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showLookupRequestCreation(String companyIdentifier, String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'companyIdentifier' is set if (companyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'companyIdentifier' when calling showLookup", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'urlName' is set if (urlName == null) { throw new WebClientResponseException("Missing the required parameter 'urlName' when calling showLookup", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'type' is set if (type == null) { throw new WebClientResponseException("Missing the required parameter 'type' when calling showLookup", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("companyIdentifier", companyIdentifier); pathParams.put("urlName", urlName); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "type", type)); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/sell/{companyIdentifier}/lookup/{urlName}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Lookup * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return LookupNonAuthenticatedEntity * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showLookup(String companyIdentifier, String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showLookupRequestCreation(companyIdentifier, urlName, type, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Lookup * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<LookupNonAuthenticatedEntity> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showLookupWithHttpInfo(String companyIdentifier, String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showLookupRequestCreation(companyIdentifier, urlName, type, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Lookup * Show lookup object by its unique url name. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param companyIdentifier Affiliate account identifier * @param urlName Show lookup by unique url name * @param type Filter on type * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showLookupWithResponseSpec(String companyIdentifier, String urlName, String type, String winkVersion, String accept) throws WebClientResponseException { return showLookupRequestCreation(companyIdentifier, urlName, type, winkVersion, accept); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy