Class BookingApi

java.lang.Object
travel.wink.sdk.booking.api.BookingApi

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

    • BookingApi

      public BookingApi()
    • BookingApi

      @Autowired public BookingApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • cancelBooking

      public reactor.core.publisher.Mono<BookingViewBooker> cancelBooking(String bookingIdentifier, CancellationDetailBooker cancellationDetailBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Booking Cancel a booking by its booking 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:
      bookingIdentifier - Cancel booking by identifier
      cancellationDetailBooker - The cancellationDetailBooker parameter
      winkVersion - The winkVersion parameter
      Returns:
      BookingViewBooker
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • cancelBookingWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingViewBooker>> cancelBookingWithHttpInfo(String bookingIdentifier, CancellationDetailBooker cancellationDetailBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • cancelGroupBooking

      public reactor.core.publisher.Flux<BookingViewBooker> cancelGroupBooking(String groupIdentifier, CancellationDetailBooker cancellationDetailBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Group Booking Cancel a group booking by its group 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:
      groupIdentifier - Cancel booking by group identifier
      cancellationDetailBooker - The cancellationDetailBooker parameter
      winkVersion - The winkVersion parameter
      Returns:
      List<BookingViewBooker>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • cancelGroupBookingWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingViewBooker>>> cancelGroupBookingWithHttpInfo(String groupIdentifier, CancellationDetailBooker cancellationDetailBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • createAgentBooking

      public reactor.core.publisher.Mono<BookingConfirmationsAgent> createAgentBooking(CreateAgentBookingRequestAgent createAgentBookingRequestAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Agent Booking Create agent booking. Expects the agent to be a registered agent with TripPay and have available funds to cover the booking amount.

      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:
      createAgentBookingRequestAgent - The createAgentBookingRequestAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      BookingConfirmationsAgent
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createAgentBookingWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingConfirmationsAgent>> createAgentBookingWithHttpInfo(CreateAgentBookingRequestAgent createAgentBookingRequestAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • createMerchantBooking

      public reactor.core.publisher.Mono<BookingConfirmationsBooker> createMerchantBooking(CreateMerchantBookingRequestBooker createMerchantBookingRequestBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Create Merchant Booking Create a merchant booking. Expects a TripPay contract to be available and a authenticated traveler user to be making the booking.

      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:
      createMerchantBookingRequestBooker - The createMerchantBookingRequestBooker parameter
      winkVersion - The winkVersion parameter
      Returns:
      BookingConfirmationsBooker
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createMerchantBookingWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingConfirmationsBooker>> createMerchantBookingWithHttpInfo(CreateMerchantBookingRequestBooker createMerchantBookingRequestBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • resendBookingConfirmationEmail

      public reactor.core.publisher.Mono<BooleanResponseBooker> resendBookingConfirmationEmail(String bookingIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Resend Booking Confirmation Resends booking confirmation email to traveler.

      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:
      bookingIdentifier - Retrieve booking by identifier
      winkVersion - The winkVersion parameter
      Returns:
      BooleanResponseBooker
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • resendBookingConfirmationEmailWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BooleanResponseBooker>> resendBookingConfirmationEmailWithHttpInfo(String bookingIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBooking

      public reactor.core.publisher.Mono<BookingViewBooker> showBooking(String bookingIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Booking Retrieve a booking by its booking identifier. User needs to be authenticated.

      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:
      bookingIdentifier - Retrieve booking by identifier
      winkVersion - The winkVersion parameter
      Returns:
      BookingViewBooker
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingViewBooker>> showBookingWithHttpInfo(String bookingIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookingGrid

      public reactor.core.publisher.Mono<PageBookingViewBooker> showBookingGrid(StateBooker stateBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Booking Grid Retrieve paginated bookings based on a query state

      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:
      stateBooker - The stateBooker parameter
      winkVersion - The winkVersion parameter
      Returns:
      PageBookingViewBooker
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingGridWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PageBookingViewBooker>> showBookingGridWithHttpInfo(StateBooker stateBooker, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookings

      public reactor.core.publisher.Mono<PageBookingViewBooker> showBookings(Integer page, Integer size, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Booking List Retrieve bookings in a paginated list

      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:
      page - Page to start retrieving records for
      size - Number of records to retrieve
      winkVersion - The winkVersion parameter
      Returns:
      PageBookingViewBooker
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PageBookingViewBooker>> showBookingsWithHttpInfo(Integer page, Integer size, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookingsByReviewState

      public reactor.core.publisher.Flux<BookingViewBooker> showBookingsByReviewState(String state, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings by Review List bookings by their review state

      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:
      state - Retrieve bookings by review state
      winkVersion - The winkVersion parameter
      Returns:
      List<BookingViewBooker>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingsByReviewStateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingViewBooker>>> showBookingsByReviewStateWithHttpInfo(String state, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookingsByState

      public reactor.core.publisher.Flux<BookingViewBooker> showBookingsByState(String state, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings by Time Retrieve bookings for a date state

      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:
      state - Retrieve bookings by state
      winkVersion - The winkVersion parameter
      Returns:
      List<BookingViewBooker>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingsByStateWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingViewBooker>>> showBookingsByStateWithHttpInfo(String state, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showGroupedBookings

      public reactor.core.publisher.Flux<BookingViewBooker> showGroupedBookings(String groupIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Grouped Bookings Retrieve a list of bookings by group identifier. User needs to be authenticated.

      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:
      groupIdentifier - Retrieve booking by identifier
      winkVersion - The winkVersion parameter
      Returns:
      List<BookingViewBooker>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showGroupedBookingsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingViewBooker>>> showGroupedBookingsWithHttpInfo(String groupIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException