-
Notifications
You must be signed in to change notification settings - Fork 21
Release/4.5.1 #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release/4.5.1 #412
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c0cef0a
Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 (#408)
mehmet-yoti 6acbf1c
Sdk 2791 php add support for retrieving the extraction image ids fiel…
mehmet-yoti 9ba67c8
Sdk 2742 php expose idv breakdown process property (#410)
mehmet-yoti 648c999
SDK-2793-php-task-response-recommandation added (#404)
mehmet-yoti 83c62fe
SDK-2215 allow rb to supply an applicant profile for identity profile…
mehmet-yoti 56d53ca
Sdk 2296 php allow rb to fetch applicant profile from get sessions (#…
mehmet-yoti 15ff65b
Merge branch 'master' into Release/4.5.0
mehmet-yoti 4cb5f03
update examples
mehmet-yoti 952d7b8
updated version number
mehmet-yoti bd248d8
updated examples on controller
mehmet-yoti b61f235
Add process field rendering to breakdown view in doc-scan example
mehmet-yoti 48416ef
Merge master into Release/4.5.1, resolve conflicts keeping 4.5.1 vers…
Copilot 28f10ce
SDK-2791: Render extraction_image_ids on doc-scan success page (#415)
mehmet-yoti 024eafb
Address Copilot review feedback on PageResponse
mehmet-yoti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,95 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Yoti\DocScan\Session\Create; | ||
|
|
||
| use JsonSerializable; | ||
| use stdClass; | ||
| use Yoti\Util\Json; | ||
|
|
||
| class ApplicantProfile implements JsonSerializable | ||
| { | ||
| /** | ||
| * @var string|null | ||
| */ | ||
| private $fullName; | ||
|
|
||
| /** | ||
| * @var string|null | ||
| */ | ||
| private $dateOfBirth; | ||
|
|
||
| /** | ||
| * @var string|null | ||
| */ | ||
| private $namePrefix; | ||
|
|
||
| /** | ||
| * @var StructuredPostalAddress|null | ||
| */ | ||
| private $structuredPostalAddress; | ||
|
|
||
| /** | ||
| * @param string|null $fullName | ||
| * @param string|null $dateOfBirth | ||
| * @param string|null $namePrefix | ||
| * @param StructuredPostalAddress|null $structuredPostalAddress | ||
| */ | ||
| public function __construct( | ||
| ?string $fullName, | ||
| ?string $dateOfBirth, | ||
| ?string $namePrefix, | ||
| ?StructuredPostalAddress $structuredPostalAddress | ||
| ) { | ||
| $this->fullName = $fullName; | ||
| $this->dateOfBirth = $dateOfBirth; | ||
| $this->namePrefix = $namePrefix; | ||
| $this->structuredPostalAddress = $structuredPostalAddress; | ||
| } | ||
|
|
||
| /** | ||
| * @return stdClass | ||
| */ | ||
| public function jsonSerialize(): stdClass | ||
| { | ||
| return (object) Json::withoutNullValues([ | ||
| 'full_name' => $this->fullName, | ||
| 'date_of_birth' => $this->dateOfBirth, | ||
| 'name_prefix' => $this->namePrefix, | ||
| 'structured_postal_address' => $this->structuredPostalAddress, | ||
| ]); | ||
| } | ||
|
|
||
| /** | ||
| * @return string|null | ||
| */ | ||
| public function getFullName(): ?string | ||
| { | ||
| return $this->fullName; | ||
| } | ||
|
|
||
| /** | ||
| * @return string|null | ||
| */ | ||
| public function getDateOfBirth(): ?string | ||
| { | ||
| return $this->dateOfBirth; | ||
| } | ||
|
|
||
| /** | ||
| * @return string|null | ||
| */ | ||
| public function getNamePrefix(): ?string | ||
| { | ||
| return $this->namePrefix; | ||
| } | ||
|
|
||
| /** | ||
| * @return StructuredPostalAddress|null | ||
| */ | ||
| public function getStructuredPostalAddress(): ?StructuredPostalAddress | ||
| { | ||
| return $this->structuredPostalAddress; | ||
| } | ||
| } |
This file contains hidden or 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,81 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Yoti\DocScan\Session\Create; | ||
|
|
||
| class ApplicantProfileBuilder | ||
| { | ||
| /** | ||
| * @var string|null | ||
| */ | ||
| private $fullName; | ||
|
|
||
| /** | ||
| * @var string|null | ||
| */ | ||
| private $dateOfBirth; | ||
|
|
||
| /** | ||
| * @var string|null | ||
| */ | ||
| private $namePrefix; | ||
|
|
||
| /** | ||
| * @var StructuredPostalAddress|null | ||
| */ | ||
| private $structuredPostalAddress; | ||
|
|
||
| /** | ||
| * @param string $fullName | ||
| * @return $this | ||
| */ | ||
| public function withFullName(string $fullName): self | ||
| { | ||
| $this->fullName = $fullName; | ||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * @param string $dateOfBirth | ||
| * @return $this | ||
| */ | ||
| public function withDateOfBirth(string $dateOfBirth): self | ||
| { | ||
| $this->dateOfBirth = $dateOfBirth; | ||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * @param string $namePrefix | ||
| * @return $this | ||
| */ | ||
| public function withNamePrefix(string $namePrefix): self | ||
| { | ||
| $this->namePrefix = $namePrefix; | ||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * @param StructuredPostalAddress $structuredPostalAddress | ||
| * @return $this | ||
| */ | ||
| public function withStructuredPostalAddress(StructuredPostalAddress $structuredPostalAddress): self | ||
| { | ||
| $this->structuredPostalAddress = $structuredPostalAddress; | ||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * @return ApplicantProfile | ||
| */ | ||
| public function build(): ApplicantProfile | ||
| { | ||
| return new ApplicantProfile( | ||
| $this->fullName, | ||
| $this->dateOfBirth, | ||
| $this->namePrefix, | ||
| $this->structuredPostalAddress | ||
| ); | ||
| } | ||
| } |
This file contains hidden or 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,43 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Yoti\DocScan\Session\Create; | ||
|
|
||
| use JsonSerializable; | ||
| use stdClass; | ||
| use Yoti\Util\Json; | ||
|
|
||
| class ResourceCreationContainer implements JsonSerializable | ||
| { | ||
| /** | ||
| * @var ApplicantProfile|null | ||
| */ | ||
| private $applicantProfile; | ||
|
|
||
| /** | ||
| * @param ApplicantProfile|null $applicantProfile | ||
| */ | ||
| public function __construct(?ApplicantProfile $applicantProfile) | ||
| { | ||
| $this->applicantProfile = $applicantProfile; | ||
| } | ||
|
|
||
| /** | ||
| * @return stdClass | ||
| */ | ||
| public function jsonSerialize(): stdClass | ||
| { | ||
| return (object) Json::withoutNullValues([ | ||
| 'applicant_profile' => $this->applicantProfile, | ||
| ]); | ||
| } | ||
|
|
||
| /** | ||
| * @return ApplicantProfile|null | ||
| */ | ||
| public function getApplicantProfile(): ?ApplicantProfile | ||
| { | ||
| return $this->applicantProfile; | ||
| } | ||
| } |
33 changes: 33 additions & 0 deletions
33
src/DocScan/Session/Create/ResourceCreationContainerBuilder.php
This file contains hidden or 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,33 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Yoti\DocScan\Session\Create; | ||
|
|
||
| class ResourceCreationContainerBuilder | ||
| { | ||
| /** | ||
| * @var ApplicantProfile|null | ||
| */ | ||
| private $applicantProfile; | ||
|
|
||
| /** | ||
| * @param ApplicantProfile $applicantProfile | ||
| * @return $this | ||
| */ | ||
| public function withApplicantProfile(ApplicantProfile $applicantProfile): self | ||
| { | ||
| $this->applicantProfile = $applicantProfile; | ||
| return $this; | ||
| } | ||
|
|
||
| /** | ||
| * @return ResourceCreationContainer | ||
| */ | ||
| public function build(): ResourceCreationContainer | ||
| { | ||
| return new ResourceCreationContainer( | ||
| $this->applicantProfile | ||
| ); | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.