Skip to content

Commit

Permalink
Merge pull request #31 from robert-stanciu/patch-3
Browse files Browse the repository at this point in the history
fix: TaxIdentificationNumberNotFoundException n/a anymore
  • Loading branch information
ciungulete authored May 25, 2024
2 parents 39e1a55 + a8e56bc commit eaf0df9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Transporters/HttpTransporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Anaf\Contracts\TransporterContract;
use Anaf\Exceptions\FileTypeException;
use Anaf\Exceptions\TaxIdentificationNumberNotFoundException;
use Anaf\Exceptions\TransporterException;
use Anaf\Exceptions\UnserializableResponse;
use Anaf\ValueObjects\Transporter\BaseUri;
Expand Down Expand Up @@ -38,7 +37,6 @@ public function __construct(
/**
* {@inheritDoc}
*
* @throws TaxIdentificationNumberNotFoundException
* @throws JsonException
*/
public function requestObject(Payload $payload): array
Expand Down Expand Up @@ -78,14 +76,6 @@ public function requestObject(Payload $payload): array

}

if (! array_key_exists('notFound', $response) && ! array_key_exists('Errors', $response)) {
return $response;
}

if ($response['notFound'] !== []) {
throw new TaxIdentificationNumberNotFoundException();
}

return $response;
}

Expand Down

0 comments on commit eaf0df9

Please sign in to comment.