From 11b0dad21e0f2ce0eb7a999de4ee59483381a3bc Mon Sep 17 00:00:00 2001 From: pavelvais Date: Thu, 5 Sep 2024 13:30:03 +0200 Subject: [PATCH] renamed `createAutoplacementTags` function to `createTagsByAutoplacement` --- src/Endpoint/EnvelopeDocumentsEndpoint.php | 2 +- tests/Endpoint/EnvelopeDocumentsEndpointTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Endpoint/EnvelopeDocumentsEndpoint.php b/src/Endpoint/EnvelopeDocumentsEndpoint.php index 187c50d..2a09f66 100644 --- a/src/Endpoint/EnvelopeDocumentsEndpoint.php +++ b/src/Endpoint/EnvelopeDocumentsEndpoint.php @@ -71,7 +71,7 @@ public function tags(string $id, array $query = []): ListResource /** * @return ListResource */ - public function createAutoplacementTags(string $document): ListResource + public function createTagsByAutoplacement(string $document): ListResource { return $this->createListResource( $this->postRequest('/{document}/tags/by-autoplacement', ['document' => $document]), diff --git a/tests/Endpoint/EnvelopeDocumentsEndpointTest.php b/tests/Endpoint/EnvelopeDocumentsEndpointTest.php index c8a097a..cd922e1 100644 --- a/tests/Endpoint/EnvelopeDocumentsEndpointTest.php +++ b/tests/Endpoint/EnvelopeDocumentsEndpointTest.php @@ -43,9 +43,9 @@ public function testTags(): void self::assertLastRequest('GET', '/api/envelopes/bar/documents/foo/tags?foo=bar'); } - public function testAutoplacementTags(): void + public function testTagsByAutoplacement(): void { - self::endpoint()->createAutoplacementTags('foo'); + self::endpoint()->createTagsByAutoplacement('foo'); self::assertLastRequest('POST', '/api/envelopes/bar/documents/foo/tags/by-autoplacement'); }