Package com.duffel.sdk.api
Class AirlineInitiatedChangesApi
java.lang.Object
com.duffel.sdk.api.AirlineInitiatedChangesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class AirlineInitiatedChangesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<UpdateAirlineInitiatedChanges200Response> acceptAirlineInitiatedChanges(String accept, String duffelVersion, String id, String acceptEncoding) Accept the airline-initiated change Once there is an airline-initiated change you can choose to accept it.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<UpdateAirlineInitiatedChanges200Response>> acceptAirlineInitiatedChangesWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) Accept the airline-initiated change Once there is an airline-initiated change you can choose to accept it.org.springframework.web.reactive.function.client.WebClient.ResponseSpecacceptAirlineInitiatedChangesWithResponseSpec(String accept, String duffelVersion, String id, String acceptEncoding) Accept the airline-initiated change Once there is an airline-initiated change you can choose to accept it.reactor.core.publisher.Mono<GetAirlineInitiatedChanges200Response> getAirlineInitiatedChanges(String accept, String duffelVersion, String acceptEncoding, String orderId) List airline-initiated changes Retrieves a list of all airline-initiated changes.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirlineInitiatedChanges200Response>> getAirlineInitiatedChangesWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String orderId) List airline-initiated changes Retrieves a list of all airline-initiated changes.org.springframework.web.reactive.function.client.WebClient.ResponseSpecgetAirlineInitiatedChangesWithResponseSpec(String accept, String duffelVersion, String acceptEncoding, String orderId) List airline-initiated changes Retrieves a list of all airline-initiated changes.voidsetApiClient(ApiClient apiClient) reactor.core.publisher.Mono<UpdateAirlineInitiatedChanges200Response> updateAirlineInitiatedChanges(String accept, String duffelVersion, String id, String acceptEncoding, UpdateAirlineInitiatedChangesRequest updateAirlineInitiatedChangesRequest) Update an airline-initiated change This endpoint is only available to those airline-initiated changes that Duffel cannot accept on behalf of the customer.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<UpdateAirlineInitiatedChanges200Response>> updateAirlineInitiatedChangesWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding, UpdateAirlineInitiatedChangesRequest updateAirlineInitiatedChangesRequest) Update an airline-initiated change This endpoint is only available to those airline-initiated changes that Duffel cannot accept on behalf of the customer.org.springframework.web.reactive.function.client.WebClient.ResponseSpecupdateAirlineInitiatedChangesWithResponseSpec(String accept, String duffelVersion, String id, String acceptEncoding, UpdateAirlineInitiatedChangesRequest updateAirlineInitiatedChangesRequest) Update an airline-initiated change This endpoint is only available to those airline-initiated changes that Duffel cannot accept on behalf of the customer.
-
Constructor Details
-
AirlineInitiatedChangesApi
public AirlineInitiatedChangesApi() -
AirlineInitiatedChangesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
acceptAirlineInitiatedChanges
public reactor.core.publisher.Mono<UpdateAirlineInitiatedChanges200Response> acceptAirlineInitiatedChanges(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Accept the airline-initiated change Once there is an airline-initiated change you can choose to accept it.200 - Airline-initiated Change has been accepted with airline
202 - Airline-initiated Change acceptance is in progress
- 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 airline-initiated changeacceptEncoding- 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:
- UpdateAirlineInitiatedChanges200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
acceptAirlineInitiatedChangesWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<UpdateAirlineInitiatedChanges200Response>> acceptAirlineInitiatedChangesWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Accept the airline-initiated change Once there is an airline-initiated change you can choose to accept it.200 - Airline-initiated Change has been accepted with airline
202 - Airline-initiated Change acceptance is in progress
- 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 airline-initiated changeacceptEncoding- 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<UpdateAirlineInitiatedChanges200Response>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
acceptAirlineInitiatedChangesWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec acceptAirlineInitiatedChangesWithResponseSpec(String accept, String duffelVersion, String id, String acceptEncoding) throws org.springframework.web.reactive.function.client.WebClientResponseException Accept the airline-initiated change Once there is an airline-initiated change you can choose to accept it.200 - Airline-initiated Change has been accepted with airline
202 - Airline-initiated Change acceptance is in progress
- 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 airline-initiated changeacceptEncoding- 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
-
getAirlineInitiatedChanges
public reactor.core.publisher.Mono<GetAirlineInitiatedChanges200Response> getAirlineInitiatedChanges(String accept, String duffelVersion, String acceptEncoding, String orderId) throws org.springframework.web.reactive.function.client.WebClientResponseException List airline-initiated changes Retrieves a list of all airline-initiated changes.200 - A list of airline-initiated changes
- 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.orderId- Filters airline-initiated changes by their order ID. Value must be a valid order ID. Check the [Order schema](/docs/api/orders/schema#orders-schema-id) for details.- Returns:
- GetAirlineInitiatedChanges200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAirlineInitiatedChangesWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<GetAirlineInitiatedChanges200Response>> getAirlineInitiatedChangesWithHttpInfo(String accept, String duffelVersion, String acceptEncoding, String orderId) throws org.springframework.web.reactive.function.client.WebClientResponseException List airline-initiated changes Retrieves a list of all airline-initiated changes.200 - A list of airline-initiated changes
- 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.orderId- Filters airline-initiated changes by their order ID. Value must be a valid order ID. Check the [Order schema](/docs/api/orders/schema#orders-schema-id) for details.- Returns:
- ResponseEntity<GetAirlineInitiatedChanges200Response>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
getAirlineInitiatedChangesWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec getAirlineInitiatedChangesWithResponseSpec(String accept, String duffelVersion, String acceptEncoding, String orderId) throws org.springframework.web.reactive.function.client.WebClientResponseException List airline-initiated changes Retrieves a list of all airline-initiated changes.200 - A list of airline-initiated changes
- 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.orderId- Filters airline-initiated changes by their order ID. Value must be a valid order ID. Check the [Order schema](/docs/api/orders/schema#orders-schema-id) for details.- Returns:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
updateAirlineInitiatedChanges
public reactor.core.publisher.Mono<UpdateAirlineInitiatedChanges200Response> updateAirlineInitiatedChanges(String accept, String duffelVersion, String id, String acceptEncoding, UpdateAirlineInitiatedChangesRequest updateAirlineInitiatedChangesRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException Update an airline-initiated change This endpoint is only available to those airline-initiated changes that Duffel cannot accept on behalf of the customer. Duffel is unable to accept an airline-initiated change when these two conditions aretrue: the order was booked with the merchant's IATA number and Duffel is unable to accept the airline-initiated change programatically. In this case you, the customer, are responsible to resolve airline-initiated changes concerning this order (e.g. by contacting the airline directly). Once these have been resolved, you need to inform us of the action taken so we can mark it accordingly in our system.200 - A single airline-initiated change
- 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 airline-initiated changeacceptEncoding- 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.updateAirlineInitiatedChangesRequest- The updateAirlineInitiatedChangesRequest parameter- Returns:
- UpdateAirlineInitiatedChanges200Response
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
updateAirlineInitiatedChangesWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<UpdateAirlineInitiatedChanges200Response>> updateAirlineInitiatedChangesWithHttpInfo(String accept, String duffelVersion, String id, String acceptEncoding, UpdateAirlineInitiatedChangesRequest updateAirlineInitiatedChangesRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException Update an airline-initiated change This endpoint is only available to those airline-initiated changes that Duffel cannot accept on behalf of the customer. Duffel is unable to accept an airline-initiated change when these two conditions aretrue: the order was booked with the merchant's IATA number and Duffel is unable to accept the airline-initiated change programatically. In this case you, the customer, are responsible to resolve airline-initiated changes concerning this order (e.g. by contacting the airline directly). Once these have been resolved, you need to inform us of the action taken so we can mark it accordingly in our system.200 - A single airline-initiated change
- 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 airline-initiated changeacceptEncoding- 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.updateAirlineInitiatedChangesRequest- The updateAirlineInitiatedChangesRequest parameter- Returns:
- ResponseEntity<UpdateAirlineInitiatedChanges200Response>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
updateAirlineInitiatedChangesWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec updateAirlineInitiatedChangesWithResponseSpec(String accept, String duffelVersion, String id, String acceptEncoding, UpdateAirlineInitiatedChangesRequest updateAirlineInitiatedChangesRequest) throws org.springframework.web.reactive.function.client.WebClientResponseException Update an airline-initiated change This endpoint is only available to those airline-initiated changes that Duffel cannot accept on behalf of the customer. Duffel is unable to accept an airline-initiated change when these two conditions aretrue: the order was booked with the merchant's IATA number and Duffel is unable to accept the airline-initiated change programatically. In this case you, the customer, are responsible to resolve airline-initiated changes concerning this order (e.g. by contacting the airline directly). Once these have been resolved, you need to inform us of the action taken so we can mark it accordingly in our system.200 - A single airline-initiated change
- 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 airline-initiated changeacceptEncoding- 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.updateAirlineInitiatedChangesRequest- The updateAirlineInitiatedChangesRequest parameter- Returns:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-