Class OrderFormTotals
The calculated totals for an order form
Inheritance
System.Object
OrderFormTotals
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class OrderFormTotals
Constructors
OrderFormTotals(Money, Money, Money, Money, Money, Money, IDictionary<IShipment, ShippingTotals>)
Creates an instance of OrderFormTotals.
Declaration
public OrderFormTotals(Money handlingTotal, Money shippingTotal, Money subTotal, Money taxTotal, Money total, Money discountTotal, IDictionary<IShipment, ShippingTotals> shippingTotals)
Parameters
Type | Name | Description |
---|---|---|
Money | handlingTotal | The order form handling total. |
Money | shippingTotal | The order form shipping total. |
Money | subTotal | The order form sub total. |
Money | taxTotal | The order form tax total. |
Money | total | The order form total. |
Money | discountTotal | The order form discount total. |
System.Collections.Generic.IDictionary<IShipment, ShippingTotals> | shippingTotals | The shipping totals. |
OrderFormTotals(Money, Money, Money, Money, Money, IDictionary<IShipment, ShippingTotals>)
Creates an instance of OrderFormTotals
Declaration
[Obsolete("Due lack of discount total information, this constructor is no longer used. Use constructor has discountTotal parameter instead. Will remain at least until November 2017.")]
public OrderFormTotals(Money handlingTotal, Money shippingTotal, Money subTotal, Money taxTotal, Money total, IDictionary<IShipment, ShippingTotals> shippingTotals)
Parameters
Type | Name | Description |
---|---|---|
Money | handlingTotal | The order form handling total |
Money | shippingTotal | The order form shipping total |
Money | subTotal | The order form sub total |
Money | taxTotal | The order form tax total |
Money | total | The order form total |
System.Collections.Generic.IDictionary<IShipment, ShippingTotals> | shippingTotals | The shipping totals |
Properties
DiscountTotal
The order form discount total.
Declaration
public Money DiscountTotal { get; }
Property Value
Type | Description |
---|---|
Money |
HandlingTotal
The order form handling total
Declaration
public Money HandlingTotal { get; }
Property Value
Type | Description |
---|---|
Money |
Item[IShipment]
Gets the shipping totals for an shipment
Declaration
public ShippingTotals this[IShipment shipment] { get; }
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment |
Property Value
Type | Description |
---|---|
ShippingTotals | The totals for the shipment |
ShippingTotal
The order form shipping total
Declaration
public Money ShippingTotal { get; }
Property Value
Type | Description |
---|---|
Money |
SubTotal
The total of extended prices for all line items in the order form.
Declaration
public Money SubTotal { get; }
Property Value
Type | Description |
---|---|
Money |
TaxTotal
The order form tax total
Declaration
public Money TaxTotal { get; }
Property Value
Type | Description |
---|---|
Money |
Total
The order form total
Declaration
public Money Total { get; }
Property Value
Type | Description |
---|---|
Money |