Class AnnouncementApi

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

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

    • AnnouncementApi

      public AnnouncementApi()
    • AnnouncementApi

      @Autowired public AnnouncementApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createAnnouncement

      public reactor.core.publisher.Mono<AnnouncementView> createAnnouncement(String hotelIdentifier, Announcement announcement) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Announcement Create a new announcement

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

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AnnouncementView>> createAnnouncementWithHttpInfo(String hotelIdentifier, Announcement announcement) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • removeAnnouncement

      public reactor.core.publisher.Mono<RemoveEntryResponse> removeAnnouncement(String hotelIdentifier, String announcementIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Delete Announcement Delete an announcement 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 announcement for this hotel identifier
      announcementIdentifier - Remove announcement 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
    • removeAnnouncementWithHttpInfo

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

      public reactor.core.publisher.Mono<AnnouncementView> showAnnouncement(String hotelIdentifier, String announcementIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Announcement Retrieve an announcement 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 announcement for this hotel identifier
      announcementIdentifier - Show data for this announcement identifier
      accept - The accept parameter
      Returns:
      AnnouncementView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAnnouncementWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AnnouncementView>> showAnnouncementWithHttpInfo(String hotelIdentifier, String announcementIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAnnouncements

      public reactor.core.publisher.Flux<AnnouncementView> showAnnouncements(String hotelIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Announcements Retrieve list of announcements

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

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

      public reactor.core.publisher.Mono<AnnouncementView> updateAnnouncement(String hotelIdentifier, String announcementIdentifier, Announcement announcement) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Announcement Update an announcement 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 announcement for this hotel identifier
      announcementIdentifier - Update announcement with this identifier
      announcement - The announcement parameter
      Returns:
      AnnouncementView
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateAnnouncementWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AnnouncementView>> updateAnnouncementWithHttpInfo(String hotelIdentifier, String announcementIdentifier, Announcement announcement) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException