Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.0 KB
Raw Blame
using Grand.Infrastructure.ModelBinding;
using Grand.Infrastructure.Models;

namespace Grand.Web.Models.Orders;

public class CustomerLoyaltyPointsModel : BaseModel
{
    public IList<LoyaltyPointsHistoryModel> LoyaltyPoints { get; set; } = new List<LoyaltyPointsHistoryModel>();
    public int LoyaltyPointsBalance { get; set; }
    public string LoyaltyPointsAmount { get; set; }
    public int MinimumLoyaltyPointsBalance { get; set; }
    public string MinimumLoyaltyPointsAmount { get; set; }

    #region Nested classes

    public class LoyaltyPointsHistoryModel : BaseEntityModel
    {
        [GrandResourceDisplayName("LoyaltyPoints.Fields.Points")]
        public int Points { get; set; }

        [GrandResourceDisplayName("LoyaltyPoints.Fields.PointsBalance")]
        public int PointsBalance { get; set; }

        [GrandResourceDisplayName("LoyaltyPoints.Fields.Message")]
        public string Message { get; set; }

        [GrandResourceDisplayName("LoyaltyPoints.Fields.Date")]
        public DateTime CreatedOn { get; set; }
    }

    #endregion
}