@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.
16 lines (15 loc) • 787 B
TypeScript
import type { ExtractStrict } from 'type-fest';
import type { EndpointFromPaths, MutationOptions } from '../types';
import type { components, paths } from './pci.contract';
type PciEndpoint = EndpointFromPaths<keyof paths>;
export type PciSignEndpoint = ExtractStrict<PciEndpoint, `legalEntities/${string}/pci/signPciTemplates`>;
type SignPciResponse = components['schemas']['PciSigningResponse'];
type Request = components['schemas']['PciSigningRequest'];
export declare const useSignPci: (options?: Omit<MutationOptions<SignPciResponse, unknown, Request>, "mutationFn">) => import("@tanstack/preact-query").UseMutationResult<{
pciQuestionnaireIds?: string[];
signedBy?: string;
}, unknown, {
pciTemplateReferences?: string[];
signedBy?: string;
}, unknown>;
export {};