Table of Contents

Class PriceCalculationResultBase<TCalculationResultItem>

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<TCalculationResultItem> : IPriceCalculationResult where TCalculationResultItem : IPriceCalculationResultItem<ProductIdentifier, ProductData>, new()

Type Parameters

TCalculationResultItem

Calculation result item type.

Inheritance
object
PriceCalculationResultBase<TCalculationResultItem>
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 discounts.

public decimal GrandTotal { get; set; }

Property Value

decimal

Items

Items of calculation result.

public ICollection<TCalculationResultItem> Items { get; set; }

Property Value

ICollection<TCalculationResultItem>

ShippingPrice

The price for shipping.

public decimal ShippingPrice { get; set; }

Property Value

decimal

Subtotal

The sum of prices of all line totals.

public decimal Subtotal { get; set; }

Property Value

decimal

TotalPrice

The total price of all items after applying all discounts.

public decimal TotalPrice { get; set; }

Property Value

decimal

TotalTax

Total tax value.

public decimal TotalTax { get; set; }

Property Value

decimal