Class PromotionApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-12-21T14:57:37.589000094+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

      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
      Create Promotion Create a new promotion

      503 - Service Unavailable

      400 - Bad Request

      405 - Method Not Allowed

      415 - Unsupported Media Type

      500 - Internal Server Error

      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:
      ResponseEntity<RateModifierViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createPromotionWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec createPromotionWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • 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

      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
      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

      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:
      ResponseEntity<RemoveEntryResponseSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeRateModifierWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec removeRateModifierWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • 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

      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
      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

      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:
      ResponseEntity<RateModifierViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPromotionWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showPromotionWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • 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

      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
      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

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Show all promotions owned by this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<List<RateModifierViewSupplier>>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showPromotionsWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showPromotionsWithResponseSpec(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

      403 - Forbidden

      401 - Unauthorized

      200 - OK

      Parameters:
      hotelIdentifier - Show all promotions owned by this hotel identifier.
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • 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

      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
      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

      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:
      ResponseEntity<RateModifierViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updatePromotionWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updatePromotionWithResponseSpec(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

      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:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API