<?php

declare(strict_types=1);

namespace Maestro\Core\Modules\Offers\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * @return array<string, mixed>
     */
    public function rules(): array
    {
        return [
            'vat_rate_presets' => ['required', 'array', 'min:1'],
            'vat_rate_presets.*' => ['numeric', 'min:0', 'max:100'],
        ];
    }
}
