Class CaptureRefundAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<ReturnProcessModel>
de.hybris.platform.yacceleratorordermanagement.actions.returns.CaptureRefundAction
- All Implemented Interfaces:
Action<ReturnProcessModel>
Part of the refund process that returns the money to the customer.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
AbstractSimpleDecisionAction.Transition -
Field Summary
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteAction(ReturnProcessModel process) Executes thisAction's business logic working on the givenBusinessProcessModel.protected PaymentServiceprotected RefundAmountCalculationServicevoidsetPaymentService(PaymentService paymentService) voidsetRefundAmountCalculationService(RefundAmountCalculationService refundAmountCalculationService) protected voidsetReturnRequestStatus(ReturnRequestModel returnRequest, ReturnStatus status) Update the return status for all return entries inReturnRequestModelMethods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitionsMethods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Constructor Details
-
CaptureRefundAction
public CaptureRefundAction()
-
-
Method Details
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(ReturnProcessModel process) throws RetryLaterException, Exception Description copied from class:AbstractSimpleDecisionActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Specified by:
executeActionin classAbstractSimpleDecisionAction<ReturnProcessModel>- Parameters:
process- The process context to work on.- Returns:
- OK; NOK
- Throws:
RetryLaterExceptionException
-
setReturnRequestStatus
Update the return status for all return entries inReturnRequestModel- Parameters:
returnRequest- - the return requeststatus- - the return status
-
getPaymentService
-
setPaymentService
-
getRefundAmountCalculationService
-
setRefundAmountCalculationService
public void setRefundAmountCalculationService(RefundAmountCalculationService refundAmountCalculationService)
-