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

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

package travel.wink.sdk.extranet.booking.api;

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

import travel.wink.sdk.extranet.booking.model.BookingAnalyticsSupplier;
import travel.wink.sdk.extranet.booking.model.BookingCancellableSupplier;
import travel.wink.sdk.extranet.booking.model.BookingOverviewRequestSupplier;
import travel.wink.sdk.extranet.booking.model.BookingViewSupplier;
import travel.wink.sdk.extranet.booking.model.BookingViewSupplierDetails;
import travel.wink.sdk.extranet.booking.model.BooleanResponseSupplier;
import travel.wink.sdk.extranet.booking.model.CancellationDetailSupplier;
import travel.wink.sdk.extranet.booking.model.GenericErrorMessage;
import travel.wink.sdk.extranet.booking.model.GroupedBookingSalesMetricsSupplierDetails;
import travel.wink.sdk.extranet.booking.model.KeyValuePairSupplier;
import travel.wink.sdk.extranet.booking.model.PageBookingViewSupplier;
import travel.wink.sdk.extranet.booking.model.PropertyBookingRefundRequestSupplier;
import travel.wink.sdk.extranet.booking.model.ShowReview400Response;
import travel.wink.sdk.extranet.booking.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-10-04T20:22:08.343418683+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.
     * 

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { Object postBody = cancellationDetailSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' 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("propertyIdentifier", propertyIdentifier); 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/property/{propertyIdentifier}/booking/{bookingIdentifier}/cancel", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Cancel Booking * Booking is cancelled by the property. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return cancelHotelBookingRequestCreation(propertyIdentifier, bookingIdentifier, cancellationDetailSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Cancel Booking * Booking is cancelled by the property. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return cancelHotelBookingRequestCreation(propertyIdentifier, bookingIdentifier, cancellationDetailSupplier, winkVersion).toEntity(localVarReturnType); } /** * Cancel Booking * Booking is cancelled by the property. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, CancellationDetailSupplier cancellationDetailSupplier, String winkVersion) throws WebClientResponseException { return cancelHotelBookingRequestCreation(propertyIdentifier, 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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 * @param accept The accept parameter * @return BookingCancellableSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec isBookingCancellableRequestCreation(String propertyIdentifier, String bookingIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling 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("propertyIdentifier", propertyIdentifier); 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)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec isBookingCancellableWithResponseSpec(String propertyIdentifier, String bookingIdentifier, String winkVersion, String accept) throws WebClientResponseException { return isBookingCancellableRequestCreation(propertyIdentifier, bookingIdentifier, winkVersion, accept); } /** * 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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = propertyBookingRefundRequestSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' 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("propertyIdentifier", propertyIdentifier); 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/property/{propertyIdentifier}/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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return requestRefundRequestCreation(propertyIdentifier, 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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return requestRefundRequestCreation(propertyIdentifier, 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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, String bookingIdentifier, PropertyBookingRefundRequestSupplier propertyBookingRefundRequestSupplier, String winkVersion) throws WebClientResponseException { return requestRefundRequestCreation(propertyIdentifier, bookingIdentifier, propertyBookingRefundRequestSupplier, winkVersion); } /** * Resend Booking Confirmation * Resends booking confirmation email to traveler. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Booking owner * @param bookingIdentifier Booking identifier * @param body Empty request body * @param winkVersion The winkVersion parameter * @return BooleanResponseSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono resendBookingConfirmationEmail(String propertyIdentifier, String bookingIdentifier, Object body, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return resendBookingConfirmationEmailRequestCreation(propertyIdentifier, bookingIdentifier, body, winkVersion).bodyToMono(localVarReturnType); } /** * Resend Booking Confirmation * Resends booking confirmation email to traveler. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Booking owner * @param bookingIdentifier Booking identifier * @param body Empty request body * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec resendBookingConfirmationEmailWithResponseSpec(String propertyIdentifier, String bookingIdentifier, Object body, String winkVersion) throws WebClientResponseException { return resendBookingConfirmationEmailRequestCreation(propertyIdentifier, bookingIdentifier, body, 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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showActiveAffiliatesRequestCreation(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showActiveAffiliates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("propertyIdentifier", propertyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showActiveAffiliates(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveAffiliatesRequestCreation(propertyIdentifier, winkVersion, accept).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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showActiveAffiliatesWithHttpInfo(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveAffiliatesRequestCreation(propertyIdentifier, winkVersion, accept).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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show active affiliates for hotel with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showActiveAffiliatesWithResponseSpec(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showActiveAffiliatesRequestCreation(propertyIdentifier, winkVersion, accept); } /** * 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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booked master rates for this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showActiveMasterRatesRequestCreation(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showActiveMasterRates", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("propertyIdentifier", propertyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booked master rates for this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<KeyValuePairSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showActiveMasterRates(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveMasterRatesRequestCreation(propertyIdentifier, winkVersion, accept).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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booked master rates for this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<KeyValuePairSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showActiveMasterRatesWithHttpInfo(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showActiveMasterRatesRequestCreation(propertyIdentifier, winkVersion, accept).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. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booked master rates for this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showActiveMasterRatesWithResponseSpec(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showActiveMasterRatesRequestCreation(propertyIdentifier, winkVersion, accept); } /** * Property Booking Analytics * Basic booking analytics data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = bookingOverviewRequestSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' 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("propertyIdentifier", propertyIdentifier); 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/property/{propertyIdentifier}/booking/analytics", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Property Booking Analytics * Basic booking analytics data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingAnalyticsRequestCreation(propertyIdentifier, bookingOverviewRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Property Booking Analytics * Basic booking analytics data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingAnalyticsRequestCreation(propertyIdentifier, bookingOverviewRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Property Booking Analytics * Basic booking analytics data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, BookingOverviewRequestSupplier bookingOverviewRequestSupplier, String winkVersion) throws WebClientResponseException { return showBookingAnalyticsRequestCreation(propertyIdentifier, bookingOverviewRequestSupplier, winkVersion); } /** * Property Booking Overview * Basic booking overview data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booking owned by this hotel * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GroupedBookingSalesMetricsSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showBookingOverviewRequestCreation(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showBookingOverview", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("propertyIdentifier", propertyIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (winkVersion != null) headerParams.add("Wink-Version", apiClient.parameterToString(winkVersion)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/booking/overview", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Property Booking Overview * Basic booking overview data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booking owned by this hotel * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GroupedBookingSalesMetricsSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showBookingOverview(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showBookingOverviewRequestCreation(propertyIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Property Booking Overview * Basic booking overview data *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booking owned by this hotel * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showBookingOverviewWithResponseSpec(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showBookingOverviewRequestCreation(propertyIdentifier, winkVersion, accept); } /** * Show Booking * Retrieve a single booking specific by its identifier. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show booking owned by this hotel * @param bookingIdentifier Show booking with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return BookingViewSupplierDetails * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelBookingRequestCreation(String propertyIdentifier, String bookingIdentifier, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling 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("propertyIdentifier", propertyIdentifier); 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)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/booking/{bookingIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Booking * Retrieve a single booking specific by its identifier. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { Object postBody = stateSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' 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("propertyIdentifier", propertyIdentifier); 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/property/{propertyIdentifier}/booking/grid", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Search Bookings * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookingsRequestCreation(propertyIdentifier, stateSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Search Bookings * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 propertyIdentifier, StateSupplier stateSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookingsRequestCreation(propertyIdentifier, stateSupplier, winkVersion).toEntity(localVarReturnType); } /** * Search Bookings * Retrieve page of bookings for a specific hotel with advanced filtering rules. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

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

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 * @param accept The accept parameter * @return PageBookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showHotelBookings1RequestCreation(String propertyIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion, String accept) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling showHotelBookings1", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // create path and map variables final Map pathParams = new HashMap(); pathParams.put("propertyIdentifier", propertyIdentifier); 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)); if (accept != null) headerParams.add("Accept", apiClient.parameterToString(accept)); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/booking/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 * @param accept The accept parameter * @return PageBookingViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showHotelBookings1(String propertyIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookings1RequestCreation(propertyIdentifier, state, pageNumber, maxResults, search, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 * @param accept The accept parameter * @return ResponseEntity<PageBookingViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showHotelBookings1WithHttpInfo(String propertyIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showHotelBookings1RequestCreation(propertyIdentifier, state, pageNumber, maxResults, search, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Bookings * Retrieve bookings for hotel with simple filter rules. *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier 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 * @param accept The accept parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec showHotelBookings1WithResponseSpec(String propertyIdentifier, String state, Integer pageNumber, Integer maxResults, String search, String winkVersion, String accept) throws WebClientResponseException { return showHotelBookings1RequestCreation(propertyIdentifier, state, pageNumber, maxResults, search, winkVersion, accept); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy