feat(ticket): implement refund functionality and expose allow_refund flag

This commit is contained in:
2026-09-10 17:05:57 -03:00
parent 210c854fee
commit 5d00dc439e
8 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Domains\Ticket\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class AdminAppTicketRefundRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/** @return array<string, list<string|object>> */
public function rules(): array
{
return [
'refund_type' => ['required', 'string', Rule::in(['partial', 'total'])],
];
}
}