UNPKG

@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) 818 B
import type { TermsOfServiceDocumentFormat } from '../../core/models/api/contracts'; import type { QueryOptions } from '../types'; import type { AcceptedTermsOfServiceResponse } from './termsOfService.types'; /** * Variables: * * `termsOfServiceAcceptanceReference` */ export type QueryKeyAcceptedTermsOfService = [ 'acceptedTermsOfService', string | undefined, TermsOfServiceDocumentFormat ]; export declare const useAcceptedTermsOfService: (termsOfServiceAcceptanceReference: string | undefined, documentFormat: TermsOfServiceDocumentFormat, options?: QueryOptions<AcceptedTermsOfServiceResponse>) => import("@tanstack/preact-query").UseQueryResult<{ document?: string; id?: string; termsOfServiceAcceptanceReference?: string; termsOfServiceDocumentFormat?: "JSON" | "PDF"; }, Error>;