PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.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 2.3.2 All 256 releases
give / vendor / vendor-prefixed / stellarwp / licensing-api-client / src / Resources / Contracts / CreditsPoolsResourceInterface.php

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

58 lines 2.0 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\CreatePool;
10 use Give\Vendors\LiquidWeb\LicensingApiClient\Requests\Credit\DeletePool as DeletePoolRequest;
11 use Give\Vendors\LiquidWeb\LicensingApiClient\Requests\Credit\UpdatePool;
12 use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\DeletePool;
13 use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\PoolCollection;
14 use Give\Vendors\LiquidWeb\LicensingApiClient\Responses\Credit\ValueObjects\CreditPool;
15 use Give\Vendors\Psr\Http\Client\ClientExceptionInterface;
16
17 /**
18 * Defines the credits pools resource surface.
19 */
20 interface CreditsPoolsResourceInterface
21 {
22 /**
23 * @throws ApiErrorExceptionInterface
24 * @throws MissingAuthenticationException
25 * @throws UnexpectedResponseException
26 * @throws ClientExceptionInterface
27 * @throws JsonException
28 */
29 public function list(string $licenseKey, bool $active = false): PoolCollection;
30
31 /**
32 * @throws ApiErrorExceptionInterface
33 * @throws MissingAuthenticationException
34 * @throws UnexpectedResponseException
35 * @throws ClientExceptionInterface
36 * @throws JsonException
37 */
38 public function create(CreatePool $request): CreditPool;
39
40 /**
41 * @throws ApiErrorExceptionInterface
42 * @throws MissingAuthenticationException
43 * @throws UnexpectedResponseException
44 * @throws ClientExceptionInterface
45 * @throws JsonException
46 */
47 public function update(UpdatePool $request): CreditPool;
48
49 /**
50 * @throws ApiErrorExceptionInterface
51 * @throws MissingAuthenticationException
52 * @throws UnexpectedResponseException
53 * @throws ClientExceptionInterface
54 * @throws JsonException
55 */
56 public function delete(DeletePoolRequest $request): DeletePool;
57 }
58