Package com.duffel.sdk.api
Class OrderChangeOffersApi
java.lang.Object
com.duffel.sdk.api.OrderChangeOffersApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OrderChangeOffersApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GetOrderChangeOfferById200Response> getOrderChangeOfferById(String accept, String duffelVersion, String id, String acceptEncoding) Get a single order change offer Retrieves an order change offer by its IDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeOfferById200Response>> getOrderChangeOfferByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) Get a single order change offer Retrieves an order change offer by its IDorg.springframework.web.reactive.function.client.WebClient.ResponseSpecgetOrderChangeOfferByIdWithResponseSpec(String accept, String duffelVersion, String id, String acceptEncoding) Get a single order change offer Retrieves an order change offer by its IDreactor.core.publisher.Mono<GetOrderChangeOffersByOrderChangeRequestId200Response> getOrderChangeOffersByOrderChangeRequestId(String accept, String duffelVersion, String orderChangeRequestId, String acceptEncoding, String after, String before, Integer limit, String sort, Integer maxConnections) List order change offers Returns a list of order change offers for a given order change requestIDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeOffersByOrderChangeRequestId200Response>> getOrderChangeOffersByOrderChangeRequestIdWithHttpInfo(String accept, String duffelVersion, String orderChangeRequestId, String acceptEncoding, String after, String before, Integer limit, String sort, Integer maxConnections) List order change offers Returns a list of order change offers for a given order change requestIDorg.springframework.web.reactive.function.client.WebClient.ResponseSpecgetOrderChangeOffersByOrderChangeRequestIdWithResponseSpec(String accept, String duffelVersion, String orderChangeRequestId, String acceptEncoding, String after, String before, Integer limit, String sort, Integer maxConnections) List order change offers Returns a list of order change offers for a given order change requestIDvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
OrderChangeOffersApi
public OrderChangeOffersApi() -
OrderChangeOffersApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getOrderChangeOfferById
public reactor.core.publisher.Mono<GetOrderChangeOfferById200Response> getOrderChangeOfferById(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single order change offer Retrieves an order change offer by its ID200 - A single order change offer
- 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 order change offeracceptEncoding- 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:
- GetOrderChangeOfferById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getOrderChangeOfferByIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeOfferById200Response>> getOrderChangeOfferByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single order change offer Retrieves an order change offer by its ID200 - A single order change offer
- 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 order change offeracceptEncoding- 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:
- ResponseEntity<GetOrderChangeOfferById200Response>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getOrderChangeOfferByIdWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getOrderChangeOfferByIdWithResponseSpec(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single order change offer Retrieves an order change offer by its ID200 - A single order change offer
- 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 order change offeracceptEncoding- 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:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getOrderChangeOffersByOrderChangeRequestId
public reactor.core.publisher.Mono<GetOrderChangeOffersByOrderChangeRequestId200Response> getOrderChangeOffersByOrderChangeRequestId(String accept, String duffelVersion, String orderChangeRequestId, String acceptEncoding, String after, String before, Integer limit, String sort, Integer maxConnections) throws org.springframework.web.reactive.function.client.WebClientResponseException List order change offers Returns a list of order change offers for a given order change requestID200 - A paginated list of order change offers
- 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`.orderChangeRequestId- Duffel's unique identifier for the order change requestacceptEncoding- 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.sort- By default, the offers will be returned sorted by ID in ascending order. This parameter allows you to sort the list of offers by `change_total_amount` or `total_duration`. By default the sorting order will be ascending, if you wish to sort in descending order a `-` will need to be prepended to the sorting attribute (i.e: `-change_total_amount`).maxConnections- Allows to filter the offers list by the maximum number of connections in a given offer. e.g. a return flight with three flights outbound and a direct inbound flight would be filtered out if `max_connections=1` was passed.- Returns:
- GetOrderChangeOffersByOrderChangeRequestId200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getOrderChangeOffersByOrderChangeRequestIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeOffersByOrderChangeRequestId200Response>> getOrderChangeOffersByOrderChangeRequestIdWithHttpInfo(String accept, String duffelVersion, String orderChangeRequestId, String acceptEncoding, String after, String before, Integer limit, String sort, Integer maxConnections) throws org.springframework.web.reactive.function.client.WebClientResponseException List order change offers Returns a list of order change offers for a given order change requestID200 - A paginated list of order change offers
- 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`.orderChangeRequestId- Duffel's unique identifier for the order change requestacceptEncoding- 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.sort- By default, the offers will be returned sorted by ID in ascending order. This parameter allows you to sort the list of offers by `change_total_amount` or `total_duration`. By default the sorting order will be ascending, if you wish to sort in descending order a `-` will need to be prepended to the sorting attribute (i.e: `-change_total_amount`).maxConnections- Allows to filter the offers list by the maximum number of connections in a given offer. e.g. a return flight with three flights outbound and a direct inbound flight would be filtered out if `max_connections=1` was passed.- Returns:
- ResponseEntity<GetOrderChangeOffersByOrderChangeRequestId200Response>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getOrderChangeOffersByOrderChangeRequestIdWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getOrderChangeOffersByOrderChangeRequestIdWithResponseSpec(String accept, String duffelVersion, String orderChangeRequestId, String acceptEncoding, String after, String before, Integer limit, String sort, Integer maxConnections) throws org.springframework.web.reactive.function.client.WebClientResponseException List order change offers Returns a list of order change offers for a given order change requestID200 - A paginated list of order change offers
- 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`.orderChangeRequestId- Duffel's unique identifier for the order change requestacceptEncoding- 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.sort- By default, the offers will be returned sorted by ID in ascending order. This parameter allows you to sort the list of offers by `change_total_amount` or `total_duration`. By default the sorting order will be ascending, if you wish to sort in descending order a `-` will need to be prepended to the sorting attribute (i.e: `-change_total_amount`).maxConnections- Allows to filter the offers list by the maximum number of connections in a given offer. e.g. a return flight with three flights outbound and a direct inbound flight would be filtered out if `max_connections=1` was passed.- Returns:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-