Class CancellationPolicyApi

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

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

    • CancellationPolicyApi

      public CancellationPolicyApi()
    • CancellationPolicyApi

      @Autowired public CancellationPolicyApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createCancellationPolicy

      public reactor.core.publisher.Mono<CancellationPolicyView> createCancellationPolicy(String hotelIdentifier, UpsertCancellationPolicyRequest upsertCancellationPolicyRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Cancellation Policy Create a new cancellation policy

      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 cancellation policy and associate it with by this hotel identifier.
      upsertCancellationPolicyRequest - The upsertCancellationPolicyRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      CancellationPolicyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createCancellationPolicyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyView>> createCancellationPolicyWithHttpInfo(String hotelIdentifier, UpsertCancellationPolicyRequest upsertCancellationPolicyRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • isCancellationPolicyRemovable

      public reactor.core.publisher.Mono<CancellationPolicyRemovableResponse> isCancellationPolicyRemovable(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Verify Removable Check if a cancellation policy is removable. If a cancellation policy is associated / linked with a rate plan, 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 cancellation policy is removable and owned by this hotel identifier.
      cancellationPolicyIdentifier - Verify if cancellation policy is removable identified by this identifier.
      winkVersion - The winkVersion parameter
      Returns:
      CancellationPolicyRemovableResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isCancellationPolicyRemovableWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyRemovableResponse>> isCancellationPolicyRemovableWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeCancellationPolicy

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Cancellation Policy Delete a cancellation policy 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 - Delete cancellation policy owned by this hotel identifier.
      cancellationPolicyIdentifier - Delete cancellation policy 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
    • removeCancellationPolicyWithHttpInfo

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

      public reactor.core.publisher.Mono<CancellationPolicyView> showCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Cancellation Policy Retrieve a cancellation policy 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 cancellation policy owned by this hotel identifier.
      cancellationPolicyIdentifier - Show single cancellation policy with this identifier.
      winkVersion - The winkVersion parameter
      Returns:
      CancellationPolicyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCancellationPolicyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyView>> showCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showCancellationPolicyList

      public reactor.core.publisher.Flux<CancellationPolicyView> showCancellationPolicyList(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Cancellation Policies Retrieve list of cancellation policies 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 - List all cancellation policies for this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      List<CancellationPolicyView>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCancellationPolicyListWithHttpInfo

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

      public reactor.core.publisher.Mono<CancellationPolicyView> updateCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequest upsertCancellationPolicyRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Cancellation Policy Update a cancellation policy 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 cancellation policy owned by this hotel identifier.
      cancellationPolicyIdentifier - Update an existing cancellation policy with this identifier.
      upsertCancellationPolicyRequest - The upsertCancellationPolicyRequest parameter
      winkVersion - The winkVersion parameter
      Returns:
      CancellationPolicyView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCancellationPolicyWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyView>> updateCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequest upsertCancellationPolicyRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException