<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;

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

    public function rules(): array
    {
        return [
            'amount' => ['required', 'integer', 'min:1'],
            'method' => ['sometimes', 'nullable', 'string', 'max:32'],
            'proof' => ['sometimes', 'nullable', 'string', 'max:2000'],
            'remark' => ['sometimes', 'nullable', 'string', 'max:255'],
            'idempotency_key' => ['sometimes', 'nullable', 'string', 'max:64'],
        ];
    }
}
