Interface TransitionLineItemStateChange

All Superinterfaces:
Change
All Known Implementing Classes:
TransitionLineItemStateChangeImpl

public interface TransitionLineItemStateChange extends Change

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.

Example to create an instance using the builder pattern

     TransitionLineItemStateChange transitionLineItemStateChange = TransitionLineItemStateChange.builder()
             .change("{change}")
             .plusPreviousValue(previousValueBuilder -> previousValueBuilder)
             .plusNextValue(nextValueBuilder -> nextValueBuilder)
             .lineItemId("{lineItemId}")
             .stateId("{stateId}")
             .build()