Class InventoryEntryQuantitySetMessageImpl

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

public class InventoryEntryQuantitySetMessageImpl extends Object implements InventoryEntryQuantitySetMessage, io.vrap.rmf.base.client.ModelBase

Generated after a successful Add Quantity, Remove Quantity or Change Quantity update action. Inventory changes as a result of Order creation do not trigger this message.

  • Constructor Details

    • InventoryEntryQuantitySetMessageImpl

      public InventoryEntryQuantitySetMessageImpl()
      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
    • getOldQuantityOnStock

      public Long getOldQuantityOnStock()

      Quantity on stock for the InventoryEntry before the quantity was updated.

      Specified by:
      getOldQuantityOnStock in interface InventoryEntryQuantitySetMessage
      Returns:
      oldQuantityOnStock
    • getNewQuantityOnStock

      public Long getNewQuantityOnStock()

      Quantity on stock for the InventoryEntry after the quantity was updated.

      Specified by:
      getNewQuantityOnStock in interface InventoryEntryQuantitySetMessage
      Returns:
      newQuantityOnStock
    • getOldAvailableQuantity

      public Long getOldAvailableQuantity()

      Available quantity for the InventoryEntry before the quantity was updated.

      Specified by:
      getOldAvailableQuantity in interface InventoryEntryQuantitySetMessage
      Returns:
      oldAvailableQuantity
    • getNewAvailableQuantity

      public Long getNewAvailableQuantity()

      Available quantity for the InventoryEntry after the quantity was updated.

      Specified by:
      getNewAvailableQuantity in interface InventoryEntryQuantitySetMessage
      Returns:
      newAvailableQuantity
    • getSupplyChannel

      public ChannelReference getSupplyChannel()

      Reference to the Channel where the InventoryEntry quantity was set.

      Specified by:
      getSupplyChannel in interface InventoryEntryQuantitySetMessage
      Returns:
      supplyChannel
    • 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
    • setOldQuantityOnStock

      public void setOldQuantityOnStock(Long oldQuantityOnStock)
      Description copied from interface: InventoryEntryQuantitySetMessage

      Quantity on stock for the InventoryEntry before the quantity was updated.

      Specified by:
      setOldQuantityOnStock in interface InventoryEntryQuantitySetMessage
      Parameters:
      oldQuantityOnStock - value to be set
    • setNewQuantityOnStock

      public void setNewQuantityOnStock(Long newQuantityOnStock)
      Description copied from interface: InventoryEntryQuantitySetMessage

      Quantity on stock for the InventoryEntry after the quantity was updated.

      Specified by:
      setNewQuantityOnStock in interface InventoryEntryQuantitySetMessage
      Parameters:
      newQuantityOnStock - value to be set
    • setOldAvailableQuantity

      public void setOldAvailableQuantity(Long oldAvailableQuantity)
      Description copied from interface: InventoryEntryQuantitySetMessage

      Available quantity for the InventoryEntry before the quantity was updated.

      Specified by:
      setOldAvailableQuantity in interface InventoryEntryQuantitySetMessage
      Parameters:
      oldAvailableQuantity - value to be set
    • setNewAvailableQuantity

      public void setNewAvailableQuantity(Long newAvailableQuantity)
      Description copied from interface: InventoryEntryQuantitySetMessage

      Available quantity for the InventoryEntry after the quantity was updated.

      Specified by:
      setNewAvailableQuantity in interface InventoryEntryQuantitySetMessage
      Parameters:
      newAvailableQuantity - value to be set
    • setSupplyChannel

      public void setSupplyChannel(ChannelReference supplyChannel)
      Description copied from interface: InventoryEntryQuantitySetMessage

      Reference to the Channel where the InventoryEntry quantity was set.

      Specified by:
      setSupplyChannel in interface InventoryEntryQuantitySetMessage
      Parameters:
      supplyChannel - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object