Interface CustomerCouponService
- All Superinterfaces:
CouponService
- All Known Implementing Classes:
DefaultCustomerCouponService
Deals with customer coupon related Models using existing DAOs
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCouponToCustomer(String couponCode, CustomerModel customer) Assigns the customer coupon to the current customerintCounts the number of products and categories mapped with promotion source rulegetAssignableCustomerCoupons(CustomerModel customer, String text) Gets assignable customer couponsgetAssignedCustomerCouponsForCustomer(CustomerModel customer, String text) Gets assigned customer couponsGets customer coupon codes by promotion source ruleGets coupon notifications for the customerbooleangetCouponNotificationStatus(String couponCode) Gets coupon notification status by coupon codegetCustomerCouponForCode(String couponCode) Gets customer coupon models by coupon codegetCustomerCouponsForCustomer(CustomerModel customer, PageableData pageableData) Gets paginated customer coupon models for the customer by pageableDataGets effective customer coupons of the customergetExclPromotionSourceRulesForCategory(String categoryCode) Gets excluded promotion source rules by categorygetExclPromotionSourceRulesForProduct(String productCode) Gets excluded promotion source rules by product codegetPaginatedCouponsForCustomer(CustomerModel customer, SearchPageData searchPageData) Gets paginated customer coupon data by searchPageDatagetPromotionSourceRuleForCouponCode(String couponCode) Gets promotion source rule by coupon codegetPromotionSourceRulesForCategory(String categoryCode) Gets promotion source rules by categorygetPromotionSourceRulesForProduct(String productCode) Gets promotion source rules by product codeGets promotionSourceRule for categories of productgetValidCustomerCouponByCode(String couponCode) Gets valid customer coupon models by coupon codevoidremoveCouponForCustomer(String couponCode, CustomerModel customer) Removes customer coupon for the customervoidremoveCouponNotificationByCode(String couponCode) Removes customer coupon notificationsaveCouponNotification(String couponCode) Saves customer coupon notificationMethods inherited from interface de.hybris.platform.couponservices.services.CouponService
getCouponForCode, getValidatedCouponForCode, redeemCoupon, redeemCoupon, releaseCouponCode, validateCouponCode, verifyCouponCode
-
Method Details
-
getCustomerCouponsForCustomer
SearchPageData<CustomerCouponModel> getCustomerCouponsForCustomer(CustomerModel customer, PageableData pageableData) Gets paginated customer coupon models for the customer by pageableData- Parameters:
customer- the customer modelpageableData- the data used for pagination- Returns:
- the paginated customer coupon models
-
getPromotionSourceRuleForCouponCode
Gets promotion source rule by coupon code- Parameters:
couponCode- the coupon code- Returns:
- the list of PromotionSourceRuleModel
-
assignCouponToCustomer
Assigns the customer coupon to the current customer- Parameters:
couponCode- the coupon codecustomer- the customer model
-
getPromotionSourceRulesForProduct
Gets promotion source rules by product code- Parameters:
productCode- the product code- Returns:
- the list of PromotionSourceRuleModel
-
getExclPromotionSourceRulesForProduct
Gets excluded promotion source rules by product code- Parameters:
productCode- the product code- Returns:
- the list of PromotionSourceRuleModel
-
getPromotionSourceRulesForCategory
Gets promotion source rules by category- Parameters:
categoryCode- the category code- Returns:
- the list of PromotionSourceRuleModel
-
getExclPromotionSourceRulesForCategory
Gets excluded promotion source rules by category- Parameters:
categoryCode- the category code- Returns:
- the list of PromotionSourceRuleModel
-
getCouponCodeForPromotionSourceRule
Gets customer coupon codes by promotion source rule- Parameters:
code- the promotion source rule code- Returns:
- the list of customer coupon codes
-
countProductOrCategoryForPromotionSourceRule
Counts the number of products and categories mapped with promotion source rule- Parameters:
code- the promotion source rule code- Returns:
- the total number of products and categories mapped with promotion source rule
-
getValidCustomerCouponByCode
Gets valid customer coupon models by coupon code- Parameters:
couponCode- the coupon code- Returns:
- the optional of CustomerCouponModel
-
saveCouponNotification
Saves customer coupon notification- Parameters:
couponCode- the coupon code- Returns:
- the optional of CouponNotificationModel
-
removeCouponNotificationByCode
Removes customer coupon notification- Parameters:
couponCode- the coupon code
-
getCouponNotificationStatus
Gets coupon notification status by coupon code- Parameters:
couponCode- the coupon code- Returns:
- true if the current customer has subscribed to the coupon notification and false otherwise
-
removeCouponForCustomer
Removes customer coupon for the customer- Parameters:
couponCode- the coupon codecustomer- the customer model
-
getEffectiveCustomerCouponsForCustomer
Gets effective customer coupons of the customer- Parameters:
customer- the customer model- Returns:
- the list of CustomerCouponModel
-
getAssignableCustomerCoupons
Gets assignable customer coupons- Parameters:
customer- the customer modeltext- the text used for searching assignable customer coupons- Returns:
- the list of CustomerCouponModel
-
getAssignedCustomerCouponsForCustomer
List<CustomerCouponModel> getAssignedCustomerCouponsForCustomer(CustomerModel customer, String text) Gets assigned customer coupons- Parameters:
customer- the customer modeltext- the text used for searching assigned customer coupons- Returns:
- the list of CustomerCouponModel
-
getCustomerCouponForCode
Gets customer coupon models by coupon code- Parameters:
couponCode- the coupon code- Returns:
- the optional of CustomerCouponModel, single and multi coupon will return null
-
getPaginatedCouponsForCustomer
SearchPageData<CustomerCouponModel> getPaginatedCouponsForCustomer(CustomerModel customer, SearchPageData searchPageData) Gets paginated customer coupon data by searchPageData- Parameters:
customer- the customer modelsearchPageData- the data used for pagination- Returns:
- the paginated customer coupon models
-
getCouponNotificationsForCustomer
Gets coupon notifications for the customer- Parameters:
customer- the customer model- Returns:
- the list of CouponNotificationModel
-
getPromotionSourcesRuleForProductCategories
Gets promotionSourceRule for categories of product- Parameters:
product- the product model- Returns:
- the list of PromotionSourceRuleModel
-