public interface CustomerCouponService extends CouponService
| Modifier and Type | Method and Description |
|---|---|
void |
assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
Assigns the customer coupon to the current customer
|
int |
countProductOrCategoryForPromotionSourceRule(java.lang.String code)
Counts the number of products and categories mapped with promotion source rule
|
java.util.List<CustomerCouponModel> |
getAssignableCustomerCoupons(CustomerModel customer,
java.lang.String text)
Gets assignable customer coupons
|
java.util.List<CustomerCouponModel> |
getAssignedCustomerCouponsForCustomer(CustomerModel customer,
java.lang.String text)
Gets assigned customer coupons
|
java.util.List<java.lang.String> |
getCouponCodeForPromotionSourceRule(java.lang.String code)
Gets customer coupon codes by promotion source rule
|
java.util.List<CouponNotificationModel> |
getCouponNotificationsForCustomer(CustomerModel customer)
Gets coupon notifications for the 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 models by coupon code
|
SearchPageData<CustomerCouponModel> |
getCustomerCouponsForCustomer(CustomerModel customer,
PageableData pageableData)
Gets paginated customer coupon models for the customer by pageableData
|
java.util.List<CustomerCouponModel> |
getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
Gets effective customer coupons of the customer
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets excluded promotion source rules by category
|
java.util.List<PromotionSourceRuleModel> |
getExclPromotionSourceRulesForProduct(java.lang.String productCode)
Gets excluded promotion source rules by product code
|
SearchPageData<CustomerCouponModel> |
getPaginatedCouponsForCustomer(CustomerModel customer,
SearchPageData searchPageData)
Gets paginated customer coupon data by searchPageData
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
Gets promotion source rule by coupon code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForCategory(java.lang.String categoryCode)
Gets promotion source rules by category
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesForProduct(java.lang.String productCode)
Gets promotion source rules by product code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourcesRuleForProductCategories(ProductModel product)
Gets promotionSourceRule for categories of product
|
java.util.Optional<CustomerCouponModel> |
getValidCustomerCouponByCode(java.lang.String couponCode)
Gets valid customer coupon models by coupon code
|
void |
removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
Removes customer coupon for the customer
|
void |
removeCouponNotificationByCode(java.lang.String couponCode)
Removes customer coupon notification
|
void |
saveCouponNotification(java.lang.String couponCode)
Saves customer coupon notification
|
getCouponForCode, getValidatedCouponForCode, redeemCoupon, redeemCoupon, releaseCouponCode, validateCouponCode, verifyCouponCodeSearchPageData<CustomerCouponModel> getCustomerCouponsForCustomer(CustomerModel customer, PageableData pageableData)
customer - the customer modelpageableData - the data used for paginationjava.util.List<PromotionSourceRuleModel> getPromotionSourceRuleForCouponCode(java.lang.String couponCode)
couponCode - the coupon codevoid assignCouponToCustomer(java.lang.String couponCode,
CustomerModel customer)
couponCode - the coupon codecustomer - the customer modeljava.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForProduct(java.lang.String productCode)
productCode - the product codejava.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForProduct(java.lang.String productCode)
productCode - the product codejava.util.List<PromotionSourceRuleModel> getPromotionSourceRulesForCategory(java.lang.String categoryCode)
categoryCode - the category codejava.util.List<PromotionSourceRuleModel> getExclPromotionSourceRulesForCategory(java.lang.String categoryCode)
categoryCode - the category codejava.util.List<java.lang.String> getCouponCodeForPromotionSourceRule(java.lang.String code)
code - the promotion source rule codeint countProductOrCategoryForPromotionSourceRule(java.lang.String code)
code - the promotion source rule codejava.util.Optional<CustomerCouponModel> getValidCustomerCouponByCode(java.lang.String couponCode)
couponCode - the coupon codevoid saveCouponNotification(java.lang.String couponCode)
couponCode - the coupon codevoid removeCouponNotificationByCode(java.lang.String couponCode)
couponCode - the coupon codeboolean getCouponNotificationStatus(java.lang.String couponCode)
couponCode - the coupon codevoid removeCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
couponCode - the coupon codecustomer - the customer modeljava.util.List<CustomerCouponModel> getEffectiveCustomerCouponsForCustomer(CustomerModel customer)
customer - the customer modeljava.util.List<CustomerCouponModel> getAssignableCustomerCoupons(CustomerModel customer, java.lang.String text)
customer - the customer modeltext - the text used for searching assignable customer couponsjava.util.List<CustomerCouponModel> getAssignedCustomerCouponsForCustomer(CustomerModel customer, java.lang.String text)
customer - the customer modeltext - the text used for searching assigned customer couponsjava.util.Optional<CustomerCouponModel> getCustomerCouponForCode(java.lang.String couponCode)
couponCode - the coupon codeSearchPageData<CustomerCouponModel> getPaginatedCouponsForCustomer(CustomerModel customer, SearchPageData searchPageData)
customer - the customer modelsearchPageData - the data used for paginationjava.util.List<CouponNotificationModel> getCouponNotificationsForCustomer(CustomerModel customer)
customer - the customer modeljava.util.List<PromotionSourceRuleModel> getPromotionSourcesRuleForProductCategories(ProductModel product)
product - the product modelCopyright © 2018 SAP SE. All Rights Reserved.