Class CancellationPolicyApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<CancellationPolicyViewSupplier>createCancellationPolicy(String hotelIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, String winkVersion) Create Cancellation Policy Create a new cancellation policyreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyViewSupplier>>createCancellationPolicyWithHttpInfo(String hotelIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, String winkVersion) reactor.core.publisher.Mono<CancellationPolicyRemovableResponseSupplier>isCancellationPolicyRemovable(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) Verify Removable Check if a cancellation policy is removable.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyRemovableResponseSupplier>>isCancellationPolicyRemovableWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) reactor.core.publisher.Mono<RemoveEntryResponseSupplier>removeCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) Delete Cancellation Policy Delete a cancellation policy by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponseSupplier>>removeCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<CancellationPolicyViewSupplier>showCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) Show Cancellation Policy Retrieve a cancellation policy by its identifier.reactor.core.publisher.Flux<CancellationPolicyViewSupplier>showCancellationPolicyList(String hotelIdentifier, String winkVersion) Show Cancellation Policies Retrieve list of cancellation policies for propertyreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<CancellationPolicyViewSupplier>>>showCancellationPolicyListWithHttpInfo(String hotelIdentifier, String winkVersion) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyViewSupplier>>showCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, String winkVersion) reactor.core.publisher.Mono<CancellationPolicyViewSupplier>updateCancellationPolicy(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, String winkVersion) Update Cancellation Policy Update a cancellation policy by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CancellationPolicyViewSupplier>>updateCancellationPolicyWithHttpInfo(String hotelIdentifier, String cancellationPolicyIdentifier, UpsertCancellationPolicyRequestSupplier upsertCancellationPolicyRequestSupplier, String winkVersion)
-
Constructor Details
-
CancellationPolicyApi
public CancellationPolicyApi() -
CancellationPolicyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 policy503 - 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.upsertCancellationPolicyRequestSupplier- The upsertCancellationPolicyRequestSupplier parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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
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:
- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 identifier503 - 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:
- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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
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:
- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 property503 - 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<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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
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 identifier503 - 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.upsertCancellationPolicyRequestSupplier- The upsertCancellationPolicyRequestSupplier parameterwinkVersion- 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 - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-