From 4c8b083f3eb0b3aae817bd19a8408e62f3bdb352 Mon Sep 17 00:00:00 2001 From: Pavel Vais Date: Fri, 6 Sep 2024 16:21:04 +0200 Subject: [PATCH] fix: createTagsByAutoplacement function returns Collection not ListResult (#262) Co-authored-by: pavelvais --- src/Endpoint/EnvelopeDocumentsEndpoint.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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, );