Try your search with a different keyword or use * as a wildcard.
using Nop.Core.Domain.Common;
namespace Nop.Services.Common;
///
/// Address service interface
///
public partial interface IAddressService
{
///
/// Deletes an address
///
/// Address
/// A task that represents the asynchronous operation
Task DeleteAddressAsync(Address address);
///
/// Gets total number of addresses by country identifier
///
/// Country identifier
///
/// A task that represents the asynchronous operation
/// The task result contains the number of addresses
///
Task GetAddressTotalByCountryIdAsync(int countryId);
///
/// Gets total number of addresses by state/province identifier
///
/// State/province identifier
///
/// A task that represents the asynchronous operation
/// The task result contains the number of addresses
///
Task GetAddressTotalByStateProvinceIdAsync(int stateProvinceId);
///
/// Gets an address by address identifier
///
/// Address identifier
///
/// A task that represents the asynchronous operation
/// The task result contains the address
///
Task GetAddressByIdAsync(int addressId);
///
/// Inserts an address
///
/// Address
/// A task that represents the asynchronous operation
Task InsertAddressAsync(Address address);
///
/// Updates the address
///
/// Address
/// A task that represents the asynchronous operation
Task UpdateAddressAsync(Address address);
///
/// Gets a value indicating whether address is valid (can be saved)
///
/// Address to validate
///
/// A task that represents the asynchronous operation
/// The task result contains the result
///
Task IsAddressValidAsync(Address address);
///
/// Find an address
///
/// Source
/// First name
/// Last name
/// Phone number
/// Email
/// Fax number
/// Company
/// Address 1
/// Address 2
/// City
/// County
/// State/province identifier
/// Zip postal code
/// Country identifier
/// Custom address attributes (XML format)
/// Address
Address FindAddress(List source, string firstName, string lastName, string phoneNumber, string email,
string faxNumber, string company, string address1, string address2, string city, string county, int? stateProvinceId,
string zipPostalCode, int? countryId, string customAttributes);
///
/// Clone address
///
/// A deep copy of address
Address CloneAddress(Address address);
///
/// Address format
///
/// Address
/// Language identifier
/// Separator
/// Encode to HTML
///
/// A task that represents the asynchronous operation
/// Address line, array address fields
///
Task<(string, KeyValuePair[])> FormatAddressAsync(Address address, int languageId = 0, string separator = ", ", bool htmlEncode = false);
}