Skip to content

Commit e52dc4a

Browse files
committed
Small fix
1 parent b31036c commit e52dc4a

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "simplepay-ai/api-client",
33
"description": "SimplePay API Client",
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"type": "library",
66
"license": "MIT",
77
"autoload": {

src/Services/UserPATService.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ public function create(PATCreateRequest $request): PAT
4747
return $this->data(PAT::class, $res);
4848
}
4949

50-
public function delete(string $id): PAT
50+
public function delete(string $id): void
5151
{
5252
$res = $this->request('DELETE', sprintf('/%s?v=1', $id));
5353

5454
$status = $res->getStatusCode();
5555

56-
if ($status !== 200) {
56+
if ($status !== 204) {
5757
throw new HttpException('', $status);
5858
}
59-
60-
return $this->data(PAT::class, $res);
6159
}
6260
}

0 commit comments

Comments
 (0)