Skip to content

Commit

Permalink
Add return type for invalidate and restore endpoints (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasDostalDS authored Apr 2, 2024
1 parent 9e6b72d commit 0c81907
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Endpoint/EnvelopeDocumentsEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ public function replaceFile(EnvelopeDocument|string $document, array $body): Env
);
}

public function invalidate(EnvelopeDocument|string $document): void
public function invalidate(EnvelopeDocument|string $document): EnvelopeDocument
{
$this->postRequest('/{document}/invalidate', ['document' => $document]);
return $this->makeResource(
$this->postRequest('/{document}/invalidate', ['document' => $document]),
);
}

public function restore(EnvelopeDocument|string $document): void
public function restore(EnvelopeDocument|string $document): EnvelopeDocument
{
$this->postRequest('/{document}/restore', ['document' => $document]);
return $this->makeResource(
$this->postRequest('/{document}/restore', ['document' => $document]),
);
}

public function signatureSheets(): EnvelopeDocumentSignatureSheets
Expand Down

0 comments on commit 0c81907

Please sign in to comment.