Class OrdersClient
- java.lang.Object
-
- com.chrt.api.resources.shipping.orders.OrdersClient
-
public class OrdersClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<ExpandedClient>expandedClient
-
Constructor Summary
Constructors Constructor Description OrdersClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancelV1(java.lang.String orderId)Cancels an order and all related task groups and tasks in a transaction.booleancancelV1(java.lang.String orderId, RequestOptions requestOptions)Cancels an order and all related task groups and tasks in a transaction.ExpandedClientexpanded()booleanstageV1(java.lang.String orderId)Validates a draft order and stages all related entities in a transaction.booleanstageV1(java.lang.String orderId, RequestOptions requestOptions)Validates a draft order and stages all related entities in a transaction.RawOrdersClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
expandedClient
protected final java.util.function.Supplier<ExpandedClient> expandedClient
-
-
Constructor Detail
-
OrdersClient
public OrdersClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawOrdersClient withRawResponse()
Get responses with HTTP metadata like headers
-
stageV1
public boolean stageV1(java.lang.String orderId)
Validates a draft order and stages all related entities in a transaction. | () -> (bool)
-
stageV1
public boolean stageV1(java.lang.String orderId, RequestOptions requestOptions)Validates a draft order and stages all related entities in a transaction. | () -> (bool)
-
cancelV1
public 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 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 ExpandedClient expanded()
-
-