Class RollbackEngine
java.lang.Object
org.bhn.promotion.voucherify.engine.RollbackEngine
RollbackEngine implementation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRollbackEngine(VoucherifyClient voucherifyClient) Constructs aRollbackEnginewith the specifiedVoucherifyClient -
Method Summary
Modifier and TypeMethodDescriptionrollbackPromotion(RollbackRequest rollbackRequest) This method allows you to rollback the promotions which were applied on a cart
-
Field Details
-
ROLLBACK_FLOW_ERROR
- See Also:
-
-
Constructor Details
-
RollbackEngine
Constructs aRollbackEnginewith the specifiedVoucherifyClientThis constructor initializes the engine with the necessary services for interacting with the Voucherify API and managing promotion budgets. These services are injected via Spring's
Autowiredmechanism.- Parameters:
voucherifyClient- The client used to interact with the Voucherify API for managing vouchers.
-
-
Method Details
-
rollbackPromotion
This method allows you to rollback the promotions which were applied on a cart
- Parameters:
rollbackRequest- contains redemption id to be rolled back- Returns:
RollbackResponseModelSummary of redemptions which were rolled back
-