Class ContractApi

java.lang.Object
travel.wink.sdk.payment.api.ContractApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-11T13:46:37.093025+07:00[Asia/Bangkok]") public class ContractApi extends Object
  • Constructor Details

    • ContractApi

      public ContractApi()
    • ContractApi

      @Autowired public ContractApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • cancelBookingContract

      public reactor.core.publisher.Mono<BookingContract> cancelBookingContract(String identifier, CancelBookingContractRequest cancelBookingContractRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel booking Cancels a booking contract. Based on the type of cancellation policy, will do a refund or partial refund to the payment method.

      200 - OK

      Parameters:
      identifier - Booking contract identifier
      cancelBookingContractRequest - The cancelBookingContractRequest parameter
      Returns:
      BookingContract
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • cancelBookingContractWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>> cancelBookingContractWithHttpInfo(String identifier, CancelBookingContractRequest cancelBookingContractRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • cancelGroupBookingContract

      public reactor.core.publisher.Flux<BookingContract> cancelGroupBookingContract(String traceId, CancelBookingContractRequest cancelBookingContractRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Cancel group bookings Cancels a group booking contract. All bookings under the same traceId.

      200 - OK

      Parameters:
      traceId - Booking contract traceId
      cancelBookingContractRequest - The cancelBookingContractRequest parameter
      Returns:
      List<BookingContract>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • cancelGroupBookingContractWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContract>>> cancelGroupBookingContractWithHttpInfo(String traceId, CancelBookingContractRequest cancelBookingContractRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • isContractCancellable

      public reactor.core.publisher.Mono<BookingContractCancellableResponse> isContractCancellable(String identifier, CancelBookingContractRequest cancelBookingContractRequest, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Contract cancellable Returns whether a booking can be cancelled or not and any rules associated with cancelling.

      200 - OK

      Parameters:
      identifier - Booking contract identifier
      cancelBookingContractRequest - The cancelBookingContractRequest parameter
      accept - The accept parameter
      Returns:
      BookingContractCancellableResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isContractCancellableWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContractCancellableResponse>> isContractCancellableWithHttpInfo(String identifier, CancelBookingContractRequest cancelBookingContractRequest, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • isGroupContractCancellable

      public reactor.core.publisher.Flux<BookingContractCancellableResponse> isGroupContractCancellable(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Group contract cancellable Returns whether a booking can be cancelled or not and any rules associated with cancelling.

      200 - OK

      Parameters:
      traceId - Booking contract traceId
      cancelBookingContractRequest - The cancelBookingContractRequest parameter
      accept - The accept parameter
      Returns:
      List<BookingContractCancellableResponse>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • isGroupContractCancellableWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContractCancellableResponse>>> isGroupContractCancellableWithHttpInfo(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showContract

      public reactor.core.publisher.Mono<BookingContract> showContract(String identifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve single contract Returns a booking contract by its unique identifier.

      200 - OK

      Parameters:
      identifier - Booking contract identifier
      accept - The accept parameter
      Returns:
      BookingContract
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showContractWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>> showContractWithHttpInfo(String identifier, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showContracts

      public reactor.core.publisher.Flux<BookingContract> showContracts(String traceId, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve multiple contracts Returns booking contracts matching traceId.

      200 - OK

      Parameters:
      traceId - Trace identifier
      accept - The accept parameter
      Returns:
      List<BookingContract>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showContractsWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContract>>> showContractsWithHttpInfo(String traceId, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException