Метод | Описание | |
---|---|---|
DeleteDiscount ( |
Delete discount
|
|
DeleteDiscountRequirement ( |
Delete discount requirement
|
|
DeleteDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void |
Delete discount usage history record
|
|
DiscountService ( ICacheManager cacheManager, IRepository |
Ctor
|
|
GetAllDiscountUsageHistory ( int discountId, int customerId, int pageIndex, int pageSize ) : IPagedList |
Gets all discount usage history records
|
|
GetAllDiscounts ( DiscountType discountType, string couponCode = "", bool showHidden = false ) : IList |
Gets all discounts
|
|
GetDiscountByCouponCode ( string couponCode, bool showHidden = false ) : |
Get discount by coupon code
|
|
GetDiscountById ( int discountId ) : |
Gets a discount
|
|
GetDiscountUsageHistoryById ( int discountUsageHistoryId ) : Nop.Core.Domain.Discounts.DiscountUsageHistory |
Gets a discount usage history record
|
|
InsertDiscount ( |
Inserts a discount
|
|
InsertDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void |
Insert discount usage history record
|
|
IsDiscountValid ( |
Check discount requirements
|
|
IsDiscountValid ( |
Check discount requirements
|
|
LoadAllDiscountRequirementRules ( ) : IList |
Load all discount requirement rules
|
|
LoadDiscountRequirementRuleBySystemName ( string systemName ) : IDiscountRequirementRule |
Load discount requirement rule by system name
|
|
UpdateDiscount ( |
Updates the discount
|
|
UpdateDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void |
Update discount usage history record
|
Метод | Описание | |
---|---|---|
CheckDiscountLimitations ( |
Checks discount limitation for customer
|
protected CheckDiscountLimitations ( |
||
discount | Discount | |
customer | Customer | |
Результат | bool |
public DeleteDiscount ( |
||
discount | Discount | |
Результат | void |
public DeleteDiscountRequirement ( |
||
discountRequirement | Discount requirement | |
Результат | void |
public DeleteDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void | ||
discountUsageHistory | Nop.Core.Domain.Discounts.DiscountUsageHistory | Discount usage history record |
Результат | void |
public DiscountService ( ICacheManager cacheManager, IRepository |
||
cacheManager | ICacheManager | Cache manager |
discountRepository | IRepository |
Discount repository |
discountRequirementRepository | IRepository |
Discount requirement repository |
discountUsageHistoryRepository | IRepository |
Discount usage history repository |
pluginFinder | IPluginFinder | Plugin finder |
eventPublisher | IEventPublisher | Event published |
Результат | System |
public GetAllDiscountUsageHistory ( int discountId, int customerId, int pageIndex, int pageSize ) : IPagedList |
||
discountId | int | Discount identifier |
customerId | int | Customer identifier |
pageIndex | int | Page index |
pageSize | int | Page size |
Результат | IPagedList |
public GetAllDiscounts ( DiscountType discountType, string couponCode = "", bool showHidden = false ) : IList |
||
discountType | DiscountType | Discount type; null to load all discount |
couponCode | string | Coupon code to find (exactl match) |
showHidden | bool | A value indicating whether to show hidden records |
Результат | IList |
public GetDiscountByCouponCode ( string couponCode, bool showHidden = false ) : |
||
couponCode | string | Coupon code |
showHidden | bool | A value indicating whether to show hidden records |
Результат |
public GetDiscountById ( int discountId ) : |
||
discountId | int | Discount identifier |
Результат |
public GetDiscountUsageHistoryById ( int discountUsageHistoryId ) : Nop.Core.Domain.Discounts.DiscountUsageHistory | ||
discountUsageHistoryId | int | Discount usage history record identifier |
Результат | Nop.Core.Domain.Discounts.DiscountUsageHistory |
public InsertDiscount ( |
||
discount | Discount | |
Результат | void |
public InsertDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void | ||
discountUsageHistory | Nop.Core.Domain.Discounts.DiscountUsageHistory | Discount usage history record |
Результат | void |
public IsDiscountValid ( |
||
discount | Discount | |
customer | Customer | |
Результат | bool |
public IsDiscountValid ( |
||
discount | Discount | |
customer | Customer | |
couponCodeToValidate | string | Coupon code to validate |
Результат | bool |
public LoadAllDiscountRequirementRules ( ) : IList |
||
Результат | IList |
public LoadDiscountRequirementRuleBySystemName ( string systemName ) : IDiscountRequirementRule | ||
systemName | string | System name |
Результат | IDiscountRequirementRule |
public UpdateDiscount ( |
||
discount | Discount | |
Результат | void |
public UpdateDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void | ||
discountUsageHistory | Nop.Core.Domain.Discounts.DiscountUsageHistory | Discount usage history record |
Результат | void |