Class IShipmentExtensions

This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this. 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.Internal
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class IShipmentExtensions

Methods

TryGetDiscountValue(IShipment, Expression<Func<IShipmentDiscountAmount, Decimal>>)

Gets discount fields for shipment.

Declaration
public static decimal TryGetDiscountValue(this IShipment shipment, Expression<Func<IShipmentDiscountAmount, decimal>> property)
Parameters
Type Name Description
IShipment shipment

The shipment.

System.Linq.Expressions.Expression<System.Func<IShipmentDiscountAmount, System.Decimal>> property

The getter function.

Returns
Type Description
System.Decimal

TrySetDiscountValue(IShipment, Expression<Func<IShipmentDiscountAmount, Decimal>>, Decimal)

Updates the shipment discount with the following action.

Declaration
public static void TrySetDiscountValue(this IShipment shipment, Expression<Func<IShipmentDiscountAmount, decimal>> property, decimal value)
Parameters
Type Name Description
IShipment shipment

The shipment.

System.Linq.Expressions.Expression<System.Func<IShipmentDiscountAmount, System.Decimal>> property

The property to set.

System.Decimal value

The value to set.