Interface CancelLayawayPaymentsHook


  • public interface CancelLayawayPaymentsHook
    Interface created to implement hooks inside Cancel and Replace process in createPayments method. All hooks in that process must implement this class so they implement exec process.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void exec​(org.codehaus.jettison.json.JSONObject jsonorder, Order inverseOrder)
      Exec method that all hooks implementing this interface must implement.
    • Method Detail

      • exec

        void exec​(org.codehaus.jettison.json.JSONObject jsonorder,
                  Order inverseOrder)
           throws Exception
        Exec method that all hooks implementing this interface must implement.
        Parameters:
        inverseOrder - New Sales Order equal to old sales order but with negative quantities. Cancellation Order.
        jsonorder - JSONObject with information of the order coming with values when the hook is invoked because the Cancel and Replace has been executed from Web POS.
        Throws:
        Exception