-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-2377 added failure reasons to idv
- Loading branch information
1 parent
5ad4d8b
commit 6748e2d
Showing
8 changed files
with
135 additions
and
15 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/DocScan/Session/Retrieve/IdentityProfile/RequirementNotMetDetails.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
namespace Yoti\DocScan\Session\Retrieve\IdentityProfile; | ||
|
||
class RequirementNotMetDetails | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $failureType; | ||
/** | ||
* @var string | ||
*/ | ||
private $documentType; | ||
/** | ||
* @var string | ||
*/ | ||
private $documentCountryIsoCode; | ||
/** | ||
* @var string | ||
*/ | ||
private $auditId; | ||
/** | ||
* @var string | ||
*/ | ||
private $details; | ||
|
||
/** | ||
* @param array $data | ||
*/ | ||
public function __construct(array $data) | ||
{ | ||
$this->failureType = $data[0]["failure_type"]; | ||
$this->details = $data[0]["details"]; | ||
$this->auditId = $data[0]["audit_id"]; | ||
$this->documentCountryIsoCode = $data[0]["document_country_iso_code"]; | ||
$this->documentType = $data[0]["document_type"]; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFailureType(): string | ||
{ | ||
return $this->failureType; | ||
} | ||
/** | ||
* @return string | ||
*/ | ||
public function getDetails(): string | ||
{ | ||
return $this->details; | ||
} | ||
/** | ||
* @return string | ||
*/ | ||
public function getAuditId(): string | ||
{ | ||
return $this->auditId; | ||
} | ||
/** | ||
* @return string | ||
*/ | ||
public function getDocumentCountryIsoCode(): string | ||
{ | ||
return $this->documentCountryIsoCode; | ||
} | ||
/** | ||
* @return string | ||
*/ | ||
public function getDocumentType(): string | ||
{ | ||
return $this->documentType; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters