Class SalesChannelsApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-09-08T16:32:28.411222+07:00[Asia/Bangkok]") public class SalesChannelsApi extends Object
  • Constructor Details

    • SalesChannelsApi

      public SalesChannelsApi()
    • SalesChannelsApi

      @Autowired public SalesChannelsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createSalesChannel

      public reactor.core.publisher.Mono<SalesChannel> createSalesChannel(String hotelIdentifier, SalesChannelCreateRequest salesChannelCreateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create sales channel Create a new sales channel.

      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 sales channel and associate it with this hotel identifier
      salesChannelCreateRequest - The salesChannelCreateRequest parameter
      Returns:
      SalesChannel
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createSalesChannelWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SalesChannel>> createSalesChannelWithHttpInfo(String hotelIdentifier, SalesChannelCreateRequest salesChannelCreateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeSalesChannel

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeSalesChannel(String hotelIdentifier, String salesChannelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Remove sales channel Delete a specific sales channel

      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 sales channel owned by this hotel identifier
      salesChannelIdentifier - Remove sales channel 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
    • removeSalesChannelWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponse>> removeSalesChannelWithHttpInfo(String hotelIdentifier, String salesChannelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAccounts

      public reactor.core.publisher.Flux<SalesChannel> showAccounts(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show sales channels Retrieve list of all sales channels for this property. You can decide to retrieve all specific sales channel relationships or only generic ones using the 'owner' request parameter.

      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 sales channels for this hotel identifier
      accept - The accept parameter
      Returns:
      List<SalesChannel>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAccountsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SalesChannel>>> showAccountsWithHttpInfo(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showSalesChannel

      public reactor.core.publisher.Mono<SalesChannel> showSalesChannel(String hotelIdentifier, String salesChannelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show sales channel Retrieve a specific sales channel by 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 sales channel owned by this hotel identifier
      salesChannelIdentifier - Show sales channel with this hotel identifier
      accept - The accept parameter
      Returns:
      SalesChannel
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showSalesChannelWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SalesChannel>> showSalesChannelWithHttpInfo(String hotelIdentifier, String salesChannelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showSalesChannelContextRateModifierBundlePairs

      public reactor.core.publisher.Flux<SelectableKeyValuePair> showSalesChannelContextRateModifierBundlePairs(String hotelIdentifier, String rateModifierBundleIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show rate modifier bundle availability Display a list of key / value pairs that shows the availability of sales channels in the context of rate modifier bundles.

      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 sales channel pairs for this hotel identifier
      rateModifierBundleIdentifier - Show all sales channels pairs in the context of rate modifier availability
      accept - The accept parameter
      Returns:
      List<SelectableKeyValuePair>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showSalesChannelContextRateModifierBundlePairsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SelectableKeyValuePair>>> showSalesChannelContextRateModifierBundlePairsWithHttpInfo(String hotelIdentifier, String rateModifierBundleIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showSalesChannelContextRateModifierPairs

      public reactor.core.publisher.Flux<SelectableKeyValuePair> showSalesChannelContextRateModifierPairs(String hotelIdentifier, String rateModifierIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show rate modifier availability Display a list of key / value pairs that shows the availability of sales channels in the context of rate modifiers.

      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 sales channel pairs for this hotel identifier
      rateModifierIdentifier - Show all sales channels pairs in the context of rate modifier availability
      accept - The accept parameter
      Returns:
      List<SelectableKeyValuePair>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showSalesChannelContextRateModifierPairsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SelectableKeyValuePair>>> showSalesChannelContextRateModifierPairsWithHttpInfo(String hotelIdentifier, String rateModifierIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • toggleSalesChannelPromoAvailability

      public reactor.core.publisher.Flux<SalesChannel> toggleSalesChannelPromoAvailability(String hotelIdentifier, String rateModifierIdentifier, List<InventoryUpdateRequest> inventoryUpdateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update sale channels promos Toggles availability of a promo for a list of sales channels

      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 sales channel owned by this hotel identifier
      rateModifierIdentifier - The rate modifier we are enabling / disabling on the sales channel
      inventoryUpdateRequest - The inventoryUpdateRequest parameter
      Returns:
      List<SalesChannel>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • toggleSalesChannelPromoAvailabilityWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SalesChannel>>> toggleSalesChannelPromoAvailabilityWithHttpInfo(String hotelIdentifier, String rateModifierIdentifier, List<InventoryUpdateRequest> inventoryUpdateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • toggleSalesChannelPromoBundleAvailability

      public reactor.core.publisher.Flux<SalesChannel> toggleSalesChannelPromoBundleAvailability(String hotelIdentifier, String rateModifierBundleIdentifier, List<InventoryUpdateRequest> inventoryUpdateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update sale channels promo bundles Toggles availability of a promo bundle for a list of sales channels

      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 sales channel owned by this hotel identifier
      rateModifierBundleIdentifier - The rate modifier bundle we are enabling / disabling on the sales channel
      inventoryUpdateRequest - The inventoryUpdateRequest parameter
      Returns:
      List<SalesChannel>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • toggleSalesChannelPromoBundleAvailabilityWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<SalesChannel>>> toggleSalesChannelPromoBundleAvailabilityWithHttpInfo(String hotelIdentifier, String rateModifierBundleIdentifier, List<InventoryUpdateRequest> inventoryUpdateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateSalesChannel

      public reactor.core.publisher.Mono<SalesChannel> updateSalesChannel(String hotelIdentifier, String salesChannelIdentifier, SalesChannelUpdateRequest salesChannelUpdateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update sales channel Update a chosen sales channel

      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 sales channel owned by this hotel identifier
      salesChannelIdentifier - Update sales channel settings for sales channel with this identifier
      salesChannelUpdateRequest - The salesChannelUpdateRequest parameter
      Returns:
      SalesChannel
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateSalesChannelWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<SalesChannel>> updateSalesChannelWithHttpInfo(String hotelIdentifier, String salesChannelIdentifier, SalesChannelUpdateRequest salesChannelUpdateRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException