travel.wink.sdk.inventory.api.InventoryApi Maven / Gradle / Ivy
Show all versions of inventory-sdk-java Show documentation
package travel.wink.sdk.inventory.api;
import travel.wink.sdk.inventory.invoker.ApiClient;
import travel.wink.sdk.inventory.model.AggregateActivityRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateAddOnRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateAttractionRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateGuestRoomRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateHotelRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateInventoryGridItemRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateMeetingRoomRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregatePlaceRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateRestaurantRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateSellerInventoryListRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateSpaRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.ConsumerDataMapNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.GenericErrorMessage;
import travel.wink.sdk.inventory.model.HotelInventoryListRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.HotelInventoryListResponseNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.HotelInventoryRequestNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.HotelInventoryResponseNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.InventoryGridItemNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.InventoryUnavailableNotificationNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.Oauth2ShowConsumableUrl400Response;
import travel.wink.sdk.inventory.model.SellerInventoryActivityNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryAddOnNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryAttractionNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryGuestRoomNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryHotelNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryListResponseNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryMeetingRoomNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryPlaceNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryRankedListResponseNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventoryRestaurantNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SellerInventorySpaNonAuthenticatedEntity;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-28T11:54:35.134126621+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;
}
/**
* Lacks Inventory
* Notify property that there is a demand but no supply for a specified inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param inventoryUnavailableNotificationNonAuthenticatedEntity The inventoryUnavailableNotificationNonAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return InventoryUnavailableNotificationNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec notifyPropertyRequestCreation(InventoryUnavailableNotificationNonAuthenticatedEntity inventoryUnavailableNotificationNonAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
Object postBody = inventoryUnavailableNotificationNonAuthenticatedEntity;
// verify the required parameter 'inventoryUnavailableNotificationNonAuthenticatedEntity' is set
if (inventoryUnavailableNotificationNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'inventoryUnavailableNotificationNonAuthenticatedEntity' when calling notifyProperty", 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();
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/inventory/unavailable", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Lacks Inventory
* Notify property that there is a demand but no supply for a specified inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param inventoryUnavailableNotificationNonAuthenticatedEntity The inventoryUnavailableNotificationNonAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return InventoryUnavailableNotificationNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono notifyProperty(InventoryUnavailableNotificationNonAuthenticatedEntity inventoryUnavailableNotificationNonAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return notifyPropertyRequestCreation(inventoryUnavailableNotificationNonAuthenticatedEntity, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Lacks Inventory
* Notify property that there is a demand but no supply for a specified inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param inventoryUnavailableNotificationNonAuthenticatedEntity The inventoryUnavailableNotificationNonAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<InventoryUnavailableNotificationNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> notifyPropertyWithHttpInfo(InventoryUnavailableNotificationNonAuthenticatedEntity inventoryUnavailableNotificationNonAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return notifyPropertyRequestCreation(inventoryUnavailableNotificationNonAuthenticatedEntity, winkVersion).toEntity(localVarReturnType);
}
/**
* Lacks Inventory
* Notify property that there is a demand but no supply for a specified inventory.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
201 - Created
* @param inventoryUnavailableNotificationNonAuthenticatedEntity The inventoryUnavailableNotificationNonAuthenticatedEntity parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec notifyPropertyWithResponseSpec(InventoryUnavailableNotificationNonAuthenticatedEntity inventoryUnavailableNotificationNonAuthenticatedEntity, String winkVersion) throws WebClientResponseException {
return notifyPropertyRequestCreation(inventoryUnavailableNotificationNonAuthenticatedEntity, winkVersion);
}
/**
* Show Inventory Grid Item (OAuth2)
* Shows single grid based on channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateInventoryGridItemRequestNonAuthenticatedEntity The aggregateInventoryGridItemRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryGridItemNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowInventoryGridItemRequestCreation(AggregateInventoryGridItemRequestNonAuthenticatedEntity aggregateInventoryGridItemRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateInventoryGridItemRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateInventoryGridItemRequestNonAuthenticatedEntity' is set
if (aggregateInventoryGridItemRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateInventoryGridItemRequestNonAuthenticatedEntity' when calling oauth2ShowInventoryGridItem", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/inventory/grid/item", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Inventory Grid Item (OAuth2)
* Shows single grid based on channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateInventoryGridItemRequestNonAuthenticatedEntity The aggregateInventoryGridItemRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryGridItemNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowInventoryGridItem(AggregateInventoryGridItemRequestNonAuthenticatedEntity aggregateInventoryGridItemRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowInventoryGridItemRequestCreation(aggregateInventoryGridItemRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Inventory Grid Item (OAuth2)
* Shows single grid based on channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateInventoryGridItemRequestNonAuthenticatedEntity The aggregateInventoryGridItemRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryGridItemNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowInventoryGridItemWithHttpInfo(AggregateInventoryGridItemRequestNonAuthenticatedEntity aggregateInventoryGridItemRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowInventoryGridItemRequestCreation(aggregateInventoryGridItemRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Inventory Grid Item (OAuth2)
* Shows single grid based on channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateInventoryGridItemRequestNonAuthenticatedEntity The aggregateInventoryGridItemRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowInventoryGridItemWithResponseSpec(AggregateInventoryGridItemRequestNonAuthenticatedEntity aggregateInventoryGridItemRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowInventoryGridItemRequestCreation(aggregateInventoryGridItemRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Add-On Inventory (OAuth2)
* Show single add-on based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAddOnRequestNonAuthenticatedEntity The aggregateAddOnRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryAddOnNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyAddOnRequestCreation(AggregateAddOnRequestNonAuthenticatedEntity aggregateAddOnRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateAddOnRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateAddOnRequestNonAuthenticatedEntity' is set
if (aggregateAddOnRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateAddOnRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyAddOn", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/add-on", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Add-On Inventory (OAuth2)
* Show single add-on based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAddOnRequestNonAuthenticatedEntity The aggregateAddOnRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryAddOnNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyAddOn(AggregateAddOnRequestNonAuthenticatedEntity aggregateAddOnRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyAddOnRequestCreation(aggregateAddOnRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Add-On Inventory (OAuth2)
* Show single add-on based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAddOnRequestNonAuthenticatedEntity The aggregateAddOnRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryAddOnNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyAddOnWithHttpInfo(AggregateAddOnRequestNonAuthenticatedEntity aggregateAddOnRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyAddOnRequestCreation(aggregateAddOnRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Add-On Inventory (OAuth2)
* Show single add-on based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAddOnRequestNonAuthenticatedEntity The aggregateAddOnRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyAddOnWithResponseSpec(AggregateAddOnRequestNonAuthenticatedEntity aggregateAddOnRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyAddOnRequestCreation(aggregateAddOnRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Property Inventory (OAuth2)
* Show single hotel card with price based on a given record identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateHotelRequestNonAuthenticatedEntity The aggregateHotelRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryHotelNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyAggregateRequestCreation(AggregateHotelRequestNonAuthenticatedEntity aggregateHotelRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateHotelRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateHotelRequestNonAuthenticatedEntity' is set
if (aggregateHotelRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateHotelRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyAggregate", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/inventory/property", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Property Inventory (OAuth2)
* Show single hotel card with price based on a given record identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateHotelRequestNonAuthenticatedEntity The aggregateHotelRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryHotelNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyAggregate(AggregateHotelRequestNonAuthenticatedEntity aggregateHotelRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyAggregateRequestCreation(aggregateHotelRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Property Inventory (OAuth2)
* Show single hotel card with price based on a given record identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateHotelRequestNonAuthenticatedEntity The aggregateHotelRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryHotelNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyAggregateWithHttpInfo(AggregateHotelRequestNonAuthenticatedEntity aggregateHotelRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyAggregateRequestCreation(aggregateHotelRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Property Inventory (OAuth2)
* Show single hotel card with price based on a given record identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateHotelRequestNonAuthenticatedEntity The aggregateHotelRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyAggregateWithResponseSpec(AggregateHotelRequestNonAuthenticatedEntity aggregateHotelRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyAggregateRequestCreation(aggregateHotelRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Attraction Inventory (OAuth2)
* Show single attraction based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAttractionRequestNonAuthenticatedEntity The aggregateAttractionRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryAttractionNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyAttractionRequestCreation(AggregateAttractionRequestNonAuthenticatedEntity aggregateAttractionRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateAttractionRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateAttractionRequestNonAuthenticatedEntity' is set
if (aggregateAttractionRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateAttractionRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyAttraction", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/experience/attraction", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Attraction Inventory (OAuth2)
* Show single attraction based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAttractionRequestNonAuthenticatedEntity The aggregateAttractionRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryAttractionNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyAttraction(AggregateAttractionRequestNonAuthenticatedEntity aggregateAttractionRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyAttractionRequestCreation(aggregateAttractionRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Attraction Inventory (OAuth2)
* Show single attraction based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAttractionRequestNonAuthenticatedEntity The aggregateAttractionRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryAttractionNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyAttractionWithHttpInfo(AggregateAttractionRequestNonAuthenticatedEntity aggregateAttractionRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyAttractionRequestCreation(aggregateAttractionRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Attraction Inventory (OAuth2)
* Show single attraction based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateAttractionRequestNonAuthenticatedEntity The aggregateAttractionRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyAttractionWithResponseSpec(AggregateAttractionRequestNonAuthenticatedEntity aggregateAttractionRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyAttractionRequestCreation(aggregateAttractionRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Property (OAuth2)
* Show property content / availability / rate details.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryRequestNonAuthenticatedEntity The hotelInventoryRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return HotelInventoryResponseNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyInventoryRequestCreation(HotelInventoryRequestNonAuthenticatedEntity hotelInventoryRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
Object postBody = hotelInventoryRequestNonAuthenticatedEntity;
// verify the required parameter 'hotelInventoryRequestNonAuthenticatedEntity' is set
if (hotelInventoryRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelInventoryRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
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/inventory", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Property (OAuth2)
* Show property content / availability / rate details.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryRequestNonAuthenticatedEntity The hotelInventoryRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return HotelInventoryResponseNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyInventory(HotelInventoryRequestNonAuthenticatedEntity hotelInventoryRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyInventoryRequestCreation(hotelInventoryRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Show Property (OAuth2)
* Show property content / availability / rate details.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryRequestNonAuthenticatedEntity The hotelInventoryRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<HotelInventoryResponseNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyInventoryWithHttpInfo(HotelInventoryRequestNonAuthenticatedEntity hotelInventoryRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyInventoryRequestCreation(hotelInventoryRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Property (OAuth2)
* Show property content / availability / rate details.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryRequestNonAuthenticatedEntity The hotelInventoryRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyInventoryWithResponseSpec(HotelInventoryRequestNonAuthenticatedEntity hotelInventoryRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
return oauth2ShowPropertyInventoryRequestCreation(hotelInventoryRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion);
}
/**
* Show Property List (OAuth2)
* Show property content / availability / rate details.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryListRequestNonAuthenticatedEntity The hotelInventoryListRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return HotelInventoryListResponseNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyListRequestCreation(HotelInventoryListRequestNonAuthenticatedEntity hotelInventoryListRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
Object postBody = hotelInventoryListRequestNonAuthenticatedEntity;
// verify the required parameter 'hotelInventoryListRequestNonAuthenticatedEntity' is set
if (hotelInventoryListRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelInventoryListRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
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/inventory/list", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Property List (OAuth2)
* Show property content / availability / rate details.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryListRequestNonAuthenticatedEntity The hotelInventoryListRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return HotelInventoryListResponseNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyList(HotelInventoryListRequestNonAuthenticatedEntity hotelInventoryListRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyListRequestCreation(hotelInventoryListRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Show Property List (OAuth2)
* Show property content / availability / rate details.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryListRequestNonAuthenticatedEntity The hotelInventoryListRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<HotelInventoryListResponseNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyListWithHttpInfo(HotelInventoryListRequestNonAuthenticatedEntity hotelInventoryListRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyListRequestCreation(hotelInventoryListRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Property List (OAuth2)
* Show property content / availability / rate details.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param hotelInventoryListRequestNonAuthenticatedEntity The hotelInventoryListRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyListWithResponseSpec(HotelInventoryListRequestNonAuthenticatedEntity hotelInventoryListRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion) throws WebClientResponseException {
return oauth2ShowPropertyListRequestCreation(hotelInventoryListRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion);
}
/**
* Show Meeting Room Inventory (OAuth2)
* Show single meeting room based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateMeetingRoomRequestNonAuthenticatedEntity The aggregateMeetingRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryMeetingRoomNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyMeetingRoomRequestCreation(AggregateMeetingRoomRequestNonAuthenticatedEntity aggregateMeetingRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateMeetingRoomRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateMeetingRoomRequestNonAuthenticatedEntity' is set
if (aggregateMeetingRoomRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateMeetingRoomRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyMeetingRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/facility/meeting-room", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Meeting Room Inventory (OAuth2)
* Show single meeting room based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateMeetingRoomRequestNonAuthenticatedEntity The aggregateMeetingRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryMeetingRoomNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyMeetingRoom(AggregateMeetingRoomRequestNonAuthenticatedEntity aggregateMeetingRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyMeetingRoomRequestCreation(aggregateMeetingRoomRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Meeting Room Inventory (OAuth2)
* Show single meeting room based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateMeetingRoomRequestNonAuthenticatedEntity The aggregateMeetingRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryMeetingRoomNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyMeetingRoomWithHttpInfo(AggregateMeetingRoomRequestNonAuthenticatedEntity aggregateMeetingRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyMeetingRoomRequestCreation(aggregateMeetingRoomRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Meeting Room Inventory (OAuth2)
* Show single meeting room based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateMeetingRoomRequestNonAuthenticatedEntity The aggregateMeetingRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyMeetingRoomWithResponseSpec(AggregateMeetingRoomRequestNonAuthenticatedEntity aggregateMeetingRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyMeetingRoomRequestCreation(aggregateMeetingRoomRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Place Inventory (OAuth2)
* Show single place based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregatePlaceRequestNonAuthenticatedEntity The aggregatePlaceRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryPlaceNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyPlaceRequestCreation(AggregatePlaceRequestNonAuthenticatedEntity aggregatePlaceRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregatePlaceRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregatePlaceRequestNonAuthenticatedEntity' is set
if (aggregatePlaceRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregatePlaceRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyPlace", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/experience/place", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Place Inventory (OAuth2)
* Show single place based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregatePlaceRequestNonAuthenticatedEntity The aggregatePlaceRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryPlaceNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyPlace(AggregatePlaceRequestNonAuthenticatedEntity aggregatePlaceRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyPlaceRequestCreation(aggregatePlaceRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Place Inventory (OAuth2)
* Show single place based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregatePlaceRequestNonAuthenticatedEntity The aggregatePlaceRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryPlaceNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyPlaceWithHttpInfo(AggregatePlaceRequestNonAuthenticatedEntity aggregatePlaceRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyPlaceRequestCreation(aggregatePlaceRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Place Inventory (OAuth2)
* Show single place based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregatePlaceRequestNonAuthenticatedEntity The aggregatePlaceRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyPlaceWithResponseSpec(AggregatePlaceRequestNonAuthenticatedEntity aggregatePlaceRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyPlaceRequestCreation(aggregatePlaceRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Activity Inventory (OAuth2)
* Show single activity based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateActivityRequestNonAuthenticatedEntity The aggregateActivityRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryActivityNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyRecreationRequestCreation(AggregateActivityRequestNonAuthenticatedEntity aggregateActivityRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateActivityRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateActivityRequestNonAuthenticatedEntity' is set
if (aggregateActivityRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateActivityRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyRecreation", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/experience/activity", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Activity Inventory (OAuth2)
* Show single activity based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateActivityRequestNonAuthenticatedEntity The aggregateActivityRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryActivityNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyRecreation(AggregateActivityRequestNonAuthenticatedEntity aggregateActivityRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyRecreationRequestCreation(aggregateActivityRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Activity Inventory (OAuth2)
* Show single activity based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateActivityRequestNonAuthenticatedEntity The aggregateActivityRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryActivityNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyRecreationWithHttpInfo(AggregateActivityRequestNonAuthenticatedEntity aggregateActivityRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyRecreationRequestCreation(aggregateActivityRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Activity Inventory (OAuth2)
* Show single activity based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateActivityRequestNonAuthenticatedEntity The aggregateActivityRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyRecreationWithResponseSpec(AggregateActivityRequestNonAuthenticatedEntity aggregateActivityRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyRecreationRequestCreation(aggregateActivityRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Restaurant Inventory (OAuth2)
* Show single restaurant based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateRestaurantRequestNonAuthenticatedEntity The aggregateRestaurantRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryRestaurantNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyRestaurantRequestCreation(AggregateRestaurantRequestNonAuthenticatedEntity aggregateRestaurantRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateRestaurantRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateRestaurantRequestNonAuthenticatedEntity' is set
if (aggregateRestaurantRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateRestaurantRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyRestaurant", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/facility/restaurant", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Restaurant Inventory (OAuth2)
* Show single restaurant based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateRestaurantRequestNonAuthenticatedEntity The aggregateRestaurantRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryRestaurantNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyRestaurant(AggregateRestaurantRequestNonAuthenticatedEntity aggregateRestaurantRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyRestaurantRequestCreation(aggregateRestaurantRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Restaurant Inventory (OAuth2)
* Show single restaurant based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateRestaurantRequestNonAuthenticatedEntity The aggregateRestaurantRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryRestaurantNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyRestaurantWithHttpInfo(AggregateRestaurantRequestNonAuthenticatedEntity aggregateRestaurantRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyRestaurantRequestCreation(aggregateRestaurantRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Restaurant Inventory (OAuth2)
* Show single restaurant based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateRestaurantRequestNonAuthenticatedEntity The aggregateRestaurantRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyRestaurantWithResponseSpec(AggregateRestaurantRequestNonAuthenticatedEntity aggregateRestaurantRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyRestaurantRequestCreation(aggregateRestaurantRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Guest Room Inventory (OAuth2)
* Show single guest room based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateGuestRoomRequestNonAuthenticatedEntity The aggregateGuestRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryGuestRoomNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertyRoomTypeRequestCreation(AggregateGuestRoomRequestNonAuthenticatedEntity aggregateGuestRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateGuestRoomRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateGuestRoomRequestNonAuthenticatedEntity' is set
if (aggregateGuestRoomRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateGuestRoomRequestNonAuthenticatedEntity' when calling oauth2ShowPropertyRoomType", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/inventory/guest-room", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Guest Room Inventory (OAuth2)
* Show single guest room based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateGuestRoomRequestNonAuthenticatedEntity The aggregateGuestRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventoryGuestRoomNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono oauth2ShowPropertyRoomType(AggregateGuestRoomRequestNonAuthenticatedEntity aggregateGuestRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyRoomTypeRequestCreation(aggregateGuestRoomRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Guest Room Inventory (OAuth2)
* Show single guest room based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateGuestRoomRequestNonAuthenticatedEntity The aggregateGuestRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<SellerInventoryGuestRoomNonAuthenticatedEntity>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> oauth2ShowPropertyRoomTypeWithHttpInfo(AggregateGuestRoomRequestNonAuthenticatedEntity aggregateGuestRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return oauth2ShowPropertyRoomTypeRequestCreation(aggregateGuestRoomRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Guest Room Inventory (OAuth2)
* Show single guest room based on a channel inventory identifier
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateGuestRoomRequestNonAuthenticatedEntity The aggregateGuestRoomRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec oauth2ShowPropertyRoomTypeWithResponseSpec(AggregateGuestRoomRequestNonAuthenticatedEntity aggregateGuestRoomRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return oauth2ShowPropertyRoomTypeRequestCreation(aggregateGuestRoomRequestNonAuthenticatedEntity, engineConfigurationIdentifier, winkVersion, accept);
}
/**
* Show Spa Inventory (OAuth2)
* Show single spa based on a channel inventory identifier
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param aggregateSpaRequestNonAuthenticatedEntity The aggregateSpaRequestNonAuthenticatedEntity parameter
* @param engineConfigurationIdentifier Engine configuration identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return SellerInventorySpaNonAuthenticatedEntity
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec oauth2ShowPropertySpaRequestCreation(AggregateSpaRequestNonAuthenticatedEntity aggregateSpaRequestNonAuthenticatedEntity, String engineConfigurationIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = aggregateSpaRequestNonAuthenticatedEntity;
// verify the required parameter 'aggregateSpaRequestNonAuthenticatedEntity' is set
if (aggregateSpaRequestNonAuthenticatedEntity == null) {
throw new WebClientResponseException("Missing the required parameter 'aggregateSpaRequestNonAuthenticatedEntity' when calling oauth2ShowPropertySpa", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "engineConfigurationIdentifier", engineConfigurationIdentifier));
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference