UNPKG

@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.5 kB
import type { AccountHolderOption } from '../../core/types/AccountHolder.types'; import type { Translatable } from '../../../types'; import type { ExistingLegalEntity } from '../../core/models/api/legal-entity'; import type { UniqueEntityAssociation } from '../../components/Shared/EntityAssociation/types'; declare enum SingpassMyInfoLoginActionType { LOADING = "LOADING", SUCCESS = "SUCCESS", FAILURE = "FAILURE", RESET = "RESET" } interface SingpassMyInfoLoginAction { type: SingpassMyInfoLoginActionType; isLoading: boolean; isSuccess: boolean; errorMessage?: Translatable; } export type SingpassMyInfoLoginState = Omit<SingpassMyInfoLoginAction, 'type'>; interface UseSingpassMyInfoLoginProps { legalEntity?: ExistingLegalEntity; accountHolder: AccountHolderOption | undefined; } export declare const getTrustedEntityAssociations: (legalEntityTrustedFields: string[]) => Partial<UniqueEntityAssociation>[]; export declare const useSingpassMyInfoLogin: ({ legalEntity, accountHolder, }: UseSingpassMyInfoLoginProps) => { isEligibleForSingpass: boolean; state: SingpassMyInfoLoginState; handleInitiateSingpassMyInfoLogin: () => Promise<string>; handleSingpassMyInfoLoginSuccess: () => void; handleSingpassMyInfoLoginFailure: (errorMessage: Translatable) => void; handleSingpassMyInfoLoginReset: () => void; trustedFields: Record<string, string[]>; trustedEntityAssociations: Partial<UniqueEntityAssociation>[]; }; export {};