Class PromotionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<RateModifierViewSupplier>createPromotion(String hotelIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, String winkVersion) Create Promotion Create a new promotionreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierViewSupplier>>createPromotionWithHttpInfo(String hotelIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, String winkVersion) reactor.core.publisher.Mono<RemoveEntryResponseSupplier>removeRateModifier(String hotelIdentifier, String promotionIdentifier, String winkVersion) Delete Promotion Delete a promotion by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponseSupplier>>removeRateModifierWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String winkVersion) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<RateModifierViewSupplier>showPromotion(String hotelIdentifier, String promotionIdentifier, String winkVersion) Show Promotion Retrieve a rate modifier by its identifierreactor.core.publisher.Flux<RateModifierViewSupplier>showPromotions(String hotelIdentifier, String winkVersion) Show Promotions Retrieve list of promotions for propertyreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RateModifierViewSupplier>>>showPromotionsWithHttpInfo(String hotelIdentifier, String winkVersion) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierViewSupplier>>showPromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, String winkVersion) reactor.core.publisher.Mono<RateModifierViewSupplier>updatePromotion(String hotelIdentifier, String promotionIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, String winkVersion) Update Promotion Update an existing promotion by its identifierreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RateModifierViewSupplier>>updatePromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, String winkVersion)
-
Constructor Details
-
PromotionApi
public PromotionApi() -
PromotionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createPromotion
public reactor.core.publisher.Mono<RateModifierViewSupplier> createPromotion(String hotelIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, 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.upsertRateModifierRequestSupplier- The upsertRateModifierRequestSupplier parameterwinkVersion- The winkVersion parameter- Returns:
- RateModifierViewSupplier
- 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<RateModifierViewSupplier>> createPromotionWithHttpInfo(String hotelIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
removeRateModifier
public reactor.core.publisher.Mono<RemoveEntryResponseSupplier> 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:
- RemoveEntryResponseSupplier
- 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<RemoveEntryResponseSupplier>> 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<RateModifierViewSupplier> 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:
- RateModifierViewSupplier
- 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<RateModifierViewSupplier>> 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<RateModifierViewSupplier> 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<RateModifierViewSupplier>
- 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<RateModifierViewSupplier>>> 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<RateModifierViewSupplier> updatePromotion(String hotelIdentifier, String promotionIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, 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.upsertRateModifierRequestSupplier- The upsertRateModifierRequestSupplier parameterwinkVersion- The winkVersion parameter- Returns:
- RateModifierViewSupplier
- 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<RateModifierViewSupplier>> updatePromotionWithHttpInfo(String hotelIdentifier, String promotionIdentifier, UpsertRateModifierRequestSupplier upsertRateModifierRequestSupplier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-