Class IShipmentExtensions
Extension methods for IShipment
Inheritance
System.Object
IShipmentExtensions
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 static class IShipmentExtensions
Methods
GetShipmentDiscountPrice(IShipment, Currency)
Gets the shipment discount price.
Declaration
public static Money GetShipmentDiscountPrice(this IShipment shipment, Currency currency)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
Currency | currency | The currency. |
Returns
Type | Description |
---|---|
Money |
GetShipmentDiscountPrice(IShipment, Currency, IShippingCalculator)
Gets the shipment discount price.
Declaration
public static Money GetShipmentDiscountPrice(this IShipment shipment, Currency currency, IShippingCalculator calculator)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
Currency | currency | The currency. |
IShippingCalculator | calculator | The calculator. |
Returns
Type | Description |
---|---|
Money |
GetShippingCost(IShipment, IMarket, Currency)
Gets the shipping cost of the shipment.
Declaration
public static Money GetShippingCost(this IShipment shipment, IMarket market, Currency currency)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
IMarket | market | The market. |
Currency | currency | The currency. |
Returns
Type | Description |
---|---|
Money | The shipping cost of the shipment. |
GetShippingCost(IShipment, IMarket, Currency, IShippingCalculator)
Gets the shipping cost of the shipment.
Declaration
public static Money GetShippingCost(this IShipment shipment, IMarket market, Currency currency, IShippingCalculator calculator)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
IMarket | market | The market. |
Currency | currency | The currency. |
IShippingCalculator | calculator | The shipping calculator. |
Returns
Type | Description |
---|---|
Money | The shipping cost of the shipment. |
GetShippingItemsTotal(IShipment, Currency)
Gets the total of extended prices for all line items in the shipment.
Declaration
public static Money GetShippingItemsTotal(this IShipment shipment, Currency currency)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
Currency | currency | The currency. |
Returns
Type | Description |
---|---|
Money | The subtotal of the shipment. |
GetShippingItemsTotal(IShipment, Currency, IShippingCalculator)
Gets the total of extended prices for all line items in the shipment.
Declaration
public static Money GetShippingItemsTotal(this IShipment shipment, Currency currency, IShippingCalculator calculator)
Parameters
Type | Name | Description |
---|---|---|
IShipment | shipment | The shipment. |
Currency | currency | The currency. |
IShippingCalculator | calculator | The calculator. |
Returns
Type | Description |
---|---|
Money | The subtotal of the shipment. |