Class AsyncOrdersClient
- java.lang.Object
-
- com.chrt.api.resources.shipping.orders.AsyncOrdersClient
-
public class AsyncOrdersClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<AsyncExpandedClient>expandedClient
-
Constructor Summary
Constructors Constructor Description AsyncOrdersClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>cancelV1(java.lang.String orderId)Cancels an order and all related task groups and tasks in a transaction.java.util.concurrent.CompletableFuture<java.lang.Boolean>cancelV1(java.lang.String orderId, RequestOptions requestOptions)Cancels an order and all related task groups and tasks in a transaction.AsyncExpandedClientexpanded()java.util.concurrent.CompletableFuture<java.lang.Boolean>stageV1(java.lang.String orderId)Validates a draft order and stages all related entities in a transaction.java.util.concurrent.CompletableFuture<java.lang.Boolean>stageV1(java.lang.String orderId, RequestOptions requestOptions)Validates a draft order and stages all related entities in a transaction.AsyncRawOrdersClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
expandedClient
protected final java.util.function.Supplier<AsyncExpandedClient> expandedClient
-
-
Constructor Detail
-
AsyncOrdersClient
public AsyncOrdersClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawOrdersClient withRawResponse()
Get responses with HTTP metadata like headers
-
stageV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> stageV1(java.lang.String orderId)
Validates a draft order and stages all related entities in a transaction. | () -> (bool)
-
stageV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> stageV1(java.lang.String orderId, RequestOptions requestOptions)Validates a draft order and stages all related entities in a transaction. | () -> (bool)
-
cancelV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> cancelV1(java.lang.String orderId)
Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
-
cancelV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> cancelV1(java.lang.String orderId, RequestOptions requestOptions)Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
-
expanded
public AsyncExpandedClient expanded()
-
-