Class OrderImportLineItemStateActionImpl
java.lang.Object
com.commercetools.api.models.order.OrderImportLineItemStateActionImpl
- All Implemented Interfaces:
OrderImportLineItemStateAction
,OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class OrderImportLineItemStateActionImpl
extends Object
implements OrderImportLineItemStateAction, 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 Items 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.OrderImportLineItemStateAction
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.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order.OrderImportLineItemStateAction
withOrderImportLineItemStateAction
Methods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
OrderImportLineItemStateActionImpl
public OrderImportLineItemStateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceOrderUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<OrderUpdateAction>
- Returns:
- action
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceOrderImportLineItemStateAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceOrderImportLineItemStateAction
- Returns:
- lineItemKey
-
getState
New status of the Line Items.
- Specified by:
getState
in interfaceOrderImportLineItemStateAction
- Returns:
- state
-
setLineItemId
Description copied from interface:OrderImportLineItemStateAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceOrderImportLineItemStateAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:OrderImportLineItemStateAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceOrderImportLineItemStateAction
- Parameters:
lineItemKey
- value to be set
-
setState
Description copied from interface:OrderImportLineItemStateAction
New status of the Line Items.
- Specified by:
setState
in interfaceOrderImportLineItemStateAction
- Parameters:
state
- values to be set
-
setState
Description copied from interface:OrderImportLineItemStateAction
New status of the Line Items.
- Specified by:
setState
in interfaceOrderImportLineItemStateAction
- Parameters:
state
- values to be set
-
equals
-
hashCode
public int hashCode() -
toString
-