Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 36 additions & 27 deletions generated/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,22 @@
class Client extends Runtime\Client\Client
{
/**
* 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`.
* 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`
*
* > ⚠️ **Attention : Certaines entreprises sont en diffusion partielle auprès de l'Insee**
* >
* > Ce statut est signalé par le champ `diffusable=false`.
* >
* > 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`.
*
* @param array $queryParameters {
*
* @var string $siren SIREN de l'entreprise
* @var string $siret SIRET de l'entreprise
* @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`.
* @var string $format_publications_bodacc Format attendu pour les publications BODACC. Valeur par défaut : `"objet"`.
* @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`.
* @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`.
Expand Down Expand Up @@ -95,12 +104,12 @@ class Client extends Runtime\Client\Client
* - `marques`, `brevets`, `dessins`: 1 crédit supplémentaire au total (même si plusieurs de ces trois champs sont demandés), si disponible
* - `informations_boursieres`: 5 crédits supplémentaires si disponible
* - `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`)
*
* - `finances_estimations` : 5 crédits supplémentaires si disponible
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\EntrepriseFiche|ResponseInterface|null
* @return ($fetch is 'object' ? Model\EntrepriseFiche|null : ResponseInterface)
*
* @throws Exception\EntrepriseBadRequestException
* @throws Exception\EntrepriseUnauthorizedException
Expand All @@ -123,7 +132,7 @@ public function entreprise(array $queryParameters = [], string $fetch = self::FE
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\Association|ResponseInterface|null
* @return ($fetch is 'object' ? Model\Association|null : ResponseInterface)
*
* @throws Exception\AssociationBadRequestException
* @throws Exception\AssociationUnauthorizedException
Expand Down Expand Up @@ -214,7 +223,7 @@ public function association(array $queryParameters = [], string $fetch = self::F
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\RechercheGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\RechercheGetResponse200|null : ResponseInterface)
*
* @throws Exception\RechercheUnauthorizedException
* @throws Exception\RechercheNotFoundException
Expand Down Expand Up @@ -288,7 +297,7 @@ public function recherche(array $queryParameters = [], string $fetch = self::FET
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\RechercheDirigeantsGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\RechercheDirigeantsGetResponse200|null : ResponseInterface)
*
* @throws Exception\RechercheDirigeantsUnauthorizedException
* @throws Exception\RechercheDirigeantsNotFoundException
Expand Down Expand Up @@ -362,7 +371,7 @@ public function rechercheDirigeants(array $queryParameters = [], string $fetch =
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\RechercheBeneficiairesGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\RechercheBeneficiairesGetResponse200|null : ResponseInterface)
*
* @throws Exception\RechercheBeneficiairesUnauthorizedException
* @throws Exception\RechercheBeneficiairesNotFoundException
Expand Down Expand Up @@ -436,7 +445,7 @@ public function rechercheBeneficiaires(array $queryParameters = [], string $fetc
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\RechercheDocumentsGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\RechercheDocumentsGetResponse200|null : ResponseInterface)
*
* @throws Exception\RechercheDocumentsUnauthorizedException
* @throws Exception\RechercheDocumentsNotFoundException
Expand Down Expand Up @@ -510,7 +519,7 @@ public function rechercheDocuments(array $queryParameters = [], string $fetch =
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\RecherchePublicationsGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\RecherchePublicationsGetResponse200|null : ResponseInterface)
*
* @throws Exception\RecherchePublicationsUnauthorizedException
* @throws Exception\RecherchePublicationsNotFoundException
Expand All @@ -535,7 +544,7 @@ public function recherchePublications(array $queryParameters = [], string $fetch
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\SuggestionsGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\SuggestionsGetResponse200|null : ResponseInterface)
*
* @throws Exception\SuggestionsBadRequestException
*/
Expand All @@ -555,7 +564,7 @@ public function suggestions(array $queryParameters = [], string $fetch = self::F
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\ComptesAnnuelsBadRequestException
* @throws Exception\ComptesAnnuelsUnauthorizedException
Expand Down Expand Up @@ -587,7 +596,7 @@ public function comptesAnnuels(array $queryParameters = [], string $fetch = self
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\Cartographie|ResponseInterface|null
* @return ($fetch is 'object' ? Model\Cartographie|null : ResponseInterface)
*
* @throws Exception\CartographieBadRequestException
* @throws Exception\CartographieUnauthorizedException
Expand All @@ -608,7 +617,7 @@ public function cartographie(array $queryParameters = [], string $fetch = self::
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentTelechargementBadRequestException
* @throws Exception\DocumentTelechargementUnauthorizedException
Expand All @@ -631,7 +640,7 @@ public function documentTelechargement(array $queryParameters = [], string $fetc
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentExtraitPappersBadRequestException
* @throws Exception\DocumentExtraitPappersUnauthorizedException
Expand All @@ -654,7 +663,7 @@ public function documentExtraitPappers(array $queryParameters = [], string $fetc
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentExtraitInpiBadRequestException
* @throws Exception\DocumentExtraitInpiUnauthorizedException
Expand All @@ -677,7 +686,7 @@ public function documentExtraitInpi(array $queryParameters = [], string $fetch =
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentAvisSituationInseeBadRequestException
* @throws Exception\DocumentAvisSituationInseeUnauthorizedException
Expand All @@ -700,7 +709,7 @@ public function documentAvisSituationInsee(array $queryParameters = [], string $
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentStatusBadRequestException
* @throws Exception\DocumentStatusUnauthorizedException
Expand All @@ -726,7 +735,7 @@ public function documentStatus(array $queryParameters = [], string $fetch = self
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentBeneficiairesEffectifsBadRequestException
* @throws Exception\DocumentBeneficiairesEffectifsUnauthorizedException
Expand All @@ -749,7 +758,7 @@ public function documentBeneficiairesEffectifs(array $queryParameters = [], stri
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentScoringFinancierBadRequestException
* @throws Exception\DocumentScoringFinancierUnauthorizedException
Expand All @@ -771,7 +780,7 @@ public function documentScoringFinancier(array $queryParameters = [], string $fe
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\DocumentScoringNonFinancierBadRequestException
* @throws Exception\DocumentScoringNonFinancierUnauthorizedException
Expand All @@ -797,7 +806,7 @@ public function documentScoringNonFinancier(array $queryParameters = [], string
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ConformitePersonnePhysiqueGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\ConformitePersonnePhysiqueGetResponse200|null : ResponseInterface)
*
* @throws Exception\ConformiteBadRequestException
* @throws Exception\ConformiteUnauthorizedException
Expand All @@ -811,7 +820,7 @@ public function conformite(array $queryParameters = [], string $fetch = self::FE
/**
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\SuiviJetonsGetResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\SuiviJetonsGetResponse200|null : ResponseInterface)
*
* @throws Exception\SuiviJetonsUnauthorizedException
* @throws Exception\SuiviJetonsServiceUnavailableException
Expand All @@ -832,7 +841,7 @@ public function suiviJetons(string $fetch = self::FETCH_OBJECT)
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ListePostResponse200|Model\ListePostResponse201|ResponseInterface|null
* @return ($fetch is 'object' ? Model\ListePostResponse200|Model\ListePostResponse201|null : ResponseInterface)
*
* @throws Exception\SurveillanceEntrepriseBadRequestException
* @throws Exception\SurveillanceEntrepriseUnauthorizedException
Expand All @@ -858,7 +867,7 @@ public function surveillanceEntreprise(?array $requestBody = null, array $queryP
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ListeDeleteResponse200|ResponseInterface|null
* @return ($fetch is 'object' ? Model\ListeDeleteResponse200|null : ResponseInterface)
*
* @throws Exception\SurveillanceNotificationsDeleteBadRequestException
* @throws Exception\SurveillanceNotificationsDeleteUnauthorizedException
Expand All @@ -881,7 +890,7 @@ public function surveillanceNotificationsDelete(array $queryParameters = [], str
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ListePostResponse200|Model\ListePostResponse201|ResponseInterface|null
* @return ($fetch is 'object' ? Model\ListePostResponse200|Model\ListePostResponse201|null : ResponseInterface)
*
* @throws Exception\SurveillanceDirigeantBadRequestException
* @throws Exception\SurveillanceDirigeantUnauthorizedException
Expand All @@ -904,7 +913,7 @@ public function surveillanceDirigeant(?array $requestBody = null, array $queryPa
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return ResponseInterface|null
* @return ($fetch is 'object' ? null : ResponseInterface)
*
* @throws Exception\SurveillanceListeInformationsBadRequestException
* @throws Exception\SurveillanceListeInformationsUnauthorizedException
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/Association.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos(strtolower($contentType), 'application/json'))) {
return $serializer->deserialize($body, 'Qdequippe\Pappers\Api\Model\Association', 'json');
}
if (400 === $status) {
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/Cartographie.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos(strtolower($contentType), 'application/json'))) {
return $serializer->deserialize($body, 'Qdequippe\Pappers\Api\Model\Cartographie', 'json');
}
if (400 === $status) {
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/ComptesAnnuels.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos(strtolower($contentType), 'application/json'))) {
return json_decode($body);
}
if (400 === $status) {
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/Conformite.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
if ((null === $contentType) === false && (200 === $status && false !== mb_strpos(strtolower($contentType), 'application/json'))) {
return $serializer->deserialize($body, 'Qdequippe\Pappers\Api\Model\ConformitePersonnePhysiqueGetResponse200', 'json');
}
if (400 === $status) {
Expand Down
Loading