Package com.duffel.sdk.api
Class SeatMapsApi
java.lang.Object
com.duffel.sdk.api.SeatMapsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class SeatMapsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GetSeatMaps200Response>getSeatMaps(String accept, String duffelVersion, String offerId, String acceptEncoding) Get seat maps Gets seat maps by specific parameters.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetSeatMaps200Response>>getSeatMapsWithHttpInfo(String accept, String duffelVersion, String offerId, String acceptEncoding) voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
SeatMapsApi
public SeatMapsApi() -
SeatMapsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getSeatMaps
public reactor.core.publisher.Mono<GetSeatMaps200Response> getSeatMaps(String accept, String duffelVersion, String offerId, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get seat maps Gets seat maps by specific parameters. At the moment we only support querying by an offer ID. A list of seat maps, one per segment, will be returned, which you can use to build a seat selection UI for your customers. This is not available for all airlines or flights, so seat maps will not always be returned. If there are one or more passengers, you do not have to select a seat for each one. Each passenger can only select one seat per segment. Two passengers cannot select the same seat. As with other services when creating an order, the total amount charged will be the cost of the offer and any selected services.200 - A list of seat maps.
- Parameters:
accept- All responses from the API are in JSON format with UTF-8 encoding. An `Accept` header is required with every request.duffelVersion- You'll need to send a `Duffel-Version` header with each request so we know which version of the API you want to use. Currently, the only available API version is `beta`.offerId- The offer ID which you want to get seat maps foracceptEncoding- We recommend enabling compression for responses returned by the API, since they can be very large. To enable compression, send an `Accept-Encoding` header. You'll need to configure your HTTP client to decompress responses. Most clients will have this functionality built-in.- Returns:
- GetSeatMaps200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getSeatMapsWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetSeatMaps200Response>> getSeatMapsWithHttpInfo(String accept, String duffelVersion, String offerId, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-