Class BookingApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-16T12:47:15.131812+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<BookingView> cancelBooking(String bookingIdentifier, CancellationDetail cancellationDetail) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Booking Cancel a booking by its booking 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:
      bookingIdentifier - Cancel booking by identifier
      cancellationDetail - The cancellationDetail parameter
      Returns:
      BookingView
      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<BookingView>> cancelBookingWithHttpInfo(String bookingIdentifier, CancellationDetail cancellationDetail) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • cancelGroupBooking

      public reactor.core.publisher.Flux<BookingView> cancelGroupBooking(String groupIdentifier, CancellationDetail cancellationDetail) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Group Booking Cancel a group booking by its group 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:
      groupIdentifier - Cancel booking by group identifier
      cancellationDetail - The cancellationDetail parameter
      Returns:
      List<BookingView>
      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<BookingView>>> cancelGroupBookingWithHttpInfo(String groupIdentifier, CancellationDetail cancellationDetail) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • createAgentBooking

      public reactor.core.publisher.Mono<BookingConfirmations> createAgentBooking(CreateAgentBookingRequest createAgentBookingRequest) 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.

      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:
      createAgentBookingRequest - The createAgentBookingRequest parameter
      Returns:
      BookingConfirmations
      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<BookingConfirmations>> createAgentBookingWithHttpInfo(CreateAgentBookingRequest createAgentBookingRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • createMerchantBooking

      public reactor.core.publisher.Mono<BookingConfirmations> createMerchantBooking(CreateMerchantBookingRequest createMerchantBookingRequest) 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.

      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:
      createMerchantBookingRequest - The createMerchantBookingRequest parameter
      Returns:
      BookingConfirmations
      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<BookingConfirmations>> createMerchantBookingWithHttpInfo(CreateMerchantBookingRequest createMerchantBookingRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBooking

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

      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:
      bookingIdentifier - Retrieve booking by identifier
      accept - The accept parameter
      Returns:
      BookingView
      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<BookingView>> showBookingWithHttpInfo(String bookingIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookingGrid

      public reactor.core.publisher.Mono<PageBookingView> showBookingGrid(State state) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings Retrieve bookings for a query state

      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:
      state - The state parameter
      Returns:
      PageBookingView
      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<PageBookingView>> showBookingGridWithHttpInfo(State state) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookings

      public reactor.core.publisher.Mono<PageBookingView> showBookings(Integer page, Integer size, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings Retrieve bookings

      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:
      page - Page to start retrieving records for
      size - Number of records to retrieve
      accept - The accept parameter
      Returns:
      PageBookingView
      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<PageBookingView>> showBookingsWithHttpInfo(Integer page, Integer size, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookingsByReviewState

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

      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:
      state - Retrieve bookings by review state
      accept - The accept parameter
      Returns:
      List<BookingView>
      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<BookingView>>> showBookingsByReviewStateWithHttpInfo(String state, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showBookingsByState

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

      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:
      state - Retrieve bookings by state
      accept - The accept parameter
      Returns:
      List<BookingView>
      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<BookingView>>> showBookingsByStateWithHttpInfo(String state, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showGroupedBookings

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

      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:
      groupIdentifier - Retrieve booking by identifier
      accept - The accept parameter
      Returns:
      List<BookingView>
      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<BookingView>>> showGroupedBookingsWithHttpInfo(String groupIdentifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException