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

travel.wink.sdk.booking.engine.api.ReferenceApi Maven / Gradle / Ivy

There is a newer version: 21.15.1
Show newest version
package travel.wink.sdk.booking.engine.api;

import travel.wink.sdk.booking.engine.invoker.ApiClient;

import travel.wink.sdk.booking.engine.model.CountResponse;
import travel.wink.sdk.booking.engine.model.GenericErrorMessage;
import travel.wink.sdk.booking.engine.model.KeyValuePair;
import travel.wink.sdk.booking.engine.model.Language;
import travel.wink.sdk.booking.engine.model.Oauth2SearchByGeoLocation400Response;
import travel.wink.sdk.booking.engine.model.PageExchangeRateView;
import travel.wink.sdk.booking.engine.model.Quote;

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;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-06-29T13:20:36.800596+07:00[Asia/Bangkok]")
public class ReferenceApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Show all exchange rates
     * Show exchange rates for target currency and all payment-supported currencies.
     * 

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param page The page parameter * @param size The size parameter * @param accept The accept parameter * @return PageExchangeRateView * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAllExchangeRatesRequestCreation(Integer page, Integer size, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'page' is set if (page == null) { throw new WebClientResponseException("Missing the required parameter 'page' when calling showAllExchangeRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'size' is set if (size == null) { throw new WebClientResponseException("Missing the required parameter 'size' when calling showAllExchangeRates", 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, "page", page)); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "size", size)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/fx", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show all exchange rates * Show exchange rates for target currency and all payment-supported currencies. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param page The page parameter * @param size The size parameter * @param accept The accept parameter * @return PageExchangeRateView * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showAllExchangeRates(Integer page, Integer size, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAllExchangeRatesRequestCreation(page, size, accept).bodyToMono(localVarReturnType); } public Mono> showAllExchangeRatesWithHttpInfo(Integer page, Integer size, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAllExchangeRatesRequestCreation(page, size, accept).toEntity(localVarReturnType); } /** * Show OTA codes * Shows payment-supported OTA codes based on given category. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param category Requested OTA code * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAvailableCodesForCategoryRequestCreation(String category, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'category' is set if (category == null) { throw new WebClientResponseException("Missing the required parameter 'category' when calling showAvailableCodesForCategory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("category", category); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/ota/{category}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show OTA codes * Shows payment-supported OTA codes based on given category. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param category Requested OTA code * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showAvailableCodesForCategory(String category, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAvailableCodesForCategoryRequestCreation(category, accept).bodyToFlux(localVarReturnType); } public Mono>> showAvailableCodesForCategoryWithHttpInfo(String category, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAvailableCodesForCategoryRequestCreation(category, accept).toEntityList(localVarReturnType); } /** * Show OTA category codes * Shows payment-supported OTA categories. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showAvailableOtaCategoriesRequestCreation(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 (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/ota/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show OTA category codes * Shows payment-supported OTA categories. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showAvailableOtaCategories(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAvailableOtaCategoriesRequestCreation(accept).bodyToFlux(localVarReturnType); } public Mono>> showAvailableOtaCategoriesWithHttpInfo(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showAvailableOtaCategoriesRequestCreation(accept).toEntityList(localVarReturnType); } /** * Show currencies * List of payment-supported currencies. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @return List<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showCurrenciesRequestCreation() 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(); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/currency/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show currencies * List of payment-supported currencies. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @return List<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showCurrencies() throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showCurrenciesRequestCreation().bodyToFlux(localVarReturnType); } public Mono>> showCurrenciesWithHttpInfo() throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showCurrenciesRequestCreation().toEntityList(localVarReturnType); } /** * Show exchange rate * Show exchange rate between target and source currency *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param sourceCurrency The sourceCurrency parameter * @param targetCurrency The targetCurrency parameter * @return Quote * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showExchangeRateRequestCreation(String sourceCurrency, String targetCurrency) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'sourceCurrency' is set if (sourceCurrency == null) { throw new WebClientResponseException("Missing the required parameter 'sourceCurrency' when calling showExchangeRate", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'targetCurrency' is set if (targetCurrency == null) { throw new WebClientResponseException("Missing the required parameter 'targetCurrency' when calling showExchangeRate", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("sourceCurrency", sourceCurrency); pathParams.put("targetCurrency", targetCurrency); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/fx/{sourceCurrency}/{targetCurrency}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show exchange rate * Show exchange rate between target and source currency *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param sourceCurrency The sourceCurrency parameter * @param targetCurrency The targetCurrency parameter * @return Quote * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showExchangeRate(String sourceCurrency, String targetCurrency) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showExchangeRateRequestCreation(sourceCurrency, targetCurrency).bodyToMono(localVarReturnType); } public Mono> showExchangeRateWithHttpInfo(String sourceCurrency, String targetCurrency) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showExchangeRateRequestCreation(sourceCurrency, targetCurrency).toEntity(localVarReturnType); } /** * Show exchange rates count * Returns a count of number of quotes available. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return CountResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showExchangeRateCountRequestCreation(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 (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/fx/count", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show exchange rates count * Returns a count of number of quotes available. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return CountResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showExchangeRateCount(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showExchangeRateCountRequestCreation(accept).bodyToMono(localVarReturnType); } public Mono> showExchangeRateCountWithHttpInfo(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showExchangeRateCountRequestCreation(accept).toEntity(localVarReturnType); } /** * Show exchange rates * Show exchange rates for target currency and all payment-supported currencies. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param currency The currency parameter * @return List<Quote> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showExchangeRateForTargetCurrencyRequestCreation(String currency) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'currency' is set if (currency == null) { throw new WebClientResponseException("Missing the required parameter 'currency' when calling showExchangeRateForTargetCurrency", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("currency", currency); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/fx/{currency}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show exchange rates * Show exchange rates for target currency and all payment-supported currencies. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param currency The currency parameter * @return List<Quote> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showExchangeRateForTargetCurrency(String currency) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showExchangeRateForTargetCurrencyRequestCreation(currency).bodyToFlux(localVarReturnType); } public Mono>> showExchangeRateForTargetCurrencyWithHttpInfo(String currency) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showExchangeRateForTargetCurrencyRequestCreation(currency).toEntityList(localVarReturnType); } /** * Hotel Name Search * Search for property by name. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param name The name parameter * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelNamesRequestCreation(String name, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'name' is set if (name == null) { throw new WebClientResponseException("Missing the required parameter 'name' when calling showHotelNames", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("name", name); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/lookup/hotel/{name}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Hotel Name Search * Search for property by name. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param name The name parameter * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showHotelNames(String name, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelNamesRequestCreation(name, accept).bodyToFlux(localVarReturnType); } public Mono>> showHotelNamesWithHttpInfo(String name, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelNamesRequestCreation(name, accept).toEntityList(localVarReturnType); } /** * * *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @return List<Language> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showLanguagesRequestCreation() 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(); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/language/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * * *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @return List<Language> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showLanguages() throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showLanguagesRequestCreation().bodyToFlux(localVarReturnType); } public Mono>> showLanguagesWithHttpInfo() throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showLanguagesRequestCreation().toEntityList(localVarReturnType); } /** * Show Lifestyles * Retrieve list of all supported lifestyles indicated by an array of key / value pairs. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showLifestylesRequestCreation(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 (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/lifestyle/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Lifestyles * Retrieve list of all supported lifestyles indicated by an array of key / value pairs. *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showLifestyles(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showLifestylesRequestCreation(accept).bodyToFlux(localVarReturnType); } public Mono>> showLifestylesWithHttpInfo(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showLifestylesRequestCreation(accept).toEntityList(localVarReturnType); } /** * Show Perks * Retrieve list of perks *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showPerksRequestCreation(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 (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/perk/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Perks * Retrieve list of perks *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showPerks(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPerksRequestCreation(accept).bodyToFlux(localVarReturnType); } public Mono>> showPerksWithHttpInfo(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPerksRequestCreation(accept).toEntityList(localVarReturnType); } /** * Show Social Networks * Retrieve list of all supported social networks *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showSocialNetworksRequestCreation(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 (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/vnd.platform-v1+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[] { "oauth2_client_credentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/refdata/social/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Social Networks * Retrieve list of all supported social networks *

405 - Method Not Allowed *

415 - Unsupported Media Type *

400 - Bad Request *

403 - Forbidden *

401 - Unauthorized *

500 - Internal Server Error *

404 - Not Found *

503 - Service Unavailable *

200 - OK * @param accept The accept parameter * @return List<KeyValuePair> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showSocialNetworks(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSocialNetworksRequestCreation(accept).bodyToFlux(localVarReturnType); } public Mono>> showSocialNetworksWithHttpInfo(String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSocialNetworksRequestCreation(accept).toEntityList(localVarReturnType); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy