- Implement AdminDomainOrderTest to cover admin functionalities for domain orders including listing, confirming registration, KYC updates, activation, rejection, and refunds. - Implement ClientDomainOrderTest to cover client functionalities for placing domain orders, including validation for balance, duplicate orders, and domain normalization. - Ensure proper handling of domain pricing and service statuses throughout the tests.
25 lines
668 B
PHP
25 lines
668 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Admin\Domain;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ConfirmRegistrationRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'dns_manager_server_id' => ['nullable', 'integer', 'exists:dns_manager_servers,id'],
|
|
'kyc_url' => ['nullable', 'url', 'max:2048'],
|
|
'registrar_reference' => ['nullable', 'string', 'max:255'],
|
|
'registered_at' => ['nullable', 'date'],
|
|
'expires_at' => ['nullable', 'date'],
|
|
];
|
|
}
|
|
}
|