<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class UpdateContractSettingRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'create_activity_on_balance_change' => ['sometimes', 'boolean'],
            'default_action_id' => ['nullable', 'integer', 'exists:actions,id'],
            'default_decision_id' => ['nullable', 'integer', 'exists:decisions,id'],
            'activity_note_template' => ['nullable', 'string', 'max:255'],
        ];
    }
}
