UNPKG

@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

12 lines (11 loc) 886 B
import type { TermsOfServiceDocumentFormat } from '../../core/models/api/contracts'; import type { QueryOptions } from '../types'; import type { components } from './termsOfService.contract'; export type SuccessResponse = components['schemas']['GetAcceptedTermsOfServiceDocumentResponse']; export declare const getAcceptedTermsOfService: (legalEntityId: string, url: string, termsOfServiceAcceptanceReference: string, documentFormat: TermsOfServiceDocumentFormat) => Promise<SuccessResponse>; export declare const useAcceptedTermsOfService: (termsOfServiceAcceptanceReference: string | undefined, documentFormat: TermsOfServiceDocumentFormat, options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{ document?: string; id?: string; termsOfServiceAcceptanceReference?: string; termsOfServiceDocumentFormat?: "JSON" | "PDF"; }, Error>;