Class ShipmentPriceMatrix
Container for all prices that can be associated with the shipment.
Inheritance
System.Object
ShipmentPriceMatrix
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 ShipmentPriceMatrix
Constructors
ShipmentPriceMatrix(IShippingCalculator)
Declaration
[Obsolete("This constructor is no longer used, use the one with IMarketService instead. Will remain at least until May 2019.")]
public ShipmentPriceMatrix(IShippingCalculator shippingCalculator)
Parameters
Type | Name | Description |
---|---|---|
IShippingCalculator | shippingCalculator |
ShipmentPriceMatrix(IShippingCalculator, IMarketService)
Creates an instance of the ShipmentPriceMatrix.
Declaration
public ShipmentPriceMatrix(IShippingCalculator shippingCalculator, IMarketService marketService)
Parameters
Type | Name | Description |
---|---|---|
IShippingCalculator | shippingCalculator | The shipping calculator. |
IMarketService | marketService | The market service. |
Methods
GetShippingCost(IShipment, IOrderGroup)
Gets the shipping cost for the shipment
.
Declaration
public virtual decimal GetShippingCost(IShipment shipment, IOrderGroup orderGroup)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
IOrderGroup | orderGroup | The order group, which the shipment belongs to. |
Returns
Type | Description |
---|---|
System.Decimal | The shipping cost. |