KRYSTALM7 opened a new pull request, #10:
URL: https://github.com/apache/fineract-loan-origination/pull/10

   ## FINERACT-2442 — Domain Enums
   
   Adds the four core enums that drive the loan origination lifecycle.
   
   ### Enums Added
   
   - `LoanApplicationStatus` — 7 states with terminal/editable 
      helper methods and full Javadoc on every transition
   - `DocumentStatus` — 4 states with helper methods for 
      applicant action detection
   - `ApprovalDecision` — 3 decisions mapping directly to 
      status transitions
   - `RiskCategory` — 3 categories with score range bounds 
      and `fromScore()` factory method based on CGAP guidelines
   
   ### Design Decisions
   
   - All enums use `@Enumerated(EnumType.STRING)` compatible 
     naming — values match exactly what Flyway V1-V5 defined 
     in VARCHAR columns
   - Helper methods (`isTerminal()`, `isEditable()`, 
     `fromScore()`) keep business logic inside the enum — 
     no scattered if/else checks across the codebase
   
   ### Related
   - JIRA: https://issues.apache.org/jira/browse/FINERACT-2442


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to