<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;

final class SettlementPayoutAdjustmentRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'player_id' => ['required', 'integer', 'min:1'],
            'amount_delta' => ['required', 'integer', 'not_in:0'],
            'reason' => ['required', 'string', 'min:3', 'max:500'],
        ];
    }
}
