Package io.trippay.sdk.payment.api
Class ContractApi
java.lang.Object
io.trippay.sdk.payment.api.ContractApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-03-06T15:20:29.359634909+07:00[Asia/Bangkok]")
public class ContractApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<BookingContract>cancelBookingContract(String identifier, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) Cancel booking Cancels a booking contract.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>>cancelBookingContractWithHttpInfo(String identifier, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) reactor.core.publisher.Flux<BookingContract>cancelGroupBookingContract(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) Cancel group bookings Cancels a group booking contract.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContract>>>cancelGroupBookingContractWithHttpInfo(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) reactor.core.publisher.Mono<BookingContractCancellableResponse>isContractCancellable(String identifier, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) Contract cancellable Returns whether a booking can be cancelled or not and any rules associated with cancelling.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContractCancellableResponse>>isContractCancellableWithHttpInfo(String identifier, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) reactor.core.publisher.Flux<BookingContractCancellableResponse>isGroupContractCancellable(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) Group contract cancellable Returns whether a booking can be cancelled or not and any rules associated with cancelling.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContractCancellableResponse>>>isGroupContractCancellableWithHttpInfo(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String winkVersion) reactor.core.publisher.Mono<BookingContract>requestRefund(String identifier, RefundRequest refundRequest, String winkVersion) Request refund Requests a refund for a booking contract.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>>requestRefundWithHttpInfo(String identifier, RefundRequest refundRequest, String winkVersion) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Flux<BeneficiaryAggregateData>showAggregateBookingContractData(String accountIdentifier, String type, String winkVersion) Retrieve aggregate beneficiary data Returns aggregate contract data this account identifier has participated in.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BeneficiaryAggregateData>>>showAggregateBookingContractDataWithHttpInfo(String accountIdentifier, String type, String winkVersion) reactor.core.publisher.Flux<AggregateBookingContractCancellationState>showAggregateCancellationData(String accountIdentifier, String winkVersion) Retrieve aggregate cancellation data Returns aggregate cancellation data this account identifier has participated in.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<AggregateBookingContractCancellationState>>>showAggregateCancellationDataWithHttpInfo(String accountIdentifier, String winkVersion) reactor.core.publisher.Mono<AggregateBookingContractCaptureCurrenciesByAccountResponse>showCaptureCurrencies(String accountIdentifier, String state, String winkVersion) Retrieve capture currencies Returns a list of capture currencies and amounts for the account identifier.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AggregateBookingContractCaptureCurrenciesByAccountResponse>>showCaptureCurrenciesWithHttpInfo(String accountIdentifier, String state, String winkVersion) reactor.core.publisher.Mono<BookingContract>showContract(String identifier, String winkVersion) Retrieve single contract Returns a booking contract by its unique identifier.reactor.core.publisher.Mono<BookingContractGridResponse>showContractGrid(String accountIdentifier, String state, Integer page, Integer size, String winkVersion) Retrieve contract grid Returns booking contracts for account identifier.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContractGridResponse>>showContractGridWithHttpInfo(String accountIdentifier, String state, Integer page, Integer size, String winkVersion) reactor.core.publisher.Flux<BookingContract>showContracts(String traceId, String winkVersion) Retrieve multiple contracts Returns booking contracts matching traceId.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContract>>>showContractsWithHttpInfo(String traceId, String winkVersion) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>>showContractWithHttpInfo(String identifier, String winkVersion)
-
Constructor Details
-
ContractApi
public ContractApi() -
ContractApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 identifiercancelBookingContractRequest- The cancelBookingContractRequest parameterwinkVersion- 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 traceIdcancelBookingContractRequest- The cancelBookingContractRequest parameterwinkVersion- 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 identifiercancelBookingContractRequest- The cancelBookingContractRequest parameterwinkVersion- 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 traceIdcancelBookingContractRequest- The cancelBookingContractRequest parameterwinkVersion- 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
-
requestRefund
public reactor.core.publisher.Mono<BookingContract> requestRefund(String identifier, RefundRequest refundRequest, String winkVersion) throws org.springframework.web.reactive.function.client.WebClientResponseException Request refund Requests a refund for a booking contract. Creates a refund request record that needs to be approved by a payment admin.200 - OK
- Parameters:
identifier- Booking contract identifierrefundRequest- The refundRequest parameterwinkVersion- The winkVersion parameter- Returns:
- BookingContract
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
requestRefundWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>> requestRefundWithHttpInfo(String identifier, RefundRequest refundRequest, 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 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 parametertype- The type parameterwinkVersion- 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 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 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 parameterwinkVersion- 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 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 parameterstate- The state parameterwinkVersion- 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 identifierwinkVersion- 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 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 parameterstate- The state parameterpage- The page parametersize- The size parameterwinkVersion- 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 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 identifierwinkVersion- 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
-