71 lines
1.9 KiB
C#
71 lines
1.9 KiB
C#
namespace Nop.Core.Domain.Orders;
|
|
|
|
/// <summary>
|
|
/// Represents a shopping cart item
|
|
/// </summary>
|
|
public partial class ShoppingCartItem : BaseEntity
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the store identifier
|
|
/// </summary>
|
|
public int StoreId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the shopping cart type identifier
|
|
/// </summary>
|
|
public int ShoppingCartTypeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the customer identifier
|
|
/// </summary>
|
|
public int CustomerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the product identifier
|
|
/// </summary>
|
|
public int ProductId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the product attributes in XML format
|
|
/// </summary>
|
|
public string AttributesXml { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the price enter by a customer
|
|
/// </summary>
|
|
public decimal CustomerEnteredPrice { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the quantity
|
|
/// </summary>
|
|
public int Quantity { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the rental product start date (null if it's not a rental product)
|
|
/// </summary>
|
|
public DateTime? RentalStartDateUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the rental product end date (null if it's not a rental product)
|
|
/// </summary>
|
|
public DateTime? RentalEndDateUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the date and time of instance creation
|
|
/// </summary>
|
|
public DateTime CreatedOnUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the date and time of instance update
|
|
/// </summary>
|
|
public DateTime UpdatedOnUtc { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the log type
|
|
/// </summary>
|
|
public ShoppingCartType ShoppingCartType
|
|
{
|
|
get => (ShoppingCartType)ShoppingCartTypeId;
|
|
set => ShoppingCartTypeId = (int)value;
|
|
}
|
|
} |