forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Apoloz\AlfaBank\Requests\Partner;
|
||||
|
||||
use Spatie\LaravelData\Data;
|
||||
use Saloon\Contracts\Body\HasBody;
|
||||
use Saloon\Enums\Method;
|
||||
use Saloon\Http\Request;
|
||||
|
||||
@@ -26,6 +26,11 @@ class GetPartnerApplicationsRequest extends Request
|
||||
return '/api/partner/jp/v1/individuals';
|
||||
}
|
||||
|
||||
public function createDtoFromResponse(Response $response): DataCollection
|
||||
{
|
||||
return PartnerApplicationData::collect($response->json('items') ?? [], DataCollection::class);
|
||||
}
|
||||
|
||||
protected function defaultQuery(): array
|
||||
{
|
||||
return array_filter([
|
||||
@@ -35,9 +40,4 @@ class GetPartnerApplicationsRequest extends Request
|
||||
'offset' => $this->offset,
|
||||
]);
|
||||
}
|
||||
|
||||
public function createDtoFromResponse(Response $response): DataCollection
|
||||
{
|
||||
return PartnerApplicationData::collect($response->json('items') ?? [], DataCollection::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user