Webiant Logo Webiant Logo
  1. No results found.

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

ConfigurationModel.cs

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

namespace Nop.Plugin.Tax.FixedOrByCountryStateZip.Models;

public record ConfigurationModel : BaseSearchModel
{
    public ConfigurationModel()
    {
        AvailableStores = new List<SelectListItem>();
        AvailableCountries = new List<SelectListItem>();
        AvailableStates = new List<SelectListItem>();
        AvailableTaxCategories = new List<SelectListItem>();
    }

    [NopResourceDisplayName("Plugins.Tax.FixedOrByCountryStateZip.Fields.Store")]
    public int AddStoreId { get; set; }
    [NopResourceDisplayName("Plugins.Tax.FixedOrByCountryStateZip.Fields.Country")]
    public int AddCountryId { get; set; }
    [NopResourceDisplayName("Plugins.Tax.FixedOrByCountryStateZip.Fields.StateProvince")]
    public int AddStateProvinceId { get; set; }
    [NopResourceDisplayName("Plugins.Tax.FixedOrByCountryStateZip.Fields.Zip")]
    public string AddZip { get; set; }
    [NopResourceDisplayName("Plugins.Tax.FixedOrByCountryStateZip.Fields.TaxCategory")]
    public int AddTaxCategoryId { get; set; }
    [NopResourceDisplayName("Plugins.Tax.FixedOrByCountryStateZip.Fields.Percentage")]
    public decimal AddPercentage { get; set; }

    public bool CountryStateZipEnabled { get; set; }

    public string TaxCategoriesCanNotLoadedError { get; set; }

    public IList<SelectListItem> AvailableStores { get; set; }
    public IList<SelectListItem> AvailableCountries { get; set; }
    public IList<SelectListItem> AvailableStates { get; set; }
    public IList<SelectListItem> AvailableTaxCategories { get; set; }
}