/** * Prepare an asynchronous modify action. * * The frontend should send a request with the following format: * { * new_state: "the new state", * selection_type: "the selection type, i.e., HANDLER or LIST", * handlers: * [ * "handler0", * // ... * "handlerN" * ], * list: * [ * { * type: "subscription ID type, i.e., ID or ICC or IMSI or MSISDN", * id: "the id" * }, * { * // repeated * } * ] * } */ public function prepmodifyAction() { try { $data = $this->_helper->requestData(); $this->checkParams($data); $this->view->transactionId = $this->_lifecycleSrv->prepModifyStatus($data, \App::getOrgUserLogged()->getId()); } catch (Exception $e) { throw new AppEx\InvalidArgumentException($e->getMessage()); } }