issue #0000982 : first draft getContactEt

This commit is contained in:
Michael RICOIS 2012-08-08 16:22:07 +00:00
parent 57c323911a
commit 2f0442255a
4 changed files with 196 additions and 900 deletions

View File

@ -1,3 +1,17 @@
- Add getBilanSaisie
- Remove setInfosEntrep
- Remove getKbis
- Remove setCmdBilan
- Remove getCmdBilan
- Remove setCmdActe
- Remove getCmdACte
- Remove setCmdKbis
- Remove getCmdKbis
- Remove setCmdPieces
- Remove getCmdPieces
- Remove getListeCmdPieces
- Remove getListeCmdStatut
- Remove setCmdStatut
- Remove setCmdEven
- Remove setCmdDocument
- Add getContactEt

View File

@ -1,29 +1,7 @@
Type[] = "ContactEt"
Type[] = "ContactEtReturn"
Type[] = "ErrorType"
Type[] = "RefCommande"
Type[] = "InfosDemandeur"
Type[] = "ListeCmdPiecesReturn"
Type[] = "CmdPiecesReturn"
Type[] = "CmdPiecesDetail"
Type[] = "InfoCommandePieces"
Type[] = "ListeCmdBilanReturn"
Type[] = "CmdBilanReturn"
Type[] = "CmdBilanDetail"
Type[] = "InfoCommandeBilan"
Type[] = "ListeCmdActeReturn"
Type[] = "CmdActeReturn"
Type[] = "CmdActeDetail"
Type[] = "InfoCommandeActe"
Type[] = "ListeCmdKbisReturn"
Type[] = "CmdKbisReturn"
Type[] = "CmdKbisDetail"
Type[] = "InfoCommandeKbis"
Type[] = "ListeCmdAssoReturn"
Type[] = "CmdAssoReturn"
Type[] = "CmdAssoDetail"
Type[] = "InfoCmdAsso"
Type[] = "CommandeReturnType"
Type[] = "CmdFiltrePieces"
Type[] = "CmdStatut"
Type[] = "ListeConventionsReturn"
Type[] = "Convention"
Type[] = "AnnonceCollecteReturn"
@ -45,7 +23,11 @@ Type[] = "ListeJalCollecteReturn"
Type[] = "JalCollecte"
Type[] = "GeoCodeReturn"
Type[] = "GeoCode"
Type[] = "InfoCmdAsso"
Type[] = "InfosCmdEnquete"
Type[] = "InfosDemandeur"
Type[] = "CmdAssoDetail"
Type[] = "CmdAssoReturn"
Type[] = "CmdEnqueteReturn"
Type[] = "CmdEnquete"
Type[] = "CmdEnqueteRIB"

View File

@ -188,550 +188,7 @@ class Interne extends WsScore
$output->result = $tabRet;
return $output;
}
/**
* Commande de bilan
* @param InfoCommandeBilan $infoCommande
* @param InfosDemandeur $infosDemandeur
* @return CmdBilanReturn
*/
public function setCmdBilan( InfoCommandeBilan $infoCommande, InfosDemandeur $infosDemandeur )
{
}
/**
* Renvoi des informations sur une commande de bilan
* @param string $reference
* @return CmdBilanReturn
*/
public function getCmdBilan( $reference )
{
}
/**
* Commande d'acte
* @param InfoCommandeActe $infoCommande
* @param InfosDemandeur $infosDemandeur
* @return CmdActeReturn
*/
public function setCmdActe( $infoCommande, $infosDemandeur )
{
}
/**
* Renvoi des informations sur une commande d'acte
* @param string $reference
* @return CmdActeReturn
*/
public function getCmdActe( $reference ){}
/**
* Commande de kbis
* @param InfoCommandeKbis $infoCommande
* @param InfosDemandeur $infosDemandeur
* @return CmdKbisReturn
*/
public function setCmdKbis( InfoCommandeKbis $infoCommande, InfosDemandeur $infosDemandeur )
{
$this->authenticate();
$error = new ErrorType();
$ref = new RefCommande();
//Vérifier les informations
switch($infoCommande->mode)
{
case 'courrier': break;
case 'mail': break;
default:
exit; break;
}
if (empty($infoCommande->siren))
{
$error->errnum = 0;
$error->errmsg = 'Erreur SIREN invalide';
}
else
{
$login = $_SERVER['PHP_AUTH_USER'];
// Insertion des données commande
$dataCommandes = array(
'user_login' => $login,
'user_email' => $this->tabInfoUser['email'],
'type' => 'kbis',
'demandeurReference' => $infosDemandeur->reference,
'demandeurEmail' => $infosDemandeur->email,
'demandeurTel' => $infosDemandeur->tel,
'demandeurNom' => $infosDemandeur->nom,
'demandeurService' => $infosDemandeur->service,
'demandeurSociete' => $infosDemandeur->societe,
'demandeurAdresse' => $infosDemandeur->adresse,
'demandeurCp' => $infosDemandeur->cp,
'demandeurVille' => $infosDemandeur->ville,
'infoCommande' => serialize($infoCommande)
);
try {
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$commande = new Application_Model_Commandes();
$commande_id = $commande->insert($dataCommandes);
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
if ($commande_id)
{
//Enregistrement des détails de commande
$dataCommandesKbis = array(
'commande_id' => $commande_id,
'siren' => $infoCommande->siren,
'raisonSociale' => '',
'fichier' => '',
'partenaireRequete' => '',
'partenaireReponse' => '',
);
try {
$commandeKbisTable = new Application_Model_CommandesPieces();
$commandeKbisTable->insert($dataCommandesKbis);
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
try {
$row = $commande->find($commande_id);
$data = $row->current();
$ref->reference = $data->id;
$ref->dateCommande = $data->date_added;
$ref->dateMaj = $data->date_updated;
$ref->dateReception = $data->date_closed;
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
$error->errnum = 0;
$error->errmsg = "Commande Introuvable";
}
}
else
{
$error->errnum = 0;
$error->errmsg = "Erreur enregistrement commande";
}
}
$output = new CmdKbisReturn();
$cmd = new CmdKbisDetail();
$cmd->infoCommande = $infoCommande;
$cmd->infosDemandeur = $infosDemandeur;
$cmd->refCommande = $ref;
$output->commande = $cmd;
$output->error = $error;
return $output;
}
/**
* Renvoi des informations sur une commande de Kbis
* @param string $reference
* @return CmdKbisReturn
*/
public function getCmdKbis( $reference ){}
/**
* Commande de privilèges et nantissements par email
* @param InfoCommandePieces $infoCommande
* @param InfosDemandeur $infosDemandeur
* @return CmdPiecesReturn
*/
public function setCmdPieces( $infoCommande, $infosDemandeur )
{
$this->authenticate();
$error = new ErrorType();
$ref = new RefCommande();
if (!empty($infoCommande->siren)){
//Vérification SIREN
// Insertion des données commande
$dataCommandes = array(
'user_login' => $this->tabInfoUser['login'],
'user_email' => $this->tabInfoUser['email'],
'type' => 'pieces',
'demandeurReference' => $infosDemandeur->reference,
'demandeurEmail' => $infosDemandeur->email,
'demandeurTel' => $infosDemandeur->tel,
'demandeurNom' => $infosDemandeur->nom,
'demandeurService' => $infosDemandeur->service,
'demandeurSociete' => $infosDemandeur->societe,
'demandeurAdresse' => $infosDemandeur->adresse,
'demandeurCp' => $infosDemandeur->cp,
'demandeurVille' => $infosDemandeur->ville,
'infoCommande' => serialize($infoCommande)
);
try {
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$commande = new Application_Model_Commandes();
$commande_id = $commande->insert($dataCommandes);
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
if ($commande_id){
//Enregistrement des détails de commande
$dataCommandesPieces = array(
'commande_id' => $commande_id,
'siren' => $infoCommande->siren,
'raisonSociale' => '',
'fichier' => '',
);
try {
$commandePieces = new Application_Model_CommandesPieces();
$commandePieces->insert($dataCommandesPieces);
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
try {
$row = $commande->find($commande_id);
$data = $row->current();
$ref->reference = $data->id;
$ref->dateCommande = $data->date_added;
$ref->dateMaj = $data->date_updated;
$ref->dateReception = $data->date_closed;
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
$error->errnum = 0;
$error->errmsg = "Commande Introuvable";
}
} else {
$error->errnum = 0;
$error->errmsg = "Erreur enregistrement commande";
}
} else {
$error->errnum = 0;
$error->errmsg = 'Erreur SIREN invalide';
}
$output = new CmdPiecesReturn();
$cmd = new CmdPiecesDetail();
$cmd->infoCommande = $infoCommande;
$cmd->infosDemandeur = $infosDemandeur;
$cmd->refCommande = $ref;
$output->error = $error;
return $output;
}
/**
* Renvoi des informations sur une commande pièces
* @param string $reference
* @return CmdPiecesReturn
*/
public function getCmdPieces( $reference )
{
list($typeCommande, $idCommande) = explode('-', $reference);
try {
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$commandeTable = new Application_Model_Commandes();
$select = $commandeTable->select()
->where('type = ?', 'pieces')
->where('id = ?', $idCommande);
$commandeRowset = $commandeTable->fetchAll($select);
}
catch (Zend_Db_Adapter_Exception $e)
{
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
$error = new ErrorType();
$ref = new RefCommande();
$infoCommande = new InfoCommandePieces();
$infosDemandeur = new InfosDemandeur();
if ( $commandeRowset->count()>0 )
{
$commande = $commandeRowset->current();
$selectEven = $commandeTable->select()
->order('date_added DESC')->limit(1);
$evenRowset = $commande->findDependentRowset(
'Application_Model_CommandesEven', null, $selectEven);
$info = '';
if($evenRowset->count()>0){
$even = $evenRowset->current();
$info = $even->commentaire;
}
$ref->reference = strtoupper($commande->type).'-'.$commande->id;
$ref->dateCommande = $commande->date_added;
$ref->dateMaj = $commande->date_updated;
$ref->dateReception = $commande->date_closed;
$ref->info = $info;
$ref->fichier = ''; // @todo : Détecter le fichier
$ref->login = $commande->user_login;
$infoCommande = unserialize($commande->infoCommande);
$infosDemandeur->reference = $commande->demandeurReference;
$infosDemandeur->email = $commande->demandeurEmail;
$infosDemandeur->tel = $commande->demandeurTel;
$infosDemandeur->nom = $commande->demandeurNom;
$infosDemandeur->service = $commande->demandeurService;
$infosDemandeur->societe = $commande->demandeurSociete;
$infosDemandeur->adresse = $commande->demandeurAdresse;
$infosDemandeur->cp = $commande->demandeurCp;
$infosDemandeur->ville = $commande->demandeurVille;
}
else
{
$error->errnum = 0;
$error->errmsg = 'Référence inconnue';
}
$output = new CmdPiecesReturn();
$cmd = new CmdPiecesDetail();
$cmd->refCommande = $ref;
$cmd->infoCommande = $infoCommande;
$cmd->infosDemandeur = $infosDemandeur;
$output->commande = $cmd;
$output->error = $error;
return $output;
}
/**
* Retourne la liste des commandes de pièces ainsi que leur détails
* @param CmdFiltrePieces $filtre
* @param int $position
* @param int $nbRep
* @return ListeCmdPiecesReturn
*/
public function getListeCmdPieces( $filtre, $position = 0, $nbRep = 20 )
{
$error = new ErrorType();
//Traitements des filtres pour générer la requête SQL
//Selection
$nbCommandes = 0;
try
{
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$commandeTable = new Application_Model_Commandes();
$select = $commandeTable->select()->where('type = ?', 'pieces');
$countRowset = $commandeTable->fetchAll($select);
$nbCommandes = $countRowset->count();
$select->order('date_added DESC')->limit($nbRep, $position);
$commandeRowset = $commandeTable->fetchAll($select);
}
catch (Zend_Db_Adapter_Exception $e)
{
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
$error->errnum = 1;
$error->errmsg = 'Erreur';
}
if ( $commandeRowset->count()>0 )
{
$liste = array();
foreach ($commandeRowset as $commande)
{
$selectEven = $commandeTable->select()
->order('date_added DESC')->limit(1);
$evenRowset = $commande->findDependentRowset(
'Application_Model_CommandesEven', null, $selectEven);
$info = '';
if($evenRowset->count()>0){
$even = $evenRowset->current();
$info = $even->commentaire;
}
$ref = new RefCommande();
$ref->reference = strtoupper($commande->type).'-'.$commande->id;
$ref->dateCommande = $commande->date_added;
$ref->dateMaj = $commande->date_updated;
$ref->dateReception = $commande->date_closed;
$ref->info = $info;
$ref->fichier = ''; // @todo : Détecter le fichier
$ref->login = $commande->user_login;
$infoCommande = new InfoCommandePieces();
$infoCommande = unserialize($commande->infoCommande);
$infosDemandeur = new InfosDemandeur();
$infosDemandeur->reference = $commande->demandeurReference;
$infosDemandeur->email = $commande->demandeurEmail;
$infosDemandeur->tel = $commande->demandeurTel;
$infosDemandeur->nom = $commande->demandeurNom;
$infosDemandeur->service = $commande->demandeurService;
$infosDemandeur->societe = $commande->demandeurSociete;
$infosDemandeur->adresse = $commande->demandeurAdresse;
$infosDemandeur->cp = $commande->demandeurCp;
$infosDemandeur->ville = $commande->demandeurVille;
$cmd = new CmdPiecesDetail();
$cmd->refCommande = $ref;
$cmd->infoCommande = $infoCommande;
$cmd->infosDemandeur = $infosDemandeur;
$liste[] = $cmd;
}
}
$output = new ListeCmdPiecesReturn();
$output->error = $error;
$output->nbCommandes = $nbCommandes;
$output->liste = $liste;
return $output;
}
/**
* Retourne la liste des statuts de commande
* @param string $type
* @return CmdStatut[]
*/
public function getListeCmdStatut( $type )
{
Zend_Registry::get('WsLogger')->info("getListeStatut - ".$type);
try {
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$dbStatut = new Application_Model_CommandesStatut();
$result = $dbStatut->fetchAll(array("commande_type = '$type'"));
}
catch (Zend_Db_Adapter_Exception $e)
{
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
$listeStatut = array();
if (count($result)>0)
{
foreach($result as $r)
{
$statut = new CmdStatut();
$statut->code = $r['code'];
$statut->lib = $r['libelle'];
$listeStatut[] = $statut;
}
}
return $listeStatut;
}
/**
* Spécifier un état défini pour une commande
* (avec déclenchement d'une action)
* @param int $reference
* @param int $statutCode
* @return bool
*/
public function setCmdStatut( $reference, $statutCode)
{
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$dbStatut = new Application_Model_CommandesStatut();
$row = $dbStatut->fetchRow(array("code = '$statutCode'"));
if ( count($row)>0 && $this->setCommandeEven($reference, $row['lib']) )
{
if (!empty($row['action'])){
switch($row['action']){
case 'CLOSE':
//date_closed
break;
}
}
return true;
} else {
return false;
}
}
/**
* Spécifier un état pour une commande
* @param int $reference
* @param string $comment
* @return bool
*/
public function setCmdEven ( $reference, $comment )
{
$this->authenticate();
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
try {
//Vérifier que la commande existe avec la référence fournie
$commandeTable = new Application_Model_Commandes();
$commandeRowset = $commandeTable->find($reference);
if ($commandeRowset->count()>0)
{
$commande = $commandeRowset->current();
//Enregistrer l'événement
$commandeEvenTable = new Application_Model_CommandesEven();
$insert = $commandeEvenTable->createRow();
$insert->commande_id = $commande->id;
$insert->commentaire = $comment;
$insert->user_login = $this->tabInfoUser['login'];
$insert->save();
//Mettre à jour la commande
$commande->date_updated = date('Y-m-d H:i:s');
$commande->save();
return true;
} else {
return false;
}
}
catch (Zend_Db_Adapter_Exception $e)
{
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
return false;
}
}
/**
* Ajout du nom de fichier liée à la commande
* @param int $reference
* @param string $filename
* @return bool
*/
public function setCmdDocument( $reference, $filename )
{
$this->authenticate();
$db = Zend_Db::factory($this->dbConfig->Commandes);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
try {
//Vérifier que la commande existe avec la référence fournie
$commandeTable = new Application_Model_Commandes();
$commandeRowset = $commandeTable->find($reference);
if ($commandeRowset->count()>0)
{
$commande = $commandeRowset->current();
switch($commande->type)
{
case 'pieces':
$infoCommandePieces = $commande->findDependentRowset('Application_Model_CommandesPieces');
if ($infoCommandePieces->count()>0)
{
//Update informations pieces
$commandePieces = $infoCommandePieces->current();
$commandePieces->fichier = $filename;
$commandePieces->save();
//Mettre à jour la commande
$commande->date_updated = date('Y-m-d H:i:s');
$commande->save();
//Mettre à jour les évenements de commande
//@todo
return true;
}
break;
case 'default':
return false;
break;
}
} else {
return false;
}
}
catch (Zend_Db_Adapter_Exception $e)
{
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
return false;
}
}
/**
* Enregistre une action utilisateur pour la facturation
* @param string $page
@ -1278,52 +735,6 @@ class Interne extends WsScore
$output->result = $result;
return $output;
}
/**
* Enregistrement de document actes ou status d'association
* @param string $siren Numéro Siren
* @param string $waldec Numéro waldec
* @param string $type Type d'acte
* @param string $libelle Libellé de l'acte
* @param string $date Date des l'acte au format
* @param int $nbPages Nombre de pages dans le fichier
* return boolean
*/
public function setActeAsso( $siren, $waldec, $type, $libelle, $date, $nbPages )
{
$this->authenticate();
if (!$this->checkEdition()) {
$this->sendError('0902');
}
($type == 'ST') ? $type_acte = 'ST' : $type_acte = '';
$data = array(
'siren' => $siren,
'waldec' => waldec,
'pdfLink' => '',
'pdfSize' => '',
'pdfVer' => '',
'pdfPage' => '',
'date_acte' => WDate::dateT('d/m/Y', 'Y-m-d', $date),
'type_acte' => $type_acte,
'type_acte_libelle' => $libelle,
'nbpages_acte' => $nbPages,
);
try {
$db = Zend_Db::factory($this->dbConfig->Webservice);
Zend_Db_Table_Abstract::setDefaultAdapter($db);
$doc = new Application_Model_AssoActes();
$doc_id = $doc->insert($data);
} catch (Zend_Exception $e) {
Zend_Registry::get('WsLogger')
->err(__FUNCTION__.' - '.$e->getMessage());
}
if ($commande_id)
{
return true;
}
return false;
}
/**
* Commande de statut association
@ -1403,14 +814,6 @@ class Interne extends WsScore
$output->result = $result;
return $output;
}
/**
* Renvoi des informations sur une commande association
* @param string $reference
* @return CmdAssoReturn
*/
public function getCmdAsso( $reference ){}
/**
* Commande d'une enquête sur une entreprise en France ou à l'Internationale
@ -3143,4 +2546,97 @@ class Interne extends WsScore
return $output;
}
/**
* Liste des contacts par établissement
* @param string $siret
* @param string $filtre
* @param int $position
* @param int $nbRep
* @return ContactEtReturn
* @throws SoapFault
*/
public function getContactEt($siret, $filtre, $position = 0, $nbRep = 200)
{
$this->authenticate();
if ( strlen($siret)!=9 || strlen($siret)!=14 ) {
$this->sendError('1010');
}
$siren = substr($siret,0,9);
if (intval($siren)==0 ) {
$this->sendError('1010');
}
$nic = substr($nic,10,5);
if (intval($nic)==0) {
$nic = '00000';
}
//Connect to the database
try {
$db = Zend_Db::factory($this->dbConfig->db->jo);
$db->getConnection();
} catch (Zend_Db_Adapter_Exception $e) {
if ($this->tabInfoUser['idClient']!=1) {
throw new SoapFault('ERR', "Application error");
} else {
throw new SoapFault('ERR', $e->getMessage());
}
} catch (Zend_Exception $e) {
throw new SoapFault('ERR', "Application error");
}
$telephonieM = new Application_Model_JoTelephonie($db);
$sql = $telephonieM->select()
->from($telephonieM, array('id', 'typeTel', 'infoTel', 'telephone', 'partenaire', 'dateInsert'))
->where('actif=1')
->where('typeTel=?','tel')
->where('siren=?',$siren)
->where('nic=?',$nic)
->order('dateInsert DESC')
->limit($nbRep, $position);
try {
$contacts = $telephonieM->fetchAll($sql);
} catch (Zend_Db_Exception $e) {
if ($this->tabInfoUser['idClient']!=1) {
throw new SoapFault('ERR', "Application error");
} else {
throw new SoapFault('ERR', $e->getMessage());
}
}
//Comptage
$sql = $telephonieM->select()
->from($telephonieM, 'COUNT(*) as nb')
->where('actif=1')
->where('typeTel=?','tel')
->where('siren=?',$siren)
->where('nic=?',$nic);
$nbContacts = $telephonieM->fetchRow($sql)->nb;
$list = array();
if ( $contacts->count() > 0) {
foreach ( $contacts as $item )
{
$contact = new ContactEt();
$contact->id = $item->id;
$contact->value = $item->telephone;
$contact->type = $item->typeTel;
$contact->description = '';
$contact->source = '';
$contact->date = '';
$list[] = $contact;
}
}
//Return
$output = new ContactEtReturn();
$output->nbReponses = $nbContacts;
$output->result = $list;
return $output;
}
}

View File

@ -58,287 +58,62 @@ class RefCommande
public $login;
}
class InfosDemandeur
{
/** @var string */
public $reference;
/** @var string */
public $email;
/** @var string */
public $tel;
/** @var string */
public $fax;
/** @var string */
public $nom;
/** @var string */
public $service;
/** @var string */
public $societe;
/** @var string */
public $adresse;
/** @var string */
public $cp;
/** @var string */
public $ville;
class InfosDemandeur
{
/** @var string */
public $reference;
/** @var string */
public $email;
/** @var string */
public $tel;
/** @var string */
public $fax;
/** @var string */
public $nom;
/** @var string */
public $service;
/** @var string */
public $societe;
/** @var string */
public $adresse;
/** @var string */
public $cp;
/** @var string */
public $ville;
}
//===> Pieces
class InfoCmdAsso
{
/** @var string */
public $siren;
/** @var string */
public $waldec;
/** @var int */
public $idEntreprise;
/** @var string */
public $raisonSociale;
}
class CmdAssoReturn
{
/** @var ErrorType */
public $error;
/** @var CmdAssoDetail */
public $commande;
}
class CmdAssoDetail
{
/** @var string */
public $siren;
/** @var string */
public $emailCommande;
/** @var string */
public $dateCommande;
/** @var string */
public $refCmde;
}
class CmdFiltrePieces
{
/** @var string */
public $raisonSociale;
/** @var string */
public $siren;
/** @var string */
public $demandeurReference;
/** @var boolean */
public $fermee = false;
}
class ListeCmdPiecesReturn
{
/** @var ErrorType */
public $error;
/** @var int */
public $nbCommandes;
/** @var CmdPiecesDetail[] */
public $liste;
}
class CmdPiecesReturn
{
/** @var ErrorType */
public $error;
/** @var CmdPiecesDetail */
public $commande;
}
class CmdPiecesDetail
{
/** @var InfoCommandePieces */
public $infoCommande;
/** @var InfosDemandeur */
public $infosDemandeur;
/** @var RefCommande */
public $refCommande;
}
class InfoCommandePieces
{
/** @var string */
public $siren;
/** @var bool */
public $privSecu;
/** @var bool */
public $privTres;
/** @var bool */
public $nantFond;
/** @var bool */
public $nantVend;
/** @var bool */
public $declCrea;
/** @var bool */
public $nantCompl;
}
//===> Bilan
class ListeCmdBilanReturn
{
/** @var ErrorType */
public $error;
/** @var int */
public $nbCommandes;
/** @var CmdBilanDetail[] */
public $liste;
}
class CmdBilanReturn
{
/** @var ErrorType */
public $error;
/** @var CmdBilanDetail */
public $commande;
}
class CmdBilanDetail
{
/** @var InfoCommandeBilan */
public $infoCommande;
/** @var InfosDemandeur */
public $infosDemandeur;
/** @var RefCommande */
public $refCommande;
}
class InfoCommandeBilan
{
/** @var string */
public $siren;
/** @var string */
public $waldec;
/** @var int */
public $idEntreprise;
/** @var string */
public $mode;
/** @var string */
public $dateCloture;
/** @var string */
public $type;
}
//===> Acte
class ListeCmdActeReturn
{
/** @var ErrorType */
public $error;
/** @var int */
public $nbCommandes;
/** @var CmdActeDetail[] */
public $liste;
}
class CmdActeReturn
{
/** @var ErrorType */
public $error;
/** @var CmdActeDetail */
public $commande;
}
class CmdActeDetail
{
/** @var InfoCommandeActe */
public $infoCommande;
/** @var InfosDemandeur */
public $infosDemandeur;
/** @var RefCommande */
public $refCommande;
}
class InfoCommandeActe
{
/** @var string */
public $siren;
/** @var int */
public $idEntreprise;
/** @var string */
public $mode;
/** @var string */
public $depotNum;
/** @var string */
public $acteNum;
}
//===> Kbis
class ListeCmdKbisReturn
{
/** @var ErrorType */
public $error;
/** @var int */
public $nbCommandes;
/** @var CmdKbisDetail[] */
public $liste;
}
class CmdKbisReturn
{
/** @var ErrorType */
public $error;
/** @var CmdKbisDetail */
public $commande;
}
class CmdKbisDetail
{
/** @var InfoCommandeKbis */
public $infoCommande;
/** @var InfosDemandeur */
public $infosDemandeur;
/** @var RefCommande */
public $refCommande;
}
class InfoCommandeKbis
{
/** @var string */
public $siren;
/**
* Méthode de transmission du kbis (mail, courrier)
* @var string
*/
public $mode;
}
//===> Asso
class ListeCmdAssoReturn
{
/** @var ErrorType */
public $error;
/** @var int */
public $nbCommandes;
/** @var CmdAssoDetail[] */
public $liste;
}
class InfoCmdAsso
{
/** @var string */
public $siren;
/** @var string */
public $waldec;
/** @var int */
public $idEntreprise;
/** @var string */
public $raisonSociale;
}
class CmdAssoReturn
{
/** @var ErrorType */
public $error;
/** @var CmdAssoDetail */
public $commande;
}
class CmdAssoDetail
{
/** @var string */
public $siren;
/** @var string */
public $emailCommande;
/** @var string */
public $dateCommande;
/** @var string */
public $refCmde;
}
class CommandeReturnType
{
/** @var ErrorType */
public $error;
/** @var RefCommande */
public $ref;
}
class ListeCommandeFiltre
{
/** @var string */
public $type;
}
class CmdStatut
{
/** @var int */
public $code;
/** @var string */
public $lib;
}
class ListeConventionsReturn
{
@ -1773,4 +1548,33 @@ class BilanSaisieInfos
*/
public $etat;
}
class ContactEtReturn
{
/** @var int */
public $nbContacts;
/** @var ContactEt[] */
public $result;
}
class ContactEt
{
/** @var string */
public $id;
/** @var string */
public $value;
/** @var string */
public $type;
/** @var string */
public $description;
/** @var string */
public $source;
/** @var string */
public $date;
}