Interface OrderImportLineItemStateAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
The import of States does not follow any predefined rules and should be only used if no transitions are defined. The quantity
in the ItemStates must match the sum of all Line Items states' quantities.
Example to create an instance using the builder pattern
OrderImportLineItemStateAction orderImportLineItemStateAction = OrderImportLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderImportLineItemStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderImportLineItemStateActionbuilder
(OrderImportLineItemStateAction template) create builder for OrderImportLineItemStateAction instancedeepCopy
(OrderImportLineItemStateAction template) factory method to create a deep copy of OrderImportLineItemStateActionid
of the LineItem to update.key
of the LineItem to update.getState()
New status of the Line Items.of()
factory methodof
(OrderImportLineItemStateAction template) factory method to create a shallow copy OrderImportLineItemStateActionvoid
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
New status of the Line Items.void
New status of the Line Items.static com.fasterxml.jackson.core.type.TypeReference<OrderImportLineItemStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
IMPORT_LINE_ITEM_STATE
discriminator value for OrderImportLineItemStateAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getState
New status of the Line Items.
- Returns:
- state
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setState
New status of the Line Items.
- Parameters:
state
- values to be set
-
setState
New status of the Line Items.
- Parameters:
state
- values to be set
-
of
factory method- Returns:
- instance of OrderImportLineItemStateAction
-
of
factory method to create a shallow copy OrderImportLineItemStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderImportLineItemStateAction deepCopy(@Nullable OrderImportLineItemStateAction template) factory method to create a deep copy of OrderImportLineItemStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderImportLineItemStateAction- Returns:
- builder
-
builder
create builder for OrderImportLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderImportLineItemStateAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<OrderImportLineItemStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-