Webiant Logo Webiant Logo
  1. No results found.

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

PaymentMethodRestrictionModel.cs

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

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

/// 
/// Represents a payment method restriction model
/// 
public partial record PaymentMethodRestrictionModel : BaseNopModel
{
    #region Ctor

    public PaymentMethodRestrictionModel()
    {
        AvailablePaymentMethods = new List();
        AvailableCountries = new List();
        Restricted = new Dictionary>();
    }

    #endregion

    #region Properties

    public IList AvailablePaymentMethods { get; set; }

    public IList AvailableCountries { get; set; }

    //[payment method system name] / [customer role id] / [restricted]
    public IDictionary> Restricted { get; set; }

    #endregion
}