Table of Contents

Interface IPriceCalculationResultItem<TProductIdentifier, TProductData>

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Represents the result of calculating prices for a single item in an order. This interface is not intended for custom implementation. Use PriceCalculationResultItem or PriceCalculationResultItemBase<TProductIdentifier, TProductData> for extensibility.

public interface IPriceCalculationResultItem<out TProductIdentifier, out TProductData> where TProductIdentifier : ProductIdentifier where TProductData : ProductData, new()

Type Parameters

TProductIdentifier

Product identifier type.

TProductData

Product data type.

Extension Methods

Properties

LineTotal

decimal LineTotal { get; set; }

Property Value

decimal

Remarks

The total price of the line item. Calculated as Quantity * UnitPrice.

ProductData

Product data used for the calculation and calculation result.

TProductData ProductData { get; }

Property Value

TProductData

ProductIdentifier

Unique identifier for the associated product in the cart. Used to link calculation logic to a specific cart item.

TProductIdentifier ProductIdentifier { get; }

Property Value

TProductIdentifier

Quantity

Quantity.

decimal Quantity { get; set; }

Property Value

decimal