<?php

namespace App\Console\Commands\V2;


use App\Classes\Jobs\Commands\V2\FixExpiredBookingV2CommandJob;
use Illuminate\Console\Command;

class FixExpiredBookingV2Command extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'fix-expired-payment-transaction-command';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Change the EXPIRED payment transaction of EXPIRED booking to REFUNDED if the payment transaction is fully refunded';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        FixExpiredBookingV2CommandJob::dispatch();
    }
}
