@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.
11 lines (10 loc) • 610 B
TypeScript
import type { ArrayElement } from 'type-fest';
import type { CountryCode } from '../../types/datasets/country-code';
import type { StateCodeUS } from '../../types/datasets/state-code';
import type { components } from './companySearch.contract';
export type CompanySearchRequest = Omit<components['schemas']['ProviderAgnosticSearchCompanyRequest'], 'country' | 'state'> & {
country?: CountryCode;
state?: StateCodeUS;
};
export type CompanySearchResponse = components['schemas']['ProviderAgnosticSearchCompanyResponse'];
export type CompanySearchResult = ArrayElement<CompanySearchResponse['results']>;