Webiant Logo Webiant Logo
  1. No results found.

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

TierPriceModel.cs

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Catalog;

/// 
/// Represents a tier price model
/// 
public partial record TierPriceModel : BaseNopEntityModel
{
    #region Ctor

    public TierPriceModel()
    {
        AvailableStores = new List();
        AvailableCustomerRoles = new List();
    }

    #endregion

    #region Properties

    public int ProductId { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.CustomerRole")]
    public int CustomerRoleId { get; set; }

    public IList AvailableCustomerRoles { get; set; }

    public string CustomerRole { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Store")]
    public int StoreId { get; set; }

    public IList AvailableStores { get; set; }

    public string Store { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Quantity")]
    public int Quantity { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.Price")]
    public decimal Price { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.StartDateTimeUtc")]
    [UIHint("DateTimeNullable")]
    public DateTime? StartDateTimeUtc { get; set; }

    [NopResourceDisplayName("Admin.Catalog.Products.TierPrices.Fields.EndDateTimeUtc")]
    [UIHint("DateTimeNullable")]
    public DateTime? EndDateTimeUtc { get; set; }

    #endregion
}