Generated after a successful Change Embedded Price update action.

interface ProductPriceChangedMessagePayload {
    newPrice: Price;
    oldPrice: Price;
    oldStagedPrice?: Price;
    staged: boolean;
    type: "ProductPriceChanged";
    variantId: number;
}

Properties

newPrice: Price

The Embedded Price after the Change Embedded Price update action.

oldPrice: Price

The current Embedded Price before the Change Embedded Price update action.

oldStagedPrice?: Price

The staged Embedded Price before the Change Embedded Price update action.

staged: boolean

Whether the update was only applied to the staged Product Projection.

type: "ProductPriceChanged"
variantId: number

Unique identifier of the ProductVariant for which the Price was changed.

Generated using TypeDoc