Class CancelLayawayPaymentsHookCaller


  • public class CancelLayawayPaymentsHookCaller
    extends Object
    Public class implemented to execute all hooks of type CancelLayawayPaymentsHook. This class is called from Cancel and Replace process, inside createPayments method.
    • Constructor Detail

      • CancelLayawayPaymentsHookCaller

        public CancelLayawayPaymentsHookCaller()
    • Method Detail

      • executeHook

        public void executeHook​(org.codehaus.jettison.json.JSONObject jsonorder,
                                Order inverseOrder)
                         throws Exception
        Method that executes all classes of type CancelLayawayPaymentsHook.
        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