public interface CustomerCouponService extends CouponService
DefaultCustomerCouponService| Modifier and Type | Method and Description |
|---|---|
void |
assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
Adds custom to the coupon group.
|
int |
countProductOrCategoryForPromotionSourceRule(java.lang.String code)
Finds products is show all products, when coupon not asign with products and category condition will show all
products.
|
java.util.List<CustomerCouponModel> |
getAssignableCustomerCoupons(CustomerModel customer,
java.lang.String text)
Gets all assignable customer coupons can assign to given customer for search text
|
java.util.List<CustomerCouponModel> |
getAssignedCustomerCouponsForCustomer(CustomerModel customer,
java.lang.String text)
Gets assigned coupons for given customer and search text
|
java.util.List<java.lang.String> |
getCouponCodeForPromotionSourceRule(java.lang.String code)
Gets customer coupon code for promotion source rule
|
java.util.List<CouponNotificationModel> |
getCouponNotificationsForCustomer(CustomerModel customer)
Gets coupon notifications for customer
|
boolean |
getCouponNotificationStatus(java.lang.String couponCode)
Gets coupon notification status by coupon code
|
java.util.Optional<CustomerCouponModel> |
getCustomerCouponForCode(java.lang.String couponCode)
Gets customer Coupon for code
|
SearchPageData<CustomerCouponModel> |
getCustomerCouponsForCustomer(CustomerModel customer,
PageableData pageableData)
Gets all coupons of specific customer
|
java.util.List<CustomerCouponModel> |
getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
Gets all coupons of specific customer
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets excluded promotion source rules code list for category
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForProduct(java.lang.String productCode)
Gets excluded promotion source rules code list for product
|
SearchPageData<CustomerCouponModel> |
getPaginatedCouponsForCustomer(CustomerModel customer,
SearchPageData searchPageData)
Gets paginated coupons for customer
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
Gets promotion source rule for given coupon code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets promotion source rules code list for category
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForProduct(java.lang.String productCode)
Gets promotion source rules code list for product
|
java.util.Optional<CustomerCouponModel> |
getValidCustomerCouponByCode(java.lang.String couponCode)
Gets the customer coupon with enddate >= now for coupon code
|
void |
removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
Removes a record from CustomerCoupon
|
void |
removeCouponNotificationByCode(java.lang.String couponCode)
Removes customer interest coupon message.
|
void |
saveCouponNotification(java.lang.String couponCode)
Saves customer interest coupon message.
|
getCouponForCode, getValidatedCouponForCode, redeemCoupon, redeemCoupon, releaseCouponCode, validateCouponCode, verifyCouponCodeSearchPageData<CustomerCouponModel> getCustomerCouponsForCustomer(CustomerModel customer, PageableData pageableData)
customer - the specific customerpageableData - the pageable datajava.util.List<PromotionSourceRuleModel> getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
couponCode - the given coupon codevoid assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
couponCode - coupon codecustomer - customer modeljava.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForProduct(java.lang.String productCode)
productCode - product codejava.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForProduct(java.lang.String productCode)
productCode - product codejava.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForCategory(java.lang.String categoryCode)
categoryCode - category codejava.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
categoryCode - category codejava.util.List<java.lang.String> getCouponCodeForPromotionSourceRule(java.lang.String code)
code - coupon codeint countProductOrCategoryForPromotionSourceRule(java.lang.String code)
code - promotion codejava.util.Optional<CustomerCouponModel> getValidCustomerCouponByCode(java.lang.String couponCode)
couponCode - customer coupon codevoid saveCouponNotification(java.lang.String couponCode)
couponCode - coupon codevoid removeCouponNotificationByCode(java.lang.String couponCode)
couponCode - coupon codeboolean getCouponNotificationStatus(java.lang.String couponCode)
couponCode - coupon codevoid removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
couponCode - the coupon codecustomer - the specific customerjava.util.List<CustomerCouponModel> getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
customer - the specific customerjava.util.List<CustomerCouponModel> getAssignableCustomerCoupons(CustomerModel customer, java.lang.String text)
customer - the given customertext - search textjava.util.List<CustomerCouponModel> getAssignedCustomerCouponsForCustomer(CustomerModel customer, java.lang.String text)
customer - the given customertext - search textjava.util.Optional<CustomerCouponModel> getCustomerCouponForCode(java.lang.String couponCode)
couponCode - coupon codeSearchPageData<CustomerCouponModel> getPaginatedCouponsForCustomer(CustomerModel customer, SearchPageData searchPageData)
customer - the specific customersearchPageData - the search page datajava.util.List<CouponNotificationModel> getCouponNotificationsForCustomer(CustomerModel customer)
customer - the specific customerCopyright © 2018 SAP SE. All Rights Reserved.