Refactor: Modularize ApiResponseHelper#createUsageResponse

Fixes #11635

- Extracted the 500+ line switch/if-else block into a main dispatcher method `populateUsageTypeSpecificDetails`.
- Created 18 individual private helper methods for each specific `UsageType` to improve maintainability and readability.
- Introduced a `UsageResourceDetails` container class to safely manage and return `resourceId` and `resourceType` state for tag lookups.
- Verified zero business logic changes; strictly structural refactoring.
This commit is contained in:
PrashantBhanage 2026-06-25 13:54:18 +05:30
parent 82986f6cff
commit 61cb4ea066
1 changed files with 563 additions and 453 deletions

File diff suppressed because it is too large Load Diff