Webiant Logo Webiant Logo
  1. No results found.

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

IAddressModelFactory.cs

using Nop.Core.Domain.Common;
using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Directory;
using Nop.Web.Models.Common;

namespace Nop.Web.Factories;

/// 
/// Represents the interface of the address model factory
/// 
public partial interface IAddressModelFactory
{
    /// 
    /// Prepare address model
    /// 
    /// Address model
    /// Address entity
    /// Whether to exclude populating of model properties from the entity
    /// Address settings
    /// Countries loading function; pass null if countries do not need to load
    /// Whether to populate model properties with the customer fields (used with the customer entity)
    /// Customer entity; required if prePopulateWithCustomerFields is true
    /// Overridden address attributes in XML format; pass null to use CustomAttributes of the address entity
    /// A task that represents the asynchronous operation
    Task PrepareAddressModelAsync(AddressModel model,
        Address address, bool excludeProperties,
        AddressSettings addressSettings,
        Func>> loadCountries = null,
        bool prePopulateWithCustomerFields = false,
        Customer customer = null,
        string overrideAttributesXml = "");
}