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.

12 lines (11 loc) 806 B
import type { ExtractStrict } from 'type-fest'; import type { EndpointFromPaths, QueryOptions } from '../types'; import type { components, paths } from './termsOfService.contract'; export type TermsOfServiceStatusResponse = components['schemas']['TermsOfServiceStatusResponse']; type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>; export type TermsOfServiceStatusEndpoint = ExtractStrict<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/termsOfServiceStatus`>; export type QueryKeyTermsOfServiceStatus = ['termsOfServiceStatus']; export declare const useTermsOfServiceStatus: (options?: QueryOptions<TermsOfServiceStatusResponse>) => import("@tanstack/preact-query").UseQueryResult<{ termsOfServiceTypes?: components["schemas"]["TermsOfServiceType"][]; }, Error>; export {};