We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc2e965 commit e5e3cfeCopy full SHA for e5e3cfe
src/ContractorApi.php
@@ -26,7 +26,7 @@ public function getInfo(GetInfoRequest $request): GetInfoResponse
26
$response = $this->send($req);
27
$data = $response->getBody()->getContents();
28
29
- if ($request->params->memberParam->extendedFields) {
+ if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300 && $request->params->memberParam->extendedFields) {
30
$array = json_decode($data, true);
31
32
$array['result']['boxes'] = $array['result']['Идентификатор'];
0 commit comments