Class PromotionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<RemoveEntryResponse>removeRateModifier(String hotelIdentifier, String promotionIdentifier, String accept) Delete Promotion Delete a promotion by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>>removeRateModifierWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String accept) reactor.core.publisher.Mono<RateModifierView>savePromotion(String hotelIdentifier, RateModifier rateModifier) Create Promotion Create a new promotionreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>>savePromotionWithHttpInfo(String hotelIdentifier, RateModifier rateModifier) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<RateModifierView>showPromotion(String hotelIdentifier, String promotionIdentifier, String accept) Show Promotion Retrieve a rate modifier by its identifierreactor.core.publisher.Flux<RateModifierView>showPromotions(String hotelIdentifier, String accept) Show Promotions Retrieve list of promotions for propertyreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RateModifierView>>>showPromotionsWithHttpInfo(String hotelIdentifier, String accept) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>>showPromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String accept) reactor.core.publisher.Mono<RateModifierView>updatePromotion(String hotelIdentifier, String promotionIdentifier, RateModifier rateModifier) Update Promotion Update an existing promotion by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>>updatePromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, RateModifier rateModifier)
-
Constructor Details
-
PromotionApi
public PromotionApi() -
PromotionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
removeRateModifier
public reactor.core.publisher.Mono<RemoveEntryResponse> removeRateModifier(String hotelIdentifier, String promotionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Delete Promotion Delete a promotion by its identifier400 - Bad Request
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
405 - Method Not Allowed
415 - Unsupported Media Type
403 - Forbidden
401 - Unauthorized
202 - Accepted
- Parameters:
hotelIdentifier- Remove a promotion owned by this hotel identifier.promotionIdentifier- Remove a promotion 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
-
removeRateModifierWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removeRateModifierWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
savePromotion
public reactor.core.publisher.Mono<RateModifierView> savePromotion(String hotelIdentifier, RateModifier rateModifier) throws org.springframework.web.reactive.function.client.WebClientResponseException Create Promotion Create a new promotion400 - Bad Request
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
405 - Method Not Allowed
415 - Unsupported Media Type
403 - Forbidden
401 - Unauthorized
201 - Created
- Parameters:
hotelIdentifier- Create new promotion and associate with this hotel identifier.rateModifier- The rateModifier parameter- Returns:
- RateModifierView
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
savePromotionWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>> savePromotionWithHttpInfo(String hotelIdentifier, RateModifier rateModifier) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
showPromotion
public reactor.core.publisher.Mono<RateModifierView> showPromotion(String hotelIdentifier, String promotionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Show Promotion Retrieve a rate modifier by its identifier400 - Bad Request
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
405 - Method Not Allowed
415 - Unsupported Media Type
403 - Forbidden
401 - Unauthorized
200 - OK
- Parameters:
hotelIdentifier- Show single promotion owned by this hotel identifier.promotionIdentifier- Show single promotion with this identifier.accept- The accept parameter- Returns:
- RateModifierView
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
showPromotionWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>> showPromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
showPromotions
public reactor.core.publisher.Flux<RateModifierView> showPromotions(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Show Promotions Retrieve list of promotions for property400 - Bad Request
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
405 - Method Not Allowed
415 - Unsupported Media Type
403 - Forbidden
401 - Unauthorized
200 - OK
- Parameters:
hotelIdentifier- Show all promotions owned by this hotel identifier.accept- The accept parameter- Returns:
- List<RateModifierView>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
showPromotionsWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RateModifierView>>> showPromotionsWithHttpInfo(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
updatePromotion
public reactor.core.publisher.Mono<RateModifierView> updatePromotion(String hotelIdentifier, String promotionIdentifier, RateModifier rateModifier) throws org.springframework.web.reactive.function.client.WebClientResponseException Update Promotion Update an existing promotion by its identifier400 - Bad Request
500 - Internal Server Error
404 - Not Found
503 - Service Unavailable
405 - Method Not Allowed
415 - Unsupported Media Type
403 - Forbidden
401 - Unauthorized
200 - OK
- Parameters:
hotelIdentifier- Update existing promotion owned by this hotel identifier.promotionIdentifier- Update existing promotion with this identifier.rateModifier- The rateModifier parameter- Returns:
- RateModifierView
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
updatePromotionWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>> updatePromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, RateModifier rateModifier) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-