Skip to content

Commit 81b83a5

Browse files
committed
Add status param to bounces
1 parent af372c5 commit 81b83a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Endpoint/BouncesClient.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ public function listRegex(): array
4141
* @return BounceCollection
4242
* @throws ApiException If an API error occurs
4343
*/
44-
public function list(?int $afterId = null, int $limit = 25): BounceCollection
44+
public function list(?int $afterId = null, ?int $limit = 25, ?string $status = null): BounceCollection
4545
{
4646
$queryParams = ['limit' => $limit];
4747

4848
if ($afterId !== null) {
4949
$queryParams['after_id'] = $afterId;
5050
}
51+
if ($status !== null) {
52+
$queryParams['status'] = $status;
53+
}
5154
$response = $this->client->get('bounces', ['query' => $queryParams]);
5255
return new BounceCollection($response);
5356
}

0 commit comments

Comments
 (0)