Class ILineItemExtensions
Extension methods for ILineItem
Inheritance
System.Object
ILineItemExtensions
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public static class ILineItemExtensions : Object
Methods
GetEntryContent(ILineItem)
Gets the entry content from the line item.
Declaration
public static EntryContentBase GetEntryContent(this ILineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineItem | lineItem | The line item. |
Returns
| Type | Description |
|---|---|
| EntryContentBase | The EntryContentBase for the line item. |
GetEntryContent(ILineItem, ReferenceConverter, IContentLoader)
Gets the entry content from the line item.
Declaration
public static EntryContentBase GetEntryContent(this ILineItem lineItem, ReferenceConverter referenceConverter, IContentLoader contentLoader)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineItem | lineItem | The line item. |
| ReferenceConverter | referenceConverter | The reference converter. |
| EPiServer.IContentLoader | contentLoader | The content loader. |
Returns
| Type | Description |
|---|---|
| EntryContentBase | The EntryContentBase for the line item. |
GetEntryDiscount(ILineItem)
Gets the entry discount amount for the specific line item, which are set by the PromotionEngine.
Declaration
public static Decimal GetEntryDiscount(this ILineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| ILineItem | lineItem | The line item. |
Returns
| Type | Description |
|---|---|
| System.Decimal | The entry discount amount for the specific line item |