Generated after a successful recalculation of a Discount on a Line Item.

interface OrderLineItemDiscountSetMessagePayload {
    discountedPricePerQuantity: DiscountedLineItemPriceForQuantity[];
    lineItemId: string;
    lineItemKey?: string;
    taxedPrice?: TaxedItemPrice;
    taxedPricePortions: MethodTaxedPrice[];
    totalPrice: _Money;
    type: "OrderLineItemDiscountSet";
}

Properties

discountedPricePerQuantity: DiscountedLineItemPriceForQuantity[]

Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.

lineItemId: string

Unique identifier for the Line Item.

lineItemKey?: string

User-defined unique identifier of the LineItem.

taxedPrice?: TaxedItemPrice

TaxedItemPrice of the Line Item after the Discount recalculation.

taxedPricePortions: MethodTaxedPrice[]

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. Automatically set after perMethodTaxRate is set.

totalPrice: _Money

Total Price of the Line Item after the Discount recalculation.

type: "OrderLineItemDiscountSet"