4343class Client extends Runtime \Client \Client
4444{
4545 /**
46- * Vous devez fournir soit le SIREN, soit le SIRET. Si vous indiquez le SIREN, tous les établissements associés à ce SIREN seront renvoyés dans la clé `etablissements`. Si vous indiquez le SIRET, seul l'établissement associé sera renvoyé dans la clé `etablissement`.
46+ * Vous devez fournir soit le SIREN, soit le SIRET.
47+ *
48+ * Si vous indiquez le SIREN, tous les établissements associés à ce SIREN seront renvoyés dans la clé `etablissements`.
49+ *
50+ * Si vous indiquez le SIRET, seul l'établissement associé sera renvoyé dans la clé `etablissement`
51+ *
52+ * > ⚠️ **Attention : Certaines entreprises sont en diffusion partielle auprès de l'Insee**
53+ * >
54+ * > Ce statut est signalé par le champ `diffusable=false`.
55+ * >
56+ * > Les champs suivants peuvent alors devenir nullable : `nom_entreprise` ; `denomination` ; `nom` ; `prenom` ; `sexe` ; `nom_usage` ; `nom_patronymique` ; `code_postal` ; `numero_voie` ; `indice_repetition` ; `type_voie` ; `libelle_voie` ; `complement_adresse` ; `adresse_ligne_1` ; `adresse_ligne_2`.
4757 *
4858 * @param array $queryParameters {
4959 *
5060 * @var string $siren SIREN de l'entreprise
5161 * @var string $siret SIRET de l'entreprise
52- * @var bool $integrer_diffusions_partielles Si vrai et si l'entreprise est en diffusion partielle, le retour renverra les informations partielles disponibles. Valeur par défaut : `false`.
5362 * @var string $format_publications_bodacc Format attendu pour les publications BODACC. Valeur par défaut : `"objet"`.
5463 * @var bool $validite_tva_intracommunautaire Si vrai, le champ validite_tva_intracommunautaire du retour indiquera si le numéro de tva est valide auprès de la Commission européenne. Valeur par défaut : `false`.
5564 * @var bool $publications_bodacc_brutes Pappers traite les publications BODACC afin de supprimer les publications périmée. Si vrai, le retour inclura les publications bodacc sans traitement. Valeur par défaut : `false`.
@@ -95,12 +104,12 @@ class Client extends Runtime\Client\Client
95104 * - `marques`, `brevets`, `dessins`: 1 crédit supplémentaire au total (même si plusieurs de ces trois champs sont demandés), si disponible
96105 * - `informations_boursieres`: 5 crédits supplémentaires si disponible
97106 * - `informations_boursieres:documents`: 10 crédits supplémentaires si disponible (donc un total de 15 crédits supplémentaires car ce champ inclut également le champ `informations_boursieres`)
98- *
107+ * - `finances_estimations` : 5 crédits supplémentaires si disponible
99108 * }
100109 *
101110 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
102111 *
103- * @return Model\EntrepriseFiche|ResponseInterface| null
112+ * @return ($fetch is 'object' ? Model\EntrepriseFiche|null : ResponseInterface)
104113 *
105114 * @throws Exception\EntrepriseBadRequestException
106115 * @throws Exception\EntrepriseUnauthorizedException
@@ -123,7 +132,7 @@ public function entreprise(array $queryParameters = [], string $fetch = self::FE
123132 *
124133 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
125134 *
126- * @return Model\Association|ResponseInterface| null
135+ * @return ($fetch is 'object' ? Model\Association|null : ResponseInterface)
127136 *
128137 * @throws Exception\AssociationBadRequestException
129138 * @throws Exception\AssociationUnauthorizedException
@@ -214,7 +223,7 @@ public function association(array $queryParameters = [], string $fetch = self::F
214223 *
215224 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
216225 *
217- * @return Model\RechercheGetResponse200|ResponseInterface| null
226+ * @return ($fetch is 'object' ? Model\RechercheGetResponse200|null : ResponseInterface)
218227 *
219228 * @throws Exception\RechercheUnauthorizedException
220229 * @throws Exception\RechercheNotFoundException
@@ -288,7 +297,7 @@ public function recherche(array $queryParameters = [], string $fetch = self::FET
288297 *
289298 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
290299 *
291- * @return Model\RechercheDirigeantsGetResponse200|ResponseInterface| null
300+ * @return ($fetch is 'object' ? Model\RechercheDirigeantsGetResponse200|null : ResponseInterface)
292301 *
293302 * @throws Exception\RechercheDirigeantsUnauthorizedException
294303 * @throws Exception\RechercheDirigeantsNotFoundException
@@ -362,7 +371,7 @@ public function rechercheDirigeants(array $queryParameters = [], string $fetch =
362371 *
363372 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
364373 *
365- * @return Model\RechercheBeneficiairesGetResponse200|ResponseInterface| null
374+ * @return ($fetch is 'object' ? Model\RechercheBeneficiairesGetResponse200|null : ResponseInterface)
366375 *
367376 * @throws Exception\RechercheBeneficiairesUnauthorizedException
368377 * @throws Exception\RechercheBeneficiairesNotFoundException
@@ -436,7 +445,7 @@ public function rechercheBeneficiaires(array $queryParameters = [], string $fetc
436445 *
437446 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
438447 *
439- * @return Model\RechercheDocumentsGetResponse200|ResponseInterface| null
448+ * @return ($fetch is 'object' ? Model\RechercheDocumentsGetResponse200|null : ResponseInterface)
440449 *
441450 * @throws Exception\RechercheDocumentsUnauthorizedException
442451 * @throws Exception\RechercheDocumentsNotFoundException
@@ -510,7 +519,7 @@ public function rechercheDocuments(array $queryParameters = [], string $fetch =
510519 *
511520 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
512521 *
513- * @return Model\RecherchePublicationsGetResponse200|ResponseInterface| null
522+ * @return ($fetch is 'object' ? Model\RecherchePublicationsGetResponse200|null : ResponseInterface)
514523 *
515524 * @throws Exception\RecherchePublicationsUnauthorizedException
516525 * @throws Exception\RecherchePublicationsNotFoundException
@@ -535,7 +544,7 @@ public function recherchePublications(array $queryParameters = [], string $fetch
535544 *
536545 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
537546 *
538- * @return Model\SuggestionsGetResponse200|ResponseInterface| null
547+ * @return ($fetch is 'object' ? Model\SuggestionsGetResponse200|null : ResponseInterface)
539548 *
540549 * @throws Exception\SuggestionsBadRequestException
541550 */
@@ -555,7 +564,7 @@ public function suggestions(array $queryParameters = [], string $fetch = self::F
555564 *
556565 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
557566 *
558- * @return ResponseInterface| null
567+ * @return ($fetch is 'object' ? null : ResponseInterface)
559568 *
560569 * @throws Exception\ComptesAnnuelsBadRequestException
561570 * @throws Exception\ComptesAnnuelsUnauthorizedException
@@ -587,7 +596,7 @@ public function comptesAnnuels(array $queryParameters = [], string $fetch = self
587596 *
588597 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
589598 *
590- * @return Model\Cartographie|ResponseInterface| null
599+ * @return ($fetch is 'object' ? Model\Cartographie|null : ResponseInterface)
591600 *
592601 * @throws Exception\CartographieBadRequestException
593602 * @throws Exception\CartographieUnauthorizedException
@@ -608,7 +617,7 @@ public function cartographie(array $queryParameters = [], string $fetch = self::
608617 *
609618 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
610619 *
611- * @return ResponseInterface| null
620+ * @return ($fetch is 'object' ? null : ResponseInterface)
612621 *
613622 * @throws Exception\DocumentTelechargementBadRequestException
614623 * @throws Exception\DocumentTelechargementUnauthorizedException
@@ -631,7 +640,7 @@ public function documentTelechargement(array $queryParameters = [], string $fetc
631640 *
632641 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
633642 *
634- * @return ResponseInterface| null
643+ * @return ($fetch is 'object' ? null : ResponseInterface)
635644 *
636645 * @throws Exception\DocumentExtraitPappersBadRequestException
637646 * @throws Exception\DocumentExtraitPappersUnauthorizedException
@@ -654,7 +663,7 @@ public function documentExtraitPappers(array $queryParameters = [], string $fetc
654663 *
655664 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
656665 *
657- * @return ResponseInterface| null
666+ * @return ($fetch is 'object' ? null : ResponseInterface)
658667 *
659668 * @throws Exception\DocumentExtraitInpiBadRequestException
660669 * @throws Exception\DocumentExtraitInpiUnauthorizedException
@@ -677,7 +686,7 @@ public function documentExtraitInpi(array $queryParameters = [], string $fetch =
677686 *
678687 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
679688 *
680- * @return ResponseInterface| null
689+ * @return ($fetch is 'object' ? null : ResponseInterface)
681690 *
682691 * @throws Exception\DocumentAvisSituationInseeBadRequestException
683692 * @throws Exception\DocumentAvisSituationInseeUnauthorizedException
@@ -700,7 +709,7 @@ public function documentAvisSituationInsee(array $queryParameters = [], string $
700709 *
701710 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
702711 *
703- * @return ResponseInterface| null
712+ * @return ($fetch is 'object' ? null : ResponseInterface)
704713 *
705714 * @throws Exception\DocumentStatusBadRequestException
706715 * @throws Exception\DocumentStatusUnauthorizedException
@@ -726,7 +735,7 @@ public function documentStatus(array $queryParameters = [], string $fetch = self
726735 *
727736 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
728737 *
729- * @return ResponseInterface| null
738+ * @return ($fetch is 'object' ? null : ResponseInterface)
730739 *
731740 * @throws Exception\DocumentBeneficiairesEffectifsBadRequestException
732741 * @throws Exception\DocumentBeneficiairesEffectifsUnauthorizedException
@@ -749,7 +758,7 @@ public function documentBeneficiairesEffectifs(array $queryParameters = [], stri
749758 *
750759 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
751760 *
752- * @return ResponseInterface| null
761+ * @return ($fetch is 'object' ? null : ResponseInterface)
753762 *
754763 * @throws Exception\DocumentScoringFinancierBadRequestException
755764 * @throws Exception\DocumentScoringFinancierUnauthorizedException
@@ -771,7 +780,7 @@ public function documentScoringFinancier(array $queryParameters = [], string $fe
771780 *
772781 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
773782 *
774- * @return ResponseInterface| null
783+ * @return ($fetch is 'object' ? null : ResponseInterface)
775784 *
776785 * @throws Exception\DocumentScoringNonFinancierBadRequestException
777786 * @throws Exception\DocumentScoringNonFinancierUnauthorizedException
@@ -797,7 +806,7 @@ public function documentScoringNonFinancier(array $queryParameters = [], string
797806 *
798807 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
799808 *
800- * @return Model\ConformitePersonnePhysiqueGetResponse200|ResponseInterface| null
809+ * @return ($fetch is 'object' ? Model\ConformitePersonnePhysiqueGetResponse200|null : ResponseInterface)
801810 *
802811 * @throws Exception\ConformiteBadRequestException
803812 * @throws Exception\ConformiteUnauthorizedException
@@ -811,7 +820,7 @@ public function conformite(array $queryParameters = [], string $fetch = self::FE
811820 /**
812821 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
813822 *
814- * @return Model\SuiviJetonsGetResponse200|ResponseInterface| null
823+ * @return ($fetch is 'object' ? Model\SuiviJetonsGetResponse200|null : ResponseInterface)
815824 *
816825 * @throws Exception\SuiviJetonsUnauthorizedException
817826 * @throws Exception\SuiviJetonsServiceUnavailableException
@@ -832,7 +841,7 @@ public function suiviJetons(string $fetch = self::FETCH_OBJECT)
832841 *
833842 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
834843 *
835- * @return Model\ListePostResponse200|Model\ListePostResponse201|ResponseInterface| null
844+ * @return ($fetch is 'object' ? Model\ListePostResponse200|Model\ListePostResponse201|null : ResponseInterface)
836845 *
837846 * @throws Exception\SurveillanceEntrepriseBadRequestException
838847 * @throws Exception\SurveillanceEntrepriseUnauthorizedException
@@ -858,7 +867,7 @@ public function surveillanceEntreprise(?array $requestBody = null, array $queryP
858867 *
859868 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
860869 *
861- * @return Model\ListeDeleteResponse200|ResponseInterface| null
870+ * @return ($fetch is 'object' ? Model\ListeDeleteResponse200|null : ResponseInterface)
862871 *
863872 * @throws Exception\SurveillanceNotificationsDeleteBadRequestException
864873 * @throws Exception\SurveillanceNotificationsDeleteUnauthorizedException
@@ -881,7 +890,7 @@ public function surveillanceNotificationsDelete(array $queryParameters = [], str
881890 *
882891 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
883892 *
884- * @return Model\ListePostResponse200|Model\ListePostResponse201|ResponseInterface| null
893+ * @return ($fetch is 'object' ? Model\ListePostResponse200|Model\ListePostResponse201|null : ResponseInterface)
885894 *
886895 * @throws Exception\SurveillanceDirigeantBadRequestException
887896 * @throws Exception\SurveillanceDirigeantUnauthorizedException
@@ -904,7 +913,7 @@ public function surveillanceDirigeant(?array $requestBody = null, array $queryPa
904913 *
905914 * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
906915 *
907- * @return ResponseInterface| null
916+ * @return ($fetch is 'object' ? null : ResponseInterface)
908917 *
909918 * @throws Exception\SurveillanceListeInformationsBadRequestException
910919 * @throws Exception\SurveillanceListeInformationsUnauthorizedException
0 commit comments