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.

21 lines (20 loc) 1.78 kB
import type { ExistingLegalEntity, PatchLegalEntity } from '../../core/models/api/legal-entity'; import type { MutationOptions } from '../types'; type LegalEntityResponse = ExistingLegalEntity; export type UpdateLegalEntity = (data: PatchLegalEntity) => Promise<LegalEntityResponse>; export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<LegalEntityResponse, Error, PatchLegalEntity>, "mutationFn" | "onSuccess">) => 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, PatchLegalEntity, unknown>; export {};