travel.wink.sdk.extranet.api.DailyRateApi Maven / Gradle / Ivy
Show all versions of extranet-sdk-java Show documentation
package travel.wink.sdk.extranet.api;
import travel.wink.sdk.extranet.invoker.ApiClient;
import travel.wink.sdk.extranet.model.BookingTestRequestSupplierDetails;
import travel.wink.sdk.extranet.model.BookingViewSupplierDetails;
import travel.wink.sdk.extranet.model.ChannelNameSupplier;
import travel.wink.sdk.extranet.model.DateRangeSupplier;
import travel.wink.sdk.extranet.model.DescriptiveRoomSupplierDetails;
import travel.wink.sdk.extranet.model.GenericErrorMessage;
import travel.wink.sdk.extranet.model.PageRateSupplier;
import travel.wink.sdk.extranet.model.RateSupplier;
import travel.wink.sdk.extranet.model.ShowPropertyPolicy400Response;
import travel.wink.sdk.extranet.model.StateSupplier;
import travel.wink.sdk.extranet.model.UpsertBulkRateRequestSupplier;
import travel.wink.sdk.extranet.model.UpsertRateListRequestSupplier;
import travel.wink.sdk.extranet.model.VerifyRatesRequestSupplierDetails;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T22:29:13.908295668+07:00[Asia/Bangkok]")
public class DailyRateApi {
private ApiClient apiClient;
public DailyRateApi() {
this(new ApiClient());
}
@Autowired
public DailyRateApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Update Daily Rates by Range
* Bulk update daily rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates by date range owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates by date range owned by this master rate.
* @param upsertBulkRateRequestSupplier The upsertBulkRateRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec bulkUpdateRateRequestCreation(String hotelIdentifier, String masterRateIdentifier, UpsertBulkRateRequestSupplier upsertBulkRateRequestSupplier, String winkVersion) throws WebClientResponseException {
Object postBody = upsertBulkRateRequestSupplier;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling bulkUpdateRate", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'masterRateIdentifier' is set
if (masterRateIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'masterRateIdentifier' when calling bulkUpdateRate", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertBulkRateRequestSupplier' is set
if (upsertBulkRateRequestSupplier == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertBulkRateRequestSupplier' when calling bulkUpdateRate", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
pathParams.put("masterRateIdentifier", masterRateIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/inventory/master-rate/{masterRateIdentifier}/rate/update", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update Daily Rates by Range
* Bulk update daily rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates by date range owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates by date range owned by this master rate.
* @param upsertBulkRateRequestSupplier The upsertBulkRateRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux bulkUpdateRate(String hotelIdentifier, String masterRateIdentifier, UpsertBulkRateRequestSupplier upsertBulkRateRequestSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return bulkUpdateRateRequestCreation(hotelIdentifier, masterRateIdentifier, upsertBulkRateRequestSupplier, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* Update Daily Rates by Range
* Bulk update daily rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates by date range owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates by date range owned by this master rate.
* @param upsertBulkRateRequestSupplier The upsertBulkRateRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<RateSupplier>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> bulkUpdateRateWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, UpsertBulkRateRequestSupplier upsertBulkRateRequestSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return bulkUpdateRateRequestCreation(hotelIdentifier, masterRateIdentifier, upsertBulkRateRequestSupplier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Update Daily Rates by Range
* Bulk update daily rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates by date range owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates by date range owned by this master rate.
* @param upsertBulkRateRequestSupplier The upsertBulkRateRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec bulkUpdateRateWithResponseSpec(String hotelIdentifier, String masterRateIdentifier, UpsertBulkRateRequestSupplier upsertBulkRateRequestSupplier, String winkVersion) throws WebClientResponseException {
return bulkUpdateRateRequestCreation(hotelIdentifier, masterRateIdentifier, upsertBulkRateRequestSupplier, winkVersion);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
201 - Created
* @param hotelIdentifier The hotelIdentifier parameter
* @param bookingTestRequestSupplierDetails The bookingTestRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return BookingViewSupplierDetails
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec createTestBookingRequestCreation(String hotelIdentifier, BookingTestRequestSupplierDetails bookingTestRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
Object postBody = bookingTestRequestSupplierDetails;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling createTestBooking", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'bookingTestRequestSupplierDetails' is set
if (bookingTestRequestSupplierDetails == null) {
throw new WebClientResponseException("Missing the required parameter 'bookingTestRequestSupplierDetails' when calling createTestBooking", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/sandbox/booking", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
201 - Created
* @param hotelIdentifier The hotelIdentifier parameter
* @param bookingTestRequestSupplierDetails The bookingTestRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return BookingViewSupplierDetails
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono createTestBooking(String hotelIdentifier, BookingTestRequestSupplierDetails bookingTestRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createTestBookingRequestCreation(hotelIdentifier, bookingTestRequestSupplierDetails, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
201 - Created
* @param hotelIdentifier The hotelIdentifier parameter
* @param bookingTestRequestSupplierDetails The bookingTestRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<BookingViewSupplierDetails>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> createTestBookingWithHttpInfo(String hotelIdentifier, BookingTestRequestSupplierDetails bookingTestRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return createTestBookingRequestCreation(hotelIdentifier, bookingTestRequestSupplierDetails, winkVersion).toEntity(localVarReturnType);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
201 - Created
* @param hotelIdentifier The hotelIdentifier parameter
* @param bookingTestRequestSupplierDetails The bookingTestRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec createTestBookingWithResponseSpec(String hotelIdentifier, BookingTestRequestSupplierDetails bookingTestRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
return createTestBookingRequestCreation(hotelIdentifier, bookingTestRequestSupplierDetails, winkVersion);
}
/**
* Daily Rates by Hotel
* Retrieve daily rates for all master rates by date range
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showAllHotelRatesRequestCreation(String hotelIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
Object postBody = dateRangeSupplier;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showAllHotelRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'dateRangeSupplier' is set
if (dateRangeSupplier == null) {
throw new WebClientResponseException("Missing the required parameter 'dateRangeSupplier' when calling showAllHotelRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/inventory/master-rate/rates/dates", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Daily Rates by Hotel
* Retrieve daily rates for all master rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showAllHotelRates(String hotelIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAllHotelRatesRequestCreation(hotelIdentifier, dateRangeSupplier, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* Daily Rates by Hotel
* Retrieve daily rates for all master rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<RateSupplier>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showAllHotelRatesWithHttpInfo(String hotelIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAllHotelRatesRequestCreation(hotelIdentifier, dateRangeSupplier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Daily Rates by Hotel
* Retrieve daily rates for all master rates by date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showAllHotelRatesWithResponseSpec(String hotelIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
return showAllHotelRatesRequestCreation(hotelIdentifier, dateRangeSupplier, winkVersion);
}
/**
* Daily Rates by Master Rate
* Retrieve daily rates for a master rate for date range
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate list owned by this master rate.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showAllMasterRatesRatesRequestCreation(String hotelIdentifier, String masterRateIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
Object postBody = dateRangeSupplier;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showAllMasterRatesRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'masterRateIdentifier' is set
if (masterRateIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'masterRateIdentifier' when calling showAllMasterRatesRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'dateRangeSupplier' is set
if (dateRangeSupplier == null) {
throw new WebClientResponseException("Missing the required parameter 'dateRangeSupplier' when calling showAllMasterRatesRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
pathParams.put("masterRateIdentifier", masterRateIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/inventory/master-rate/{masterRateIdentifier}/rates/dates", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Daily Rates by Master Rate
* Retrieve daily rates for a master rate for date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate list owned by this master rate.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showAllMasterRatesRates(String hotelIdentifier, String masterRateIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAllMasterRatesRatesRequestCreation(hotelIdentifier, masterRateIdentifier, dateRangeSupplier, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* Daily Rates by Master Rate
* Retrieve daily rates for a master rate for date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate list owned by this master rate.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<RateSupplier>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showAllMasterRatesRatesWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showAllMasterRatesRatesRequestCreation(hotelIdentifier, masterRateIdentifier, dateRangeSupplier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Daily Rates by Master Rate
* Retrieve daily rates for a master rate for date range
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate list owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate list owned by this master rate.
* @param dateRangeSupplier The dateRangeSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showAllMasterRatesRatesWithResponseSpec(String hotelIdentifier, String masterRateIdentifier, DateRangeSupplier dateRangeSupplier, String winkVersion) throws WebClientResponseException {
return showAllMasterRatesRatesRequestCreation(hotelIdentifier, masterRateIdentifier, dateRangeSupplier, winkVersion);
}
/**
* List Sales Channels
* List sales channels for property
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param winkVersion The winkVersion parameter
* @return List<ChannelNameSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showChannelsRequestCreation(String hotelIdentifier, String winkVersion) throws WebClientResponseException {
Object postBody = null;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showChannels", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = { };
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/sandbox/channel/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* List Sales Channels
* List sales channels for property
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param winkVersion The winkVersion parameter
* @return List<ChannelNameSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showChannels(String hotelIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showChannelsRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* List Sales Channels
* List sales channels for property
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<ChannelNameSupplier>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showChannelsWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showChannelsRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType);
}
/**
* List Sales Channels
* List sales channels for property
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showChannelsWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException {
return showChannelsRequestCreation(hotelIdentifier, winkVersion);
}
/**
* Show Daily Rate Page
* Retrieve daily rates for a master rate within a certain date range.
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate page owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate page owned by this master rate.
* @param stateSupplier The stateSupplier parameter
* @param winkVersion The winkVersion parameter
* @return PageRateSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showDailyRatesPageRequestCreation(String hotelIdentifier, String masterRateIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException {
Object postBody = stateSupplier;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showDailyRatesPage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'masterRateIdentifier' is set
if (masterRateIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'masterRateIdentifier' when calling showDailyRatesPage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'stateSupplier' is set
if (stateSupplier == null) {
throw new WebClientResponseException("Missing the required parameter 'stateSupplier' when calling showDailyRatesPage", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
pathParams.put("masterRateIdentifier", masterRateIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/inventory/master-rate/{masterRateIdentifier}/rate/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Show Daily Rate Page
* Retrieve daily rates for a master rate within a certain date range.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate page owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate page owned by this master rate.
* @param stateSupplier The stateSupplier parameter
* @param winkVersion The winkVersion parameter
* @return PageRateSupplier
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono showDailyRatesPage(String hotelIdentifier, String masterRateIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDailyRatesPageRequestCreation(hotelIdentifier, masterRateIdentifier, stateSupplier, winkVersion).bodyToMono(localVarReturnType);
}
/**
* Show Daily Rate Page
* Retrieve daily rates for a master rate within a certain date range.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate page owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate page owned by this master rate.
* @param stateSupplier The stateSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<PageRateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono> showDailyRatesPageWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDailyRatesPageRequestCreation(hotelIdentifier, masterRateIdentifier, stateSupplier, winkVersion).toEntity(localVarReturnType);
}
/**
* Show Daily Rate Page
* Retrieve daily rates for a master rate within a certain date range.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Show daily rate page owned by this hotel identifier.
* @param masterRateIdentifier Show daily rate page owned by this master rate.
* @param stateSupplier The stateSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showDailyRatesPageWithResponseSpec(String hotelIdentifier, String masterRateIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException {
return showDailyRatesPageRequestCreation(hotelIdentifier, masterRateIdentifier, stateSupplier, winkVersion);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param verifyRatesRequestSupplierDetails The verifyRatesRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return List<DescriptiveRoomSupplierDetails>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec showDescriptiveInventoryRequestCreation(String hotelIdentifier, VerifyRatesRequestSupplierDetails verifyRatesRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
Object postBody = verifyRatesRequestSupplierDetails;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showDescriptiveInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'verifyRatesRequestSupplierDetails' is set
if (verifyRatesRequestSupplierDetails == null) {
throw new WebClientResponseException("Missing the required parameter 'verifyRatesRequestSupplierDetails' when calling showDescriptiveInventory", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/sandbox/room/list", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param verifyRatesRequestSupplierDetails The verifyRatesRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return List<DescriptiveRoomSupplierDetails>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux showDescriptiveInventory(String hotelIdentifier, VerifyRatesRequestSupplierDetails verifyRatesRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDescriptiveInventoryRequestCreation(hotelIdentifier, verifyRatesRequestSupplierDetails, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param verifyRatesRequestSupplierDetails The verifyRatesRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<DescriptiveRoomSupplierDetails>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> showDescriptiveInventoryWithHttpInfo(String hotelIdentifier, VerifyRatesRequestSupplierDetails verifyRatesRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return showDescriptiveInventoryRequestCreation(hotelIdentifier, verifyRatesRequestSupplierDetails, winkVersion).toEntityList(localVarReturnType);
}
/**
* Test Rate / Availability
* Test whether the rates and availability for a sales channel is coming backing the way the property wants
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier The hotelIdentifier parameter
* @param verifyRatesRequestSupplierDetails The verifyRatesRequestSupplierDetails parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec showDescriptiveInventoryWithResponseSpec(String hotelIdentifier, VerifyRatesRequestSupplierDetails verifyRatesRequestSupplierDetails, String winkVersion) throws WebClientResponseException {
return showDescriptiveInventoryRequestCreation(hotelIdentifier, verifyRatesRequestSupplierDetails, winkVersion);
}
/**
* Update Daily Rates by List
* Update daily rates with list of daily rate records.
*
503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates list owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates list owned by this master rate.
* @param upsertRateListRequestSupplier The upsertRateListRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
private ResponseSpec updateRateListRequestCreation(String hotelIdentifier, String masterRateIdentifier, UpsertRateListRequestSupplier upsertRateListRequestSupplier, String winkVersion) throws WebClientResponseException {
Object postBody = upsertRateListRequestSupplier;
// verify the required parameter 'hotelIdentifier' is set
if (hotelIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling updateRateList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'masterRateIdentifier' is set
if (masterRateIdentifier == null) {
throw new WebClientResponseException("Missing the required parameter 'masterRateIdentifier' when calling updateRateList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// verify the required parameter 'upsertRateListRequestSupplier' is set
if (upsertRateListRequestSupplier == null) {
throw new WebClientResponseException("Missing the required parameter 'upsertRateListRequestSupplier' when calling updateRateList", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
}
// create path and map variables
final Map pathParams = new HashMap();
pathParams.put("hotelIdentifier", hotelIdentifier);
pathParams.put("masterRateIdentifier", masterRateIdentifier);
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (winkVersion != null)
headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion));
final String[] localVarAccepts = {
"*/*", "application/json", "application/xml", "text/xml", "text/plain"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" };
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/api/hotel/{hotelIdentifier}/inventory/master-rate/{masterRateIdentifier}/rate/list/update", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update Daily Rates by List
* Update daily rates with list of daily rate records.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates list owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates list owned by this master rate.
* @param upsertRateListRequestSupplier The upsertRateListRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return List<RateSupplier>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Flux updateRateList(String hotelIdentifier, String masterRateIdentifier, UpsertRateListRequestSupplier upsertRateListRequestSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateRateListRequestCreation(hotelIdentifier, masterRateIdentifier, upsertRateListRequestSupplier, winkVersion).bodyToFlux(localVarReturnType);
}
/**
* Update Daily Rates by List
* Update daily rates with list of daily rate records.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates list owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates list owned by this master rate.
* @param upsertRateListRequestSupplier The upsertRateListRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseEntity<List<RateSupplier>>
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public Mono>> updateRateListWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, UpsertRateListRequestSupplier upsertRateListRequestSupplier, String winkVersion) throws WebClientResponseException {
ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
return updateRateListRequestCreation(hotelIdentifier, masterRateIdentifier, upsertRateListRequestSupplier, winkVersion).toEntityList(localVarReturnType);
}
/**
* Update Daily Rates by List
* Update daily rates with list of daily rate records.
* 503 - Service Unavailable
*
400 - Bad Request
*
405 - Method Not Allowed
*
415 - Unsupported Media Type
*
500 - Internal Server Error
*
403 - Forbidden
*
401 - Unauthorized
*
200 - OK
* @param hotelIdentifier Update daily rates list owned by this hotel identifier.
* @param masterRateIdentifier Update daily rates list owned by this master rate.
* @param upsertRateListRequestSupplier The upsertRateListRequestSupplier parameter
* @param winkVersion The winkVersion parameter
* @return ResponseSpec
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
*/
public ResponseSpec updateRateListWithResponseSpec(String hotelIdentifier, String masterRateIdentifier, UpsertRateListRequestSupplier upsertRateListRequestSupplier, String winkVersion) throws WebClientResponseException {
return updateRateListRequestCreation(hotelIdentifier, masterRateIdentifier, upsertRateListRequestSupplier, winkVersion);
}
}