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

18 lines (17 loc) 913 B
import type { DataSet } from '../core/models/api/data-set'; import type { CountryCode } from '../core/models/country-code'; import type { ProvinceCode } from '../core/models/province-code'; import type { StateCode } from '../core/models/state-code'; export type DatasetIdentifier = 'countries' | `states/${CountryCode}`; export declare const datasetIdentifier: { readonly country: "countries"; readonly state: (countryCode: CountryCode) => DatasetIdentifier; }; export type DatasetUtil = { getCountryName: (countryCode: CountryCode | undefined) => string | null; getStateName: (stateCode: StateCode | ProvinceCode, countryCode: CountryCode) => string | null; setDataset: (datasetKey: string, dataset: DataSet) => void; getDataset: (identifier: string) => DataSet; getDatasetKey: (identifier: string) => string; }; export declare function datasetUtilities(locale: string): DatasetUtil;