make app database
This commit is contained in:
12
app/Domain/Loan/Enums/LoanStage.php
Normal file
12
app/Domain/Loan/Enums/LoanStage.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Enums;
|
||||
|
||||
enum LoanStage: string
|
||||
{
|
||||
case Validation = 'VALIDATION';
|
||||
case FraudCheck = 'FRAUD_CHECK';
|
||||
case GuarantorCheck = 'GUARANTOR_CHECK';
|
||||
case CreditCheck = 'CREDIT_CHECK';
|
||||
case ManagerApproval = 'MANAGER_APPROVAL';
|
||||
}
|
||||
20
app/Domain/Loan/Enums/LoanStatus.php
Normal file
20
app/Domain/Loan/Enums/LoanStatus.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Enums;
|
||||
|
||||
enum LoanStatus: string
|
||||
{
|
||||
case Submitted = 'SUBMITTED';
|
||||
case InProgress = 'IN_PROGRESS';
|
||||
case ManualReview = 'MANUAL_REVIEW';
|
||||
case Approved = 'APPROVED';
|
||||
case Rejected = 'REJECTED';
|
||||
|
||||
public function isTerminal(): bool
|
||||
{
|
||||
return match ($this) {
|
||||
self::ManualReview, self::Approved, self::Rejected => true,
|
||||
self::Submitted, self::InProgress => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
10
app/Domain/Loan/Enums/StageResultType.php
Normal file
10
app/Domain/Loan/Enums/StageResultType.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Enums;
|
||||
|
||||
enum StageResultType: string
|
||||
{
|
||||
case Pass = 'PASS';
|
||||
case Fail = 'FAIL';
|
||||
case ManualReview = 'MANUAL_REVIEW';
|
||||
}
|
||||
10
app/Domain/Loan/Enums/WorkflowConfigurationStatus.php
Normal file
10
app/Domain/Loan/Enums/WorkflowConfigurationStatus.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Enums;
|
||||
|
||||
enum WorkflowConfigurationStatus: string
|
||||
{
|
||||
case Draft = 'DRAFT';
|
||||
case Published = 'PUBLISHED';
|
||||
case Archived = 'ARCHIVED';
|
||||
}
|
||||
Reference in New Issue
Block a user