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,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Contracts;
|
||||
|
||||
use App\Models\Loan;
|
||||
|
||||
interface ConditionalStageInterface extends StageInterface
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $rules
|
||||
*/
|
||||
public function appliesTo(Loan $loan, array $rules): bool;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Loan\Contracts;
|
||||
|
||||
use App\Domain\Loan\Data\ExecutionResult;
|
||||
use App\Models\Loan;
|
||||
|
||||
interface StageInterface
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $rules
|
||||
*/
|
||||
public function execute(Loan $loan, array $rules): ExecutionResult;
|
||||
}
|
||||
Reference in new issue
Block a user