@adyen/kyc-components 3.7.0 → 3.8.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.
Files changed (34) hide show
  1. package/dist/es/adyen-kyc-components.es.js +100 -67
  2. package/dist/style.css +6 -0
  3. package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
  4. package/dist/types/components/BankVerification/types.d.ts +5 -5
  5. package/dist/types/components/BusinessTypeSelection/utils.d.ts +2 -1
  6. package/dist/types/components/CompanyBasics/types.d.ts +3 -3
  7. package/dist/types/components/CompanyLookup/types.d.ts +4 -4
  8. package/dist/types/components/Individual/types.d.ts +2 -2
  9. package/dist/types/components/PayoutDetails/types.d.ts +2 -2
  10. package/dist/types/components/TaskList/types.d.ts +2 -2
  11. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  12. package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
  13. package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
  14. package/dist/types/components/internal/Remove/types.d.ts +3 -3
  15. package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
  16. package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
  17. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -1
  18. package/dist/types/core/Context/ExperimentContext/types.d.ts +2 -1
  19. package/dist/types/core/Context/ReactQueryContext/ReactQueryClient.d.ts +2 -0
  20. package/dist/types/core/Context/ReactQueryContext/ReactQueryProvider.d.ts +4 -0
  21. package/dist/types/core/Services/componentApi/validate-account-identification.d.ts +4 -0
  22. package/dist/types/core/Services/kycExternalApi/index.d.ts +1 -1
  23. package/dist/types/core/Services/kycExternalApi/{account-identification.d.ts → validate-account-identification.d.ts} +1 -1
  24. package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
  25. package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
  26. package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +3 -3
  27. package/dist/types/core/hooks/useForm/types.d.ts +8 -8
  28. package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
  29. package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
  30. package/dist/types/language/config.d.ts +2 -1256
  31. package/dist/types/language/types.d.ts +1 -1
  32. package/dist/types/utils/entity-status-util.d.ts +1 -1
  33. package/dist/types/utils/useStateFromProp.d.ts +2 -2
  34. 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";
@@ -1261,6 +1271,7 @@ const completeAddingAccount = "Complete adding account";
1261
1271
  const removeThisBankAccount = "Remove this bank account";
1262
1272
  const editDetails = "Edit details";
1263
1273
  const defaultTrans = {
1274
+ smartling,
1264
1275
  close,
1265
1276
  individual,
1266
1277
  payoutAccount,
@@ -2515,7 +2526,10 @@ const defaultTrans = {
2515
2526
  editDetails
2516
2527
  };
2517
2528
  const FALLBACK_LOCALE = "en-US";
2518
- const defaultTranslation = defaultTrans;
2529
+ const defaultTranslation = Object.entries(defaultTrans).reduce((acc, [translationKey, translationValue]) => translationKey !== "smartling" ? {
2530
+ ...acc,
2531
+ [translationKey]: translationValue
2532
+ } : acc, {});
2519
2533
  const determineAllowedAttributes = (allowedTags) => {
2520
2534
  const allowedAttributes = [];
2521
2535
  if (allowedTags.includes("a")) {
@@ -17793,7 +17807,7 @@ function IndividualComponent(props) {
17793
17807
  }
17794
17808
  const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccountNumberMasked2) => {
17795
17809
  const {
17796
- accountIdentification: accountIdentification2
17810
+ validateAccountIdentification: validateAccountIdentification2
17797
17811
  } = useConfigurationApi();
17798
17812
  const [accountValidationData, setAccountValidationData] = useState({
17799
17813
  invalidFields: [],
@@ -17802,7 +17816,7 @@ const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccou
17802
17816
  useEffect(() => {
17803
17817
  const fetchAccountDetails = async (accountIdentificationPayload) => {
17804
17818
  try {
17805
- const accountIdentificationResponse = await accountIdentification2(accountIdentificationPayload);
17819
+ const accountIdentificationResponse = await validateAccountIdentification2(accountIdentificationPayload);
17806
17820
  setAccountValidationData(accountIdentificationResponse);
17807
17821
  } catch (error) {
17808
17822
  console.error("Error fetching account details:", error);
@@ -17811,7 +17825,7 @@ const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccou
17811
17825
  if (payload && !hasEmptyFields2 && !isAccountNumberMasked2) {
17812
17826
  fetchAccountDetails(payload);
17813
17827
  }
17814
- }, [accountIdentification2, hasEmptyFields2, payload]);
17828
+ }, [validateAccountIdentification2, hasEmptyFields2, payload]);
17815
17829
  return accountValidationData;
17816
17830
  };
17817
17831
  const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
@@ -23479,12 +23493,20 @@ const legalArrangementItems = [{
23479
23493
  name: "associationIncorporated",
23480
23494
  description: "groupOfPeopleActingTogetherForNonCommercialPurpose"
23481
23495
  }];
23482
- const getLegalArrangementOptions = (country2) => legalArrangementItems.filter((legalArrangementItem) => legalArrangementItem.id !== "aTrust" || country2 && TRUST_COUNTRIES.includes(country2));
23483
- const getSelectionOptions = (legalEntityResponse) => {
23496
+ const getLegalArrangementOptions = (country2, experiments) => legalArrangementItems.filter((legalArrangementItem) => {
23497
+ if (legalArrangementItem.id !== "aTrust" && legalArrangementItem.id !== "partnershipUnincorporated") {
23498
+ return true;
23499
+ }
23500
+ if (legalArrangementItem.id === "partnershipUnincorporated" && (experiments == null ? void 0 : experiments.ShowUnsupportedEntityType)) {
23501
+ return true;
23502
+ }
23503
+ return country2 && TRUST_COUNTRIES.includes(country2);
23504
+ });
23505
+ const getSelectionOptions = (legalEntityResponse, experiments) => {
23484
23506
  var _a, _b, _c, _d;
23485
23507
  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;
23486
23508
  const businessTypeOptions = getBusinessTypeOptions(country2);
23487
- const legalArrangementOptions = getLegalArrangementOptions(country2);
23509
+ const legalArrangementOptions = getLegalArrangementOptions(country2, experiments);
23488
23510
  return {
23489
23511
  businessTypeOptions,
23490
23512
  legalArrangementOptions
@@ -24204,30 +24226,19 @@ function useCompanySearch({
24204
24226
  deepSearch
24205
24227
  }) => {
24206
24228
  try {
24207
- if (!indexSearch || !deepSearch)
24229
+ if (!deepSearch)
24208
24230
  return;
24209
24231
  setStatus("loading");
24210
24232
  setCompaniesList([]);
24211
24233
  const {
24212
- results: indexSearchResults
24213
- } = await indexSearch({
24234
+ results: deepSearchResults
24235
+ } = await deepSearch({
24214
24236
  text: companyName2,
24215
24237
  country: companyCountry2,
24216
24238
  state: companyState,
24217
24239
  limit: resultsLimit
24218
24240
  });
24219
- if (!(indexSearchResults == null ? void 0 : indexSearchResults.length)) {
24220
- const {
24221
- results: deepSearchResults
24222
- } = await deepSearch({
24223
- text: companyName2,
24224
- country: companyCountry2,
24225
- state: companyState,
24226
- limit: resultsLimit
24227
- });
24228
- return setCompaniesList(deepSearchResults);
24229
- }
24230
- return setCompaniesList(indexSearchResults);
24241
+ return setCompaniesList(deepSearchResults);
24231
24242
  } catch (e) {
24232
24243
  setStatus("error");
24233
24244
  setError(e);
@@ -24240,37 +24251,26 @@ function useCompanySearch({
24240
24251
  return setStatus("idle");
24241
24252
  }
24242
24253
  try {
24243
- if (!handleCompanyIndexSearch || !handleCompanyDeepSearch)
24254
+ if (!handleCompanyDeepSearch)
24244
24255
  return;
24245
24256
  setStatus("loading");
24246
24257
  setSelectedCompanyId(void 0);
24247
24258
  const {
24248
- results: indexSearchResults
24249
- } = await handleCompanyIndexSearch({
24259
+ results: deepSearchResults
24260
+ } = await handleCompanyDeepSearch({
24250
24261
  text: legalCompanyName2,
24251
24262
  country: country2,
24252
24263
  state: stateOrProvince2,
24253
24264
  limit
24254
24265
  });
24255
- if (!(indexSearchResults == null ? void 0 : indexSearchResults.length)) {
24256
- const {
24257
- results: deepSearchResults
24258
- } = await handleCompanyDeepSearch({
24259
- text: legalCompanyName2,
24260
- country: country2,
24261
- state: stateOrProvince2,
24262
- limit
24263
- });
24264
- return setCompaniesList(deepSearchResults);
24265
- }
24266
- return setCompaniesList(indexSearchResults);
24266
+ return setCompaniesList(deepSearchResults);
24267
24267
  } catch (e) {
24268
24268
  setStatus("error");
24269
24269
  setError(e);
24270
24270
  } finally {
24271
24271
  setStatus((prevStatus) => prevStatus !== "error" ? "loaded" : prevStatus);
24272
24272
  }
24273
- }, [handleCompanyIndexSearch, handleCompanyDeepSearch, country2, legalCompanyName2, limit, stateOrProvince2]);
24273
+ }, [handleCompanyDeepSearch, country2, legalCompanyName2, limit, stateOrProvince2]);
24274
24274
  const verify2 = useCallback(async (companyTIN, company2) => {
24275
24275
  try {
24276
24276
  if (!handleVerifyTin || !handleGetCompanyDataset || !handleRefreshCompanyDataset)
@@ -27170,6 +27170,9 @@ const BusinessTypeSelection = ({
27170
27170
  const {
27171
27171
  showToast
27172
27172
  } = useToastContext();
27173
+ const {
27174
+ isExperimentEnabled
27175
+ } = useExperimentsContext();
27173
27176
  const [loadingStatus, setLoadingStatus] = useState();
27174
27177
  const [currentStep, setCurrentStep] = useState(
27175
27178
  0
@@ -27185,7 +27188,9 @@ const BusinessTypeSelection = ({
27185
27188
  const {
27186
27189
  businessTypeOptions,
27187
27190
  legalArrangementOptions
27188
- } = getSelectionOptions(legalEntityResponse);
27191
+ } = getSelectionOptions(legalEntityResponse, {
27192
+ ShowUnsupportedEntityType: isExperimentEnabled("ShowUnsupportedEntityType")
27193
+ });
27189
27194
  const currentLegalEntityType = legalEntityResponse == null ? void 0 : legalEntityResponse.type;
27190
27195
  const currentCompanyTypesValue = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
27191
27196
  const defaultBusinessType = getBusinessType(businessTypeOptions, accountHolder2, legalEntityResponse == null ? void 0 : legalEntityResponse.type, (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type);
@@ -34291,17 +34296,32 @@ const getSupportedCountries = async (context) => {
34291
34296
  }
34292
34297
  });
34293
34298
  };
34294
- const validatePhoneNumber$1 = async (context, phoneNumber2) => {
34299
+ const validateAccountIdentification$1 = async (context, payoutAccountDetails) => {
34295
34300
  const {
34301
+ loadingContext
34302
+ } = context;
34303
+ return httpPost({
34296
34304
  loadingContext,
34297
- legalEntityId
34305
+ authentication: "jwt",
34306
+ errorLevel: "warn",
34307
+ errorMessage: "Account Identification is not available",
34308
+ path: `validations/accountidentification`
34309
+ }, {
34310
+ accountIdentification: {
34311
+ ...payoutAccountDetails
34312
+ }
34313
+ });
34314
+ };
34315
+ const validatePhoneNumber$1 = async (context, phoneNumber2) => {
34316
+ const {
34317
+ loadingContext
34298
34318
  } = context;
34299
34319
  return httpPost({
34300
34320
  loadingContext,
34301
34321
  authentication: "jwt",
34302
34322
  errorLevel: "warn",
34303
34323
  errorMessage: "Phone validation is not available",
34304
- path: `${legalEntityId}/validations/phonenumber`
34324
+ path: `validations/phonenumber`
34305
34325
  }, {
34306
34326
  number: phoneNumber2
34307
34327
  });
@@ -34356,9 +34376,6 @@ const getEmbeddedApi = ({
34356
34376
  legalEntityId: rootLegalEntityId
34357
34377
  };
34358
34378
  return {
34359
- accountIdentification: () => {
34360
- throw new Error("accountIdentification: Not implemented in onboarding component api");
34361
- },
34362
34379
  getConfiguration: async ({
34363
34380
  legalEntityType
34364
34381
  }) => {
@@ -34378,27 +34395,15 @@ const getEmbeddedApi = ({
34378
34395
  getImageUrl: () => `${base}static/images/`,
34379
34396
  getAllowedCountries: async () => getSupportedCountries(baseRequestContext),
34380
34397
  getAllowedLocales: async () => getAllowedLocales$1(baseRequestContext),
34381
- validatePhoneNumber: async (phoneNumber2) => validatePhoneNumber$1(baseRequestContext, phoneNumber2),
34398
+ validateAccountIdentification: async (accountIdentificationDetails) => validateAccountIdentification$1({
34399
+ loadingContext
34400
+ }, accountIdentificationDetails),
34401
+ validatePhoneNumber: async (phoneNumber2) => validatePhoneNumber$1({
34402
+ loadingContext
34403
+ }, phoneNumber2),
34382
34404
  verifyIdNumber: async (request) => verifyIdNumber$1(baseRequestContext, request)
34383
34405
  };
34384
34406
  };
34385
- const accountIdentification = async (context, payoutAccountDetails) => {
34386
- const {
34387
- loadingContext,
34388
- clientKey
34389
- } = context;
34390
- return httpPost({
34391
- loadingContext,
34392
- clientKey,
34393
- errorLevel: "warn",
34394
- errorMessage: "Account Identification is not available",
34395
- path: "v1/validations/accountidentification"
34396
- }, {
34397
- accountIdentification: {
34398
- ...payoutAccountDetails
34399
- }
34400
- });
34401
- };
34402
34407
  const getAllowedCountries = async (context) => {
34403
34408
  const {
34404
34409
  loadingContext,
@@ -34462,6 +34467,23 @@ const getDataset = async (context, name, locale) => {
34462
34467
  return datasetResponse;
34463
34468
  });
34464
34469
  };
34470
+ const validateAccountIdentification = async (context, payoutAccountDetails) => {
34471
+ const {
34472
+ loadingContext,
34473
+ clientKey
34474
+ } = context;
34475
+ return httpPost({
34476
+ loadingContext,
34477
+ clientKey,
34478
+ errorLevel: "warn",
34479
+ errorMessage: "Account Identification is not available",
34480
+ path: "v1/validations/accountidentification"
34481
+ }, {
34482
+ accountIdentification: {
34483
+ ...payoutAccountDetails
34484
+ }
34485
+ });
34486
+ };
34465
34487
  const validatePhoneNumber = async (context, phoneNumber2) => {
34466
34488
  const {
34467
34489
  loadingContext,
@@ -34517,7 +34539,7 @@ const getKycExternalApi = ({
34517
34539
  loadingContext,
34518
34540
  clientKey
34519
34541
  }) => ({
34520
- accountIdentification: async (accountIdentificationDetails) => accountIdentification({
34542
+ validateAccountIdentification: async (accountIdentificationDetails) => validateAccountIdentification({
34521
34543
  loadingContext,
34522
34544
  clientKey
34523
34545
  }, accountIdentificationDetails),
@@ -34690,6 +34712,15 @@ const I18nProvider = ({
34690
34712
  children
34691
34713
  });
34692
34714
  };
34715
+ const ReactQueryClient = new QueryClient();
34716
+ function ReactQueryProvider({
34717
+ children
34718
+ }) {
34719
+ return jsx(QueryClientProvider, {
34720
+ client: ReactQueryClient,
34721
+ children
34722
+ });
34723
+ }
34693
34724
  const settingsDefaults = {
34694
34725
  acceptedCountries: void 0,
34695
34726
  allowBankAccountFormatSelection: false,
@@ -35042,9 +35073,11 @@ class UIElement extends BaseElement {
35042
35073
  children: jsx(AutoResizer, {
35043
35074
  children: jsx(ToastContextProvider, {
35044
35075
  children: jsx(StateProvider, {
35045
- children: jsx(Component, {
35046
- ...this.props.componentProps,
35047
- eventEmitter: this.eventEmitter
35076
+ children: jsx(ReactQueryProvider, {
35077
+ children: jsx(Component, {
35078
+ ...this.props.componentProps,
35079
+ eventEmitter: this.eventEmitter
35080
+ })
35048
35081
  })
35049
35082
  })
35050
35083
  })
package/dist/style.css CHANGED
@@ -101570,6 +101570,12 @@ a.adl-button:disabled, a.adl-button.adl-button--disabled {
101570
101570
  }
101571
101571
  .adyen-task-list__heading {
101572
101572
  padding: 16px;
101573
+ }
101574
+ .adyen-kyc-dropin-container {
101575
+ background-color: #fff;
101576
+ padding: 32px;
101577
+ border-radius: 8px;
101578
+ z-index: 2;
101573
101579
  }/* #region Spacing */
101574
101580
  /* #endregion */
101575
101581
  /* #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: (error: InstantVerificationErrorNotification | null) => void;
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 { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
@@ -44,7 +44,7 @@ export type PayoutDropinApiHandlers = Required<Pick<DropinAPIHandlers, 'handleCr
44
44
  export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
45
45
  accountHolder?: string;
46
46
  transferInstrument?: ExistingTransferInstrument;
47
- setTransferInstrument?: StateUpdater<ExistingTransferInstrument | undefined>;
47
+ setTransferInstrument?: Dispatch<StateUpdater<ExistingTransferInstrument | undefined>>;
48
48
  navigateBackToTaskList?(): void;
49
49
  hideNavigation?: boolean;
50
50
  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';
@@ -89,5 +89,5 @@ export interface TaskListItemProps extends TaskStatusProps {
89
89
  warningMessage?: string;
90
90
  removeEntity?: () => void;
91
91
  isRemoveDisabled?: boolean;
92
- handleIsRemoveDisabled?: StateUpdater<boolean>;
92
+ handleIsRemoveDisabled?: Dispatch<StateUpdater<boolean>>;
93
93
  }
@@ -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" | "search" | "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" | "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" | "accountNumber" | "bsbCode" | "branchNumber" | "clearingNumber" | "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" | "enterValidAccountDetails" | "enterValid_" | "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" | "addBankDetails" | "addMissingBankDetails" | "bankDetails" | "addAnotherBankAccount" | "bankDetailsBeingProcessed" | "bankDetailsVerified" | "bankDetailsNotVerified" | "unableToProceedUsingFunctionality" | "showDetails" | "missingDetailsToPerformPayouts" | "completeAddingAccount" | "removeThisBankAccount" | "editDetails";
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
  }