Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
CheckDiscountLimitations ( |
Checks discount limitation for customer
|
protected CheckDiscountLimitations ( |
||
discount | Discount | |
customer | Customer | |
return | bool |
public DeleteDiscount ( |
||
discount | Discount | |
return | void |
public DeleteDiscountRequirement ( |
||
discountRequirement | Discount requirement | |
return | void |
public DeleteDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void | ||
discountUsageHistory | Nop.Core.Domain.Discounts.DiscountUsageHistory | Discount usage history record |
return | 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 |
return | 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 |
return | 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 |
return | IList |
public GetDiscountByCouponCode ( string couponCode, bool showHidden = false ) : |
||
couponCode | string | Coupon code |
showHidden | bool | A value indicating whether to show hidden records |
return |
public GetDiscountById ( int discountId ) : |
||
discountId | int | Discount identifier |
return |
public GetDiscountUsageHistoryById ( int discountUsageHistoryId ) : Nop.Core.Domain.Discounts.DiscountUsageHistory | ||
discountUsageHistoryId | int | Discount usage history record identifier |
return | Nop.Core.Domain.Discounts.DiscountUsageHistory |
public InsertDiscount ( |
||
discount | Discount | |
return | void |
public InsertDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void | ||
discountUsageHistory | Nop.Core.Domain.Discounts.DiscountUsageHistory | Discount usage history record |
return | void |
public IsDiscountValid ( |
||
discount | Discount | |
customer | Customer | |
return | bool |
public IsDiscountValid ( |
||
discount | Discount | |
customer | Customer | |
couponCodeToValidate | string | Coupon code to validate |
return | bool |
public LoadAllDiscountRequirementRules ( ) : IList |
||
return | IList |
public LoadDiscountRequirementRuleBySystemName ( string systemName ) : IDiscountRequirementRule | ||
systemName | string | System name |
return | IDiscountRequirementRule |
public UpdateDiscount ( |
||
discount | Discount | |
return | void |
public UpdateDiscountUsageHistory ( Nop.Core.Domain.Discounts.DiscountUsageHistory discountUsageHistory ) : void | ||
discountUsageHistory | Nop.Core.Domain.Discounts.DiscountUsageHistory | Discount usage history record |
return | void |