Table of Contents

Class OrderLineItem

Namespace
Rescope.Commerce.Core.Entities
Assembly
Rescope.Commerce.Core.dll

Represents a line item in a Basket.

[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public class OrderLineItem : IEntity
Inheritance
OrderLineItem
Implements
Inherited Members

Properties

CustomisationFields

public IReadOnlyDictionary<string, string>? CustomisationFields { get; set; }

Property Value

IReadOnlyDictionary<string, string>

Id

public Guid Id { get; set; }

Property Value

Guid

Order

[JsonIgnore]
public Order Order { get; set; }

Property Value

Order

OrderId

public Guid OrderId { get; set; }

Property Value

Guid

Product

[NotMapped]
public IProductOrVariant? Product { get; set; }

Property Value

IProductOrVariant

ProductSku

public string ProductSku { get; set; }

Property Value

string

Quantity

public int Quantity { get; }

Property Value

int

Tax

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal Tax { get; }

Property Value

decimal

TotalPrice

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalPrice { get; }

Property Value

decimal

TotalPriceFormatted

public string TotalPriceFormatted { get; }

Property Value

string

TotalShippingPrice

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal? TotalShippingPrice { get; }

Property Value

decimal?

UnitPrice

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal UnitPrice { get; }

Property Value

decimal

UnitPriceFormatted

public string UnitPriceFormatted { get; }

Property Value

string

WasOutOfStock

public bool? WasOutOfStock { get; set; }

Property Value

bool?