37 lines
1.9 KiB
C#
37 lines
1.9 KiB
C#
using Nop.Core.Domain.Customers;
|
|
//using Nop.Services.Plugins;
|
|
//using Nop.Services.Shipping;
|
|
|
|
namespace Mango.Sandbox.EndPoints.Services;
|
|
|
|
//public class NullShippingPluginManager : IShippingPluginManager
|
|
//{
|
|
// public Task<IShippingRateComputationMethod?> LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
|
|
// => Task.FromResult<IShippingRateComputationMethod?>(null);
|
|
|
|
// public Task<IList<IShippingRateComputationMethod>> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
|
|
// => Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>());
|
|
|
|
// public Task<IList<IShippingRateComputationMethod>> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!)
|
|
// => Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>());
|
|
|
|
// public Task<IList<IShippingRateComputationMethod>> LoadActivePluginsAsync(List<string> systemNames, Customer? customer = null, int storeId = 0)
|
|
// => Task.FromResult<IList<IShippingRateComputationMethod>>(new List<IShippingRateComputationMethod>());
|
|
|
|
// public bool IsPluginActive(IShippingRateComputationMethod plugin, List<string> systemNames) => false;
|
|
|
|
// public bool IsPluginActive(IShippingRateComputationMethod plugin) => false;
|
|
|
|
// public Task<bool> IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
|
|
// => Task.FromResult(false);
|
|
|
|
// public Task<string> GetPluginLogoUrlAsync(IShippingRateComputationMethod plugin)
|
|
// => Task.FromResult(string.Empty);
|
|
|
|
// public Task<IList<int>> GetRestrictedCountryIdsAsync(IShippingRateComputationMethod shippingMethod)
|
|
// => Task.FromResult<IList<int>>(new List<int>());
|
|
|
|
// public Task SaveRestrictedCountriesAsync(IShippingRateComputationMethod shippingMethod, IList<int> countryIds)
|
|
// => Task.CompletedTask;
|
|
//}
|