@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) • 842 B
TypeScript
import type { ExtractStrict } from 'type-fest';
import type { ServiceAgreementAcceptanceInfos } from '../../core/models/api/contracts';
import type { EndpointFromPaths, QueryOptions } from '../types';
import type { paths } from './termsOfService.contract';
type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>;
export type TermsOfServiceAcceptanceInfoEndpoint = ExtractStrict<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/termsOfServiceAcceptanceInfos`>;
type AcceptanceInfosResponse = ServiceAgreementAcceptanceInfos;
export type QueryKeyTermsOfServiceAcceptanceInfos = ['termsOfServiceAcceptanceInfos'];
export declare const useTermsOfServiceAcceptanceInfos: (options?: QueryOptions<AcceptanceInfosResponse>) => import("@tanstack/preact-query").UseQueryResult<ServiceAgreementAcceptanceInfos, Error>;
export {};