Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ShipmentPriceMatrix

Container for all prices that can be associated with the shipment.

Inheritance
System.Object
ShipmentPriceMatrix
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class ShipmentPriceMatrix : Object

Constructors

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.