@adyen/kyc-components 2.33.0 → 2.34.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 +55 -39
- package/dist/style.css +6 -0
- package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +5 -5
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +2 -1
- package/dist/types/components/CompanyBasics/types.d.ts +3 -3
- package/dist/types/components/CompanyLookup/types.d.ts +4 -4
- package/dist/types/components/Individual/types.d.ts +2 -2
- package/dist/types/components/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/TaskList/types.d.ts +2 -2
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/internal/Remove/types.d.ts +3 -3
- package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
- package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
- package/dist/types/core/Context/ExperimentContext/types.d.ts +2 -1
- package/dist/types/core/Context/ReactQueryContext/ReactQueryClient.d.ts +2 -0
- package/dist/types/core/Context/ReactQueryContext/ReactQueryProvider.d.ts +4 -0
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
- package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +4 -3
- package/dist/types/core/hooks/useForm/types.d.ts +8 -8
- package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
- package/dist/types/language/config.d.ts +2 -1237
- package/dist/types/language/types.d.ts +1 -1
- package/dist/types/utils/entity-status-util.d.ts +1 -1
- package/dist/types/utils/useStateFromProp.d.ts +2 -2
- package/package.json +9 -5
|
@@ -8,6 +8,7 @@ import { debounce, noop as noop$1, isEmpty as isEmpty$1, range } from "lodash";
|
|
|
8
8
|
import OpenBankingSDK from "@adyen/openbankingsdk";
|
|
9
9
|
import "@adyen/adyen-document-viewer/dist/adyen-document-viewer.min.css";
|
|
10
10
|
import AdyenDocumentViewer from "@adyen/adyen-document-viewer";
|
|
11
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
11
12
|
const ConfigurationApiContext = createContext(void 0);
|
|
12
13
|
const useConfigurationApi = () => {
|
|
13
14
|
const configurationApi = useContext(ConfigurationApiContext);
|
|
@@ -16,6 +17,15 @@ const useConfigurationApi = () => {
|
|
|
16
17
|
}
|
|
17
18
|
return configurationApi;
|
|
18
19
|
};
|
|
20
|
+
const smartling = {
|
|
21
|
+
placeholder_format: "YAML",
|
|
22
|
+
translate_paths: [
|
|
23
|
+
{
|
|
24
|
+
path: "*",
|
|
25
|
+
key: "{*}"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
};
|
|
19
29
|
const close = "Close";
|
|
20
30
|
const individual = "Individual";
|
|
21
31
|
const payoutAccount = "Payout account";
|
|
@@ -1242,6 +1252,7 @@ const onboardingRedirectFinishedCtaButton = "View data";
|
|
|
1242
1252
|
const onboardingRedirectLinkError = "Onboarding link not available at the moment, please try again later.";
|
|
1243
1253
|
const onboardingRedirectOpenError = "Pop-up blocker prevented redirecting, please allow pop-ups for this site.";
|
|
1244
1254
|
const defaultTrans = {
|
|
1255
|
+
smartling,
|
|
1245
1256
|
close,
|
|
1246
1257
|
individual,
|
|
1247
1258
|
payoutAccount,
|
|
@@ -2477,7 +2488,10 @@ const defaultTrans = {
|
|
|
2477
2488
|
onboardingRedirectOpenError
|
|
2478
2489
|
};
|
|
2479
2490
|
const FALLBACK_LOCALE = "en-US";
|
|
2480
|
-
const defaultTranslation = defaultTrans
|
|
2491
|
+
const defaultTranslation = Object.entries(defaultTrans).reduce((acc, [translationKey, translationValue]) => translationKey !== "smartling" ? {
|
|
2492
|
+
...acc,
|
|
2493
|
+
[translationKey]: translationValue
|
|
2494
|
+
} : acc, {});
|
|
2481
2495
|
const determineAllowedAttributes = (allowedTags) => {
|
|
2482
2496
|
const allowedAttributes = [];
|
|
2483
2497
|
if (allowedTags.includes("a")) {
|
|
@@ -23210,12 +23224,20 @@ const legalArrangementItems = [{
|
|
|
23210
23224
|
name: "associationIncorporated",
|
|
23211
23225
|
description: "groupOfPeopleActingTogetherForNonCommercialPurpose"
|
|
23212
23226
|
}];
|
|
23213
|
-
const getLegalArrangementOptions = (country2) => legalArrangementItems.filter((legalArrangementItem) =>
|
|
23214
|
-
|
|
23227
|
+
const getLegalArrangementOptions = (country2, experiments) => legalArrangementItems.filter((legalArrangementItem) => {
|
|
23228
|
+
if (legalArrangementItem.id !== "aTrust" && legalArrangementItem.id !== "partnershipUnincorporated") {
|
|
23229
|
+
return true;
|
|
23230
|
+
}
|
|
23231
|
+
if (legalArrangementItem.id === "partnershipUnincorporated" && (experiments == null ? void 0 : experiments.ShowUnsupportedEntityType)) {
|
|
23232
|
+
return true;
|
|
23233
|
+
}
|
|
23234
|
+
return country2 && TRUST_COUNTRIES.includes(country2);
|
|
23235
|
+
});
|
|
23236
|
+
const getSelectionOptions = (legalEntityResponse, experiments) => {
|
|
23215
23237
|
var _a, _b, _c, _d;
|
|
23216
23238
|
const country2 = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? (_b = (_a = legalEntityResponse.individual) == null ? void 0 : _a.residentialAddress) == null ? void 0 : _b.country : (_d = (_c = legalEntityResponse.organization) == null ? void 0 : _c.registeredAddress) == null ? void 0 : _d.country;
|
|
23217
23239
|
const businessTypeOptions = getBusinessTypeOptions(country2);
|
|
23218
|
-
const legalArrangementOptions = getLegalArrangementOptions(country2);
|
|
23240
|
+
const legalArrangementOptions = getLegalArrangementOptions(country2, experiments);
|
|
23219
23241
|
return {
|
|
23220
23242
|
businessTypeOptions,
|
|
23221
23243
|
legalArrangementOptions
|
|
@@ -23935,30 +23957,19 @@ function useCompanySearch({
|
|
|
23935
23957
|
deepSearch
|
|
23936
23958
|
}) => {
|
|
23937
23959
|
try {
|
|
23938
|
-
if (!
|
|
23960
|
+
if (!deepSearch)
|
|
23939
23961
|
return;
|
|
23940
23962
|
setStatus("loading");
|
|
23941
23963
|
setCompaniesList([]);
|
|
23942
23964
|
const {
|
|
23943
|
-
results:
|
|
23944
|
-
} = await
|
|
23965
|
+
results: deepSearchResults
|
|
23966
|
+
} = await deepSearch({
|
|
23945
23967
|
text: companyName2,
|
|
23946
23968
|
country: companyCountry2,
|
|
23947
23969
|
state: companyState,
|
|
23948
23970
|
limit: resultsLimit
|
|
23949
23971
|
});
|
|
23950
|
-
|
|
23951
|
-
const {
|
|
23952
|
-
results: deepSearchResults
|
|
23953
|
-
} = await deepSearch({
|
|
23954
|
-
text: companyName2,
|
|
23955
|
-
country: companyCountry2,
|
|
23956
|
-
state: companyState,
|
|
23957
|
-
limit: resultsLimit
|
|
23958
|
-
});
|
|
23959
|
-
return setCompaniesList(deepSearchResults);
|
|
23960
|
-
}
|
|
23961
|
-
return setCompaniesList(indexSearchResults);
|
|
23972
|
+
return setCompaniesList(deepSearchResults);
|
|
23962
23973
|
} catch (e) {
|
|
23963
23974
|
setStatus("error");
|
|
23964
23975
|
setError(e);
|
|
@@ -23971,37 +23982,26 @@ function useCompanySearch({
|
|
|
23971
23982
|
return setStatus("idle");
|
|
23972
23983
|
}
|
|
23973
23984
|
try {
|
|
23974
|
-
if (!
|
|
23985
|
+
if (!handleCompanyDeepSearch)
|
|
23975
23986
|
return;
|
|
23976
23987
|
setStatus("loading");
|
|
23977
23988
|
setSelectedCompanyId(void 0);
|
|
23978
23989
|
const {
|
|
23979
|
-
results:
|
|
23980
|
-
} = await
|
|
23990
|
+
results: deepSearchResults
|
|
23991
|
+
} = await handleCompanyDeepSearch({
|
|
23981
23992
|
text: legalCompanyName2,
|
|
23982
23993
|
country: country2,
|
|
23983
23994
|
state: stateOrProvince2,
|
|
23984
23995
|
limit
|
|
23985
23996
|
});
|
|
23986
|
-
|
|
23987
|
-
const {
|
|
23988
|
-
results: deepSearchResults
|
|
23989
|
-
} = await handleCompanyDeepSearch({
|
|
23990
|
-
text: legalCompanyName2,
|
|
23991
|
-
country: country2,
|
|
23992
|
-
state: stateOrProvince2,
|
|
23993
|
-
limit
|
|
23994
|
-
});
|
|
23995
|
-
return setCompaniesList(deepSearchResults);
|
|
23996
|
-
}
|
|
23997
|
-
return setCompaniesList(indexSearchResults);
|
|
23997
|
+
return setCompaniesList(deepSearchResults);
|
|
23998
23998
|
} catch (e) {
|
|
23999
23999
|
setStatus("error");
|
|
24000
24000
|
setError(e);
|
|
24001
24001
|
} finally {
|
|
24002
24002
|
setStatus((prevStatus) => prevStatus !== "error" ? "loaded" : prevStatus);
|
|
24003
24003
|
}
|
|
24004
|
-
}, [
|
|
24004
|
+
}, [handleCompanyDeepSearch, country2, legalCompanyName2, limit, stateOrProvince2]);
|
|
24005
24005
|
const verify2 = useCallback(async (companyTIN, company2) => {
|
|
24006
24006
|
try {
|
|
24007
24007
|
if (!handleVerifyTin || !handleGetCompanyDataset || !handleRefreshCompanyDataset)
|
|
@@ -26901,6 +26901,9 @@ const BusinessTypeSelection = ({
|
|
|
26901
26901
|
const {
|
|
26902
26902
|
showToast
|
|
26903
26903
|
} = useToastContext();
|
|
26904
|
+
const {
|
|
26905
|
+
isExperimentEnabled
|
|
26906
|
+
} = useExperimentsContext();
|
|
26904
26907
|
const [loadingStatus, setLoadingStatus] = useState();
|
|
26905
26908
|
const [currentStep, setCurrentStep] = useState(
|
|
26906
26909
|
0
|
|
@@ -26916,7 +26919,9 @@ const BusinessTypeSelection = ({
|
|
|
26916
26919
|
const {
|
|
26917
26920
|
businessTypeOptions,
|
|
26918
26921
|
legalArrangementOptions
|
|
26919
|
-
} = getSelectionOptions(legalEntityResponse
|
|
26922
|
+
} = getSelectionOptions(legalEntityResponse, {
|
|
26923
|
+
ShowUnsupportedEntityType: isExperimentEnabled("ShowUnsupportedEntityType")
|
|
26924
|
+
});
|
|
26920
26925
|
const currentLegalEntityType = legalEntityResponse == null ? void 0 : legalEntityResponse.type;
|
|
26921
26926
|
const currentCompanyTypesValue = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
|
|
26922
26927
|
const defaultBusinessType = getBusinessType(businessTypeOptions, accountHolder2, legalEntityResponse == null ? void 0 : legalEntityResponse.type, (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type);
|
|
@@ -34039,6 +34044,15 @@ const I18nProvider = ({
|
|
|
34039
34044
|
children
|
|
34040
34045
|
});
|
|
34041
34046
|
};
|
|
34047
|
+
const ReactQueryClient = new QueryClient();
|
|
34048
|
+
function ReactQueryProvider({
|
|
34049
|
+
children
|
|
34050
|
+
}) {
|
|
34051
|
+
return jsx(QueryClientProvider, {
|
|
34052
|
+
client: ReactQueryClient,
|
|
34053
|
+
children
|
|
34054
|
+
});
|
|
34055
|
+
}
|
|
34042
34056
|
const settingsDefaults = {
|
|
34043
34057
|
acceptedCountries: void 0,
|
|
34044
34058
|
allowBankAccountFormatSelection: false,
|
|
@@ -34391,9 +34405,11 @@ class UIElement extends BaseElement {
|
|
|
34391
34405
|
children: jsx(AutoResizer, {
|
|
34392
34406
|
children: jsx(ToastContextProvider, {
|
|
34393
34407
|
children: jsx(StateProvider, {
|
|
34394
|
-
children: jsx(
|
|
34395
|
-
|
|
34396
|
-
|
|
34408
|
+
children: jsx(ReactQueryProvider, {
|
|
34409
|
+
children: jsx(Component, {
|
|
34410
|
+
...this.props.componentProps,
|
|
34411
|
+
eventEmitter: this.eventEmitter
|
|
34412
|
+
})
|
|
34397
34413
|
})
|
|
34398
34414
|
})
|
|
34399
34415
|
})
|
package/dist/style.css
CHANGED
|
@@ -101547,6 +101547,12 @@ a.adl-button:disabled, a.adl-button.adl-button--disabled {
|
|
|
101547
101547
|
}
|
|
101548
101548
|
.adyen-task-list__heading {
|
|
101549
101549
|
padding: 16px;
|
|
101550
|
+
}
|
|
101551
|
+
.adyen-kyc-dropin-container {
|
|
101552
|
+
background-color: #fff;
|
|
101553
|
+
padding: 32px;
|
|
101554
|
+
border-radius: 8px;
|
|
101555
|
+
z-index: 2;
|
|
101550
101556
|
}/* #region Spacing */
|
|
101551
101557
|
/* #endregion */
|
|
101552
101558
|
/* #region Colors */
|
|
@@ -2,7 +2,7 @@ import './BankVerification.scss';
|
|
|
2
2
|
import { AccountVerificationSchema, InstantVerificationErrorNotification, PayoutAccountVerificationProps } from './types';
|
|
3
3
|
export declare const accountVerificationFields: Array<keyof AccountVerificationSchema>;
|
|
4
4
|
export declare const InstantVerificationErrorContext: import("preact").Context<InstantVerificationErrorNotification>;
|
|
5
|
-
export declare const useInstantVerificationErrorNotification: (notificationVisibilityDuration: number) => readonly [InstantVerificationErrorNotification, import("preact/hooks").StateUpdater<InstantVerificationErrorNotification
|
|
5
|
+
export declare const useInstantVerificationErrorNotification: (notificationVisibilityDuration: number) => readonly [InstantVerificationErrorNotification, import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<InstantVerificationErrorNotification>>];
|
|
6
6
|
declare function BankVerification(props: PayoutAccountVerificationProps): import("preact").JSX.Element;
|
|
7
7
|
declare const _default: typeof BankVerification;
|
|
8
8
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
|
|
4
4
|
import { LegalEntity } from '../../core/models/api/legal-entity';
|
|
@@ -22,13 +22,13 @@ export interface AccountVerificationSchema {
|
|
|
22
22
|
}
|
|
23
23
|
export interface PayoutAccountVerificationProps extends BaseInnerFormProps<AccountVerificationSchema> {
|
|
24
24
|
getBankVerificationVendors: DropinAPIHandlers['handleGetBankVerificationVendors'];
|
|
25
|
-
setBankVerificationError:
|
|
25
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
26
26
|
onBack?: () => void;
|
|
27
27
|
country: CountryCode;
|
|
28
|
-
hideDropinLayout?: StateUpdater<boolean
|
|
28
|
+
hideDropinLayout?: Dispatch<StateUpdater<boolean>>;
|
|
29
29
|
bankInfoValidated?: boolean;
|
|
30
|
-
setBankInfoValidated?: StateUpdater<boolean
|
|
31
|
-
hideOnHomeButton?: StateUpdater<boolean
|
|
30
|
+
setBankInfoValidated?: Dispatch<StateUpdater<boolean>>;
|
|
31
|
+
hideOnHomeButton?: Dispatch<StateUpdater<boolean>>;
|
|
32
32
|
formIsActive: boolean;
|
|
33
33
|
refreshLegalEntity?(): Promise<LegalEntity>;
|
|
34
34
|
createTrustedTransferInstrument?: (code: string, state: string) => Promise<CreateTrustedTransferInstrumentResponse>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Experiments } from '../../core/Context/ExperimentContext/types';
|
|
1
2
|
import { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
2
3
|
import { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
4
|
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
@@ -19,7 +20,7 @@ import { BusinessType, BusinessTypeModel, LegalArrangementModel, TrusteeType } f
|
|
|
19
20
|
export declare const organizationTypesToSkipCompanyStructureForm: string[];
|
|
20
21
|
export declare const getBusinessType: (businessTypeItems: BusinessTypeModel[], accountHolder?: AccountHolderOption, legalEntityType?: LegalEntityType, companyTypesValue?: CompanyTypesValue | '') => BusinessTypeModel | undefined;
|
|
21
22
|
export declare const businessTypes: readonly BusinessTypeModel[];
|
|
22
|
-
export declare const getSelectionOptions: (legalEntityResponse: ExistingLegalEntity) => {
|
|
23
|
+
export declare const getSelectionOptions: (legalEntityResponse: ExistingLegalEntity, experiments?: Experiments) => {
|
|
23
24
|
businessTypeOptions: BusinessTypeModel[];
|
|
24
25
|
legalArrangementOptions: LegalArrangementModel[];
|
|
25
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -17,8 +17,8 @@ export interface CompanyBasicsProps extends BaseInnerFormProps<CompanyBasicsSche
|
|
|
17
17
|
isTopLevelEntity: boolean;
|
|
18
18
|
baseTrackingPayload: BaseTrackingPayload;
|
|
19
19
|
kompanyVerifiedData: CompanySearchSchema | undefined;
|
|
20
|
-
setKompanyAddress: StateUpdater<string | undefined
|
|
21
|
-
setKompanyVerifiedData: StateUpdater<CompanySearchSchema | undefined
|
|
20
|
+
setKompanyAddress: Dispatch<StateUpdater<string | undefined>>;
|
|
21
|
+
setKompanyVerifiedData: Dispatch<StateUpdater<CompanySearchSchema | undefined>>;
|
|
22
22
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
23
23
|
handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
|
|
24
24
|
handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { HookStatus } from '../../core/hooks/types';
|
|
3
3
|
import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -59,9 +59,9 @@ export interface CompanyLookupComponentProps {
|
|
|
59
59
|
baseTrackingPayload: BaseTrackingPayload;
|
|
60
60
|
stateOrProvince?: StateCode | ProvinceCode;
|
|
61
61
|
taxInformationNumber?: string;
|
|
62
|
-
setLoading: StateUpdater<boolean
|
|
63
|
-
setKompanyAddress: StateUpdater<string | undefined
|
|
64
|
-
setKompanyVerifiedData: StateUpdater<CompanySearchSchema | undefined
|
|
62
|
+
setLoading: Dispatch<StateUpdater<boolean>>;
|
|
63
|
+
setKompanyAddress: Dispatch<StateUpdater<string | undefined>>;
|
|
64
|
+
setKompanyVerifiedData: Dispatch<StateUpdater<CompanySearchSchema | undefined>>;
|
|
65
65
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
66
66
|
handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
|
|
67
67
|
handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
4
4
|
import { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
|
|
@@ -36,7 +36,7 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
|
|
|
36
36
|
taskType?: TaskTypes;
|
|
37
37
|
allowedRoles?: DecisionMakerType[];
|
|
38
38
|
onTypeSwitch?(legalEntityType: LegalEntityType): void;
|
|
39
|
-
onCountryChange?: StateUpdater<CountryCode
|
|
39
|
+
onCountryChange?: Dispatch<StateUpdater<CountryCode>>;
|
|
40
40
|
onNext?(e: any, callbacks: any, isValid: any): void;
|
|
41
41
|
onBack?(): void;
|
|
42
42
|
hideNavigation?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
3
3
|
import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import { TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
@@ -43,7 +43,7 @@ export type PayoutDropinApiHandlers = Required<Pick<DropinAPIHandlers, 'handleCr
|
|
|
43
43
|
export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
|
|
44
44
|
accountHolder?: string;
|
|
45
45
|
transferInstrument?: TransferInstrument;
|
|
46
|
-
setTransferInstrument?: StateUpdater<TransferInstrument
|
|
46
|
+
setTransferInstrument?: Dispatch<StateUpdater<TransferInstrument>>;
|
|
47
47
|
navigateBackToTaskList?(): void;
|
|
48
48
|
hideNavigation?: boolean;
|
|
49
49
|
onSubmit?: (data: PayoutDetailsSchema & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { PciStatus } from '../../core/models/api/contracts';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
@@ -86,5 +86,5 @@ export interface TaskListItemProps extends TaskStatusProps {
|
|
|
86
86
|
warningMessage?: string;
|
|
87
87
|
removeEntity?: () => void;
|
|
88
88
|
isRemoveDisabled?: boolean;
|
|
89
|
-
handleIsRemoveDisabled?: StateUpdater<boolean
|
|
89
|
+
handleIsRemoveDisabled?: Dispatch<StateUpdater<boolean>>;
|
|
90
90
|
}
|
|
@@ -6,7 +6,7 @@ import { DatasetUtil } from '../../../utils/datasetUtil';
|
|
|
6
6
|
* @param fieldName - The data to pre-fill the address fields
|
|
7
7
|
* @param country - The selected country
|
|
8
8
|
*/
|
|
9
|
-
export declare const getKeyForField: (fieldName: string, country: CountryCode) => "number" | "iban" | "SST" | "RFC" | "CNPJ" | "MBO" | "CVR-nummer" | "close" | "individual" | "payoutAccount" | "payinAccount" | "firstName" | "lastName" | "country" | "street" | "otherAddressInformation" | "postalCode" | "city" | "cityTown" | "state" | "region" | "provinceOrTerritory" | "selectProvinceOrTerritory" | "zipCode" | "apartmentSuite" | "apartmentSuiteOptional" | "phoneNumber" | "email" | "birthdate" | "code" | "invalidEmail" | "pleaseEnterAPhoneNumberPrefixedWithCountryCode" | "invalidPhoneNumber" | "birthDate" | "idNumber" | "selectState" | "selectCountry" | "search" | "noOptionsFound" | "SSNFormatUS" | "SSNFormatUS9Digits" | "SINFormatCA" | "invalidFormat" | "formatIsCorrect" | "fieldIsRequired" | "tooManyFiles" | "duplicatedFiles" | "unsupportedFiletype" | "maximumFileSizeExceeded" | "personalDetails" | "invalidBirthDate" | "address" | "contactDetails" | "uploadDocument" | "individualDetails" | "last4DigitsOfSocialSecurityNumber" | "socialSecurityNumber" | "socialInsuranceNumber" | "codiceFiscale" | "personnummer" | "dni" | "nie" | "peselNumber" | "detCentralePersonregister" | "codNumericPersonal" | "cadastroDePessoasFisicas" | "invalidFormatExpects" | "invalidFormatForAuPassportNumber" | "invalidFormatForNZPassportNumber" | "invalidFormatForAuDriversLicenseNumber" | "invalidFormatForNZDriversLicenseNumber" | "invalidFormatForAuDriversLicenseCardNumber" | "invalidFormatForNZDriversLicenseCardNumber" | "invalidFormatForHKPassportNumber" | "invalidFormatForHKDriversLicenseNumber" | "invalidFormatForHKIdentityCardNumber" | "invalidFormatIdentityNumberBR" | "invalidFormatIdentityNumberDK" | "invalidFormatIdentityNumberCA" | "invalidFormatIdentityNumberIT" | "invalidFormatIdentityNumberPL" | "invalidFormatIdentityNumberRO" | "invalidFormatIdentityNumberES" | "invalidFormatIdentityNumberSE" | "invalidFormatIdentityNumberUS" | "invalidFormatIdentityNumberUS9" | "invalidFormatIdentityNumberSG" | "invalidFormatIdentityNumberHK" | "invalidFormatBankStatementDescription" | "residencyCountry" | "stateOrProvince" | "selectStateOrProvince" | "dragYourFilesHereOr" | "browse" | "supports" | "complete" | "summary" | "selectDocument" | "passport" | "passportNumber" | "id" | "driversLicense" | "issuerState" | "licenseNumber" | "driverLicense" | "licenseCardNumber" | "licenceVersionNumber" | "documents" | "idDocument" | "documentType" | "frontPage" | "backPage" | "fileName" | "nationality" | "dateOfIncorporation" | "passportExpiryDate" | "proofOfNationality" | "identityNumberExempt" | "iDontHaveAVatNumber" | "iDontHaveATaxId" | "iDontHaveARegistrationNumber" | "identityNumberExempt__US" | "identityNumberExempt__CA" | "uploadDocumentForSsn" | "uploadDocumentForNric" | "operationalAddressHeader" | "operationalAddressHeaderDescription" | "operationalAddressIsSame" | "operationalAddressIsSameItemName" | "operationalAddressIsNotSameItemName" | "verifyPrefilledInfoIsCorrect" | "legalStructureHeader" | "whatTypeOfCompanyDoYouHave" | "privateCompanyTitle" | "privateCompanyDescription" | "publicCompanyTitle" | "publicCompanyDescription" | "partnershipIncorporated" | "partnershipUnincorporated" | "partnershipIncorporatedDescription" | "partnershipUnincorporatedDescription" | "partnershipIncorporatedNewEntryFlowDescription" | "partnershipUnincorporatedNewEntryFlowDescription" | "nonProfitOrCharitableOrgTitle" | "nonProfitOrCharitableOrgDescription" | "governmentalOrganizationTitle" | "governmentalOrganizationDescription" | "associationIncorporated" | "associationIncorporatedDescription" | "jobTitle" | "legalStructure" | "entityType" | "registrationDetails" | "registeredAddress" | "registrationAddress" | "registeredAddressHeaderDescription" | "registeredAddressHeaderDescription__NL" | "registeredAddressHeaderDescription__US" | "registeredAddressTrustHeaderDescription" | "operationalAddress" | "provideRegistrationDetails" | "companyStructure" | "providePersonalAddress" | "provideContactDetails" | "correctErrorsResubmit" | "registrationDocument" | "taxDocument" | "companyDetails" | "invalidRegistrationNumber" | "tradingName" | "chamberOfCommerceRegistrationNumber" | "taxId" | "exemptedFromTax" | "doNotHaveTaxIdNumber" | "doNotHaveEIN" | "doNotHaveFirmenbuchnummer" | "doNotHaveOrganisationsnummer" | "doNotHaveYTunnus" | "doNotHaveLtRegistrationNumber" | "doNotHaveLuRegistrationNumber" | "doNotHaveChRegistrationNumber" | "doNotHaveHandelsregisternummer" | "doNotHaveRegonKrsNumber" | "taxIdAbsenceReason" | "vatNumberExempted" | "vatAbsenceReason" | "belowTaxThreshold" | "industryExemption" | "validationPleaseEnterAValidRegistrationNumber" | "validationPleaseEnterAValidRegistrationNumberWithFormat" | "validationPleaseEnterAValidVatNumber" | "validationPleaseEnterAValidIdNumberWithFormat" | "validationPleaseEnterAValidVatNumberWithFormat" | "validationPleaseEnterAValidTaxIdNumberWithFormat" | "validationPleaseEnterAValidEINWithFormat" | "validationPleaseEnterAValidTaxIdNumber" | "validationPleaseEnterAValidIRDNumber" | "aValidAbnShouldBe11Digits" | "aValidUenOrGstShouldBe9To10Characters" | "aValidBrnShouldBe8Digits" | "validationPleaseEnterAValidUen" | "validationPleaseEnterAValidIban" | "yourIbanShouldBeginWith_" | "validation8Or11Characters" | "validationCharacters" | "validationDigitsBetween" | "validationDigits" | "enterValidRegistrationNumber" | "stockExchangeMICHelper" | "stockISINHelper" | "validationPleaseEnterAValidMarketIdentifier" | "validationPleaseEnterAValidStockISIN" | "shareholderDocument" | "role" | "selectAllTheRolesThatThisDecisionMakerHolds" | "selectTheApplicableRoles" | "back" | "next" | "submit" | "submitSuccessful" | "submitFailed" | "submitReviewOfYourData" | "completeReview" | "submitReview" | "undoWithTimer" | "removing" | "cantSetUpAcccount" | "accountCantBeSetUp" | "pleaseNote" | "byClickingSubmitReview" | "nameAndCountry" | "companyCountry" | "accountDetailsDescription" | "provideFewDetailsAboutYourself" | "provideDetails" | "payoutAccountsDescription" | "payoutAccountsDescriptionReview" | "payinAccountsDescription" | "addExtraPayoutAccount" | "addExtraPayinAccount" | "payoutDetails" | "payinDetails" | "addPayoutAccount" | "addPayinAccount" | "failedToFetchPayoutAccount" | "failedToDeletePayoutAccount" | "transferInstrumentDeleted" | "toCompleteProcessReviewAndSignOfficialDocumentation" | "sign" | "signer" | "selectSigner" | "pciSignedSuccessfully" | "pciSignFailed" | "byClickingSignIAcknowledgeAndAgree" | "acknowledgePciRequirements" | "basedOnTheAboveSignatory" | "failedToGetPciStatus" | "failedToGetPciTemplate" | "failedToGetPciTemplateInSelectedLanguageFallbackToEn" | "failedToDownloadPci" | "signServiceAgreement" | "signedDocuments" | "paymentProcessingTerms" | "accountHolderTerms" | "capitalUserTerms" | "pccr" | "businessAccountTerms" | "cardUserTerms" | "franchiseesTAndCs" | "pciDssQuestionnaire" | "serviceAgreementSignedSuccessfully" | "serviceAgreementSignFailed" | "failedToGetServiceAgreementStatus" | "failedToGetServiceAgreement" | "failedToGetServiceAgreementInSelectedLanguageFallbackToEn" | "iHaveReadAndIAcceptTheseTerms" | "verified" | "signed" | "invalidRole" | "unableToVerifyTheIdNumber" | "download" | "downloadACopy" | "accountHolder" | "accountHolderDescriptionCompany" | "accountHolderDescriptionIndividual" | "accountHolderDescriptionSoleProp" | "bankAccountToHaveSameNameAsTrust" | "bankAccountHasToBeInYourName" | "orSoleProprietorshipName" | "bankAccountHasToBeInYourCompanyName" | "bankCountry" | "bankAccountCountry" | "currency" | "currencyCode" | "currencyPlaceholder" | "bankAccountNumber" | "swiftCode" | "bic" | "bicSwift" | "bsbNumber" | "branchCode" | "transitNumber" | "listitemVoidedChequeBankLetterBankStatementOnline" | "instructionNumber" | "institutionNumber" | "sortCode" | "bankCityTown" | "clearingCode" | "bankCode" | "bankName" | "achRoutingNumber" | "decisionMaker" | "decisionMakerDescription" | "owner" | "ownerDescription" | "controllingPerson" | "controllingPersonDescription" | "signatory" | "signatoryDescription" | "director" | "directorDescription" | "provideAllDirectors" | "addDecisionMaker" | "decisionMakers" | "goToIntroduction" | "goToOverview" | "goToOverviewFromIntroduction" | "saveAndGoToOverview" | "pleaseEnsureTheFollowing" | "edit" | "remove" | "toggleAssociationMenu" | "editDecisionMakerDetails" | "removeDecisionMaker" | "verifyDecisionMakerDetails" | "goToMenu" | "confirm" | "goToDecisionMakers" | "theSubmitWasSuccessful" | "thereWasAnErrorTryAgain" | "stateIssuedProofOfIdentityCard" | "proofOfResidence" | "proofOfNationalId" | "backToTaskList" | "proofOfResidenceDocumentTypeLabel" | "utilityBill" | "governmentIssuedCorrespondence" | "taxationDocument" | "extractFromMunicipalPersonalRecordsDatabase" | "salarySlip" | "mortgageStatement" | "certificateOfVoterRegistration" | "businessAccountDetailsDescription" | "businessAccountDetailsDescriptionReview" | "documentAddressedToName" | "showAddressStateCountry" | "dateOnDocumentNoOlderThanXMonths" | "fullDocumentVisibleWithReadableText" | "documentCannotBeDamaged" | "verify" | "add" | "idUploadDocumentSubtitle" | "documentNotExpiredOrDamaged" | "weAccept" | "includeFrontAndBack" | "fullDocumentVisible" | "imagesInColor" | "datePlaceholder" | "onlyEnterNormalCharacters" | "verifyCompanyInfoIsUpToDate" | "failedToFetchRelevantDocuments" | "failedToFetchRelevantAccounts" | "processing" | "inReview" | "unsuccessful" | "invalidDateOfBirth" | "invalidDateOfIncorporation" | "successfullyUpdatedDetails" | "failedToUpdateDetails" | "successfullyVerifiedIdNumber" | "failedFetchingDecisionMaker" | "fileUpload" | "documentRequirements" | "bankAccountNameIndividual" | "bankAccountNameOrganization" | "bankAccountNameWithSoleProprietor" | "bankAccountNameWithTrust" | "bankAccountNameWithTrust_US" | "bankDocument" | "bankDocumentHeader" | "bankDocumentHeaderOptional" | "bankDocumentDescription" | "bankDocumentFileDescription" | "accountNumberOrIbanVisible" | "accountNumberVisible" | "routingNumberVisible" | "showsCountryOfBankAccount" | "hasBankStampOrBankSignature" | "hasToBeOfficialDocumentFromBank" | "issuedInTheLastXMonths" | "bankAccountVerification" | "bankStatementDocument" | "requirements" | "ifDocumentMoreThan12months" | "whyDoINeedToFillInThisInformation" | "reasonForFillingCompanyRegistrationDetails" | "reasonForFillingCompanyAddressDetails" | "reasonForFillingIndividualPersonalDetails" | "reasonForFillingIndividualAddressDetails" | "reasonForFillingPayoutAccountDetails" | "reasonForFillingPayoutDetails" | "whatIsTheDifferenceBetweenTheseRoles" | "ownerGuideDescription" | "controllingPersonGuideDescription" | "signatoryGuideDescription" | "directorGuideDescription" | "someoneAppointedToManageACompanysBusinessAndAffairs" | "whatIfDocumentIsMoreThan12MonthsOld" | "depositSlip" | "screenshotOfOnlineBankingEnviroment" | "officialEmailOrALetterFromYourBank" | "check" | "releveDidentiteBancaire" | "successFullyRemovedDecisionMaker" | "failedToRemoveDecisionMaker" | "chamberOfCommerceExtract" | "taxNumberCorporateNumber" | "companyLegalName" | "companyName" | "companyType" | "taxReferenceNumber" | "companyProfile" | "companyNumber" | "RfcDocument" | "companyRegistrationDocument" | "businessName" | "typeOfCompany" | "typeOfIdentity" | "typeOfIdentitySubtitle" | "businessNumber" | "doingBusinessAs" | "taxIdentificationNumber" | "irdDocument" | "irdNumber" | "australianBusinessNumberAbn" | "australianBusinessNumberAcn" | "NZBN/NCN" | "NZBN" | "companyNumberNZ" | "enterpriseNumber" | "NIP" | "NIPC" | "numerodeIVA" | "NIF" | "uen" | "gst" | "iDoNotHaveGst" | "nric" | "hkid" | "NIFdeIVA" | "partitaIVA" | "organisationsnummer" | "momsregistreringsnummer" | "vatNummerMomsregistreringsnummerOrMomsnummer" | "CCIAA" | "UST-ID" | "DIC" | "ICO" | "USt-IdNr" | "handelsregisternummer" | "NumeroDeTVA" | "organisasjonsnummer" | "mvanummer" | "verificationErrorMessage" | "remediationFormErrorMessage" | "youHaveUnsavedChanges" | "areYouSureToLeave" | "cancel" | "save&Leave" | "leave" | "taxIdNumber" | "companyRegistrationNumber" | "companyRegistrationNumber__HK" | "euVatNumber" | "vatNumber" | "vatRegistrationNumber" | "regonKrsNumber" | "registrationNumber" | "identificationNumber" | "whichTypeOfRegistrationNumberDoYouHave" | "whichTypeOfIdNumberDoYouHave" | "whichTypeOfTaxIdNumberDoYouHave" | "regon" | "krsNumber" | "registrationNumber__nonProfit__FR" | "rnaNumber" | "siret" | "registrationNumber__PR" | "employerIdentificationNumber" | "charityNumber" | "firmenbuchnummer" | "firmenbuchnummerOrZVR" | "zentralesVereinsregisterId" | "stepsX/YofForm" | "no" | "yes" | "informationCouldNotBeSubmitted" | "fieldHasUnsupportedFormats" | "updateTheInformation" | "andResubmit" | "someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit" | "trustType" | "businessTrust" | "cashManagementTrust" | "charitableTrust" | "corporateUnitTrust" | "deceasedEstate" | "discretionaryInvestmentTrust" | "discretionaryServicesManagementTrust" | "discretionaryTradingTrust" | "discretionaryTrust" | "familyTrust" | "firstHomeSaverAccountsTrust" | "fixedTrust" | "fixedUnitTrust" | "hybridTrust" | "listedPublicUnitTrust" | "otherTrust" | "pooledSuperannuationTrust" | "publicTradingTrust" | "unlistedPublicUnitTrust" | "countryOfEstablishment" | "nameOfTrustAgreement" | "typeOfTrustAgreement" | "objectOfCharitableTrust" | "objectOfTrust" | "pleaseProvideThePurposeOfCharitableTrust" | "weFoundTheFollowingIssues" | "reviewTheInformationBelowAndCorrectMistakesOr" | "uploadTheRequestedDocuments" | "uploadTheFollowingDocuments" | "uploadDocumentAndDocument" | "thenResubmit" | "isTrustOperationAddressSame" | "trustDetails" | "trustDetailsDescription" | "trustDocumentDescription" | "nameOfTrust" | "fullLegalNamesOfAnyAppointers" | "dateDeedWasSigned" | "settlerDetailsIncl" | "trusteeDetailsIncl" | "beneficiariesDetailsIncl" | "trustMembers" | "trustMembersDescription" | "trustee" | "obligatory" | "requiredIfApplicable" | "provideAtLeastOneSettlor" | "provideAtLeastOneProtector" | "provideAllBeneficiaries" | "provideAllTrustees" | "provideAllControllingPersons" | "settlorGuideDescription" | "trusteeGuideDescription" | "protectorGuideDescription" | "beneficiaryGuideDescription" | "uboThroughControlGuideDescription" | "uboThroughOwnershipGuideDescription" | "beneficiary" | "protector" | "settlor" | "ultimateBeneficialOwner" | "addTrustMember" | "personAppointmentUnderTrustInstrument" | "legalOwnerOfProperty" | "entityEstablishingTrust" | "entityOwning25OrMoreOfTrust" | "controllingPersonOfTrust" | "failedToFetchTrustDetails" | "failedToFetchTrustMemberDetails" | "failedToFetchLegalEntityDetails" | "editTrustMember" | "removeTrustMember" | "successFullyRemovedTrustMember" | "failedToRemoveTrustMember" | "editEntityDetails" | "editOwnerOfTrustMember" | "editEntityOwner" | "addEntityOwner" | "addOwnerToTrustMember" | "whatTypeOfYourMembersEntity" | "naturalPersonTitle" | "naturalPersonDescription" | "businessEntityTitle" | "businessEntityDescription" | "roleAndEntityType" | "helpUsVerifyCompany" | "providePersonalDetailsOfOwner" | "memberDetails" | "good" | "notCutOff" | "notBlurry" | "notExpired" | "noGlare" | "selectDocumentType" | "registrationDocumentSubTitle" | "documentIssuedByGovernmentAuthority" | "uploadTaxationDocument" | "containsNameOfCompany" | "documentShowsTaxIdOfCompany" | "issuedByTheTaxAuthority" | "providePageWithPhotoAndCode" | "constitutionalDocument" | "constitutionalDocument__header" | "constitutionalDocument__headerDescription" | "solePropDetails" | "soleProprietorDetails" | "soleProprietorshipDetails" | "selectAccountHolder" | "nameOfBankAccountHolder" | "whatBestDescribesYourBusinessSetup" | "whichLegalArrangementDoesYourBusinessHave" | "sorryWeCantSetUpAnAccountForYou" | "changeYourBusinessSetup" | "someInformationWillNotBeSaved" | "yesChange" | "youAreNotSoleProprietorAndUseBankAccount" | "soleProprietorship" | "youAreRegisteredSoleProprietorAndUseBankAccount" | "company" | "youUseCompanyBankAccount" | "trust" | "trustPartnershipOrAssociation" | "partnershipOrAssociation" | "whatTypeOfTrusteeAreYou" | "youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation" | "youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation" | "individualTrustee" | "companyTrustee" | "association" | "partnership" | "youAreTrusteeManagingTheTrustForBeneficiaries" | "jointlyOwnedBusinessWhereTwoOrMorePeopleOperateAndShareProfits" | "groupOfPeopleActingTogetherForNonCommercialPurpose" | "ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations" | "needHelpYouCanAlwaysReachOutToCustomerSupport" | "myName" | "setUpYourAccount" | "yourBusinessSetup" | "myNameDescription" | "mySoleProprietorName" | "mySoleProprietorNameDescription" | "theCompanyIWorkFor" | "theCompanyIWorkForDescription" | "aTrust" | "aTrustDescription" | "aPartnership" | "aPartnershipDescription" | "anAssociation" | "anAssociationDescription" | "legalNameOfSoleProprietor" | "legalNameOfSoleProprietorship" | "letUsKnowTheBankAccountToSendReceiveFunds" | "bankAccount" | "bankAccountDetails" | "addExtraBankAccount" | "addAndVerifyYourBankDetails" | "failedToFetchSoleProp" | "uniqueIdentificationCode" | "identifikacionenNomerDDS" | "MBS" | "PDVIdBrojOIB" | "cyRegistrationNumber" | "arithmosEngraphes" | "btwNummer" | "momsregistreringsnummerOrStamregister" | "momsregistreringsnummerCVR" | "stamregister" | "registrikood" | "kaibemaksukohustuslaseNumber" | "YTunnus" | "arvonlisaveronumeroMervardesskattenummer" | "GEMI-number" | "grTaxId" | "huRegistrationNumber" | "huTaxId" | "lvRegistrationNumber" | "lvTaxId" | "ltRegistrationNumber" | "mcRegistrationNumberSoleProp" | "PVMmoketojoKodas" | "luRegistrationNumber" | "numeroDIdentificationALATaxe" | "numarOrdineRegistrulComertului" | "codulDeIdentificareFiscala" | "skRegistrationNumber" | "skTaxId" | "siRegistrationNumber" | "siTaxId" | "chRegistrationNumber" | "mcRegistrationNumber" | "liRegistrationNumber" | "Mehrwertsteuernummer" | "enterNDigitsForExample" | "enterNCharactersForExample" | "enterLastNDigitsForExample" | "enterXToYDigitsForExample" | "enterXOrYDigitsForExample" | "enterXToYCharactersForExample" | "enterXOrYCharactersForExample" | "enterXToYCharactersWithAMixForExample" | "enterAMaximumOfNDigitsForExample" | "enterAMaximumOfNMoreDigitsForExample" | "enterAMaximumOfNCharactersForExample" | "enterAMaximumOfNCharactersWithAMixForExample" | "enterNCharactersWithAMixForExample" | "enterNDigitsAndThen1LetterForExample" | "enter1LetterAndThenNDigitsForExample" | "enter1LetterAndThenXToYDigitsForExample" | "enterNLettersAndThenXToYDigitsForExample" | "enterXToYLettersAndThenWToZDigitsForExample" | "enterTheRemainingNDigitsForExample" | "enterTheRemainingXToYDigitsForExample" | "enterTheRemainingNCharactersForExample" | "enterTheRemainingXToYCharactersForExample" | "enterTheRemainingNDigitsThenXToYLettersForExample" | "provideAllOwners" | "ifNoOwnersSpecifyControllingPersons" | "provideAtLeastOneSignatory" | "provideOneControllingPerson" | "textToVerifyAccount" | "theBankAccountHolderMustHaveTheSameNameAsYourCompany_" | "theBankAccountHolderMustBeInYourName_" | "weDoNotYetSupportInstantVerificationForBankAccountsIn_" | "youCanOnlyUseABankAccountInTheCountryWhereYourCompanyIsRegistered" | "youCanOnlyUseABankAccountInTheCountryWhereYouLive" | "mobileApplication" | "onOnlineBankingEnvironment" | "dontHaveAccessOnlineBanking" | "confirmPayoutManually" | "noteManualTakesLonger" | "accountVerification" | "verifyWith" | "documentVerification" | "youHaveSuccessfullyProvidedTheIdDocument" | "submitIdDocumentsAgain" | "madeAMistake" | "canNotCompleteInstantVerification" | "goBackAndProvideDocumentScans" | "identityCard" | "uploadOneOfTheFollowing" | "uploadOneOfTheseDocuments" | "documentIssuedWithinLastYear" | "learnMore" | "doingBusinessAsNameFiling" | "doingBusinessAsNameFiling__FR" | "doingBusinessAsNameFiling__US" | "businessRegistrationDocument__FR" | "taxFiling" | "taxFiling__US" | "einVerificationLetter" | "areYouACompany" | "singingUpAsIndividualButLooksLikeYouAreACompany" | "wouldYouLikeToSignUpAsCompanyInstead" | "areYouAnIndividual" | "singingUpAsCompanyButLooksLikeYouAreAnIndividual" | "wouldYouLikeToSignUpAsIndividualInstead" | "continue" | "noGoBack" | "continueCompany" | "continueIndividual" | "addManually" | "searchAddress" | "startTypingTheAddress" | "addresses" | "loading" | "businessIncorporationNumber" | "doNotHaveBusinessIncorporationNumber" | "verificationMethod" | "verifyViaMobileBankAppOrBankWebsite" | "provideAccountDetailsAndUploadBankStatement" | "instantVerificationDescription" | "couldNotEstablishBankConnection" | "sorryAnErrorOccurred" | "ranIntoTechnicalError" | "failedInitializeInstantVerification" | "couldNotCompleteAccountCheck" | "tryAgainOrManualAccountDetails" | "manualVerificationDescription" | "poweredBy" | "youSuccessfullyVerifiedAccount" | "verifyBankAccountAgain" | "accountName" | "mayTakeAFewHoursOrDays" | "instant" | "isOurTrustedPartnerHelpingSpeedUpSetup" | "howDoesVerificationWithOurPartnerWorks" | "selectTheBankToReceivePayouts" | "bankAccountFormat" | "ibanFormat" | "localFormat" | "payoutInOnly_" | "payoutIn_Or_" | "loginIntoYourBankingEnvironment" | "yourBankWillConfirmYourAccountDetails" | "adyenWillOnlyGetTemporaryAccess" | "instantVerification" | "xCharactersLeft" | "goBack" | "doNotHaveBusinessNumber" | "enterNameExactlyAsAppearInID" | "enterLastNameExactlyAsAppearInID" | "takePhotoOriginalDocumentWithPhone" | "instantIDVerificationDescription" | "manualIDVerificationDescription" | "uploadScanOriginalIDDocument" | "takesLonger" | "howVerificationWithOnfidoWork" | "onfidoIsOurTrustedPartner" | "usePhoneToScanId" | "onfidoWillGiveFeedbackInRealTime" | "theIdCheckWillBeAutomaticallyValidated" | "adyenKeepsDataAsLongAsLegallyRequired" | "requiresSignatory" | "requiresDecisionMakers" | "definedBeneficiary" | "definedBeneficiaryDescription" | "undefinedBeneficiary" | "undefinedBeneficiaryDescription" | "description" | "descriptionOptional" | "describeWhoIsABeneficiaryInYourTrust" | "descriptionUndefinedBeneficiary" | "undefinedBeneficiaryGuideDescription" | "identityCardBack" | "identityCardFront" | "drivinglicenseBack" | "drivinglicenseFront" | "passportPhotoPage" | "residencePermitBack" | "residencePermitFront" | "manualUpload" | "missingMultipleDecisionMakers" | "legalCompanyName" | "legalCompanyName__helperText" | "legalCompanyName__helperText__AU" | "legalCompanyName__helperText__NL" | "legalCompanyName__helperText__US" | "legalCompanyName__helperText__SG" | "legalCompanyName__helperText__HK" | "taxInformationNumber" | "taxInformationNumber__HK" | "marketIdentifierCodeMIC" | "isin" | "companyLookupResultsHeader" | "companyLookupResultsHeader__searching" | "companyLookupResultsHeader__verifying" | "companyLookupResultsHeader__noResults" | "companyLookupResultsHeader__results" | "companyLookupResultsHeader__searchFailure" | "companyLookupResultsHeaderDescription__noResults" | "companyLookupResultsHeaderDescription__results" | "companyLookupResultsHeaderDescription__searchFailure" | "companyLookupResultsListAlert__title__verified" | "companyLookupResultsListAlert__title__warning" | "companyLookupResultsListAlert__title__error" | "companyLookupResultsListAlert__description__warning" | "companyBasicsFormName" | "companyRegistrationAddressFormName" | "companyRegistrationAddressFormDescription" | "companyStructureFormName" | "companyStructureFormDescription" | "companyOtherDetailsFormName" | "companyRegistrationDocumentFormName" | "companyRegistrationDocumentFormDescription" | "companyTaxDocumentFormName" | "companyTaxDocumentFormDescription" | "errorMessage_1_10" | "errorMessage_1_11" | "errorMessage_1_12" | "errorMessage_1_30" | "errorMessage_1_31" | "errorMessage_1_32" | "errorMessage_1_33" | "errorMessage_1_34" | "errorMessage_1_35" | "errorMessage_1_36" | "errorMessage_1_37" | "errorMessage_1_38" | "errorMessage_1_39" | "errorMessage_1_40" | "errorMessage_1_41" | "errorMessage_1_50" | "errorMessage_1_51" | "errorMessage_1_52" | "errorMessage_1_53" | "errorMessage_1_54" | "errorMessage_1_55" | "errorMessage_1_56" | "errorMessage_1_57" | "errorMessage_1_60" | "errorMessage_1_61" | "errorMessage_1_62" | "errorMessage_1_70" | "errorMessage_1_71" | "errorMessage_1_72" | "errorMessage_1_73" | "errorMessage_1_74" | "errorMessage_1_75" | "errorMessage_1_76" | "errorMessage_1_1000" | "errorMessage_1_1001" | "errorMessage_1_1002" | "errorMessage_1_1003" | "errorMessage_1_3000" | "errorMessage_1_3001" | "errorMessage_1_3002" | "errorMessage_1_3003" | "errorMessage_1_3004" | "errorMessage_1_3005" | "errorMessage_1_3006" | "errorMessage_1_3007" | "errorMessage_1_3008" | "errorMessage_1_3009" | "errorMessage_1_3010" | "errorMessage_1_3011" | "errorMessage_1_3012" | "errorMessage_1_3013" | "errorMessage_1_3014" | "errorMessage_1_3015" | "errorMessage_1_3016" | "errorMessage_1_3017" | "errorMessage_1_3018" | "errorMessage_1_3019" | "errorMessage_1_3020" | "errorMessage_1_3021" | "errorMessage_1_3022" | "errorMessage_1_3023" | "errorMessage_1_3024" | "errorMessage_1_3025" | "errorMessage_1_3026" | "errorMessage_1_3027" | "errorMessage_1_3028" | "errorMessage_1_3029" | "errorMessage_1_3030" | "errorMessage_1_3031" | "errorMessage_1_3032" | "errorMessage_1_3033" | "errorMessage_1_3034" | "errorMessage_1_3035" | "errorMessage_1_3036" | "errorMessage_1_3037" | "errorMessage_1_3038" | "errorMessage_1_3039" | "errorMessage_1_3040" | "errorMessage_1_3041" | "errorMessage_1_3042" | "errorMessage_1_3043" | "errorMessage_1_3044" | "errorMessage_1_3045" | "errorMessage_1_3046" | "errorMessage_1_3047" | "errorMessage_1_3048" | "errorMessage_1_3049" | "errorMessage_1_3050" | "errorMessage_1_3051" | "errorMessage_1_3052" | "errorMessage_1_3062" | "errorMessage_1_5000" | "errorMessage_1_5001" | "errorMessage_1_5002" | "errorMessage_1_5003" | "errorMessage_1_5004" | "errorMessage_1_5005" | "errorMessage_1_5006" | "errorMessage_1_5007" | "errorMessage_1_5008" | "errorMessage_1_5009" | "errorMessage_1_5010" | "errorMessage_1_5011" | "errorMessage_1_5012" | "errorMessage_1_5013" | "errorMessage_1_5014" | "errorMessage_1_5015" | "errorMessage_1_5016" | "errorMessage_1_5017" | "errorMessage_1_5018" | "errorMessage_1_5019" | "errorMessage_1_5020" | "errorMessage_1_5021" | "errorMessage_1_5022" | "errorMessage_1_5023" | "errorMessage_1_5024" | "errorMessage_1_5025" | "errorMessage_1_5026" | "errorMessage_1_5027" | "errorMessage_1_5028" | "errorMessage_1_5029" | "errorMessage_1_5030" | "errorMessage_1_5031" | "errorMessage_1_5032" | "errorMessage_1_5033" | "errorMessage_1_5034" | "errorMessage_1_5035" | "errorMessage_1_5036" | "errorMessage_1_5037" | "errorMessage_1_5038" | "errorMessage_1_5039" | "errorMessage_1_5040" | "errorMessage_1_5041" | "errorMessage_1_5042" | "errorMessage_1_5043" | "errorMessage_1_5044" | "errorMessage_1_5045" | "errorMessage_1_5046" | "errorMessage_1_5047" | "errorMessage_1_5048" | "errorMessage_1_5049" | "errorMessage_1_5050" | "errorMessage_1_5051" | "errorMessage_1_5052" | "errorMessage_1_5053" | "errorMessage_1_5067" | "errorMessage_1_6000" | "errorMessage_1_6001" | "errorMessage_1_6002" | "errorMessage_1_6003" | "errorMessage_1_6004" | "errorMessage_1_6005" | "errorMessage_1_6006" | "errorMessage_1_6007" | "errorMessage_1_6008" | "errorMessage_1_6009" | "errorMessage_1_6010" | "errorMessage_1_6011" | "errorMessage_1_6012" | "errorMessage_1_6013" | "errorMessage_1_6014" | "errorMessage_1_6015" | "errorMessage_1_6016" | "errorMessage_1_6017" | "errorMessage_1_6018" | "errorMessage_1_6019" | "errorMessage_1_6020" | "errorMessage_1_6021" | "errorMessage_1_6022" | "errorMessage_1_6023" | "errorMessage_1_6024" | "errorMessage_1_6025" | "errorMessage_1_6026" | "errorMessage_1_6027" | "errorMessage_1_6028" | "errorMessage_1_6029" | "errorMessage_1_6030" | "errorMessage_1_6031" | "errorMessage_1_6032" | "errorMessage_1_6033" | "errorMessage_1_6034" | "errorMessage_1_6035" | "errorMessage_1_6036" | "errorMessage_1_6037" | "errorMessage_1_6038" | "errorMessage_1_6039" | "errorMessage_1_6040" | "errorMessage_1_6041" | "errorMessage_1_6042" | "errorMessage_1_6044" | "errorMessage_1_6045" | "errorMessage_1_6046" | "errorMessage_1_6047" | "errorMessage_1_6048" | "errorMessage_1_6049" | "errorMessage_1_7000" | "errorMessage_1_7001" | "errorMessage_1_7002" | "errorMessage_1_7003" | "errorMessage_1_7004" | "errorMessage_1_7005" | "errorMessage_1_7006" | "errorMessage_1_7007" | "errorMessage_1_7008" | "errorMessage_1_7009" | "errorMessage_1_7010" | "errorMessage_1_7011" | "errorMessage_1_7012" | "errorMessage_1_7013" | "errorMessage_1_7014" | "errorMessage_1_7015" | "errorMessage_1_7016" | "errorMessage_1_7017" | "errorMessage_1_7018" | "errorMessage_1_7019" | "errorMessage_1_7020" | "errorMessage_1_7021" | "errorMessage_1_7022" | "errorMessage_2_8064" | "errorMessage_2_8067" | "errorMessage_2_8141" | "errorMessage_2_8162" | "errorMessage_2_8183" | "errorMessage_2_8189" | "errorMessage_2_8193" | "errorMessage_3_10" | "remediationMessage_1_100" | "remediationMessage_1_101" | "remediationMessage_1_102" | "remediationMessage_2_158" | "remediationMessage_1_300" | "remediationMessage_1_301" | "remediationMessage_1_302" | "remediationMessage_1_303" | "remediationMessage_1_304" | "remediationMessage_1_305" | "remediationMessage_1_306" | "remediationMessage_1_307" | "remediationMessage_1_308" | "remediationMessage_1_309" | "remediationMessage_1_316" | "remediationMessage_1_500" | "remediationMessage_1_501" | "remediationMessage_1_502" | "remediationMessage_1_503" | "remediationMessage_1_504" | "remediationMessage_1_505" | "remediationMessage_1_506" | "remediationMessage_1_507" | "remediationMessage_1_508" | "remediationMessage_1_509" | "remediationMessage_1_510" | "remediationMessage_1_511" | "remediationMessage_1_512" | "remediationMessage_1_513" | "remediationMessage_1_600" | "remediationMessage_1_601" | "remediationMessage_1_602" | "remediationMessage_1_603" | "remediationMessage_1_700" | "remediationMessage_1_701" | "remediationMessage_1_702" | "remediationMessage_1_703" | "remediationMessage_1_704" | "remediationMessage_1_705" | "remediationMessage_2_123" | "remediationMessage_2_124" | "remediationMessage_2_151" | "remediationMessage_2_178" | "remediationMessage_2_185" | "remediationMessage_3_100" | "sameNameAsLegalName" | "whereCanIFindTheseNumbersOnMyDriversLicense" | "whereToFindNumbersOnDriversLicense" | "whereToFindNumbersOnDriversLicense__NZ" | "iStillCantFindIt" | "patriotActDisclosureTitle" | "patriotActDisclosureTextParagraph1" | "patriotActDisclosureTextParagraph2" | "trusteeAsTrusteeForTrust" | "trusteeAsTrusteeForTrustDoingBusinessAs" | "trustDeed" | "trustInstrument" | "makeSureToHaveYourTrustDeed" | "maintenanceModeMessage" | "individualTrusteeDetails" | "companyTrusteeDetails" | "trusteePersonalDetails" | "byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms" | "whichOfTheseApplyToTheSettlor" | "contributionBelowThreshold" | "professionalServiceProvider" | "deceased" | "noneOfTheAbove" | "settlorExemptionReason" | "otherInformation" | "firstNameOfSettlor" | "lastNameOfSettlor" | "enterSettlorsFirstNameExactlyAsItAppearsInID" | "enterSettlorsLastNameExactlyAsItAppearsInID" | "introductionScreenPrologueTitle" | "introductionScreenPrologueDescriptionP1" | "introductionScreenPrologueDescriptionP2" | "introductionScreenCompanyTitle" | "introductionScreenCompanyDescriptionP1" | "introductionScreenCompanyDescriptionP2" | "introductionScreenCompanyDescriptionLI1" | "introductionScreenIndividualTitle" | "introductionScreenIndividualDescriptionP1" | "introductionScreenIndividualDescriptionP2" | "introductionScreenIndividualDescriptionLI1" | "introductionScreenIndividualDescriptionLI2" | "introductionScreenIndividualDescriptionLI3" | "introductionScreenDecisionMakerTitle" | "introductionScreenDecisionMakerDescriptionP1" | "introductionScreenDecisionMakerDescriptionP2" | "introductionScreenDecisionMakerDescriptionLI1" | "introductionScreenDecisionMakerDescriptionLI2" | "introductionScreenDecisionMakerDescriptionLI3" | "introductionScreenSoleProprietorCompanyTitle" | "introductionScreenSoleProprietorCompanyDescriptionP1" | "introductionScreenSoleProprietorCompanyDescriptionP2" | "introductionScreenSoleProprietorCompanyDescriptionLI1" | "introductionScreenTrustTitle" | "introductionScreenTrustDescriptionP1" | "introductionScreenTrustDescriptionP2" | "introductionScreenTrustDescriptionLI1" | "introductionScreenTrustMemberTitle" | "introductionScreenTrustMemberDescriptionP1" | "introductionScreenTrustMemberDescriptionP2" | "introductionScreenTrustMemberDescriptionLI1" | "introductionScreenTrustMemberDescriptionLI2" | "introductionScreenTrustMemberDescriptionLI3" | "introductionScreenAccountTitle" | "introductionScreenAccountDescriptionP1" | "introductionScreenAccountDescriptionP2" | "introductionScreenEpilogueTitle" | "introductionScreenEpilogueDescriptionP1" | "introductionScreenEpilogueDescriptionP2" | "oib" | "onboardingRedirectInitialHeader" | "onboardingRedirectInitialDescriptionP1" | "onboardingRedirectInitialCtaButton" | "onboardingRedirectInProgressHeader" | "onboardingRedirectInProgressDescriptionP1" | "onboardingRedirectInProgressCtaButton" | "onboardingRedirectErrorsHeader" | "onboardingRedirectErrorsDescriptionP1" | "onboardingRedirectErrorsDescriptionP2" | "onboardingRedirectErrorsCtaButton" | "onboardingRedirectFinishedHeader" | "onboardingRedirectFinishedDescriptionP1" | "onboardingRedirectFinishedCtaButton" | "onboardingRedirectLinkError" | "onboardingRedirectOpenError";
|
|
9
|
+
export declare const getKeyForField: (fieldName: string, country: CountryCode) => import("../../../language/types").TranslationKey;
|
|
10
10
|
/**
|
|
11
11
|
* Returns the address schema of the selected country or the default address schema.
|
|
12
12
|
* @param country - The selected country
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
@@ -13,5 +13,5 @@ export interface BusinessRegistrationNumberFieldProps extends BaseFormFieldProps
|
|
|
13
13
|
companyType?: CompanyTypesValue | 'trust';
|
|
14
14
|
registrationNumberOptions: readonly CompanyRegistrationNumberOption[] | undefined;
|
|
15
15
|
registrationNumberType: CompanyRegistrationNumberType | undefined;
|
|
16
|
-
setRegistrationNumberType: StateUpdater<CompanyRegistrationNumberType | undefined
|
|
16
|
+
setRegistrationNumberType: Dispatch<StateUpdater<CompanyRegistrationNumberType | undefined>>;
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentChild } from 'preact';
|
|
2
|
-
import { StateUpdater } from 'preact/hooks';
|
|
2
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
3
3
|
import { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
|
|
4
4
|
import { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
5
5
|
import { EntityProblems } from '../../../core/models/errors/entity-problems';
|
|
@@ -15,7 +15,7 @@ export interface EntityAssociationProps {
|
|
|
15
15
|
onNavigateToEntity?: () => void;
|
|
16
16
|
removeEntity?: () => void;
|
|
17
17
|
isRemoveDisabled?: boolean;
|
|
18
|
-
handleIsRemoveDisabled?: StateUpdater<boolean
|
|
18
|
+
handleIsRemoveDisabled?: Dispatch<StateUpdater<boolean>>;
|
|
19
19
|
}
|
|
20
20
|
export interface UniqueEntityAssociation {
|
|
21
21
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import { TranslationKey } from '../../../language/types';
|
|
3
3
|
export interface RemoveProps {
|
|
4
4
|
onRemove: () => void | Promise<void>;
|
|
5
|
-
onRemoveStatusChange?: StateUpdater<boolean
|
|
5
|
+
onRemoveStatusChange?: Dispatch<StateUpdater<boolean>>;
|
|
6
6
|
isRemoveDisabled?: boolean;
|
|
7
|
-
handleIsRemoveDisabled?: StateUpdater<boolean
|
|
7
|
+
handleIsRemoveDisabled?: Dispatch<StateUpdater<boolean>>;
|
|
8
8
|
label?: TranslationKey;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
4
4
|
import { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
@@ -14,7 +14,7 @@ export interface TaxInformationFieldProps extends BaseFormFieldProps<TaxInformat
|
|
|
14
14
|
country: CountryCode;
|
|
15
15
|
canExempt: boolean;
|
|
16
16
|
taxIdNumberType: TaxIdNumberType | undefined;
|
|
17
|
-
setTaxIdNumberType: StateUpdater<TaxIdNumberType | undefined
|
|
17
|
+
setTaxIdNumberType: Dispatch<StateUpdater<TaxIdNumberType | undefined>>;
|
|
18
18
|
companyType?: CompanyTypesValue | LegalEntityType.TRUST;
|
|
19
19
|
isUen?: boolean;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
|
|
3
3
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
4
4
|
import type { TaxIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
|
|
@@ -11,5 +11,5 @@ export interface VatNumberFieldProps extends BaseFormFieldProps<VatNumberFieldSc
|
|
|
11
11
|
country: CountryCode;
|
|
12
12
|
canExempt: boolean;
|
|
13
13
|
vatNumberType: TaxIdNumberType | undefined;
|
|
14
|
-
setVatNumberType: StateUpdater<TaxIdNumberType | undefined
|
|
14
|
+
setVatNumberType: Dispatch<StateUpdater<TaxIdNumberType | undefined>>;
|
|
15
15
|
}
|
|
@@ -7,7 +7,8 @@ export declare enum ExperimentNames {
|
|
|
7
7
|
EnableCompanySearchFlow = "EnableCompanySearchFlow",
|
|
8
8
|
EnableNewEntryFlow = "EnableNewEntryFlow",
|
|
9
9
|
AllowOrganizationSettlorWithExemptionReason = "AllowOrganizationSettlorWithExemptionReason",
|
|
10
|
-
AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee"
|
|
10
|
+
AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee",
|
|
11
|
+
ShowUnsupportedEntityType = "ShowUnsupportedEntityType"
|
|
11
12
|
}
|
|
12
13
|
export type ExperimentName = `${ExperimentNames}`;
|
|
13
14
|
export type Experiments = {
|
|
@@ -3,5 +3,5 @@ export interface UseHasSeenIntroductionProps {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const useHasSeenIntroduction: ({ legalEntityId }: UseHasSeenIntroductionProps) => {
|
|
5
5
|
hasSeenIntroduction: boolean;
|
|
6
|
-
setHasSeenIntroduction: import("preact/hooks").StateUpdater<boolean
|
|
6
|
+
setHasSeenIntroduction: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<boolean>>;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosError } from 'axios';
|
|
2
|
-
import type { StateUpdater } from 'preact/hooks';
|
|
2
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
3
3
|
import type { CompanyBasicsSchema } from '../../../components/CompanyBasics/types';
|
|
4
4
|
import type { DropinAPIHandlers } from '../../../components/Dropins/types';
|
|
5
5
|
import type { ValidatorMode } from '../../../utils/validation/types';
|
|
@@ -26,7 +26,7 @@ export interface UseCompanySearchOptions {
|
|
|
26
26
|
canVerify: boolean;
|
|
27
27
|
baseTrackingPayload: BaseTrackingPayload;
|
|
28
28
|
limit?: number;
|
|
29
|
-
setKompanyAddress: StateUpdater<string | undefined
|
|
29
|
+
setKompanyAddress: Dispatch<StateUpdater<string | undefined>>;
|
|
30
30
|
handleChangeFor: (key: keyof CompanyBasicsSchema, mode?: ValidatorMode) => (e: any) => void;
|
|
31
31
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
32
32
|
handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
1
2
|
import { CompanySearchSchema } from '../../components/CompanySearch/types';
|
|
2
3
|
import { DropinAPIHandlers } from '../../components/Dropins/types';
|
|
3
4
|
import { LoadingStatus } from '../../components/internal/LoaderWrapper/constants';
|
|
@@ -18,11 +19,11 @@ export interface FormTaskSubmitOptions {
|
|
|
18
19
|
task: TaskTypes;
|
|
19
20
|
forms: FormModelWithValidity[];
|
|
20
21
|
legalEntityResponse: ExistingLegalEntity;
|
|
21
|
-
problems
|
|
22
|
+
problems?: EntityProblems;
|
|
22
23
|
baseTrackingPayload: BaseTrackingPayload;
|
|
23
24
|
documentUtils: DocumentApiUtils;
|
|
24
|
-
setProblems:
|
|
25
|
-
setLoadingStatus:
|
|
25
|
+
setProblems: Dispatch<StateUpdater<EntityProblems | undefined>>;
|
|
26
|
+
setLoadingStatus: Dispatch<StateUpdater<LoadingStatus>>;
|
|
26
27
|
onExternalSubmit?: (company: CompanySearchSchema) => void;
|
|
27
28
|
handleUpdateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
|
|
28
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StateUpdater } from 'preact/hooks';
|
|
1
|
+
import { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { Translatable, TranslationKey } from '../../../language/types';
|
|
3
3
|
import { Mask } from '../../../utils/masking/maskTypes';
|
|
4
4
|
import type { ValidationRuleResult, ValidatorMode, ValidatorRules } from '../../../utils/validation/types';
|
|
@@ -107,13 +107,13 @@ export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema
|
|
|
107
107
|
};
|
|
108
108
|
evaluateConfiguration?: (data: FormSchema) => void;
|
|
109
109
|
setCustomFormNavigationHandlers?(formId: string, onNext: () => void, onBack: () => void): void;
|
|
110
|
-
setHideDropinLayout?: StateUpdater<boolean
|
|
111
|
-
setHideNavigation?: StateUpdater<boolean
|
|
112
|
-
setHideFooter?: StateUpdater<boolean
|
|
113
|
-
setHideOnHomeButton?: StateUpdater<boolean
|
|
114
|
-
setHideBackButton?: StateUpdater<boolean
|
|
115
|
-
setSubmitButtonLabel?: StateUpdater<TranslationKey
|
|
116
|
-
setSkipSubmit?: StateUpdater<boolean
|
|
110
|
+
setHideDropinLayout?: Dispatch<StateUpdater<boolean>>;
|
|
111
|
+
setHideNavigation?: Dispatch<StateUpdater<boolean>>;
|
|
112
|
+
setHideFooter?: Dispatch<StateUpdater<boolean>>;
|
|
113
|
+
setHideOnHomeButton?: Dispatch<StateUpdater<boolean>>;
|
|
114
|
+
setHideBackButton?: Dispatch<StateUpdater<boolean>>;
|
|
115
|
+
setSubmitButtonLabel?: Dispatch<StateUpdater<TranslationKey>>;
|
|
116
|
+
setSkipSubmit?: Dispatch<StateUpdater<boolean>>;
|
|
117
117
|
}
|
|
118
118
|
export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
119
119
|
formVerificationErrors?: FormVerificationErrors;
|