@adyen/kyc-components 3.64.7 → 3.65.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 (130) hide show
  1. package/dist/{AccountSetupRejected-BY-Kfg6C.js → AccountSetupRejected-8Bcks_Pu.js} +2 -2
  2. package/dist/{CXEL7IU7-DWe37N_k.js → CXEL7IU7-EInZOSNY.js} +3 -3
  3. package/dist/{CustomerSupport-B6Z5Uwg0.js → CustomerSupport-BCIrCnC-.js} +3 -3
  4. package/dist/{DebugModal-BFUkUKc4.js → DebugModal-BTbmQWwe.js} +7 -7
  5. package/dist/{DecisionMakers-DFxbfJ_g.js → DecisionMakers-BJ5xphlP.js} +4 -4
  6. package/dist/{HASRA6WW-CDUOAJR8.js → HASRA6WW-C4T4T8Nn.js} +2 -2
  7. package/dist/{I3HPI4QX-BeUQHygB.js → I3HPI4QX-s_JOUk5d.js} +3 -3
  8. package/dist/{Introduction-D1420ArA.js → Introduction-DfZOVSDf.js} +2 -2
  9. package/dist/{Review-Cko9r5T0.js → Review-VgvMT5nK.js} +4 -4
  10. package/dist/{SingpassSelection-DBgJHkYK.js → SingpassSelection-hpY3DbKh.js} +2 -2
  11. package/dist/TaxReportingDropin-Dqfa6FM8.js +544 -0
  12. package/dist/adyen-kyc-components.js +1 -1
  13. package/dist/adyenConfig.js +1 -1
  14. package/dist/{bg-BG-NVSBt3tn.js → bg-BG-D5xgOsU2.js} +29 -2
  15. package/dist/{core-CZJjaZbA.js → core-D8ryGpa4.js} +37127 -37411
  16. package/dist/{cs-CZ-DqZaIl0x.js → cs-CZ-KVBXiNIz.js} +29 -2
  17. package/dist/{css-B7xW4JBR.js → css-CycUexVO.js} +2 -2
  18. package/dist/{da-DK-VDNZINuU.js → da-DK-7spShYAz.js} +29 -2
  19. package/dist/{de-DE-Cy2I9dDn.js → de-DE-yvRIvFcU.js} +29 -2
  20. package/dist/{el-GR-DHfRaR8Z.js → el-GR-YWCgriVb.js} +29 -2
  21. package/dist/{es-ES-DZVd96IC.js → es-ES-CNzD9GEq.js} +29 -2
  22. package/dist/{et-EE-B-NM8E_e.js → et-EE-DmUotb4z.js} +29 -2
  23. package/dist/{fi-FI-BbQD08sd.js → fi-FI-TAzpPLK7.js} +29 -2
  24. package/dist/{fr-FR-B0hRAlYr.js → fr-FR-CIuKbRED.js} +29 -2
  25. package/dist/{hr-HR-DISs60-D.js → hr-HR-DVgHQ1c2.js} +29 -2
  26. package/dist/{hu-HU-FdXtQL6g.js → hu-HU-BbcxqNs1.js} +29 -2
  27. package/dist/{it-IT-DLVitGZp.js → it-IT-B1f9TSeu.js} +29 -2
  28. package/dist/{json-DSNxkG4k.js → json-BNxOWY2H.js} +2 -2
  29. package/dist/{lt-LT-CCJXOhvW.js → lt-LT-BrIeKggd.js} +29 -2
  30. package/dist/{lv-LV-BQmI9-a3.js → lv-LV-Bac-1cF2.js} +29 -2
  31. package/dist/{nl-NL-Bt7RXn3A.js → nl-NL-Ix5Iync5.js} +29 -2
  32. package/dist/{no-NO-Cca9eM0q.js → no-NO-DNXvLJWB.js} +29 -2
  33. package/dist/{pl-PL-CVIz0kbw.js → pl-PL-B8kXLpAH.js} +29 -2
  34. package/dist/{plaintext-DUYAf_KK.js → plaintext-DOua1PdK.js} +2 -2
  35. package/dist/{pt-PT-DXBtMcCw.js → pt-PT-CVrVM34j.js} +29 -2
  36. package/dist/{ro-RO-B6yMY4Un.js → ro-RO-Bkrwakp1.js} +29 -2
  37. package/dist/{sk-SK-CU-2vF-f.js → sk-SK-D2fhxlzK.js} +29 -2
  38. package/dist/{sl-SI-iSZmm9e_.js → sl-SI-BxHUDGRq.js} +29 -2
  39. package/dist/style.css +2838 -2873
  40. package/dist/{sv-SE-Bpawpljv.js → sv-SE-Dj8Q_gMm.js} +29 -2
  41. package/dist/types/api/documents/useCreateDocument.d.ts +5 -0
  42. package/dist/types/api/documents/useDeleteDocument.d.ts +5 -0
  43. package/dist/types/api/documents/useGetDocument.d.ts +5 -0
  44. package/dist/types/api/documents/useUpdateDocument.d.ts +11 -0
  45. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +3 -3
  46. package/dist/types/api/legalEntity/useLegalEntity.d.ts +4 -5
  47. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +14 -0
  48. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
  49. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -0
  50. package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -0
  51. package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +4 -0
  52. package/dist/types/api/transferInstruments/useGetTransferInstrument.d.ts +12 -0
  53. package/dist/types/api/transferInstruments/{useTransferInstruments.d.ts → useGetTransferInstruments.d.ts} +5 -1
  54. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
  55. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  56. package/dist/types/components/Business/forms/rules.d.ts +1 -0
  57. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  58. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -2
  59. package/dist/types/components/Business/utils/companyUtil.d.ts +4 -0
  60. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
  61. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -3
  62. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsDropin.d.ts +1 -1
  63. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -2
  64. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -6
  65. package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +2 -7
  66. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +3 -10
  67. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  68. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +2 -4
  69. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  70. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -16
  71. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -1
  72. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -1
  73. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +3 -2
  74. package/dist/types/components/Individual/forms/Individual/rules.d.ts +2 -1
  75. package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
  76. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -1
  77. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +3 -2
  78. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +2 -1
  79. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +1 -1
  80. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
  81. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
  82. package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
  83. package/dist/types/components/Shared/Summary/Summary.d.ts +2 -1
  84. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -1
  85. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +18 -9
  86. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +31 -0
  87. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  88. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  89. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +2 -2
  90. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  91. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  92. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
  93. package/dist/types/components/Shared/forms/FinancialInformation/validate.d.ts +1 -0
  94. package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
  95. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
  96. package/dist/types/components/UnincorporatedPartnership/{UnincorporatedPartnershipMembers → tasks/UnincorporatedPartnershipMembers}/UnincorporatedPartnershipMembersOverview.d.ts +4 -4
  97. package/dist/types/components/UnincorporatedPartnership/{UnincorporatedPartnershipMembers → tasks/UnincorporatedPartnershipMembers}/types.d.ts +5 -5
  98. package/dist/types/components/UnincorporatedPartnership/{UnincorporatedPartnershipRoleAndType → tasks/UnincorporatedPartnershipRoleAndType}/UnincorporatedPartnershipRadioGroup.d.ts +1 -1
  99. package/dist/types/components/UnincorporatedPartnership/{UnincorporatedPartnershipRoleAndType → tasks/UnincorporatedPartnershipRoleAndType}/UnincorporatedPartnershipRoleAndType.d.ts +2 -2
  100. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +2 -1
  101. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +1 -1
  102. package/dist/types/components/index.d.ts +1 -18
  103. package/dist/types/components/ui/molecules/Toast/Toast.d.ts +2 -2
  104. package/dist/types/components/ui/molecules/Toast/Toast.types.d.ts +8 -7
  105. package/dist/types/core/models/api/attachment.d.ts +4 -3
  106. package/dist/types/core/models/api/document.d.ts +4 -29
  107. package/dist/types/core/models/api/financialReport.d.ts +1 -1
  108. package/dist/types/core/models/api/get-scenarios.d.ts +2 -1
  109. package/dist/types/core/models/api/individual.d.ts +2 -0
  110. package/dist/types/core/models/errors/validation-error.d.ts +5 -7
  111. package/dist/types/core/models/form-rules.d.ts +2 -0
  112. package/dist/types/hooks/useComponentApi.d.ts +0 -9
  113. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -1
  114. package/dist/types/stores/globalStore/globalStore.d.ts +3 -0
  115. package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
  116. package/dist/types/utils/api/documentUtils.d.ts +2 -2
  117. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  118. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
  119. package/dist/types/utils/roleMetadata.d.ts +1 -1
  120. package/dist/{yaml-ejLZ1p9z.js → yaml-DG6kdH_n.js} +2 -2
  121. package/package.json +3 -1
  122. package/dist/types/core/models/api/provider-status.d.ts +0 -12
  123. package/dist/types/core/services/componentApi/create-document.d.ts +0 -3
  124. package/dist/types/core/services/componentApi/create-transferInstrument.d.ts +0 -3
  125. package/dist/types/core/services/componentApi/delete-document.d.ts +0 -3
  126. package/dist/types/core/services/componentApi/get-accepted-service-agreement.d.ts +0 -3
  127. package/dist/types/core/services/componentApi/get-document.d.ts +0 -3
  128. package/dist/types/core/services/componentApi/get-provider-status.d.ts +0 -3
  129. package/dist/types/core/services/componentApi/get-service-agreement.d.ts +0 -3
  130. package/dist/types/core/services/componentApi/update-document.d.ts +0 -3
@@ -6,13 +6,14 @@ import type { BaseInnerFormProps } from '../../../../../hooks/useForm/types';
6
6
  import type { TranslationKey } from '../../../../../../types';
7
7
  import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
8
8
  import type { NameSchema } from '../../../../Shared/fields/Name/types';
9
+ import type { TaxInformationFieldSchema } from '../../../../Shared/fields/TaxInformationField/types';
9
10
  import type { ContactDetailsSchema } from '../../../../Shared/forms/ContactDetails/types';
10
11
  import type { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
11
12
  import type { ValidationRuleResults, ValidatorMode } from '../../../../../utils/validation/types';
12
13
  import type { DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema } from '../../../fields/DecisionMakerRole/types';
13
14
  import type { IdentityNumberSchema } from '../../../fields/IdentityNumber/type';
14
15
  import type { AdditionalIdentityInfoSchema } from './Identity/types';
15
- export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema, ContactDetailsSchema {
16
+ export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema, TaxInformationFieldSchema, ContactDetailsSchema {
16
17
  birthDate?: string;
17
18
  residencyCountry?: CountryCode;
18
19
  nationality?: CountryCode;
@@ -2,11 +2,11 @@ import type { ExperimentName } from '../../../../../context/ExperimentContext/ty
2
2
  import type { BooleanSettingName } from '../../../../../context/SettingsContext/types';
3
3
  import type { CountryCode } from '../../../../../core/models/country-code';
4
4
  import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
5
- import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
5
+ import type { IndividualIdNumberType, TaxIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
6
6
  import { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
7
7
  import type { ValidatorRules } from '../../../../../utils/validation/types';
8
8
  import type { PersonalDetailsSchema } from './types';
9
- export declare const personalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, phonePrefix, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, }: {
9
+ export declare const personalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, phonePrefix, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, taxIdNumberType, }: {
10
10
  country: CountryCode;
11
11
  isExperimentEnabled?: (experiment: ExperimentName) => boolean;
12
12
  isSettingEnabled?: (setting: BooleanSettingName) => boolean;
@@ -17,4 +17,5 @@ export declare const personalDetailsValidators: ({ country, isExperimentEnabled,
17
17
  idNumber: string | undefined;
18
18
  existingIdNumber: string | undefined;
19
19
  formVerificationErrors: FormVerificationErrors | undefined;
20
+ taxIdNumberType?: TaxIdNumberType;
20
21
  }) => ValidatorRules<PersonalDetailsSchema>;
@@ -4,7 +4,7 @@ import type { FormRulesParams } from '../../../../core/models/form-rules';
4
4
  import type { IndividualSchema } from './types';
5
5
  export declare const SOLE_PROP_COUNTRIES: CountryCode[];
6
6
  export declare const DECISION_MAKER_TYPES_WITH_JOBTITLE: DecisionMakerType[];
7
- export declare const rules: ({ data, country, taskType, isExperimentEnabled, rootLegalEntity, }: FormRulesParams<IndividualSchema>) => {
7
+ export declare const rules: ({ matchingScenario, data, country, taskType, isExperimentEnabled, rootLegalEntity, }: FormRulesParams<IndividualSchema>) => {
8
8
  isDirectorIdNumberRequiredForCountry: () => "REQUIRED";
9
9
  idNumberRules: () => "OPTIONAL" | "REQUIRED";
10
10
  requiredIfDecisionMakerTask: () => "REQUIRED";
@@ -16,6 +16,7 @@ export declare const rules: ({ data, country, taskType, isExperimentEnabled, roo
16
16
  backPageIfRequiredForDocumentType: () => "REQUIRED";
17
17
  isProofOfResidencyRequired: () => "REQUIRED";
18
18
  isProofOfNationalIdRequired: () => "REQUIRED";
19
+ countryUsesTaxId: () => "REQUIRED";
19
20
  contactsIfRequiredForRole: () => "REQUIRED";
20
21
  requiredIfPhoneScenarioDisabled: () => "REQUIRED";
21
22
  jobTitleIfRequiredForRole: () => "REQUIRED";
@@ -13,7 +13,7 @@ import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/
13
13
  import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
14
14
  import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
15
15
  import type { TrustMember } from '../../../Trust/tasks/TrustMembers/types';
16
- import type { UnincorporatedPartnershipMember } from '../../../UnincorporatedPartnership/UnincorporatedPartnershipMembers/types';
16
+ import type { UnincorporatedPartnershipMember } from '../../../UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types';
17
17
  import type { NomineeDecisionMakerRoleSchema } from '../../fields/DecisionMakerRole/types';
18
18
  import type { IdDocumentUploadSchema } from './IdDocumentUpload/types';
19
19
  import type { IdVerificationMethodSchema } from './IdVerificationMethod/types';
@@ -53,4 +53,4 @@ export interface IndividualDropinProps extends Omit<IndividualProps, 'legalEntit
53
53
  country: CountryCode;
54
54
  onSubmit?(dataSubmitted: IndividualSchema): void;
55
55
  }
56
- export type IndividualDropinApiHandlers = Pick<Required<DropinAPIHandlers>, 'handleCreateDocument' | 'handleGetDocument' | 'handleUpdateDocument' | 'handleUpdateLegalEntity'> & Pick<DropinAPIHandlers, 'handleGetIdVerificationToken' | 'handleAddressSearch' | 'handleFindAddress' | 'handleGetIdVerificationStartCheck' | 'handleOpenSingpassAuthorizationLink'>;
56
+ export type IndividualDropinApiHandlers = Pick<Required<DropinAPIHandlers>, 'handleUpdateLegalEntity'> & Pick<DropinAPIHandlers, 'handleGetIdVerificationToken' | 'handleAddressSearch' | 'handleFindAddress' | 'handleGetIdVerificationStartCheck' | 'handleOpenSingpassAuthorizationLink'>;
@@ -2,13 +2,14 @@ import type { CountryCode } from '../../../../../core/models/country-code';
2
2
  import type { BaseInnerFormProps } from '../../../../../hooks/useForm/types';
3
3
  import type { TranslationKey } from '../../../../../../types';
4
4
  import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
5
+ import type { TaxInformationFieldSchema } from '../../../../Shared/fields/TaxInformationField/types';
5
6
  import type { AddressSchema } from '../../../../Shared/forms/Address/types';
6
7
  import type { TaskTypes } from '../../../../Shared/tasks/TaskList/types';
7
8
  import type { ValidationRuleResults } from '../../../../../utils/validation/types';
8
9
  import type { DropinAPIHandlers } from '../../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
9
10
  import type { IdentityNumberSchema } from '../../../fields/IdentityNumber/type';
10
11
  import type { AdditionalIdentityInfoSchema } from './Identity/Identity.types';
11
- export interface AdditionalPersonalDetailsSchema extends AddressSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema {
12
+ export interface AdditionalPersonalDetailsSchema extends AddressSchema, IdentityNumberSchema, TaxInformationFieldSchema, AdditionalIdentityInfoSchema {
12
13
  birthDate?: string;
13
14
  nationality?: CountryCode;
14
15
  }
@@ -3,11 +3,11 @@ import type { BooleanSettingName } from '../../../../../context/SettingsContext/
3
3
  import type { CountryCode } from '../../../../../core/models/country-code';
4
4
  import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
5
5
  import type { Language } from '../../../../../language/Language';
6
- import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
6
+ import type { IndividualIdNumberType, TaxIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
7
7
  import { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
8
8
  import type { ValidatorRules } from '../../../../../utils/validation/types';
9
9
  import type { AdditionalPersonalDetailsSchema } from './AdditionalPersonalDetails.types';
10
- export declare const additionalPersonalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, i18n, }: {
10
+ export declare const additionalPersonalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, i18n, taxIdNumberType, }: {
11
11
  country: CountryCode;
12
12
  isExperimentEnabled?: (experiment: ExperimentName) => boolean;
13
13
  isSettingEnabled?: (setting: BooleanSettingName) => boolean;
@@ -18,4 +18,5 @@ export declare const additionalPersonalDetailsValidators: ({ country, isExperime
18
18
  existingIdNumber: string | undefined;
19
19
  formVerificationErrors: FormVerificationErrors | undefined;
20
20
  i18n: Language;
21
+ taxIdNumberType?: TaxIdNumberType;
21
22
  }) => ValidatorRules<AdditionalPersonalDetailsSchema>;
@@ -2,7 +2,8 @@ import type { CountryCode } from '../../../../core/models/country-code';
2
2
  import type { FormRulesParams } from '../../../../core/models/form-rules';
3
3
  import type { IndividualOnfidoSchema } from './IndividualOnfido.types';
4
4
  export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
5
- export declare const individualOnfidoRules: ({ data, country, taskType, isExperimentEnabled, rootLegalEntity, }: FormRulesParams<IndividualOnfidoSchema>) => {
5
+ export declare const individualOnfidoRules: ({ matchingScenario, data, country, taskType, isExperimentEnabled, rootLegalEntity, }: FormRulesParams<IndividualOnfidoSchema>) => {
6
+ countryUsesTaxId: () => "REQUIRED";
6
7
  isDirectorIdNumberRequiredForCountry: () => "REQUIRED";
7
8
  idNumberRules: () => "OPTIONAL" | "REQUIRED";
8
9
  requiredIfDecisionMakerTask: () => "REQUIRED";
@@ -52,5 +52,5 @@ export interface IndividualOnfidoDropinProps extends Omit<IndividualOnfidoProps,
52
52
  onSubmit?(dataSubmitted: IndividualOnfidoSchema): void;
53
53
  isInstantVerificationEnabled?: boolean;
54
54
  }
55
- type IndividualOnfidoDropinApiHandlers = Pick<Required<DropinAPIHandlers>, 'handleCreateDocument' | 'handleGetDocument' | 'handleUpdateDocument' | 'handleUpdateLegalEntity'> & Pick<DropinAPIHandlers, 'handleGetIdVerificationToken' | 'handleAddressSearch' | 'handleFindAddress' | 'handleGetIdVerificationStartCheck' | 'handleCreateLegalEntity' | 'handleOpenSingpassAuthorizationLink'>;
55
+ type IndividualOnfidoDropinApiHandlers = Pick<Required<DropinAPIHandlers>, 'handleUpdateLegalEntity'> & Pick<DropinAPIHandlers, 'handleGetIdVerificationToken' | 'handleAddressSearch' | 'handleFindAddress' | 'handleGetIdVerificationStartCheck' | 'handleCreateLegalEntity' | 'handleOpenSingpassAuthorizationLink'>;
56
56
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { IndividualDropinProps } from '../../forms/Individual/types';
2
- export declare function IndividualDropin({ handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleGetIdVerificationStartCheck, handleOpenSingpassAuthorizationLink, taskType, parentLegalEntity, legalEntityResponse, taskName, handleCloseClick, isTargetLegalEntityType, country: parentCountry, capabilities, problems: propProblems, handleUpdateLegalEntity, trustMember, onSubmit: externalOnSubmit, asModal, hideSidebar, handleBackClick: externalBackClick, trustedFields, trustedFieldsProvider, trustedRoles, }: IndividualDropinProps): import("preact/jsx-runtime").JSX.Element;
2
+ export declare function IndividualDropin({ handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleGetIdVerificationStartCheck, handleOpenSingpassAuthorizationLink, taskType, parentLegalEntity, legalEntityResponse, taskName, handleCloseClick, isTargetLegalEntityType, country: parentCountry, capabilities, problems: propProblems, handleUpdateLegalEntity, trustMember, onSubmit: externalOnSubmit, asModal, hideSidebar, handleBackClick: externalBackClick, trustedFields, trustedFieldsProvider, trustedRoles, }: IndividualDropinProps): import("preact/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { IndividualOnfidoDropinProps } from '../../forms/IndividualOnfido/IndividualOnfido.types';
2
- export declare function IndividualOnfidoDropin({ handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleUpdateLegalEntity, handleCreateDocument, handleUpdateDocument, handleGetDocument, handleGetIdVerificationStartCheck, taskType, parentLegalEntity, legalEntityResponse, taskName, handleCloseClick, isTargetLegalEntityType, country: parentCountry, capabilities, problems: propProblems, onSubmit: externalOnSubmit, asModal, hideSidebar, handleBackClick: externalBackClick, trustedFields, trustedFieldsProvider, trustedRoles, isInstantVerificationEnabled, }: Readonly<IndividualOnfidoDropinProps>): import("preact/jsx-runtime").JSX.Element;
2
+ export declare function IndividualOnfidoDropin({ handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleUpdateLegalEntity, handleGetIdVerificationStartCheck, taskType, parentLegalEntity, legalEntityResponse, taskName, handleCloseClick, isTargetLegalEntityType, country: parentCountry, capabilities, problems: propProblems, onSubmit: externalOnSubmit, asModal, hideSidebar, handleBackClick: externalBackClick, trustedFields, trustedFieldsProvider, trustedRoles, isInstantVerificationEnabled, }: Readonly<IndividualOnfidoDropinProps>): import("preact/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './FormNavigation.scss';
2
2
  import type { FormNavigationProps } from './types';
3
- export declare function FormNavigation({ forms, activeForm, gotoForm, validateForm, className, taskName, verificationErrors, trackNavigation, }: FormNavigationProps): import("preact/jsx-runtime").JSX.Element;
3
+ export declare function FormNavigation({ forms, activeForm, gotoForm, validateForm, className, taskName, verificationErrors, trackNavigation, }: Readonly<FormNavigationProps>): import("preact/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import './Summary.scss';
2
+ import type { JSX } from 'preact';
2
3
  import type { TopLevelDataSchema } from '../../../context/StateContext/types';
3
4
  import type { FormModel } from '../../../core/models/form';
4
5
  import type { SummaryProps } from './types';
5
6
  export declare const summaryStep: FormModel;
6
- export declare function Summary<TLDS extends TopLevelDataSchema>({ data, forms, gotoForm, labels, problems, trackNavigation, omitted, showFormHeader, showSectionHeader, showLegalCaption, showTaxExemptedLegalCaption, }: SummaryProps<TLDS>): import("preact/jsx-runtime").JSX.Element;
7
+ export declare function Summary<TLDS extends TopLevelDataSchema>({ data, forms, gotoForm, labels, problems, trackNavigation, omitted, showFormHeader, showSectionHeader, showLegalCaption, showTaxExemptedLegalCaption, }: SummaryProps<TLDS>): JSX.Element;
@@ -15,7 +15,7 @@ interface PropsWithTaxIdExemption {
15
15
  }
16
16
  type TaxIdNumberTypeSelectorProps = {
17
17
  country: CountryCode;
18
- companyType?: CompanyTypesValue | LegalEntityType.TRUST;
18
+ companyType?: CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL;
19
19
  isUsSoleProp?: boolean;
20
20
  } & (PropsWithNoExemption | PropsWithTaxIdExemption);
21
21
  export declare function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOption, isUsSoleProp, }: TaxIdNumberTypeSelectorProps): import("preact/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
2
- import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
2
+ import { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
3
3
  import type { CountryCode } from '../../../../core/models/country-code';
4
4
  import type { TranslationKey } from '../../../../../types';
5
5
  export interface CompanyRegistrationNumberOption {
@@ -14,7 +14,7 @@ export interface IndividualIdNumberOption {
14
14
  export interface TaxIdNumberOption {
15
15
  id: string;
16
16
  name: TranslationKey;
17
- applicableOnlyFor?: ReadonlyArray<CompanyTypesValue | LegalEntityType.TRUST>;
17
+ applicableOnlyFor?: ReadonlyArray<CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL>;
18
18
  }
19
19
  export interface VatNumberOption {
20
20
  id: string;
@@ -67,7 +67,7 @@ export declare const companyRegistrationNumberOptions: {
67
67
  }, {
68
68
  readonly id: "mcRegistrationNumber";
69
69
  readonly name: "mcRegistrationNumber";
70
- readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
70
+ readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
71
71
  }];
72
72
  readonly NZ: readonly [{
73
73
  readonly id: "NZBN";
@@ -78,11 +78,11 @@ export declare const companyRegistrationNumberOptions: {
78
78
  readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.PUBLIC_COMPANY, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
79
79
  }];
80
80
  readonly RO: readonly [{
81
- readonly id: "roRegNumberOldFormat";
82
- readonly name: "roRegNumberOldFormat_label";
83
- }, {
84
81
  readonly id: "roRegNumberNewFormat";
85
82
  readonly name: "roRegNumberNewFormat_label";
83
+ }, {
84
+ readonly id: "roRegNumberOldFormat";
85
+ readonly name: "roRegNumberOldFormat_label";
86
86
  }];
87
87
  readonly PL: readonly [{
88
88
  readonly id: "regon";
@@ -98,7 +98,7 @@ export declare const companyRegistrationNumberOptions: {
98
98
  }, {
99
99
  readonly id: "companyNumber";
100
100
  readonly name: "companyNumber";
101
- readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
101
+ readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
102
102
  }];
103
103
  };
104
104
  export declare const getCompanyRegistrationNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | "trust" | undefined) => readonly CompanyRegistrationNumberOption[] | undefined;
@@ -194,7 +194,12 @@ export declare const taxIdNumberOptions: {
194
194
  }];
195
195
  readonly NL: readonly [{
196
196
  readonly id: "RSIN";
197
- readonly name: "taxInformationNumber__NL";
197
+ readonly name: "rsinNumber";
198
+ readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
199
+ }, {
200
+ readonly id: "BSN";
201
+ readonly name: "bsnNumber";
202
+ readonly applicableOnlyFor: readonly [LegalEntityType.INDIVIDUAL];
198
203
  }];
199
204
  readonly NZ: readonly [{
200
205
  readonly id: "IRD";
@@ -214,6 +219,10 @@ export declare const taxIdNumberOptions: {
214
219
  readonly GB: readonly [{
215
220
  readonly id: "UTR";
216
221
  readonly name: "utr";
222
+ }, {
223
+ readonly id: "NINO";
224
+ readonly name: "ninoNumber";
225
+ readonly applicableOnlyFor: readonly [LegalEntityType.INDIVIDUAL];
217
226
  }];
218
227
  readonly US: readonly [{
219
228
  readonly id: "EIN";
@@ -364,7 +373,7 @@ export declare const vatNumberOptions: {
364
373
  readonly name: "vatRegistrationNumber";
365
374
  }];
366
375
  };
367
- export declare const getTaxIdNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => readonly TaxIdNumberOption[] | undefined;
376
+ export declare const getTaxIdNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL | undefined) => readonly TaxIdNumberOption[] | undefined;
368
377
  export declare const getVatNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => readonly VatNumberOption[] | undefined;
369
378
  export type TaxIdNumberType = (typeof taxIdNumberOptions)[keyof typeof taxIdNumberOptions][number]['id'];
370
379
  export type VatNumberType = (typeof vatNumberOptions)[keyof typeof vatNumberOptions][number]['id'];
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This utility file contains functions for handling tax information across different entity types.
3
+ * It provides functionality to find existing tax information and determine default tax ID number types
4
+ * based on country and entity type.
5
+ */
6
+ import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
7
+ import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
8
+ import type { TaxInformation } from '../../../../core/models/api/organization';
9
+ import type { CountryCode } from '../../../../core/models/country-code';
10
+ import type { TaxIdNumberType } from './countryIdNumberTypes';
11
+ /**
12
+ * Finds tax information for a specific country from an array of tax information objects.
13
+ *
14
+ * @param taxInformation - Array of tax information objects to search through
15
+ * @param country - Country code to find tax information for
16
+ * @returns The first matching tax information object or undefined if none found
17
+ */
18
+ export declare function findExistingTaxInformation(taxInformation: TaxInformation[] | undefined, country: CountryCode): TaxInformation | undefined;
19
+ /**
20
+ * Determines the default tax ID number type based on existing information and entity type.
21
+ * This function follows a priority order:
22
+ * 1. Use the type from existing tax information if available
23
+ * 2. If there's a tax number but no type, infer the type from the number
24
+ * 3. Otherwise, use the first available tax ID option for the country and entity type
25
+ *
26
+ * @param taxInformation - Array of tax information objects
27
+ * @param country - Country code to determine the tax ID type for
28
+ * @param entityType - Type of entity (company type or individual)
29
+ * @returns The determined tax ID number type or undefined if none can be determined
30
+ */
31
+ export declare function getDefaultTaxIdNumberType(taxInformation: TaxInformation[] | undefined, country: CountryCode, entityType: CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL | undefined): TaxIdNumberType | undefined;
@@ -11,4 +11,4 @@ import type { TaxIdNumberType } from './countryIdNumberTypes';
11
11
  * @param country the country of the LE
12
12
  * @param companyType the company type, e.g. `nonProfit`
13
13
  */
14
- export declare const inferTaxIdNumberType: (taxInformation: TaxInformation[] | undefined, country: CountryCode, companyType?: CompanyTypesValue | LegalEntityType.TRUST) => TaxIdNumberType | undefined;
14
+ export declare const inferTaxIdNumberType: (taxInformation: TaxInformation[] | undefined, country: CountryCode, companyType?: CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL) => TaxIdNumberType | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
2
2
  export interface NumberOfEmployeesFieldSchema {
3
- numberOfEmployees: number;
3
+ numberOfEmployees?: number;
4
4
  }
5
5
  export type NumberOfEmployeesFieldProps = BaseFormFieldProps<NumberOfEmployeesFieldSchema>;
@@ -1,10 +1,10 @@
1
1
  import { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
2
- import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
2
+ import { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
3
3
  import type { FieldMetadata, PerCountryFieldConfig } from '../../../../core/models/field-configurations';
4
4
  import type { TaxIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
5
5
  import type { TaxInformationFieldSchema } from './types';
6
6
  export interface FieldConfigParams {
7
- companyType?: CompanyTypesValue | LegalEntityType.TRUST;
7
+ companyType?: CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL;
8
8
  taxIdNumberType?: TaxIdNumberType;
9
9
  }
10
10
  export declare const defaultFieldMetadata: FieldMetadata<TaxInformationFieldSchema, 'taxInformation'>;
@@ -16,6 +16,6 @@ export interface TaxInformationFieldProps extends BaseFormFieldProps<TaxInformat
16
16
  canExempt: boolean;
17
17
  taxIdNumberType: TaxIdNumberType | undefined;
18
18
  setTaxIdNumberType: Dispatch<StateUpdater<TaxIdNumberType | undefined>>;
19
- companyType?: CompanyTypesValue | LegalEntityType.TRUST;
19
+ companyType?: CompanyTypesValue | LegalEntityType.TRUST | LegalEntityType.INDIVIDUAL;
20
20
  registrationNumber?: string;
21
21
  }