- 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.
21 lines
359 B
PHP
21 lines
359 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Admin\Domain;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class RejectAndRefundRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'reason' => ['required', 'string', 'max:1000'],
|
|
];
|
|
}
|
|
}
|