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-06-20T21:56:48.173220+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, String accept) 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 accept) 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.Mono<BookingContract>showContract(String identifier, String accept) Retrieve single contract Returns a booking contract by its unique identifier.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, 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 identifiercancelBookingContractRequest- The cancelBookingContractRequest parameteraccept- 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 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
-
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
-
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
-