Comando para resetear Toku
This commit is contained in:
@ -16,6 +16,7 @@ return [
|
||||
'ventas:cuotas:vencer' => Incoviba\Command\Ventas\Cuotas\PorVencer::class,
|
||||
'queue' => Incoviba\Command\Queue::class,
|
||||
'external:services' => Incoviba\Command\ExternalServices::class,
|
||||
'external:toku:reset' => Incoviba\Command\Ventas\MedioPagos\Toku\Reset::class,
|
||||
];
|
||||
}
|
||||
];
|
||||
|
20
cli/src/Command/Ventas/MedioPagos/Toku/Reset.php
Normal file
20
cli/src/Command/Ventas/MedioPagos/Toku/Reset.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace Incoviba\Command\Ventas\MedioPagos\Toku;
|
||||
|
||||
use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(name: 'external:toku:reset')]
|
||||
class Reset extends Command
|
||||
{
|
||||
protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$uri = '/api/external/toku/reset';
|
||||
$output->writeln("GET {$uri}");
|
||||
$response = $this->client->get($uri);
|
||||
$output->writeln("Response Code: {$response->getStatusCode()}");
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user