Class ShipmentPrice
This class is used to hold information about prices in the ShipmentPriceMatrix.
Inheritance
System.Object
ShipmentPrice
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.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public class ShipmentPrice
Remarks
This is primarily used for internal calculations. If you need to manipulate these instances directly you're probably doing something that you shouldn't.
Constructors
ShipmentPrice(IShipment, Decimal)
Creates an instance of the ShipmentPrice
Declaration
public ShipmentPrice(IShipment shipment, decimal shippingCost)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment |
System.Decimal | shippingCost | The shipping cost. |
Properties
ActualTotal
Total cost of the shipment.
Declaration
public decimal ActualTotal { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
OriginalShippingDiscount
The ShipmentDiscount before calculations.
Declaration
public decimal OriginalShippingDiscount { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
OriginalTotal
The original shipment cost.
Declaration
public decimal OriginalTotal { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
SavedAmount
The saved amount of this shipment.
Declaration
public decimal SavedAmount { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Shipment
The shipment.
Declaration
public IShipment Shipment { get; }
Property Value
Type | Description |
---|---|
IShipment |