Loan state machine

Available statuses

  • SUBMITTED '(comments: lock money from our credit_line pool)'
  • TO_VALIDATE
  • VALIDATED
  • SCHEDULED
  • INITIATED
  • TO_REPAY
  • TO_REPAY_FEES
  • OVERDUE
  • CLOSED
  • ISSUE_DETECTED
  • DECLINED

State machine