Class SerializableLineItem
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.
This class represents a cart in the new cart system. It works with the new database model for cart.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class SerializableLineItem : ILineItem, IExtendedProperties, ILineItemInventory, ILineItemDiscountAmount
Constructors
SerializableLineItem(SerializableIdGenerator)
Creates an instance of SerializableLineItem.
Declaration
public SerializableLineItem(SerializableIdGenerator serializableIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
SerializableIdGenerator | serializableIdGenerator | The serializable id generator. |
Properties
AllowBackordersAndPreorders
Gets or sets a value indicating whether [allow backorders and preorders].
Declaration
public bool AllowBackordersAndPreorders { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
BackorderQuantity
Gets or sets the backorder quantity.
Declaration
public decimal BackorderQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The backorder quantity. |
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 |
EntryAmount
Gets or sets the discount amount set for this specific line item. This property is normally set by the promotion system.
Declaration
public decimal EntryAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
InStockQuantity
Gets or sets the in stock quantity.
Declaration
public decimal InStockQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The in stock quantity. |
InventoryStatus
Gets or sets the inventory status.
Declaration
public int InventoryStatus { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The inventory status. |
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 a value indicating whether the line item is a gift item.
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 Quantity.
Declaration
public bool IsInventoryAllocated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LineItemId
Gets or sets the identity of the line item.
Declaration
public int LineItemId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxQuantity
Gets or sets the max quantity.
Declaration
public decimal MaxQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The max quantity. |
MinQuantity
Gets or sets the min quantity.
Declaration
public decimal MinQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The min quantity. |
OrderAmount
Gets 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 OrderAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The order level discount amount. |
PlacedPrice
Gets or sets the price for one item that this line item represent. This property don't take any discounts in consideration.
Declaration
public decimal PlacedPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PreorderQuantity
Gets or sets the preorder quantity.
Declaration
public decimal PreorderQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The preorder quantity. |
Properties
Gets or sets the property bag for dealing with custom meta fields.
Declaration
public Hashtable Properties { get; set; }
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 |