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

travel.wink.sdk.extranet.api.InventoryApi Maven / Gradle / Ivy

There is a newer version: 30.2.1
Show newest version
package travel.wink.sdk.extranet.api;

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

import travel.wink.sdk.extranet.model.GenericErrorMessage;
import travel.wink.sdk.extranet.model.InventorySupplier;
import travel.wink.sdk.extranet.model.InventoryUpdateRequestSupplier;
import travel.wink.sdk.extranet.model.KeyValuePairSupplier;
import travel.wink.sdk.extranet.model.PageInventorySupplier;
import travel.wink.sdk.extranet.model.SelectableKeyValuePairSupplier;
import travel.wink.sdk.extranet.model.ShowPropertyPolicy400Response;
import travel.wink.sdk.extranet.model.StateSupplier;

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-06-04T22:29:13.908295668+07:00[Asia/Bangkok]")
public class InventoryApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Show activity inventory list
     * Retrieve list of activities for specified property
     * 

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelActivitiesRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelActivities", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/activity/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show activity inventory list * Retrieve list of activities for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelActivities(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelActivitiesRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show activity inventory list * Retrieve list of activities for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelActivitiesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelActivitiesRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show activity inventory list * Retrieve list of activities for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelActivitiesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelActivitiesRequestCreation(hotelIdentifier, winkVersion); } /** * Show add-on inventory list * Retrieve list of addons for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelAddOnsRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelAddOns", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/addon/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show add-on inventory list * Retrieve list of addons for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelAddOns(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelAddOnsRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show add-on inventory list * Retrieve list of addons for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelAddOnsWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelAddOnsRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show add-on inventory list * Retrieve list of addons for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelAddOnsWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelAddOnsRequestCreation(hotelIdentifier, winkVersion); } /** * Show attraction inventory list * Retrieve list of attractions for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelAttractionsRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelAttractions", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/attraction/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show attraction inventory list * Retrieve list of attractions for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelAttractions(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelAttractionsRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show attraction inventory list * Retrieve list of attractions for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelAttractionsWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelAttractionsRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show attraction inventory list * Retrieve list of attractions for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelAttractionsWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelAttractionsRequestCreation(hotelIdentifier, winkVersion); } /** * Show meeting room inventory list * Retrieve list of meeting room names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelMeetingRoomsRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelMeetingRooms", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/meetingroom/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show meeting room inventory list * Retrieve list of meeting room names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelMeetingRooms(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelMeetingRoomsRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show meeting room inventory list * Retrieve list of meeting room names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelMeetingRoomsWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelMeetingRoomsRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show meeting room inventory list * Retrieve list of meeting room names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelMeetingRoomsWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelMeetingRoomsRequestCreation(hotelIdentifier, winkVersion); } /** * Show place inventory list * Retrieve list of places for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelPlacesRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelPlaces", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/place/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show place inventory list * Retrieve list of places for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelPlaces(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelPlacesRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show place inventory list * Retrieve list of places for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelPlacesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelPlacesRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show place inventory list * Retrieve list of places for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelPlacesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelPlacesRequestCreation(hotelIdentifier, winkVersion); } /** * Show restaurant inventory list * Retrieve list of restaurants for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelRestaurantsRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelRestaurants", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/restaurant/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show restaurant inventory list * Retrieve list of restaurants for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelRestaurants(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelRestaurantsRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show restaurant inventory list * Retrieve list of restaurants for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelRestaurantsWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelRestaurantsRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show restaurant inventory list * Retrieve list of restaurants for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelRestaurantsWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelRestaurantsRequestCreation(hotelIdentifier, winkVersion); } /** * Show spa inventory list * Retrieve list of spas for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showChannelSpasRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannelSpas", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/spa/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show spa inventory list * Retrieve list of spas for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showChannelSpas(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelSpasRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show spa inventory list * Retrieve list of spas for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showChannelSpasWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showChannelSpasRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show spa inventory list * Retrieve list of spas for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showChannelSpasWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showChannelSpasRequestCreation(hotelIdentifier, winkVersion); } /** * Show inventory * Retrieve inventory specified by identifier *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return InventorySupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showInventoryRequestCreation(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'inventoryIdentifier' is set if (inventoryIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'inventoryIdentifier' when calling showInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); pathParams.put("inventoryIdentifier", inventoryIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/{inventoryIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show inventory * Retrieve inventory specified by identifier *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return InventorySupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showInventory(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showInventoryRequestCreation(hotelIdentifier, inventoryIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Show inventory * Retrieve inventory specified by identifier *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<InventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showInventoryWithHttpInfo(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showInventoryRequestCreation(hotelIdentifier, inventoryIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show inventory * Retrieve inventory specified by identifier *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showInventoryWithResponseSpec(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { return showInventoryRequestCreation(hotelIdentifier, inventoryIdentifier, winkVersion); } /** * Show inventory list * Retrieve list of inventory for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<InventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showInventoryListRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showInventoryList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show inventory list * Retrieve list of inventory for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<InventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showInventoryList(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showInventoryListRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show inventory list * Retrieve list of inventory for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<InventorySupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showInventoryListWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showInventoryListRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show inventory list * Retrieve list of inventory for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showInventoryListWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showInventoryListRequestCreation(hotelIdentifier, winkVersion); } /** * Show inventory names * Retrieve list of unique inventory names for chosen property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showInventoryNamesRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showInventoryNames", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/name/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show inventory names * Retrieve list of unique inventory names for chosen property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showInventoryNames(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {}; return showInventoryNamesRequestCreation(hotelIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Show inventory names * Retrieve list of unique inventory names for chosen property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<String>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showInventoryNamesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {}; return showInventoryNamesRequestCreation(hotelIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show inventory names * Retrieve list of unique inventory names for chosen property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showInventoryNamesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showInventoryNamesRequestCreation(hotelIdentifier, winkVersion); } /** * Show all inventory types * Retrieve array of all inventory types. E.g. ['GUEST_ROOM', 'MEETING_ROOM']. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The property ID to retrieve inventory types for * @param winkVersion The winkVersion parameter * @return List<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showInventoryTypesRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showInventoryTypes", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/type/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show all inventory types * Retrieve array of all inventory types. E.g. ['GUEST_ROOM', 'MEETING_ROOM']. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The property ID to retrieve inventory types for * @param winkVersion The winkVersion parameter * @return List<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showInventoryTypes(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {}; return showInventoryTypesRequestCreation(hotelIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Show all inventory types * Retrieve array of all inventory types. E.g. ['GUEST_ROOM', 'MEETING_ROOM']. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The property ID to retrieve inventory types for * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<String>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showInventoryTypesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference>() {}; return showInventoryTypesRequestCreation(hotelIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show all inventory types * Retrieve array of all inventory types. E.g. ['GUEST_ROOM', 'MEETING_ROOM']. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The property ID to retrieve inventory types for * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showInventoryTypesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showInventoryTypesRequestCreation(hotelIdentifier, winkVersion); } /** * Show master rates inventory list * Retrieve list of master rate names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showMasterRatesRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showMasterRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/guestroom/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show master rates inventory list * Retrieve list of master rate names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showMasterRates(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showMasterRatesRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show master rates inventory list * Retrieve list of master rate names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showMasterRatesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showMasterRatesRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show master rates inventory list * Retrieve list of master rate names for specified property *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showMasterRatesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showMasterRatesRequestCreation(hotelIdentifier, winkVersion); } /** * Show pageable inventory * Retrieve page of inventory for specified property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return PageInventorySupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showPageableChannelInventoryRequestCreation(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { Object postBody = stateSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showPageableChannelInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'stateSupplier' is set if (stateSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'stateSupplier' when calling showPageableChannelInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show pageable inventory * Retrieve page of inventory for specified property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return PageInventorySupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showPageableChannelInventory(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPageableChannelInventoryRequestCreation(hotelIdentifier, stateSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Show pageable inventory * Retrieve page of inventory for specified property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<PageInventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showPageableChannelInventoryWithHttpInfo(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showPageableChannelInventoryRequestCreation(hotelIdentifier, stateSupplier, winkVersion).toEntity(localVarReturnType); } /** * Show pageable inventory * Retrieve page of inventory for specified property. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showPageableChannelInventoryWithResponseSpec(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { return showPageableChannelInventoryRequestCreation(hotelIdentifier, stateSupplier, winkVersion); } /** * Show inventory as Channels * Retrieve list of inventory specified by inventory identifier. The list will contain the same inventory available to different sales channels. E.g. Inventory A for Seller A. Inventory A for Seller B etc. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<SelectableKeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showSalesChannelListByInventoryRequestCreation(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showSalesChannelListByInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'inventoryIdentifier' is set if (inventoryIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'inventoryIdentifier' when calling showSalesChannelListByInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); pathParams.put("inventoryIdentifier", inventoryIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/{inventoryIdentifier}/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show inventory as Channels * Retrieve list of inventory specified by inventory identifier. The list will contain the same inventory available to different sales channels. E.g. Inventory A for Seller A. Inventory A for Seller B etc. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return List<SelectableKeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showSalesChannelListByInventory(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSalesChannelListByInventoryRequestCreation(hotelIdentifier, inventoryIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show inventory as Channels * Retrieve list of inventory specified by inventory identifier. The list will contain the same inventory available to different sales channels. E.g. Inventory A for Seller A. Inventory A for Seller B etc. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<SelectableKeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showSalesChannelListByInventoryWithHttpInfo(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showSalesChannelListByInventoryRequestCreation(hotelIdentifier, inventoryIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show inventory as Channels * Retrieve list of inventory specified by inventory identifier. The list will contain the same inventory available to different sales channels. E.g. Inventory A for Seller A. Inventory A for Seller B etc. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showSalesChannelListByInventoryWithResponseSpec(String hotelIdentifier, String inventoryIdentifier, String winkVersion) throws WebClientResponseException { return showSalesChannelListByInventoryRequestCreation(hotelIdentifier, inventoryIdentifier, winkVersion); } /** * Update inventory * Toggle inventory availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return InventorySupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec toggleInventoryAvailabilityRequestCreation(String hotelIdentifier, String inventoryIdentifier, InventoryUpdateRequestSupplier inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = inventoryUpdateRequestSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling toggleInventoryAvailability", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'inventoryIdentifier' is set if (inventoryIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'inventoryIdentifier' when calling toggleInventoryAvailability", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'inventoryUpdateRequestSupplier' is set if (inventoryUpdateRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'inventoryUpdateRequestSupplier' when calling toggleInventoryAvailability", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); pathParams.put("inventoryIdentifier", inventoryIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/{inventoryIdentifier}", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update inventory * Toggle inventory availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return InventorySupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono toggleInventoryAvailability(String hotelIdentifier, String inventoryIdentifier, InventoryUpdateRequestSupplier inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return toggleInventoryAvailabilityRequestCreation(hotelIdentifier, inventoryIdentifier, inventoryUpdateRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Update inventory * Toggle inventory availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<InventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> toggleInventoryAvailabilityWithHttpInfo(String hotelIdentifier, String inventoryIdentifier, InventoryUpdateRequestSupplier inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return toggleInventoryAvailabilityRequestCreation(hotelIdentifier, inventoryIdentifier, inventoryUpdateRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Update inventory * Toggle inventory availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryIdentifier The inventoryIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec toggleInventoryAvailabilityWithResponseSpec(String hotelIdentifier, String inventoryIdentifier, InventoryUpdateRequestSupplier inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { return toggleInventoryAvailabilityRequestCreation(hotelIdentifier, inventoryIdentifier, inventoryUpdateRequestSupplier, winkVersion); } /** * Update inventory list * Toggle inventory list availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return List<InventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec toggleInventoryListAvailabilityRequestCreation(String hotelIdentifier, List inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = inventoryUpdateRequestSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling toggleInventoryListAvailability", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'inventoryUpdateRequestSupplier' is set if (inventoryUpdateRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'inventoryUpdateRequestSupplier' when calling toggleInventoryListAvailability", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("hotelIdentifier", hotelIdentifier); 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)); 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/hotel/{hotelIdentifier}/sales/inventory/list", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update inventory list * Toggle inventory list availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return List<InventorySupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux toggleInventoryListAvailability(String hotelIdentifier, List inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return toggleInventoryListAvailabilityRequestCreation(hotelIdentifier, inventoryUpdateRequestSupplier, winkVersion).bodyToFlux(localVarReturnType); } /** * Update inventory list * Toggle inventory list availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<InventorySupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> toggleInventoryListAvailabilityWithHttpInfo(String hotelIdentifier, List inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return toggleInventoryListAvailabilityRequestCreation(hotelIdentifier, inventoryUpdateRequestSupplier, winkVersion).toEntityList(localVarReturnType); } /** * Update inventory list * Toggle inventory list availability. Only used to enable / disable inventory. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier The hotelIdentifier parameter * @param inventoryUpdateRequestSupplier The inventoryUpdateRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec toggleInventoryListAvailabilityWithResponseSpec(String hotelIdentifier, List inventoryUpdateRequestSupplier, String winkVersion) throws WebClientResponseException { return toggleInventoryListAvailabilityRequestCreation(hotelIdentifier, inventoryUpdateRequestSupplier, winkVersion); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy