Class LineItemStateTransitionMessageImpl
- All Implemented Interfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,LineItemStateTransitionMessage
,Message
,OrderMessage
,Versioned<Message>
,io.vrap.rmf.base.client.ModelBase
Generated after a successful Transition LineItem State update action.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.message.LineItemStateTransitionMessage
LINE_ITEM_STATE_TRANSITION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Date and time (UTC) the Message was generated.Present on resources created after 1 February 2019 except for events not tracked.State the Line Item was transitioned from.getId()
Unique identifier of the Message.Value ofcreatedAt
.Value ofcreatedBy
.Unique identifier of the Line Item.User-defined unique identifier of the LineItem.Number of Line Items for which the State was transitioned.Reference to the resource on which the change or action was performed.User-provided identifiers of the resource, such askey
orexternalId
.Version of the resource on which the change or action was performed.Message number in relation to other Messages for a given resource.State the Line Item was transitioned to.Date and time (UTC) when the transition of the Line Item State was performed.getType()
Message Type of the Message.Version of a resource.int
hashCode()
void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Message was generated.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setFromState
(StateReference fromState) State the Line Item was transitioned from.void
Unique identifier of the Message.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Value ofcreatedAt
.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Value ofcreatedBy
.void
setLineItemId
(String lineItemId) Unique identifier of the Line Item.void
setLineItemKey
(String lineItemKey) User-defined unique identifier of the LineItem.void
setQuantity
(Long quantity) Number of Line Items for which the State was transitioned.void
setResource
(Reference resource) Reference to the resource on which the change or action was performed.void
setResourceUserProvidedIdentifiers
(UserProvidedIdentifiers resourceUserProvidedIdentifiers) User-provided identifiers of the resource, such askey
orexternalId
.void
setResourceVersion
(Long resourceVersion) Version of the resource on which the change or action was performed.void
setSequenceNumber
(Long sequenceNumber) Message number in relation to other Messages for a given resource.void
setToState
(StateReference toState) State the Line Item was transitioned to.void
setTransitionDate
(ZonedDateTime transitionDate) Date and time (UTC) when the transition of the Line Item State was performed.void
setVersion
(Long version) Version of a resource.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.LineItemStateTransitionMessage
withLineItemStateTransitionMessage
Methods inherited from interface com.commercetools.api.models.message.Message
withMessage
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Constructor Details
-
LineItemStateTransitionMessageImpl
public LineItemStateTransitionMessageImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Message. Can be used to track which Messages have been processed.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<Message>
- Specified by:
getId
in interfaceIdentifiable<Message>
- Specified by:
getId
in interfaceMessage
- Specified by:
getId
in interfaceVersioned<Message>
- Returns:
- id
-
getVersion
Version of a resource. In case of Messages, this is always
1
.- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<Message>
- Specified by:
getVersion
in interfaceMessage
- Specified by:
getVersion
in interfaceVersioned<Message>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Message was generated.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceMessage
- Returns:
- createdAt
-
getLastModifiedAt
Value of
createdAt
.- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceMessage
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Value of
createdBy
.- Specified by:
getLastModifiedBy
in interfaceMessage
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceMessage
- Returns:
- createdBy
-
getSequenceNumber
Message number in relation to other Messages for a given resource. The
sequenceNumber
of the next Message for the resource is the successor of thesequenceNumber
of the current Message. Meaning, thesequenceNumber
of the next Message equals thesequenceNumber
of the current Message + 1.sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.- Specified by:
getSequenceNumber
in interfaceMessage
- Returns:
- sequenceNumber
-
getResource
Reference to the resource on which the change or action was performed.
- Specified by:
getResource
in interfaceMessage
- Returns:
- resource
-
getResourceVersion
Version of the resource on which the change or action was performed.
- Specified by:
getResourceVersion
in interfaceMessage
- Returns:
- resourceVersion
-
getType
Message Type of the Message.
-
getResourceUserProvidedIdentifiers
User-provided identifiers of the resource, such as
key
orexternalId
. Only present if the resource has such identifiers.- Specified by:
getResourceUserProvidedIdentifiers
in interfaceMessage
- Returns:
- resourceUserProvidedIdentifiers
-
getLineItemId
Unique identifier of the Line Item.
- Specified by:
getLineItemId
in interfaceLineItemStateTransitionMessage
- Returns:
- lineItemId
-
getLineItemKey
User-defined unique identifier of the LineItem.
- Specified by:
getLineItemKey
in interfaceLineItemStateTransitionMessage
- Returns:
- lineItemKey
-
getTransitionDate
Date and time (UTC) when the transition of the Line Item State was performed.
- Specified by:
getTransitionDate
in interfaceLineItemStateTransitionMessage
- Returns:
- transitionDate
-
getQuantity
Number of Line Items for which the State was transitioned.
- Specified by:
getQuantity
in interfaceLineItemStateTransitionMessage
- Returns:
- quantity
-
getFromState
State the Line Item was transitioned from.
- Specified by:
getFromState
in interfaceLineItemStateTransitionMessage
- Returns:
- fromState
-
getToState
State the Line Item was transitioned to.
- Specified by:
getToState
in interfaceLineItemStateTransitionMessage
- Returns:
- toState
-
setId
Description copied from interface:Message
Unique identifier of the Message. Can be used to track which Messages have been processed.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceMessage
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:Message
Version of a resource. In case of Messages, this is always
1
.- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceMessage
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:Message
Date and time (UTC) the Message was generated.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceMessage
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:Message
Value of
createdAt
.- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceMessage
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:Message
Value of
createdBy
.- Specified by:
setLastModifiedBy
in interfaceMessage
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:Message
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceMessage
- Parameters:
createdBy
- value to be set
-
setSequenceNumber
Description copied from interface:Message
Message number in relation to other Messages for a given resource. The
sequenceNumber
of the next Message for the resource is the successor of thesequenceNumber
of the current Message. Meaning, thesequenceNumber
of the next Message equals thesequenceNumber
of the current Message + 1.sequenceNumber
can be used to ensure that Messages are processed in the correct order for a particular resource.- Specified by:
setSequenceNumber
in interfaceMessage
- Parameters:
sequenceNumber
- value to be set
-
setResource
Description copied from interface:Message
Reference to the resource on which the change or action was performed.
- Specified by:
setResource
in interfaceMessage
- Parameters:
resource
- value to be set
-
setResourceVersion
Description copied from interface:Message
Version of the resource on which the change or action was performed.
- Specified by:
setResourceVersion
in interfaceMessage
- Parameters:
resourceVersion
- value to be set
-
setResourceUserProvidedIdentifiers
public void setResourceUserProvidedIdentifiers(UserProvidedIdentifiers resourceUserProvidedIdentifiers) Description copied from interface:Message
User-provided identifiers of the resource, such as
key
orexternalId
. Only present if the resource has such identifiers.- Specified by:
setResourceUserProvidedIdentifiers
in interfaceMessage
- Parameters:
resourceUserProvidedIdentifiers
- value to be set
-
setLineItemId
Description copied from interface:LineItemStateTransitionMessage
Unique identifier of the Line Item.
- Specified by:
setLineItemId
in interfaceLineItemStateTransitionMessage
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:LineItemStateTransitionMessage
User-defined unique identifier of the LineItem.
- Specified by:
setLineItemKey
in interfaceLineItemStateTransitionMessage
- Parameters:
lineItemKey
- value to be set
-
setTransitionDate
Description copied from interface:LineItemStateTransitionMessage
Date and time (UTC) when the transition of the Line Item State was performed.
- Specified by:
setTransitionDate
in interfaceLineItemStateTransitionMessage
- Parameters:
transitionDate
- value to be set
-
setQuantity
Description copied from interface:LineItemStateTransitionMessage
Number of Line Items for which the State was transitioned.
- Specified by:
setQuantity
in interfaceLineItemStateTransitionMessage
- Parameters:
quantity
- value to be set
-
setFromState
Description copied from interface:LineItemStateTransitionMessage
State the Line Item was transitioned from.
- Specified by:
setFromState
in interfaceLineItemStateTransitionMessage
- Parameters:
fromState
- value to be set
-
setToState
Description copied from interface:LineItemStateTransitionMessage
State the Line Item was transitioned to.
- Specified by:
setToState
in interfaceLineItemStateTransitionMessage
- Parameters:
toState
- value to be set
-
equals
-
hashCode
public int hashCode()
-