import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { IdentityVerificationBankModel } from '../model/identityVerification'; import { IdentityVerificationListBankModel } from '../model/identityVerificationList'; import { IdentityVerificationWithDetailsBankModel } from '../model/identityVerificationWithDetails'; import { PostIdentityVerificationBankModel } from '../model/postIdentityVerification'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class IdentityVerificationsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create Identity Verification * Creates an Identity Verification. ## Identity Verifications Identity Verifications confirm an individual\'s identity with for the purpose of inclusion on the platform. This know-your-customer (KYC) process is a requirement for individuals to be able to transact. At present, we offer support for Cybrid performing the verification or working with partners to accept their KYC/AML process and have it attested to in our platform. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the identity verification details in our private store | | waiting | The Platform is waiting for the customer to start the identity verification process | | pending | The Platform is waiting for the customer to finish the identity verification process | | reviewing | The Platform is waiting for compliance to review the identity verification results | | expired | The identity verification process has expired | | completed | The identity verification process has been completed | ## Outcome | State | Description | |-------|-------------| | passed | The customer has passed the identity verification process | | failed | The customer has failed the identity verification process | ## Failure Codes | Code | Description | |-------|-------------| | id_check_failure | Failure due to an issue verifying the provided ID | | id_quality_check_failure | Failure due to an issue verifying the provided ID based on the image quality | | id_barcode_check_failure | Failure due to an issue verifying the provided ID based on the barcode | | id_mrz_check_failure | Failure due to an issue verifying the provided ID based on the machine-readable zone (MRZ) | | id_presence_check_failure | Failure due to an issue verifying the provided ID based on the presence of the ID | | id_expiration_check_failure | Failure due to an issue verifying the provided ID based on the expiration date | | id_double_side_check_failure | Failure due to an issue verifying the provided ID based on both sides not being provided | | id_type_allowed_check_failure | Failure due to an issue verifying the provided ID based on the type provided | | id_country_allowed_check_failure | Failure due to an issue verifying the provided ID based on the issuing country | | id_digital_replica_check_failure | Failure due to an issue verifying the provided ID based on it being a digital replica | | id_paper_replica_check_failure | Failure due to an issue verifying the provided ID based on it being a paper replica | | database_check_failure | Failure due to an issue verifying the provided information against authoritative data sources | | selfie_failure | Failure due to an issue verifying the provided selfie photo | | selfie_pose_check_failure | Failure due to an issue verifying the provided selfie photo based on incorrect poses | | selfie_quality_check_failure | Failure due to an issue verifying the provided selfie photo based on the image quality | | country_comparison_check_failure | Failure due the customer verification being performed out of country | | duplicate_person_check_failure | Failure due to a customer already existing for this person | | prohibited_person_check_failure | Failure due to a person being on prohibited from accessing the service | | name_check_failure | Failure due to an issue verifying the name of the person | | address_check_failure | Failure due to an issue verifying the address of the person | | account_number_check_failure | Failure due to an issue verifying the account number of the person | | dob_check_failure | Failure due to an issue verifying the date of birth of the person | | id_number_check_failure | Failure due to an issue verifying an identification number of the person | | phone_number_check_failure | Failure due to an issue verifying the phone number of the person | | email_address_check_failure | Failure due to an issue verifying the email address of the person | | document_type_check_failure | Failure due to the type of document provided not being the correct type | | document_quality_check_failure | Failure due to an issue verifying the document based on the image quality | | document_check_failure | Failure due to an issue verifying the documents | | name_comparison_check_failure | Failure due to a mismatch between the name on the customer account and the name on the provided documents | | compliance_rejection | Failure due to compliance rejecting the identity verification | | review_required | The verification is inconclusive and requires a manual review | | user_canceled | Failure due to the user canceling the identity verification | | plaid_failure | Failure due to an issue interacting with Plaid | | plaid_item_login_required | Failure due to the Plaid token for the account requiring re-login | | plaid_invalid_product | Failure due to the Plaid product not being supported (contact support) | | plaid_no_accounts | Failure due to the Plaid token having access to no accounts | | plaid_item_not_found | Failure due to Plaid not being able to find the associated account | | decision_timeout | Failure due to an issue verifying the email address of the person | | requested_failure | In sandbox, the caller requested that the process failed | | deleted_account | Failure due to the bank account having been deleted before a decision was made | |pep_check_failure| Failure due to the person being on a Politically Exposed Persons (PEP) list | |media_check_failure| Failure due to the person being on Adverse Media list | |watchlist_check_failure| Failure due to the person being on a known government or international watchlist or sanctions list | Required scope: **identity_verifications:execute** * @param postIdentityVerificationBankModel * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createIdentityVerification(postIdentityVerificationBankModel: PostIdentityVerificationBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createIdentityVerification(postIdentityVerificationBankModel: PostIdentityVerificationBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createIdentityVerification(postIdentityVerificationBankModel: PostIdentityVerificationBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Identity Verification * Retrieves an identity verification. Required scope: **identity_verifications:read** Optional scope: **identity_verifications:pii:read**. * @param identityVerificationGuid Identifier for the identity verification. * @param includePii Include PII in the response (requires **identity_verifications:pii:read** scope). * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getIdentityVerification(identityVerificationGuid: string, includePii?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getIdentityVerification(identityVerificationGuid: string, includePii?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getIdentityVerification(identityVerificationGuid: string, includePii?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * List Identity Verifications * Retrieves a list of identity verifications. Records are sorted by creation date in descending order. Required scope: **identity_verifications:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param guid Comma separated guids to list identity verifications for. * @param bankGuid Comma separated bank_guids to list identity verifications for. * @param customerGuid Comma separated customer_guids to list identity verifications for. * @param counterpartyGuid Comma separated counterparty_guids to list identity verifications for. * @param state Comma separated states to list identity verifications for. * @param type Comma separated types to list identity verifications for. * @param method Comma separated methods to list identity verifications for. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ listIdentityVerifications(page?: string, perPage?: string, guid?: string, bankGuid?: string, customerGuid?: string, counterpartyGuid?: string, state?: string, type?: string, method?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listIdentityVerifications(page?: string, perPage?: string, guid?: string, bankGuid?: string, customerGuid?: string, counterpartyGuid?: string, state?: string, type?: string, method?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listIdentityVerifications(page?: string, perPage?: string, guid?: string, bankGuid?: string, customerGuid?: string, counterpartyGuid?: string, state?: string, type?: string, method?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }