UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

10 lines (9 loc) 1.02 kB
import type { TopLevelDataSchema } from '../context/StateContext/types'; import type { ExistingLegalEntity, LegalEntity } from '../core/models/api/legal-entity'; import type { TrustedFieldsProvider } from '../core/models/api/trusted-fields-provider'; import type { UniqueEntityAssociation } from '../components/Shared/EntityAssociation/types'; import type { MappingRecord } from './mapping/mappingRecord'; export declare function getTrustedFields(rootLegalEntity: ExistingLegalEntity, apiMapping: MappingRecord<TopLevelDataSchema, LegalEntity>, provider?: TrustedFieldsProvider): Record<string, string[]>; export declare function getTrustedEntityAssociations(rootLegalEntity: ExistingLegalEntity, provider?: TrustedFieldsProvider): Partial<UniqueEntityAssociation>[]; export declare function getTrustedFieldsProvider(rootLegalEntity: ExistingLegalEntity): TrustedFieldsProvider | undefined; export declare function parseTrustedEntityAssociationsFromApiFields(trustedApiFields: string[]): Partial<UniqueEntityAssociation>[];