UNPKG

@adyen/kyc-components

Version:

`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar

25 lines (24 loc) 1.1 kB
import { TaskTypes } from '../components/TaskList/types'; import type { ExistingLegalEntity } from '../core/models/api/legal-entity'; import type { CountryCode } from '../core/models/country-code'; import type { Translatable } from '../language/types'; import type { PersonalDetailsSchema } from '../components/Individual/forms/Individual/PersonalDetails/types'; export declare const getAgeToday: (birthdate: string) => number; export declare const getAgeRangeForLegalRepresentative: (country: CountryCode) => { min: number; max: number; } | undefined; interface TranslatableAlertProps { title: Translatable; message: Translatable; } export declare const getLegalRepresentativeWarningMessage: ({ data: { birthDate, residencyCountry }, taskType, }: { data: PersonalDetailsSchema; taskType: TaskTypes; }) => TranslatableAlertProps | undefined; export declare const isAgeWithinRange: (age: number, ageRange: { min: number; max: number; }) => boolean; export declare const doesLegalEntityRequiresLegalRepresentative: (legalEntity?: ExistingLegalEntity) => boolean; export {};