feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
143 changed files with 474 additions and 4797 deletions
Showing only changes of commit 64047ef577 - Show all commits

View File

@ -4,7 +4,9 @@ namespace Incoviba\Service\Venta\MediosPago\Toku;
use DateMalformedStringException; use DateMalformedStringException;
use DateTimeImmutable; use DateTimeImmutable;
use DateTimeZone; use DateTimeZone;
use PDOException;
use Psr\Http\Client\ClientInterface; use Psr\Http\Client\ClientInterface;
use Psr\Log\LoggerInterface;
use Incoviba\Common\Implement\Exception\EmptyResponse; use Incoviba\Common\Implement\Exception\EmptyResponse;
use Incoviba\Common\Implement\Exception\EmptyResult; use Incoviba\Common\Implement\Exception\EmptyResult;
use Incoviba\Exception\InvalidResult; use Incoviba\Exception\InvalidResult;
@ -13,7 +15,6 @@ use Incoviba\Repository;
use Incoviba\Service\UF; use Incoviba\Service\UF;
use Incoviba\Service\Venta\MediosPago\AbstractEndPoint; use Incoviba\Service\Venta\MediosPago\AbstractEndPoint;
use Incoviba\Service\Venta\Pago; use Incoviba\Service\Venta\Pago;
use Psr\Log\LoggerInterface;
class Invoice extends AbstractEndPoint class Invoice extends AbstractEndPoint
{ {
@ -68,7 +69,7 @@ class Invoice extends AbstractEndPoint
try { try {
$this->delete($tokuId); $this->delete($tokuId);
$this->invoiceRepository->removeByTokuId($tokuId); $this->invoiceRepository->removeByTokuId($tokuId);
} catch (EmptyResponse $exception) { } catch (EmptyResponse | PDOException $exception) {
$this->logger->warning($exception, ['invoice->toku_id' => $tokuId]); $this->logger->warning($exception, ['invoice->toku_id' => $tokuId]);
} }
} }

View File

@ -1,6 +1,7 @@
<?php <?php
namespace Incoviba\Service\Venta\MediosPago\Toku; namespace Incoviba\Service\Venta\MediosPago\Toku;
use PDOException;
use Psr\Http\Client\ClientInterface; use Psr\Http\Client\ClientInterface;
use Incoviba\Common\Implement\Exception\EmptyResponse; use Incoviba\Common\Implement\Exception\EmptyResponse;
use Incoviba\Common\Implement\Exception\EmptyResult; use Incoviba\Common\Implement\Exception\EmptyResult;
@ -63,7 +64,7 @@ class Subscription extends AbstractEndPoint
try { try {
$this->delete($tokuId); $this->delete($tokuId);
$this->subscriptionRepsitory->removeByTokuId($tokuId); $this->subscriptionRepsitory->removeByTokuId($tokuId);
} catch (EmptyResponse $exception) { } catch (EmptyResponse | PDOException $exception) {
$this->logger->warning($exception, ['subscription->toku_id' => $tokuId]); $this->logger->warning($exception, ['subscription->toku_id' => $tokuId]);
} }
} }