feat: implement BankFlow loan workflow API endpoints

This commit is contained in:
m.ebrahimi committed 2026-07-22 17:31:18 +03:30
1 parent 56a52be180
commit 7824e8f015
43 files changed
+1403 -10

No files matched your search

@@ -0,0 +1,16 @@
<?php
namespace App\Domain\Loan\Exceptions;
use Illuminate\Contracts\Debug\ShouldntReport;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use RuntimeException;
class InvalidRequestException extends RuntimeException implements ShouldntReport
{
public function render(Request $request): JsonResponse
{
return response()->json(['error' => 'INVALID_REQUEST'], 400);
}
}
@@ -0,0 +1,8 @@
<?php
namespace App\Domain\Loan\Exceptions;
class InvalidWorkflowConfiguration extends WorkflowException
{
//
}
@@ -0,0 +1,16 @@
<?php
namespace App\Domain\Loan\Exceptions;
use Illuminate\Contracts\Debug\ShouldntReport;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use RuntimeException;
class LoanNotFoundException extends RuntimeException implements ShouldntReport
{
public function render(Request $request): JsonResponse
{
return response()->json(['error' => 'LOAN_NOT_FOUND'], 404);
}
}
@@ -0,0 +1,10 @@
<?php
namespace App\Domain\Loan\Exceptions;
use RuntimeException;
class WorkflowException extends RuntimeException
{
//
}