public interface PromotionsCalculator
extends org.pf4j.ExtensionPoint
| Modifier and Type | Method and Description |
|---|---|
default void |
createCouponsForPromotions(XPFPromotionCalculatorCouponCreationContext context)
Deprecated.
implement triggerActionsAtCheckout(XPFPromotionCalculatorTriggerActionsAtCheckoutContext context) instead
|
void |
disableCouponAutoApply(XPFPromotionCalculatorDisableCouponContext context)
Change the behaviour of the specified coupons so that shopper-specific coupons don't automatically apply to future shopper's carts.
|
XPFPromotionsCalculatorOutputContext |
evaluate(XPFCartPromotionsCalculatorInputContext context)
Evaluate promotions for cart promotion calculator input context.
|
XPFPromotionsCalculatorOutputContext |
evaluate(XPFCatalogPromotionsCalculatorInputContext context)
Evaluate promotions for catalog promotion calculator input context.
|
Set<String> |
retrieveCouponCodesByCustomerAndStore(XPFPromotionCalculatorCouponStoreEmailRetrievalContext context)
Get applicable coupon codes for given store and customer email.
|
Map<String,Collection<XPFCoupon>> |
retrieveCouponsByCodes(XPFPromotionCalculatorCouponCodeRetrievalContext context)
Retrieve coupons by coupon codes.
|
Map<String,XPFCoupon> |
retrieveCouponsByGuids(XPFPromotionCalculatorCouponGuidRetrievalContext context)
Retrieve coupons by GUIDs.
|
Set<XPFPromotionRule> |
retrievePromotionCarrots(XPFPromotionCarrotsInputContext context)
Deprecated.
implement retrievePromotionCarrots(com.elasticpath.xpf.connectivity.context.XPFPromotionCarrotsInputContext context) instead
|
default Set<XPFPromotionRule> |
retrievePromotionCarrots(XPFPromotionCarrotsInputContext context)
Retrieve promotion carrots.
|
Map<String,XPFPromotionRule> |
retrievePromotionRules(XPFPromotionsCalculatorRuleRetrievalContext context)
Retrieve promotion rules.
|
default void |
triggerActionsAtCheckout(XPFPromotionCalculatorTriggerActionsAtCheckoutContext context)
Trigger promotion-related actions that need to be executed at checkout time for the promotions provided in the context.
|
Map<String,XPFPromotionCouponValidationOutputContext> |
validateCouponRuleAndUsage(XPFPromotionCalculatorCouponValidationContext context)
Determine if the specified coupon codes are valid.
|
XPFPromotionsCalculatorOutputContext evaluate(XPFCatalogPromotionsCalculatorInputContext context)
context - the contextXPFPromotionsCalculatorOutputContext evaluate(XPFCartPromotionsCalculatorInputContext context)
context - the contextMap<String,XPFPromotionRule> retrievePromotionRules(XPFPromotionsCalculatorRuleRetrievalContext context)
context - the rule retrieval context@Deprecated Set<XPFPromotionRule> retrievePromotionCarrots(XPFPromotionCarrotsInputContext context)
context - the contextdefault Set<XPFPromotionRule> retrievePromotionCarrots(XPFPromotionCarrotsInputContext context)
context - the contextMap<String,XPFCoupon> retrieveCouponsByGuids(XPFPromotionCalculatorCouponGuidRetrievalContext context)
context - the contextMap<String,Collection<XPFCoupon>> retrieveCouponsByCodes(XPFPromotionCalculatorCouponCodeRetrievalContext context)
context - the contextSet<String> retrieveCouponCodesByCustomerAndStore(XPFPromotionCalculatorCouponStoreEmailRetrievalContext context)
context - the contextMap<String,XPFPromotionCouponValidationOutputContext> validateCouponRuleAndUsage(XPFPromotionCalculatorCouponValidationContext context)
context - the context@Deprecated default void createCouponsForPromotions(XPFPromotionCalculatorCouponCreationContext context)
context - the contextdefault void triggerActionsAtCheckout(XPFPromotionCalculatorTriggerActionsAtCheckoutContext context)
context - the contextvoid disableCouponAutoApply(XPFPromotionCalculatorDisableCouponContext context)
context - the contextCopyright © 2026. All rights reserved.