Webiant Logo Webiant Logo
  1. No results found.

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

AddRewardPointsToCustomerModel.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.Customers;

/// 
/// Represents a reward points model to add to the customer
/// 
public partial record AddRewardPointsToCustomerModel : BaseNopModel
{
    #region Ctor

    public AddRewardPointsToCustomerModel()
    {
        AvailableStores = new List();
    }

    #endregion

    #region Properties

    public int CustomerId { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.Points")]
    public int Points { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.Message")]
    public string Message { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.Store")]
    public int StoreId { get; set; }

    public IList AvailableStores { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.ActivatePointsImmediately")]
    public bool ActivatePointsImmediately { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.ActivationDelay")]
    public int ActivationDelay { get; set; }

    public int ActivationDelayPeriodId { get; set; }

    [NopResourceDisplayName("Admin.Customers.Customers.RewardPoints.Fields.PointsValidity")]
    [UIHint("Int32Nullable")]
    public int? PointsValidity { get; set; }

    #endregion
}