We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af372c5 commit 81b83a5Copy full SHA for 81b83a5
1 file changed
src/Endpoint/BouncesClient.php
@@ -41,13 +41,16 @@ public function listRegex(): array
41
* @return BounceCollection
42
* @throws ApiException If an API error occurs
43
*/
44
- public function list(?int $afterId = null, int $limit = 25): BounceCollection
+ public function list(?int $afterId = null, ?int $limit = 25, ?string $status = null): BounceCollection
45
{
46
$queryParams = ['limit' => $limit];
47
48
if ($afterId !== null) {
49
$queryParams['after_id'] = $afterId;
50
}
51
+ if ($status !== null) {
52
+ $queryParams['status'] = $status;
53
+ }
54
$response = $this->client->get('bounces', ['query' => $queryParams]);
55
return new BounceCollection($response);
56
0 commit comments