Class PromotionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<RateModifierView>createPromotion(String hotelIdentifier, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) Create Promotion Create a new promotionreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>>createPromotionWithHttpInfo(String hotelIdentifier, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) reactor.core.publisher.Mono<RemoveEntryResponse>removeRateModifier(String hotelIdentifier, String promotionIdentifier, String winkVersion) Delete Promotion Delete a promotion by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>>removeRateModifierWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String winkVersion) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<RateModifierView>showPromotion(String hotelIdentifier, String promotionIdentifier, String winkVersion) Show Promotion Retrieve a rate modifier by its identifierreactor.core.publisher.Flux<RateModifierView>showPromotions(String hotelIdentifier, String winkVersion) Show Promotions Retrieve list of promotions for propertyreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RateModifierView>>>showPromotionsWithHttpInfo(String hotelIdentifier, String winkVersion) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>>showPromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String winkVersion) reactor.core.publisher.Mono<RateModifierView>updatePromotion(String hotelIdentifier, String promotionIdentifier, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) Update Promotion Update an existing promotion by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>>updatePromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion)
-
Constructor Details
-
PromotionApi
public PromotionApi() -
PromotionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createPromotion
public reactor.core.publisher.Mono<RateModifierView> createPromotion(String hotelIdentifier, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException Create Promotion Create a new promotion503 - 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 new promotion and associate with this hotel identifier.upsertRateModifierRequest- The upsertRateModifierRequest parameterwinkVersion- The winkVersion parameter- Returns:
- RateModifierView
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createPromotionWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierView>> createPromotionWithHttpInfo(String hotelIdentifier, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
removeRateModifier
public reactor.core.publisher.Mono<RemoveEntryResponse> removeRateModifier(String hotelIdentifier, String promotionIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException Delete Promotion Delete a promotion 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 a promotion owned by this hotel identifier.promotionIdentifier- Remove a promotion with this identifier.winkVersion- The winkVersion 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 winkVersion) 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 winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException Show Promotion Retrieve a rate modifier 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 promotion owned by this hotel identifier.promotionIdentifier- Show single promotion with this identifier.winkVersion- The winkVersion 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 winkVersion) 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 winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException Show Promotions Retrieve list of promotions 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- Show all promotions owned by this hotel identifier.winkVersion- The winkVersion 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 winkVersion) 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, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException Update Promotion Update an existing promotion 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 existing promotion owned by this hotel identifier.promotionIdentifier- Update existing promotion with this identifier.upsertRateModifierRequest- The upsertRateModifierRequest parameterwinkVersion- The winkVersion 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, UpsertRateModifierRequest upsertRateModifierRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-