using Nop.Core.Domain.Orders; using Nop.Web.Areas.Admin.Models.Orders; namespace Nop.Web.Areas.Admin.Factories; /// /// Represents the gift card model factory /// public partial interface IGiftCardModelFactory { /// /// Prepare gift card search model /// /// Gift card search model /// /// A task that represents the asynchronous operation /// The task result contains the gift card search model /// Task PrepareGiftCardSearchModelAsync(GiftCardSearchModel searchModel); /// /// Prepare paged gift card list model /// /// Gift card search model /// /// A task that represents the asynchronous operation /// The task result contains the gift card list model /// Task PrepareGiftCardListModelAsync(GiftCardSearchModel searchModel); /// /// Prepare gift card model /// /// Gift card model /// Gift card /// Whether to exclude populating of some properties of model /// /// A task that represents the asynchronous operation /// The task result contains the gift card model /// Task PrepareGiftCardModelAsync(GiftCardModel model, GiftCard giftCard, bool excludeProperties = false); /// /// Prepare paged gift usage history card list model /// /// Gift card usage history search model /// Gift card /// /// A task that represents the asynchronous operation /// The task result contains the gift card usage history list model /// Task PrepareGiftCardUsageHistoryListModelAsync(GiftCardUsageHistorySearchModel searchModel, GiftCard giftCard); }