using Nop.Core.Domain.Affiliates; using Nop.Web.Areas.Admin.Models.Affiliates; namespace Nop.Web.Areas.Admin.Factories; /// /// Represents the affiliate model factory /// public partial interface IAffiliateModelFactory { /// /// Prepare affiliate search model /// /// Affiliate search model /// /// A task that represents the asynchronous operation /// The task result contains the affiliate search model /// Task PrepareAffiliateSearchModelAsync(AffiliateSearchModel searchModel); /// /// Prepare paged affiliate list model /// /// Affiliate search model /// /// A task that represents the asynchronous operation /// The task result contains the affiliate list model /// Task PrepareAffiliateListModelAsync(AffiliateSearchModel searchModel); /// /// Prepare affiliate model /// /// Affiliate model /// Affiliate /// Whether to exclude populating of some properties of model /// /// A task that represents the asynchronous operation /// The task result contains the affiliate model /// Task PrepareAffiliateModelAsync(AffiliateModel model, Affiliate affiliate, bool excludeProperties = false); /// /// Prepare paged affiliated order list model /// /// Affiliated order search model /// Affiliate /// /// A task that represents the asynchronous operation /// The task result contains the affiliated order list model /// Task PrepareAffiliatedOrderListModelAsync(AffiliatedOrderSearchModel searchModel, Affiliate affiliate); /// /// Prepare paged affiliated customer list model /// /// Affiliated customer search model /// Affiliate /// /// A task that represents the asynchronous operation /// The task result contains the affiliated customer list model /// Task PrepareAffiliatedCustomerListModelAsync(AffiliatedCustomerSearchModel searchModel, Affiliate affiliate); }