Table of Contents

Class PriceCalculationResultBase<TPriceCalculationResultItem>

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Represents the result of calculating prices for an order, including itemized prices, totals, taxes, and shipping.

public abstract class PriceCalculationResultBase<TPriceCalculationResultItem> : IPriceCalculationResult where TPriceCalculationResultItem : IPriceCalculationResultItem<ProductIdentifier, ProductData>, new()

Type Parameters

TPriceCalculationResultItem

Calculation result item type.

Inheritance
object
PriceCalculationResultBase<TPriceCalculationResultItem>
Implements
Derived
Extension Methods

Remarks

Extend this class if you need to modify generic type of used items. Extend PriceCalculationResult if you don't need changing default item type of PriceCalculationResultItemBase<TProductIdentifier, TProductData>.

Constructors

PriceCalculationResultBase()

protected PriceCalculationResultBase()

Properties

GrandTotal

The final amount to be paid. Total price + shipping (+ additional taxes) - gift card promotions.

public decimal GrandTotal { get; set; }

Property Value

decimal

Items

Items of calculation result.

public ICollection<TPriceCalculationResultItem> Items { get; init; }

Property Value

ICollection<TPriceCalculationResultItem>

PromotionData

Promotion data.

public PriceCalculationResultPromotionData PromotionData { get; }

Property Value

PriceCalculationResultPromotionData

ShippingPrice

The price for shipping.

public decimal ShippingPrice { get; set; }

Property Value

decimal

ShippingTax

Nominal amount of shipping tax.

public decimal ShippingTax { get; set; }

Property Value

decimal

TotalPrice

The total price of all items after applying all promotions.

public decimal TotalPrice { get; set; }

Property Value

decimal

TotalTax

Total tax value.

public decimal TotalTax { get; set; }

Property Value

decimal