<?php

namespace App\Http\Requests\Finance;

use App\Http\Requests\ApiFormRequest;

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

    public function rules(): array
    {
        return [
            'paid' => ['required', 'boolean'],
            'payment_id' => ['nullable', 'integer', 'min:1'],
        ];
    }
}
