Class TransitionLineItemStateChangeImpl
java.lang.Object
com.commercetools.history.models.change.TransitionLineItemStateChangeImpl
- All Implemented Interfaces:
Change,TransitionLineItemStateChange,io.vrap.rmf.base.client.ModelBase
public class TransitionLineItemStateChangeImpl
extends Object
implements TransitionLineItemStateChange, io.vrap.rmf.base.client.ModelBase
Change triggered by the following update actions:
- Change the state of LineItem according to allowed transitions on Orders.
- Change the state of LineItem according to allowed transitions on Staged Orders.
-
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.history.models.change.TransitionLineItemStateChange
TRANSITION_LINE_ITEM_STATE_CHANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanType of change on a resource that is similar to the update action it relates to, where possible.idof the updated LineItem.Value after the change.Value before the change.idof the State involved in the transition.getType()Unique discriminator value to reliably deserialize the data type.inthashCode()voidset changevoidsetLineItemId(String lineItemId) idof the updated LineItem.voidsetNextValue(ItemState... nextValue) Value after the change.voidsetNextValue(List<ItemState> nextValue) Value after the change.voidsetPreviousValue(ItemState... previousValue) Value before the change.voidsetPreviousValue(List<ItemState> previousValue) Value before the change.voidsetStateId(String stateId) idof the State involved in the transition.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.commercetools.history.models.change.Change
withChangeMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.history.models.change.TransitionLineItemStateChange
withTransitionLineItemStateChange
-
Constructor Details
-
TransitionLineItemStateChangeImpl
public TransitionLineItemStateChangeImpl()create empty instance
-
-
Method Details
-
getType
Description copied from interface:ChangeUnique discriminator value to reliably deserialize the data type.
- Specified by:
getTypein interfaceChange- Specified by:
getTypein interfaceTransitionLineItemStateChange- Returns:
- type
-
getChange
Description copied from interface:ChangeType of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the
setDescriptionchange can occur with a localized and non-localized representation.Records can be filtered by this value using the
changesquery parameter.- Specified by:
getChangein interfaceChange- Specified by:
getChangein interfaceTransitionLineItemStateChange- Returns:
- change
-
getPreviousValue
Value before the change.
- Specified by:
getPreviousValuein interfaceTransitionLineItemStateChange- Returns:
- previousValue
-
getNextValue
Value after the change.
- Specified by:
getNextValuein interfaceTransitionLineItemStateChange- Returns:
- nextValue
-
getLineItemId
idof the updated LineItem.- Specified by:
getLineItemIdin interfaceTransitionLineItemStateChange- Returns:
- lineItemId
-
getStateId
idof the State involved in the transition.- Specified by:
getStateIdin interfaceTransitionLineItemStateChange- Returns:
- stateId
-
setChange
Description copied from interface:TransitionLineItemStateChangeset change- Specified by:
setChangein interfaceChange- Specified by:
setChangein interfaceTransitionLineItemStateChange- Parameters:
change- value to be set
-
setPreviousValue
Description copied from interface:TransitionLineItemStateChangeValue before the change.
- Specified by:
setPreviousValuein interfaceTransitionLineItemStateChange- Parameters:
previousValue- values to be set
-
setPreviousValue
Description copied from interface:TransitionLineItemStateChangeValue before the change.
- Specified by:
setPreviousValuein interfaceTransitionLineItemStateChange- Parameters:
previousValue- values to be set
-
setNextValue
Description copied from interface:TransitionLineItemStateChangeValue after the change.
- Specified by:
setNextValuein interfaceTransitionLineItemStateChange- Parameters:
nextValue- values to be set
-
setNextValue
Description copied from interface:TransitionLineItemStateChangeValue after the change.
- Specified by:
setNextValuein interfaceTransitionLineItemStateChange- Parameters:
nextValue- values to be set
-
setLineItemId
Description copied from interface:TransitionLineItemStateChangeidof the updated LineItem.- Specified by:
setLineItemIdin interfaceTransitionLineItemStateChange- Parameters:
lineItemId- value to be set
-
setStateId
Description copied from interface:TransitionLineItemStateChangeidof the State involved in the transition.- Specified by:
setStateIdin interfaceTransitionLineItemStateChange- Parameters:
stateId- value to be set
-
equals
-
hashCode
-