give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Contracts
/
LicensingClientInterface.php
give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Contracts
Last commit date
LicensingClientInterface.php
3 months ago
LicensingClientInterface.php
45 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Give\Vendors\LiquidWeb\LicensingApiClient\Contracts; |
| 4 | |
| 5 | use Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts\CreditsResourceInterface; |
| 6 | use Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts\EntitlementsResourceInterface; |
| 7 | use Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts\LicensesResourceInterface; |
| 8 | use Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts\ProductsResourceInterface; |
| 9 | use Give\Vendors\LiquidWeb\LicensingApiClient\Resources\Contracts\TokensResourceInterface; |
| 10 | use Give\Vendors\LiquidWeb\LicensingApiClient\Tracing\TraceContext; |
| 11 | use Give\Vendors\LiquidWeb\LicensingApiClient\Tracing\TraceParent; |
| 12 | |
| 13 | /** |
| 14 | * Defines the root entrypoint for the Licensing API client. |
| 15 | */ |
| 16 | interface LicensingClientInterface |
| 17 | { |
| 18 | public function entitlements(): EntitlementsResourceInterface; |
| 19 | |
| 20 | public function licenses(): LicensesResourceInterface; |
| 21 | |
| 22 | public function products(): ProductsResourceInterface; |
| 23 | |
| 24 | public function credits(): CreditsResourceInterface; |
| 25 | |
| 26 | public function tokens(): TokensResourceInterface; |
| 27 | |
| 28 | public function withoutAuth(): self; |
| 29 | |
| 30 | public function withConfiguredToken(): self; |
| 31 | |
| 32 | public function withToken(string $token): self; |
| 33 | |
| 34 | /** |
| 35 | * @param array<string, string|int|float|bool> $headers |
| 36 | */ |
| 37 | public function withHeaders(array $headers): self; |
| 38 | |
| 39 | public function withTraceParent(TraceParent $traceParent): self; |
| 40 | |
| 41 | public function withTraceContext(TraceContext $traceContext): self; |
| 42 | |
| 43 | public function withoutHeaders(): self; |
| 44 | } |
| 45 |