Interface CustomerCouponDao
- All Known Implementing Classes:
DefaultCustomerCouponDao
public interface CustomerCouponDao
Looks up items related to customer coupon
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckCustomerCouponAvailableForCustomer(String couponCode, CustomerModel customer) Checks if the customer coupon is available for the customerintcountAssignedCouponForCustomer(String couponCode, CustomerModel customer) Counts the assigned customer coupons for the customer by coupon codefindAssignableCoupons(CustomerModel customer, String text) Finds assignable customer coupons for the customer by search textfindAssignedCouponsByCustomer(CustomerModel customer, String text) Finds assigned customer coupons by the customer and search textFinds category for promotion source rules by promotion source ruleFinds customer coupons by promotion source rulefindCustomerCouponsByCustomer(CustomerModel customer, PageableData pageableData) Finds paginated customer couponsFinds customer coupons for the customerfindExclPromotionSourceRuleByCategory(String categoryCode) Finds excluded promotion source rules by categoryfindExclPromotionSourceRuleByProduct(String productCode) Finds excluded promotion source rules by product codefindPaginatedCouponsByCustomer(CustomerModel customer, SearchPageData searchPageData) Finds paginated customer coupons by the customer and searchPageDataFinds product for promotion source rules by codefindPromotionSourceRuleByCategory(String categoryCode) Finds promotion source rules by categoryFinds promotion source rules by rule codefindPromotionSourceRuleByProduct(String productCode) Finds promotion source rules by product code
-
Method Details
-
findCustomerCouponsByCustomer
SearchPageData<CustomerCouponModel> findCustomerCouponsByCustomer(CustomerModel customer, PageableData pageableData) Finds paginated customer coupons- Parameters:
customer- the customer modelpageableData- the data used for pagination- Returns:
- the list of paginated CustomerCouponModel
-
findPromotionSourceRuleByCode
Finds promotion source rules by rule code- Parameters:
code- the rule code- Returns:
- the optional of PromotionSourceRuleModel
-
findPromotionSourceRuleByProduct
Finds promotion source rules by product code- Parameters:
productCode- the product code- Returns:
- the list of PromotionSourceRuleModel
-
findExclPromotionSourceRuleByProduct
Finds excluded promotion source rules by product code- Parameters:
productCode- the product code- Returns:
- the list of PromotionSourceRuleModel
-
findPromotionSourceRuleByCategory
Finds promotion source rules by category- Parameters:
categoryCode- the category code- Returns:
- the list of PromotionSourceRuleModel
-
findExclPromotionSourceRuleByCategory
Finds excluded promotion source rules by category- Parameters:
categoryCode- the category code- Returns:
- the list of PromotionSourceRuleModel
-
findCustomerCouponByPromotionSourceRule
Finds customer coupons by promotion source rule- Parameters:
code- the promotion source rule code- Returns:
- the list of CustomerCouponModel
-
findProductForPromotionSourceRuleByPromotion
Finds product for promotion source rules by code- Parameters:
code- the promotion source rule code- Returns:
- the list of ProductForPromotionSourceRuleModel
-
findCategoryForPromotionSourceRuleByPromotion
Finds category for promotion source rules by promotion source rule- Parameters:
code- the promotion source rule code- Returns:
- the list of CatForPromotionSourceRuleModel
-
findEffectiveCustomerCouponsByCustomer
Finds customer coupons for the customer- Parameters:
customer- the customer model- Returns:
- the list of CustomerCouponModel
-
checkCustomerCouponAvailableForCustomer
Checks if the customer coupon is available for the customer- Parameters:
couponCode- the coupon codecustomer- the customer model- Returns:
- true if the coupon is available for the customer and false otherwise
-
countAssignedCouponForCustomer
Counts the assigned customer coupons for the customer by coupon code- Parameters:
couponCode- the coupon codecustomer- the customer model- Returns:
- the total number of assigned coupons
-
findAssignableCoupons
Finds assignable customer coupons for the customer by search text- Parameters:
customer- the customer modeltext- the text used for searching assignable customer coupons- Returns:
- the list of CustomerCouponModel
-
findAssignedCouponsByCustomer
Finds assigned customer coupons by the customer and search text- Parameters:
customer- the customer modeltext- the text used for searching assigned customer coupons- Returns:
- the list of CustomerCouponModel
-
findPaginatedCouponsByCustomer
SearchPageData<CustomerCouponModel> findPaginatedCouponsByCustomer(CustomerModel customer, SearchPageData searchPageData) Finds paginated customer coupons by the customer and searchPageData- Parameters:
customer- the customer modelsearchPageData- the data used for pagination- Returns:
- the paginated CustomerCouponModel
-