give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Resources
/
Contracts
/
CreditsQuotasResourceInterface.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
CreditsQuotasResourceInterface.php
47 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts; |
| 4 | |
| 5 | use JsonException; |
| 6 | use Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\Contracts\ApiErrorExceptionInterface; |
| 7 | use Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\MissingAuthenticationException; |
| 8 | use Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\UnexpectedResponseException; |
| 9 | use Give\Vendors\LiquidWeb\LicensingApiClient\Requests\Credit\SetQuota; |
| 10 | use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\DeleteQuota; |
| 11 | use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\QuotaCollection; |
| 12 | use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\ValueObjects\SiteQuota; |
| 13 | use Give\Vendors\Psr\Http\Client\ClientExceptionInterface; |
| 14 | |
| 15 | /** |
| 16 | * Defines the credits quotas resource surface. |
| 17 | */ |
| 18 | interface CreditsQuotasResourceInterface |
| 19 | { |
| 20 | /** |
| 21 | * @throws ApiErrorExceptionInterface |
| 22 | * @throws MissingAuthenticationException |
| 23 | * @throws UnexpectedResponseException |
| 24 | * @throws ClientExceptionInterface |
| 25 | * @throws JsonException |
| 26 | */ |
| 27 | public function list(string $licenseKey): QuotaCollection; |
| 28 | |
| 29 | /** |
| 30 | * @throws ApiErrorExceptionInterface |
| 31 | * @throws MissingAuthenticationException |
| 32 | * @throws UnexpectedResponseException |
| 33 | * @throws ClientExceptionInterface |
| 34 | * @throws JsonException |
| 35 | */ |
| 36 | public function set(SetQuota $request): SiteQuota; |
| 37 | |
| 38 | /** |
| 39 | * @throws ApiErrorExceptionInterface |
| 40 | * @throws MissingAuthenticationException |
| 41 | * @throws UnexpectedResponseException |
| 42 | * @throws ClientExceptionInterface |
| 43 | * @throws JsonException |
| 44 | */ |
| 45 | public function delete(string $licenseKey, string $domain, string $creditType): DeleteQuota; |
| 46 | } |
| 47 |