@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) • 1.69 kB
TypeScript
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
import type { MutationOptions } from '../types';
export type CreateLegalEntity = (data: LegalEntity) => Promise<ExistingLegalEntity>;
export declare const useCreateLegalEntity: (options?: Omit<MutationOptions<ExistingLegalEntity, Error, LegalEntity>, "mutationFn">) => import("@tanstack/preact-query").UseMutationResult<{
documentDetails?: import("../../core/models/api/document").DocumentDetail[] | undefined;
entityAssociations?: import("../../core/models/api/legal-entity-association").LegalEntityAssociation[] | undefined;
individual?: import("../../core/models/api/individual").Individual | undefined;
organization?: import("../../core/models/api/organization").Organization | undefined;
soleProprietorship?: import("../../core/models/api/sole-proprietor").SoleProprietor | undefined;
trust?: import("../../core/models/api/trust").Trust | undefined;
unincorporatedPartnership?: import("../../core/models/api/unincorporated-partnership").UnincorporatedPartnership | undefined;
capabilities?: Partial<Record<import("../../core/models/api/capability").CapabilityName, import("../../core/models/api/capability").Capability>> | undefined;
problems?: import("../../core/models/api/problem").Problem[] | undefined;
transferInstruments?: import("../../core/models/api/transfer-instrument").TransferInstrumentOverview[] | undefined;
trustedFields?: import("../../core/models/api/legal-entity").LegalEntityTrustedFields[] | undefined;
id: string;
type: import("../../core/models/api/legal-entity-type").LegalEntityType;
}, Error, LegalEntity, unknown>;