diff --git a/src/Endpoint/EnvelopeDocumentsEndpoint.php b/src/Endpoint/EnvelopeDocumentsEndpoint.php index 2a09f66..0aa0ab7 100644 --- a/src/Endpoint/EnvelopeDocumentsEndpoint.php +++ b/src/Endpoint/EnvelopeDocumentsEndpoint.php @@ -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; @@ -69,11 +70,11 @@ public function tags(string $id, array $query = []): ListResource } /** - * @return ListResource + * @return Collection */ - 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, );