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.

49 lines (48 loc) 1.58 kB
import type { DOMAttributes } from 'react'; import type { DefineComponent } from 'vue'; import type { BusinessFinancingSchema } from '../../components/EFP/tasks/BusinessFinancingDropin/types'; import type { BaseEmbedProps } from '../baseEmbedProps'; /** * @see https://docs.adyen.com/platforms/onboard-users/components/transfer-instrument/#initialize-components */ export interface AdyenBusinessFinancingProps extends BaseEmbedProps { /** Invoked when form has been completed by user */ oncomplete?(data: BusinessFinancingSchema): void; /** Invoked when user clicks the close button in the modal or nav bar */ onclose?(): void; } declare module 'preact/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'adyen-business-financing': AdyenBusinessFinancingProps; } } } type CustomElement<T> = Partial<T & DOMAttributes<T> & { children: any; }>; declare global { namespace JSX { interface IntrinsicElements { 'adyen-business-financing': CustomElement<AdyenBusinessFinancingProps>; } } namespace preact.JSX { interface IntrinsicElements { 'adyen-business-financing': AdyenBusinessFinancingProps; } } } declare module 'react/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'adyen-business-financing': AdyenBusinessFinancingProps; } } } declare module 'vue' { interface GlobalComponents { 'adyen-business-financing': DefineComponent<AdyenBusinessFinancingProps>; } } export {};