@adyen/kyc-components
Version:
`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar
34 lines (33 loc) • 1.31 kB
TypeScript
import type { RetrieveAddressSuccessResponse } from '../address/useRetrieveAddress';
import type { CleanseAPIRequestPayload } from '../../core/models/api/contracts';
import type { AddressSchema } from '../../components/Shared/forms/Address/types';
import type { QueryOptions } from '../types';
export declare const useAddressCleanse: (data: CleanseAPIRequestPayload, options?: QueryOptions<RetrieveAddressSuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
city?: string;
country?: string;
houseNumberOrName?: string;
isPoBox?: boolean;
line1?: string;
line2?: string;
line3?: string;
poBox?: boolean;
postalCode?: string;
stateOrProvince?: string;
street?: string;
street2?: string;
}, Error>;
export declare const useAddressCleanseImperatively: () => (data: CleanseAPIRequestPayload) => Promise<{
city?: string;
country?: string;
houseNumberOrName?: string;
isPoBox?: boolean;
line1?: string;
line2?: string;
line3?: string;
poBox?: boolean;
postalCode?: string;
stateOrProvince?: string;
street?: string;
street2?: string;
}>;
export declare const formatAddressForCleanse: ({ address, city, country, postalCode, }: Pick<AddressSchema, "address" | "city" | "country" | "postalCode">) => string;