@scandit/web-datacapture-id
Version:
Scandit Data Capture SDK for the Web
62 lines (61 loc) • 2.5 kB
TypeScript
import type { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable";
import type { CapturedIdJSON } from "../SerializedTypes";
import type { IdCaptureDocument } from "../document/IdCaptureDocument";
import type { RegionSpecificSubtype } from "../document/RegionSpecificSubtype";
import { BarcodeResult } from "./BarcodeResult";
import { DateResult } from "./DateResult";
import { IdImages } from "./IdImages";
import { MRZResult } from "./MRZResult";
import { VIZResult } from "./VIZResult";
import { VerificationResult } from "./VerificationResult";
import { type Sex, UsRealIdStatus } from "../Enums";
import type { Region } from "../Region";
export declare class CapturedId implements Serializable<CapturedIdJSON> {
private json;
private _barcodeResult;
private _mrzResult;
private _vizResult;
private _verificationResult;
get firstName(): string | null;
get lastName(): string | null;
get secondaryLastName(): string | null;
get fullName(): string;
/**
* @deprecated This property will be replaced in SDK version 8.0 with a single sex property that returns an optional Sex.
*/
get sexType(): Sex;
/**
* @deprecated This property will be replaced in SDK version 8.0 with a single sex property that returns an optional Sex.
*/
get sex(): string | null;
get dateOfBirth(): DateResult | null;
get age(): number | null;
get nationality(): string | null;
get address(): string | null;
get document(): IdCaptureDocument | null;
get issuingCountryIso(): string | null;
get issuingCountry(): Region;
get documentNumber(): string | null;
get documentAdditionalNumber(): string | null;
get dateOfExpiry(): DateResult | null;
get isExpired(): boolean | null;
get dateOfIssue(): DateResult | null;
get usRealIdStatus(): UsRealIdStatus;
get isCapturingComplete(): boolean;
get barcode(): BarcodeResult | null;
get mrzResult(): MRZResult | null;
get vizResult(): VIZResult | null;
get verificationResult(): VerificationResult;
get images(): IdImages;
private get barcodeResultsJSON();
private get mrzResultsJSON();
private static fromJSON;
isIdCard(): boolean;
isDriverLicense(): boolean;
isPassport(): boolean;
isVisaIcao(): boolean;
isRegionSpecific(subtype: RegionSpecificSubtype): boolean;
isResidencePermit(): boolean;
isHealthInsuranceCard(): boolean;
toJSONObject(): CapturedIdJSON;
}