give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Resources
/
Contracts
/
CreditsLedgerResourceInterface.php
give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Resources
/
Contracts
Last commit date
CreditsLedgerResourceInterface.php
3 months ago
CreditsPoolsResourceInterface.php
3 months ago
CreditsQuotasResourceInterface.php
3 months ago
CreditsResourceInterface.php
3 months ago
EntitlementsResourceInterface.php
3 months ago
LicensesResourceInterface.php
3 months ago
ProductsResourceInterface.php
3 months ago
TokensResourceInterface.php
3 months ago
CreditsLedgerResourceInterface.php
39 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts; |
| 4 | |
| 5 | use Generator; |
| 6 | use JsonException; |
| 7 | use Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\Contracts\ApiErrorExceptionInterface; |
| 8 | use Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\MissingAuthenticationException; |
| 9 | use Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\UnexpectedResponseException; |
| 10 | use Give\Vendors\LiquidWeb\LicensingApiClient\Requests\Credit\ListLedgerEntries; |
| 11 | use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\LedgerPage; |
| 12 | use Give\Vendors\Psr\Http\Client\ClientExceptionInterface; |
| 13 | |
| 14 | /** |
| 15 | * Defines the credits ledger resource surface. |
| 16 | */ |
| 17 | interface CreditsLedgerResourceInterface |
| 18 | { |
| 19 | /** |
| 20 | * @throws ApiErrorExceptionInterface |
| 21 | * @throws MissingAuthenticationException |
| 22 | * @throws UnexpectedResponseException |
| 23 | * @throws ClientExceptionInterface |
| 24 | * @throws JsonException |
| 25 | */ |
| 26 | public function list(ListLedgerEntries $request): LedgerPage; |
| 27 | |
| 28 | /** |
| 29 | * @throws ApiErrorExceptionInterface |
| 30 | * @throws MissingAuthenticationException |
| 31 | * @throws UnexpectedResponseException |
| 32 | * @throws ClientExceptionInterface |
| 33 | * @throws JsonException |
| 34 | * |
| 35 | * @return Generator<int, LedgerPage, mixed, void> |
| 36 | */ |
| 37 | public function pages(ListLedgerEntries $request): Generator; |
| 38 | } |
| 39 |