Class StagedOrderImportLineItemStateActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderImportLineItemStateActionImpl
- All Implemented Interfaces:
StagedOrderImportLineItemStateAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderImportLineItemStateActionImpl
extends Object
implements StagedOrderImportLineItemStateAction, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.order_edit.StagedOrderImportLineItemStateAction
IMPORT_LINE_ITEM_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the LineItem to update.key
of the LineItem to update.getState()
New status of the Line Items.int
hashCode()
void
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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderImportLineItemStateAction
withStagedOrderImportLineItemStateAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderImportLineItemStateActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceStagedOrderImportLineItemStateAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceStagedOrderImportLineItemStateAction
- Returns:
- lineItemKey
-
getState
New status of the Line Items.
- Specified by:
getState
in interfaceStagedOrderImportLineItemStateAction
- Returns:
- state
-
setLineItemId
Description copied from interface:StagedOrderImportLineItemStateAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceStagedOrderImportLineItemStateAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:StagedOrderImportLineItemStateAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceStagedOrderImportLineItemStateAction
- Parameters:
lineItemKey
- value to be set
-
setState
Description copied from interface:StagedOrderImportLineItemStateAction
New status of the Line Items.
- Specified by:
setState
in interfaceStagedOrderImportLineItemStateAction
- Parameters:
state
- values to be set
-
setState
Description copied from interface:StagedOrderImportLineItemStateAction
New status of the Line Items.
- Specified by:
setState
in interfaceStagedOrderImportLineItemStateAction
- Parameters:
state
- values to be set
-
equals
-
hashCode
-