Interface LineItemStateTransitionMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,OrderMessage,Versioned<Message>
Generated after a successful Transition LineItem State update action.
Example to create an instance using the builder pattern
LineItemStateTransitionMessage lineItemStateTransitionMessage = LineItemStateTransitionMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.lineItemId("{lineItemId}")
.transitionDate(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.quantity(0.3)
.fromState(fromStateBuilder -> fromStateBuilder)
.toState(toStateBuilder -> toStateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for LineItemStateTransitionMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for LineItemStateTransitionMessagebuilder(LineItemStateTransitionMessage template) create builder for LineItemStateTransitionMessage instancecopyDeep()deepCopy(LineItemStateTransitionMessage template) factory method to create a deep copy of LineItemStateTransitionMessage@NotNull @Valid StateReference@NotNull StringUnique identifier of the Line Item.User-defined unique identifier of the LineItem.@NotNull LongNumber of Line Items for which the State was transitioned.@NotNull @Valid StateReference@NotNull ZonedDateTimeof()factory methodof(LineItemStateTransitionMessage template) factory method to create a shallow copy LineItemStateTransitionMessagevoidsetFromState(StateReference fromState) voidsetLineItemId(String lineItemId) Unique identifier of the Line Item.voidsetLineItemKey(String lineItemKey) User-defined unique identifier of the LineItem.voidsetQuantity(Long quantity) Number of Line Items for which the State was transitioned.voidsetToState(StateReference toState) voidsetTransitionDate(ZonedDateTime transitionDate) static com.fasterxml.jackson.core.type.TypeReference<LineItemStateTransitionMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessageMethods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Field Details
-
LINE_ITEM_STATE_TRANSITION
discriminator value for LineItemStateTransitionMessage- See Also:
-
-
Method Details
-
getLineItemId
Unique identifier of the Line Item.
- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()User-defined unique identifier of the LineItem.
- Returns:
- lineItemKey
-
getTransitionDate
- Returns:
- transitionDate
-
getQuantity
Number of Line Items for which the State was transitioned.
- Returns:
- quantity
-
getFromState
- Returns:
- fromState
-
getToState
- Returns:
- toState
-
setLineItemId
Unique identifier of the Line Item.
- Parameters:
lineItemId- value to be set
-
setLineItemKey
User-defined unique identifier of the LineItem.
- Parameters:
lineItemKey- value to be set
-
setTransitionDate
- Parameters:
transitionDate- value to be set
-
setQuantity
Number of Line Items for which the State was transitioned.
- Parameters:
quantity- value to be set
-
setFromState
- Parameters:
fromState- value to be set
-
setToState
- Parameters:
toState- value to be set
-
of
factory method- Returns:
- instance of LineItemStateTransitionMessage
-
of
factory method to create a shallow copy LineItemStateTransitionMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
LineItemStateTransitionMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage- Specified by:
copyDeepin interfaceOrderMessage
-
deepCopy
@Nullable static LineItemStateTransitionMessage deepCopy(@Nullable LineItemStateTransitionMessage template) factory method to create a deep copy of LineItemStateTransitionMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LineItemStateTransitionMessage- Returns:
- builder
-
builder
create builder for LineItemStateTransitionMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withLineItemStateTransitionMessage
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<LineItemStateTransitionMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-