mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
feat: add status and statusText to ID docs signer data
Include status and statusText fields when formatting signers in ID documents responses. This ensures consistency across all API endpoints that return signer information. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
8af983763d
commit
ff3a16f223
1 changed files with 2 additions and 0 deletions
|
|
@ -283,6 +283,8 @@ class IdDocsMapper extends QBMapper {
|
|||
->format('Y-m-d H:i:s'),
|
||||
'sign_date' => null,
|
||||
'signRequestId' => $signer->getId(),
|
||||
'status' => $signer->getStatus(),
|
||||
'statusText' => $this->signRequestMapper->getTextOfSignerStatus($signer->getStatus()),
|
||||
];
|
||||
if ($signer->getSigned()) {
|
||||
$data['sign_date'] = (new \DateTime())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue