Webiant Logo Webiant Logo
  1. No results found.

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

IWarehouseService.cs

using Nop.Core.Domain.Common;
using Nop.Core.Domain.Shipping;

namespace Nop.Services.Shipping;

/// 
/// Warehouse service interface
/// 
public partial interface IWarehouseService
{
    /// 
    /// Deletes a warehouse
    /// 
    /// The warehouse
    /// A task that represents the asynchronous operation
    Task DeleteWarehouseAsync(Warehouse warehouse);

    /// 
    /// Gets a warehouse
    /// 
    /// The warehouse identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the warehouse
    /// 
    Task GetWarehouseByIdAsync(int warehouseId);

    /// 
    /// Gets all warehouses
    /// 
    /// Warehouse name
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the warehouses
    /// 
    Task> GetAllWarehousesAsync(string name = null);

    /// 
    /// Inserts a warehouse
    /// 
    /// Warehouse
    /// A task that represents the asynchronous operation
    Task InsertWarehouseAsync(Warehouse warehouse);

    /// 
    /// Updates the warehouse
    /// 
    /// Warehouse
    /// A task that represents the asynchronous operation
    Task UpdateWarehouseAsync(Warehouse warehouse);

    /// 
    /// Get the nearest warehouse for the specified address
    /// 
    /// Address
    /// List of warehouses, if null all warehouses are used.
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the 
    /// 
    Task GetNearestWarehouseAsync(Address address, IList warehouses = null);
}