Class CancellationPolicyApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-16T12:47:36.256942+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)
    • removableCancellationPolicy

      public reactor.core.publisher.Mono<CancellationPolicyRemovableResponse> removableCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, String accept) 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.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

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

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyRemovableResponse>> removableCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, String accept) 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 accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Cancellation Policy Delete a cancellation policy by its identifier

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      202 - Accepted

      Parameters:
      hotelIdentifier - Delete cancellation policy owned by this hotel identifier.
      cancellationPolicyIdentifier - Delete cancellation policy with this 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
    • removeCancellationPolicyWithHttpInfo

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

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

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      201 - Created

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

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyView>> saveCancellationPolicyWithHttpInfo(String hotelIdentifier, CancellationPolicy cancellationPolicy) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showCancellationPolicies

      public reactor.core.publisher.Flux<CancellationPolicyView> showCancellationPolicies(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Cancellation Policies Retrieve list of cancellation policies for property

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

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

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<CancellationPolicyView>>> showCancellationPoliciesWithHttpInfo(String hotelIdentifier, String accept) 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 accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Cancellation Policy Retrieve a cancellation policy by its identifier.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

      Parameters:
      hotelIdentifier - Show single cancellation policy owned by this hotel identifier.
      cancellationPolicyIdentifier - Show single cancellation policy with this identifier.
      accept - The accept 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 accept) 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, CancellationPolicy cancellationPolicy) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Cancellation Policy Update a cancellation policy by its identifier

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

      Parameters:
      hotelIdentifier - Update an existing cancellation policy owned by this hotel identifier.
      cancellationPolicyIdentifier - Update an existing cancellation policy with this identifier.
      cancellationPolicy - The cancellationPolicy 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, CancellationPolicy cancellationPolicy) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException