forked from apoloz/alfa-bank-sdk
first commit
This commit is contained in:
27
src/Requests/FileExchange/DownloadFileRequest.php
Normal file
27
src/Requests/FileExchange/DownloadFileRequest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Gemini\AlfaBank\Requests\FileExchange;
|
||||
|
||||
use Saloon\Enums\Method;
|
||||
use Saloon\Http\Request;
|
||||
|
||||
class DownloadFileRequest extends Request
|
||||
{
|
||||
protected Method $method = Method::GET;
|
||||
|
||||
public function __construct(
|
||||
protected string $downloadUrl
|
||||
) {}
|
||||
|
||||
public function resolveEndpoint(): string
|
||||
{
|
||||
return $this->downloadUrl;
|
||||
}
|
||||
|
||||
protected function defaultHeaders(): array
|
||||
{
|
||||
return [
|
||||
'Accept' => '*/*',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user