public interface FlashBuyService
| Modifier and Type | Method and Description |
|---|---|
void |
createCronJobForFlashBuyCoupon(FlashBuyCouponModel coupon)
Create or update cronjob for flash buy coupon to reset max order quantity
|
void |
deleteCronJobAndTrigger(FlashBuyCouponModel coupon)
Deletes cronjobs for setting and resetting max order quantity and triggered by flash buy coupon
|
java.util.List<ProductModel> |
getAllProductsByPromotionSourceRule(PromotionSourceRuleModel rule)
Gets all products by promotionsourcerule
|
java.util.List<FlashBuyCouponModel> |
getFlashBuyCouponByProduct(ProductModel product)
Gets flash buy coupon by product
|
java.util.Optional<FlashBuyCouponModel> |
getFlashBuyCouponByPromotionCode(java.lang.String code)
Gets flash buy coupon by promotion source rule
|
java.util.List<ProductModel> |
getProductForCode(java.lang.String productCode)
Finds Product by product code
|
java.util.Optional<ProductModel> |
getProductForPromotion(AbstractPromotionModel promotion)
Gets product by promotion
|
java.util.List<ProductForPromotionSourceRuleModel> |
getProductForPromotionSourceRule(PromotionSourceRuleModel promotionSourceRule)
Gets productforpromotionsourcerule by promotionsourcerule
|
AbstractPromotionModel |
getPromotionByCode(java.lang.String promotionCode)
Finds Promotion by given promotion code
|
java.util.List<PromotionSourceRuleModel> |
getPromotionSourceRulesByProductCode(java.lang.String productCode)
Gets promotion source rules by product
|
void |
performFlashBuyCronJob(FlashBuyCouponModel coupon)
Performs cronjob for flash buy directly
|
void |
undeployFlashBuyPromotion(PromotionSourceRuleModel promotionSourceRule)
Stops flash buy promotion by promotion
|
java.util.Optional<ProductModel> getProductForPromotion(AbstractPromotionModel promotion)
promotion - the given promotionjava.util.List<PromotionSourceRuleModel> getPromotionSourceRulesByProductCode(java.lang.String productCode)
productCode - the product codejava.util.Optional<FlashBuyCouponModel> getFlashBuyCouponByPromotionCode(java.lang.String code)
code - the promotion codevoid undeployFlashBuyPromotion(PromotionSourceRuleModel promotionSourceRule)
promotionSourceRule - the promotionSourceRule modelAbstractPromotionModel getPromotionByCode(java.lang.String promotionCode)
promotionCode - the given promotion codevoid createCronJobForFlashBuyCoupon(FlashBuyCouponModel coupon)
coupon - the flash buy coupon modelvoid performFlashBuyCronJob(FlashBuyCouponModel coupon)
coupon - the flash buy coupon modeljava.util.List<ProductForPromotionSourceRuleModel> getProductForPromotionSourceRule(PromotionSourceRuleModel promotionSourceRule)
promotionSourceRule - the promotion source rulejava.util.List<ProductModel> getProductForCode(java.lang.String productCode)
productCode - the given productCodejava.util.List<ProductModel> getAllProductsByPromotionSourceRule(PromotionSourceRuleModel rule)
rule - the promotion source rulejava.util.List<FlashBuyCouponModel> getFlashBuyCouponByProduct(ProductModel product)
product - the product modelvoid deleteCronJobAndTrigger(FlashBuyCouponModel coupon)
coupon - the flash buy coupon modelCopyright © 2018 SAP SE. All Rights Reserved.