Package com.chrt.api.resources.orders
Class OrdersClient
- java.lang.Object
-
- com.chrt.api.resources.orders.OrdersClient
-
public class OrdersClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<DraftClient>draftClientprotected java.util.function.Supplier<ExpandedClient>expandedClientprotected java.util.function.Supplier<ExpandedListClient>expandedListClient
-
Constructor Summary
Constructors Constructor Description OrdersClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DraftClientdraft()ExpandedClientexpanded()ExpandedListClientexpandedList()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
-
expandedListClient
protected final java.util.function.Supplier<ExpandedListClient> expandedListClient
-
draftClient
protected final java.util.function.Supplier<DraftClient> draftClient
-
-
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.
-
stageV1
public boolean stageV1(java.lang.String orderId, RequestOptions requestOptions)Validates a draft order and stages all related entities in a transaction.
-
expanded
public ExpandedClient expanded()
-
expandedList
public ExpandedListClient expandedList()
-
draft
public DraftClient draft()
-
-