<?php

namespace App\Http\Requests\Refunds;

use App\Http\Requests\ApiFormRequest;

class RefundRecalculateRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return $this->user() !== null;
    }

    public function rules(): array
    {
        return [
            'invoice_number' => ['nullable', 'string', 'max:100'],
        ];
    }
}
