Skip to content

Commit e3ffa63

Browse files
[create-pull-request] automated change (#15)
Co-authored-by: qdequippe <3193300+qdequippe@users.noreply.github.com>
1 parent a396cf5 commit e3ffa63

25 files changed

Lines changed: 148 additions & 86 deletions

generated/Endpoint/GetSignatureRequestsSignatureRequestIdDocuments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
7676
$status = $response->getStatusCode();
7777
$body = (string) $response->getBody();
7878
if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
79-
return $serializer->deserialize($body, 'Qdequippe\\Yousign\\Api\\Model\\Document[]', 'json');
79+
return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Document[]', 'json');
8080
}
8181
if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
8282
throw new GetSignatureRequestsSignatureRequestIdDocumentsBadRequestException($serializer->deserialize($body, ViolationResponse::class, 'json'), $response);

generated/Endpoint/GetSignatureRequestsSignatureRequestIdSigners.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
5656
$status = $response->getStatusCode();
5757
$body = (string) $response->getBody();
5858
if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
59-
return $serializer->deserialize($body, 'Qdequippe\\Yousign\\Api\\Model\\Signer[]', 'json');
59+
return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Signer[]', 'json');
6060
}
6161
if (null !== $contentType && (401 === $status && false !== mb_strpos($contentType, 'application/json'))) {
6262
throw new GetSignatureRequestsSignatureRequestIdSignersUnauthorizedException($serializer->deserialize($body, GetSignatureRequests401Response::class, 'json'), $response);

generated/Endpoint/GetWebhooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
5050
$status = $response->getStatusCode();
5151
$body = (string) $response->getBody();
5252
if (null !== $contentType && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
53-
return $serializer->deserialize($body, 'Qdequippe\\Yousign\\Api\\Model\\WebhookSubscription[]', 'json');
53+
return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\WebhookSubscription[]', 'json');
5454
}
5555
if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
5656
throw new GetWebhooksBadRequestException($serializer->deserialize($body, ViolationResponse::class, 'json'), $response);

generated/Endpoint/PostSignatureRequestsSignatureRequestIdFollowers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function transformResponseBody(ResponseInterface $response, Serializer
6666
$status = $response->getStatusCode();
6767
$body = (string) $response->getBody();
6868
if (null !== $contentType && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) {
69-
return $serializer->deserialize($body, 'Qdequippe\\Yousign\\Api\\Model\\Follower[]', 'json');
69+
return $serializer->deserialize($body, 'Qdequippe\Yousign\Api\Model\Follower[]', 'json');
7070
}
7171
if (null !== $contentType && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
7272
throw new PostSignatureRequestsSignatureRequestIdFollowersBadRequestException($serializer->deserialize($body, ViolationResponse::class, 'json'), $response);

generated/Model/CreateCustomExperienceRedirectUrls.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public function isInitialized($property): bool
2121
* @var string|null
2222
*/
2323
protected $error;
24+
/**
25+
* @var string|null
26+
*/
27+
protected $decline;
2428

2529
public function getSuccess(): ?string
2630
{
@@ -47,4 +51,17 @@ public function setError(?string $error): self
4751

4852
return $this;
4953
}
54+
55+
public function getDecline(): ?string
56+
{
57+
return $this->decline;
58+
}
59+
60+
public function setDecline(?string $decline): self
61+
{
62+
$this->initialized['decline'] = true;
63+
$this->decline = $decline;
64+
65+
return $this;
66+
}
5067
}

generated/Model/CustomExperienceRedirectUrls.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public function isInitialized($property): bool
2121
* @var string|null
2222
*/
2323
protected $error;
24+
/**
25+
* @var string|null
26+
*/
27+
protected $decline;
2428

2529
public function getSuccess(): ?string
2630
{
@@ -47,4 +51,17 @@ public function setError(?string $error): self
4751

4852
return $this;
4953
}
54+
55+
public function getDecline(): ?string
56+
{
57+
return $this->decline;
58+
}
59+
60+
public function setDecline(?string $decline): self
61+
{
62+
$this->initialized['decline'] = true;
63+
$this->decline = $decline;
64+
65+
return $this;
66+
}
5067
}

generated/Normalizer/ApproverNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
7070
$object->setApprovalLink(null);
7171
}
7272
if (\array_key_exists('approval_link_expiration_date', $data) && null !== $data['approval_link_expiration_date']) {
73-
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['approval_link_expiration_date']));
73+
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['approval_link_expiration_date']));
7474
unset($data['approval_link_expiration_date']);
7575
} elseif (\array_key_exists('approval_link_expiration_date', $data) && null === $data['approval_link_expiration_date']) {
7676
$object->setApprovalLinkExpirationDate(null);
@@ -94,7 +94,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
9494
$data['approval_link'] = $object->getApprovalLink();
9595
}
9696
if ($object->isInitialized('approvalLinkExpirationDate') && null !== $object->getApprovalLinkExpirationDate()) {
97-
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\\TH:i:sP');
97+
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\TH:i:sP');
9898
}
9999
foreach ($object as $key => $value) {
100100
if (preg_match('/.*/', (string) $key)) {
@@ -168,7 +168,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
168168
$object->setApprovalLink(null);
169169
}
170170
if (\array_key_exists('approval_link_expiration_date', $data) && null !== $data['approval_link_expiration_date']) {
171-
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['approval_link_expiration_date']));
171+
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['approval_link_expiration_date']));
172172
unset($data['approval_link_expiration_date']);
173173
} elseif (\array_key_exists('approval_link_expiration_date', $data) && null === $data['approval_link_expiration_date']) {
174174
$object->setApprovalLinkExpirationDate(null);
@@ -197,7 +197,7 @@ public function normalize($object, $format = null, array $context = [])
197197
$data['approval_link'] = $object->getApprovalLink();
198198
}
199199
if ($object->isInitialized('approvalLinkExpirationDate') && null !== $object->getApprovalLinkExpirationDate()) {
200-
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\\TH:i:sP');
200+
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\TH:i:sP');
201201
}
202202
foreach ($object as $key => $value) {
203203
if (preg_match('/.*/', (string) $key)) {

generated/Normalizer/ApproverToNotifyNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
6363
$object->setApprovalLink(null);
6464
}
6565
if (\array_key_exists('approval_link_expiration_date', $data) && null !== $data['approval_link_expiration_date']) {
66-
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['approval_link_expiration_date']));
66+
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['approval_link_expiration_date']));
6767
unset($data['approval_link_expiration_date']);
6868
} elseif (\array_key_exists('approval_link_expiration_date', $data) && null === $data['approval_link_expiration_date']) {
6969
$object->setApprovalLinkExpirationDate(null);
@@ -83,7 +83,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
8383
$data['id'] = $object->getId();
8484
$data['status'] = $object->getStatus();
8585
$data['approval_link'] = $object->getApprovalLink();
86-
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\\TH:i:sP');
86+
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\TH:i:sP');
8787
foreach ($object as $key => $value) {
8888
if (preg_match('/.*/', (string) $key)) {
8989
$data[$key] = $value;
@@ -150,7 +150,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
150150
$object->setApprovalLink(null);
151151
}
152152
if (\array_key_exists('approval_link_expiration_date', $data) && null !== $data['approval_link_expiration_date']) {
153-
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['approval_link_expiration_date']));
153+
$object->setApprovalLinkExpirationDate(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['approval_link_expiration_date']));
154154
unset($data['approval_link_expiration_date']);
155155
} elseif (\array_key_exists('approval_link_expiration_date', $data) && null === $data['approval_link_expiration_date']) {
156156
$object->setApprovalLinkExpirationDate(null);
@@ -175,7 +175,7 @@ public function normalize($object, $format = null, array $context = [])
175175
$data['id'] = $object->getId();
176176
$data['status'] = $object->getStatus();
177177
$data['approval_link'] = $object->getApprovalLink();
178-
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\\TH:i:sP');
178+
$data['approval_link_expiration_date'] = $object->getApprovalLinkExpirationDate()->format('Y-m-d\TH:i:sP');
179179
foreach ($object as $key => $value) {
180180
if (preg_match('/.*/', (string) $key)) {
181181
$data[$key] = $value;

generated/Normalizer/CreateCustomExperienceRedirectUrlsNormalizer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
5656
} elseif (\array_key_exists('error', $data) && null === $data['error']) {
5757
$object->setError(null);
5858
}
59+
if (\array_key_exists('decline', $data) && null !== $data['decline']) {
60+
$object->setDecline($data['decline']);
61+
unset($data['decline']);
62+
} elseif (\array_key_exists('decline', $data) && null === $data['decline']) {
63+
$object->setDecline(null);
64+
}
5965
foreach ($data as $key => $value) {
6066
if (preg_match('/.*/', (string) $key)) {
6167
$object[$key] = $value;
@@ -70,6 +76,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
7076
$data = [];
7177
$data['success'] = $object->getSuccess();
7278
$data['error'] = $object->getError();
79+
$data['decline'] = $object->getDecline();
7380
foreach ($object as $key => $value) {
7481
if (preg_match('/.*/', (string) $key)) {
7582
$data[$key] = $value;
@@ -129,6 +136,12 @@ public function denormalize($data, $type, $format = null, array $context = [])
129136
} elseif (\array_key_exists('error', $data) && null === $data['error']) {
130137
$object->setError(null);
131138
}
139+
if (\array_key_exists('decline', $data) && null !== $data['decline']) {
140+
$object->setDecline($data['decline']);
141+
unset($data['decline']);
142+
} elseif (\array_key_exists('decline', $data) && null === $data['decline']) {
143+
$object->setDecline(null);
144+
}
132145
foreach ($data as $key => $value) {
133146
if (preg_match('/.*/', (string) $key)) {
134147
$object[$key] = $value;
@@ -148,6 +161,7 @@ public function normalize($object, $format = null, array $context = [])
148161
$data = [];
149162
$data['success'] = $object->getSuccess();
150163
$data['error'] = $object->getError();
164+
$data['decline'] = $object->getDecline();
151165
foreach ($object as $key => $value) {
152166
if (preg_match('/.*/', (string) $key)) {
153167
$data[$key] = $value;

generated/Normalizer/CustomExperienceNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
146146
$object->setSource(null);
147147
}
148148
if (\array_key_exists('created_at', $data) && null !== $data['created_at']) {
149-
$object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['created_at']));
149+
$object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['created_at']));
150150
unset($data['created_at']);
151151
} elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) {
152152
$object->setCreatedAt(null);
@@ -184,7 +184,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
184184
$data['redirect_urls'] = $this->normalizer->normalize($object->getRedirectUrls(), 'json', $context);
185185
$data['logo'] = $object->getLogo();
186186
$data['source'] = $object->getSource();
187-
$data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:sP');
187+
$data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:sP');
188188
foreach ($object as $key => $value_1) {
189189
if (preg_match('/.*/', (string) $key)) {
190190
$data[$key] = $value_1;
@@ -333,7 +333,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
333333
$object->setSource(null);
334334
}
335335
if (\array_key_exists('created_at', $data) && null !== $data['created_at']) {
336-
$object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['created_at']));
336+
$object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['created_at']));
337337
unset($data['created_at']);
338338
} elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) {
339339
$object->setCreatedAt(null);
@@ -376,7 +376,7 @@ public function normalize($object, $format = null, array $context = [])
376376
$data['redirect_urls'] = $this->normalizer->normalize($object->getRedirectUrls(), 'json', $context);
377377
$data['logo'] = $object->getLogo();
378378
$data['source'] = $object->getSource();
379-
$data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:sP');
379+
$data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:sP');
380380
foreach ($object as $key => $value_1) {
381381
if (preg_match('/.*/', (string) $key)) {
382382
$data[$key] = $value_1;

0 commit comments

Comments
 (0)