@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.
257 lines (256 loc) • 10 kB
TypeScript
import type { UserEvents } from '../../core/user-events';
import type { QueryOptions } from '../types';
import type { TinVerificationRequest, TinVerificationResponse } from './tinVerification.types';
export type QueryKeyVerifyTin = ['verifyTin', TinVerificationRequest | undefined];
/**
* Supports querying declaratively (`useVerifyTin` hook) and imperatively
* (`queryClient.fetchQuery()`) with the same config, ensuring no deviation occurs
* between the two types.
*/
export declare const verifyTinQueryOptions: (rootLegalEntityId: string, baseUrl: string, data: TinVerificationRequest, userEvents: UserEvents, options?: QueryOptions<TinVerificationResponse>) => import("@tanstack/preact-query").UseQueryOptions<{
matched?: boolean;
}, Error, {
matched?: boolean;
}, import("../queryKeys").QueryKey> & {
initialData?: {
matched?: boolean;
} | import("@tanstack/preact-query").InitialDataFunction<{
matched?: boolean;
}> | undefined;
} & {
queryKey: ([] & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../termsOfService/useAcceptedTermsOfService").QueryKeyAcceptedTermsOfService & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../address/useAddressCleanse").QueryKeyAddressCleanse & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../uiAnalytics/useAnalyticsSession").QueryKeyAnalyticsSession & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../transferInstruments/transferInstruments.types").QueryKeyBankVerificationProviders & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../businessLines/useBusinessLines").QueryKeyBusinessLines & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../check/useCheck").QueryKeyCheckAsAService & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../companyDataSet/handleCompanyDataset").QueryKeyCompanyDataset & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../companySearch/useCompanySearch").QueryKeyCompanySearch & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../documents/useDocument").QueryKeyDocument & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../documents/useDocuments").QueryKeyDocuments & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../documentValidation/useDocumentValidate").QueryKeyDocumentValidation & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../idNowProvider/useIdNowProvider").QueryKeyIdNowProviderIdentificationStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../idNowProvider/useIdNowProvider").QueryKeyIdNowProviderStartIdentification & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../idVerificationProviders/useIdVerificationToken").QueryKeyIdVerificationToken & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../industryCodes/useIndustryCodes").QueryKeyIndustryCodes & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../invitations/useInvitationStatus").QueryKeyInvitationStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../invitedEntity/useInvitedEntityAssociationData").QueryKeyInvitedEntityAssociationData & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../legalEntity/useLegalEntity").QueryKeyLegalEntity & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../datasets/useLegalForms").QueryKeyLegalForms & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../datasets/useNaceCodes").QueryKeyNaceCodes & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../onboardingStatus/useOnboardingStatus").QueryKeyOnboardingStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../openId/useOpenIdAuthorizationLink").QueryKeyOpenIdAuthorizationLink & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../pci/usePciQuestionnaireList").QueryKeyPciQuestionnaireList & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../pci/usePciStatus").QueryKeyPciStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../pci/usePciTemplate").QueryKeyPciTemplate & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../providersConfiguration/useProviderStatus").QueryKeyProvidersStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../address/useRetrieveAddress").QueryKeyRetrieveAddress & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../configurations/useScenarios").QueryKeyScenarios & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../address/useSearchAddress").QueryKeySearchAddress & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../datasets/useSourceOfFundsTypes").QueryKeySourceOfFundsTypes & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../configurations/useSupportedCountries").QueryKeySupportedCountries & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../taskStatus/useTaskStatus").QueryKeyTaskStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../configurations/useTaskTypes").QueryKeyTaskTypes & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../taxClassification/useTaxClassification").QueryKeyTaxClassification & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../termsOfService/useTermsOfService").QueryKeyTermsOfService & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../termsOfService/useTermsOfServiceAcceptanceInfos").QueryKeyTermsOfServiceAcceptanceInfos & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../termsOfService/useTermsOfServiceStatus").QueryKeyTermsOfServiceStatus & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../toggles/useToggles").QueryKeyToggles & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../transferInstruments/useTransferInstrument").QueryKeyTransferInstrument & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../transferInstruments/useTransferInstruments").QueryKeyTransferInstruments & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../transferInstruments/useUpdateTrustedTransferInstrument").QueryKeyTrustedTransferInstrument & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../validation/useValidatePhoneNumber").QueryKeyValidatePhoneNumber & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (QueryKeyVerifyTin & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../configurations/useVersionConfiguration").QueryKeyVersionConfiguration & {
[]: {
matched?: boolean;
};
[]: Error;
}) | (import("../invitedEntity/useInvitedEntityRootCapabilities").QueryKeyInvitedEntityRootCapabilities & {
[]: {
matched?: boolean;
};
[]: Error;
});
};
export declare const useVerifyTin: (data: TinVerificationRequest, options?: QueryOptions<TinVerificationResponse>) => import("@tanstack/preact-query").UseQueryResult<{
matched?: boolean;
}, Error>;
export declare const verifyTin: (legalEntityId: string, baseUrl: string, data: TinVerificationRequest) => Promise<TinVerificationResponse>;