Class RestaurantApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-03-18T08:52:26.126132332+07:00[Asia/Bangkok]") public class RestaurantApi extends Object
  • Constructor Details

    • RestaurantApi

      public RestaurantApi()
    • RestaurantApi

      @Autowired public RestaurantApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createRestaurant

      public reactor.core.publisher.Mono<RestaurantViewSupplier> createRestaurant(String hotelIdentifier, UpsertRestaurantRequestSupplier upsertRestaurantRequestSupplier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Restaurant Create a new restaurant

      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 a new restaurant record owned by this hotel identifier
      upsertRestaurantRequestSupplier - The upsertRestaurantRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      RestaurantViewSupplier
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createRestaurantWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RestaurantViewSupplier>> createRestaurantWithHttpInfo(String hotelIdentifier, UpsertRestaurantRequestSupplier upsertRestaurantRequestSupplier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeMultimedia3

      public reactor.core.publisher.Mono<RestaurantViewSupplier> removeMultimedia3(String hotelIdentifier, String restaurantIdentifier, String multimediaIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Multimedia Remove media from an existing restaurant.

      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 media record from an existing restaurant owned by this hotel identifier.
      restaurantIdentifier - Remove a media record from an existing restaurant identified by this identifier.
      multimediaIdentifier - Remove a media record with this identifier
      winkVersion - The winkVersion parameter
      Returns:
      RestaurantViewSupplier
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • removeMultimedia3WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RestaurantViewSupplier>> removeMultimedia3WithHttpInfo(String hotelIdentifier, String restaurantIdentifier, String multimediaIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeRestaurant

      public reactor.core.publisher.Mono<RemoveEntryResponseSupplier> removeRestaurant(String hotelIdentifier, String restaurantIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Restaurant Remove a restaurant 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 restaurant record owned by this hotel identifier
      restaurantIdentifier - Remove restaurant record identified by 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
    • removeRestaurantWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RemoveEntryResponseSupplier>> removeRestaurantWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRestaurant

      public reactor.core.publisher.Mono<RestaurantViewSupplier> showRestaurant(String hotelIdentifier, String restaurantIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Restaurant Retrieve a restaurant 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 restaurant owned by this hotel identifier
      restaurantIdentifier - Show restaurant record identified by this identifier
      winkVersion - The winkVersion parameter
      Returns:
      RestaurantViewSupplier
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showRestaurantWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RestaurantViewSupplier>> showRestaurantWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRestaurantPairs

      public reactor.core.publisher.Flux<KeyValuePairSupplier> showRestaurantPairs(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Reference Pairs Retrieve list of restaurants as key/value pairs (identifier, name)

      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 restaurant pairs owned by this hotel identifier
      winkVersion - The winkVersion parameter
      Returns:
      List<KeyValuePairSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showRestaurantPairsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<KeyValuePairSupplier>>> showRestaurantPairsWithHttpInfo(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRestaurants

      public reactor.core.publisher.Flux<RestaurantViewSupplier> showRestaurants(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Restaurants Retrieve list of restaurants 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 restaurants owned by this hotel identifier
      winkVersion - The winkVersion parameter
      Returns:
      List<RestaurantViewSupplier>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showRestaurantsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<RestaurantViewSupplier>>> showRestaurantsWithHttpInfo(String hotelIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateRestaurant

      public reactor.core.publisher.Mono<RestaurantViewSupplier> updateRestaurant(String hotelIdentifier, String restaurantIdentifier, UpsertRestaurantRequestSupplier upsertRestaurantRequestSupplier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Restaurant Update a restaurant 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 an existing restaurant record owned by this hotel identifier
      restaurantIdentifier - Update an existing restaurant record identified by this identifier
      upsertRestaurantRequestSupplier - The upsertRestaurantRequestSupplier parameter
      winkVersion - The winkVersion parameter
      Returns:
      RestaurantViewSupplier
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateRestaurantWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RestaurantViewSupplier>> updateRestaurantWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, UpsertRestaurantRequestSupplier upsertRestaurantRequestSupplier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • uploadRestaurantMedia

      public reactor.core.publisher.Mono<RestaurantViewSupplier> uploadRestaurantMedia(String hotelIdentifier, String restaurantIdentifier, List<File> files) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Upload Binary Multimedia Upload a list of binary / multipart videos and/or images to an existing restaurant.

      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

      207 - Multi-Status

      Parameters:
      hotelIdentifier - Upload multipart files and associate them with an existing restaurant owned by this hotel identifier
      restaurantIdentifier - Upload multipart files and associate them with an existing restaurant with this identifier
      files - The files parameter
      Returns:
      RestaurantViewSupplier
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • uploadRestaurantMediaWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<RestaurantViewSupplier>> uploadRestaurantMediaWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, List<File> files) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException