Package org.bhn.promotion.bhn.operation
Class BHNPromotionOperation
java.lang.Object
org.bhn.promotion.bhn.operation.BHNPromotionOperation
- All Implemented Interfaces:
PromotionOperation
BHNPromotionOperation implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneligible(EligibilityRequestDto input) evaluate(EvaluationRequest input) redeem(RedemptionRequestDto input) rollback(RollbackRequest rollbackRequest)
-
Constructor Details
-
BHNPromotionOperation
public BHNPromotionOperation()
-
-
Method Details
-
evaluate
- Specified by:
evaluatein interfacePromotionOperation- Parameters:
input- the input to be evaluated- Returns:
EvaluationResponseModelthe result of the evaluation
-
redeem
- Specified by:
redeemin interfacePromotionOperation- Parameters:
input- the input for which we want to do the redemption- Returns:
RedemptionResponseModelthe result of the redemption
-
eligible
- Specified by:
eligiblein interfacePromotionOperation- Parameters:
input- the input for which we need to find eligible promotions- Returns:
EligibilityResponseModelthe result containing eligible promotions
-
rollback
- Specified by:
rollbackin interfacePromotionOperation- Parameters:
rollbackRequest- the redemption id which we want to rollback- Returns:
- the roll backed redemption id
-