<?php

namespace App\Http\Requests\Reimbursements;

use App\Http\Requests\ApiFormRequest;

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

    public function rules(): array
    {
        return [
            'expense_id' => ['required', 'integer', 'min:1'],
            'batch_id' => ['nullable', 'integer', 'min:0'],
            'batch_number' => ['nullable', 'integer', 'min:0'],
            'admin_id' => ['nullable', 'integer', 'min:0'],
            'reimbursement_id' => ['nullable', 'integer', 'min:1'],
        ];
    }
}
