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

11 lines (10 loc) 1.01 kB
import type { BusinessDetailsSchema } from '../components/Business/forms/BusinessDetails/types'; import type { CompanySchema } from '../components/Business/forms/Company/types'; import type { SolePropSchema } from '../components/SoleProprietorship/forms/SoleProp/types'; import type { TrustSchema } from '../components/Trust/forms/Trust/types'; import type { ExperimentName } from '../core/context/ExperimentContext/types'; import type { ExistingLegalEntity } from '../core/models/api/legal-entity'; import type { RecursiveKeyOf } from './getNestedPropertyKeys'; import type { IndividualSchema } from '../components/Individual/forms/Individual/types'; export type AnyTLDSFieldName = RecursiveKeyOf<IndividualSchema> | RecursiveKeyOf<CompanySchema> | RecursiveKeyOf<BusinessDetailsSchema> | RecursiveKeyOf<SolePropSchema> | RecursiveKeyOf<TrustSchema>; export declare const getFieldsWithExistingData: (legalEntity: ExistingLegalEntity, isExperimentEnabled?: (key: ExperimentName) => boolean) => AnyTLDSFieldName[];