Remove service Gestion v0.3 and add service Account v0.1
This commit is contained in:
parent
2be85368b2
commit
933691c9be
@ -61,7 +61,7 @@ class AuthController extends Zend_Controller_Action
|
||||
$token = $params[$config['token']];
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->client = $config['clientId'];
|
||||
$parameters->login = $login;
|
||||
@ -208,7 +208,7 @@ class AuthController extends Zend_Controller_Action
|
||||
);
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->data = json_encode($data);
|
||||
$created = $ws->setUserSSO($parameters);
|
||||
|
63
library/Scores/Ws/Client/Account.php
Normal file
63
library/Scores/Ws/Client/Account.php
Normal file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
return array(
|
||||
'0.1' => array(
|
||||
'getCategory' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getClient' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getClientServices' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getClients' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getService' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getServices' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getUser' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getUserEmail' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getUsers' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'loginAuthenticate' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setCGU' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setService' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setServiceParam' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUser' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUserEmail' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUserPassword' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUserSSO' => array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('SSO'),
|
||||
'log' => 'mail',
|
||||
),
|
||||
'ssoAuthenticate' => array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('SSO'),
|
||||
'log' => 'mail',
|
||||
),
|
||||
),
|
||||
);
|
@ -90,64 +90,4 @@ return array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
),
|
||||
'0.4' => array(
|
||||
'getCategory' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getClient' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getClientServices' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getClients' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getService' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getServices' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getUser' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getUserEmail' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'getUsers' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'loginAuthenticate' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setCGU' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setService' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setServiceParam' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUser' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUserEmail' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUserPassword' => array(
|
||||
'log' => 'mail',
|
||||
),
|
||||
'setUserSSO' => array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('SSO'),
|
||||
'log' => 'mail',
|
||||
),
|
||||
'ssoAuthenticate' => array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('SSO'),
|
||||
'log' => 'mail',
|
||||
),
|
||||
),
|
||||
);
|
@ -637,53 +637,6 @@ class WsScores
|
||||
|
||||
}
|
||||
|
||||
public function setClientTarif($idClient, $log, $service, $type, $priceUnit, $limit, $date, $duree, $doublon)
|
||||
{
|
||||
$params = new stdClass();
|
||||
$params->idClient = $idClient;
|
||||
$params->tarif->log = $log;
|
||||
$params->tarif->service = $service;
|
||||
$params->tarif->type = $type;
|
||||
$params->tarif->priceUnit = $priceUnit;
|
||||
$params->tarif->limit = $limit;
|
||||
$params->tarif->date = $date;
|
||||
$params->tarif->duree = $duree;
|
||||
$params->tarif->doublon = $doublon;
|
||||
$client = $this->loadClient('gestion');
|
||||
try {
|
||||
$reponse = $client->setClientTarif($params);
|
||||
return $reponse->setClientTarifResult;
|
||||
} catch (SoapFault $fault) {
|
||||
Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring);
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getClientTarifs($idClient, $service = null)
|
||||
{
|
||||
$params = new stdClass();
|
||||
$params->idClient = $idClient;
|
||||
$params->service = $service;
|
||||
$client = $this->loadClient('gestion');
|
||||
try {
|
||||
$reponse = $client->getClientTarifs($params);
|
||||
return $reponse->getClientTarifsResult;
|
||||
} catch (SoapFault $fault) {
|
||||
Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring);
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function setService($idClient, $infos)
|
||||
{
|
||||
$params = new stdClass();
|
||||
|
Loading…
Reference in New Issue
Block a user