UNPKG

@osqo-npm/osqo-businesrules-package

Version:
35 lines (34 loc) 1.22 kB
import { enum_identity_type } from '@osqo-npm/constants-npm-package'; interface IDocTypes { type: enum_identity_type; } interface IOccupantDate { dateMovedIn: string; dateMovedOut: string; } /** * Purpose: Common function to calculate borrowerParty identity points according to documents. * @param identityArray * @returns */ export declare const calculateDocPoints: (identityArray: Array<IDocTypes>) => number; /** * Purpose: Common function to determine if one document comes from the primary category * @param identityArray * @returns */ export declare const hasOnePrimaryIdentityDoc: (identityArray: Array<IDocTypes>) => boolean; /** * Purpose: Common document validates the identity documents combination. * @param identityArray * @returns */ export declare const hasCompleteIdentityDocumentCombination: (identityArray: Array<IDocTypes>) => boolean; /** * Purpose: Calculates the length of occupancy in years and compares with required * @returns boolean * @param occupantDates */ export declare const hasThreeYearsOccupancy: (occupantDates: Array<IOccupantDate>) => boolean; export declare function isValidABN(rawAbn: string | number): boolean; export {};