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) 901 B
import type { Schema } from 'type-fest'; import type { EntityProblems } from '../../core/models/errors/entity-problems'; import type { FormModel } from '../../core/models/form'; import type { SummaryItem } from './summaryItem'; import type { TrackNavigationProps } from '../../utils/trackNavigation'; export type SummaryOf<T> = Partial<Schema<T, string | SummaryItem>>; export interface Omitted { keys?: string[]; forms?: string[]; summaryEditButton?: string[]; } export interface SummaryProps<Schema extends object> { trackNavigation?: (props: TrackNavigationProps) => void; data: SummaryOf<Schema>; omitted?: Omitted; forms: FormModel[]; labels?: any; gotoForm?(nextFormIndex: number): void; problems?: EntityProblems; showFormHeader?: boolean; showSectionHeader?: boolean; showLegalCaption?: boolean; showTaxExemptedLegalCaption?: boolean; }