@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
18 lines (17 loc) • 1.03 kB
TypeScript
import type { Dispatch, StateUpdater } from 'preact/hooks';
import type { BaseFormFieldProps } from '../../core/hooks/useForm/types';
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
import type { CountryCode } from '../../core/models/country-code';
import type { CompanyRegistrationNumberOption, CompanyRegistrationNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
export interface BusinessRegistrationNumberFieldSchema {
registrationNumber?: string;
exemptedFromRegistrationNumber?: boolean;
}
export interface BusinessRegistrationNumberFieldProps extends BaseFormFieldProps<BusinessRegistrationNumberFieldSchema> {
country: CountryCode;
canExempt: boolean;
companyType?: CompanyTypesValue | 'trust';
registrationNumberOptions: readonly CompanyRegistrationNumberOption[] | undefined;
registrationNumberType: CompanyRegistrationNumberType | undefined;
setRegistrationNumberType: Dispatch<StateUpdater<CompanyRegistrationNumberType | undefined>>;
}