Files
oficial/cli/src/Command/Ventas/Cuotas/Pendientes.php
2023-11-25 21:38:00 -03:00

22 lines
657 B
PHP

<?php
namespace Incoviba\Command\Ventas\Cuotas;
use Symfony\Component\Console;
use Incoviba\Common\Alias\Command;
#[Console\Attribute\AsCommand(
name: 'ventas:cuotas:pendientes'
)]
class Pendientes extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/pendientes';
$output->writeln("GET {$uri}");
$response = $this->client->get($uri);
$output->writeln("Response Code: {$response->getStatusCode()}");
return Console\Command\Command::SUCCESS;
}
}