FruitBank/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPaymentPluginManager.cs

37 lines
1.7 KiB
C#

using Nop.Core.Domain.Customers;
//using Nop.Services.Payments;
//using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services;
//public class NullPaymentPluginManager : IPaymentPluginManager
//{
// public Task<IPaymentMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
// => Task.FromResult<IPaymentMethod?>(null);
// public Task<IList<IPaymentMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
// => Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>());
// public Task<IList<IPaymentMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, int filterByCountryId = 0)
// => Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>());
// public Task<IList<IPaymentMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
// => Task.FromResult<IList<IPaymentMethod>>(new List<IPaymentMethod>());
// public bool IsPluginActive(IPaymentMethod plugin, List<string> systemNames) => false;
// public bool IsPluginActive(IPaymentMethod plugin) => false;
// public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
// => Task.FromResult(false);
// public Task<string> GetPluginLogoUrlAsync(IPaymentMethod plugin)
// => Task.FromResult(string.Empty);
// public Task<IList<int>> GetRestrictedCountryIdsAsync(IPaymentMethod paymentMethod)
// => Task.FromResult<IList<int>>(new List<int>());
// public Task SaveRestrictedCountriesAsync(IPaymentMethod paymentMethod, IList<int> countryIds)
// => Task.CompletedTask;
//}