| @@ 92-100 (lines=9) @@ | ||
| 89 | * |
|
| 90 | * @return DeleteResponse |
|
| 91 | */ |
|
| 92 | public function delete(string $domain, string $address) |
|
| 93 | { |
|
| 94 | Assert::stringNotEmpty($domain); |
|
| 95 | Assert::stringNotEmpty($address); |
|
| 96 | ||
| 97 | $response = $this->httpDelete(sprintf('/v3/%s/bounces/%s', $domain, $address)); |
|
| 98 | ||
| 99 | return $this->hydrateResponse($response, DeleteResponse::class); |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * @param string $domain Domain to delete all bounces for |
|
| @@ 95-103 (lines=9) @@ | ||
| 92 | * |
|
| 93 | * @return DeleteResponse |
|
| 94 | */ |
|
| 95 | public function delete(string $domain, string $address) |
|
| 96 | { |
|
| 97 | Assert::stringNotEmpty($domain); |
|
| 98 | Assert::stringNotEmpty($address); |
|
| 99 | ||
| 100 | $response = $this->httpDelete(sprintf('/v3/%s/complaints/%s', $domain, $address)); |
|
| 101 | ||
| 102 | return $this->hydrateResponse($response, DeleteResponse::class); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * @param string $domain Domain to delete all bounces for |
|
| @@ 79-86 (lines=8) @@ | ||
| 76 | /** |
|
| 77 | * @return ShowResponse|ResponseInterface |
|
| 78 | */ |
|
| 79 | public function show(string $domain, string $webhook) |
|
| 80 | { |
|
| 81 | Assert::notEmpty($domain); |
|
| 82 | Assert::notEmpty($webhook); |
|
| 83 | $response = $this->httpGet(sprintf('/v3/domains/%s/webhooks/%s', $domain, $webhook)); |
|
| 84 | ||
| 85 | return $this->hydrateResponse($response, ShowResponse::class); |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * @return CreateResponse|ResponseInterface |
|
| @@ 128-136 (lines=9) @@ | ||
| 125 | /** |
|
| 126 | * @return DeleteResponse|ResponseInterface |
|
| 127 | */ |
|
| 128 | public function delete(string $domain, string $id) |
|
| 129 | { |
|
| 130 | Assert::notEmpty($domain); |
|
| 131 | Assert::notEmpty($id); |
|
| 132 | ||
| 133 | $response = $this->httpDelete(sprintf('/v3/domains/%s/webhooks/%s', $domain, $id)); |
|
| 134 | ||
| 135 | return $this->hydrateResponse($response, DeleteResponse::class); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| @@ 229-237 (lines=9) @@ | ||
| 226 | * |
|
| 227 | * @throws \Exception |
|
| 228 | */ |
|
| 229 | public function delete(string $list, string $address) |
|
| 230 | { |
|
| 231 | Assert::stringNotEmpty($list); |
|
| 232 | Assert::stringNotEmpty($address); |
|
| 233 | ||
| 234 | $response = $this->httpDelete(sprintf('/v3/lists/%s/members/%s', $list, $address)); |
|
| 235 | ||
| 236 | return $this->hydrateResponse($response, DeleteResponse::class); |
|
| 237 | } |
|
| 238 | } |
|
| 239 | ||
| @@ 106-114 (lines=9) @@ | ||
| 103 | * |
|
| 104 | * @return DeleteResponse|ResponseInterface |
|
| 105 | */ |
|
| 106 | public function delete(string $domain, string $tag) |
|
| 107 | { |
|
| 108 | Assert::stringNotEmpty($domain); |
|
| 109 | Assert::stringNotEmpty($tag); |
|
| 110 | ||
| 111 | $response = $this->httpDelete(sprintf('/v3/%s/tags/%s', $domain, $tag)); |
|
| 112 | ||
| 113 | return $this->hydrateResponse($response, DeleteResponse::class); |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * @return CountryResponse|ResponseInterface |
|