Class AttractionApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-20T22:26:49.575007+07:00[Asia/Bangkok]") public class AttractionApi extends Object
  • Constructor Details

    • AttractionApi

      public AttractionApi()
    • AttractionApi

      @Autowired public AttractionApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createAttraction

      public reactor.core.publisher.Mono<AttractionView> createAttraction(String hotelIdentifier, UpsertAttractionRequest upsertAttractionRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Attraction Create a new attraction

      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 - Persist attraction owned by this hotel identifier
      upsertAttractionRequest - The upsertAttractionRequest parameter
      Returns:
      AttractionView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createAttractionWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AttractionView>> createAttractionWithHttpInfo(String hotelIdentifier, UpsertAttractionRequest upsertAttractionRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeAttraction

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeAttraction(String hotelIdentifier, String attractionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete attraction Delete an attraction 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 - Delete attraction owned by this hotel identifier
      attractionIdentifier - Delete attraction 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
    • removeAttractionWithHttpInfo

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

      public reactor.core.publisher.Mono<AttractionView> showAttraction(String hotelIdentifier, String attractionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Attraction Retrieve an attraction by 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 attraction owned by this hotel identifier
      attractionIdentifier - Show attraction for identifier
      accept - The accept parameter
      Returns:
      AttractionView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAttractionWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AttractionView>> showAttractionWithHttpInfo(String hotelIdentifier, String attractionIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAttractionPairs

      public reactor.core.publisher.Flux<KeyValuePair> showAttractionPairs(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Attractions as Pairs Retrieve list of 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 attraction key/value pairs associated with 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
    • showAttractionPairsWithHttpInfo

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

      public reactor.core.publisher.Flux<AttractionView> showAttractions(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Attractions Retrieve list of attractions

      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 attractions associated with this hotel identifier
      accept - The accept parameter
      Returns:
      List<AttractionView>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAttractionsWithHttpInfo

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

      public reactor.core.publisher.Mono<AttractionView> updateAttraction(String hotelIdentifier, String attractionIdentifier, UpsertAttractionRequest upsertAttractionRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Attraction Update an attraction 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 existing attraction record owned by this hotel identifier
      attractionIdentifier - Update attraction record with this identifier
      upsertAttractionRequest - The upsertAttractionRequest parameter
      Returns:
      AttractionView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateAttractionWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AttractionView>> updateAttractionWithHttpInfo(String hotelIdentifier, String attractionIdentifier, UpsertAttractionRequest upsertAttractionRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • uploadAttractionMedia

      public reactor.core.publisher.Mono<AttractionView> uploadAttractionMedia(String hotelIdentifier, String attractionIdentifier, List<File> files) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Upload Binary Multimedia Upload binary videos and/or images to an attraction identified by its identifier. Valid file types: .gif, .jpg, .jpeg, .png, .bmp, .tif, .tiff, .avi, .mpeg, .mov, .mp4, .mkv.

      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 media for attraction owned by this hotel identifier
      attractionIdentifier - Associate multipart media with attraction identified by this identifier
      files - The files parameter
      Returns:
      AttractionView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • uploadAttractionMediaWithHttpInfo

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