Skip to content

Commit 9b8fa3f

Browse files
committed
fix stan
1 parent 2fe2a45 commit 9b8fa3f

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

src/Integration/Requests/Document/UploadSignatureDocument.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,16 @@ protected function defaultBody(): array
5555
)))->when($this->password, fn (Collection $params) => $params->push(new MultipartValue(
5656
name: 'password',
5757
value: $this->password,
58-
)))->when($this->initials, fn (Collection $params) => $params->push(new MultipartValue(
59-
name: 'initials',
60-
value: $this->initials,
61-
)))->when($this->parse_anchors, fn (Collection $params) => $params->push(new MultipartValue(
58+
)))->when($this->initials, fn (Collection $params) => $params->push(
59+
new MultipartValue(
60+
name: 'alignment',
61+
value: $this->initials['alignment'],
62+
),
63+
new MultipartValue(
64+
name: 'y',
65+
value: $this->initials['y'],
66+
),
67+
))->when($this->parse_anchors, fn (Collection $params) => $params->push(new MultipartValue(
6268
name: 'parse_anchors',
6369
value: $this->parse_anchors ? 'true' : 'false',
6470
)))->toArray();

src/Integration/Requests/SignatureRequest/UpdateSignatureRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Elegantly\Yousign\Integration\Requests\SignatureRequest;
44

5+
use Carbon\Carbon;
56
use Saloon\Contracts\Body\HasBody;
67
use Saloon\Enums\Method;
78
use Saloon\Http\Request;

src/Integration/Resource/Document.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
use Elegantly\Yousign\Integration\Requests\Document\ReplaceSignatureDocument;
1111
use Elegantly\Yousign\Integration\Requests\Document\UpdateSignatureDocument;
1212
use Elegantly\Yousign\Integration\Requests\Document\UploadSignatureDocument;
13-
use Elegantly\Yousign\Integration\Resource;
13+
use Elegantly\Yousign\Integration\Resource as BaseResource;
1414
use Psr\Http\Message\StreamInterface;
1515
use Saloon\Http\Response;
1616

17-
class Document extends Resource
17+
class Document extends BaseResource
1818
{
1919
public function get(
2020
string $signatureRequestId,

src/Webhooks/ProcessYousignWebhookJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function handle()
3434
}
3535

3636
if (! class_exists($jobClass)) {
37-
throw new Exception("Could not process webhook id `{$this->webhookCall->id}` of type `{$this->webhookCall->type} because the configured jobclass `$jobClass` does not exist.");
37+
throw new Exception("Could not process webhook id `{$this->webhookCall->id}` because the configured jobclass `$jobClass` does not exist.");
3838
}
3939

4040
dispatch(new $jobClass($this->webhookCall));

src/Webhooks/YousignWebhooksController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __invoke(Request $request)
1717
'signature_validator' => YousignSignatureValidator::class,
1818
'webhook_profile' => config('yousign.webhooks.profile'),
1919
'webhook_model' => config('yousign.webhooks.model'),
20-
'process_webhook_job' => ProcessStripeWebhookJob::class,
20+
'process_webhook_job' => ProcessYousignWebhookJob::class,
2121
]);
2222

2323
return (new WebhookProcessor($request, $webhookConfig))->process();

0 commit comments

Comments
 (0)