Class TravelAgentApi

java.lang.Object
travel.wink.sdk.travel.agent.api.TravelAgentApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-03-04T20:50:59.267991942+07:00[Asia/Bangkok]") public class TravelAgentApi extends Object
  • Constructor Details

    • TravelAgentApi

      public TravelAgentApi()
    • TravelAgentApi

      @Autowired public TravelAgentApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • cancelBookingAsTravelAgent

      public reactor.core.publisher.Mono<BookingViewAgent> cancelBookingAsTravelAgent(String companyIdentifier, String bookingIdentifier, CancellationDetailAgent cancellationDetailAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Booking Cancel a booking by its booking identifier

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Cancel booking owned by company identifier
      bookingIdentifier - Cancel booking by identifier
      cancellationDetailAgent - The cancellationDetailAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      BookingViewAgent
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • cancelBookingAsTravelAgentWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingViewAgent>> cancelBookingAsTravelAgentWithHttpInfo(String companyIdentifier, String bookingIdentifier, CancellationDetailAgent cancellationDetailAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Booking Cancel a booking by its booking identifier

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Cancel booking owned by company identifier
      bookingIdentifier - Cancel booking by identifier
      cancellationDetailAgent - The cancellationDetailAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<BookingViewAgent>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • cancelBookingAsTravelAgentWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec cancelBookingAsTravelAgentWithResponseSpec(String companyIdentifier, String bookingIdentifier, CancellationDetailAgent cancellationDetailAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel Booking Cancel a booking by its booking identifier

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Cancel booking owned by company identifier
      bookingIdentifier - Cancel booking by identifier
      cancellationDetailAgent - The cancellationDetailAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • 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.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      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
      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.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      201 - Created

      Parameters:
      createAgentBookingRequestAgent - The createAgentBookingRequestAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<BookingConfirmationsAgent>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • createAgentBookingWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec createAgentBookingWithResponseSpec(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.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      201 - Created

      Parameters:
      createAgentBookingRequestAgent - The createAgentBookingRequestAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • resendBookingConfirmationEmailAsTravelAgent

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

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Resend booking owned by company identifier
      bookingIdentifier - Resend booking by identifier
      body - Empty request body
      winkVersion - The winkVersion parameter
      Returns:
      BooleanResponseAgent
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • resendBookingConfirmationEmailAsTravelAgentWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BooleanResponseAgent>> resendBookingConfirmationEmailAsTravelAgentWithHttpInfo(String companyIdentifier, String bookingIdentifier, Object body, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Resend Booking Confirmation Resends booking confirmation email to traveler.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Resend booking owned by company identifier
      bookingIdentifier - Resend booking by identifier
      body - Empty request body
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<BooleanResponseAgent>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • resendBookingConfirmationEmailAsTravelAgentWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec resendBookingConfirmationEmailAsTravelAgentWithResponseSpec(String companyIdentifier, String bookingIdentifier, Object body, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Resend Booking Confirmation Resends booking confirmation email to traveler.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Resend booking owned by company identifier
      bookingIdentifier - Resend booking by identifier
      body - Empty request body
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingAsTravelAgent

      public reactor.core.publisher.Mono<BookingViewAgent> showBookingAsTravelAgent(String companyIdentifier, String bookingIdentifier, String winkVersion, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Booking Show a booking record by its identifier.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Show booking for company identifier
      bookingIdentifier - Show booking with booking identifier
      winkVersion - The winkVersion parameter
      accept - The accept parameter
      Returns:
      BookingViewAgent
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingAsTravelAgentWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingViewAgent>> showBookingAsTravelAgentWithHttpInfo(String companyIdentifier, String bookingIdentifier, String winkVersion, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Booking Show a booking record by its identifier.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Show booking for company identifier
      bookingIdentifier - Show booking with booking identifier
      winkVersion - The winkVersion parameter
      accept - The accept parameter
      Returns:
      ResponseEntity<BookingViewAgent>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingAsTravelAgentWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showBookingAsTravelAgentWithResponseSpec(String companyIdentifier, String bookingIdentifier, String winkVersion, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Booking Show a booking record by its identifier.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Show booking for company identifier
      bookingIdentifier - Show booking with booking identifier
      winkVersion - The winkVersion parameter
      accept - The accept parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingGridAsTravelAgent

      public reactor.core.publisher.Mono<PageBookingViewAgent> showBookingGridAsTravelAgent(String companyIdentifier, StateAgent stateAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings Show bookings for the company that helped create those booking.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Show bookings for company identifier
      stateAgent - The stateAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      PageBookingViewAgent
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingGridAsTravelAgentWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<PageBookingViewAgent>> showBookingGridAsTravelAgentWithHttpInfo(String companyIdentifier, StateAgent stateAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings Show bookings for the company that helped create those booking.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Show bookings for company identifier
      stateAgent - The stateAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<PageBookingViewAgent>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showBookingGridAsTravelAgentWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec showBookingGridAsTravelAgentWithResponseSpec(String companyIdentifier, StateAgent stateAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Show Bookings Show bookings for the company that helped create those booking.

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Show bookings for company identifier
      stateAgent - The stateAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateAgent

      public reactor.core.publisher.Mono<CompanyViewAgent> updateAgent(String companyIdentifier, UpsertTravelAgentRequestAgent upsertTravelAgentRequestAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Agent Update an existing agent

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Update agent by company id
      upsertTravelAgentRequestAgent - The upsertTravelAgentRequestAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      CompanyViewAgent
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateAgentWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<CompanyViewAgent>> updateAgentWithHttpInfo(String companyIdentifier, UpsertTravelAgentRequestAgent upsertTravelAgentRequestAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Agent Update an existing agent

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Update agent by company id
      upsertTravelAgentRequestAgent - The upsertTravelAgentRequestAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseEntity<CompanyViewAgent>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • updateAgentWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updateAgentWithResponseSpec(String companyIdentifier, UpsertTravelAgentRequestAgent upsertTravelAgentRequestAgent, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Update Agent Update an existing agent

      500 - Internal Server Error

      403 - Forbidden

      401 - Unauthorized

      400 - Bad Request

      200 - OK

      Parameters:
      companyIdentifier - Update agent by company id
      upsertTravelAgentRequestAgent - The upsertTravelAgentRequestAgent parameter
      winkVersion - The winkVersion parameter
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API