FruitBank/Presentation/Nop.Web/Models/ShoppingCart/WishlistModel.cs

80 lines
2.0 KiB
C#
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Models.Media;
namespace Nop.Web.Models.ShoppingCart;
public partial record WishlistModel : BaseNopModel
{
public WishlistModel()
{
Items = new List<ShoppingCartItemModel>();
Warnings = new List<string>();
}
public Guid CustomerGuid { get; set; }
public string CustomerFullname { get; set; }
public bool EmailWishlistEnabled { get; set; }
public bool ShowSku { get; set; }
public bool ShowProductImages { get; set; }
public bool IsEditable { get; set; }
public bool DisplayAddToCart { get; set; }
public bool DisplayTaxShippingInfo { get; set; }
public IList<ShoppingCartItemModel> Items { get; set; }
public IList<string> Warnings { get; set; }
#region Nested Classes
public partial record ShoppingCartItemModel : BaseNopEntityModel
{
public ShoppingCartItemModel()
{
Picture = new PictureModel();
AllowedQuantities = new List<SelectListItem>();
Warnings = new List<string>();
}
public string Sku { get; set; }
public PictureModel Picture { get; set; }
public int ProductId { get; set; }
public string ProductName { get; set; }
public string ProductSeName { get; set; }
public string UnitPrice { get; set; }
public decimal UnitPriceValue { get; set; }
public string SubTotal { get; set; }
public decimal SubTotalValue { get; set; }
public string Discount { get; set; }
public decimal DiscountValue { get; set; }
public int? MaximumDiscountedQty { get; set; }
public int Quantity { get; set; }
public List<SelectListItem> AllowedQuantities { get; set; }
public string AttributeInfo { get; set; }
public string RecurringInfo { get; set; }
public string RentalInfo { get; set; }
public bool AllowItemEditing { get; set; }
public IList<string> Warnings { get; set; }
}
#endregion
}