@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.
19 lines (18 loc) • 930 B
TypeScript
import type { AccountIdentification } from '../../core/models/api/accountIdentification';
import type { QueryOptions } from '../types';
import type { components } from './check.contract';
export type CAASResponseError = components['schemas']['CheckResponseDto']['errors'];
export type CAASRequest = AccountIdentification;
type CheckSuccessResponse = components['schemas']['CheckResponseDto'];
export type QueryKeyCheckAsAService = ['checkAsAService', AccountIdentification];
/**
*
* @param data CheckAsAService request
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
*/
export declare const useCheck: (data: CAASRequest, options?: QueryOptions<CheckSuccessResponse>) => import("@tanstack/preact-query").UseQueryResult<{
checkReference?: string;
errors?: components["schemas"]["CheckErrorDto"][];
status?: components["schemas"]["CheckStatusDto"];
}, Error>;
export {};