Interface ILineItem

Represents a line item in the system, the actual item that is bought.

Inherited Members
Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public interface ILineItem : IExtendedProperties

Properties

Code

Gets the code of the variation content the line item represent. This property works as the connection between the line item and the variation content.

Declaration
string Code { get; }
Property Value
Type Description
System.String

DisplayName

Gets or sets the display name.

Declaration
string DisplayName { get; set; }
Property Value
Type Description
System.String

InventoryTrackingStatus

Gets or sets the inventory tracking status on whether to check inventory.

Declaration
InventoryTrackingStatus InventoryTrackingStatus { get; set; }
Property Value
Type Description
InventoryTrackingStatus

IsGift

Gets or sets a value indicating whether the line item is a gift item.

Declaration
bool IsGift { get; set; }
Property Value
Type Description
System.Boolean

true if the line item is a gift item; otherwise, false.

IsInventoryAllocated

Gets or sets a value indicating whether this instance has allocated inventory for the Quantity.

Declaration
bool IsInventoryAllocated { get; set; }
Property Value
Type Description
System.Boolean

LineItemId

Gets the identity of the line item.

Declaration
int LineItemId { get; }
Property Value
Type Description
System.Int32

PlacedPrice

Gets the price for one item that this line item represent. This property don't take any discounts in consideration.

Declaration
decimal PlacedPrice { get; set; }
Property Value
Type Description
System.Decimal

Quantity

Gets or sets the number of items this line item contains.

Declaration
decimal Quantity { get; set; }
Property Value
Type Description
System.Decimal

ReturnQuantity

Gets or sets the returned in stock quantity.

Declaration
decimal ReturnQuantity { get; set; }
Property Value
Type Description
System.Decimal

Extension Methods

EPiServer.Commerce.Order.ILineItemExtensions.GetExtendedPrice(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency)
EPiServer.Commerce.Order.ILineItemExtensions.GetExtendedPrice(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency, EPiServer.Commerce.Order.ILineItemCalculator)
EPiServer.Commerce.Order.ILineItemExtensions.GetDiscountedPrice(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency)
EPiServer.Commerce.Order.ILineItemExtensions.GetDiscountedPrice(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency, EPiServer.Commerce.Order.ILineItemCalculator)