refactored code

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
envoyr committed 2025-04-30 03:45:10 +02:00
1 parent 85702fcb2c
commit 4b23f6ddbb
42 files changed
+1139 -594

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Anikeen\Id\Contracts;
use Anikeen\Id\Exceptions\RequestRequiresClientIdException;
use Anikeen\Id\Helpers\Paginator;
use Anikeen\Id\Result;
use GuzzleHttp\Exception\GuzzleException;
use stdClass;
interface Billable
{
/**
* Get the user data of the billable.
*
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
public function getUserData(): ?stdClass;
/**
* Send a request to the API.
*
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
public function request(string $method, string $path, null|array $payload = null, array $parameters = [], ?Paginator $paginator = null): Result;
}