@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
21 lines (20 loc) • 1 kB
TypeScript
import type { QueryOptions } from '../types';
import type { components } from './address.contract';
export type SearchAddressRequest = components['schemas']['AddressComponentSearchRequest'];
export interface SearchAddressResult {
description: string;
highlight: string;
id: string;
text: string;
type: 'Address' | string;
addressAmount?: string;
}
export type SearchAddressSuccessResponse = Omit<components['schemas']['AddressComponentSearchResponse'], 'results'> & {
results: SearchAddressResult[];
};
export declare const searchAddress: (legalEntityId: string, url: string, data: SearchAddressRequest) => Promise<SearchAddressSuccessResponse>;
/**
* @param data
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
*/
export declare const useSearchAddress: (data: SearchAddressRequest, options?: QueryOptions<SearchAddressSuccessResponse>) => import("@tanstack/react-query").UseQueryResult<SearchAddressSuccessResponse, Error>;