generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from stitch-digital/johntrickett86-add-missing…
…-requests missed requests from initial commit
- Loading branch information
Showing
11 changed files
with
281 additions
and
8 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/Requests/Setup/Accounts/CostCentres/RetrieveCostCentres.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace StitchDigital\LaravelSimproApi\Requests\Setup\Accounts\CostCentres; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
|
||
class RetrieveCostCentres extends Request | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $costCenterId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/accounts/costCenters/'.$this->costCenterId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
use Saloon\PaginationPlugin\Contracts\Paginatable; | ||
|
||
class GetAssetTypeAttachments extends Request implements Paginatable | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId.'/attachments/files/'; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Requests/Setup/AssetTypes/GetAssetTypeCustomFields.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
use Saloon\PaginationPlugin\Contracts\Paginatable; | ||
|
||
class GetAssetTypeCustomFields extends Request implements Paginatable | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId.'/customFields/'; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Requests/Setup/AssetTypes/GetAssetTypeServiceLevelFailurePoints.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
use Saloon\PaginationPlugin\Contracts\Paginatable; | ||
|
||
class GetAssetTypeServiceLevelFailurePoints extends Request implements Paginatable | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeServiceLevelID, protected int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId.'/serviceLevels/'.$this->assetTypeServiceLevelID.'/failurePoints/'; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Requests/Setup/AssetTypes/GetAssetTypeServiceLevels.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
use Saloon\PaginationPlugin\Contracts\Paginatable; | ||
|
||
class GetAssetTypeServiceLevels extends Request implements Paginatable | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId.'/serviceLevels/'; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Requests/Setup/AssetTypes/GetAssetTypeTestReadings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
use Saloon\PaginationPlugin\Contracts\Paginatable; | ||
|
||
class GetAssetTypeTestReadings extends Request implements Paginatable | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId.'/testReadings/'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
|
||
class RetrieveAssetType extends Request | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Requests/Setup/AssetTypes/RetrieveAssetTypeTestReadings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace App\Http\Integrations\Simpro\Requests\Setup\AssetTypes; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
|
||
class RetrieveAssetTypeTestReadings extends Request | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $assetTypeTestReadingId, protected int $assetTypeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/assetTypes/'.$this->assetTypeId.'/testReadings/'.$this->assetTypeTestReadingId; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Requests/Setup/StatusCodes/CustomerInvoices/RetrieveInvoiceStatusCodes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace StitchDigital\LaravelSimproApi\Requests\Setup\StatusCodes\CustomerInvoices; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
|
||
class RetrieveInvoiceStatusCodes extends Request | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $statusCodeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/statusCodes/customerInvoices/'.$this->statusCodeId; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Requests/Setup/StatusCodes/Projects/RetrieveProjectStatusCodes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace StitchDigital\LaravelSimproApi\Requests\Setup\StatusCodes\Projects; | ||
|
||
use Saloon\Enums\Method; | ||
use Saloon\Http\Request; | ||
|
||
class RetrieveProjectStatusCodes extends Request | ||
{ | ||
/** | ||
* The HTTP method of the request | ||
*/ | ||
protected Method $method = Method::GET; | ||
|
||
public function __construct(protected readonly int $statusCodeId, protected int $companyId) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* The endpoint for the request | ||
*/ | ||
public function resolveEndpoint(): string | ||
{ | ||
return '/companies/'.$this->companyId.'/setup/statusCodes/projects/'.$this->statusCodeId; | ||
} | ||
} |