Class CancellationPolicyApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-06T10:49:48.675577965+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<CancellationPolicyViewSupplier> createCancellationPolicy(String hotelIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, 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

      403 - Forbidden

      401 - Unauthorized

      201 - Created

      Parameters:
      hotelIdentifier - Create cancellation policy and associate it with by this hotel identifier.
      upsertCancellationPolicyRequestSupplier - The upsertCancellationPolicyRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      CancellationPolicyViewSupplier
      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<CancellationPolicyViewSupplier>> createCancellationPolicyWithHttpInfo(String hotelIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, 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

      403 - Forbidden

      401 - Unauthorized

      201 - Created

      Parameters:
      hotelIdentifier - Create cancellation policy and associate it with by this hotel identifier.
      upsertCancellationPolicyRequestSupplier - The upsertCancellationPolicyRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CancellationPolicyViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createCancellationPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec createCancellationPolicyWithResponseSpec(String hotelIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, 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

      403 - Forbidden

      401 - Unauthorized

      201 - Created

      Parameters:
      hotelIdentifier - Create cancellation policy and associate it with by this hotel identifier.
      upsertCancellationPolicyRequestSupplier - The upsertCancellationPolicyRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isCancellationPolicyRemovable

      public reactor.core.publisher.Mono<CancellationPolicyRemovableResponseSupplier> 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

      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:
      CancellationPolicyRemovableResponseSupplier
      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<CancellationPolicyRemovableResponseSupplier>> isCancellationPolicyRemovableWithHttpInfo(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

      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:
      ResponseEntity<CancellationPolicyRemovableResponseSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isCancellationPolicyRemovableWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec isCancellationPolicyRemovableWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeCancellationPolicy

      public reactor.core.publisher.Mono<RemoveEntryResponseSupplier> 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

      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:
      RemoveEntryResponseSupplier
      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<RemoveEntryResponseSupplier>> removeCancellationPolicyWithHttpInfo(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

      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:
      ResponseEntity<RemoveEntryResponseSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeCancellationPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec removeCancellationPolicyWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCancellationPolicy

      public reactor.core.publisher.Mono<CancellationPolicyViewSupplier> 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

      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:
      CancellationPolicyViewSupplier
      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<CancellationPolicyViewSupplier>> showCancellationPolicyWithHttpInfo(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

      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:
      ResponseEntity<CancellationPolicyViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCancellationPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showCancellationPolicyWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCancellationPolicyList

      public reactor.core.publisher.Flux<CancellationPolicyViewSupplier> 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

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - List all cancellation policies for this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      List<CancellationPolicyViewSupplier>
      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<CancellationPolicyViewSupplier>>> showCancellationPolicyListWithHttpInfo(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

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - List all cancellation policies for this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<List<CancellationPolicyViewSupplier>>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCancellationPolicyListWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showCancellationPolicyListWithResponseSpec(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

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - List all cancellation policies for this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCancellationPolicy

      public reactor.core.publisher.Mono<CancellationPolicyViewSupplier> updateCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, 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

      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.
      upsertCancellationPolicyRequestSupplier - The upsertCancellationPolicyRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      CancellationPolicyViewSupplier
      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<CancellationPolicyViewSupplier>> updateCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, 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

      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.
      upsertCancellationPolicyRequestSupplier - The upsertCancellationPolicyRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CancellationPolicyViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateCancellationPolicyWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updateCancellationPolicyWithResponseSpec(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, 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

      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.
      upsertCancellationPolicyRequestSupplier - The upsertCancellationPolicyRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API