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

20 lines (19 loc) 1.04 kB
import type { EntityProblems } from '../core/models/errors/entity-problems'; import type { FormList, FormModel, FormModelWithValidity } from '../core/models/form'; /** * @@description Based requiredfields and optionalFields determine what forms need to be shown and add a summaryStep in the dropin * * @param forms * @param requiredFields * @param optionalFields * @param skipSummary */ export declare const getRequiredForms: (forms: FormList, requiredFields: Record<string, string[]> | undefined, optionalFields: Record<string, string[]> | undefined, skipSummary?: boolean) => FormModel[]; /** * @description Based on validity of fields from formValidity and existence of validationErrors/Verification errors from backend determine whether the forms needs to be shown as valid or not * * @param forms * @param formValidity * @param problems */ export declare const addValidityToForms: (forms: FormModel[], formValidity: Record<string, boolean> | undefined, problems: EntityProblems | undefined) => FormModelWithValidity[];