add refund and event logic

This commit is contained in:
root
2026-03-10 23:12:49 -04:00
parent ba1206e314
commit f6be51576c
67 changed files with 4808 additions and 1000 deletions
@@ -88,11 +88,16 @@ class OpenApiRouteExporter
}
$segments = explode('/', $trimmed);
$segment = $segments[0] ?: 'api';
$secondary = $segments[1] ?? null;
$normalized = Str::title(str_replace('-', ' ', $segment));
$overrides = [
'Whatsapp' => 'WhatsApp',
];
if ($segment === 'finance' && $secondary === 'refunds') {
return 'Refunds';
}
return $overrides[$normalized] ?? $normalized;
}