Reorden Toku
This commit is contained in:
@ -4,7 +4,6 @@ namespace Incoviba\Controller\API\Ventas\MediosPago;
|
||||
use Psr\Http\Message\ResponseFactoryInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Incoviba\Common\Implement\Exception\EmptyResponse;
|
||||
use Incoviba\Common\Ideal\Controller;
|
||||
use Incoviba\Controller\API\withJson;
|
||||
use Incoviba\Exception\InvalidResult;
|
||||
@ -15,8 +14,8 @@ class Toku extends Controller
|
||||
{
|
||||
use withJson;
|
||||
|
||||
public function cuotas(ServerRequestInterface $request, ResponseInterface $response,
|
||||
Service\MediosPago\Toku $tokuService, Service\Venta $ventaService, int $venta_id): ResponseInterface
|
||||
public function cuotas(ServerRequestInterface $request, ResponseInterface $response,
|
||||
Service\Venta\MediosPago\Toku $tokuService, Service\Venta $ventaService, int $venta_id): ResponseInterface
|
||||
{
|
||||
$input = $request->getParsedBody();
|
||||
$output = [
|
||||
@ -38,9 +37,9 @@ class Toku extends Controller
|
||||
} catch (Read | InvalidResult) {}
|
||||
return $this->withJson($response, $output);
|
||||
}
|
||||
public function success(ServerRequestInterface $request, ResponseInterface $response,
|
||||
ResponseFactoryInterface $responseFactory,
|
||||
Service\MediosPago\Toku $tokuService): ResponseInterface
|
||||
public function success(ServerRequestInterface $request, ResponseInterface $response,
|
||||
ResponseFactoryInterface $responseFactory,
|
||||
Service\Venta\MediosPago\Toku $tokuService): ResponseInterface
|
||||
{
|
||||
$body = $request->getBody();
|
||||
$input = json_decode($body->getContents(), true);
|
||||
|
Reference in New Issue
Block a user