using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Plugin.Misc.FruitBankPlugin.Models;

public record CustomerCreditWidgetModel : BaseNopModel
{
    public int CustomerId { get; set; }
    public bool HasCreditLimit { get; set; }

    [NopResourceDisplayName("Plugins.Misc.FruitBankPlugin.CustomerCredit.CreditLimit")]
    public decimal CreditLimit { get; set; }

    [NopResourceDisplayName("Plugins.Misc.FruitBankPlugin.CustomerCredit.OutstandingBalance")]
    public decimal OutstandingBalance { get; set; }

    [NopResourceDisplayName("Plugins.Misc.FruitBankPlugin.CustomerCredit.RemainingCredit")]
    public decimal? RemainingCredit { get; set; }

    public string? Comment { get; set; }
}
