PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
give / vendor / vendor-prefixed / stellarwp / licensing-api-client / src / Resources / Contracts / CreditsQuotasResourceInterface.php

CreditsQuotasResourceInterface.php in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at vendor/vendor-prefixed/stellarwp/licensing-api-client/src/Resources/Contracts/CreditsQuotasResourceInterface.php

47 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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