Class InMemoryLineItem
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Order.Internal
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class InMemoryLineItem : ILineItem, IExtendedProperties, ILineItemDiscountAmount
Constructors
InMemoryLineItem()
Initializes a new instance of an InMemoryLineItem.
Declaration
public InMemoryLineItem()
InMemoryLineItem(ILineItem)
Initializes a new instance of an InMemoryLineItem, with same values as the specified ILineItem.
Declaration
public InMemoryLineItem(ILineItem lineItem)
Parameters
Type | Name | Description |
---|---|---|
ILineItem | lineItem |
Properties
Code
Gets or sets 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
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DisplayName
Gets or sets the display name.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
InventoryTrackingStatus
Gets or sets the inventory tracking status on whether to check inventory.
Declaration
public InventoryTrackingStatus InventoryTrackingStatus { get; set; }
Property Value
Type | Description |
---|---|
InventoryTrackingStatus |
IsGift
Gets or sets the number of items on this line that are free.
Declaration
public bool IsGift { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsInventoryAllocated
Gets or sets a value indicating whether this instance has allocated inventory for the Mediachase.Commerce.Orders.ILineItem.Quantity.
Declaration
public bool IsInventoryAllocated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LineItemDiscountAmount
Gets or sets the discount amount set for this specific line item. This property is normally set by the promotion system.
Declaration
public decimal LineItemDiscountAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
LineItemId
Gets or sets the identity of the line item.
Declaration
public int LineItemId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
OrderLevelDiscountAmount
Gets or sets the discount amount not specifically set for this line item. This property will contain the total order level discount for the whole order divided by the number of line items the order contains.
Declaration
public decimal OrderLevelDiscountAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PlacedPrice
Gets or sets the price for one item that this line item represents. This property don't take any discounts in consideration.
Declaration
public decimal PlacedPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Properties
Gets the property bag for dealing with custom meta fields.
Declaration
public Hashtable Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Hashtable |
Quantity
Gets or sets the number of items this line item contains
Declaration
public decimal Quantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
ReturnQuantity
Gets or sets the returned in stock quantity.
Declaration
public decimal ReturnQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Explicit Interface Implementations
ILineItemDiscountAmount.EntryAmount
Gets or sets the entry discount amount.
Declaration
decimal ILineItemDiscountAmount.EntryAmount { get; set; }
Returns
Type | Description |
---|---|
System.Decimal |
ILineItemDiscountAmount.OrderAmount
Gets or sets the order discount amount.
Declaration
decimal ILineItemDiscountAmount.OrderAmount { get; set; }
Returns
Type | Description |
---|---|
System.Decimal |