@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) • 696 B
TypeScript
import type { MutationOptions } from '../../../types';
import type { Document, ExistingDocument } from '../../core/models/api/document';
import type { ComponentApiRequestContext } from '../../core/services/types';
export declare const updateDocument: (context: ComponentApiRequestContext, document: Document, documentId: string, ownerId: string) => Promise<ExistingDocument>;
type Payload = {
document: Document;
documentId: string;
ownerId: string;
};
export declare const useUpdateDocument: (options?: Omit<MutationOptions<ExistingDocument, Error, Payload>, "mutationFn">) => import("@tanstack/preact-query").UseMutationResult<ExistingDocument, Error, Payload, unknown>;
export {};