2023-05-03 10:41:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
2023-05-19 12:43:52 +02:00
|
|
|
namespace App\Console\Commands;
|
2023-05-03 10:41:46 +02:00
|
|
|
|
2023-05-19 12:43:52 +02:00
|
|
|
use App\Jobs\Payment\SystempayCreditTransactionUpdate;
|
|
|
|
|
use Illuminate\Console\Command;
|
2023-05-03 10:41:46 +02:00
|
|
|
|
2023-05-19 12:43:52 +02:00
|
|
|
class SystempayCreditTransactionUpdateCommand extends Command
|
2023-05-03 10:41:46 +02:00
|
|
|
{
|
|
|
|
|
/**
|
2023-05-19 12:43:52 +02:00
|
|
|
* The name and signature of the console command.
|
2023-05-03 10:41:46 +02:00
|
|
|
*
|
2023-05-19 12:43:52 +02:00
|
|
|
* @var string
|
2023-05-03 10:41:46 +02:00
|
|
|
*/
|
2023-05-19 12:43:52 +02:00
|
|
|
protected $signature = 'systempay:update_credit_transactions';
|
2023-05-03 10:41:46 +02:00
|
|
|
|
|
|
|
|
/**
|
2023-05-19 12:43:52 +02:00
|
|
|
* The console command description.
|
2023-05-03 10:41:46 +02:00
|
|
|
*
|
2023-05-19 12:43:52 +02:00
|
|
|
* @var string
|
2023-05-03 10:41:46 +02:00
|
|
|
*/
|
2023-05-19 12:43:52 +02:00
|
|
|
protected $description = 'Update Systempay credit transaction statuses';
|
2023-05-03 10:41:46 +02:00
|
|
|
|
|
|
|
|
/**
|
2023-05-19 12:43:52 +02:00
|
|
|
* Execute the console command.
|
2023-05-03 10:41:46 +02:00
|
|
|
*
|
2023-05-19 12:43:52 +02:00
|
|
|
* @return inteager
|
2023-05-03 10:41:46 +02:00
|
|
|
*/
|
|
|
|
|
public function handle()
|
|
|
|
|
{
|
2023-05-19 12:43:52 +02:00
|
|
|
\dispatch_sync(new SystempayCreditTransactionUpdate());
|
|
|
|
|
return 0;
|
2023-05-03 10:41:46 +02:00
|
|
|
}
|
|
|
|
|
}
|