UNPKG

tc-check

Version:

A Node.js and TypeScript package to validate Turkish citizens using first name, last name, birth year, and T.C. Kimlik Number via the official government API.

14 lines (13 loc) 442 B
import { Person } from '../types/person'; import { Result } from '../types/result'; import { ISOAPService } from './soapService'; export interface IAPIService { verifyPerson(person: Person): Promise<Result>; } export declare class APIService implements IAPIService { private soapService; private serviceUrl; private servicePath; constructor(soapService: ISOAPService); verifyPerson(person: Person): Promise<Result>; }