Class AsyncFlightsClient
- java.lang.Object
-
- com.chrt.api.resources.shipping.flights.AsyncFlightsClient
-
public class AsyncFlightsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncFlightsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<FlightInfoForTaskRes>getFlightInfoForTaskV1(java.lang.String taskId)Returns flight info from an adjacent FLIGHT task group for TENDER_TO_AIRLINE or RECOVER_FROM_AIRLINE tasks.java.util.concurrent.CompletableFuture<FlightInfoForTaskRes>getFlightInfoForTaskV1(java.lang.String taskId, RequestOptions requestOptions)Returns flight info from an adjacent FLIGHT task group for TENDER_TO_AIRLINE or RECOVER_FROM_AIRLINE tasks.AsyncRawFlightsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncFlightsClient
public AsyncFlightsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawFlightsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getFlightInfoForTaskV1
public java.util.concurrent.CompletableFuture<FlightInfoForTaskRes> getFlightInfoForTaskV1(java.lang.String taskId)
Returns flight info from an adjacent FLIGHT task group for TENDER_TO_AIRLINE or RECOVER_FROM_AIRLINE tasks. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)
-
getFlightInfoForTaskV1
public java.util.concurrent.CompletableFuture<FlightInfoForTaskRes> getFlightInfoForTaskV1(java.lang.String taskId, RequestOptions requestOptions)
Returns flight info from an adjacent FLIGHT task group for TENDER_TO_AIRLINE or RECOVER_FROM_AIRLINE tasks. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)
-
-