We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9152ed5 commit 216a59bCopy full SHA for 216a59b
src/Requests/Catalogs/GetCatalogItems.php
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace StitchDigital\LaravelSimproApi\Requests\Catalogs;
6
7
+use Saloon\Enums\Method;
8
+use Saloon\Http\Request;
9
+use Saloon\PaginationPlugin\Contracts\Paginatable;
10
11
+class GetCatalogItems extends Request implements Paginatable
12
+{
13
+ public function __construct(protected readonly int $companyId)
14
+ {
15
+ //
16
+ }
17
18
+ /**
19
+ * The HTTP method of the request
20
+ */
21
+ protected Method $method = Method::GET;
22
23
24
+ * The endpoint for the request
25
26
+ public function resolveEndpoint(): string
27
28
+ return '/companies/'.$this->companyId.'/catalogs/';
29
30
+}
0 commit comments