Webiant Logo Webiant Logo
  1. No results found.

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

ShippingMethodRestrictionModel.cs

using Nop.Web.Areas.Admin.Models.Directory;
using Nop.Web.Framework.Models;

namespace Nop.Web.Areas.Admin.Models.Shipping;

/// 
/// Represents a shipping method restriction model
/// 
public partial record ShippingMethodRestrictionModel : BaseNopModel
{
    #region Ctor

    public ShippingMethodRestrictionModel()
    {
        AvailableShippingMethods = new List();
        AvailableCountries = new List();
        Restricted = new Dictionary>();
    }

    #endregion

    #region Properties

    public IList AvailableShippingMethods { get; set; }

    public IList AvailableCountries { get; set; }

    //[country id] / [shipping method id] / [restricted]
    public IDictionary> Restricted { get; set; }

    #endregion
}