Skip to content
GBG Documents & Biometrics Documentation

IDocument

A document description returned from the services

Signature:

export interface IDocument
Property Type Description
category string The category of the document
expirationDate string The expiration data of the document
images IDocumentImage[] The images contained within the document
isRecognised boolean Has the document been recognised as valid by the services?
issueDate string The issue date of the document
issueNumber string The issue number of the document
name string The name on the document
number string The number on the document
side string The side of the document
type `IdDocuments NonIdDocuments`

The category of the document

Signature:

readonly category?: string;

The expiration data of the document

Signature:

readonly expirationDate?: string;

The images contained within the document

Signature:

readonly images?: IDocumentImage[];

Has the document been recognised as valid by the services?

Signature:

readonly isRecognised?: boolean;

The issue date of the document

Signature:

readonly issueDate?: string;

The issue number of the document

Signature:

readonly issueNumber?: string;

The name on the document

Signature:

readonly name?: string;

The number on the document

Signature:

readonly number?: string;

The side of the document

Signature:

readonly side?: string;

The type of the document as determined by the services

Signature:

readonly type?: IdDocuments | NonIdDocuments;