Class RatePlanApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-11-08T09:36:20.822132243+07:00[Asia/Bangkok]") public class RatePlanApi extends Object
  • Constructor Details

    • RatePlanApi

      public RatePlanApi()
    • RatePlanApi

      @Autowired public RatePlanApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createRatePlan

      public reactor.core.publisher.Mono<RatePlanView> createRatePlan(String hotelIdentifier, UpsertRatePlanRequest upsertRatePlanRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Rate Plan Create a new rate plan

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      201 - Created

      Parameters:
      hotelIdentifier - Create a new rate plan and associate it with this hotel identifier.
      upsertRatePlanRequest - The upsertRatePlanRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      RatePlanView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createRatePlanWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanView>> createRatePlanWithHttpInfo(String hotelIdentifier, UpsertRatePlanRequest upsertRatePlanRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removableRatePlan

      public reactor.core.publisher.Mono<RatePlanRemovableResponse> removableRatePlan(String hotelIdentifier, String ratePlanIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify Removable Check if a rate plan is removable. If a rate plan is associated / linked with a master rate, package or add-on, it cannot be removed until the associated entity removes it first.

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Verify if rate plan, owned by this hotel identifier, is removable.
      ratePlanIdentifier - Verify if rate plan, identified by this identifier, is removable.
      winkVersion - The winkVersion parameter
      Returns:
      RatePlanRemovableResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removableRatePlanWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanRemovableResponse>> removableRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeRatePlan

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeRatePlan(String hotelIdentifier, String ratePlanIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Rate Plan Remove a rate plan by its identifier

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      202 - Accepted

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

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removeRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRatePlan

      public reactor.core.publisher.Mono<RatePlanView> showRatePlan(String hotelIdentifier, String ratePlanIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Rate Plan Retrieve a single rate plan identified by its identifier

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Show single rate plan owned by this hotel identifier.
      ratePlanIdentifier - Show rate plan with this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      RatePlanView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showRatePlanWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanView>> showRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRatePlans

      public reactor.core.publisher.Flux<RatePlanView> showRatePlans(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Rate Plans Retrieve list of rate plans for property.

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Show list of rate plans owned by this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      List<RatePlanView>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showRatePlansWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RatePlanView>>> showRatePlansWithHttpInfo(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateRatePlan

      public reactor.core.publisher.Mono<RatePlanView> updateRatePlan(String hotelIdentifier, String ratePlanIdentifier, UpsertRatePlanRequest upsertRatePlanRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Rate Plan Update an existing rate plan by its identifier

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      404 - Not Found

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Update an existing rate plan owned by this hotel identifier.
      ratePlanIdentifier - Update an existing rate plan identified with this identifier.
      upsertRatePlanRequest - The upsertRatePlanRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      RatePlanView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateRatePlanWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanView>> updateRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, UpsertRatePlanRequest upsertRatePlanRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException