Try your search with a different keyword or use * as a wildcard.
using Nop.Core.Domain.Shipping;
namespace Nop.Services.Shipping;
/// <summary>
/// Shipping methods service interface
/// </summary>
public partial interface IShippingMethodsService
{
/// <summary>
/// Deletes a shipping method
/// </summary>
/// <param name="shippingMethod">The shipping method</param>
/// <returns>A task that represents the asynchronous operation</returns>
Task DeleteShippingMethodAsync(ShippingMethod shippingMethod);
/// <summary>
/// Gets a shipping method
/// </summary>
/// <param name="shippingMethodId">The shipping method identifier</param>
/// <returns>
/// A task that represents the asynchronous operation
/// The task result contains the shipping method
/// </returns>
Task<ShippingMethod> GetShippingMethodByIdAsync(int shippingMethodId);
/// <summary>
/// Gets all shipping methods
/// </summary>
/// <param name="filterByCountryId">The country identifier to filter by</param>
/// <returns>
/// A task that represents the asynchronous operation
/// The task result contains the shipping methods
/// </returns>
Task<IList<ShippingMethod>> GetAllShippingMethodsAsync(int? filterByCountryId = null);
/// <summary>
/// Inserts a shipping method
/// </summary>
/// <param name="shippingMethod">Shipping method</param>
/// <returns>A task that represents the asynchronous operation</returns>
Task InsertShippingMethodAsync(ShippingMethod shippingMethod);
/// <summary>
/// Updates the shipping method
/// </summary>
/// <param name="shippingMethod">Shipping method</param>
/// <returns>A task that represents the asynchronous operation</returns>
Task UpdateShippingMethodAsync(ShippingMethod shippingMethod);
/// <summary>
/// Does country restriction exist
/// </summary>
/// <param name="shippingMethod">Shipping method</param>
/// <param name="countryId">Country identifier</param>
/// <returns>
/// A task that represents the asynchronous operation
/// The task result contains the result
/// </returns>
Task<bool> CountryRestrictionExistsAsync(ShippingMethod shippingMethod, int countryId);
/// <summary>
/// Gets shipping country mappings
/// </summary>
/// <param name="shippingMethodId">The shipping method identifier</param>
/// <param name="countryId">Country identifier</param>
/// <returns>
/// A task that represents the asynchronous operation
/// The task result contains the shipping country mappings
/// </returns>
Task<IList<ShippingMethodCountryMapping>> GetShippingMethodCountryMappingAsync(int shippingMethodId, int countryId);
/// <summary>
/// Inserts a shipping country mapping
/// </summary>
/// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
/// <returns>A task that represents the asynchronous operation</returns>
Task InsertShippingMethodCountryMappingAsync(ShippingMethodCountryMapping shippingMethodCountryMapping);
/// <summary>
/// Delete the shipping country mapping
/// </summary>
/// <param name="shippingMethodCountryMapping">Shipping country mapping</param>
/// <returns>A task that represents the asynchronous operation</returns>
Task DeleteShippingMethodCountryMappingAsync(ShippingMethodCountryMapping shippingMethodCountryMapping);
}