Package org.bhn.promotion.core.engine
Interface PromotionEngine
- All Known Implementing Classes:
BHNPromotionEngine,VoucherifyPromotionEngine
public interface PromotionEngine
PromotionEngine interface.
-
Method Summary
Modifier and TypeMethodDescriptionEvaluate the promotion requestFetch eligible promotions listRedeem the promotion as requestedrollbackPromotion(RollbackRequest rollbackRequest) Rollback the applied promotion
-
Method Details
-
evaluatePromotion
Evaluate the promotion request- Parameters:
input- the input to be evaluated hereEvaluationRequest- Returns:
EvaluationResponseModelthe result of the evaluation
-
redeemPromotion
Redeem the promotion as requested- Parameters:
input- the input for which we want to do the redemptionRedemptionRequestDto- Returns:
RedemptionResponseModelthe result of the redemption
-
rollbackPromotion
Rollback the applied promotion- Parameters:
rollbackRequest- contains the redemption id which we want to rollback- Returns:
RollbackResponseModel
-
getEligiblePromotions
Fetch eligible promotions list- Parameters:
input- the input for which we need to find eligible promotionsEligibilityRequestDto- Returns:
EligibilityResponseModelthe result containing eligible promotions
-