Interface StagedOrderImportLineItemStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
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 Item states' quantities.
Example to create an instance using the builder pattern
StagedOrderImportLineItemStateAction stagedOrderImportLineItemStateAction = StagedOrderImportLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderImportLineItemStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderImportLineItemStateActionbuilder(StagedOrderImportLineItemStateAction template) create builder for StagedOrderImportLineItemStateAction instancecopyDeep()deepCopy(StagedOrderImportLineItemStateAction template) factory method to create a deep copy of StagedOrderImportLineItemStateActionidof the LineItem to update.keyof the LineItem to update.getState()New status of the Line Items.of()factory methodof(StagedOrderImportLineItemStateAction template) factory method to create a shallow copy StagedOrderImportLineItemStateActionvoidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.voidNew status of the Line Items.voidNew status of the Line Items.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderImportLineItemStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
IMPORT_LINE_ITEM_STATE
discriminator value for StagedOrderImportLineItemStateAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getState
New status of the Line Items.
- Returns:
- state
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis 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 StagedOrderImportLineItemStateAction
-
of
factory method to create a shallow copy StagedOrderImportLineItemStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderImportLineItemStateAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderImportLineItemStateAction deepCopy(@Nullable StagedOrderImportLineItemStateAction template) factory method to create a deep copy of StagedOrderImportLineItemStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderImportLineItemStateAction- Returns:
- builder
-
builder
static StagedOrderImportLineItemStateActionBuilder builder(StagedOrderImportLineItemStateAction template) create builder for StagedOrderImportLineItemStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderImportLineItemStateAction
default <T> T withStagedOrderImportLineItemStateAction(Function<StagedOrderImportLineItemStateAction, T> helper) 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<StagedOrderImportLineItemStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-