forked from apoloz/alfa-bank-sdk
28 lines
685 B
PHP
28 lines
685 B
PHP
<?php
|
|
|
|
namespace Gemini\AlfaBank\Requests\NominalAccounts\Payouts;
|
|
|
|
use Gemini\AlfaBank\Data\NominalAccounts\Payouts\TaxRefundResponseData;
|
|
use Saloon\Enums\Method;
|
|
use Saloon\Http\Request;
|
|
use Saloon\Http\Response;
|
|
|
|
class GetTaxRefundStatusRequest extends Request
|
|
{
|
|
protected Method $method = Method::GET;
|
|
|
|
public function __construct(
|
|
protected string $taxRefundId
|
|
) {}
|
|
|
|
public function resolveEndpoint(): string
|
|
{
|
|
return "/api/na/jp/v1/tax-refund/{$this->taxRefundId}/status";
|
|
}
|
|
|
|
public function createDtoFromResponse(Response $response): TaxRefundResponseData
|
|
{
|
|
return TaxRefundResponseData::from($response->json());
|
|
}
|
|
}
|