Class LineItemStateTransitionMessagePayloadBuilder

java.lang.Object
com.commercetools.api.models.message.LineItemStateTransitionMessagePayloadBuilder
All Implemented Interfaces:
Builder<LineItemStateTransitionMessagePayload>

public class LineItemStateTransitionMessagePayloadBuilder extends Object implements Builder<LineItemStateTransitionMessagePayload>
LineItemStateTransitionMessagePayloadBuilder
Example to create an instance using the builder pattern

     LineItemStateTransitionMessagePayload lineItemStateTransitionMessagePayload = LineItemStateTransitionMessagePayload.builder()
             .lineItemId("{lineItemId}")
             .transitionDate(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .quantity(0.3)
             .fromState(fromStateBuilder -> fromStateBuilder)
             .toState(toStateBuilder -> toStateBuilder)
             .build()