November Happy Hour will be moved to Thursday December 5th.

Class InMemoryLineItem

This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.

Inheritance
System.Object
InMemoryLineItem
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: 13.30.0
Syntax
public class InMemoryLineItem : ILineItemDiscountAmount, IReturnLineItem, ILineItem, IExtendedProperties, ILineItemCalculatedAmount, ILineItemInventory

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

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 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

ParentOrderGroup

Gets the parent order group.

Declaration
public IOrderGroup ParentOrderGroup { get; }
Property Value
Type Description
IOrderGroup

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

PricesIncludeTax

Declaration
public bool PricesIncludeTax { get; }
Property Value
Type Description
System.Boolean

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 quantity.

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

ReturnQuantity

Gets or sets return quantity.

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

TaxCategoryId

Gets or sets the tax category id for the line item.

Declaration
public int? TaxCategoryId { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

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

ILineItemCalculatedAmount.IsSalesTaxUpToDate

Gets or sets the flag indicating whether the SalesTax is up-to-date.

Declaration
bool ILineItemCalculatedAmount.IsSalesTaxUpToDate { get; set; }
Returns
Type Description
System.Boolean

ILineItemCalculatedAmount.SalesTax

Gets or sets the sales tax amount.

Declaration
decimal ILineItemCalculatedAmount.SalesTax { get; set; }
Returns
Type Description
System.Decimal

IReturnLineItem.OriginalLineItemId

Gets or sets the identity original line item id for RMA line item.

Declaration
int? IReturnLineItem.OriginalLineItemId { get; set; }
Returns
Type Description
System.Nullable<System.Int32>

IReturnLineItem.ReturnReason

Gets or sets the reason for RMA line item. ("Corrupted", "Mismatch" etc..).

Declaration
string IReturnLineItem.ReturnReason { get; set; }
Returns
Type Description
System.String

ILineItemInventory.AllowBackordersAndPreorders

Gets or sets a value indicating whether [allow backorders and preorders].

Declaration
bool ILineItemInventory.AllowBackordersAndPreorders { get; set; }
Returns
Type Description
System.Boolean

ILineItemInventory.BackorderQuantity

Gets or sets the backorder quantity.

Declaration
decimal ILineItemInventory.BackorderQuantity { get; set; }
Returns
Type Description
System.Decimal

ILineItemInventory.InStockQuantity

Gets or sets the in stock quantity.

Declaration
decimal ILineItemInventory.InStockQuantity { get; set; }
Returns
Type Description
System.Decimal

ILineItemInventory.InventoryStatus

Gets or sets the inventory status.

Declaration
int ILineItemInventory.InventoryStatus { get; set; }
Returns
Type Description
System.Int32

ILineItemInventory.MaxQuantity

Gets or sets the max quantity.

Declaration
decimal ILineItemInventory.MaxQuantity { get; set; }
Returns
Type Description
System.Decimal

ILineItemInventory.MinQuantity

Gets or sets the min quantity.

Declaration
decimal ILineItemInventory.MinQuantity { get; set; }
Returns
Type Description
System.Decimal

ILineItemInventory.PreorderQuantity

Gets or sets the preorder quantity.

Declaration
decimal ILineItemInventory.PreorderQuantity { get; set; }
Returns
Type Description
System.Decimal

Implements

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)
EPiServer.Commerce.Order.ILineItemExtensions.GetLineItemPrices(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency)
EPiServer.Commerce.Order.ILineItemExtensions.GetLineItemPrices(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency, EPiServer.Commerce.Order.ILineItemCalculator)
EPiServer.Commerce.Order.ILineItemExtensions.GetDiscountTotal(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.Currency)
EPiServer.Commerce.Order.ILineItemExtensions.GetSalesTax(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.IMarket, Mediachase.Commerce.Currency, EPiServer.Commerce.Order.IOrderAddress)
EPiServer.Commerce.Order.ILineItemExtensions.GetSalesTax(EPiServer.Commerce.Order.ILineItem, Mediachase.Commerce.IMarket, Mediachase.Commerce.Currency, EPiServer.Commerce.Order.IOrderAddress, EPiServer.Commerce.Order.ILineItemCalculator)
EPiServer.Commerce.Order.ILineItemExtensions.CopyPropertiesFrom(EPiServer.Commerce.Order.ILineItem, EPiServer.Commerce.Order.ILineItem)