Package travel.wink.sdk.payment.api
Class ContractApi
java.lang.Object
travel.wink.sdk.payment.api.ContractApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-10-18T16:41:24.680347747+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) Cancel booking Cancels a booking contract.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>>cancelBookingContractWithHttpInfo(String identifier, CancelBookingContractRequest cancelBookingContractRequest) reactor.core.publisher.Flux<BookingContract>cancelGroupBookingContract(String traceId, CancelBookingContractRequest cancelBookingContractRequest) Cancel group bookings Cancels a group booking contract.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContract>>>cancelGroupBookingContractWithHttpInfo(String traceId, CancelBookingContractRequest cancelBookingContractRequest) reactor.core.publisher.Mono<BookingContractCancellableResponse>isContractCancellable(String identifier, CancelBookingContractRequest cancelBookingContractRequest) 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) reactor.core.publisher.Flux<BookingContractCancellableResponse>isGroupContractCancellable(String traceId, CancelBookingContractRequest cancelBookingContractRequest, String accept) 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 accept) voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Flux<BeneficiaryAggregateData>showAggregateBookingContractData(String type, String accept) Retrieve aggregate beneficiary data Returns aggregate contract data this account identifier has participated in.reactor.core.publisher.Flux<BeneficiaryAggregateData>showAggregateBookingContractData1(String accountIdentifier, String type, String accept) Retrieve aggregate beneficiary data Returns aggregate contract data this account identifier has participated in.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BeneficiaryAggregateData>>>showAggregateBookingContractData1WithHttpInfo(String accountIdentifier, String type, String accept) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BeneficiaryAggregateData>>>showAggregateBookingContractDataWithHttpInfo(String type, String accept) reactor.core.publisher.Flux<AggregateBookingContractCancellationState>showAggregateCancellationData(String accept) Retrieve aggregate cancellation data Returns aggregate cancellation data this account identifier has participated in.reactor.core.publisher.Flux<AggregateBookingContractCancellationState>showAggregateCancellationData1(String accountIdentifier, String accept) Retrieve aggregate cancellation data Returns aggregate cancellation data this account identifier has participated in.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<AggregateBookingContractCancellationState>>>showAggregateCancellationData1WithHttpInfo(String accountIdentifier, String accept) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<AggregateBookingContractCancellationState>>>reactor.core.publisher.Mono<AggregateBookingContractCaptureCurrenciesByAccountResponse>showCaptureCurrencies(String accountIdentifier, String state, String accept) 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 accept) reactor.core.publisher.Mono<BookingContract>showContract(String identifier, String accept) Retrieve single contract Returns a booking contract by its unique identifier.reactor.core.publisher.Mono<BookingContractGridResponse>showContractGrid(String state, Integer page, Integer size, String accept) Retrieve contract grid Returns booking contracts for account identifier.reactor.core.publisher.Mono<BookingContractGridResponse>showContractGrid1(String accountIdentifier, String state, Integer page, Integer size, String accept) Retrieve contract grid Returns booking contracts for account identifier.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContractGridResponse>>showContractGrid1WithHttpInfo(String accountIdentifier, String state, Integer page, Integer size, String accept) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContractGridResponse>>showContractGridWithHttpInfo(String state, Integer page, Integer size, String accept) reactor.core.publisher.Flux<BookingContract>showContracts(String traceId, String accept) Retrieve multiple contracts Returns booking contracts matching traceId.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<BookingContract>>>showContractsWithHttpInfo(String traceId, String accept) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<BookingContract>>showContractWithHttpInfo(String identifier, String accept)
-
Constructor Details
-
ContractApi
public ContractApi() -
ContractApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 identifiercancelBookingContractRequest- 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 traceIdcancelBookingContractRequest- 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) 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 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) 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 traceIdcancelBookingContractRequest- The cancelBookingContractRequest parameteraccept- 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
-
showAggregateBookingContractData
public reactor.core.publisher.Flux<BeneficiaryAggregateData> showAggregateBookingContractData(String type, String accept) 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 parameteraccept- The accept 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 accept) 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 accept) 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 parameteraccept- The accept 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 accept) 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 accept) 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:
accept- The accept 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 accept) 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 accept) 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 parameteraccept- The accept 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 accept) 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 accept) 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 parameteraccept- The accept 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 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 identifieraccept- 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
-
showContractGrid
public reactor.core.publisher.Mono<BookingContractGridResponse> showContractGrid(String state, Integer page, Integer size, String accept) throws org.springframework.web.reactive.function.client.WebClientResponseException Retrieve contract grid Returns booking contracts for account identifier.200 - OK
- Parameters:
state- The state parameterpage- The page parametersize- The size parameteraccept- The accept 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 accept) 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 accept) 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 parameteraccept- The accept 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 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 identifieraccept- 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
-