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

travel.wink.sdk.extranet.facilities.api.GuestRoomApi Maven / Gradle / Ivy

The newest version!
package travel.wink.sdk.extranet.facilities.api;

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

import travel.wink.sdk.extranet.facilities.model.DuplicateGuestRoomRequestSupplier;
import java.io.File;
import travel.wink.sdk.extranet.facilities.model.GenericErrorMessage;
import travel.wink.sdk.extranet.facilities.model.GuestRoomView;
import travel.wink.sdk.extranet.facilities.model.GuestRoomViewSupplier;
import travel.wink.sdk.extranet.facilities.model.ShowSpa400Response;
import travel.wink.sdk.extranet.facilities.model.UpsertGuestRoomRequestSupplier;

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-11-04T20:29:17.911955301+07:00[Asia/Bangkok]")
public class GuestRoomApi {
    private ApiClient apiClient;

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

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

    public ApiClient getApiClient() {
        return apiClient;
    }

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

    /**
     * Create Guest Room
     * create a new room type
     * 

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Create room type owned by this property identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec createGuestRoomRequestCreation(String propertyIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = upsertGuestRoomRequestSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling createGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'upsertGuestRoomRequestSupplier' is set if (upsertGuestRoomRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'upsertGuestRoomRequestSupplier' when calling createGuestRoom", 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}/facility/guest-room", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Create Guest Room * create a new room type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Create room type owned by this property identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono createGuestRoom(String propertyIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createGuestRoomRequestCreation(propertyIdentifier, upsertGuestRoomRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Create Guest Room * create a new room type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Create room type owned by this property identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> createGuestRoomWithHttpInfo(String propertyIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createGuestRoomRequestCreation(propertyIdentifier, upsertGuestRoomRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Create Guest Room * create a new room type *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Create room type owned by this property identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec createGuestRoomWithResponseSpec(String propertyIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { return createGuestRoomRequestCreation(propertyIdentifier, upsertGuestRoomRequestSupplier, winkVersion); } /** * Duplicate Guest Room * Create a new duplicate of a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Duplicate room type owned by this property identifier * @param guestRoomIdentifier Duplicate room type with this identifier * @param duplicateGuestRoomRequestSupplier The duplicateGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec duplicateGuestRoomRequestCreation(String propertyIdentifier, String guestRoomIdentifier, DuplicateGuestRoomRequestSupplier duplicateGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = duplicateGuestRoomRequestSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling duplicateGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'guestRoomIdentifier' is set if (guestRoomIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'guestRoomIdentifier' when calling duplicateGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'duplicateGuestRoomRequestSupplier' is set if (duplicateGuestRoomRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'duplicateGuestRoomRequestSupplier' when calling duplicateGuestRoom", 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("guestRoomIdentifier", guestRoomIdentifier); 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}/facility/guest-room/{guestRoomIdentifier}/duplicate", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Duplicate Guest Room * Create a new duplicate of a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Duplicate room type owned by this property identifier * @param guestRoomIdentifier Duplicate room type with this identifier * @param duplicateGuestRoomRequestSupplier The duplicateGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono duplicateGuestRoom(String propertyIdentifier, String guestRoomIdentifier, DuplicateGuestRoomRequestSupplier duplicateGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return duplicateGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, duplicateGuestRoomRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Duplicate Guest Room * Create a new duplicate of a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Duplicate room type owned by this property identifier * @param guestRoomIdentifier Duplicate room type with this identifier * @param duplicateGuestRoomRequestSupplier The duplicateGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> duplicateGuestRoomWithHttpInfo(String propertyIdentifier, String guestRoomIdentifier, DuplicateGuestRoomRequestSupplier duplicateGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return duplicateGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, duplicateGuestRoomRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Duplicate Guest Room * Create a new duplicate of a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

201 - Created * @param propertyIdentifier Duplicate room type owned by this property identifier * @param guestRoomIdentifier Duplicate room type with this identifier * @param duplicateGuestRoomRequestSupplier The duplicateGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec duplicateGuestRoomWithResponseSpec(String propertyIdentifier, String guestRoomIdentifier, DuplicateGuestRoomRequestSupplier duplicateGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { return duplicateGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, duplicateGuestRoomRequestSupplier, winkVersion); } /** * Delete Guest Room * Remove a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type owned by this property identifier * @param guestRoomIdentifier Remove room type with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GuestRoomView * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec removeGuestRoomRequestCreation(String propertyIdentifier, String guestRoomIdentifier, 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 removeGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'guestRoomIdentifier' is set if (guestRoomIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'guestRoomIdentifier' when calling removeGuestRoom", 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("guestRoomIdentifier", guestRoomIdentifier); 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}/facility/guest-room/{guestRoomIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete Guest Room * Remove a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type owned by this property identifier * @param guestRoomIdentifier Remove room type with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GuestRoomView * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono removeGuestRoom(String propertyIdentifier, String guestRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Delete Guest Room * Remove a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type owned by this property identifier * @param guestRoomIdentifier Remove room type with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<GuestRoomView> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> removeGuestRoomWithHttpInfo(String propertyIdentifier, String guestRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Delete Guest Room * Remove a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type owned by this property identifier * @param guestRoomIdentifier Remove room type 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 removeGuestRoomWithResponseSpec(String propertyIdentifier, String guestRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException { return removeGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, winkVersion, accept); } /** * Delete Guest Room Multimedia * Remove a room's video or image by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type media owned by this property identifier * @param guestRoomIdentifier Remove room type media with this identifier * @param multimediaIdentifier Remove media with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GuestRoomView * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec removeMultimedia2RequestCreation(String propertyIdentifier, String guestRoomIdentifier, String multimediaIdentifier, 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 removeMultimedia2", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'guestRoomIdentifier' is set if (guestRoomIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'guestRoomIdentifier' when calling removeMultimedia2", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'multimediaIdentifier' is set if (multimediaIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'multimediaIdentifier' when calling removeMultimedia2", 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("guestRoomIdentifier", guestRoomIdentifier); pathParams.put("multimediaIdentifier", multimediaIdentifier); 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}/facility/guest-room/{guestRoomIdentifier}/multimedia/{multimediaIdentifier}", HttpMethod.DELETE, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Delete Guest Room Multimedia * Remove a room's video or image by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type media owned by this property identifier * @param guestRoomIdentifier Remove room type media with this identifier * @param multimediaIdentifier Remove media with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GuestRoomView * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono removeMultimedia2(String propertyIdentifier, String guestRoomIdentifier, String multimediaIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeMultimedia2RequestCreation(propertyIdentifier, guestRoomIdentifier, multimediaIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Delete Guest Room Multimedia * Remove a room's video or image by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type media owned by this property identifier * @param guestRoomIdentifier Remove room type media with this identifier * @param multimediaIdentifier Remove media with this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<GuestRoomView> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> removeMultimedia2WithHttpInfo(String propertyIdentifier, String guestRoomIdentifier, String multimediaIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return removeMultimedia2RequestCreation(propertyIdentifier, guestRoomIdentifier, multimediaIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Delete Guest Room Multimedia * Remove a room's video or image by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Remove room type media owned by this property identifier * @param guestRoomIdentifier Remove room type media with this identifier * @param multimediaIdentifier Remove media 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 removeMultimedia2WithResponseSpec(String propertyIdentifier, String guestRoomIdentifier, String multimediaIdentifier, String winkVersion, String accept) throws WebClientResponseException { return removeMultimedia2RequestCreation(propertyIdentifier, guestRoomIdentifier, multimediaIdentifier, winkVersion, accept); } /** * Show Guest Room * Retrieve a room type by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show room type owned by this property identifier * @param guestRoomIdentifier Show room type identified by this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showGuestRoomRequestCreation(String propertyIdentifier, String guestRoomIdentifier, 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 showGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'guestRoomIdentifier' is set if (guestRoomIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'guestRoomIdentifier' when calling showGuestRoom", 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("guestRoomIdentifier", guestRoomIdentifier); 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}/facility/guest-room/{guestRoomIdentifier}", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Guest Room * Retrieve a room type by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show room type owned by this property identifier * @param guestRoomIdentifier Show room type identified by this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono showGuestRoom(String propertyIdentifier, String guestRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, winkVersion, accept).bodyToMono(localVarReturnType); } /** * Show Guest Room * Retrieve a room type by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show room type owned by this property identifier * @param guestRoomIdentifier Show room type identified by this identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> showGuestRoomWithHttpInfo(String propertyIdentifier, String guestRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, winkVersion, accept).toEntity(localVarReturnType); } /** * Show Guest Room * Retrieve a room type by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show room type owned by this property identifier * @param guestRoomIdentifier Show room type identified by 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 showGuestRoomWithResponseSpec(String propertyIdentifier, String guestRoomIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, winkVersion, accept); } /** * Show Guest Rooms * Retrieve list of rooms *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show list of room types owned by this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec showGuestRoomsRequestCreation(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 showGuestRooms", 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}/facility/guest-room/list", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Show Guest Rooms * Retrieve list of rooms *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show list of room types owned by this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return List<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Flux showGuestRooms(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showGuestRoomsRequestCreation(propertyIdentifier, winkVersion, accept).bodyToFlux(localVarReturnType); } /** * Show Guest Rooms * Retrieve list of rooms *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show list of room types owned by this property identifier * @param winkVersion The winkVersion parameter * @param accept The accept parameter * @return ResponseEntity<List<GuestRoomViewSupplier>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono>> showGuestRoomsWithHttpInfo(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return showGuestRoomsRequestCreation(propertyIdentifier, winkVersion, accept).toEntityList(localVarReturnType); } /** * Show Guest Rooms * Retrieve list of rooms *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Show list of room types owned by 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 showGuestRoomsWithResponseSpec(String propertyIdentifier, String winkVersion, String accept) throws WebClientResponseException { return showGuestRoomsRequestCreation(propertyIdentifier, winkVersion, accept); } /** * Update Guest Room * Update a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Update room type owned by this property identifier * @param guestRoomIdentifier Update room type with this identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec updateGuestRoomRequestCreation(String propertyIdentifier, String guestRoomIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { Object postBody = upsertGuestRoomRequestSupplier; // verify the required parameter 'propertyIdentifier' is set if (propertyIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'propertyIdentifier' when calling updateGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'guestRoomIdentifier' is set if (guestRoomIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'guestRoomIdentifier' when calling updateGuestRoom", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'upsertGuestRoomRequestSupplier' is set if (upsertGuestRoomRequestSupplier == null) { throw new WebClientResponseException("Missing the required parameter 'upsertGuestRoomRequestSupplier' when calling updateGuestRoom", 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("guestRoomIdentifier", guestRoomIdentifier); 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}/facility/guest-room/{guestRoomIdentifier}", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Update Guest Room * Update a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Update room type owned by this property identifier * @param guestRoomIdentifier Update room type with this identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono updateGuestRoom(String propertyIdentifier, String guestRoomIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, upsertGuestRoomRequestSupplier, winkVersion).bodyToMono(localVarReturnType); } /** * Update Guest Room * Update a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Update room type owned by this property identifier * @param guestRoomIdentifier Update room type with this identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseEntity<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> updateGuestRoomWithHttpInfo(String propertyIdentifier, String guestRoomIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, upsertGuestRoomRequestSupplier, winkVersion).toEntity(localVarReturnType); } /** * Update Guest Room * Update a room by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

200 - OK * @param propertyIdentifier Update room type owned by this property identifier * @param guestRoomIdentifier Update room type with this identifier * @param upsertGuestRoomRequestSupplier The upsertGuestRoomRequestSupplier parameter * @param winkVersion The winkVersion parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec updateGuestRoomWithResponseSpec(String propertyIdentifier, String guestRoomIdentifier, UpsertGuestRoomRequestSupplier upsertGuestRoomRequestSupplier, String winkVersion) throws WebClientResponseException { return updateGuestRoomRequestCreation(propertyIdentifier, guestRoomIdentifier, upsertGuestRoomRequestSupplier, winkVersion); } /** * Add Multimedia to Room * Uploads a videos and/or images to a room identified by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

207 - Multi-Status * @param propertyIdentifier Upload media for room type owned by this property identifier * @param guestRoomIdentifier Upload media for room type with this identifier * @param files The files parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ private ResponseSpec uploadGuestRoomMediaRequestCreation(String propertyIdentifier, String guestRoomIdentifier, List files) 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 uploadGuestRoomMedia", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'guestRoomIdentifier' is set if (guestRoomIdentifier == null) { throw new WebClientResponseException("Missing the required parameter 'guestRoomIdentifier' when calling uploadGuestRoomMedia", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null); } // verify the required parameter 'files' is set if (files == null) { throw new WebClientResponseException("Missing the required parameter 'files' when calling uploadGuestRoomMedia", 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("guestRoomIdentifier", guestRoomIdentifier); final MultiValueMap queryParams = new LinkedMultiValueMap(); final HttpHeaders headerParams = new HttpHeaders(); final MultiValueMap cookieParams = new LinkedMultiValueMap(); final MultiValueMap formParams = new LinkedMultiValueMap(); if (files != null) formParams.addAll("files", files.stream().map(FileSystemResource::new).collect(Collectors.toList())); final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "text/plain", "*/*" }; final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "multipart/form-data" }; final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2ClientCredentials" }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return apiClient.invokeAPI("/api/property/{propertyIdentifier}/facility/guest-room/{guestRoomIdentifier}/multimedia", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Add Multimedia to Room * Uploads a videos and/or images to a room identified by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

207 - Multi-Status * @param propertyIdentifier Upload media for room type owned by this property identifier * @param guestRoomIdentifier Upload media for room type with this identifier * @param files The files parameter * @return GuestRoomViewSupplier * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono uploadGuestRoomMedia(String propertyIdentifier, String guestRoomIdentifier, List files) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadGuestRoomMediaRequestCreation(propertyIdentifier, guestRoomIdentifier, files).bodyToMono(localVarReturnType); } /** * Add Multimedia to Room * Uploads a videos and/or images to a room identified by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

207 - Multi-Status * @param propertyIdentifier Upload media for room type owned by this property identifier * @param guestRoomIdentifier Upload media for room type with this identifier * @param files The files parameter * @return ResponseEntity<GuestRoomViewSupplier> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public Mono> uploadGuestRoomMediaWithHttpInfo(String propertyIdentifier, String guestRoomIdentifier, List files) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadGuestRoomMediaRequestCreation(propertyIdentifier, guestRoomIdentifier, files).toEntity(localVarReturnType); } /** * Add Multimedia to Room * Uploads a videos and/or images to a room identified by its identifier *

500 - Internal Server Error *

403 - Forbidden *

401 - Unauthorized *

400 - Bad Request *

207 - Multi-Status * @param propertyIdentifier Upload media for room type owned by this property identifier * @param guestRoomIdentifier Upload media for room type with this identifier * @param files The files parameter * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ public ResponseSpec uploadGuestRoomMediaWithResponseSpec(String propertyIdentifier, String guestRoomIdentifier, List files) throws WebClientResponseException { return uploadGuestRoomMediaRequestCreation(propertyIdentifier, guestRoomIdentifier, files); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy