Class CustomLineItemStateTransitionMessagePayloadBuilder

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

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

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