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: 10.8.0
Syntax
public class ShipmentPriceMatrix

Constructors

ShipmentPriceMatrix(IShippingCalculator)

Creates an instance of the ShipmentPriceMatrix.

Declaration
public ShipmentPriceMatrix(IShippingCalculator shippingCalculator)
Parameters
Type Name Description
IShippingCalculator shippingCalculator

The shipping calculator.

Methods

GetShipmentCost(IShipment, IOrderGroup)

Gets the shipment cost for the shipment.

Declaration
[Obsolete("This method is no longer used. Use GetShippingCost instead. Will remain at least until September 2017.")]
public virtual decimal GetShipmentCost(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 shipment cost.

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.