Class SapDigitalPaymentCaptureRefundAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<ReturnProcessModel>
-
- de.hybris.platform.ysapdpordermanagement.actions.returns.SapDigitalPaymentCaptureRefundAction
-
- All Implemented Interfaces:
Action<ReturnProcessModel>
public class SapDigitalPaymentCaptureRefundAction extends AbstractSimpleDecisionAction<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, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description SapDigitalPaymentCaptureRefundAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSimpleDecisionAction.Transition
executeAction(ReturnProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.PaymentService
getPaymentService()
protected RefundAmountCalculationService
getRefundAmountCalculationService()
SapDigitalPaymentService
getSapDigitalPaymentService()
void
setPaymentService(PaymentService paymentService)
void
setRefundAmountCalculationService(RefundAmountCalculationService refundAmountCalculationService)
protected void
setReturnRequestStatus(ReturnRequestModel returnRequest, ReturnStatus status)
Update the return status for all return entries inReturnRequestModel
void
setSapDigitalPaymentService(SapDigitalPaymentService sapDigitalPaymentService)
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitions
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Method Detail
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(ReturnProcessModel process) throws java.lang.Exception
Description copied from class:AbstractSimpleDecisionAction
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Specified by:
executeAction
in classAbstractSimpleDecisionAction<ReturnProcessModel>
- Parameters:
process
- The process context to work on.- Returns:
- OK; NOK
- Throws:
RetryLaterException
java.lang.Exception
-
setReturnRequestStatus
protected void setReturnRequestStatus(ReturnRequestModel returnRequest, ReturnStatus status)
Update the return status for all return entries inReturnRequestModel
- Parameters:
returnRequest
- - the return requeststatus
- - the return status
-
getSapDigitalPaymentService
public SapDigitalPaymentService getSapDigitalPaymentService()
- Returns:
- the sapDigitalPaymentService
-
setSapDigitalPaymentService
public void setSapDigitalPaymentService(SapDigitalPaymentService sapDigitalPaymentService)
- Parameters:
sapDigitalPaymentService
- the sapDigitalPaymentService to set
-
getRefundAmountCalculationService
protected RefundAmountCalculationService getRefundAmountCalculationService()
-
setRefundAmountCalculationService
public void setRefundAmountCalculationService(RefundAmountCalculationService refundAmountCalculationService)
-
getPaymentService
public PaymentService getPaymentService()
- Returns:
- the paymentService
-
setPaymentService
public void setPaymentService(PaymentService paymentService)
- Parameters:
paymentService
- the paymentService to set
-
-