Class RestaurantApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-20T21:56:24.013599+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<RestaurantView> createRestaurant(String hotelIdentifier, UpsertRestaurantRequest upsertRestaurantRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Restaurant Create a new restaurant

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      201 - Created

      Parameters:
      hotelIdentifier - Create a new restaurant record owned by this hotel identifier
      upsertRestaurantRequest - The upsertRestaurantRequest parameter
      Returns:
      RestaurantView
      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<RestaurantView>> createRestaurantWithHttpInfo(String hotelIdentifier, UpsertRestaurantRequest upsertRestaurantRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeMultimedia3

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

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      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
      accept - The accept parameter
      Returns:
      RestaurantView
      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<RestaurantView>> removeMultimedia3WithHttpInfo(String hotelIdentifier, String restaurantIdentifier, String multimediaIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeRestaurant

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeRestaurant(String hotelIdentifier, String restaurantIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Restaurant Remove a restaurant by its identifier

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      202 - Accepted

      Parameters:
      hotelIdentifier - Remove restaurant record owned by this hotel identifier
      restaurantIdentifier - Remove restaurant record identified by 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
    • removeRestaurantWithHttpInfo

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

      public reactor.core.publisher.Mono<RestaurantView> showRestaurant(String hotelIdentifier, String restaurantIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Restaurant Retrieve a restaurant by its identifier

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

      Parameters:
      hotelIdentifier - Show single restaurant owned by this hotel identifier
      restaurantIdentifier - Show restaurant record identified by this identifier
      accept - The accept parameter
      Returns:
      RestaurantView
      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<RestaurantView>> showRestaurantWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRestaurantPairs

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

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

      Parameters:
      hotelIdentifier - Show restaurant pairs owned by this hotel identifier
      accept - The accept parameter
      Returns:
      List<KeyValuePair>
      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<KeyValuePair>>> showRestaurantPairsWithHttpInfo(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showRestaurants

      public reactor.core.publisher.Flux<RestaurantView> showRestaurants(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Restaurants Retrieve list of restaurants for property.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

      Parameters:
      hotelIdentifier - Show restaurants owned by this hotel identifier
      accept - The accept parameter
      Returns:
      List<RestaurantView>
      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<RestaurantView>>> showRestaurantsWithHttpInfo(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • updateRestaurant

      public reactor.core.publisher.Mono<RestaurantView> updateRestaurant(String hotelIdentifier, String restaurantIdentifier, UpsertRestaurantRequest upsertRestaurantRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Restaurant Update a restaurant by its identifier

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      200 - OK

      Parameters:
      hotelIdentifier - Update an existing restaurant record owned by this hotel identifier
      restaurantIdentifier - Update an existing restaurant record identified by this identifier
      upsertRestaurantRequest - The upsertRestaurantRequest parameter
      Returns:
      RestaurantView
      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<RestaurantView>> updateRestaurantWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, UpsertRestaurantRequest upsertRestaurantRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • uploadRestaurantMedia

      public reactor.core.publisher.Mono<RestaurantView> 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.

      405 - Method Not Allowed

      415 - Unsupported Media Type

      400 - Bad Request

      403 - Forbidden

      401 - Unauthorized

      503 - Service Unavailable

      500 - Internal Server Error

      404 - Not Found

      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:
      RestaurantView
      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<RestaurantView>> uploadRestaurantMediaWithHttpInfo(String hotelIdentifier, String restaurantIdentifier, List<File> files) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException