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'); }