Skip to content

Commit 3d545ff

Browse files
[create-pull-request] automated change (#51)
1 parent 6ac891a commit 3d545ff

6 files changed

Lines changed: 150 additions & 22 deletions

File tree

generated/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class Client extends Runtime\Client\Client
7575
* - `nomenclature_code_naf` : gratuit
7676
* - `labels` : gratuit
7777
* - `labels:orias` : 0.5 jeton supplémentaire
78+
* - `labels:cci` : 0.5 jeton supplémentaire
7879
* - `micro_entreprise` : gratuit
7980
* - `sanctions` : 1 jeton supplémentaire
8081
* - `personne_politiquement_exposee` : 1 jeton supplémentaire

generated/Endpoint/Entreprise.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class Entreprise extends BaseEndpoint implements Endpoint
4949
* - `nomenclature_code_naf` : gratuit
5050
* - `labels` : gratuit
5151
* - `labels:orias` : 0.5 jeton supplémentaire
52+
* - `labels:cci` : 0.5 jeton supplémentaire
5253
* - `micro_entreprise` : gratuit
5354
* - `sanctions` : 1 jeton supplémentaire
5455
* - `personne_politiquement_exposee` : 1 jeton supplémentaire

generated/Model/Labels.php

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function isInitialized($property): bool
3838
*/
3939
protected $notes;
4040
/**
41-
* Label ORIAS seulement : Numéro d'immatriculation ORIAS. Uniquement présent si demandé avec le champ supplémentaire `label:orias`.
41+
* Label ORIAS et CCI seulement : Numéro d'immatriculation ORIAS ou CCI. Uniquement présent si demandé avec le champ supplémentaire `label:orias` ou `label:cci`.
4242
*
4343
* @var string|null
4444
*/
@@ -49,6 +49,12 @@ public function isInitialized($property): bool
4949
* @var list<LabelsBaseInscriptionsItem>|null
5050
*/
5151
protected $inscriptions;
52+
/**
53+
* Label CCI seulement : Liste des mentions.
54+
*
55+
* @var list<string>|null
56+
*/
57+
protected $mentions;
5258
/**
5359
* Nombre d'établissements concernés par le label, dans le cas d'un label lié aux établissements. Null sinon.
5460
*
@@ -145,15 +151,15 @@ public function setNotes(?array $notes): self
145151
}
146152

147153
/**
148-
* Label ORIAS seulement : Numéro d'immatriculation ORIAS. Uniquement présent si demandé avec le champ supplémentaire `label:orias`.
154+
* Label ORIAS et CCI seulement : Numéro d'immatriculation ORIAS ou CCI. Uniquement présent si demandé avec le champ supplémentaire `label:orias` ou `label:cci`.
149155
*/
150156
public function getNumeroImmatriculation(): ?string
151157
{
152158
return $this->numeroImmatriculation;
153159
}
154160

155161
/**
156-
* Label ORIAS seulement : Numéro d'immatriculation ORIAS. Uniquement présent si demandé avec le champ supplémentaire `label:orias`.
162+
* Label ORIAS et CCI seulement : Numéro d'immatriculation ORIAS ou CCI. Uniquement présent si demandé avec le champ supplémentaire `label:orias` ou `label:cci`.
157163
*/
158164
public function setNumeroImmatriculation(?string $numeroImmatriculation): self
159165
{
@@ -186,6 +192,29 @@ public function setInscriptions(?array $inscriptions): self
186192
return $this;
187193
}
188194

195+
/**
196+
* Label CCI seulement : Liste des mentions.
197+
*
198+
* @return list<string>|null
199+
*/
200+
public function getMentions(): ?array
201+
{
202+
return $this->mentions;
203+
}
204+
205+
/**
206+
* Label CCI seulement : Liste des mentions.
207+
*
208+
* @param list<string>|null $mentions
209+
*/
210+
public function setMentions(?array $mentions): self
211+
{
212+
$this->initialized['mentions'] = true;
213+
$this->mentions = $mentions;
214+
215+
return $this;
216+
}
217+
189218
/**
190219
* Nombre d'établissements concernés par le label, dans le cas d'un label lié aux établissements. Null sinon.
191220
*/

generated/Model/LabelsBase.php

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function isInitialized($property): bool
3838
*/
3939
protected $notes;
4040
/**
41-
* Label ORIAS seulement : Numéro d'immatriculation ORIAS. Uniquement présent si demandé avec le champ supplémentaire `label:orias`.
41+
* Label ORIAS et CCI seulement : Numéro d'immatriculation ORIAS ou CCI. Uniquement présent si demandé avec le champ supplémentaire `label:orias` ou `label:cci`.
4242
*
4343
* @var string|null
4444
*/
@@ -49,6 +49,12 @@ public function isInitialized($property): bool
4949
* @var list<LabelsBaseInscriptionsItem>|null
5050
*/
5151
protected $inscriptions;
52+
/**
53+
* Label CCI seulement : Liste des mentions.
54+
*
55+
* @var list<string>|null
56+
*/
57+
protected $mentions;
5258

5359
/**
5460
* Nom du label.
@@ -139,15 +145,15 @@ public function setNotes(?array $notes): self
139145
}
140146

141147
/**
142-
* Label ORIAS seulement : Numéro d'immatriculation ORIAS. Uniquement présent si demandé avec le champ supplémentaire `label:orias`.
148+
* Label ORIAS et CCI seulement : Numéro d'immatriculation ORIAS ou CCI. Uniquement présent si demandé avec le champ supplémentaire `label:orias` ou `label:cci`.
143149
*/
144150
public function getNumeroImmatriculation(): ?string
145151
{
146152
return $this->numeroImmatriculation;
147153
}
148154

149155
/**
150-
* Label ORIAS seulement : Numéro d'immatriculation ORIAS. Uniquement présent si demandé avec le champ supplémentaire `label:orias`.
156+
* Label ORIAS et CCI seulement : Numéro d'immatriculation ORIAS ou CCI. Uniquement présent si demandé avec le champ supplémentaire `label:orias` ou `label:cci`.
151157
*/
152158
public function setNumeroImmatriculation(?string $numeroImmatriculation): self
153159
{
@@ -179,4 +185,27 @@ public function setInscriptions(?array $inscriptions): self
179185

180186
return $this;
181187
}
188+
189+
/**
190+
* Label CCI seulement : Liste des mentions.
191+
*
192+
* @return list<string>|null
193+
*/
194+
public function getMentions(): ?array
195+
{
196+
return $this->mentions;
197+
}
198+
199+
/**
200+
* Label CCI seulement : Liste des mentions.
201+
*
202+
* @param list<string>|null $mentions
203+
*/
204+
public function setMentions(?array $mentions): self
205+
{
206+
$this->initialized['mentions'] = true;
207+
$this->mentions = $mentions;
208+
209+
return $this;
210+
}
182211
}

generated/Normalizer/LabelsBaseNormalizer.php

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,19 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
9797
} elseif (\array_key_exists('inscriptions', $data) && null === $data['inscriptions']) {
9898
$object->setInscriptions(null);
9999
}
100-
foreach ($data as $key => $value_4) {
100+
if (\array_key_exists('mentions', $data) && null !== $data['mentions']) {
101+
$values_4 = [];
102+
foreach ($data['mentions'] as $value_4) {
103+
$values_4[] = $value_4;
104+
}
105+
$object->setMentions($values_4);
106+
unset($data['mentions']);
107+
} elseif (\array_key_exists('mentions', $data) && null === $data['mentions']) {
108+
$object->setMentions(null);
109+
}
110+
foreach ($data as $key => $value_5) {
101111
if (preg_match('/.*/', (string) $key)) {
102-
$object[$key] = $value_4;
112+
$object[$key] = $value_5;
103113
}
104114
}
105115

@@ -143,9 +153,16 @@ public function normalize(mixed $object, ?string $format = null, array $context
143153
}
144154
$data['inscriptions'] = $values_3;
145155
}
146-
foreach ($object as $key => $value_4) {
156+
if ($object->isInitialized('mentions') && null !== $object->getMentions()) {
157+
$values_4 = [];
158+
foreach ($object->getMentions() as $value_4) {
159+
$values_4[] = $value_4;
160+
}
161+
$data['mentions'] = $values_4;
162+
}
163+
foreach ($object as $key => $value_5) {
147164
if (preg_match('/.*/', (string) $key)) {
148-
$data[$key] = $value_4;
165+
$data[$key] = $value_5;
149166
}
150167
}
151168

@@ -242,9 +259,19 @@ public function denormalize($data, $type, $format = null, array $context = [])
242259
} elseif (\array_key_exists('inscriptions', $data) && null === $data['inscriptions']) {
243260
$object->setInscriptions(null);
244261
}
245-
foreach ($data as $key => $value_4) {
262+
if (\array_key_exists('mentions', $data) && null !== $data['mentions']) {
263+
$values_4 = [];
264+
foreach ($data['mentions'] as $value_4) {
265+
$values_4[] = $value_4;
266+
}
267+
$object->setMentions($values_4);
268+
unset($data['mentions']);
269+
} elseif (\array_key_exists('mentions', $data) && null === $data['mentions']) {
270+
$object->setMentions(null);
271+
}
272+
foreach ($data as $key => $value_5) {
246273
if (preg_match('/.*/', (string) $key)) {
247-
$object[$key] = $value_4;
274+
$object[$key] = $value_5;
248275
}
249276
}
250277

@@ -293,9 +320,16 @@ public function normalize($object, $format = null, array $context = [])
293320
}
294321
$data['inscriptions'] = $values_3;
295322
}
296-
foreach ($object as $key => $value_4) {
323+
if ($object->isInitialized('mentions') && null !== $object->getMentions()) {
324+
$values_4 = [];
325+
foreach ($object->getMentions() as $value_4) {
326+
$values_4[] = $value_4;
327+
}
328+
$data['mentions'] = $values_4;
329+
}
330+
foreach ($object as $key => $value_5) {
297331
if (preg_match('/.*/', (string) $key)) {
298-
$data[$key] = $value_4;
332+
$data[$key] = $value_5;
299333
}
300334
}
301335

generated/Normalizer/LabelsNormalizer.php

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,25 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
9797
} elseif (\array_key_exists('inscriptions', $data) && null === $data['inscriptions']) {
9898
$object->setInscriptions(null);
9999
}
100+
if (\array_key_exists('mentions', $data) && null !== $data['mentions']) {
101+
$values_4 = [];
102+
foreach ($data['mentions'] as $value_4) {
103+
$values_4[] = $value_4;
104+
}
105+
$object->setMentions($values_4);
106+
unset($data['mentions']);
107+
} elseif (\array_key_exists('mentions', $data) && null === $data['mentions']) {
108+
$object->setMentions(null);
109+
}
100110
if (\array_key_exists('nb_etablissements_concernes', $data) && null !== $data['nb_etablissements_concernes']) {
101111
$object->setNbEtablissementsConcernes($data['nb_etablissements_concernes']);
102112
unset($data['nb_etablissements_concernes']);
103113
} elseif (\array_key_exists('nb_etablissements_concernes', $data) && null === $data['nb_etablissements_concernes']) {
104114
$object->setNbEtablissementsConcernes(null);
105115
}
106-
foreach ($data as $key => $value_4) {
116+
foreach ($data as $key => $value_5) {
107117
if (preg_match('/.*/', (string) $key)) {
108-
$object[$key] = $value_4;
118+
$object[$key] = $value_5;
109119
}
110120
}
111121

@@ -149,12 +159,19 @@ public function normalize(mixed $object, ?string $format = null, array $context
149159
}
150160
$data['inscriptions'] = $values_3;
151161
}
162+
if ($object->isInitialized('mentions') && null !== $object->getMentions()) {
163+
$values_4 = [];
164+
foreach ($object->getMentions() as $value_4) {
165+
$values_4[] = $value_4;
166+
}
167+
$data['mentions'] = $values_4;
168+
}
152169
if ($object->isInitialized('nbEtablissementsConcernes') && null !== $object->getNbEtablissementsConcernes()) {
153170
$data['nb_etablissements_concernes'] = $object->getNbEtablissementsConcernes();
154171
}
155-
foreach ($object as $key => $value_4) {
172+
foreach ($object as $key => $value_5) {
156173
if (preg_match('/.*/', (string) $key)) {
157-
$data[$key] = $value_4;
174+
$data[$key] = $value_5;
158175
}
159176
}
160177

@@ -251,15 +268,25 @@ public function denormalize($data, $type, $format = null, array $context = [])
251268
} elseif (\array_key_exists('inscriptions', $data) && null === $data['inscriptions']) {
252269
$object->setInscriptions(null);
253270
}
271+
if (\array_key_exists('mentions', $data) && null !== $data['mentions']) {
272+
$values_4 = [];
273+
foreach ($data['mentions'] as $value_4) {
274+
$values_4[] = $value_4;
275+
}
276+
$object->setMentions($values_4);
277+
unset($data['mentions']);
278+
} elseif (\array_key_exists('mentions', $data) && null === $data['mentions']) {
279+
$object->setMentions(null);
280+
}
254281
if (\array_key_exists('nb_etablissements_concernes', $data) && null !== $data['nb_etablissements_concernes']) {
255282
$object->setNbEtablissementsConcernes($data['nb_etablissements_concernes']);
256283
unset($data['nb_etablissements_concernes']);
257284
} elseif (\array_key_exists('nb_etablissements_concernes', $data) && null === $data['nb_etablissements_concernes']) {
258285
$object->setNbEtablissementsConcernes(null);
259286
}
260-
foreach ($data as $key => $value_4) {
287+
foreach ($data as $key => $value_5) {
261288
if (preg_match('/.*/', (string) $key)) {
262-
$object[$key] = $value_4;
289+
$object[$key] = $value_5;
263290
}
264291
}
265292

@@ -308,12 +335,19 @@ public function normalize($object, $format = null, array $context = [])
308335
}
309336
$data['inscriptions'] = $values_3;
310337
}
338+
if ($object->isInitialized('mentions') && null !== $object->getMentions()) {
339+
$values_4 = [];
340+
foreach ($object->getMentions() as $value_4) {
341+
$values_4[] = $value_4;
342+
}
343+
$data['mentions'] = $values_4;
344+
}
311345
if ($object->isInitialized('nbEtablissementsConcernes') && null !== $object->getNbEtablissementsConcernes()) {
312346
$data['nb_etablissements_concernes'] = $object->getNbEtablissementsConcernes();
313347
}
314-
foreach ($object as $key => $value_4) {
348+
foreach ($object as $key => $value_5) {
315349
if (preg_match('/.*/', (string) $key)) {
316-
$data[$key] = $value_4;
350+
$data[$key] = $value_5;
317351
}
318352
}
319353

0 commit comments

Comments
 (0)