Class RatePlanApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<RatePlanView>createRatePlan(String hotelIdentifier, UpsertRatePlanRequest upsertRatePlanRequest) Create Rate Plan Create a new rate planreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanView>>createRatePlanWithHttpInfo(String hotelIdentifier, UpsertRatePlanRequest upsertRatePlanRequest) reactor.core.publisher.Mono<RatePlanRemovableResponse>removableRatePlan(String hotelIdentifier, String ratePlanIdentifier, String accept) Verify Removable Check if a rate plan is removable.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanRemovableResponse>>removableRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String accept) reactor.core.publisher.Mono<RemoveEntryResponse>removeRatePlan(String hotelIdentifier, String ratePlanIdentifier, String accept) Delete Rate Plan Remove a rate plan by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>>removeRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String accept) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<RatePlanView>showRatePlan(String hotelIdentifier, String ratePlanIdentifier, String accept) Show Rate Plan Retrieve a single rate plan identified by its identifierreactor.core.publisher.Flux<RatePlanView>showRatePlans(String hotelIdentifier, String accept) Show Rate Plans Retrieve list of rate plans for property.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RatePlanView>>>showRatePlansWithHttpInfo(String hotelIdentifier, String accept) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanView>>showRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String accept) reactor.core.publisher.Mono<RatePlanView>updateRatePlan(String hotelIdentifier, String ratePlanIdentifier, UpsertRatePlanRequest upsertRatePlanRequest) Update Rate Plan Update an existing rate plan by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RatePlanView>>updateRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, UpsertRatePlanRequest upsertRatePlanRequest)
-
Constructor Details
-
RatePlanApi
public RatePlanApi() -
RatePlanApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createRatePlan
public reactor.core.publisher.Mono<RatePlanView> createRatePlan(String hotelIdentifier, UpsertRatePlanRequest upsertRatePlanRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException Create Rate Plan Create a new rate plan503 - 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- 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) 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 accept) 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.accept- The accept 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 accept) 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 accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Delete Rate Plan Remove a rate plan 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- Remove rate plan owned by this hotel identifier.ratePlanIdentifier- Remove rate plan 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
-
removeRatePlanWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removeRatePlanWithHttpInfo(String hotelIdentifier, String ratePlanIdentifier, String accept) 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 accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Show Rate Plan Retrieve a single rate plan identified 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- Show single rate plan owned by this hotel identifier.ratePlanIdentifier- Show rate plan with this hotel identifier.accept- The accept 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 accept) 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 accept) 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.accept- The accept 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 accept) 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) throws org.springframework.web.reactive.function.client.WebClientResponseException Update Rate Plan Update an existing rate plan 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 rate plan owned by this hotel identifier.ratePlanIdentifier- Update an existing rate plan identified with this identifier.upsertRatePlanRequest- The upsertRatePlanRequest 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) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-