Class ILineItemExtensions
Extension methods for ILine
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public static class ILineItemExtensions
Methods
GetEntryContent(ILineItem)
Gets the entry content from the line item.
Declaration
public static EntryContentBase GetEntryContent(this ILineItem lineItem)
Parameters
Type | Name | Description |
---|---|---|
ILine |
lineItem | The line item. |
Returns
Type | Description |
---|---|
Entry |
The Entry |
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 |
---|---|---|
ILine |
lineItem | The line item. |
Reference |
referenceConverter | The reference converter. |
EPi |
contentLoader | The content loader. |
Returns
Type | Description |
---|---|
Entry |
The Entry |
GetEntryDiscount(ILineItem)
Gets the entry discount amount for the specific line item, which are set by the Promotion
Declaration
public static decimal GetEntryDiscount(this ILineItem lineItem)
Parameters
Type | Name | Description |
---|---|---|
ILine |
lineItem | The line item. |
Returns
Type | Description |
---|---|
System. |
The entry discount amount for the specific line item |
UpdatePlacedPrice(ILineItem, CustomerContact, IMarket, Currency, Action<ILineItem, ValidationIssue>)
Updates the placed price for the ILine
Declaration
public static bool UpdatePlacedPrice(this ILineItem lineItem, CustomerContact customerContact, IMarket market, Currency currency, Action<ILineItem, ValidationIssue> onValidationError)
Parameters
Type | Name | Description |
---|---|---|
ILine |
lineItem | The line item. |
Customer |
customerContact | The customer contact. |
IMarket | market | The market. |
Currency | currency | The currency. |
System. |
onValidationError | A callback that is invoked if a validation issue is detected. |
Returns
Type | Description |
---|---|
System. |
|
UpdatePlacedPrice(ILineItem, CustomerContact, IMarket, Currency, Action<ILineItem, ValidationIssue>, IPlacedPriceProcessor)
Updates the placed price for the ILine
Declaration
public static bool UpdatePlacedPrice(this ILineItem lineItem, CustomerContact customerContact, IMarket market, Currency currency, Action<ILineItem, ValidationIssue> onValidationError, IPlacedPriceProcessor placedPriceProcessor)
Parameters
Type | Name | Description |
---|---|---|
ILine |
lineItem | The line item. |
Customer |
customerContact | The customer contact. |
IMarket | market | The market. |
Currency | currency | The currency. |
System. |
onValidationError | A callback that is invoked if a validation issue is detected. |
IPlaced |
placedPriceProcessor | The placed price processor. |
Returns
Type | Description |
---|---|
System. |
|