Skip to content

Commit 148f1b0

Browse files
author
Rodion Liuborets
committed
Add example with yoti account type
1 parent dfbda97 commit 148f1b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/doc-scan/app/Http/Controllers/HomeController.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Yoti\DocScan\Session\Create\Check\RequestedWatchlistAdvancedCaCheckBuilder;
1919
use Yoti\DocScan\Session\Create\Check\RequestedWatchlistScreeningCheckBuilder;
2020
use Yoti\DocScan\Session\Create\Check\RequestedWatchlistScreeningConfigBuilder;
21+
use Yoti\DocScan\Session\Create\Check\RequestedYotiAccountWatchlistAdvancedCaConfigBuilder;
2122
use Yoti\DocScan\Session\Create\Filters\Orthogonal\OrthogonalRestrictionsFilterBuilder;
2223
use Yoti\DocScan\Session\Create\Filters\RequiredIdDocumentBuilder;
2324
use Yoti\DocScan\Session\Create\Filters\RequiredSupplementaryDocumentBuilder;
@@ -56,6 +57,7 @@ public function show(Request $request, DocScanClient $client)
5657
$exactMatchingStrategy = (new RequestedExactMatchingStrategyBuilder())
5758
->build();
5859

60+
//CustomAccountConfig
5961
$customConfig = (new RequestedCustomAccountWatchlistAdvancedCaConfigBuilder())
6062
->withMatchingStrategy($exactMatchingStrategy)
6163
->withSources($searchProfileSources)
@@ -67,6 +69,14 @@ public function show(Request $request, DocScanClient $client)
6769
->withTags(['tag1'])
6870
->build();
6971

72+
//YotiAccountConfig
73+
$yotiConfig = (new RequestedYotiAccountWatchlistAdvancedCaConfigBuilder())
74+
->withMatchingStrategy($exactMatchingStrategy)
75+
->withSources($typeListSources)
76+
->withShareUrl(false)
77+
->withRemoveDeceased(true)
78+
->build();
79+
7080

7181
$sessionSpec = (new SessionSpecificationBuilder())
7282
->withClientSessionTokenTtl(600)

0 commit comments

Comments
 (0)