Files
oficial/cli/src/Command/Ventas/Cuotas/Hoy.php

23 lines
705 B
PHP
Raw Normal View History

2023-11-25 00:56:18 -03:00
<?php
namespace Incoviba\Command\Ventas\Cuotas;
use Symfony\Component\Console;
2023-11-25 21:38:00 -03:00
use Incoviba\Common\Alias\Command;
2023-11-25 00:56:18 -03:00
#[Console\Attribute\AsCommand(
2024-08-27 14:51:06 -04:00
name: 'ventas:cuotas:hoy',
description: 'Obtiene las cuotas de ventas que vencen hoy'
2023-11-25 00:56:18 -03:00
)]
2023-11-25 21:38:00 -03:00
class Hoy extends Command
2023-11-25 00:56:18 -03:00
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
2023-11-25 00:56:18 -03:00
{
2023-11-25 21:38:00 -03:00
$this->logger->debug("Running {$this->getName()}");
2023-11-25 00:56:18 -03:00
$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;
}
}