Class MasterRateApi

java.lang.Object
travel.wink.sdk.extranet.api.MasterRateApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-11T13:46:18.379510+07:00[Asia/Bangkok]") public class MasterRateApi extends Object
  • Constructor Details

    • MasterRateApi

      public MasterRateApi()
    • MasterRateApi

      @Autowired public MasterRateApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • removableMasterRate

      public reactor.core.publisher.Mono<RoomRateRemovableResponse> removableMasterRate(String hotelIdentifier, String masterRateIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify Removable Check if a master rate is removable. If a master is associated / linked with a promotion, it cannot be removed until the associated entity removes it first.

      503 - Service Unavailable

      400 - Bad Request

      500 - Internal Server Error

      404 - Not Found

      405 - Method Not Allowed

      415 - Unsupported Media Type

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Verify if master rate, owned by this hotel identifier, is removable.
      masterRateIdentifier - Verify if master rate, identified by this identifier, is removable.
      accept - The accept parameter
      Returns:
      RoomRateRemovableResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removableMasterRateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RoomRateRemovableResponse>> removableMasterRateWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeMasterRate

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeMasterRate(String hotelIdentifier, String masterRateIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Master Rate Delete a master rate by its identifier

      503 - Service Unavailable

      400 - Bad Request

      500 - Internal Server Error

      404 - Not Found

      405 - Method Not Allowed

      415 - Unsupported Media Type

      403 - Forbidden

      401 - Unauthorized

      202 - Accepted

      Parameters:
      hotelIdentifier - Remove master rate owned by this hotel identifier.
      masterRateIdentifier - Remove master rate with this hotel identifier.
      accept - The accept parameter
      Returns:
      RemoveEntryResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeMasterRateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removeMasterRateWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • saveMasterRate

      public reactor.core.publisher.Mono<MasterRateView> saveMasterRate(String hotelIdentifier, CreateMasterRateRequest createMasterRateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Master Rate Create a new master rate

      503 - Service Unavailable

      400 - Bad Request

      500 - Internal Server Error

      404 - Not Found

      405 - Method Not Allowed

      415 - Unsupported Media Type

      403 - Forbidden

      401 - Unauthorized

      201 - Created

      Parameters:
      hotelIdentifier - Create new master rate owned by this hotel identifier.
      createMasterRateRequest - The createMasterRateRequest parameter
      Returns:
      MasterRateView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • saveMasterRateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<MasterRateView>> saveMasterRateWithHttpInfo(String hotelIdentifier, CreateMasterRateRequest createMasterRateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showMasterRate

      public reactor.core.publisher.Mono<MasterRateView> showMasterRate(String hotelIdentifier, String masterRateIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Master Rate Retrieve a master rate by its identifier

      503 - Service Unavailable

      400 - Bad Request

      500 - Internal Server Error

      404 - Not Found

      405 - Method Not Allowed

      415 - Unsupported Media Type

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Show single master rate owned by this hotel identifier.
      masterRateIdentifier - Show single master rate with this identifier.
      accept - The accept parameter
      Returns:
      MasterRateView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showMasterRateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<MasterRateView>> showMasterRateWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showMasterRates1

      public reactor.core.publisher.Flux<MasterRateView> showMasterRates1(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Master Rates Retrieve list of master rates

      503 - Service Unavailable

      400 - Bad Request

      500 - Internal Server Error

      404 - Not Found

      405 - Method Not Allowed

      415 - Unsupported Media Type

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Show all master rates owned by this hotel identifier.
      accept - The accept parameter
      Returns:
      List<MasterRateView>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showMasterRates1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<MasterRateView>>> showMasterRates1WithHttpInfo(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateMasterRate

      public reactor.core.publisher.Mono<MasterRateView> updateMasterRate(String hotelIdentifier, String masterRateIdentifier, UpdateMasterRateRequest updateMasterRateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Master Rate Update a master rate by its identifier

      503 - Service Unavailable

      400 - Bad Request

      500 - Internal Server Error

      404 - Not Found

      405 - Method Not Allowed

      415 - Unsupported Media Type

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Update existing master rate owned by this hotel identifier.
      masterRateIdentifier - Update existing master rate with this identifier.
      updateMasterRateRequest - The updateMasterRateRequest parameter
      Returns:
      MasterRateView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateMasterRateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<MasterRateView>> updateMasterRateWithHttpInfo(String hotelIdentifier, String masterRateIdentifier, UpdateMasterRateRequest updateMasterRateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException