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();
        AvailableCountries = new List();
        AvailableStates = new List();
        AvailableTaxCategories = new List();
    }

    [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 AvailableStores { get; set; }
    public IList AvailableCountries { get; set; }
    public IList AvailableStates { get; set; }
    public IList AvailableTaxCategories { get; set; }
}