Files
oficial/cli/src/Command/Ventas/Cuotas/Hoy.php
aldarien 307f2ac7d7 feature/cierres (#25)
Varios cambios

Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #25
2025-07-22 13:18:00 +00:00

23 lines
705 B
PHP

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