Skip to content

Commit

Permalink
Add BatchSendingsEndpoint.send endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kalianko committed Oct 16, 2024
1 parent 37fe321 commit b8a386b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [Unreleased]
- Add `BatchSendingsEndpoint.send` endpoint

## [2.5.0] - 2024-10-14
- Add `AccountBilling.automaticTagsPlacement`
- Add `AccountBilling.batchSending`
Expand Down
6 changes: 6 additions & 0 deletions src/Endpoint/BatchSendingsEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use DigitalCz\DigiSign\Endpoint\Traits\DeleteEndpointTrait;
use DigitalCz\DigiSign\Endpoint\Traits\GetEndpointTrait;
use DigitalCz\DigiSign\Endpoint\Traits\UpdateEndpointTrait;
use DigitalCz\DigiSign\Resource\BaseResource;
use DigitalCz\DigiSign\Resource\BatchSending;

/**
Expand All @@ -34,4 +35,9 @@ public function items(BatchSending|string $id): BatchSendingItemsEndpoint
{
return new BatchSendingItemsEndpoint($this, $id);
}

public function send(BatchSending|string $id): BaseResource

Check warning on line 39 in src/Endpoint/BatchSendingsEndpoint.php

View check run for this annotation

Codecov / codecov/patch

src/Endpoint/BatchSendingsEndpoint.php#L39

Added line #L39 was not covered by tests
{
return $this->makeResource($this->postRequest('/{id}/send', ['id' => $id]));

Check warning on line 41 in src/Endpoint/BatchSendingsEndpoint.php

View check run for this annotation

Codecov / codecov/patch

src/Endpoint/BatchSendingsEndpoint.php#L41

Added line #L41 was not covered by tests
}
}

0 comments on commit b8a386b

Please sign in to comment.