diff --git a/CHANGELOG.md b/CHANGELOG.md index 58fd8ab..7025f95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes will be documented in this file. Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. ## [Unreleased] +- Add `BatchSendingsEndpoint.MutiSignRecipients` endpoint - Add `MyEndpoint.updatePreferences` endpoint and `MyPreferences` resource - Add `SignatureScenarioVersionInfo.role` - Add `BatchSendingsEndpoint.send` endpoint diff --git a/src/Endpoint/BatchSendingsEndpoint.php b/src/Endpoint/BatchSendingsEndpoint.php index c2457ff..991b6cd 100644 --- a/src/Endpoint/BatchSendingsEndpoint.php +++ b/src/Endpoint/BatchSendingsEndpoint.php @@ -13,7 +13,9 @@ use DigitalCz\DigiSign\Resource\BaseResource; use DigitalCz\DigiSign\Resource\BatchSending; use DigitalCz\DigiSign\Resource\BatchSendingStats; +use DigitalCz\DigiSign\Resource\Collection; use DigitalCz\DigiSign\Resource\ListResource; +use DigitalCz\DigiSign\Resource\MultiSignRecipientInfo; /** * @extends ResourceEndpoint @@ -51,4 +53,15 @@ public function stats(BatchSending|string $id): BatchSendingStats { return $this->createResource($this->getRequest('/{id}/stats', ['id' => $id]), BatchSendingStats::class); } + + /** + * @return Collection + */ + public function multiSignRecipients(BatchSending|string $id): Collection + { + return $this->createCollectionResource( + $this->getRequest('/{id}/multi-sign-recipients', ['id' => $id]), + MultiSignRecipientInfo::class, + ); + } } diff --git a/src/Resource/MultiSignRecipientInfo.php b/src/Resource/MultiSignRecipientInfo.php new file mode 100644 index 0000000..892d85f --- /dev/null +++ b/src/Resource/MultiSignRecipientInfo.php @@ -0,0 +1,18 @@ +multiSignRecipients('foo'); + self::assertLastRequest('GET', "/api/batch-sendings/foo/multi-sign-recipients"); + } + protected static function endpoint(): BatchSendingsEndpoint { return self::dgs()->batchSendings();