Produces the ProductPriceExternalDiscountSet Message.

interface ProductSetDiscountedPriceAction {
    action: "setDiscountedPrice";
    discounted?: DiscountedPriceDraft;
    priceId: string;
    staged?: boolean;
}

Properties

action: "setDiscountedPrice"

Value to set. If empty, any existing value will be removed. The referenced ProductDiscount must have the Type external, be active, and its predicate must match the referenced Price.

priceId: string

The id of the Price to set the Discount.

staged?: boolean

If true, only the staged Embedded Price is updated. If false, both the current and staged Embedded Price are updated.

Generated using TypeDoc