feat: implement BankFlow loan workflow API endpoints
This commit is contained in:
1 parent
56a52be180
commit
7824e8f015
43 files changed
+1403
-10
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Data;
|
||||
|
||||
use App\Domain\Loan\Enums\StageResultType;
|
||||
|
||||
final readonly class ExecutionResult
|
||||
{
|
||||
public function __construct(
|
||||
public StageResultType $type,
|
||||
public string $reason,
|
||||
) {}
|
||||
|
||||
public static function pass(): self
|
||||
{
|
||||
return new self(StageResultType::Pass, 'SUCCESS');
|
||||
}
|
||||
|
||||
public static function fail(string $reason): self
|
||||
{
|
||||
return new self(StageResultType::Fail, $reason);
|
||||
}
|
||||
|
||||
public static function manualReview(string $reason): self
|
||||
{
|
||||
return new self(StageResultType::ManualReview, $reason);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user