travel.wink.sdk.extranet.distribution.api.InventoryUsageApi Maven / Gradle / Ivy
package travel.wink.sdk.extranet.distribution.api;
import travel.wink.sdk.extranet.distribution.invoker.ApiClient;
import travel.wink.sdk.extranet.distribution.model.GenericErrorMessage;
import travel.wink.sdk.extranet.distribution.model.InventoryUsageSupplier;
import travel.wink.sdk.extranet.distribution.model.ShowInventory400Response;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-15T11:58:01.003340498+07:00[Asia/Bangkok]")
public class InventoryUsageApi {
private ApiClient apiClient;
public InventoryUsageApi() {
this(new ApiClient());
}
@Autowired
public InventoryUsageApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Show Activity Usage
* Retrieve an aggregate report where specified activity is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param activityIdentifier Activity identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showActivityUsageRequestCreation(String propertyIdentifier, String activityIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showActivityUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'activityIdentifier' is set
if (activityIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'activityIdentifier' when calling showActivityUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("activityIdentifier", activityIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/activity/{activityIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Activity Usage
* Retrieve an aggregate report where specified activity is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param activityIdentifier Activity identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showActivityUsage(String propertyIdentifier, String activityIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showActivityUsageRequestCreation(propertyIdentifier, activityIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Activity Usage
* Retrieve an aggregate report where specified activity is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param activityIdentifier Activity identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showActivityUsageWithHttpInfo(String propertyIdentifier, String activityIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showActivityUsageRequestCreation(propertyIdentifier, activityIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Activity Usage
* Retrieve an aggregate report where specified activity is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param activityIdentifier Activity 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 showActivityUsageWithResponseSpec(String propertyIdentifier, String activityIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showActivityUsageRequestCreation(propertyIdentifier, activityIdentifier, winkVersion, accept);
}
/**
* Show Add-On Usage
* Retrieve an aggregate report where specified add-on is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param addOnIdentifier Add-On identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showAddOnUsageRequestCreation(String propertyIdentifier, String addOnIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showAddOnUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'addOnIdentifier' is set
if (addOnIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'addOnIdentifier' when calling showAddOnUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("addOnIdentifier", addOnIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/add-on/{addOnIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Add-On Usage
* Retrieve an aggregate report where specified add-on is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param addOnIdentifier Add-On identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showAddOnUsage(String propertyIdentifier, String addOnIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAddOnUsageRequestCreation(propertyIdentifier, addOnIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Add-On Usage
* Retrieve an aggregate report where specified add-on is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param addOnIdentifier Add-On identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showAddOnUsageWithHttpInfo(String propertyIdentifier, String addOnIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAddOnUsageRequestCreation(propertyIdentifier, addOnIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Add-On Usage
* Retrieve an aggregate report where specified add-on is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param addOnIdentifier Add-On 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 showAddOnUsageWithResponseSpec(String propertyIdentifier, String addOnIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showAddOnUsageRequestCreation(propertyIdentifier, addOnIdentifier, winkVersion, accept);
}
/**
* Show Attraction Usage
* Retrieve an aggregate report where specified attraction is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param attractionIdentifier Attraction identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showAttractionUsageRequestCreation(String propertyIdentifier, String attractionIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showAttractionUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'attractionIdentifier' is set
if (attractionIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'attractionIdentifier' when calling showAttractionUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("attractionIdentifier", attractionIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/attraction/{attractionIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Attraction Usage
* Retrieve an aggregate report where specified attraction is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param attractionIdentifier Attraction identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showAttractionUsage(String propertyIdentifier, String attractionIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAttractionUsageRequestCreation(propertyIdentifier, attractionIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Attraction Usage
* Retrieve an aggregate report where specified attraction is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param attractionIdentifier Attraction identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showAttractionUsageWithHttpInfo(String propertyIdentifier, String attractionIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAttractionUsageRequestCreation(propertyIdentifier, attractionIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Attraction Usage
* Retrieve an aggregate report where specified attraction is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param attractionIdentifier Attraction 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 showAttractionUsageWithResponseSpec(String propertyIdentifier, String attractionIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showAttractionUsageRequestCreation(propertyIdentifier, attractionIdentifier, winkVersion, accept);
}
/**
* Show Meeting Room Usage
* Retrieve an aggregate report where specified meeting room is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param meetingRoomIdentifier Meeting room identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showMeetingRoomUsageRequestCreation(String propertyIdentifier, String meetingRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showMeetingRoomUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'meetingRoomIdentifier' is set
if (meetingRoomIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'meetingRoomIdentifier' when calling showMeetingRoomUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("meetingRoomIdentifier", meetingRoomIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/meeting-room/{meetingRoomIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Meeting Room Usage
* Retrieve an aggregate report where specified meeting room is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param meetingRoomIdentifier Meeting room identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showMeetingRoomUsage(String propertyIdentifier, String meetingRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showMeetingRoomUsageRequestCreation(propertyIdentifier, meetingRoomIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Meeting Room Usage
* Retrieve an aggregate report where specified meeting room is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param meetingRoomIdentifier Meeting room identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showMeetingRoomUsageWithHttpInfo(String propertyIdentifier, String meetingRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showMeetingRoomUsageRequestCreation(propertyIdentifier, meetingRoomIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Meeting Room Usage
* Retrieve an aggregate report where specified meeting room is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param meetingRoomIdentifier Meeting room 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 showMeetingRoomUsageWithResponseSpec(String propertyIdentifier, String meetingRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showMeetingRoomUsageRequestCreation(propertyIdentifier, meetingRoomIdentifier, winkVersion, accept);
}
/**
* Show Place Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param placeIdentifier Place identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showPlaceUsageRequestCreation(String propertyIdentifier, String placeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showPlaceUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'placeIdentifier' is set
if (placeIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'placeIdentifier' when calling showPlaceUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("placeIdentifier", placeIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/place/{placeIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Place Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param placeIdentifier Place identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showPlaceUsage(String propertyIdentifier, String placeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showPlaceUsageRequestCreation(propertyIdentifier, placeIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Place Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param placeIdentifier Place identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showPlaceUsageWithHttpInfo(String propertyIdentifier, String placeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showPlaceUsageRequestCreation(propertyIdentifier, placeIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Place Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param placeIdentifier Place 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 showPlaceUsageWithResponseSpec(String propertyIdentifier, String placeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showPlaceUsageRequestCreation(propertyIdentifier, placeIdentifier, winkVersion, accept);
}
/**
* Show Rate Plan Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param ratePlanIdentifier Rate plan identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showRatePlanUsageRequestCreation(String propertyIdentifier, String ratePlanIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showRatePlanUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'ratePlanIdentifier' is set
if (ratePlanIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'ratePlanIdentifier' when calling showRatePlanUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("ratePlanIdentifier", ratePlanIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/rate-plan/{ratePlanIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Rate Plan Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param ratePlanIdentifier Rate plan identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showRatePlanUsage(String propertyIdentifier, String ratePlanIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showRatePlanUsageRequestCreation(propertyIdentifier, ratePlanIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Rate Plan Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param ratePlanIdentifier Rate plan identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showRatePlanUsageWithHttpInfo(String propertyIdentifier, String ratePlanIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showRatePlanUsageRequestCreation(propertyIdentifier, ratePlanIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Rate Plan Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param ratePlanIdentifier Rate plan 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 showRatePlanUsageWithResponseSpec(String propertyIdentifier, String ratePlanIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showRatePlanUsageRequestCreation(propertyIdentifier, ratePlanIdentifier, winkVersion, accept);
}
/**
* Show Restaurant Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param restaurantIdentifier Restaurant identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showRestaurantUsageRequestCreation(String propertyIdentifier, String restaurantIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showRestaurantUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'restaurantIdentifier' is set
if (restaurantIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'restaurantIdentifier' when calling showRestaurantUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("restaurantIdentifier", restaurantIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/restaurant/{restaurantIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Restaurant Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param restaurantIdentifier Restaurant identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showRestaurantUsage(String propertyIdentifier, String restaurantIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showRestaurantUsageRequestCreation(propertyIdentifier, restaurantIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Restaurant Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param restaurantIdentifier Restaurant identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showRestaurantUsageWithHttpInfo(String propertyIdentifier, String restaurantIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showRestaurantUsageRequestCreation(propertyIdentifier, restaurantIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Restaurant Usage
* Retrieve an aggregate report where specified rate plan is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param restaurantIdentifier Restaurant 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 showRestaurantUsageWithResponseSpec(String propertyIdentifier, String restaurantIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showRestaurantUsageRequestCreation(propertyIdentifier, restaurantIdentifier, winkVersion, accept);
}
/**
* Show Room Type Usage
* Retrieve an aggregate report where specified room type is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param roomTypeIdentifier Room type identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showRoomTypeUsageRequestCreation(String propertyIdentifier, String roomTypeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showRoomTypeUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'roomTypeIdentifier' is set
if (roomTypeIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'roomTypeIdentifier' when calling showRoomTypeUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("roomTypeIdentifier", roomTypeIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/room-type/{roomTypeIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Room Type Usage
* Retrieve an aggregate report where specified room type is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param roomTypeIdentifier Room type identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showRoomTypeUsage(String propertyIdentifier, String roomTypeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showRoomTypeUsageRequestCreation(propertyIdentifier, roomTypeIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Room Type Usage
* Retrieve an aggregate report where specified room type is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param roomTypeIdentifier Room type identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showRoomTypeUsageWithHttpInfo(String propertyIdentifier, String roomTypeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showRoomTypeUsageRequestCreation(propertyIdentifier, roomTypeIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Room Type Usage
* Retrieve an aggregate report where specified room type is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param roomTypeIdentifier Room type 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 showRoomTypeUsageWithResponseSpec(String propertyIdentifier, String roomTypeIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showRoomTypeUsageRequestCreation(propertyIdentifier, roomTypeIdentifier, winkVersion, accept);
}
/**
* Show Spa Usage
* Retrieve an aggregate report where specified spa is being used on affiliate real estate.
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param spaIdentifier Spa identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showSpaUsageRequestCreation(String propertyIdentifier, String spaIdentifier, String winkVersion, String accept) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'propertyIdentifier' is set
if (propertyIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showSpaUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'spaIdentifier' is set
if (spaIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'spaIdentifier' when calling showSpaUsage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("propertyIdentifier", propertyIdentifier);
pathParams.put("spaIdentifier", spaIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
if (accept != null)
headerParams.add("Accept", apiClient.parameterToString(accept));
final String[] localVarAccepts = {
"application/json", "application/xml", "text/xml", "text/plain", "*/*"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/property/{propertyIdentifier}/inventory-usage/spa/{spaIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Spa Usage
* Retrieve an aggregate report where specified spa is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param spaIdentifier Spa identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return InventoryUsageSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showSpaUsage(String propertyIdentifier, String spaIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSpaUsageRequestCreation(propertyIdentifier, spaIdentifier, winkVersion, accept).bodyToMono(localVarReturnType);
}
/**
* Show Spa Usage
* Retrieve an aggregate report where specified spa is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param spaIdentifier Spa identifier
* @param winkVersion The winkVersion parameter
* @param accept The accept parameter
* @return ResponseEntity<InventoryUsageSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showSpaUsageWithHttpInfo(String propertyIdentifier, String spaIdentifier, String winkVersion, String accept) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showSpaUsageRequestCreation(propertyIdentifier, spaIdentifier, winkVersion, accept).toEntity(localVarReturnType);
}
/**
* Show Spa Usage
* Retrieve an aggregate report where specified spa is being used on affiliate real estate.
* 500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
400 - Bad Request
*
200 - OK
* @param propertyIdentifier Hotel identifier inventory owner
* @param spaIdentifier Spa 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 showSpaUsageWithResponseSpec(String propertyIdentifier, String spaIdentifier, String winkVersion, String accept) throws WebClientResponseException {
return showSpaUsageRequestCreation(propertyIdentifier, spaIdentifier, winkVersion, accept);
}
}