@adyen/kyc-components 2.58.0 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/adyen-kyc-components.es.js +17927 -17464
- package/dist/es/cross-CzBW8i1Z.js +5 -0
- package/dist/es/hide-CWI5yHxd.js +9 -0
- package/dist/es/show-Cm_JGm0K.js +8 -0
- package/dist/style.css +127 -214
- package/dist/types/components/AdditionalInformation/types.d.ts +2 -2
- package/dist/types/components/AutoResizer.d.ts +50 -0
- package/dist/types/components/BankDocument/component/BankDocumentComponent.d.ts +1 -1
- package/dist/types/components/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +3 -13
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +7 -19
- package/dist/types/components/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/BusinessDetails/types.d.ts +2 -3
- package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -1
- package/dist/types/components/Company/types.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/CompanyRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/CompanyType/types.d.ts +1 -1
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +1 -1
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +1 -1
- package/dist/types/components/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +1 -1
- package/dist/types/components/Dropins/types.d.ts +2 -1
- package/dist/types/components/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/types.d.ts +3 -3
- package/dist/types/components/IdVerification/types.d.ts +3 -3
- package/dist/types/components/IdVerificationMethod/types.d.ts +3 -3
- package/dist/types/components/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +1 -2
- package/dist/types/components/Individual/types.d.ts +1 -1
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +3 -3
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +2 -5
- package/dist/types/components/PayoutDetails/rules.d.ts +4 -5
- package/dist/types/components/PayoutDetails/types.d.ts +4 -4
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +2 -1
- package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +18 -3
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +15 -5
- package/dist/types/components/PersonalDetails/component/IdentityComponent/types.d.ts +1 -1
- package/dist/types/components/PersonalDetails/types.d.ts +4 -5
- package/dist/types/components/ProofOfRelationship/index.d.ts +1 -1
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +1 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
- package/dist/types/components/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
- package/dist/types/components/SoleProp/types.d.ts +1 -1
- package/dist/types/components/Trust/types.d.ts +1 -1
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/internal/Address/types.d.ts +1 -1
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +0 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/internal/BankCity/types.d.ts +1 -1
- package/dist/types/components/internal/BankCode/types.d.ts +1 -1
- package/dist/types/components/internal/BankName/types.d.ts +1 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessNameField/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +1 -1
- package/dist/types/components/internal/Button/Button.d.ts +0 -1
- package/dist/types/components/internal/ContractViewer/types.d.ts +1 -1
- package/dist/types/components/internal/CountryField/types.d.ts +1 -5
- package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/internal/Currency/types.d.ts +1 -1
- package/dist/types/components/internal/DBANameField/types.d.ts +1 -1
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/internal/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +4 -5
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -1
- package/dist/types/components/internal/FormFields/utils.d.ts +1 -2
- package/dist/types/components/internal/Iban/types.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +3 -7
- package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +1 -2
- package/dist/types/components/internal/LegalFormField/types.d.ts +3 -2
- package/dist/types/components/internal/Modal/Modal.d.ts +2 -1
- package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +1 -2
- package/dist/types/components/internal/NaceCodeField/types.d.ts +3 -2
- package/dist/types/components/internal/Name/Name.d.ts +1 -1
- package/dist/types/components/internal/Name/types.d.ts +1 -1
- package/dist/types/components/internal/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +1 -1
- package/dist/types/components/internal/StateField/types.d.ts +1 -1
- package/dist/types/components/internal/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/internal/Svg/Svg.d.ts +2 -2
- package/dist/types/components/internal/Svg/svgs.d.ts +73 -71
- package/dist/types/components/internal/SwiftCode/types.d.ts +1 -1
- package/dist/types/components/internal/TaxId/types.d.ts +1 -1
- package/dist/types/components/internal/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/internal/VatNumberField/VatNumberField.d.ts +2 -2
- package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +1 -1
- package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +2 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +6 -6
- package/dist/types/core/hooks/useBusinessData/constants.d.ts +4 -0
- package/dist/types/core/hooks/useBusinessData/types.d.ts +10 -3
- package/dist/types/core/hooks/useBusinessData/useBusinessData.d.ts +0 -3
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +0 -2
- package/dist/types/core/models/api/get-bankVerification-providers.d.ts +1 -2
- package/dist/types/core/models/api/get-configuration.d.ts +2 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -1
- package/dist/types/core/models/country-config.d.ts +1 -1
- package/dist/types/core/models/errors/error-message.d.ts +0 -5
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +0 -6
- package/dist/types/core/models/identity.d.ts +6 -0
- package/dist/types/core/models/province-code.d.ts +2 -1
- package/dist/types/core/process-field-configurations.d.ts +1 -1
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -6
- package/dist/types/utils/debounce.d.ts +1 -0
- package/dist/types/utils/entity-association-util.d.ts +1 -8
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/get-props.d.ts +1 -1
- package/dist/types/utils/isEmpty.d.ts +1 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/perState.d.ts +0 -3
- package/dist/types/utils/range.d.ts +8 -0
- package/dist/types/utils/validation/ValidationResult.d.ts +0 -2
- package/dist/types/utils/validation/types.d.ts +2 -16
- package/package.json +19 -17
- package/dist/es/cross-small-C1cWZC1v.js +0 -5
- package/dist/types/components/BankDocument/index.d.ts +0 -2
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +0 -1
- package/dist/types/components/internal/BankCity/index.d.ts +0 -1
- package/dist/types/components/internal/BankCode/index.d.ts +0 -1
- package/dist/types/components/internal/BankName/index.d.ts +0 -1
- package/dist/types/components/internal/BranchCode/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +0 -1
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +0 -2
- package/dist/types/components/internal/Iban/index.d.ts +0 -1
- package/dist/types/components/internal/Name/index.d.ts +0 -1
- package/dist/types/components/internal/SwiftCode/index.d.ts +0 -1
- package/dist/types/components/internal/Toast/index.d.ts +0 -2
- package/dist/types/components/internal/VatNumberField/index.d.ts +0 -2
- package/dist/types/core/Services/componentApi/index.d.ts +0 -12
- package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -5
- package/dist/types/core/hooks/useForm/index.d.ts +0 -3
- package/dist/types/utils/LoadedValue.d.ts +0 -2
- package/dist/types/utils/mapping/businessDetails/index.d.ts +0 -3
- package/dist/types/utils/regex/index.d.ts +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -11,7 +11,7 @@ import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICFi
|
|
|
11
11
|
import type { StockISINFieldSchema } from '../internal/StockISINField/types';
|
|
12
12
|
import type { StockTickerSymbolFieldSchema } from '../internal/StockTickerSymbol/types';
|
|
13
13
|
import type { TaxInformationFieldSchema } from '../internal/TaxInformationField/types';
|
|
14
|
-
import type { VatNumberFieldSchema } from '../internal/VatNumberField';
|
|
14
|
+
import type { VatNumberFieldSchema } from '../internal/VatNumberField/types';
|
|
15
15
|
import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
|
|
16
16
|
export interface AdditionalInformationSchema extends LegalCompanyNameFieldSchema, DBANameFieldSchema, VatNumberFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema, DateOfIncorporationFieldSchema, StockISINFieldSchema, StockExchangeMICFieldSchema, StockTickerSymbolFieldSchema, RegistrationAddressSchema {
|
|
17
17
|
legalFormDescription?: string;
|
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
import type { ComponentChildren } from 'preact';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the layout breakpoints.
|
|
4
|
+
* - `xsOnly`: Extra small screens.
|
|
5
|
+
* - `md`: Medium screens.
|
|
6
|
+
* - `lg`: Large screens.
|
|
7
|
+
*/
|
|
2
8
|
export type Layout = 'xsOnly' | 'md' | 'lg';
|
|
9
|
+
/**
|
|
10
|
+
* Mapping of layout breakpoints to their corresponding CSS class names.
|
|
11
|
+
* - `xsOnly`: 'adyen-layout-xs-only'
|
|
12
|
+
* - `md`: 'adyen-layout-md'
|
|
13
|
+
* - `lg`: 'adyen-layout-lg'
|
|
14
|
+
*/
|
|
15
|
+
export declare const layoutBreakpointClassnames: Record<Layout, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The minimum container widths (in pixels) required to apply each breakpoint.
|
|
18
|
+
* - `md`: 680px
|
|
19
|
+
* - `lg`: 1024px
|
|
20
|
+
*/
|
|
3
21
|
export declare const layoutBreakpointSizes: Partial<Record<Layout, number>>;
|
|
22
|
+
/**
|
|
23
|
+
* Computes the appropriate CSS class names based on the given container size.
|
|
24
|
+
*
|
|
25
|
+
* @param containerSize - The width of the container in pixels.
|
|
26
|
+
* @returns An array of CSS class names corresponding to the breakpoints that match the container size.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* getBreakpointClassNames(700);
|
|
30
|
+
* // Returns ['adyen-layout-md']
|
|
31
|
+
*/
|
|
32
|
+
export declare const getBreakpointClassNames: (containerSize: number) => string[];
|
|
33
|
+
/**
|
|
34
|
+
* Assigns layout CSS classes to a container element based on its size.
|
|
35
|
+
*
|
|
36
|
+
* @param entries - An array of `ResizeObserverEntry` objects representing observed size changes.
|
|
37
|
+
* @param container - The target HTML element whose classes will be updated.
|
|
38
|
+
*/
|
|
39
|
+
export declare const assignLayoutClasses: (entries: ResizeObserverEntry[], container: HTMLElement) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Component that dynamically applies CSS classes to its container
|
|
42
|
+
* element based on its size. It observes size changes using the ResizeObserver API.
|
|
43
|
+
*
|
|
44
|
+
* @param props - The component props.
|
|
45
|
+
* @param props.children - The child elements to render within the resizable container.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* <AutoResizer>
|
|
49
|
+
* <div>Responsive content</div>
|
|
50
|
+
* </AutoResizer>
|
|
51
|
+
*
|
|
52
|
+
* @returns A `div` element with dynamic class names applied based on container width.
|
|
53
|
+
*/
|
|
4
54
|
export declare const AutoResizer: ({ children }: {
|
|
5
55
|
children: ComponentChildren;
|
|
6
56
|
}) => import("preact").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../BankDocument.scss';
|
|
2
2
|
import type { BankDocumentProps, BankDocumentSchema } from '../types';
|
|
3
3
|
export declare const bankDocumentFields: Array<keyof BankDocumentSchema>;
|
|
4
|
-
declare function BankDocument(props: BankDocumentProps): import("preact
|
|
4
|
+
declare function BankDocument(props: BankDocumentProps): import("preact").JSX.Element;
|
|
5
5
|
export declare const BankDocumentComponent: typeof BankDocument;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
3
|
import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
|
-
import type { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
|
|
2
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
4
3
|
import type { LegalEntity } from '../../core/models/api/legal-entity';
|
|
5
4
|
import type { BankVerificationErrorResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
6
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
7
6
|
import type { Currency } from '../../core/models/currency';
|
|
8
|
-
import type { DropinAPIHandlers } from '../Dropins/types';
|
|
9
7
|
import type { PayoutDetailsProps } from '../PayoutDetails/types';
|
|
10
8
|
export interface AccountVerificationResponse {
|
|
11
9
|
bankName: string;
|
|
@@ -22,7 +20,7 @@ export interface AccountVerificationSchema {
|
|
|
22
20
|
verifiedBankName?: string;
|
|
23
21
|
}
|
|
24
22
|
export interface PayoutAccountVerificationProps extends BaseInnerFormProps<AccountVerificationSchema> {
|
|
25
|
-
|
|
23
|
+
provider?: BankVerificationVendor;
|
|
26
24
|
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
27
25
|
onBack?: () => void;
|
|
28
26
|
country: CountryCode;
|
|
@@ -35,19 +33,11 @@ export interface PayoutAccountVerificationProps extends BaseInnerFormProps<Accou
|
|
|
35
33
|
createTrustedTransferInstrument: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
36
34
|
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
37
35
|
}
|
|
38
|
-
export interface InstantBankVerificationProps {
|
|
39
|
-
getBankVerificationVendors: (country: CountryCode) => Promise<BankVerificationVendorsResponse>;
|
|
40
|
-
retrieveBankAccountInfo: (info: AccountVerificationResponse) => void;
|
|
41
|
-
setBankVerificationError: (error: InstantVerificationErrorNotification | null) => void;
|
|
42
|
-
country: CountryCode;
|
|
43
|
-
onBack?(): void;
|
|
44
|
-
createTrustedTransferInstrument: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
45
|
-
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
46
|
-
}
|
|
47
36
|
export type CountryBankVerificationVendors = Partial<Record<CountryCode, string>>;
|
|
48
37
|
export interface BankVerificationVendor {
|
|
49
38
|
name: string;
|
|
50
39
|
redirectUrl: string;
|
|
40
|
+
logoUrl?: string;
|
|
51
41
|
}
|
|
52
42
|
export interface InstantVerificationErrorNotification {
|
|
53
43
|
title: string;
|
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
import './BankVerificationWidget.scss';
|
|
2
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
3
|
import type { BankVerificationErrorResponse } from '../../../../../core/models/api/trusted-transferInstrument';
|
|
3
4
|
import type { PayoutDetailsProps } from '../../../../PayoutDetails/types';
|
|
4
|
-
import type { AccountVerificationResponse } from '../../../types';
|
|
5
|
-
import type { AccountVerificationCallbackErrorObject } from '../iframeWidget';
|
|
6
|
-
type SuccessPayload = {
|
|
7
|
-
action: 'verification_success';
|
|
8
|
-
result: {
|
|
9
|
-
accounts: AccountVerificationResponse[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
type ExceptionPayload = {
|
|
13
|
-
action: 'handle_verification_exception';
|
|
14
|
-
err: Error | AccountVerificationCallbackErrorObject | undefined;
|
|
15
|
-
};
|
|
16
|
-
type RetryPayload = {
|
|
17
|
-
action: 'retry_verification';
|
|
18
|
-
};
|
|
19
|
-
export type VerificationWidgetCallback = (payload: SuccessPayload | ExceptionPayload | RetryPayload) => void;
|
|
5
|
+
import type { AccountVerificationResponse, InstantVerificationErrorNotification } from '../../../types';
|
|
20
6
|
export type BankVerificationWidgetProps = {
|
|
21
7
|
url: string;
|
|
22
8
|
vendor: string;
|
|
23
|
-
|
|
9
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
10
|
+
setVerificationComplete: Dispatch<StateUpdater<boolean>>;
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
retrieveBankAccountInfo: (res: AccountVerificationResponse) => void;
|
|
24
13
|
createTrustedTransferInstrument: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
25
14
|
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
26
15
|
};
|
|
27
|
-
export declare function BankVerificationWidget({ url, vendor,
|
|
28
|
-
export default BankVerificationWidget;
|
|
16
|
+
export declare function BankVerificationWidget({ url, vendor, setBankVerificationError, setVerificationComplete, onBack, retrieveBankAccountInfo, createTrustedTransferInstrument, handleBankVerificationError, }: BankVerificationWidgetProps): import("preact").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { HookStatus } from '../../core/hooks/types';
|
|
3
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
4
4
|
import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
|
|
5
5
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
6
6
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { HookStatus } from '../../core/hooks/types';
|
|
3
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
4
|
-
import type { CompanyDatasetResponse,
|
|
3
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
4
|
+
import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
|
|
5
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
6
6
|
import type { FormModel } from '../../core/models/form';
|
|
7
7
|
import type { BaseTrackingPayload } from '../../core/utils';
|
|
@@ -37,7 +37,6 @@ export interface BusinessDetailsProps extends BaseOuterFormProps<BusinessDetails
|
|
|
37
37
|
handleAddressSearch: DropinAPIHandlers['handleAddressSearch'];
|
|
38
38
|
handleFindAddress: DropinAPIHandlers['handleFindAddress'];
|
|
39
39
|
resetTinVerification: () => void;
|
|
40
|
-
searchForBusiness: (data: CompanySearchRequest) => Promise<CompanySearchResult[] | undefined>;
|
|
41
40
|
fetchBusinessData: (company: CompanySearchResult) => Promise<CompanyDatasetResponse | undefined>;
|
|
42
41
|
verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
|
|
43
42
|
proceedToManualDataEntry: () => Promise<void>;
|
|
@@ -15,7 +15,7 @@ export declare const companyForms: {
|
|
|
15
15
|
readonly companyRegistrationDetails: {
|
|
16
16
|
readonly formId: "companyRegistrationDetails";
|
|
17
17
|
readonly formName: "registrationDetails";
|
|
18
|
-
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/
|
|
18
|
+
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/VatNumberField/types").VatNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
|
|
19
19
|
};
|
|
20
20
|
readonly companyRegistrationAddress: {
|
|
21
21
|
readonly formId: "companyRegistrationAddress";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
3
3
|
import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CompanyNameAndCountryProps, CompanyNameAndCountrySchema } from '../types';
|
|
2
2
|
export declare const countryWithGoverningLawFields: Array<keyof CompanyNameAndCountrySchema>;
|
|
3
3
|
export declare const companyNameAndCountryFields: Array<keyof CompanyNameAndCountrySchema>;
|
|
4
|
-
declare function CompanyNameAndCountry(props: CompanyNameAndCountryProps): import("preact
|
|
4
|
+
declare function CompanyNameAndCountry(props: CompanyNameAndCountryProps): import("preact").JSX.Element;
|
|
5
5
|
export declare const CompanyNameAndCountryComponent: typeof CompanyNameAndCountry;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { CountryFieldSchema } from '../internal/CountryField/types';
|
|
4
4
|
import type { CountryOfGoverningLawFieldSchema } from '../internal/CountryOfGoverningLawField/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
4
|
import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
4
|
export interface CompanyTypeSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ConstitutionalDocumentProps } from './types';
|
|
2
|
-
declare function ConstitutionalDocumentUpload({ id, legalEntityType, ...props }: ConstitutionalDocumentProps): import("preact
|
|
2
|
+
declare function ConstitutionalDocumentUpload({ id, legalEntityType, ...props }: ConstitutionalDocumentProps): import("preact").JSX.Element;
|
|
3
3
|
export declare const ConstitutionalDocumentComponent: typeof ConstitutionalDocumentUpload;
|
|
4
4
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContactDetailsProps, ContactDetailsSchema } from '../types';
|
|
2
2
|
export declare const contactDetailFields: Array<keyof ContactDetailsSchema>;
|
|
3
|
-
declare function ContactDetailsComponent(props: ContactDetailsProps): import("preact
|
|
3
|
+
declare function ContactDetailsComponent(props: ContactDetailsProps): import("preact").JSX.Element;
|
|
4
4
|
declare namespace ContactDetailsComponent {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
data: {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
export interface ContactDetailsSchema {
|
|
4
4
|
phoneNumber?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DocumentUploadProps } from './types';
|
|
2
|
-
declare function DocumentUploadComponent({ documentType, documentField, guidanceHeader, documentTypeSelect, guidanceContent, ...props }: DocumentUploadProps): import("preact
|
|
2
|
+
declare function DocumentUploadComponent({ documentType, documentField, guidanceHeader, documentTypeSelect, guidanceContent, ...props }: DocumentUploadProps): import("preact").JSX.Element;
|
|
3
3
|
declare const DocumentUpload: typeof DocumentUploadComponent;
|
|
4
4
|
export default DocumentUpload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentChild } from 'preact';
|
|
2
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { DocumentType } from '../../core/models/api/document';
|
|
5
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -8,7 +8,7 @@ import type { DocumentApiUtils } from '../../../utils/api/documentUtils';
|
|
|
8
8
|
import type { BusinessDetailsProps, BusinessDetailsSchema } from '../../BusinessDetails/types';
|
|
9
9
|
import type { AccountHolderOption } from '../../internal/AccountHolder/types';
|
|
10
10
|
import type { LoadingStatus } from '../../internal/LoaderWrapper/constants';
|
|
11
|
-
import type { ToastOptions } from '../../internal/Toast';
|
|
11
|
+
import type { ToastOptions } from '../../internal/Toast/types';
|
|
12
12
|
import type { TrustMember } from '../../TrustMembers/types';
|
|
13
13
|
import type { DropinAPIHandlers, DropinProps } from '../types';
|
|
14
14
|
export declare enum BusinessDetailsEvents {
|
|
@@ -32,7 +32,7 @@ export type BusinessDetailsDropinApihandler = Required<Pick<DropinAPIHandlers, '
|
|
|
32
32
|
handleVerifyTin?: DropinAPIHandlers['handleVerifyTin'];
|
|
33
33
|
handleClearCompanyData?: DropinAPIHandlers['handleClearCompanyData'];
|
|
34
34
|
};
|
|
35
|
-
export type BusinessDetailsDropin = Omit<BusinessDetailsProps, 'isTopLevelEntity' | 'baseTrackingPayload' | 'handleNextClick' | 'showCompanyStructure' | 'showBusinessSelection' | 'searching' | 'fetching' | 'verifying' | 'resettingTrustedData' | 'searchResults' | 'invalidTin' | 'resetTinVerification' | 'verifiedBusiness' | '
|
|
35
|
+
export type BusinessDetailsDropin = Omit<BusinessDetailsProps, 'isTopLevelEntity' | 'baseTrackingPayload' | 'handleNextClick' | 'showCompanyStructure' | 'showBusinessSelection' | 'searching' | 'fetching' | 'verifying' | 'resettingTrustedData' | 'searchResults' | 'invalidTin' | 'resetTinVerification' | 'verifiedBusiness' | 'fetchBusinessData' | 'verifyBusinessData' | 'proceedToManualDataEntry' | 'setShowBusinessSelection' | 'setShowCompanyStructure'>;
|
|
36
36
|
export interface BusinessDetailsDropinProps extends BusinessDetailsDropin, BusinessDetailsDropinApihandler, DropinProps {
|
|
37
37
|
legalEntityResponse: ExistingLegalEntity;
|
|
38
38
|
isTargetLegalEntityType?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OuterFormLabels } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { OuterFormLabels } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { ParseConfiguration } from '../../../core/hooks/useScenarioConfiguration';
|
|
3
3
|
import type { FormModelWithValidity } from '../../../core/models/form';
|
|
4
4
|
import type Language from '../../../language/Language';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../../core/models/api/capability';
|
|
3
3
|
import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Document } from '@adyen/adyen-document-viewer
|
|
1
|
+
import type { Document } from '@adyen/adyen-document-viewer';
|
|
2
2
|
import type { ServiceAgreementRequest, ServiceAgreementResponse } from '../../../../core/models/api/contracts';
|
|
3
3
|
import type { LoadingStatus } from '../../../internal/LoaderWrapper/constants';
|
|
4
4
|
import type { DropinAPIHandlers } from '../../types';
|
|
@@ -12,6 +12,7 @@ import type { TransferInstrument } from '../../core/models/api/transfer-instrume
|
|
|
12
12
|
import type { OnboardingLinkConfig, OnboardingLinkResponse, OnboardingStatusResponse } from '../../core/models/api/view-verification-status';
|
|
13
13
|
import type { CountryCode } from '../../core/models/country-code';
|
|
14
14
|
import type { BaseTrackingPayload } from '../../core/utils';
|
|
15
|
+
import type Language from '../../language/Language';
|
|
15
16
|
import type { TranslationKey } from '../../language/types';
|
|
16
17
|
import type { TaskTypes } from '../TaskList/types';
|
|
17
18
|
interface SingpassLinkResponseItem {
|
|
@@ -37,7 +38,7 @@ export interface DropinAPIHandlers {
|
|
|
37
38
|
handleCreateDocument?(data: Document, legalEntityId: string): Promise<ExistingDocument>;
|
|
38
39
|
handleUpdateDocument?(data: Document, documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
39
40
|
handleGetDocument?(documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
40
|
-
handleGetBankVerificationVendors?(country: CountryCode, openBankingPartnerConfigId?: string): Promise<BankVerificationVendorsResponse>;
|
|
41
|
+
handleGetBankVerificationVendors?(country: CountryCode, openBankingPartnerConfigId?: string, locale?: Language['locale']): Promise<BankVerificationVendorsResponse>;
|
|
41
42
|
handleGetTransferInstrument?(transferInstrumentId: string): Promise<TransferInstrument>;
|
|
42
43
|
handleUpdateTransferInstrument?(data: TransferInstrument, transferInstrumentId: string): Promise<TransferInstrument>;
|
|
43
44
|
handleDeleteTransferInstrument?(transferInstrumentId: string): Promise<TransferInstrument>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { Currency } from '../../core/models/currency';
|
|
4
4
|
export type FinancialInformationSchema = {
|
package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './IdDocumentUploadComponent.scss';
|
|
2
2
|
import type { IdDocumentInstantVerificationProps } from '../types';
|
|
3
|
-
declare function IdDocumentInstantVerificationComponent(props: IdDocumentInstantVerificationProps): import("preact
|
|
3
|
+
declare function IdDocumentInstantVerificationComponent(props: IdDocumentInstantVerificationProps): import("preact").JSX.Element;
|
|
4
4
|
declare const IdDocumentInstantVerification: typeof IdDocumentInstantVerificationComponent;
|
|
5
5
|
export default IdDocumentInstantVerification;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './IdDocumentUploadComponent.scss';
|
|
2
2
|
import type { IdDocumentManualUploadProps, IdDocumentUploadSchema } from '../types';
|
|
3
3
|
export declare const idDocumentUploadFields: Array<keyof IdDocumentUploadSchema>;
|
|
4
|
-
declare function IdDocumentManualUploadComponent(props: IdDocumentManualUploadProps): import("preact
|
|
4
|
+
declare function IdDocumentManualUploadComponent(props: IdDocumentManualUploadProps): import("preact").JSX.Element;
|
|
5
5
|
declare const IdDocumentManualUpload: typeof IdDocumentManualUploadComponent;
|
|
6
6
|
export default IdDocumentManualUpload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import { DocumentType } from '../../core/models/api/document';
|
|
3
3
|
import type { FileSchema } from '../../core/models/file';
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|
|
@@ -30,12 +30,12 @@ export interface OnfidoCaptureSchema {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export interface IdDocumentUploadProps extends Partial<IdDocumentInstantVerificationProps>, Partial<IdDocumentManualUploadProps> {
|
|
33
|
-
formVerificationErrors
|
|
33
|
+
formVerificationErrors?: any;
|
|
34
34
|
idVerificationMethodSelected: IdVerificationMethodType;
|
|
35
35
|
name: string;
|
|
36
36
|
}
|
|
37
37
|
export interface IdDocumentInstantVerificationProps extends BaseInnerFormProps<IdDocumentUploadSchema> {
|
|
38
|
-
userDetails?: UserDetails;
|
|
38
|
+
userDetails?: UserDetails | undefined;
|
|
39
39
|
legalEntityId?: string | undefined;
|
|
40
40
|
handleGetIdVerificationToken: Required<DropinAPIHandlers>['handleGetIdVerificationToken'];
|
|
41
41
|
handleOnBack?: () => void;
|
|
@@ -8,7 +8,7 @@ export interface IdVerificationProps {
|
|
|
8
8
|
handleGetIdVerificationToken: Required<DropinAPIHandlers>['handleGetIdVerificationToken'];
|
|
9
9
|
}
|
|
10
10
|
export interface UserDetails {
|
|
11
|
-
firstName
|
|
12
|
-
lastName
|
|
13
|
-
residencyCountry
|
|
11
|
+
firstName?: string;
|
|
12
|
+
lastName?: string;
|
|
13
|
+
residencyCountry?: string;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { FormVerificationErrors } from '../../core/models/errors/form-verification-errors';
|
|
4
4
|
export declare const idVerificationMethods: readonly ["instantVerification", "manualVerification"];
|
|
@@ -7,7 +7,7 @@ export interface IdVerificationMethodSchema {
|
|
|
7
7
|
idVerificationMethod: IdVerificationMethodType;
|
|
8
8
|
}
|
|
9
9
|
export interface IdVerificationMethodProps extends BaseInnerFormProps<IdVerificationMethodSchema> {
|
|
10
|
-
formVerificationErrors
|
|
10
|
+
formVerificationErrors?: FormVerificationErrors;
|
|
11
11
|
name: string;
|
|
12
|
-
countryOfResidence
|
|
12
|
+
countryOfResidence?: CountryCode;
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { ValidationRuleResults } from '../../utils/validation/types';
|
|
4
4
|
import type { IndividualIdNumberType } from '../internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
@@ -3,5 +3,4 @@ import type { FormList } from '../../../core/models/form';
|
|
|
3
3
|
import type { IndividualProps } from '../types';
|
|
4
4
|
export declare const individualForms: FormList;
|
|
5
5
|
export declare const individualDocumentForms: string[];
|
|
6
|
-
declare function IndividualComponent(props: IndividualProps): import("preact").JSX.Element;
|
|
7
|
-
export default IndividualComponent;
|
|
6
|
+
export declare function IndividualComponent(props: IndividualProps): import("preact").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
4
4
|
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
|
|
5
5
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PayoutAccountProps, PayoutAccountSchema } from '../types';
|
|
2
2
|
export declare const payoutAccountFields: Array<keyof PayoutAccountSchema>;
|
|
3
|
-
declare function PayoutAccountComponent(props: PayoutAccountProps): import("preact
|
|
3
|
+
declare function PayoutAccountComponent(props: PayoutAccountProps): import("preact").JSX.Element;
|
|
4
4
|
declare const PayoutAccount: typeof PayoutAccountComponent;
|
|
5
5
|
export default PayoutAccount;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
5
5
|
import type { FormModel } from '../../core/models/form';
|
|
6
6
|
import type { BankAccountNumberSchema } from '../internal/BankAccountNumber/types';
|
|
@@ -24,6 +24,6 @@ export interface PayoutAccountProps extends BaseInnerFormProps<PayoutAccountSche
|
|
|
24
24
|
forms?: FormModel[];
|
|
25
25
|
country: CountryCode;
|
|
26
26
|
onSubmit?(data: PayoutAccountSchema): void;
|
|
27
|
-
legalEntityResponse:
|
|
27
|
+
legalEntityResponse: ExistingLegalEntity;
|
|
28
28
|
requiredFields?: Array<keyof PayoutAccountSchema>;
|
|
29
29
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import '../PayoutDetails.scss';
|
|
2
|
-
import type {
|
|
3
|
-
import type { BankDocumentSchema } from '../../BankDocument';
|
|
2
|
+
import type { BankDocumentSchema } from '../../BankDocument/types';
|
|
4
3
|
import type { AccountVerificationSchema } from '../../BankVerification/types';
|
|
5
4
|
import type { PayoutAccountSchema } from '../../PayoutAccount/types';
|
|
6
|
-
import type { PayoutVerificationMethodSchema } from '../../PayoutVerificationMethod/types';
|
|
7
5
|
import type { PayoutDetailsProps } from '../types';
|
|
8
6
|
export declare const payoutSteps: {
|
|
9
7
|
readonly payoutVerificationMethod: {
|
|
10
8
|
readonly formId: "payoutVerificationMethod";
|
|
11
9
|
readonly formName: "verificationMethod";
|
|
12
|
-
readonly fields: (
|
|
10
|
+
readonly fields: ("bankCountry" | "payoutVerificationMethod" | "verifiedBankAccountNumber" | "verifiedAccountHolder" | "verifiedCurrencyCode" | "verifiedBankCountry" | "verifiedBankName")[];
|
|
13
11
|
};
|
|
14
12
|
readonly payoutAccountDetails: {
|
|
15
13
|
readonly formId: "payoutAccountDetails";
|
|
@@ -29,5 +27,4 @@ export declare const payoutSteps: {
|
|
|
29
27
|
readonly fields: (keyof AccountVerificationSchema)[];
|
|
30
28
|
};
|
|
31
29
|
};
|
|
32
|
-
export declare const getAppropriatePayoutDetailsSteps: (isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean) => FormList;
|
|
33
30
|
export declare function PayoutDetailsComponent(props: PayoutDetailsProps): import("preact").JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type { CountryCode } from '../../core/models/country-code';
|
|
2
1
|
import type { FormRules } from '../../core/models/form-rules';
|
|
3
|
-
import type {
|
|
2
|
+
import type { BankVerificationVendor } from '../BankVerification/types';
|
|
4
3
|
import type { DropinAPIHandlers } from '../Dropins/types';
|
|
5
4
|
import type { PayoutDetailsSchema } from './types';
|
|
6
5
|
interface VerificationAvailableArgs {
|
|
7
|
-
|
|
8
|
-
bankVerificationVendors?: CountryBankVerificationVendors;
|
|
6
|
+
provider?: BankVerificationVendor;
|
|
9
7
|
verificationVendorsCallback?: DropinAPIHandlers['handleGetBankVerificationVendors'];
|
|
10
8
|
}
|
|
11
|
-
export declare const isInstantVerificationAvailable: ({
|
|
9
|
+
export declare const isInstantVerificationAvailable: ({ verificationVendorsCallback, provider, }: VerificationAvailableArgs) => boolean;
|
|
10
|
+
export declare const isProviderPlaidEmbedded: (redirectUrl: string | undefined) => boolean;
|
|
12
11
|
export declare const rules: FormRules<PayoutDetailsSchema>;
|
|
13
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
4
4
|
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
5
5
|
import type { TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
@@ -7,8 +7,8 @@ import type { BankVerificationErrorResponse, CreateTrustedTransferInstrumentResp
|
|
|
7
7
|
import type { CountryCode } from '../../core/models/country-code';
|
|
8
8
|
import type { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
9
9
|
import type { FormModel } from '../../core/models/form';
|
|
10
|
-
import type { BankDocumentSchema } from '../BankDocument';
|
|
11
|
-
import type { AccountVerificationSchema,
|
|
10
|
+
import type { BankDocumentSchema } from '../BankDocument/types';
|
|
11
|
+
import type { AccountVerificationSchema, BankVerificationVendor } from '../BankVerification/types';
|
|
12
12
|
import type { DropinAPIHandlers, DropinProps } from '../Dropins/types';
|
|
13
13
|
import type { LoadingStatus } from '../internal/LoaderWrapper/constants';
|
|
14
14
|
import type { PayoutAccountSchema } from '../PayoutAccount/types';
|
|
@@ -32,7 +32,7 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
|
|
|
32
32
|
onBack?: () => void;
|
|
33
33
|
onNext?: () => void;
|
|
34
34
|
accountHolder: string;
|
|
35
|
-
|
|
35
|
+
provider?: BankVerificationVendor;
|
|
36
36
|
bankVendorsLoadingStatus: LoadingStatus;
|
|
37
37
|
instantVerificationEnabled?: boolean;
|
|
38
38
|
refreshLegalEntity?(): Promise<LegalEntity>;
|
package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../VerificationMethod.scss';
|
|
2
2
|
import type { JSX } from 'preact/jsx-runtime';
|
|
3
|
+
import type { AccountVerificationSchema } from '../../BankVerification/types';
|
|
3
4
|
import type { PayoutVerificationMethodProps, PayoutVerificationMethodSchema } from '../types';
|
|
4
|
-
export declare const payoutVerificationMethodFields: Array<keyof PayoutVerificationMethodSchema>;
|
|
5
|
+
export declare const payoutVerificationMethodFields: Array<keyof PayoutVerificationMethodSchema | keyof AccountVerificationSchema>;
|
|
5
6
|
export declare function PayoutVerificationMethod(props: PayoutVerificationMethodProps): JSX.Element;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Dispatch, type StateUpdater } from 'preact/hooks';
|
|
2
|
+
import type { LegalEntity } from '../../../../core/models/api/legal-entity';
|
|
3
|
+
import type { BankVerificationErrorResponse } from '../../../../core/models/api/trusted-transferInstrument';
|
|
4
|
+
import type { ValidatorMode } from '../../../../utils/validation/types';
|
|
5
|
+
import type { BankVerificationVendor, InstantVerificationErrorNotification } from '../../../BankVerification/types';
|
|
6
|
+
import type { LoadingStatus } from '../../../internal/LoaderWrapper/constants';
|
|
7
|
+
import type { PayoutDetailsProps } from '../../../PayoutDetails/types';
|
|
8
|
+
import type { PayoutVerificationMethodSchema, VerificationMethod } from '../../types';
|
|
2
9
|
interface PreferInstantVerificationMethodProps {
|
|
3
|
-
|
|
10
|
+
provider: BankVerificationVendor | undefined;
|
|
4
11
|
bankInfoValidated: boolean;
|
|
5
12
|
instantVerificationAvailable: boolean;
|
|
6
13
|
selectVerificationMethod: (method: VerificationMethod) => void;
|
|
14
|
+
loadingStatus: LoadingStatus;
|
|
15
|
+
createTrustedTransferInstrument?: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
16
|
+
setBankInfoValidated: Dispatch<StateUpdater<boolean>>;
|
|
17
|
+
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
18
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
19
|
+
refreshLegalEntity?: () => Promise<LegalEntity>;
|
|
20
|
+
handleChangeFor: (key: keyof PayoutVerificationMethodSchema, mode?: ValidatorMode) => (e: any) => void;
|
|
21
|
+
triggerValidation: (schema?: Array<keyof PayoutVerificationMethodSchema>) => void;
|
|
7
22
|
}
|
|
8
|
-
export declare const PreferInstantVerificationMethod: ({
|
|
23
|
+
export declare const PreferInstantVerificationMethod: ({ loadingStatus, provider, bankInfoValidated, instantVerificationAvailable, selectVerificationMethod, createTrustedTransferInstrument, setBankInfoValidated, handleBankVerificationError, setBankVerificationError, refreshLegalEntity, handleChangeFor, triggerValidation, }: PreferInstantVerificationMethodProps) => import("preact").JSX.Element;
|
|
9
24
|
export {};
|