Interface CustomLineItemStateTransitionMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,OrderMessage,Versioned<Message>
Generated after a successful Transition CustomLineItem State update action.
Example to create an instance using the builder pattern
CustomLineItemStateTransitionMessage customLineItemStateTransitionMessage = CustomLineItemStateTransitionMessage.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)
.customLineItemId("{customLineItemId}")
.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 CustomLineItemStateTransitionMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomLineItemStateTransitionMessagebuilder(CustomLineItemStateTransitionMessage template) create builder for CustomLineItemStateTransitionMessage instancecopyDeep()deepCopy(CustomLineItemStateTransitionMessage template) factory method to create a deep copy of CustomLineItemStateTransitionMessage@NotNull StringUnique identifier of the Custom Line Item.User-defined unique identifier of the Custom Line Item.@NotNull @Valid StateReferenceState the Custom Line Item was transitioned from.@NotNull LongNumber of Custom Line Items for which the State was transitioned.@NotNull @Valid StateReferenceState the Custom Line Item was transitioned to.@NotNull ZonedDateTimeDate and time (UTC) the transition of the Custom Line Item State was performed.of()factory methodof(CustomLineItemStateTransitionMessage template) factory method to create a shallow copy CustomLineItemStateTransitionMessagevoidsetCustomLineItemId(String customLineItemId) Unique identifier of the Custom Line Item.voidsetCustomLineItemKey(String customLineItemKey) User-defined unique identifier of the Custom Line Item.voidsetFromState(StateReference fromState) State the Custom Line Item was transitioned from.voidsetQuantity(Long quantity) Number of Custom Line Items for which the State was transitioned.voidsetToState(StateReference toState) State the Custom Line Item was transitioned to.voidsetTransitionDate(ZonedDateTime transitionDate) Date and time (UTC) the transition of the Custom Line Item State was performed.static com.fasterxml.jackson.core.type.TypeReference<CustomLineItemStateTransitionMessage>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
-
CUSTOM_LINE_ITEM_STATE_TRANSITION
discriminator value for CustomLineItemStateTransitionMessage- See Also:
-
-
Method Details
-
getCustomLineItemId
Unique identifier of the Custom Line Item.
- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()User-defined unique identifier of the Custom Line Item.
- Returns:
- customLineItemKey
-
getTransitionDate
Date and time (UTC) the transition of the Custom Line Item State was performed.
- Returns:
- transitionDate
-
getQuantity
Number of Custom Line Items for which the State was transitioned.
- Returns:
- quantity
-
getFromState
State the Custom Line Item was transitioned from.
- Returns:
- fromState
-
getToState
State the Custom Line Item was transitioned to.
- Returns:
- toState
-
setCustomLineItemId
Unique identifier of the Custom Line Item.
- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
User-defined unique identifier of the Custom Line Item.
- Parameters:
customLineItemKey- value to be set
-
setTransitionDate
Date and time (UTC) the transition of the Custom Line Item State was performed.
- Parameters:
transitionDate- value to be set
-
setQuantity
Number of Custom Line Items for which the State was transitioned.
- Parameters:
quantity- value to be set
-
setFromState
State the Custom Line Item was transitioned from.
- Parameters:
fromState- value to be set
-
setToState
State the Custom Line Item was transitioned to.
- Parameters:
toState- value to be set
-
of
factory method- Returns:
- instance of CustomLineItemStateTransitionMessage
-
of
factory method to create a shallow copy CustomLineItemStateTransitionMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomLineItemStateTransitionMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage- Specified by:
copyDeepin interfaceOrderMessage
-
deepCopy
@Nullable static CustomLineItemStateTransitionMessage deepCopy(@Nullable CustomLineItemStateTransitionMessage template) factory method to create a deep copy of CustomLineItemStateTransitionMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomLineItemStateTransitionMessage- Returns:
- builder
-
builder
static CustomLineItemStateTransitionMessageBuilder builder(CustomLineItemStateTransitionMessage template) create builder for CustomLineItemStateTransitionMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomLineItemStateTransitionMessage
default <T> T withCustomLineItemStateTransitionMessage(Function<CustomLineItemStateTransitionMessage, T> helper) 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<CustomLineItemStateTransitionMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-