Skip to content

Commit

Permalink
fix: createTagsByAutoplacement function returns Collection not ListRe…
Browse files Browse the repository at this point in the history
…sult (#262)

Co-authored-by: pavelvais <pavel.vais@digital.cz>
  • Loading branch information
PavelVais and pavelvais authored Sep 6, 2024
1 parent 150fb3c commit 4c8b083
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Endpoint/EnvelopeDocumentsEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace DigitalCz\DigiSign\Endpoint;

use DigitalCz\DigiSign\Endpoint\Traits\CRUDEndpointTrait;
use DigitalCz\DigiSign\Resource\Collection;
use DigitalCz\DigiSign\Resource\Envelope;
use DigitalCz\DigiSign\Resource\EnvelopeDocument;
use DigitalCz\DigiSign\Resource\EnvelopeDocumentSignatureSheets;
Expand Down Expand Up @@ -69,11 +70,11 @@ public function tags(string $id, array $query = []): ListResource
}

/**
* @return ListResource<EnvelopeTag>
* @return Collection<EnvelopeTag>
*/
public function createTagsByAutoplacement(string $document): ListResource
public function createTagsByAutoplacement(string $document): Collection
{
return $this->createListResource(
return $this->createCollectionResource(
$this->postRequest('/{document}/tags/by-autoplacement', ['document' => $document]),
EnvelopeTag::class,
);
Expand Down

0 comments on commit 4c8b083

Please sign in to comment.