We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a16088 commit 4e4bc5aCopy full SHA for 4e4bc5a
2 files changed
src/AbstractHttpClient.php
@@ -45,7 +45,7 @@ public function __construct(Client $client)
45
*/
46
public function delete(string $url): Response
47
{
48
- return $this->generateHttpResponse('GET', $url);
+ return $this->generateHttpResponse('DELETE', $url);
49
}
50
51
/**
src/Customers/CustomersClient.php
@@ -13,6 +13,16 @@ class CustomersClient extends AbstractHttpClient
13
14
const URL = '/customers';
15
16
+ /**
17
+ * @param string $id
18
+ * @return Response
19
+ */
20
+ public function deleteCustomer(string $id): Response
21
+ {
22
+ $url = self::URL . '/' . $id;
23
+ return $this->delete($url);
24
+ }
25
+
26
27
* @param string|null $id
28
* @param array $filters
0 commit comments