Webiant Logo Webiant Logo
  1. No results found.

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

IShippingPluginManager.cs

using Nop.Core.Domain.Customers;
using Nop.Services.Plugins;

namespace Nop.Services.Shipping;

/// 
/// Represents a shipping plugin manager
/// 
public partial interface IShippingPluginManager : IPluginManager
{
    /// 
    /// Load active shipping providers
    /// 
    /// Filter by customer; pass null to load all plugins
    /// Filter by store; pass 0 to load all plugins
    /// Filter by shipping provider system name; pass null to load all plugins
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the list of active shipping providers
    /// 
    Task> LoadActivePluginsAsync(Customer customer = null, int storeId = 0, string systemName = null);

    /// 
    /// Check whether the passed shipping provider is active
    /// 
    /// Shipping provider to check
    /// Result
    bool IsPluginActive(IShippingRateComputationMethod shippingProvider);

    /// 
    /// Check whether the shipping provider with the passed system name is active
    /// 
    /// System name of shipping provider to check
    /// Filter by customer; pass null to load all plugins
    /// Filter by store; pass 0 to load all plugins
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the result
    /// 
    Task IsPluginActiveAsync(string systemName, Customer customer = null, int storeId = 0);
}