Webiant Logo Webiant Logo
  1. No results found.

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

IVendorService.cs

using Nop.Core;
using Nop.Core.Domain.Vendors;

namespace Nop.Services.Vendors;

/// 
/// Vendor service interface
/// 
public partial interface IVendorService
{
    /// 
    /// Gets a vendor by vendor identifier
    /// 
    /// Vendor identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendor
    /// 
    Task GetVendorByIdAsync(int vendorId);

    /// 
    /// Gets a vendors by product identifiers
    /// 
    /// Array of product identifiers
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendors
    /// 
    Task> GetVendorsByProductIdsAsync(int[] productIds);

    /// 
    /// Gets a vendors by customers identifiers
    /// 
    /// Array of customer identifiers
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendors
    /// 
    Task> GetVendorsByCustomerIdsAsync(int[] customerIds);

    /// 
    /// Gets a vendor by product identifier
    /// 
    /// Product identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendor
    /// 
    Task GetVendorByProductIdAsync(int productId);

    /// 
    /// Delete a vendor
    /// 
    /// Vendor
    /// A task that represents the asynchronous operation
    Task DeleteVendorAsync(Vendor vendor);

    /// 
    /// Gets all vendors
    /// 
    /// Vendor name
    /// Vendor email
    /// Page index
    /// Page size
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendors
    /// 
    Task> GetAllVendorsAsync(string name = "", string email = "", int pageIndex = 0, int pageSize = int.MaxValue, bool showHidden = false);

    /// 
    /// Inserts a vendor
    /// 
    /// Vendor
    /// A task that represents the asynchronous operation
    Task InsertVendorAsync(Vendor vendor);

    /// 
    /// Updates the vendor
    /// 
    /// Vendor
    /// A task that represents the asynchronous operation
    Task UpdateVendorAsync(Vendor vendor);

    /// 
    /// Gets a vendor note
    /// 
    /// The vendor note identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendor note
    /// 
    Task GetVendorNoteByIdAsync(int vendorNoteId);

    /// 
    /// Gets all vendor notes
    /// 
    /// Vendor identifier
    /// Page index
    /// Page size
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the vendor notes
    /// 
    Task> GetVendorNotesByVendorAsync(int vendorId, int pageIndex = 0, int pageSize = int.MaxValue);

    /// 
    /// Deletes a vendor note
    /// 
    /// The vendor note
    /// A task that represents the asynchronous operation
    Task DeleteVendorNoteAsync(VendorNote vendorNote);

    /// 
    /// Inserts a vendor note
    /// 
    /// Vendor note
    /// A task that represents the asynchronous operation
    Task InsertVendorNoteAsync(VendorNote vendorNote);

    /// 
    /// Formats the vendor note text
    /// 
    /// Vendor note
    /// Formatted text
    string FormatVendorNoteText(VendorNote vendorNote);
}