/** * RRP MTA Confirmation */ public function rentRecoveryPlusMtaConfirmationAction() { $request = $this->getSymfonyRequest(); $policyNumber = null; if ($request->isMethod('POST')) { $policyNumber = $request->get('policyNumber'); $mtaID = $request->get('mtaID'); if ($policyNumber && $mtaID) { $mtaDecoratorClass = $this->getContainer()->get('rrp.mta.decorator.class'); /** @var RRP\Mta\Decorators\RentRecoveryPlusMta $mta */ $mta = $mtaDecoratorClass::getDecorator('RentRecoveryPlusMta'); if ($mta->accept($policyNumber, $mtaID)) { Manager_Insurance_Quote::sendMta($policyNumber, null, null, $this->_params->connect->settings->rentRecoveryPlus->systemCsuID, array('mtaId' => $mtaID)); // Show confirmation of changes page $this->renderTwigView('/rentguarantee/rent-recovery-plus-mta-confirmation.html.twig', array('policyNumber' => $policyNumber, 'emailQueryAddress' => $this->_params->connect->settings->rentRecoveryPlus->queryEmailAddress)); return; } } } $this->renderTwigView('/rentguarantee/rent-recovery-plus-error.html.twig'); }
/** * Save the quote * */ public function save() { parent::save(); $this->_saveToLegacy(); }