Package com.duffel.sdk.api
Class OrderChangeRequestsApi
java.lang.Object
com.duffel.sdk.api.OrderChangeRequestsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class OrderChangeRequestsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GetOrderChangeRequestById200Response>createOrderChangeRequest(String accept, String duffelVersion, String acceptEncoding, String contentType, CreateOrderChangeRequestRequest createOrderChangeRequestRequest) Create an order change request To change flights on an existing paid order, you'll need to create an __order change request__.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeRequestById200Response>>createOrderChangeRequestWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String contentType, CreateOrderChangeRequestRequest createOrderChangeRequestRequest) reactor.core.publisher.Mono<GetOrderChangeRequestById200Response>getOrderChangeRequestById(String accept, String duffelVersion, String id, String acceptEncoding) Get a single order change request Retrieves an order change request by its IDreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeRequestById200Response>>getOrderChangeRequestByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
OrderChangeRequestsApi
public OrderChangeRequestsApi() -
OrderChangeRequestsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createOrderChangeRequest
public reactor.core.publisher.Mono<GetOrderChangeRequestById200Response> createOrderChangeRequest(String accept, String duffelVersion, String acceptEncoding, String contentType, CreateOrderChangeRequestRequest createOrderChangeRequestRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException Create an order change request To change flights on an existing paid order, you'll need to create an __order change request__. An order change request describes the slices you want to change and the details of where and when they want to travel (in the form of a list of __slices__). Any new slices will all need to use the same cabin class. We'll send your search to the airline you originally booked with to search for __order_change_offers__. This list will be empty if no offers are available. These can be viewed through the [Get a single order change offer](docs/api/order-change-offers/get-order-change-offer-by-id) endpoint. Each offer represents a set of flights you can buy from the airline to add to your order at a particular price that meet your search criteria. Inside the offers, you'll see your slices, but now each slice will also include a list of one or more specific flights (called __segments__) that the airline is *offering* to get the passengers where they want to go. When presenting offers to your customers, you should always show the full name of the operating carrier of each segment (`slices[].segments[].operating_carrier.name`). This must be displayed prominently on the first screen where the offer is presented in order to comply with [US regulations](https://www.ecfr.gov/cgi-bin/text-idx?SID=8e736a5c813a737a5c2f6700a4c9006d&mc=true&node=pt14.4.257&rgn=div5).201 - An order change request
- 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.contentType- All request bodies sent to the API should be in JSON format. A `Content-Type` header is required whenever you're sending a request body (i.e. for POST and PUT requests).createOrderChangeRequestRequest- The createOrderChangeRequestRequest parameter- Returns:
- GetOrderChangeRequestById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
createOrderChangeRequestWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeRequestById200Response>> createOrderChangeRequestWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String contentType, CreateOrderChangeRequestRequest createOrderChangeRequestRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-
getOrderChangeRequestById
public reactor.core.publisher.Mono<GetOrderChangeRequestById200Response> getOrderChangeRequestById(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Get a single order change request Retrieves an order change request by its ID200 - A single order change request
- 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 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.- Returns:
- GetOrderChangeRequestById200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getOrderChangeRequestByIdWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetOrderChangeRequestById200Response>> getOrderChangeRequestByIdWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException - Throws:
org.springframework.web.reactive.function.client.WebClientResponseException
-