diff --git a/generated/Model/CreateVideoIdentityVerification.php b/generated/Model/CreateVideoIdentityVerification.php index cff07a0..d5834aa 100644 --- a/generated/Model/CreateVideoIdentityVerification.php +++ b/generated/Model/CreateVideoIdentityVerification.php @@ -31,6 +31,12 @@ public function isInitialized($property): bool * @var string|null */ protected $redirectionUrl; + /** + * Enable face recognition step in the Identity verification flow. + * + * @var bool|null + */ + protected $faceRecognition = false; /** * The first name provided must match exactly as it appears on the ID document, as a consistency check will be performed. If multiple given names are listed on the document, you must provide only one of them. @@ -88,4 +94,23 @@ public function setRedirectionUrl(?string $redirectionUrl): self return $this; } + + /** + * Enable face recognition step in the Identity verification flow. + */ + public function getFaceRecognition(): ?bool + { + return $this->faceRecognition; + } + + /** + * Enable face recognition step in the Identity verification flow. + */ + public function setFaceRecognition(?bool $faceRecognition): self + { + $this->initialized['faceRecognition'] = true; + $this->faceRecognition = $faceRecognition; + + return $this; + } } diff --git a/generated/Model/EmailNotification.php b/generated/Model/EmailNotification.php new file mode 100644 index 0000000..7532830 --- /dev/null +++ b/generated/Model/EmailNotification.php @@ -0,0 +1,45 @@ +initialized); + } + /** + * List of disabled email notifications. + * + * @var list|null + */ + protected $disabled; + + /** + * List of disabled email notifications. + * + * @return list|null + */ + public function getDisabled(): ?array + { + return $this->disabled; + } + + /** + * List of disabled email notifications. + * + * @param list|null $disabled + */ + public function setDisabled(?array $disabled): self + { + $this->initialized['disabled'] = true; + $this->disabled = $disabled; + + return $this; + } +} diff --git a/generated/Model/EmailNotification1.php b/generated/Model/EmailNotification1.php new file mode 100644 index 0000000..a475070 --- /dev/null +++ b/generated/Model/EmailNotification1.php @@ -0,0 +1,39 @@ +initialized); + } + /** + * @var list|null + */ + protected $disabled; + + /** + * @return list|null + */ + public function getDisabled(): ?array + { + return $this->disabled; + } + + /** + * @param list|null $disabled + */ + public function setDisabled(?array $disabled): self + { + $this->initialized['disabled'] = true; + $this->disabled = $disabled; + + return $this; + } +} diff --git a/generated/Model/FromExistingContact1.php b/generated/Model/FromExistingContact1.php index 0b22707..c378b2f 100644 --- a/generated/Model/FromExistingContact1.php +++ b/generated/Model/FromExistingContact1.php @@ -59,6 +59,10 @@ public function isInitialized($property): bool * @var SmsNotification1|null */ protected $smsNotification; + /** + * @var EmailNotification1|null + */ + protected $emailNotification; /** * Create signer from an existing contact. @@ -213,4 +217,17 @@ public function setSmsNotification(?SmsNotification1 $smsNotification): self return $this; } + + public function getEmailNotification(): ?EmailNotification1 + { + return $this->emailNotification; + } + + public function setEmailNotification(?EmailNotification1 $emailNotification): self + { + $this->initialized['emailNotification'] = true; + $this->emailNotification = $emailNotification; + + return $this; + } } diff --git a/generated/Model/FromExistingUser1.php b/generated/Model/FromExistingUser1.php index afb6dba..a792550 100644 --- a/generated/Model/FromExistingUser1.php +++ b/generated/Model/FromExistingUser1.php @@ -59,6 +59,10 @@ public function isInitialized($property): bool * @var SmsNotification1|null */ protected $smsNotification; + /** + * @var EmailNotification1|null + */ + protected $emailNotification; /** * Create signer from an existing user. @@ -213,4 +217,17 @@ public function setSmsNotification(?SmsNotification1 $smsNotification): self return $this; } + + public function getEmailNotification(): ?EmailNotification1 + { + return $this->emailNotification; + } + + public function setEmailNotification(?EmailNotification1 $emailNotification): self + { + $this->initialized['emailNotification'] = true; + $this->emailNotification = $emailNotification; + + return $this; + } } diff --git a/generated/Model/FromScratch1.php b/generated/Model/FromScratch1.php index 6aee3d4..ceb186a 100644 --- a/generated/Model/FromScratch1.php +++ b/generated/Model/FromScratch1.php @@ -57,6 +57,10 @@ public function isInitialized($property): bool * @var SmsNotification1|null */ protected $smsNotification; + /** + * @var EmailNotification1|null + */ + protected $emailNotification; public function getInfo(): ?FromScratch1Info { @@ -205,4 +209,17 @@ public function setSmsNotification(?SmsNotification1 $smsNotification): self return $this; } + + public function getEmailNotification(): ?EmailNotification1 + { + return $this->emailNotification; + } + + public function setEmailNotification(?EmailNotification1 $emailNotification): self + { + $this->initialized['emailNotification'] = true; + $this->emailNotification = $emailNotification; + + return $this; + } } diff --git a/generated/Model/SignatureRequestEmailNotification.php b/generated/Model/SignatureRequestEmailNotification.php index b526bd5..67207ff 100644 --- a/generated/Model/SignatureRequestEmailNotification.php +++ b/generated/Model/SignatureRequestEmailNotification.php @@ -17,6 +17,10 @@ public function isInitialized($property): bool * @var SignatureRequestEmailNotificationSender|null */ protected $sender; + /** + * @var string|null + */ + protected $customNote; public function getSender(): ?SignatureRequestEmailNotificationSender { @@ -30,4 +34,17 @@ public function setSender(?SignatureRequestEmailNotificationSender $sender): sel return $this; } + + public function getCustomNote(): ?string + { + return $this->customNote; + } + + public function setCustomNote(?string $customNote): self + { + $this->initialized['customNote'] = true; + $this->customNote = $customNote; + + return $this; + } } diff --git a/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromContactIdInput.php b/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromContactIdInput.php index 4755636..fd98206 100644 --- a/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromContactIdInput.php +++ b/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromContactIdInput.php @@ -36,7 +36,7 @@ public function isInitialized($property): bool */ protected $redirectUrls; /** - * @var FromScratch1CustomText|null + * @var SignatureRequestSignerFromInfoInputCustomText|null */ protected $customText; /** @@ -117,12 +117,12 @@ public function setRedirectUrls(?FromScratch1RedirectUrls $redirectUrls): self return $this; } - public function getCustomText(): ?FromScratch1CustomText + public function getCustomText(): ?SignatureRequestSignerFromInfoInputCustomText { return $this->customText; } - public function setCustomText(?FromScratch1CustomText $customText): self + public function setCustomText(?SignatureRequestSignerFromInfoInputCustomText $customText): self { $this->initialized['customText'] = true; $this->customText = $customText; diff --git a/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromInfoInput.php b/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromInfoInput.php index 0250f15..0f3e0a8 100644 --- a/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromInfoInput.php +++ b/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromInfoInput.php @@ -36,7 +36,7 @@ public function isInitialized($property): bool */ protected $redirectUrls; /** - * @var FromScratch1CustomText|null + * @var SignatureRequestSignerFromInfoInputCustomText|null */ protected $customText; /** @@ -117,12 +117,12 @@ public function setRedirectUrls(?FromScratch1RedirectUrls $redirectUrls): self return $this; } - public function getCustomText(): ?FromScratch1CustomText + public function getCustomText(): ?SignatureRequestSignerFromInfoInputCustomText { return $this->customText; } - public function setCustomText(?FromScratch1CustomText $customText): self + public function setCustomText(?SignatureRequestSignerFromInfoInputCustomText $customText): self { $this->initialized['customText'] = true; $this->customText = $customText; diff --git a/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromUserIdInput.php b/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromUserIdInput.php index b8d824f..9e27bf5 100644 --- a/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromUserIdInput.php +++ b/generated/Model/SignatureRequestPlaceholderSignerSubstituteFromUserIdInput.php @@ -36,7 +36,7 @@ public function isInitialized($property): bool */ protected $redirectUrls; /** - * @var FromScratch1CustomText|null + * @var SignatureRequestSignerFromInfoInputCustomText|null */ protected $customText; /** @@ -117,12 +117,12 @@ public function setRedirectUrls(?FromScratch1RedirectUrls $redirectUrls): self return $this; } - public function getCustomText(): ?FromScratch1CustomText + public function getCustomText(): ?SignatureRequestSignerFromInfoInputCustomText { return $this->customText; } - public function setCustomText(?FromScratch1CustomText $customText): self + public function setCustomText(?SignatureRequestSignerFromInfoInputCustomText $customText): self { $this->initialized['customText'] = true; $this->customText = $customText; diff --git a/generated/Model/SignatureRequestSignerFromContactIdInput.php b/generated/Model/SignatureRequestSignerFromContactIdInput.php index d282e34..be64f54 100644 --- a/generated/Model/SignatureRequestSignerFromContactIdInput.php +++ b/generated/Model/SignatureRequestSignerFromContactIdInput.php @@ -36,7 +36,7 @@ public function isInitialized($property): bool */ protected $redirectUrls; /** - * @var FromScratch1CustomText|null + * @var SignatureRequestSignerFromInfoInputCustomText|null */ protected $customText; @@ -117,12 +117,12 @@ public function setRedirectUrls(?SignatureRequestSignerFromInfoInputRedirectUrls return $this; } - public function getCustomText(): ?FromScratch1CustomText + public function getCustomText(): ?SignatureRequestSignerFromInfoInputCustomText { return $this->customText; } - public function setCustomText(?FromScratch1CustomText $customText): self + public function setCustomText(?SignatureRequestSignerFromInfoInputCustomText $customText): self { $this->initialized['customText'] = true; $this->customText = $customText; diff --git a/generated/Model/SignatureRequestSignerFromInfoInput.php b/generated/Model/SignatureRequestSignerFromInfoInput.php index 4025245..9d451dd 100644 --- a/generated/Model/SignatureRequestSignerFromInfoInput.php +++ b/generated/Model/SignatureRequestSignerFromInfoInput.php @@ -36,7 +36,7 @@ public function isInitialized($property): bool */ protected $redirectUrls; /** - * @var FromScratch1CustomText|null + * @var SignatureRequestSignerFromInfoInputCustomText|null */ protected $customText; @@ -117,12 +117,12 @@ public function setRedirectUrls(?SignatureRequestSignerFromInfoInputRedirectUrls return $this; } - public function getCustomText(): ?FromScratch1CustomText + public function getCustomText(): ?SignatureRequestSignerFromInfoInputCustomText { return $this->customText; } - public function setCustomText(?FromScratch1CustomText $customText): self + public function setCustomText(?SignatureRequestSignerFromInfoInputCustomText $customText): self { $this->initialized['customText'] = true; $this->customText = $customText; diff --git a/generated/Model/SignatureRequestSignerFromInfoInputCustomText.php b/generated/Model/SignatureRequestSignerFromInfoInputCustomText.php new file mode 100644 index 0000000..c79c15a --- /dev/null +++ b/generated/Model/SignatureRequestSignerFromInfoInputCustomText.php @@ -0,0 +1,84 @@ +initialized); + } + /** + * @var string|null + */ + protected $requestSubject; + /** + * @var string|null + */ + protected $requestBody; + /** + * @var string|null + */ + protected $reminderSubject; + /** + * @var string|null + */ + protected $reminderBody; + + public function getRequestSubject(): ?string + { + return $this->requestSubject; + } + + public function setRequestSubject(?string $requestSubject): self + { + $this->initialized['requestSubject'] = true; + $this->requestSubject = $requestSubject; + + return $this; + } + + public function getRequestBody(): ?string + { + return $this->requestBody; + } + + public function setRequestBody(?string $requestBody): self + { + $this->initialized['requestBody'] = true; + $this->requestBody = $requestBody; + + return $this; + } + + public function getReminderSubject(): ?string + { + return $this->reminderSubject; + } + + public function setReminderSubject(?string $reminderSubject): self + { + $this->initialized['reminderSubject'] = true; + $this->reminderSubject = $reminderSubject; + + return $this; + } + + public function getReminderBody(): ?string + { + return $this->reminderBody; + } + + public function setReminderBody(?string $reminderBody): self + { + $this->initialized['reminderBody'] = true; + $this->reminderBody = $reminderBody; + + return $this; + } +} diff --git a/generated/Model/SignatureRequestSignerFromUserIdInput.php b/generated/Model/SignatureRequestSignerFromUserIdInput.php index 3ddaca1..e442178 100644 --- a/generated/Model/SignatureRequestSignerFromUserIdInput.php +++ b/generated/Model/SignatureRequestSignerFromUserIdInput.php @@ -36,7 +36,7 @@ public function isInitialized($property): bool */ protected $redirectUrls; /** - * @var FromScratch1CustomText|null + * @var SignatureRequestSignerFromInfoInputCustomText|null */ protected $customText; @@ -117,12 +117,12 @@ public function setRedirectUrls(?SignatureRequestSignerFromInfoInputRedirectUrls return $this; } - public function getCustomText(): ?FromScratch1CustomText + public function getCustomText(): ?SignatureRequestSignerFromInfoInputCustomText { return $this->customText; } - public function setCustomText(?FromScratch1CustomText $customText): self + public function setCustomText(?SignatureRequestSignerFromInfoInputCustomText $customText): self { $this->initialized['customText'] = true; $this->customText = $customText; diff --git a/generated/Model/Signer.php b/generated/Model/Signer.php index 46a457d..083794e 100644 --- a/generated/Model/Signer.php +++ b/generated/Model/Signer.php @@ -69,6 +69,10 @@ public function isInitialized($property): bool * @var SmsNotification|null */ protected $smsNotification; + /** + * @var EmailNotification|null + */ + protected $emailNotification; public function getId(): ?string { @@ -257,4 +261,17 @@ public function setSmsNotification(?SmsNotification $smsNotification): self return $this; } + + public function getEmailNotification(): ?EmailNotification + { + return $this->emailNotification; + } + + public function setEmailNotification(?EmailNotification $emailNotification): self + { + $this->initialized['emailNotification'] = true; + $this->emailNotification = $emailNotification; + + return $this; + } } diff --git a/generated/Model/UpdateSigner.php b/generated/Model/UpdateSigner.php index 949350c..59f90d0 100644 --- a/generated/Model/UpdateSigner.php +++ b/generated/Model/UpdateSigner.php @@ -47,6 +47,10 @@ public function isInitialized($property): bool * @var string|null */ protected $identificationAttestationId; + /** + * @var EmailNotification1|null + */ + protected $emailNotification; public function getInfo(): ?UpdateSignerInfo { @@ -157,4 +161,17 @@ public function setIdentificationAttestationId(?string $identificationAttestatio return $this; } + + public function getEmailNotification(): ?EmailNotification1 + { + return $this->emailNotification; + } + + public function setEmailNotification(?EmailNotification1 $emailNotification): self + { + $this->initialized['emailNotification'] = true; + $this->emailNotification = $emailNotification; + + return $this; + } } diff --git a/generated/Model/VideoIdentityVerification.php b/generated/Model/VideoIdentityVerification.php index 1650734..cb775ca 100644 --- a/generated/Model/VideoIdentityVerification.php +++ b/generated/Model/VideoIdentityVerification.php @@ -53,6 +53,12 @@ public function isInitialized($property): bool * @var string|null */ protected $verificationUrl; + /** + * Temporary public link to the face image. Available for 10 minutes. + * + * @var string|null + */ + protected $faceImageUrl; public function getId(): ?string { @@ -184,4 +190,23 @@ public function setVerificationUrl(?string $verificationUrl): self return $this; } + + /** + * Temporary public link to the face image. Available for 10 minutes. + */ + public function getFaceImageUrl(): ?string + { + return $this->faceImageUrl; + } + + /** + * Temporary public link to the face image. Available for 10 minutes. + */ + public function setFaceImageUrl(?string $faceImageUrl): self + { + $this->initialized['faceImageUrl'] = true; + $this->faceImageUrl = $faceImageUrl; + + return $this; + } } diff --git a/generated/Normalizer/CreateVideoIdentityVerificationNormalizer.php b/generated/Normalizer/CreateVideoIdentityVerificationNormalizer.php index 50614d1..f827d65 100644 --- a/generated/Normalizer/CreateVideoIdentityVerificationNormalizer.php +++ b/generated/Normalizer/CreateVideoIdentityVerificationNormalizer.php @@ -62,6 +62,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('redirection_url', $data) && null === $data['redirection_url']) { $object->setRedirectionUrl(null); } + if (\array_key_exists('face_recognition', $data) && null !== $data['face_recognition']) { + $object->setFaceRecognition($data['face_recognition']); + unset($data['face_recognition']); + } elseif (\array_key_exists('face_recognition', $data) && null === $data['face_recognition']) { + $object->setFaceRecognition(null); + } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -77,6 +83,9 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['first_name'] = $object->getFirstName(); $data['last_name'] = $object->getLastName(); $data['redirection_url'] = $object->getRedirectionUrl(); + if ($object->isInitialized('faceRecognition') && null !== $object->getFaceRecognition()) { + $data['face_recognition'] = $object->getFaceRecognition(); + } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -142,6 +151,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('redirection_url', $data) && null === $data['redirection_url']) { $object->setRedirectionUrl(null); } + if (\array_key_exists('face_recognition', $data) && null !== $data['face_recognition']) { + $object->setFaceRecognition($data['face_recognition']); + unset($data['face_recognition']); + } elseif (\array_key_exists('face_recognition', $data) && null === $data['face_recognition']) { + $object->setFaceRecognition(null); + } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -160,6 +175,9 @@ public function normalize($object, $format = null, array $context = []): string| $data['first_name'] = $object->getFirstName(); $data['last_name'] = $object->getLastName(); $data['redirection_url'] = $object->getRedirectionUrl(); + if ($object->isInitialized('faceRecognition') && null !== $object->getFaceRecognition()) { + $data['face_recognition'] = $object->getFaceRecognition(); + } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; diff --git a/generated/Normalizer/EmailNotification1Normalizer.php b/generated/Normalizer/EmailNotification1Normalizer.php new file mode 100644 index 0000000..e312fde --- /dev/null +++ b/generated/Normalizer/EmailNotification1Normalizer.php @@ -0,0 +1,165 @@ += 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4)) { + class EmailNotification1Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use CheckArray; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return EmailNotification1::class === $type; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return \is_object($data) && EmailNotification1::class === $data::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new EmailNotification1(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('disabled', $data) && null !== $data['disabled']) { + $values = []; + foreach ($data['disabled'] as $value) { + $values[] = $value; + } + $object->setDisabled($values); + unset($data['disabled']); + } elseif (\array_key_exists('disabled', $data) && null === $data['disabled']) { + $object->setDisabled(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getDisabled() as $value) { + $values[] = $value; + } + $data['disabled'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [EmailNotification1::class => false]; + } + } +} else { + class EmailNotification1Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use CheckArray; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return EmailNotification1::class === $type; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return \is_object($data) && EmailNotification1::class === $data::class; + } + + /** + * @param mixed|null $format + */ + public function denormalize($data, $type, $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new EmailNotification1(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('disabled', $data) && null !== $data['disabled']) { + $values = []; + foreach ($data['disabled'] as $value) { + $values[] = $value; + } + $object->setDisabled($values); + unset($data['disabled']); + } elseif (\array_key_exists('disabled', $data) && null === $data['disabled']) { + $object->setDisabled(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @param mixed|null $format + */ + public function normalize($object, $format = null, array $context = []): string|int|float|bool|\ArrayObject|array|null + { + $data = []; + $values = []; + foreach ($object->getDisabled() as $value) { + $values[] = $value; + } + $data['disabled'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [EmailNotification1::class => false]; + } + } +} diff --git a/generated/Normalizer/EmailNotificationNormalizer.php b/generated/Normalizer/EmailNotificationNormalizer.php new file mode 100644 index 0000000..b7cc8ba --- /dev/null +++ b/generated/Normalizer/EmailNotificationNormalizer.php @@ -0,0 +1,165 @@ += 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4)) { + class EmailNotificationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use CheckArray; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return EmailNotification::class === $type; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return \is_object($data) && EmailNotification::class === $data::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new EmailNotification(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('disabled', $data) && null !== $data['disabled']) { + $values = []; + foreach ($data['disabled'] as $value) { + $values[] = $value; + } + $object->setDisabled($values); + unset($data['disabled']); + } elseif (\array_key_exists('disabled', $data) && null === $data['disabled']) { + $object->setDisabled(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $values = []; + foreach ($object->getDisabled() as $value) { + $values[] = $value; + } + $data['disabled'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [EmailNotification::class => false]; + } + } +} else { + class EmailNotificationNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use CheckArray; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return EmailNotification::class === $type; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return \is_object($data) && EmailNotification::class === $data::class; + } + + /** + * @param mixed|null $format + */ + public function denormalize($data, $type, $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new EmailNotification(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('disabled', $data) && null !== $data['disabled']) { + $values = []; + foreach ($data['disabled'] as $value) { + $values[] = $value; + } + $object->setDisabled($values); + unset($data['disabled']); + } elseif (\array_key_exists('disabled', $data) && null === $data['disabled']) { + $object->setDisabled(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @param mixed|null $format + */ + public function normalize($object, $format = null, array $context = []): string|int|float|bool|\ArrayObject|array|null + { + $data = []; + $values = []; + foreach ($object->getDisabled() as $value) { + $values[] = $value; + } + $data['disabled'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [EmailNotification::class => false]; + } + } +} diff --git a/generated/Normalizer/FromExistingContact1Normalizer.php b/generated/Normalizer/FromExistingContact1Normalizer.php index 4fe9035..7022fca 100644 --- a/generated/Normalizer/FromExistingContact1Normalizer.php +++ b/generated/Normalizer/FromExistingContact1Normalizer.php @@ -3,6 +3,7 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Qdequippe\Yousign\Api\Model\EmailNotification1; use Qdequippe\Yousign\Api\Model\FromExistingContact1; use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1RedirectUrls; @@ -115,6 +116,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -161,6 +168,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('smsNotification') && null !== $object->getSmsNotification()) { $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $data[$key_1] = $value_2; @@ -276,6 +286,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -325,6 +341,9 @@ public function normalize($object, $format = null, array $context = []): string| if ($object->isInitialized('smsNotification') && null !== $object->getSmsNotification()) { $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $data[$key_1] = $value_2; diff --git a/generated/Normalizer/FromExistingUser1Normalizer.php b/generated/Normalizer/FromExistingUser1Normalizer.php index 3bf117a..c38e5b3 100644 --- a/generated/Normalizer/FromExistingUser1Normalizer.php +++ b/generated/Normalizer/FromExistingUser1Normalizer.php @@ -3,6 +3,7 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Qdequippe\Yousign\Api\Model\EmailNotification1; use Qdequippe\Yousign\Api\Model\FromExistingUser1; use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1RedirectUrls; @@ -115,6 +116,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -161,6 +168,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('smsNotification') && null !== $object->getSmsNotification()) { $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $data[$key_1] = $value_2; @@ -276,6 +286,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -325,6 +341,9 @@ public function normalize($object, $format = null, array $context = []): string| if ($object->isInitialized('smsNotification') && null !== $object->getSmsNotification()) { $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $data[$key_1] = $value_2; diff --git a/generated/Normalizer/FromScratch1Normalizer.php b/generated/Normalizer/FromScratch1Normalizer.php index 17a4a6a..35d01da 100644 --- a/generated/Normalizer/FromScratch1Normalizer.php +++ b/generated/Normalizer/FromScratch1Normalizer.php @@ -3,6 +3,7 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Qdequippe\Yousign\Api\Model\EmailNotification1; use Qdequippe\Yousign\Api\Model\FromScratch1; use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1Info; @@ -116,6 +117,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -162,6 +169,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('smsNotification') && null !== $object->getSmsNotification()) { $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $data[$key_1] = $value_2; @@ -277,6 +287,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -326,6 +342,9 @@ public function normalize($object, $format = null, array $context = []): string| if ($object->isInitialized('smsNotification') && null !== $object->getSmsNotification()) { $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $data[$key_1] = $value_2; diff --git a/generated/Normalizer/JaneObjectNormalizer.php b/generated/Normalizer/JaneObjectNormalizer.php index 7d34c50..eecf79f 100644 --- a/generated/Normalizer/JaneObjectNormalizer.php +++ b/generated/Normalizer/JaneObjectNormalizer.php @@ -55,6 +55,8 @@ use Qdequippe\Yousign\Api\Model\ElectronicSealAuditTrail; use Qdequippe\Yousign\Api\Model\ElectronicSealDocument; use Qdequippe\Yousign\Api\Model\ElectronicSealImage; +use Qdequippe\Yousign\Api\Model\EmailNotification; +use Qdequippe\Yousign\Api\Model\EmailNotification1; use Qdequippe\Yousign\Api\Model\EmbeddedSignerWithSignatureLink; use Qdequippe\Yousign\Api\Model\FieldCheckbox; use Qdequippe\Yousign\Api\Model\FieldMention; @@ -144,6 +146,7 @@ use Qdequippe\Yousign\Api\Model\SignatureRequestPlaceholderSignerSubstituteFromUserIdInput; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromContactIdInput; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInput; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputInfo; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputRedirectUrls; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromUserIdInput; @@ -390,8 +393,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface SmsNotification::class => SmsNotificationNormalizer::class, + EmailNotification::class => EmailNotificationNormalizer::class, + SmsNotification1::class => SmsNotification1Normalizer::class, + EmailNotification1::class => EmailNotification1Normalizer::class, + VideoIdentityVerificationVerified::class => VideoIdentityVerificationVerifiedNormalizer::class, VideoIdentityVerificationDeclared::class => VideoIdentityVerificationDeclaredNormalizer::class, @@ -578,6 +585,8 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface SignatureRequestSignerFromInfoInputRedirectUrls::class => SignatureRequestSignerFromInfoInputRedirectUrlsNormalizer::class, + SignatureRequestSignerFromInfoInputCustomText::class => SignatureRequestSignerFromInfoInputCustomTextNormalizer::class, + SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfo::class => SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfoNormalizer::class, Signature2::class => Signature2Normalizer::class, @@ -731,7 +740,9 @@ public function getSupportedTypes(?string $format = null): array CreateFieldFont::class => false, UpdateFieldFont::class => false, SmsNotification::class => false, + EmailNotification::class => false, SmsNotification1::class => false, + EmailNotification1::class => false, VideoIdentityVerificationVerified::class => false, VideoIdentityVerificationDeclared::class => false, VideoIdentityVerificationDocument::class => false, @@ -825,6 +836,7 @@ public function getSupportedTypes(?string $format = null): array WorkspaceUsersInner::class => false, SignatureRequestSignerFromInfoInputInfo::class => false, SignatureRequestSignerFromInfoInputRedirectUrls::class => false, + SignatureRequestSignerFromInfoInputCustomText::class => false, SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfo::class => false, Signature2::class => false, Mention2::class => false, @@ -1023,8 +1035,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface SmsNotification::class => SmsNotificationNormalizer::class, + EmailNotification::class => EmailNotificationNormalizer::class, + SmsNotification1::class => SmsNotification1Normalizer::class, + EmailNotification1::class => EmailNotification1Normalizer::class, + VideoIdentityVerificationVerified::class => VideoIdentityVerificationVerifiedNormalizer::class, VideoIdentityVerificationDeclared::class => VideoIdentityVerificationDeclaredNormalizer::class, @@ -1211,6 +1227,8 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface SignatureRequestSignerFromInfoInputRedirectUrls::class => SignatureRequestSignerFromInfoInputRedirectUrlsNormalizer::class, + SignatureRequestSignerFromInfoInputCustomText::class => SignatureRequestSignerFromInfoInputCustomTextNormalizer::class, + SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfo::class => SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfoNormalizer::class, Signature2::class => Signature2Normalizer::class, @@ -1370,7 +1388,9 @@ public function getSupportedTypes(?string $format = null): array CreateFieldFont::class => false, UpdateFieldFont::class => false, SmsNotification::class => false, + EmailNotification::class => false, SmsNotification1::class => false, + EmailNotification1::class => false, VideoIdentityVerificationVerified::class => false, VideoIdentityVerificationDeclared::class => false, VideoIdentityVerificationDocument::class => false, @@ -1464,6 +1484,7 @@ public function getSupportedTypes(?string $format = null): array WorkspaceUsersInner::class => false, SignatureRequestSignerFromInfoInputInfo::class => false, SignatureRequestSignerFromInfoInputRedirectUrls::class => false, + SignatureRequestSignerFromInfoInputCustomText::class => false, SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfo::class => false, Signature2::class => false, Mention2::class => false, diff --git a/generated/Normalizer/SignatureRequestEmailNotificationNormalizer.php b/generated/Normalizer/SignatureRequestEmailNotificationNormalizer.php index 0c6e880..51969f2 100644 --- a/generated/Normalizer/SignatureRequestEmailNotificationNormalizer.php +++ b/generated/Normalizer/SignatureRequestEmailNotificationNormalizer.php @@ -51,6 +51,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('sender', $data) && null === $data['sender']) { $object->setSender(null); } + if (\array_key_exists('custom_note', $data) && null !== $data['custom_note']) { + $object->setCustomNote($data['custom_note']); + unset($data['custom_note']); + } elseif (\array_key_exists('custom_note', $data) && null === $data['custom_note']) { + $object->setCustomNote(null); + } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -64,6 +70,7 @@ public function normalize(mixed $object, ?string $format = null, array $context { $data = []; $data['sender'] = $this->normalizer->normalize($object->getSender(), 'json', $context); + $data['custom_note'] = $object->getCustomNote(); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -117,6 +124,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('sender', $data) && null === $data['sender']) { $object->setSender(null); } + if (\array_key_exists('custom_note', $data) && null !== $data['custom_note']) { + $object->setCustomNote($data['custom_note']); + unset($data['custom_note']); + } elseif (\array_key_exists('custom_note', $data) && null === $data['custom_note']) { + $object->setCustomNote(null); + } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -133,6 +146,7 @@ public function normalize($object, $format = null, array $context = []): string| { $data = []; $data['sender'] = $this->normalizer->normalize($object->getSender(), 'json', $context); + $data['custom_note'] = $object->getCustomNote(); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; diff --git a/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromContactIdInputNormalizer.php b/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromContactIdInputNormalizer.php index ae4f33e..46aee80 100644 --- a/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromContactIdInputNormalizer.php +++ b/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromContactIdInputNormalizer.php @@ -3,9 +3,9 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; -use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1RedirectUrls; use Qdequippe\Yousign\Api\Model\SignatureRequestPlaceholderSignerSubstituteFromContactIdInput; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Runtime\Normalizer\CheckArray; use Qdequippe\Yousign\Api\Runtime\Normalizer\ValidatorTrait; use Symfony\Component\HttpKernel\Kernel; @@ -77,7 +77,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); @@ -195,7 +195,7 @@ public function denormalize($data, $type, $format = null, array $context = []): $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); diff --git a/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromInfoInputNormalizer.php b/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromInfoInputNormalizer.php index bde45ba..3599c67 100644 --- a/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromInfoInputNormalizer.php +++ b/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromInfoInputNormalizer.php @@ -3,10 +3,10 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; -use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1RedirectUrls; use Qdequippe\Yousign\Api\Model\SignatureRequestPlaceholderSignerSubstituteFromInfoInput; use Qdequippe\Yousign\Api\Model\SignatureRequestPlaceholderSignerSubstituteFromInfoInputInfo; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Runtime\Normalizer\CheckArray; use Qdequippe\Yousign\Api\Runtime\Normalizer\ValidatorTrait; use Symfony\Component\HttpKernel\Kernel; @@ -78,7 +78,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); @@ -196,7 +196,7 @@ public function denormalize($data, $type, $format = null, array $context = []): $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); diff --git a/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromUserIdInputNormalizer.php b/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromUserIdInputNormalizer.php index 4d20356..634883c 100644 --- a/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromUserIdInputNormalizer.php +++ b/generated/Normalizer/SignatureRequestPlaceholderSignerSubstituteFromUserIdInputNormalizer.php @@ -3,9 +3,9 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; -use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1RedirectUrls; use Qdequippe\Yousign\Api\Model\SignatureRequestPlaceholderSignerSubstituteFromUserIdInput; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Runtime\Normalizer\CheckArray; use Qdequippe\Yousign\Api\Runtime\Normalizer\ValidatorTrait; use Symfony\Component\HttpKernel\Kernel; @@ -77,7 +77,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); @@ -195,7 +195,7 @@ public function denormalize($data, $type, $format = null, array $context = []): $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); diff --git a/generated/Normalizer/SignatureRequestSignerFromContactIdInputNormalizer.php b/generated/Normalizer/SignatureRequestSignerFromContactIdInputNormalizer.php index 4831514..daacc24 100644 --- a/generated/Normalizer/SignatureRequestSignerFromContactIdInputNormalizer.php +++ b/generated/Normalizer/SignatureRequestSignerFromContactIdInputNormalizer.php @@ -3,8 +3,8 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; -use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromContactIdInput; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputRedirectUrls; use Qdequippe\Yousign\Api\Runtime\Normalizer\CheckArray; use Qdequippe\Yousign\Api\Runtime\Normalizer\ValidatorTrait; @@ -85,7 +85,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); @@ -210,7 +210,7 @@ public function denormalize($data, $type, $format = null, array $context = []): $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); diff --git a/generated/Normalizer/SignatureRequestSignerFromInfoInputCustomTextNormalizer.php b/generated/Normalizer/SignatureRequestSignerFromInfoInputCustomTextNormalizer.php new file mode 100644 index 0000000..856b254 --- /dev/null +++ b/generated/Normalizer/SignatureRequestSignerFromInfoInputCustomTextNormalizer.php @@ -0,0 +1,207 @@ += 7 || Kernel::MAJOR_VERSION === 6 && Kernel::MINOR_VERSION === 4)) { + class SignatureRequestSignerFromInfoInputCustomTextNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use CheckArray; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return SignatureRequestSignerFromInfoInputCustomText::class === $type; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return \is_object($data) && SignatureRequestSignerFromInfoInputCustomText::class === $data::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new SignatureRequestSignerFromInfoInputCustomText(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('request_subject', $data) && null !== $data['request_subject']) { + $object->setRequestSubject($data['request_subject']); + unset($data['request_subject']); + } elseif (\array_key_exists('request_subject', $data) && null === $data['request_subject']) { + $object->setRequestSubject(null); + } + if (\array_key_exists('request_body', $data) && null !== $data['request_body']) { + $object->setRequestBody($data['request_body']); + unset($data['request_body']); + } elseif (\array_key_exists('request_body', $data) && null === $data['request_body']) { + $object->setRequestBody(null); + } + if (\array_key_exists('reminder_subject', $data) && null !== $data['reminder_subject']) { + $object->setReminderSubject($data['reminder_subject']); + unset($data['reminder_subject']); + } elseif (\array_key_exists('reminder_subject', $data) && null === $data['reminder_subject']) { + $object->setReminderSubject(null); + } + if (\array_key_exists('reminder_body', $data) && null !== $data['reminder_body']) { + $object->setReminderBody($data['reminder_body']); + unset($data['reminder_body']); + } elseif (\array_key_exists('reminder_body', $data) && null === $data['reminder_body']) { + $object->setReminderBody(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('requestSubject') && null !== $object->getRequestSubject()) { + $data['request_subject'] = $object->getRequestSubject(); + } + if ($object->isInitialized('requestBody') && null !== $object->getRequestBody()) { + $data['request_body'] = $object->getRequestBody(); + } + if ($object->isInitialized('reminderSubject') && null !== $object->getReminderSubject()) { + $data['reminder_subject'] = $object->getReminderSubject(); + } + if ($object->isInitialized('reminderBody') && null !== $object->getReminderBody()) { + $data['reminder_body'] = $object->getReminderBody(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [SignatureRequestSignerFromInfoInputCustomText::class => false]; + } + } +} else { + class SignatureRequestSignerFromInfoInputCustomTextNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use CheckArray; + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return SignatureRequestSignerFromInfoInputCustomText::class === $type; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return \is_object($data) && SignatureRequestSignerFromInfoInputCustomText::class === $data::class; + } + + /** + * @param mixed|null $format + */ + public function denormalize($data, $type, $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new SignatureRequestSignerFromInfoInputCustomText(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('request_subject', $data) && null !== $data['request_subject']) { + $object->setRequestSubject($data['request_subject']); + unset($data['request_subject']); + } elseif (\array_key_exists('request_subject', $data) && null === $data['request_subject']) { + $object->setRequestSubject(null); + } + if (\array_key_exists('request_body', $data) && null !== $data['request_body']) { + $object->setRequestBody($data['request_body']); + unset($data['request_body']); + } elseif (\array_key_exists('request_body', $data) && null === $data['request_body']) { + $object->setRequestBody(null); + } + if (\array_key_exists('reminder_subject', $data) && null !== $data['reminder_subject']) { + $object->setReminderSubject($data['reminder_subject']); + unset($data['reminder_subject']); + } elseif (\array_key_exists('reminder_subject', $data) && null === $data['reminder_subject']) { + $object->setReminderSubject(null); + } + if (\array_key_exists('reminder_body', $data) && null !== $data['reminder_body']) { + $object->setReminderBody($data['reminder_body']); + unset($data['reminder_body']); + } elseif (\array_key_exists('reminder_body', $data) && null === $data['reminder_body']) { + $object->setReminderBody(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @param mixed|null $format + */ + public function normalize($object, $format = null, array $context = []): string|int|float|bool|\ArrayObject|array|null + { + $data = []; + if ($object->isInitialized('requestSubject') && null !== $object->getRequestSubject()) { + $data['request_subject'] = $object->getRequestSubject(); + } + if ($object->isInitialized('requestBody') && null !== $object->getRequestBody()) { + $data['request_body'] = $object->getRequestBody(); + } + if ($object->isInitialized('reminderSubject') && null !== $object->getReminderSubject()) { + $data['reminder_subject'] = $object->getReminderSubject(); + } + if ($object->isInitialized('reminderBody') && null !== $object->getReminderBody()) { + $data['reminder_body'] = $object->getReminderBody(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [SignatureRequestSignerFromInfoInputCustomText::class => false]; + } + } +} diff --git a/generated/Normalizer/SignatureRequestSignerFromInfoInputNormalizer.php b/generated/Normalizer/SignatureRequestSignerFromInfoInputNormalizer.php index 9a1c592..4f16a4b 100644 --- a/generated/Normalizer/SignatureRequestSignerFromInfoInputNormalizer.php +++ b/generated/Normalizer/SignatureRequestSignerFromInfoInputNormalizer.php @@ -3,8 +3,8 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; -use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInput; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputInfo; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputRedirectUrls; use Qdequippe\Yousign\Api\Runtime\Normalizer\CheckArray; @@ -86,7 +86,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); @@ -211,7 +211,7 @@ public function denormalize($data, $type, $format = null, array $context = []): $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); diff --git a/generated/Normalizer/SignatureRequestSignerFromUserIdInputNormalizer.php b/generated/Normalizer/SignatureRequestSignerFromUserIdInputNormalizer.php index 33ae828..d6def89 100644 --- a/generated/Normalizer/SignatureRequestSignerFromUserIdInputNormalizer.php +++ b/generated/Normalizer/SignatureRequestSignerFromUserIdInputNormalizer.php @@ -3,7 +3,7 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; -use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; +use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputCustomText; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromInfoInputRedirectUrls; use Qdequippe\Yousign\Api\Model\SignatureRequestSignerFromUserIdInput; use Qdequippe\Yousign\Api\Runtime\Normalizer\CheckArray; @@ -85,7 +85,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); @@ -210,7 +210,7 @@ public function denormalize($data, $type, $format = null, array $context = []): $object->setRedirectUrls(null); } if (\array_key_exists('custom_text', $data) && null !== $data['custom_text']) { - $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], FromScratch1CustomText::class, 'json', $context)); + $object->setCustomText($this->denormalizer->denormalize($data['custom_text'], SignatureRequestSignerFromInfoInputCustomText::class, 'json', $context)); unset($data['custom_text']); } elseif (\array_key_exists('custom_text', $data) && null === $data['custom_text']) { $object->setCustomText(null); diff --git a/generated/Normalizer/SignerNormalizer.php b/generated/Normalizer/SignerNormalizer.php index e614097..06ee9b8 100644 --- a/generated/Normalizer/SignerNormalizer.php +++ b/generated/Normalizer/SignerNormalizer.php @@ -3,6 +3,7 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Qdequippe\Yousign\Api\Model\EmailNotification; use Qdequippe\Yousign\Api\Model\Signer; use Qdequippe\Yousign\Api\Model\SignerCustomText; use Qdequippe\Yousign\Api\Model\SignerInfo; @@ -136,6 +137,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value_1; @@ -166,6 +173,7 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['delivery_mode'] = $object->getDeliveryMode(); $data['identification_attestation_id'] = $object->getIdentificationAttestationId(); $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value_1; @@ -301,6 +309,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('sms_notification', $data) && null === $data['sms_notification']) { $object->setSmsNotification(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value_1; @@ -334,6 +348,7 @@ public function normalize($object, $format = null, array $context = []): string| $data['delivery_mode'] = $object->getDeliveryMode(); $data['identification_attestation_id'] = $object->getIdentificationAttestationId(); $data['sms_notification'] = $this->normalizer->normalize($object->getSmsNotification(), 'json', $context); + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value_1; diff --git a/generated/Normalizer/UpdateSignerNormalizer.php b/generated/Normalizer/UpdateSignerNormalizer.php index 92040e0..5b38d4d 100644 --- a/generated/Normalizer/UpdateSignerNormalizer.php +++ b/generated/Normalizer/UpdateSignerNormalizer.php @@ -3,6 +3,7 @@ namespace Qdequippe\Yousign\Api\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; +use Qdequippe\Yousign\Api\Model\EmailNotification1; use Qdequippe\Yousign\Api\Model\FromScratch1CustomText; use Qdequippe\Yousign\Api\Model\FromScratch1RedirectUrls; use Qdequippe\Yousign\Api\Model\UpdateSigner; @@ -95,6 +96,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('identification_attestation_id', $data) && null === $data['identification_attestation_id']) { $object->setIdentificationAttestationId(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -131,6 +138,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('identificationAttestationId') && null !== $object->getIdentificationAttestationId()) { $data['identification_attestation_id'] = $object->getIdentificationAttestationId(); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -226,6 +236,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('identification_attestation_id', $data) && null === $data['identification_attestation_id']) { $object->setIdentificationAttestationId(null); } + if (\array_key_exists('email_notification', $data) && null !== $data['email_notification']) { + $object->setEmailNotification($this->denormalizer->denormalize($data['email_notification'], EmailNotification1::class, 'json', $context)); + unset($data['email_notification']); + } elseif (\array_key_exists('email_notification', $data) && null === $data['email_notification']) { + $object->setEmailNotification(null); + } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -265,6 +281,9 @@ public function normalize($object, $format = null, array $context = []): string| if ($object->isInitialized('identificationAttestationId') && null !== $object->getIdentificationAttestationId()) { $data['identification_attestation_id'] = $object->getIdentificationAttestationId(); } + if ($object->isInitialized('emailNotification') && null !== $object->getEmailNotification()) { + $data['email_notification'] = $this->normalizer->normalize($object->getEmailNotification(), 'json', $context); + } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; diff --git a/generated/Normalizer/VideoIdentityVerificationNormalizer.php b/generated/Normalizer/VideoIdentityVerificationNormalizer.php index 0238a76..91c211a 100644 --- a/generated/Normalizer/VideoIdentityVerificationNormalizer.php +++ b/generated/Normalizer/VideoIdentityVerificationNormalizer.php @@ -93,6 +93,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('verification_url', $data) && null === $data['verification_url']) { $object->setVerificationUrl(null); } + if (\array_key_exists('face_image_url', $data) && null !== $data['face_image_url']) { + $object->setFaceImageUrl($data['face_image_url']); + unset($data['face_image_url']); + } elseif (\array_key_exists('face_image_url', $data) && null === $data['face_image_url']) { + $object->setFaceImageUrl(null); + } foreach ($data as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value_1; @@ -116,6 +122,7 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['declared'] = $this->normalizer->normalize($object->getDeclared(), 'json', $context); $data['extracted_from_document'] = $this->normalizer->normalize($object->getExtractedFromDocument(), 'json', $context); $data['verification_url'] = $object->getVerificationUrl(); + $data['face_image_url'] = $object->getFaceImageUrl(); foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value_1; @@ -209,6 +216,12 @@ public function denormalize($data, $type, $format = null, array $context = []): } elseif (\array_key_exists('verification_url', $data) && null === $data['verification_url']) { $object->setVerificationUrl(null); } + if (\array_key_exists('face_image_url', $data) && null !== $data['face_image_url']) { + $object->setFaceImageUrl($data['face_image_url']); + unset($data['face_image_url']); + } elseif (\array_key_exists('face_image_url', $data) && null === $data['face_image_url']) { + $object->setFaceImageUrl(null); + } foreach ($data as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value_1; @@ -235,6 +248,7 @@ public function normalize($object, $format = null, array $context = []): string| $data['declared'] = $this->normalizer->normalize($object->getDeclared(), 'json', $context); $data['extracted_from_document'] = $this->normalizer->normalize($object->getExtractedFromDocument(), 'json', $context); $data['verification_url'] = $object->getVerificationUrl(); + $data['face_image_url'] = $object->getFaceImageUrl(); foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value_1;