Package com.duffel.sdk.api
Class SupportingResourcesApi
java.lang.Object
com.duffel.sdk.api.SupportingResourcesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class SupportingResourcesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GetAircraft200Response>getAircraft(String accept, String duffelVersion, String acceptEncoding, Integer limit, String before, String after) List aircraft Retrieves a paginated list of all aircraft.reactor.core.publisher.Mono<GetAircraftById200Response>Get a single aircraft Retrieves an aircraft by its IDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAircraftById200Response>>reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAircraft200Response>>getAircraftWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, Integer limit, String before, String after) reactor.core.publisher.Mono<GetAirlineById200Response>getAirlineById(String accept, String duffelVersion, String id, String acceptEncoding) Get a single airline Retrieves an airline by its IDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirlineById200Response>>getAirlineByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) reactor.core.publisher.Mono<GetAirlines200Response>getAirlines(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit) List airlines Retrieves a paginated list of all airlines.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirlines200Response>>getAirlinesWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit) reactor.core.publisher.Mono<GetAirportById200Response>getAirportById(String accept, String duffelVersion, String id, String acceptEncoding) Get a single airport Retrieves an airport by its IDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirportById200Response>>getAirportByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) reactor.core.publisher.Mono<GetAirports200Response>getAirports(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit, String iataCountryCode) List airports Retrieves a paginated list of all airports.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirports200Response>>getAirportsWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit, String iataCountryCode) reactor.core.publisher.Mono<GetPlaceSuggestions200Response>getPlaceSuggestions(String accept, String duffelVersion, String acceptEncoding, String query) List Place suggestions Retrieves a list of Places whose airport/city/country name or IATA code match the provided query.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetPlaceSuggestions200Response>>getPlaceSuggestionsWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String query) voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
SupportingResourcesApi
public SupportingResourcesApi() -
SupportingResourcesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getAircraft
public reactor.core.publisher.Mono<GetAircraft200Response> getAircraft(String accept, String duffelVersion, String acceptEncoding, Integer limit, String before, String after) throws org.springframework.web.reactive.function.client.WebClientResponseException List aircraft Retrieves a paginated list of all aircraft. The results may be returned in any order.200 - A paginated list of aircraft
- 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`.acceptEncoding- 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.limit- The maximum number of records to return per page. Defaults to `50`. May be set to any integer between `1` and `200`. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.before- A cursor pointing to the next page of records. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.after- A cursor pointing to the previous page of records. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.- Returns:
- GetAircraft200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAircraftWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAircraft200Response>> getAircraftWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, Integer limit, String before, String after) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getAircraftById
public reactor.core.publisher.Mono<GetAircraftById200Response> getAircraftById(String id) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single aircraft Retrieves an aircraft by its ID200 - A single aircraft resource
- Parameters:
id- Duffel's unique identifier for the aircraft- Returns:
- GetAircraftById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAircraftByIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAircraftById200Response>> getAircraftByIdWithHttpInfo(String id) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getAirlineById
public reactor.core.publisher.Mono<GetAirlineById200Response> getAirlineById(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single airline Retrieves an airline by its ID200 - A single aircraft resource
- 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`.id- Duffel's unique identifier for the airlineacceptEncoding- 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:
- GetAirlineById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAirlineByIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirlineById200Response>> getAirlineByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getAirlines
public reactor.core.publisher.Mono<GetAirlines200Response> getAirlines(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit) throws org.springframework.web.reactive.function.client.WebClientResponseException List airlines Retrieves a paginated list of all airlines. The results may be returned in any order.200 - A paginated list of airlines
- 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`.acceptEncoding- 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.after- A cursor pointing to the previous page of records. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.before- A cursor pointing to the next page of records. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.limit- The maximum number of records to return per page. Defaults to `50`. May be set to any integer between `1` and `200`. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.- Returns:
- GetAirlines200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAirlinesWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirlines200Response>> getAirlinesWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getAirportById
public reactor.core.publisher.Mono<GetAirportById200Response> getAirportById(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single airport Retrieves an airport by its ID200 - A single airport resource
- 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`.id- Duffel's unique identifier for the airportacceptEncoding- 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:
- GetAirportById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAirportByIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirportById200Response>> getAirportByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getAirports
public reactor.core.publisher.Mono<GetAirports200Response> getAirports(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit, String iataCountryCode) throws org.springframework.web.reactive.function.client.WebClientResponseException List airports Retrieves a paginated list of all airports. The results may be returned in any order.200 - A paginated list of airports
- 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`.acceptEncoding- 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.after- A cursor pointing to the previous page of records. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.before- A cursor pointing to the next page of records. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.limit- The maximum number of records to return per page. Defaults to `50`. May be set to any integer between `1` and `200`. For more information on how to paginate through records, see the [Pagination](/docs/api/overview/pagination) section.iataCountryCode- Filters the returned airports by their `iata_country_code` - see the `iata_country_code` parameter in the [Airport schema](/docs/api/airports/schema) for details- Returns:
- GetAirports200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAirportsWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirports200Response>> getAirportsWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String after, String before, Integer limit, String iataCountryCode) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getPlaceSuggestions
public reactor.core.publisher.Mono<GetPlaceSuggestions200Response> getPlaceSuggestions(String accept, String duffelVersion, String acceptEncoding, String query) throws org.springframework.web.reactive.function.client.WebClientResponseException List Place suggestions Retrieves a list of Places whose airport/city/country name or IATA code match the provided query.200 - A list of Places
- 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`.acceptEncoding- 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.query- A search string for finding matching Places.- Returns:
- GetPlaceSuggestions200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getPlaceSuggestionsWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetPlaceSuggestions200Response>> getPlaceSuggestionsWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String query) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-