<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;

/**
 * @see \App\Http\Controllers\Api\V1\Admin\Integration\AdminIntegrationSiteConnectivityTestController
 */
final class AdminIntegrationSiteConnectivityTestRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    /**
     * @return array<string, array<int, mixed>>
     */
    public function rules(): array
    {
        return [
            'site_player_id' => ['required', 'string', 'max:128'],
            'currency_code' => ['sometimes', 'nullable', 'string', 'max:16'],
        ];
    }
}
