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,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class LoanHistoryResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'stage' => $this->stage_code->value,
|
||||
'result' => $this->result->value,
|
||||
'timestamp' => $this->executed_at->toIso8601ZuluString(),
|
||||
'reason' => $this->reason,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user