Interface ReturnCallbackService

All Known Implementing Classes:
DefaultReturnService, WarehousingReturnService

public interface ReturnCallbackService
This interface is used by adapter to provide feedback information about execution of actions on a return request.
  • Method Details

    • onReturnApprovalResponse

      void onReturnApprovalResponse(ReturnActionResponse approvalResponse) throws OrderReturnException
      Callback method used by the adapter to pass approval operation result. Adapter uses this method to provide feedback information how was the ReturnRequest approved (completely, partially, not at all).
      Parameters:
      approvalResponse - - instance of ReturnActionResponse
      Throws:
      OrderReturnException - in case of error
    • onReturnCancelResponse

      void onReturnCancelResponse(ReturnActionResponse cancelResponse) throws OrderReturnException
      Callback method used by the adapter to pass cancellation operation result. Adapter uses this method to provide feedback information how was the ReturnRequest cancelled (completely, partially, not at all).
      Parameters:
      cancelResponse - - instance of ReturnActionResponse
      Throws:
      OrderReturnException - in case of error
    • onReturnReceptionResponse

      void onReturnReceptionResponse(ReturnActionResponse receptionResponse) throws OrderReturnException
      Callback method used by the adapter to pass reception operation result. Adapter uses this method to provide feedback information how was the ReturnRequest received (completely, partially, not at all).
      Parameters:
      receptionResponse - - instance of ReturnActionResponse
      Throws:
      OrderReturnException - in case of error