<?php

namespace App\Http\Requests\Reimbursements;

use App\Http\Requests\ApiFormRequest;

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

    public function rules(): array
    {
        return [
            'batch_id' => ['required', 'integer', 'min:1'],
            'recipient_email' => ['required', 'email'],
            'message' => ['nullable', 'string'],
            'receipts' => ['nullable', 'array'],
            'receipts.*' => ['integer', 'min:1'],
            'checks' => ['nullable', 'array'],
            'checks.*' => ['integer', 'min:1'],
        ];
    }
}
