Files
shipping-portal/app/Console/Commands/V2/ShowBillplzPaymentStatusV2Command.php
T
2023-12-28 01:58:49 +08:00

48 lines
1.1 KiB
PHP

<?php
namespace App\Console\Commands\V2;
use App\Classes\Jobs\Commands\V2\ShowBillplzPaymentStatusV2CommandJob;
use App\Classes\Modules\Jobs\DataTransferObjects\ShowBillplzPaymentStatusV2CommandObject;
use Illuminate\Console\Command;
class ShowBillplzPaymentStatusV2Command extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'billplz-payment-status-command {billplz_id}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Show Billplz payment status';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$showBillplzPaymentStatusV2CommandObject = new ShowBillplzPaymentStatusV2CommandObject(
$this->argument('billplz_id')
);
ShowBillplzPaymentStatusV2CommandJob::dispatch($showBillplzPaymentStatusV2CommandObject);
}
}