private function _calcCompressionOi() { $req = new CalcCompressOiRequest(); $req->setQualificationLevelPv(self::QUALIFICATION_PV); $req->setQualificationLevelTv(self::QUALIFICATION_TV); $resp = $this->_callCalc->compressOi($req); $this->assertTrue($resp->isSucceed()); }
private function _calcCompressOi() { $request = new BonusCalcCompressOiRequest(); /* DEFAULT */ $request->setScheme(Def::SCHEMA_DEFAULT); $response = $this->_callCalc->compressOi($request); $this->_calcIdCompressOiDef = $response->getCalcId(); $this->assertTrue($response->isSucceed()); /* EU */ $request->setScheme(Def::SCHEMA_EU); $response = $this->_callCalc->compressOi($request); $this->_calcIdCompressOiEu = $response->getCalcId(); $this->assertTrue($response->isSucceed()); }