@gradientedge/commercetools-utils
    Preparing search index...

    Interface InventoryEntryQuantitySetMessage

    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.

    interface InventoryEntryQuantitySetMessage {
        createdAt: string;
        createdBy?: CreatedBy;
        id: string;
        lastModifiedAt: string;
        lastModifiedBy?: LastModifiedBy;
        newAvailableQuantity: number;
        newQuantityOnStock: number;
        oldAvailableQuantity: number;
        oldQuantityOnStock: number;
        resource: Reference;
        resourceUserProvidedIdentifiers?: UserProvidedIdentifiers;
        resourceVersion: number;
        sequenceNumber: number;
        supplyChannel?: ChannelReference;
        type: "InventoryEntryQuantitySet";
        version: number;
    }

    Hierarchy (View Summary)

    • IMessage
      • InventoryEntryQuantitySetMessage
    Index

    Properties

    createdAt: string

    Date and time (UTC) the Message was generated.

    createdBy?: CreatedBy

    IDs and references that created the Message.

    id: string

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

    lastModifiedAt: string

    Value of createdAt.

    lastModifiedBy?: LastModifiedBy

    IDs and references that last modified the Message.

    newAvailableQuantity: number

    Available quantity for the InventoryEntry after the quantity was updated.

    newQuantityOnStock: number

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

    oldAvailableQuantity: number

    Available quantity for the InventoryEntry before the quantity was updated.

    oldQuantityOnStock: number

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

    resource: Reference

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

    resourceUserProvidedIdentifiers?: UserProvidedIdentifiers

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

    resourceVersion: number

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

    sequenceNumber: number

    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.

    supplyChannel?: ChannelReference

    Reference to the Channel where the InventoryEntry quantity was set.

    type: "InventoryEntryQuantitySet"

    Message Type of the Message.

    version: number

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