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