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

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

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

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

import travel.wink.sdk.extranet.model.BookingAnalyticsSupplier;
import travel.wink.sdk.extranet.model.BookingCancellableSupplier;
import travel.wink.sdk.extranet.model.BookingOverviewRequestSupplier;
import travel.wink.sdk.extranet.model.BookingViewSupplier;
import travel.wink.sdk.extranet.model.BookingViewSupplierDetails;
import travel.wink.sdk.extranet.model.BooleanResponseSupplier;
import travel.wink.sdk.extranet.model.CancellationDetailSupplier;
import travel.wink.sdk.extranet.model.GenericErrorMessage;
import travel.wink.sdk.extranet.model.GroupedBookingSalesMetricsSupplierDetails;
import travel.wink.sdk.extranet.model.KeyValuePairSupplier;
import travel.wink.sdk.extranet.model.PageBookingViewSupplier;
import travel.wink.sdk.extranet.model.PropertyBookingRefundRequestSupplier;
import travel.wink.sdk.extranet.model.ShowPropertyPolicy400Response;
import travel.wink.sdk.extranet.model.StateSupplier;

import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient.ResponseSpec;
import org.springframework.web.reactive.function.client.WebClientResponseException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import reactor.core.publisher.Mono;
import reactor.core.publisher.Flux;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T22:29:13.908295668+07:00[Asia/Bangkok]")
public class BookingApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Cancel Booking
     * Booking is cancelled by the 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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param cancellationDetailSupplier The cancellationDetailSupplier parameter * @param winkVersion The winkVersion parameter * @return BookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec cancelHotelBookingRequestCreation(String hotelIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { Object postBody = cancellationDetailSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling cancelHotelBooking", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'bookingIdentifier' is set if (bookingIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'bookingIdentifier' when calling cancelHotelBooking", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'cancellationDetailSupplier' is set if (cancellationDetailSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'cancellationDetailSupplier' when calling cancelHotelBooking", 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("bookingIdentifier", bookingIdentifier); 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}/booking/{bookingIdentifier}/cancel", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Cancel Booking * Booking is cancelled by the 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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param cancellationDetailSupplier The cancellationDetailSupplier parameter * @param winkVersion The winkVersion parameter * @return BookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono cancelHotelBooking(String hotelIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return cancelHotelBookingRequestCreation(hotelIdentifier, bookingIdentifier, cancellationDetailSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Cancel Booking * Booking is cancelled by the 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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param cancellationDetailSupplier The cancellationDetailSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<BookingViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> cancelHotelBookingWithHttpInfo(String hotelIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return cancelHotelBookingRequestCreation(hotelIdentifier, bookingIdentifier, cancellationDetailSupplier, winkVersion).toEntity(localVarReturnType); } /** * Cancel Booking * Booking is cancelled by the 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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param cancellationDetailSupplier The cancellationDetailSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec cancelHotelBookingWithResponseSpec(String hotelIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { return cancelHotelBookingRequestCreation(hotelIdentifier, bookingIdentifier, cancellationDetailSupplier, winkVersion); } /** * Is Booking Cancellable * Checks to see whether this booking (or group booking) can be cancelled by either the traveler or the hotel. *

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 Check if booking can be cancelled for hotel with this identifier * @param bookingIdentifier Check if booking can be cancelled with this identifier * @param winkVersion The winkVersion parameter * @return BookingCancellableSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec isBookingCancellableRequestCreation(String hotelIdentifier, String bookingIdentifier, 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 isBookingCancellable", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'bookingIdentifier' is set if (bookingIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'bookingIdentifier' when calling isBookingCancellable", 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("bookingIdentifier", bookingIdentifier); 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}/booking/{bookingIdentifier}/cancellable", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Is Booking Cancellable * Checks to see whether this booking (or group booking) can be cancelled by either the traveler or the hotel. *

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 Check if booking can be cancelled for hotel with this identifier * @param bookingIdentifier Check if booking can be cancelled with this identifier * @param winkVersion The winkVersion parameter * @return BookingCancellableSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono isBookingCancellable(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return isBookingCancellableRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Is Booking Cancellable * Checks to see whether this booking (or group booking) can be cancelled by either the traveler or the hotel. *

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 Check if booking can be cancelled for hotel with this identifier * @param bookingIdentifier Check if booking can be cancelled with this identifier * @param winkVersion The winkVersion parameter * @return ResponseEntity<BookingCancellableSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> isBookingCancellableWithHttpInfo(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return isBookingCancellableRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Is Booking Cancellable * Checks to see whether this booking (or group booking) can be cancelled by either the traveler or the hotel. *

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 Check if booking can be cancelled for hotel with this identifier * @param bookingIdentifier Check if booking can be cancelled with this identifier * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec isBookingCancellableWithResponseSpec(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { return isBookingCancellableRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion); } /** * Request refund * Under certain circumstances, a property can request a partial refund of the funds that were attributed to them even after a cancellation occurred or the while the funds have not been disbursed yet. *

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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param propertyBookingRefundRequestSupplier The propertyBookingRefundRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return BookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec requestRefundRequestCreation(String hotelIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = propertyBookingRefundRequestSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling requestRefund", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'bookingIdentifier' is set if (bookingIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'bookingIdentifier' when calling requestRefund", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'propertyBookingRefundRequestSupplier' is set if (propertyBookingRefundRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyBookingRefundRequestSupplier' when calling requestRefund", 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("bookingIdentifier", bookingIdentifier); 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}/booking/{bookingIdentifier}/request-refund", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Request refund * Under certain circumstances, a property can request a partial refund of the funds that were attributed to them even after a cancellation occurred or the while the funds have not been disbursed yet. *

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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param propertyBookingRefundRequestSupplier The propertyBookingRefundRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return BookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono requestRefund(String hotelIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return requestRefundRequestCreation(hotelIdentifier, bookingIdentifier, propertyBookingRefundRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Request refund * Under certain circumstances, a property can request a partial refund of the funds that were attributed to them even after a cancellation occurred or the while the funds have not been disbursed yet. *

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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param propertyBookingRefundRequestSupplier The propertyBookingRefundRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<BookingViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> requestRefundWithHttpInfo(String hotelIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return requestRefundRequestCreation(hotelIdentifier, bookingIdentifier, propertyBookingRefundRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Request refund * Under certain circumstances, a property can request a partial refund of the funds that were attributed to them even after a cancellation occurred or the while the funds have not been disbursed yet. *

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 Cancel booking for hotel with this identifier * @param bookingIdentifier Cancel booking with this identifier * @param propertyBookingRefundRequestSupplier The propertyBookingRefundRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec requestRefundWithResponseSpec(String hotelIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { return requestRefundRequestCreation(hotelIdentifier, bookingIdentifier, propertyBookingRefundRequestSupplier, winkVersion); } /** * Resend Booking Confirmation * Resends booking confirmation email to traveler. *

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 Booking owner * @param bookingIdentifier Booking identifier * @param winkVersion The winkVersion parameter * @return BooleanResponseSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec resendBookingConfirmationEmailRequestCreation(String hotelIdentifier, String bookingIdentifier, 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 resendBookingConfirmationEmail", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'bookingIdentifier' is set if (bookingIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'bookingIdentifier' when calling resendBookingConfirmationEmail", 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("bookingIdentifier", bookingIdentifier); 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}/booking/{bookingIdentifier}/resend", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Resend Booking Confirmation * Resends booking confirmation email to traveler. *

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 Booking owner * @param bookingIdentifier Booking identifier * @param winkVersion The winkVersion parameter * @return BooleanResponseSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono resendBookingConfirmationEmail(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return resendBookingConfirmationEmailRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Resend Booking Confirmation * Resends booking confirmation email to traveler. *

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 Booking owner * @param bookingIdentifier Booking identifier * @param winkVersion The winkVersion parameter * @return ResponseEntity<BooleanResponseSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> resendBookingConfirmationEmailWithHttpInfo(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return resendBookingConfirmationEmailRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Resend Booking Confirmation * Resends booking confirmation email to traveler. *

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 Booking owner * @param bookingIdentifier Booking identifier * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec resendBookingConfirmationEmailWithResponseSpec(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { return resendBookingConfirmationEmailRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion); } /** * Show Active Affiliates * Return a geo-name list of unique affiliates that have brought the property bookings. This is helpful data you can use to filter on within your dataset. *

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 active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showActiveAffiliatesRequestCreation(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 showActiveAffiliates", 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}/booking/owner/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Active Affiliates * Return a geo-name list of unique affiliates that have brought the property bookings. This is helpful data you can use to filter on within your dataset. *

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 active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showActiveAffiliates(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveAffiliatesRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show Active Affiliates * Return a geo-name list of unique affiliates that have brought the property bookings. This is helpful data you can use to filter on within your dataset. *

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 active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showActiveAffiliatesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveAffiliatesRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show Active Affiliates * Return a geo-name list of unique affiliates that have brought the property bookings. This is helpful data you can use to filter on within your dataset. *

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 active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showActiveAffiliatesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showActiveAffiliatesRequestCreation(hotelIdentifier, winkVersion); } /** * Show Active Master Rates * Return a geoname list of unique master rates that have been booked. This is helpful data you can use to filter on within your dataset. *

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 booked master rates for this hotel identifier * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showActiveMasterRatesRequestCreation(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 showActiveMasterRates", 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}/booking/roomrate/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Active Master Rates * Return a geoname list of unique master rates that have been booked. This is helpful data you can use to filter on within your dataset. *

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 booked master rates for this hotel identifier * @param winkVersion The winkVersion parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showActiveMasterRates(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveMasterRatesRequestCreation(hotelIdentifier, winkVersion).bodyToFlux(localVarReturnType); } /** * Show Active Master Rates * Return a geoname list of unique master rates that have been booked. This is helpful data you can use to filter on within your dataset. *

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 booked master rates for this hotel identifier * @param winkVersion The winkVersion parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showActiveMasterRatesWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveMasterRatesRequestCreation(hotelIdentifier, winkVersion).toEntityList(localVarReturnType); } /** * Show Active Master Rates * Return a geoname list of unique master rates that have been booked. This is helpful data you can use to filter on within your dataset. *

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 booked master rates for this hotel identifier * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showActiveMasterRatesWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showActiveMasterRatesRequestCreation(hotelIdentifier, winkVersion); } /** * Property Booking Analytics * Basic booking analytics data *

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 active booking count for hotel with this identifier * @param bookingOverviewRequestSupplier Overview request body * @param winkVersion The winkVersion parameter * @return BookingAnalyticsSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showBookingAnalyticsRequestCreation(String hotelIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = bookingOverviewRequestSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showBookingAnalytics", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'bookingOverviewRequestSupplier' is set if (bookingOverviewRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'bookingOverviewRequestSupplier' when calling showBookingAnalytics", 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}/booking/analytics", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Property Booking Analytics * Basic booking analytics data *

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 active booking count for hotel with this identifier * @param bookingOverviewRequestSupplier Overview request body * @param winkVersion The winkVersion parameter * @return BookingAnalyticsSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showBookingAnalytics(String hotelIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingAnalyticsRequestCreation(hotelIdentifier, bookingOverviewRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Property Booking Analytics * Basic booking analytics data *

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 active booking count for hotel with this identifier * @param bookingOverviewRequestSupplier Overview request body * @param winkVersion The winkVersion parameter * @return ResponseEntity<BookingAnalyticsSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showBookingAnalyticsWithHttpInfo(String hotelIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingAnalyticsRequestCreation(hotelIdentifier, bookingOverviewRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Property Booking Analytics * Basic booking analytics data *

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 active booking count for hotel with this identifier * @param bookingOverviewRequestSupplier Overview request body * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showBookingAnalyticsWithResponseSpec(String hotelIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { return showBookingAnalyticsRequestCreation(hotelIdentifier, bookingOverviewRequestSupplier, winkVersion); } /** * Property Booking Overview * Basic booking overview data *

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 booking owned by this hotel * @param winkVersion The winkVersion parameter * @return GroupedBookingSalesMetricsSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showBookingOverviewRequestCreation(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 showBookingOverview", 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}/booking/overview", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Property Booking Overview * Basic booking overview data *

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 booking owned by this hotel * @param winkVersion The winkVersion parameter * @return GroupedBookingSalesMetricsSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showBookingOverview(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingOverviewRequestCreation(hotelIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Property Booking Overview * Basic booking overview data *

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 booking owned by this hotel * @param winkVersion The winkVersion parameter * @return ResponseEntity<GroupedBookingSalesMetricsSupplierDetails> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showBookingOverviewWithHttpInfo(String hotelIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingOverviewRequestCreation(hotelIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Property Booking Overview * Basic booking overview data *

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 booking owned by this hotel * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showBookingOverviewWithResponseSpec(String hotelIdentifier, String winkVersion) throws WebClientResponseException { return showBookingOverviewRequestCreation(hotelIdentifier, winkVersion); } /** * Show Booking * Retrieve a single booking specific by its identifier. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier Show booking owned by this hotel * @param bookingIdentifier Show booking with this identifier * @param winkVersion The winkVersion parameter * @return BookingViewSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelBookingRequestCreation(String hotelIdentifier, String bookingIdentifier, 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 showHotelBooking", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'bookingIdentifier' is set if (bookingIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'bookingIdentifier' when calling showHotelBooking", 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("bookingIdentifier", bookingIdentifier); 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}/booking/{bookingIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Booking * Retrieve a single booking specific by its identifier. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier Show booking owned by this hotel * @param bookingIdentifier Show booking with this identifier * @param winkVersion The winkVersion parameter * @return BookingViewSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showHotelBooking(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookingRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion).bodyToMono(localVarReturnType); } /** * Show Booking * Retrieve a single booking specific by its identifier. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier Show booking owned by this hotel * @param bookingIdentifier Show booking with this identifier * @param winkVersion The winkVersion parameter * @return ResponseEntity<BookingViewSupplierDetails> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showHotelBookingWithHttpInfo(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookingRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion).toEntity(localVarReturnType); } /** * Show Booking * Retrieve a single booking specific by its identifier. *

503 - Service Unavailable *

400 - Bad Request *

405 - Method Not Allowed *

415 - Unsupported Media Type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

200 - OK * @param hotelIdentifier Show booking owned by this hotel * @param bookingIdentifier Show booking with this identifier * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showHotelBookingWithResponseSpec(String hotelIdentifier, String bookingIdentifier, String winkVersion) throws WebClientResponseException { return showHotelBookingRequestCreation(hotelIdentifier, bookingIdentifier, winkVersion); } /** * Show Bookings Grid * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

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 bookings for hotel with this identifier * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return PageBookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelBookingsRequestCreation(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { Object postBody = stateSupplier; // verify the required parameter 'hotelIdentifier' is set if (hotelIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'hotelIdentifier' when calling showHotelBookings", 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 showHotelBookings", 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}/booking/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Bookings Grid * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

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 bookings for hotel with this identifier * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return PageBookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showHotelBookings(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookingsRequestCreation(hotelIdentifier, stateSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Show Bookings Grid * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

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 bookings for hotel with this identifier * @param stateSupplier The stateSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<PageBookingViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showHotelBookingsWithHttpInfo(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookingsRequestCreation(hotelIdentifier, stateSupplier, winkVersion).toEntity(localVarReturnType); } /** * Show Bookings Grid * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

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 bookings for hotel with this identifier * @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 showHotelBookingsWithResponseSpec(String hotelIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { return showHotelBookingsRequestCreation(hotelIdentifier, stateSupplier, winkVersion); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

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 bookings for hotel with this identifier * @param state Filter on the booking state * @param pageNumber Paginate booking list * @param maxResults Limit number of records to return * @param search Filter on email, first or last name to further narrow down the result set * @param winkVersion The winkVersion parameter * @return PageBookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelBookings1RequestCreation(String hotelIdentifier, String state, Integer pageNumber, Integer maxResults, String search, 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 showHotelBookings1", 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(); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "state", state)); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "pageNumber", pageNumber)); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "maxResults", maxResults)); queryParams.putAll(apiClient.parameterToMultiValueMap(null, "search", search)); 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}/booking/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

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 bookings for hotel with this identifier * @param state Filter on the booking state * @param pageNumber Paginate booking list * @param maxResults Limit number of records to return * @param search Filter on email, first or last name to further narrow down the result set * @param winkVersion The winkVersion parameter * @return PageBookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showHotelBookings1(String hotelIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookings1RequestCreation(hotelIdentifier, state, pageNumber, maxResults, search, winkVersion).bodyToMono(localVarReturnType); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

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 bookings for hotel with this identifier * @param state Filter on the booking state * @param pageNumber Paginate booking list * @param maxResults Limit number of records to return * @param search Filter on email, first or last name to further narrow down the result set * @param winkVersion The winkVersion parameter * @return ResponseEntity<PageBookingViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showHotelBookings1WithHttpInfo(String hotelIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookings1RequestCreation(hotelIdentifier, state, pageNumber, maxResults, search, winkVersion).toEntity(localVarReturnType); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

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 bookings for hotel with this identifier * @param state Filter on the booking state * @param pageNumber Paginate booking list * @param maxResults Limit number of records to return * @param search Filter on email, first or last name to further narrow down the result set * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showHotelBookings1WithResponseSpec(String hotelIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion) throws WebClientResponseException { return showHotelBookings1RequestCreation(hotelIdentifier, state, pageNumber, maxResults, search, winkVersion); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy