Class ContractApi

java.lang.Object
io.trippay.sdk.payment.api.ContractApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-11-08T02:00:35.320414350+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, String winkVersion) 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
      winkVersion - The winkVersion 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, String winkVersion) 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, String winkVersion) 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
      winkVersion - The winkVersion 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, String winkVersion) 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 winkVersion) 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
      winkVersion - The winkVersion 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 winkVersion) 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 winkVersion) 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
      winkVersion - The winkVersion 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 winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAggregateBookingContractData

      public reactor.core.publisher.Flux<BeneficiaryAggregateData> showAggregateBookingContractData(String type, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve aggregate beneficiary data Returns aggregate contract data this account identifier has participated in.

      200 - OK

      Parameters:
      type - The type parameter
      winkVersion - The winkVersion parameter
      Returns:
      List<BeneficiaryAggregateData>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAggregateBookingContractDataWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BeneficiaryAggregateData>>> showAggregateBookingContractDataWithHttpInfo(String type, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAggregateBookingContractData1

      public reactor.core.publisher.Flux<BeneficiaryAggregateData> showAggregateBookingContractData1(String accountIdentifier, String type, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve aggregate beneficiary data Returns aggregate contract data this account identifier has participated in.

      200 - OK

      Parameters:
      accountIdentifier - The accountIdentifier parameter
      type - The type parameter
      winkVersion - The winkVersion parameter
      Returns:
      List<BeneficiaryAggregateData>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAggregateBookingContractData1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BeneficiaryAggregateData>>> showAggregateBookingContractData1WithHttpInfo(String accountIdentifier, String type, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAggregateCancellationData

      public reactor.core.publisher.Flux<AggregateBookingContractCancellationState> showAggregateCancellationData(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve aggregate cancellation data Returns aggregate cancellation data this account identifier has participated in.

      200 - OK

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

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<AggregateBookingContractCancellationState>>> showAggregateCancellationDataWithHttpInfo(String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showAggregateCancellationData1

      public reactor.core.publisher.Flux<AggregateBookingContractCancellationState> showAggregateCancellationData1(String accountIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve aggregate cancellation data Returns aggregate cancellation data this account identifier has participated in.

      200 - OK

      Parameters:
      accountIdentifier - The accountIdentifier parameter
      winkVersion - The winkVersion parameter
      Returns:
      List<AggregateBookingContractCancellationState>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showAggregateCancellationData1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<AggregateBookingContractCancellationState>>> showAggregateCancellationData1WithHttpInfo(String accountIdentifier, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showCaptureCurrencies

      public reactor.core.publisher.Mono<AggregateBookingContractCaptureCurrenciesByAccountResponse> showCaptureCurrencies(String accountIdentifier, String state, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve capture currencies Returns a list of capture currencies and amounts for the account identifier.

      200 - OK

      Parameters:
      accountIdentifier - The accountIdentifier parameter
      state - The state parameter
      winkVersion - The winkVersion parameter
      Returns:
      AggregateBookingContractCaptureCurrenciesByAccountResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showCaptureCurrenciesWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AggregateBookingContractCaptureCurrenciesByAccountResponse>> showCaptureCurrenciesWithHttpInfo(String accountIdentifier, String state, String winkVersion) 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 winkVersion) 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
      winkVersion - The winkVersion 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 winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException
    • showContractGrid

      public reactor.core.publisher.Mono<BookingContractGridResponse> showContractGrid(String state, Integer page, Integer size, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve contract grid Returns booking contracts for account identifier.

      200 - OK

      Parameters:
      state - The state parameter
      page - The page parameter
      size - The size parameter
      winkVersion - The winkVersion parameter
      Returns:
      BookingContractGridResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showContractGridWithHttpInfo

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

      public reactor.core.publisher.Mono<BookingContractGridResponse> showContractGrid1(String accountIdentifier, String state, Integer page, Integer size, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve contract grid Returns booking contracts for account identifier.

      200 - OK

      Parameters:
      accountIdentifier - The accountIdentifier parameter
      state - The state parameter
      page - The page parameter
      size - The size parameter
      winkVersion - The winkVersion parameter
      Returns:
      BookingContractGridResponse
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • showContractGrid1WithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContractGridResponse>> showContractGrid1WithHttpInfo(String accountIdentifier, String state, Integer page, Integer size, String winkVersion) 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 winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Retrieve multiple contracts Returns booking contracts matching traceId.

      200 - OK

      Parameters:
      traceId - Trace identifier
      winkVersion - The winkVersion 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 winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException