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.

900 B
Raw Blame
using Grand.Infrastructure.Models;
using Grand.Web.AdminShared.Models.Directory;
using Grand.Web.AdminShared.Models.Shipping;

namespace Grand.Web.AdminShared.Models.Payments;

public class PaymentMethodRestrictionModel : BaseModel
{
    public IList<PaymentMethodModel> AvailablePaymentMethods { get; set; } = new List<PaymentMethodModel>();
    public IList<CountryModel> AvailableCountries { get; set; } = new List<CountryModel>();
    public IList<ShippingMethodModel> AvailableShippingMethods { get; set; } = new List<ShippingMethodModel>();

    //[payment method system name] / [resticted]
    public IDictionary<string, IDictionary<string, bool>> Resticted { get; set; } =
        new Dictionary<string, IDictionary<string, bool>>();

    public IDictionary<string, IDictionary<string, bool>> RestictedShipping { get; set; } =
        new Dictionary<string, IDictionary<string, bool>>();
}