Skip to content
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

Rename Doc Scan to IDV #316

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ For each service you will need:

The Yoti SDK can be used for the following products, follow the links for more information about each:
1) [Yoti app integration](/docs/PROFILE.md) - Connect with already-verified customers.
1) [Yoti Doc Scan](/docs/DOCSCAN.md) - Identity verification embedded in your website or app.
1) [Yoti Doc Scan](/docs/IDV.md) - Identity verification embedded in your website or app.

## Support

Expand Down
2 changes: 1 addition & 1 deletion docs/DOCSCAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Yoti Doc Scan can be seamlessly integrated with your website, app or custom product so you can perform secure identity checks. You'll be able to request specific ID documents from users directly from your website or app.

See the the [Developer Docs](https://developers.yoti.com/yoti/getting-started-docscan) for more information.
See the the [Developer Docs](https://developers.yoti.com/yoti/getting-started-IDV) for more information.

## Running the example

Expand Down
48 changes: 24 additions & 24 deletions examples/doc-scan/app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@

use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Yoti\DocScan\DocScanClient;
use Yoti\DocScan\Session\Create\Check\Advanced\RequestedExactMatchingStrategyBuilder;
use Yoti\DocScan\Session\Create\Check\Advanced\RequestedFuzzyMatchingStrategyBuilder;
use Yoti\DocScan\Session\Create\Check\Advanced\RequestedSearchProfileSourcesBuilder;
use Yoti\DocScan\Session\Create\Check\Advanced\RequestedTypeListSourcesBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedCustomAccountWatchlistAdvancedCaConfigBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedDocumentAuthenticityCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedFaceMatchCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedIdDocumentComparisonCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedLivenessCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedThirdPartyIdentityCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedWatchlistAdvancedCaCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedWatchlistScreeningCheckBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedWatchlistScreeningConfigBuilder;
use Yoti\DocScan\Session\Create\Check\RequestedYotiAccountWatchlistAdvancedCaConfigBuilder;
use Yoti\DocScan\Session\Create\Filters\Orthogonal\OrthogonalRestrictionsFilterBuilder;
use Yoti\DocScan\Session\Create\Filters\RequiredIdDocumentBuilder;
use Yoti\DocScan\Session\Create\Filters\RequiredSupplementaryDocumentBuilder;
use Yoti\DocScan\Session\Create\Objective\ProofOfAddressObjectiveBuilder;
use Yoti\DocScan\Session\Create\SdkConfigBuilder;
use Yoti\DocScan\Session\Create\SessionSpecificationBuilder;
use Yoti\DocScan\Session\Create\Task\RequestedSupplementaryDocTextExtractionTaskBuilder;
use Yoti\DocScan\Session\Create\Task\RequestedTextExtractionTaskBuilder;
use Yoti\IDV\IDVClient;
use Yoti\IDV\Session\Create\Check\Advanced\RequestedExactMatchingStrategyBuilder;
use Yoti\IDV\Session\Create\Check\Advanced\RequestedFuzzyMatchingStrategyBuilder;
use Yoti\IDV\Session\Create\Check\Advanced\RequestedSearchProfileSourcesBuilder;
use Yoti\IDV\Session\Create\Check\Advanced\RequestedTypeListSourcesBuilder;
use Yoti\IDV\Session\Create\Check\RequestedCustomAccountWatchlistAdvancedCaConfigBuilder;
use Yoti\IDV\Session\Create\Check\RequestedDocumentAuthenticityCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedFaceMatchCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedIdDocumentComparisonCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedLivenessCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedThirdPartyIdentityCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedWatchlistAdvancedCaCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedWatchlistScreeningCheckBuilder;
use Yoti\IDV\Session\Create\Check\RequestedWatchlistScreeningConfigBuilder;
use Yoti\IDV\Session\Create\Check\RequestedYotiAccountWatchlistAdvancedCaConfigBuilder;
use Yoti\IDV\Session\Create\Filters\Orthogonal\OrthogonalRestrictionsFilterBuilder;
use Yoti\IDV\Session\Create\Filters\RequiredIdDocumentBuilder;
use Yoti\IDV\Session\Create\Filters\RequiredSupplementaryDocumentBuilder;
use Yoti\IDV\Session\Create\Objective\ProofOfAddressObjectiveBuilder;
use Yoti\IDV\Session\Create\SdkConfigBuilder;
use Yoti\IDV\Session\Create\SessionSpecificationBuilder;
use Yoti\IDV\Session\Create\Task\RequestedSupplementaryDocTextExtractionTaskBuilder;
use Yoti\IDV\Session\Create\Task\RequestedTextExtractionTaskBuilder;

class HomeController extends BaseController
{
public function show(Request $request, DocScanClient $client)
public function show(Request $request, IDVClient $client)
{
//WatchScreening Config
$watchScreeningConfig = (new RequestedWatchlistScreeningConfigBuilder())
Expand Down
4 changes: 2 additions & 2 deletions examples/doc-scan/app/Http/Controllers/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Yoti\DocScan\DocScanClient;
use Yoti\IDV\IDVClient;

class MediaController extends BaseController
{
public function show(string $id, Request $request, DocScanClient $client)
public function show(string $id, Request $request, IDVClient $client)
{
$media = $client->getMediaContent($request->session()->get('YOTI_SESSION_ID'), $id);

Expand Down
4 changes: 2 additions & 2 deletions examples/doc-scan/app/Http/Controllers/SuccessController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Yoti\DocScan\DocScanClient;
use Yoti\IDV\IDVClient;

class SuccessController extends BaseController
{
public function show(Request $request, DocScanClient $client)
public function show(Request $request, IDVClient $client)
{
return view('success', [
'sessionResult' => $client->getSession($request->session()->get('YOTI_SESSION_ID')),
Expand Down
10 changes: 5 additions & 5 deletions examples/doc-scan/app/Providers/YotiDocScanServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Yoti\DocScan\DocScanClient;
use Yoti\IDV\IDVClient;

class YotiDocScanServiceProvider extends ServiceProvider implements DeferrableProvider
class YotiIDVServiceProvider extends ServiceProvider implements DeferrableProvider
{
/**
* @return void
*/
public function register()
{
$this->app->singleton(DocScanClient::class, function ($app) {
$this->app->singleton(IDVClient::class, function ($app) {
$config = $app['config']['yoti'];

return new DocScanClient($config['client.sdk.id'], $config['pem.file.path']);
return new IDVClient($config['client.sdk.id'], $config['pem.file.path']);
});
}

Expand All @@ -25,6 +25,6 @@ public function register()
*/
public function provides()
{
return [DocScanClient::class];
return [IDVClient::class];
}
}
2 changes: 1 addition & 1 deletion examples/doc-scan/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
/*
* Application Service Providers...
*/
App\Providers\YotiDocScanServiceProvider::class,
App\Providers\YotiIDVServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],

Expand Down
11 changes: 0 additions & 11 deletions src/DocScan/Exception/DocScanException.php

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions src/DocScan/Session/Retrieve/ThirdPartyIdentityCheckResponse.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/DocScan/Session/Retrieve/WatchlistScreeningCheckResponse.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/DocScan/Constants.php → src/IDV/Constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Yoti\DocScan;
namespace Yoti\IDV;

class Constants
{
Expand Down
11 changes: 11 additions & 0 deletions src/IDV/Exception/IDVException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Yoti\IDV\Exception;

use Yoti\Exception\base\YotiException;

class IDVException extends YotiException
{
}
Loading