Class PromotionApi

java.lang.Object
travel.wink.sdk.extranet.api.PromotionApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-03-10T10:48:44.479471290+07:00[Asia/Bangkok]") public class PromotionApi extends Object
  • Constructor Details

    • PromotionApi

      public PromotionApi()
    • PromotionApi

      @Autowired public PromotionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 promotion

      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

      201 - Created

      Parameters:
      hotelIdentifier - Create new promotion and associate with this hotel identifier.
      upsertRateModifierRequestSupplier - The upsertRateModifierRequestSupplier parameter
      winkVersion - 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 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

      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 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 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 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 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 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 - Update existing promotion owned by this hotel identifier.
      promotionIdentifier - Update existing promotion with this identifier.
      upsertRateModifierRequestSupplier - The upsertRateModifierRequestSupplier parameter
      winkVersion - 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