<?php

namespace App\Jobs;

use App\Services\Payments\PayoutProcessor;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;

class ProcessPayoutRequest implements ShouldQueue
{
    use Queueable;

    public function __construct(public readonly int $payoutId) {}

    public function handle(PayoutProcessor $processor): void
    {
        $processor->processPayout($this->payoutId);
    }
}
