Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ShoppingCartItem.cs

namespace Nop.Core.Domain.Orders;

/// 
/// Represents a shopping cart item
/// 
public partial class ShoppingCartItem : BaseEntity
{
    /// 
    /// Gets or sets the store identifier
    /// 
    public int StoreId { get; set; }

    /// 
    /// Gets or sets the shopping cart type identifier
    /// 
    public int ShoppingCartTypeId { get; set; }

    /// 
    /// Gets or sets the customer identifier
    /// 
    public int CustomerId { get; set; }

    /// 
    /// Gets or sets the product identifier
    /// 
    public int ProductId { get; set; }

    /// 
    /// Gets or sets the product attributes in XML format
    /// 
    public string AttributesXml { get; set; }

    /// 
    /// Gets or sets the price enter by a customer
    /// 
    public decimal CustomerEnteredPrice { get; set; }

    /// 
    /// Gets or sets the quantity
    /// 
    public int Quantity { get; set; }

    /// 
    /// Gets or sets the rental product start date (null if it's not a rental product)
    /// 
    public DateTime? RentalStartDateUtc { get; set; }

    /// 
    /// Gets or sets the rental product end date (null if it's not a rental product)
    /// 
    public DateTime? RentalEndDateUtc { get; set; }

    /// 
    /// Gets or sets the date and time of instance creation
    /// 
    public DateTime CreatedOnUtc { get; set; }

    /// 
    /// Gets or sets the date and time of instance update
    /// 
    public DateTime UpdatedOnUtc { get; set; }

    /// 
    /// Gets the log type
    /// 
    public ShoppingCartType ShoppingCartType
    {
        get => (ShoppingCartType)ShoppingCartTypeId;
        set => ShoppingCartTypeId = (int)value;
    }
}