Class ManualPaymentVoidAction

  • All Implemented Interfaces:
    com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>, com.hybris.cockpitng.engine.ComponentWidgetAdapterAware

    public class ManualPaymentVoidAction
    extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
    implements com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
    This action specifies that the payment void operation has been handled manually. It proceeds with the regular cancellation flow in the business process.
    • Field Detail

      • MANUAL_PAYMENT_VOID_SUCCESS

        protected static final java.lang.String MANUAL_PAYMENT_VOID_SUCCESS
        See Also:
        Constant Field Values
      • MANUAL_VOID_PAYMENT_EVENT

        protected static final java.lang.String MANUAL_VOID_PAYMENT_EVENT
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManualPaymentVoidAction

        public ManualPaymentVoidAction()
    • Method Detail

      • perform

        public com.hybris.cockpitng.actions.ActionResult<OrderModel> perform​(com.hybris.cockpitng.actions.ActionContext<OrderModel> actionContext)
        Specified by:
        perform in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • canPerform

        public boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<OrderModel> ctx)
        Specified by:
        canPerform in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • needsConfirmation

        public boolean needsConfirmation​(com.hybris.cockpitng.actions.ActionContext<OrderModel> ctx)
        Specified by:
        needsConfirmation in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • getConfirmationMessage

        public java.lang.String getConfirmationMessage​(com.hybris.cockpitng.actions.ActionContext<OrderModel> ctx)
        Specified by:
        getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<OrderModel,​OrderModel>
      • executeManualPaymentVoidOperation

        protected void executeManualPaymentVoidOperation​(OrderModel order)
        Executes the manual payment void release operation by calling the BusinessProcessService.
        Parameters:
        order - the OrderModel to be released
      • getModelService

        protected ModelService getModelService()