Webiant Logo Webiant Logo
  1. No results found.

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

ICountryService.cs

using Nop.Core.Domain.Common;
using Nop.Core.Domain.Directory;

namespace Nop.Services.Directory;

/// 
/// Country service interface
/// 
public partial interface ICountryService
{
    /// 
    /// Deletes a country
    /// 
    /// Country
    /// A task that represents the asynchronous operation
    Task DeleteCountryAsync(Country country);

    /// 
    /// Gets all countries
    /// 
    /// Language identifier. It's used to sort countries by localized names (if specified); pass 0 to skip it
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the countries
    /// 
    Task> GetAllCountriesAsync(int languageId = 0, bool showHidden = false);

    /// 
    /// Gets all countries that allow billing
    /// 
    /// Language identifier. It's used to sort countries by localized names (if specified); pass 0 to skip it
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the countries
    /// 
    Task> GetAllCountriesForBillingAsync(int languageId = 0, bool showHidden = false);

    /// 
    /// Gets all countries that allow shipping
    /// 
    /// Language identifier. It's used to sort countries by localized names (if specified); pass 0 to skip it
    /// A value indicating whether to show hidden records
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the countries
    /// 
    Task> GetAllCountriesForShippingAsync(int languageId = 0, bool showHidden = false);

    /// 
    /// Gets a country by address 
    /// 
    /// Address
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country
    /// 
    Task GetCountryByAddressAsync(Address address);

    /// 
    /// Gets a country 
    /// 
    /// Country identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country
    /// 
    Task GetCountryByIdAsync(int countryId);

    /// 
    /// Get countries by identifiers
    /// 
    /// Country identifiers
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the countries
    /// 
    Task> GetCountriesByIdsAsync(int[] countryIds);

    /// 
    /// Gets a country by two letter ISO code
    /// 
    /// Country two letter ISO code
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country
    /// 
    Task GetCountryByTwoLetterIsoCodeAsync(string twoLetterIsoCode);

    /// 
    /// Gets a country by three letter ISO code
    /// 
    /// Country three letter ISO code
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the country
    /// 
    Task GetCountryByThreeLetterIsoCodeAsync(string threeLetterIsoCode);

    /// 
    /// Inserts a country
    /// 
    /// Country
    /// A task that represents the asynchronous operation
    Task InsertCountryAsync(Country country);

    /// 
    /// Updates the country
    /// 
    /// Country
    /// A task that represents the asynchronous operation
    Task UpdateCountryAsync(Country country);
}