Class ParcelItemsUpdatedMessageImpl

java.lang.Object
com.commercetools.api.models.message.ParcelItemsUpdatedMessageImpl
All Implemented Interfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, OrderMessage, ParcelItemsUpdatedMessage, Versioned<Message>, io.vrap.rmf.base.client.ModelBase

public class ParcelItemsUpdatedMessageImpl extends Object implements ParcelItemsUpdatedMessage, io.vrap.rmf.base.client.ModelBase

Generated after a successful Set Parcel Items update action.

  • Constructor Details

    • ParcelItemsUpdatedMessageImpl

      public ParcelItemsUpdatedMessageImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Message. Can be used to track which Messages have been processed.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface DomainResource<Message>
      Specified by:
      getId in interface Identifiable<Message>
      Specified by:
      getId in interface Message
      Specified by:
      getId in interface Versioned<Message>
      Returns:
      id
    • getVersion

      public Long getVersion()

      Version of a resource. In case of Messages, this is always 1.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface DomainResource<Message>
      Specified by:
      getVersion in interface Message
      Specified by:
      getVersion in interface Versioned<Message>
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Message was generated.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface Message
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Value of createdAt.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface Message
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Value of createdBy.

      Specified by:
      getLastModifiedBy in interface Message
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface Message
      Returns:
      createdBy
    • getSequenceNumber

      public Long 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 the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber 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 interface Message
      Returns:
      sequenceNumber
    • getResource

      public Reference getResource()

      Reference to the resource on which the change or action was performed.

      Specified by:
      getResource in interface Message
      Returns:
      resource
    • getResourceVersion

      public Long getResourceVersion()

      Version of the resource on which the change or action was performed.

      Specified by:
      getResourceVersion in interface Message
      Returns:
      resourceVersion
    • getType

      public String getType()

      Message Type of the Message.

      Specified by:
      getType in interface Message
      Returns:
      type
    • getResourceUserProvidedIdentifiers

      public UserProvidedIdentifiers getResourceUserProvidedIdentifiers()

      User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

      Specified by:
      getResourceUserProvidedIdentifiers in interface Message
      Returns:
      resourceUserProvidedIdentifiers
    • getParcelId

      public String getParcelId()

      Unique identifier of the Parcel.

      Specified by:
      getParcelId in interface ParcelItemsUpdatedMessage
      Returns:
      parcelId
    • getDeliveryId

      public String getDeliveryId()

      Unique identifier of the Delivery.

      Specified by:
      getDeliveryId in interface ParcelItemsUpdatedMessage
      Returns:
      deliveryId
    • getItems

      public List<DeliveryItem> getItems()

      Delivery Items after the Set Parcel Items update action.

      Specified by:
      getItems in interface ParcelItemsUpdatedMessage
      Returns:
      items
    • getOldItems

      public List<DeliveryItem> getOldItems()

      Delivery Items before the Set Parcel Items update action.

      Specified by:
      getOldItems in interface ParcelItemsUpdatedMessage
      Returns:
      oldItems
    • getShippingKey

      public String getShippingKey()

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Specified by:
      getShippingKey in interface ParcelItemsUpdatedMessage
      Returns:
      shippingKey
    • setId

      public void setId(String id)
      Description copied from interface: Message

      Unique identifier of the Message. Can be used to track which Messages have been processed.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface Message
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: Message

      Version of a resource. In case of Messages, this is always 1.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface Message
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Message

      Date and time (UTC) the Message was generated.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface Message
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: Message

      Value of createdAt.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface Message
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: Message

      Value of createdBy.

      Specified by:
      setLastModifiedBy in interface Message
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: Message

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface Message
      Parameters:
      createdBy - value to be set
    • setSequenceNumber

      public void setSequenceNumber(Long sequenceNumber)
      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 the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber 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 interface Message
      Parameters:
      sequenceNumber - value to be set
    • setResource

      public void setResource(Reference resource)
      Description copied from interface: Message

      Reference to the resource on which the change or action was performed.

      Specified by:
      setResource in interface Message
      Parameters:
      resource - value to be set
    • setResourceVersion

      public void setResourceVersion(Long resourceVersion)
      Description copied from interface: Message

      Version of the resource on which the change or action was performed.

      Specified by:
      setResourceVersion in interface Message
      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 or externalId. Only present if the resource has such identifiers.

      Specified by:
      setResourceUserProvidedIdentifiers in interface Message
      Parameters:
      resourceUserProvidedIdentifiers - value to be set
    • setParcelId

      public void setParcelId(String parcelId)
      Description copied from interface: ParcelItemsUpdatedMessage

      Unique identifier of the Parcel.

      Specified by:
      setParcelId in interface ParcelItemsUpdatedMessage
      Parameters:
      parcelId - value to be set
    • setDeliveryId

      public void setDeliveryId(String deliveryId)
      Description copied from interface: ParcelItemsUpdatedMessage

      Unique identifier of the Delivery.

      Specified by:
      setDeliveryId in interface ParcelItemsUpdatedMessage
      Parameters:
      deliveryId - value to be set
    • setItems

      public void setItems(DeliveryItem... items)
      Description copied from interface: ParcelItemsUpdatedMessage

      Delivery Items after the Set Parcel Items update action.

      Specified by:
      setItems in interface ParcelItemsUpdatedMessage
      Parameters:
      items - values to be set
    • setItems

      public void setItems(List<DeliveryItem> items)
      Description copied from interface: ParcelItemsUpdatedMessage

      Delivery Items after the Set Parcel Items update action.

      Specified by:
      setItems in interface ParcelItemsUpdatedMessage
      Parameters:
      items - values to be set
    • setOldItems

      public void setOldItems(DeliveryItem... oldItems)
      Description copied from interface: ParcelItemsUpdatedMessage

      Delivery Items before the Set Parcel Items update action.

      Specified by:
      setOldItems in interface ParcelItemsUpdatedMessage
      Parameters:
      oldItems - values to be set
    • setOldItems

      public void setOldItems(List<DeliveryItem> oldItems)
      Description copied from interface: ParcelItemsUpdatedMessage

      Delivery Items before the Set Parcel Items update action.

      Specified by:
      setOldItems in interface ParcelItemsUpdatedMessage
      Parameters:
      oldItems - values to be set
    • setShippingKey

      public void setShippingKey(String shippingKey)
      Description copied from interface: ParcelItemsUpdatedMessage

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Specified by:
      setShippingKey in interface ParcelItemsUpdatedMessage
      Parameters:
      shippingKey - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object