feat(migrations): add national_code_verified flag to users and normalize bank_account representation

- Added a new column `national_code_verified` to the `users` table.
- Normalized the `bank_account` field in the `representations` table from a single object to an array of IBANs with a default `verified` status of false.

feat(ApiIrService): implement identity verification client for api.ir

- Created `ApiIrService` to handle identity verification via api.ir.
- Implemented methods for matching national code with mobile and IBAN with national code and birth date.
- Added error handling and logging for external API requests.
This commit is contained in:
hamed
2026-06-25 19:38:47 +03:30
parent 9b608aaeac
commit c2c6ae4d02
515 changed files with 194899 additions and 55 deletions
+7
View File
@@ -74,6 +74,13 @@ class Settlement
public function getAdminNote(): ?string { return $this->adminNote; }
public function getReceipt(): ?string { return $this->receipt; }
public function setReceipt(?string $receipt): self
{
$this->receipt = $receipt;
$this->updatedAt = time();
return $this;
}
public function approve(int $adminUserId, ?string $note = null): self
{
$this->status = self::STATUS_APPROVED;