@adyen/kyc-components 3.79.0 → 3.80.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-B8gq2Lvn.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
- package/dist/{AccountSetupRejected-Dn6x3lE8.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
- package/dist/{Avatar-Bm0Eluxy.js → Avatar-5RObc8Yd.js} +2 -2
- package/dist/{BusinessDetailsDropin-6TJzQW0O.js → BusinessDetailsDropin-O92NE-y1.js} +115 -139
- package/dist/{BusinessFinancingComponent-BxskEwQc.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
- package/dist/{BusinessFinancingDropin-BaeVc8F6.js → BusinessFinancingDropin-Bhg9neRS.js} +97 -71
- package/dist/{BusinessFinancingPage-CccBeSjZ.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DrKCAdaG.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
- package/dist/{ContractViewer-BaJ-kFmY.js → ContractViewer-DBW5C6kA.js} +2 -2
- package/dist/{CreateIndividualComponent-Bmv5Nc35.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-DF7SwTtr.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
- package/dist/{CustomerSupport-CzH1nyXW.js → CustomerSupport-rSYElbVr.js} +10 -10
- package/dist/{DebugModal-DMkdmfMV.js → DebugModal-BTr0idCC.js} +12 -226
- package/dist/{DecisionMakerDetailsPage-DHLdTCf3.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
- package/dist/DecisionMakers-C2awPhE6.js +478 -0
- package/dist/{EmbeddedStatus-DaBZ91oA.js → EmbeddedStatus-COKtxNW-.js} +13 -13
- package/dist/{FormEndState-BBMSuQj7.js → FormEndState-BmDRa3zJ.js} +4 -3
- package/dist/{FormFlow-C1DKb0gA.js → FormFlow-CNxGh4Yu.js} +3 -3
- package/dist/{IndividualOnfidoDropin-CCbwDQ42.js → IndividualOnfidoDropin-DUzjucM9.js} +204 -184
- package/dist/{Introduction-DL4JlCU3.js → Introduction-BEM_wmkj.js} +24 -26
- package/dist/{ProviderButton-CdJCw-d-.js → LandingLayout-DyY0Exht.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-CXw76qYP.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
- package/dist/{ManageIndividualComponent-DFrxvq1V.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-Dd674r5F.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-Dcc94EKJ.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
- package/dist/{OnboardingDropinComponent-CO8-GF4E.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
- package/dist/{Review-C9xcGO-O.js → Review-C4HOjR6y.js} +11 -11
- package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
- package/dist/{RootIndividualDetailsPage-DhUMpzGa.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
- package/dist/{SignPCIComponent-uHRS64Oo.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
- package/dist/{SingpassSelection-bOy5WFTO.js → SingpassSelection-BJNZw1u-.js} +11 -11
- package/dist/{SoleProprietorshipPage-BE8Mjhjp.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
- package/dist/{SourceOfFundsPage-C-BTd1Ar.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
- package/dist/{StoreProvider-Bw9Xi_Q5.js → StoreProvider-DhQ4sdLg.js} +5799 -5422
- package/dist/{TaskItemStatus-DqghzBaZ.js → TaskItemStatus-Cxcag2AH.js} +23 -23
- package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
- package/dist/{TaxReportingDropin-CmJT82Aj.js → TaxReportingDropin-CbDYoO31.js} +8 -7
- package/dist/{TileGroup-DP6CW2Ya.js → TileGroup-BkLtnLiA.js} +2 -2
- package/dist/{TrustDetailsPage-F-XzAJKt.js → TrustDetailsPage-DktRQRum.js} +38 -14
- package/dist/{TrustMemberCompanyPage-C0U5PbAW.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
- package/dist/{TrustMemberIndividualPage-C_rRPUgX.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-B0B2hFV8.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CdWmnqg-.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
- package/dist/{VerificationErrorAlert-BmrZdkgs.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-DqTteba3.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
- package/dist/adyen-business-financing.js +8 -12
- package/dist/adyen-individual.js +6 -4
- package/dist/adyen-kyc-components.js +143 -124
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +3 -3
- package/dist/adyen-manage-transfer-instruments.js +3 -3
- package/dist/adyen-onboarding.js +14 -6
- package/dist/adyen-terms-of-service.js +18 -6
- package/dist/adyen-transfer-instrument.js +10 -6
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bag-DpxmyXfR.js +14 -0
- package/dist/business-lines-DboUCbXw.js +135 -0
- package/dist/decision-makers-group-CgddXgrx.js +1944 -0
- package/dist/en-US-CQ3angjM.js +22 -0
- package/dist/{getFieldsWithExistingData-xJPsn2JE.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
- package/dist/{hasDataChanged-BQeJUDMz.js → hasDataChanged-DK74H0sZ.js} +2 -2
- package/dist/{localizeDateString-B3Zc2Aep.js → localizeDateString-C34eXZqY.js} +2 -2
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-Dn-CfyG6.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/{resolveEnvironment-BFUUd4tv.js → resolveEnvironment-rJv_NJF_.js} +3 -3
- package/dist/{rules-C7Cw2XXc.js → rules-OP83mdq4.js} +13 -13
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +218 -181
- package/dist/styles-CLV89_hH.js +218 -181
- package/dist/terminal-1-ewywjFJI.js +18 -0
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
- package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
- package/dist/types/components/Business/forms/rules.d.ts +26 -8
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
- package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
- package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
- package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +49 -37
- package/dist/types/context/SettingsContext/types.d.ts +24 -24
- package/dist/types/core/models/api/company-types-value.d.ts +12 -11
- package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
- package/dist/types/core/models/api/entity-type.d.ts +5 -4
- package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
- package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
- package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
- package/dist/types/core/models/api/verification-error.d.ts +8 -7
- package/dist/types/core/models/api/verification-status.d.ts +7 -6
- package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
- package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
- package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
- package/dist/types/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/Language.d.ts +1 -0
- package/dist/types/language/utils.d.ts +11 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
- package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
- package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
- package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
- package/dist/types/types/datasets/country-code.d.ts +249 -249
- package/dist/types/types/datasets/currency.d.ts +25 -25
- package/dist/types/types/datasets/province-code.d.ts +46 -46
- package/dist/types/types/datasets/state-code.d.ts +84 -84
- package/dist/types/types/errors/entity-problems.d.ts +3 -4
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +3 -3
- package/dist/types/utils/decisionMaker.d.ts +4 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
- package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/regex/patternValidators.d.ts +1 -0
- package/dist/types/utils/roleMetadata.d.ts +3 -3
- package/dist/types/utils/translation.d.ts +40 -0
- package/dist/{useMultiForm-CR4hzuCc.js → useMultiForm-ChxUZ4e7.js} +10 -5
- package/dist/{useOnboardingStatus-Dqs20dD8.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BTFnYGYb.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
- package/dist/{useUpdateLegalEntity-DZmx_k0Y.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
- package/dist/{utils-Dbw9j-fF.js → utils-DmcbDJEd.js} +17 -17
- package/dist/{validate-PXGKct7b.js → validate-B2VmmEPC.js} +2 -2
- package/dist/{validate-sqPOCY2c.js → validate-D66zPhDG.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +5 -30
- package/dist/DecisionMakers-DD4_MCdo.js +0 -217
- package/dist/LandingLayout-CYvWj-yQ.js +0 -139
- package/dist/ManagePCIComponent-DOrKClpc.js +0 -33
- package/dist/RootBusinessDetailsPage-CO4mL-OT.js +0 -42
- package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -62
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
- package/dist/css-BhF49TbR.js +0 -24
- package/dist/json-CYfI6iyy.js +0 -31
- package/dist/plaintext-DqowNgbq.js +0 -17
- package/dist/preact/adyen-individual.js +0 -15
- package/dist/preact/adyen-manage-individual.js +0 -15
- package/dist/preact/adyen-terms-of-service.js +0 -16
- package/dist/preact/adyen-transfer-instrument.js +0 -16
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
- package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
- package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
- package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
- package/dist/useSalesChannelsSettings-CLSu5OoN.js +0 -51
- package/dist/view-verification-status-DTkA8PtO.js +0 -20
- package/dist/vue/adyen-individual.js +0 -53
- package/dist/vue/adyen-manage-individual.js +0 -56
- package/dist/vue/adyen-terms-of-service.js +0 -28
- package/dist/vue/adyen-transfer-instrument.js +0 -30
- package/dist/yaml-tUhjVy56.js +0 -22
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "568f38d4-4370-4d6b-8541-c1ba74d377db", e._sentryDebugIdIdentifier = "sentry-dbid-568f38d4-4370-4d6b-8541-c1ba74d377db");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-
|
|
15
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
16
|
-
import { u as useSingpassMyInfoLogin,
|
|
17
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
18
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
19
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
20
|
-
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-
|
|
12
|
+
import { a as useApiContext, bp as useMutation, t as httpPost, bX as matchesRegex, bY as trimValWithOneSpace, bZ as NO_ALPHABET_REGEX, b_ as EMOJI_REGEX, b$ as hasRepeatedCharacters, c0 as isInvalidName, c1 as INDIVIDUAL_VALID_CHAR_REGEX, c2 as getFormattingRegEx, c3 as SPECIAL_CHARS, c4 as standardKatakanaValidator, c5 as standardKanjiValidator, av as resolveFieldMetadata, as as CountryCodes, c6 as getSSNType, at as isEmpty, c7 as defaultFieldMetadata, c8 as defaultFieldConfig, c9 as defaultFieldMetadata$1, ca as fieldConfig, $ as TaskTypes, cb as taxInformationDefaultFieldMetadata, O as LegalEntityTypes, cc as taxInformationDefaultFieldConfig, cd as getAgeToday, ce as euCountries, cf as getIdDocument, cg as getDocument, ch as mapExistingFile, ci as getPageName, cj as getLocalizedIdDocumentTypeOptions, ck as getPage, cl as createDocumentRequest, bA as formatObject, cm as individualApiKeyMapping, b7 as individualComponentsKeyMapping, bz as reverseMapping, cn as getNomineeFromAssociation, co as drop, a0 as createLogger, X as useAccountHolder, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, v as useSettingsContext, cp as documentApiUtils, cq as useProviderStatus, g as getLegalEntityCountry, bP as getAssociatedLeAnalyticsPayload, cr as addressValidators, cs as getAsyncIdNumberValidationRule, ct as getAsyncPhoneValidationRules, cu as addressFormatters, cv as useScenarios, cw as setHasMotionCaptureScenario, cx as useScenarioConfiguration, cy as getPropsFromConfigurations, cz as individualForms, cA as showIndividualMotionCapture, bQ as getRequiredForms, bR as addValidityToForms, cB as getAllowedDecisionMakerRoles, ba as datasetUtilities, bS as useFormComposer, bT as trackNavigation, cC as Individual, cD as composePerScenarioFormConfigurations, cE as omitObscuredFieldsIfUnchanged, cF as filterOutUnwantedAssociationsIfRootLE, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError, bk as cloneObject, cG as mapAddressLabels, cH as individualDocumentForms, cI as individualDocumentMapping, cJ as individualObscuredFields, cK as mergeAttachments, cL as getFileExtention, ao as getOwnEntityAssociations, cM as hasNomineesChanged, cN as attachNomineeToRole, cO as idVerificationProviderId, cP as doArraysMatch, N as Typography, G as Button, aD as Field, cQ as DecisionMakerTypes, cR as createFormRules, cS as getAvailableDecisionMakerRoleTypes, cT as allowedCountriesForNominee, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, cU as Scenarios, cV as isLowRiskCountry, bu as Select, cW as isTruthyValidator, cX as licenseCardNumberDefaultMetadata, cY as licenseCardNumberDefaultConfig, au as mergeFieldMetadataIntoProps, c as useTranslation, aC as createFormUtils, bK as useFormContext, az as getFieldProps, cZ as idNumberFields, c_ as IdentityNumber, c$ as additionallIdNumberOptions, d0 as MaskedInput, bJ as InputDate, d1 as formatDateObj, d2 as DriversLicense, d3 as addressFields, b as useAllowedCountries, w as SettingNames, F as FormHeader, aB as ErrorPanel, aJ as CountryField, bN as Address, bO as getAddressSchemaLabelsByCountry, bD as Link, bi as Confirm, d4 as getAgeRangeForLegalRepresentative, d5 as IndividualIdNumberTypeSelector, d6 as TaxInformationField, bE as InputText, d7 as PatriotActDisclosure, d8 as isLegalRepresentativeNeeded, aA as nameFields, d9 as decisionMakerRoleFields, da as nomineeFields, db as contactDetailFields, K as Alert, aZ as ContextGuidance, b4 as TrustedFieldsProviders, dc as DecisionMakerRole, dd as NomineeDecisionMakerRole, de as LocalizedNameFields, df as ContactDetails, dg as keysOf, b3 as objectsDeepEqual, dh as isEmpty$1, di as RadioWithLabel, dj as listToRecord, bc as Modal, dk as pick, dl as IdVerification, bh as Spacer, a2 as IconButton, e as useDataset, f as datasetIdentifier, L as Loader, H as Svg, dm as isPersonUnderAge, dn as IdDocumentManualUpload, M as translateStringOrObject, aX as Trans, dp as idDocumentUploadFields, dq as useFormRouterContext, dr as getFormProps, ds as useCapabilities, dt as hasMotionCaptureScenario, du as setShowIndividualMotionCapture, dv as shouldShowMotionCapture, dw as MemoizedProofOfRelationship, dx as MemoizedDocumentUpload, dy as MemoizedProofOfResidencyUpload, dz as individualOnfidoApiKeyMapping, dA as individualOnfidoBaseMapping, br as useQueryClient, dB as individualOnfidoDocumentMapping, dC as individualOnfidoObscuredFields } from "./StoreProvider-DhQ4sdLg.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-LE_Kt3am.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-D66zPhDG.js";
|
|
15
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CNxGh4Yu.js";
|
|
16
|
+
import { u as useSingpassMyInfoLogin, L as LandingLayout } from "./LandingLayout-DyY0Exht.js";
|
|
17
|
+
import { u as useMultiForm } from "./useMultiForm-ChxUZ4e7.js";
|
|
18
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BS9W6RQp.js";
|
|
19
|
+
import { l as localizeDateString } from "./localizeDateString-C34eXZqY.js";
|
|
20
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-OP83mdq4.js";
|
|
21
21
|
import { signal, computed } from "@preact/signals";
|
|
22
|
-
import { T as TileGroup } from "./TileGroup-
|
|
22
|
+
import { T as TileGroup } from "./TileGroup-BkLtnLiA.js";
|
|
23
23
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
24
24
|
return await httpPost(
|
|
25
25
|
{
|
|
@@ -184,7 +184,7 @@ const personalDetailsValidators = ({
|
|
|
184
184
|
taxInformationDefaultFieldConfig[country],
|
|
185
185
|
{
|
|
186
186
|
taxIdNumberType,
|
|
187
|
-
companyType:
|
|
187
|
+
companyType: LegalEntityTypes.INDIVIDUAL
|
|
188
188
|
},
|
|
189
189
|
taxInformationDefaultFieldMetadata
|
|
190
190
|
)?.validators,
|
|
@@ -374,7 +374,7 @@ const mapIndividualToLegalEntity = (data) => {
|
|
|
374
374
|
const requestObj = {
|
|
375
375
|
...formatObject(data, individualApiKeyMapping)
|
|
376
376
|
};
|
|
377
|
-
requestObj.type =
|
|
377
|
+
requestObj.type = LegalEntityTypes.INDIVIDUAL;
|
|
378
378
|
const { personalDetails } = data;
|
|
379
379
|
if (!personalDetails) return requestObj;
|
|
380
380
|
requestObj.individual.identificationData = adjustIdentificationData(
|
|
@@ -806,7 +806,7 @@ function IndividualDropin({
|
|
|
806
806
|
useEffect(() => {
|
|
807
807
|
setCountry(data?.personalDetails?.residencyCountry ?? parentCountry);
|
|
808
808
|
}, [data?.personalDetails?.residencyCountry, parentCountry]);
|
|
809
|
-
const { data: scenarios } = useScenarios(country,
|
|
809
|
+
const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
|
|
810
810
|
useEffect(() => {
|
|
811
811
|
if (!scenarios) return;
|
|
812
812
|
setHasMotionCaptureScenario(scenarios);
|
|
@@ -814,7 +814,7 @@ function IndividualDropin({
|
|
|
814
814
|
}, [scenarios]);
|
|
815
815
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
816
816
|
parseConfiguration: parseConfiguration$1,
|
|
817
|
-
legalEntityType:
|
|
817
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
818
818
|
setLoadingStatus,
|
|
819
819
|
country
|
|
820
820
|
});
|
|
@@ -902,7 +902,7 @@ function IndividualDropin({
|
|
|
902
902
|
}).catch(() => {
|
|
903
903
|
showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
|
|
904
904
|
});
|
|
905
|
-
}, []);
|
|
905
|
+
}, [legalEntityResponse]);
|
|
906
906
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
907
907
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
908
908
|
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
|
|
@@ -1317,7 +1317,7 @@ const additionalPersonalDetailsValidators = ({
|
|
|
1317
1317
|
taxInformationDefaultFieldConfig[country],
|
|
1318
1318
|
{
|
|
1319
1319
|
taxIdNumberType,
|
|
1320
|
-
companyType:
|
|
1320
|
+
companyType: LegalEntityTypes.INDIVIDUAL
|
|
1321
1321
|
},
|
|
1322
1322
|
taxInformationDefaultFieldMetadata
|
|
1323
1323
|
)?.validators,
|
|
@@ -1363,15 +1363,14 @@ const basicDetailsValidators = ({
|
|
|
1363
1363
|
});
|
|
1364
1364
|
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
1365
1365
|
const options = "adyen-kyc-options";
|
|
1366
|
-
const styles$
|
|
1366
|
+
const styles$4 = {
|
|
1367
1367
|
guidanceQuestion,
|
|
1368
1368
|
options
|
|
1369
1369
|
};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
})(GuidanceQuestionValues || {});
|
|
1370
|
+
const GuidanceQuestionValues = {
|
|
1371
|
+
YES: "Yes",
|
|
1372
|
+
NO: "No"
|
|
1373
|
+
};
|
|
1375
1374
|
const GuidanceQuestion = (props) => {
|
|
1376
1375
|
const {
|
|
1377
1376
|
descriptionLinkText,
|
|
@@ -1397,10 +1396,10 @@ const GuidanceQuestion = (props) => {
|
|
|
1397
1396
|
};
|
|
1398
1397
|
const yesTileLabel = yesLabel ?? i18n.get("yes");
|
|
1399
1398
|
const noTileLabel = noLabel ?? i18n.get("no");
|
|
1400
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1399
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.guidanceQuestion, children: [
|
|
1401
1400
|
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
|
|
1402
1401
|
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
|
|
1403
|
-
/* @__PURE__ */ jsx(Field, { name, className: styles$
|
|
1402
|
+
/* @__PURE__ */ jsx(Field, { name, className: styles$4.options, children: () => /* @__PURE__ */ jsx(
|
|
1404
1403
|
TileGroup,
|
|
1405
1404
|
{
|
|
1406
1405
|
allowMultiple: false,
|
|
@@ -1411,16 +1410,8 @@ const GuidanceQuestion = (props) => {
|
|
|
1411
1410
|
onChange: handleChange,
|
|
1412
1411
|
selected: value || "",
|
|
1413
1412
|
tiles: [
|
|
1414
|
-
{
|
|
1415
|
-
|
|
1416
|
-
value: "Yes"
|
|
1417
|
-
/* YES */
|
|
1418
|
-
},
|
|
1419
|
-
{
|
|
1420
|
-
label: noTileLabel,
|
|
1421
|
-
value: "No"
|
|
1422
|
-
/* NO */
|
|
1423
|
-
}
|
|
1413
|
+
{ label: yesTileLabel, value: GuidanceQuestionValues.YES },
|
|
1414
|
+
{ label: noTileLabel, value: GuidanceQuestionValues.NO }
|
|
1424
1415
|
]
|
|
1425
1416
|
}
|
|
1426
1417
|
) })
|
|
@@ -1438,19 +1429,19 @@ const calculateRoles = (data) => {
|
|
|
1438
1429
|
const roleMappings = [
|
|
1439
1430
|
{
|
|
1440
1431
|
isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
|
|
1441
|
-
role:
|
|
1432
|
+
role: DecisionMakerTypes.SIGNATORY
|
|
1442
1433
|
},
|
|
1443
1434
|
{
|
|
1444
1435
|
isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
|
|
1445
|
-
role:
|
|
1436
|
+
role: DecisionMakerTypes.OWNER
|
|
1446
1437
|
},
|
|
1447
1438
|
{
|
|
1448
1439
|
isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
|
|
1449
|
-
role:
|
|
1440
|
+
role: DecisionMakerTypes.CONTROLLING_PERSON
|
|
1450
1441
|
},
|
|
1451
1442
|
{
|
|
1452
1443
|
isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
|
|
1453
|
-
role:
|
|
1444
|
+
role: DecisionMakerTypes.DIRECTOR
|
|
1454
1445
|
}
|
|
1455
1446
|
];
|
|
1456
1447
|
return roleMappings.filter(({ isApplicable }) => isApplicable).map(({ role }) => role);
|
|
@@ -1490,8 +1481,8 @@ const TAX_ID_REQUIRED_COUNTRIES = [
|
|
|
1490
1481
|
CountryCodes.France
|
|
1491
1482
|
];
|
|
1492
1483
|
const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
|
|
1493
|
-
|
|
1494
|
-
|
|
1484
|
+
DecisionMakerTypes.SIGNATORY,
|
|
1485
|
+
DecisionMakerTypes.CONTROLLING_PERSON
|
|
1495
1486
|
];
|
|
1496
1487
|
const ID_MISSING_DATA_ERROR_CODE = "2_8071";
|
|
1497
1488
|
const individualOnfidoRules = ({
|
|
@@ -1513,10 +1504,10 @@ const individualOnfidoRules = ({
|
|
|
1513
1504
|
if (!data.basicDetails?.role) {
|
|
1514
1505
|
return REQUIRED;
|
|
1515
1506
|
}
|
|
1516
|
-
if (data.basicDetails?.role?.some((role) => role !==
|
|
1507
|
+
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
|
|
1517
1508
|
return REQUIRED;
|
|
1518
1509
|
}
|
|
1519
|
-
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role ===
|
|
1510
|
+
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
|
|
1520
1511
|
return REQUIRED;
|
|
1521
1512
|
}
|
|
1522
1513
|
},
|
|
@@ -1527,13 +1518,13 @@ const individualOnfidoRules = ({
|
|
|
1527
1518
|
if (!data.basicDetails?.role) {
|
|
1528
1519
|
return REQUIRED;
|
|
1529
1520
|
}
|
|
1530
|
-
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role ===
|
|
1521
|
+
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
1531
1522
|
return void 0;
|
|
1532
1523
|
}
|
|
1533
|
-
if (data.basicDetails?.role?.some((role) => role !==
|
|
1524
|
+
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
|
|
1534
1525
|
return REQUIRED;
|
|
1535
1526
|
}
|
|
1536
|
-
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role ===
|
|
1527
|
+
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
|
|
1537
1528
|
return REQUIRED;
|
|
1538
1529
|
}
|
|
1539
1530
|
},
|
|
@@ -1546,7 +1537,7 @@ const individualOnfidoRules = ({
|
|
|
1546
1537
|
if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO)) {
|
|
1547
1538
|
return void 0;
|
|
1548
1539
|
}
|
|
1549
|
-
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role ===
|
|
1540
|
+
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
1550
1541
|
return void 0;
|
|
1551
1542
|
}
|
|
1552
1543
|
if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) {
|
|
@@ -1567,6 +1558,9 @@ const individualOnfidoRules = ({
|
|
|
1567
1558
|
if (data.proofOfResidency?.proofOfResidency?.length) {
|
|
1568
1559
|
return REQUIRED;
|
|
1569
1560
|
}
|
|
1561
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1562
|
+
return void 0;
|
|
1563
|
+
}
|
|
1570
1564
|
const isInstantFlow = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
|
|
1571
1565
|
if (!isInstantFlow) {
|
|
1572
1566
|
return void 0;
|
|
@@ -1587,9 +1581,15 @@ const individualOnfidoRules = ({
|
|
|
1587
1581
|
return REQUIRED;
|
|
1588
1582
|
}
|
|
1589
1583
|
},
|
|
1584
|
+
isIdVerificationMethodRequired: () => {
|
|
1585
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1586
|
+
return void 0;
|
|
1587
|
+
}
|
|
1588
|
+
return REQUIRED;
|
|
1589
|
+
},
|
|
1590
1590
|
contactsIfRequiredForRole: () => {
|
|
1591
1591
|
if (taskType === TaskTypes.DECISION_MAKER) {
|
|
1592
|
-
if (data.basicDetails?.role?.includes(
|
|
1592
|
+
if (data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY)) {
|
|
1593
1593
|
return REQUIRED;
|
|
1594
1594
|
}
|
|
1595
1595
|
return;
|
|
@@ -1605,7 +1605,15 @@ const individualOnfidoRules = ({
|
|
|
1605
1605
|
return REQUIRED;
|
|
1606
1606
|
}
|
|
1607
1607
|
},
|
|
1608
|
+
isPlaceOfBirthRequired: () => {
|
|
1609
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1610
|
+
return REQUIRED;
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1608
1613
|
nationalityIfRequiredForRole: () => {
|
|
1614
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1615
|
+
return REQUIRED;
|
|
1616
|
+
}
|
|
1609
1617
|
const enableNationalitySGHK = isExperimentEnabled("EnableNationalitySGHK");
|
|
1610
1618
|
const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
|
|
1611
1619
|
if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) {
|
|
@@ -1659,12 +1667,12 @@ const individualOnfidoRules = ({
|
|
|
1659
1667
|
return addressSchema.includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
|
|
1660
1668
|
},
|
|
1661
1669
|
nomineeDirectorRequiredForCountry: () => {
|
|
1662
|
-
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(
|
|
1670
|
+
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) {
|
|
1663
1671
|
return "REQUIRED";
|
|
1664
1672
|
}
|
|
1665
1673
|
},
|
|
1666
1674
|
nomineeShareHolderRequiredForCountry: () => {
|
|
1667
|
-
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(
|
|
1675
|
+
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.OWNER)) {
|
|
1668
1676
|
return "REQUIRED";
|
|
1669
1677
|
}
|
|
1670
1678
|
},
|
|
@@ -1706,9 +1714,9 @@ const individualOnfidoRules = ({
|
|
|
1706
1714
|
}
|
|
1707
1715
|
},
|
|
1708
1716
|
isDirectorRequiredForCountry: () => {
|
|
1709
|
-
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country);
|
|
1717
|
+
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country, matchingScenario);
|
|
1710
1718
|
const isDirectorRequired = availableDecisionMakers.some(
|
|
1711
|
-
(maker) => maker.roleType ===
|
|
1719
|
+
(maker) => maker.roleType === DecisionMakerTypes.DIRECTOR
|
|
1712
1720
|
);
|
|
1713
1721
|
if (isDirectorRequired) {
|
|
1714
1722
|
return "REQUIRED";
|
|
@@ -1836,8 +1844,9 @@ function Identity(props) {
|
|
|
1836
1844
|
)
|
|
1837
1845
|
);
|
|
1838
1846
|
}, [country, data?.typeOfIdentity, initialFormUtilProps, licenseCardNumberMetaData]);
|
|
1847
|
+
const { t } = useTranslation();
|
|
1839
1848
|
const { i18n } = useI18nContext();
|
|
1840
|
-
const formUtils = useMemo(() => createFormUtils(mergedProps,
|
|
1849
|
+
const formUtils = useMemo(() => createFormUtils(mergedProps, t), [mergedProps, t]);
|
|
1841
1850
|
const { form } = useFormContext();
|
|
1842
1851
|
const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
|
|
1843
1852
|
const ssnType = getSSNType(formVerificationErrors, defaultIdNumber);
|
|
@@ -1997,15 +2006,18 @@ const additionalPersonalDetailsFields = [
|
|
|
1997
2006
|
...additionalIdentityInfoFields,
|
|
1998
2007
|
"country",
|
|
1999
2008
|
"nationality",
|
|
2009
|
+
"placeOfBirth",
|
|
2000
2010
|
...addressFields,
|
|
2001
2011
|
"taxInformation"
|
|
2002
2012
|
];
|
|
2003
2013
|
function AdditionalPersonalDetails(props) {
|
|
2014
|
+
const { t } = useTranslation();
|
|
2004
2015
|
const { i18n } = useI18nContext();
|
|
2005
2016
|
const allowedCountries = useAllowedCountries();
|
|
2006
2017
|
const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
|
|
2007
2018
|
const { isSettingEnabled } = useSettingsContext();
|
|
2008
2019
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
2020
|
+
const { form } = useFormContext();
|
|
2009
2021
|
const isExperimentAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
|
|
2010
2022
|
const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
|
|
2011
2023
|
const {
|
|
@@ -2023,22 +2035,21 @@ function AdditionalPersonalDetails(props) {
|
|
|
2023
2035
|
const country = data?.country ?? defaultCountry;
|
|
2024
2036
|
const isIndividual = taskType === TaskTypes.INDIVIDUAL;
|
|
2025
2037
|
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
2026
|
-
const [taxIdNumberType, setTaxIdNumberType] = useState(
|
|
2027
|
-
getDefaultTaxIdNumberType(data?.taxInformation, country, LegalEntityType.INDIVIDUAL)
|
|
2028
|
-
);
|
|
2029
2038
|
const mergedProps = mergeFieldMetadataIntoProps(
|
|
2030
2039
|
"taxInformation",
|
|
2031
2040
|
resolveFieldMetadata(
|
|
2032
2041
|
taxInformationDefaultFieldConfig[country],
|
|
2033
2042
|
{
|
|
2034
|
-
taxIdNumberType
|
|
2035
|
-
|
|
2043
|
+
taxIdNumberType: form.data?.additionalPersonalDetails?.taxInformation?.find(
|
|
2044
|
+
(taxId) => taxId.country === country
|
|
2045
|
+
)?.type,
|
|
2046
|
+
companyType: LegalEntityTypes.INDIVIDUAL
|
|
2036
2047
|
},
|
|
2037
2048
|
taxInformationDefaultFieldMetadata
|
|
2038
2049
|
),
|
|
2039
2050
|
props
|
|
2040
2051
|
);
|
|
2041
|
-
const formUtils = createFormUtils(mergedProps,
|
|
2052
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
2042
2053
|
const birthDateErrorMessage = formUtils.getErrorMessage(
|
|
2043
2054
|
"birthDate",
|
|
2044
2055
|
errors,
|
|
@@ -2180,16 +2191,13 @@ function AdditionalPersonalDetails(props) {
|
|
|
2180
2191
|
},
|
|
2181
2192
|
labels: formUtils.getFieldLabels(["taxInformation"]),
|
|
2182
2193
|
mask: formUtils.getMask("taxInformation"),
|
|
2183
|
-
helperText: formUtils.getFieldHelperText(["taxInformation"]),
|
|
2184
2194
|
guidanceText: formUtils.getFieldGuidanceText(["taxInformation"]),
|
|
2185
2195
|
readonly: formUtils.isReadOnly("taxInformation"),
|
|
2186
2196
|
shouldValidate,
|
|
2187
2197
|
handleChangeFor: handleFieldChange,
|
|
2188
2198
|
canExempt: false,
|
|
2189
2199
|
country,
|
|
2190
|
-
|
|
2191
|
-
taxIdNumberType,
|
|
2192
|
-
setTaxIdNumberType,
|
|
2200
|
+
entityType: LegalEntityTypes.INDIVIDUAL,
|
|
2193
2201
|
defaultData: data?.taxInformation
|
|
2194
2202
|
}
|
|
2195
2203
|
),
|
|
@@ -2207,6 +2215,28 @@ function AdditionalPersonalDetails(props) {
|
|
|
2207
2215
|
handleChangeFor: () => handleFieldChange("nationality", "input")
|
|
2208
2216
|
}
|
|
2209
2217
|
),
|
|
2218
|
+
formUtils.isRequiredField("placeOfBirth") && /* @__PURE__ */ jsx(
|
|
2219
|
+
Field,
|
|
2220
|
+
{
|
|
2221
|
+
name: "placeOfBirth",
|
|
2222
|
+
label: formUtils.getLabel("placeOfBirth"),
|
|
2223
|
+
errorMessage: formUtils.getErrorMessage("placeOfBirth", errors, fieldValidationErrors),
|
|
2224
|
+
isValid: valid?.placeOfBirth,
|
|
2225
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2226
|
+
InputText,
|
|
2227
|
+
{
|
|
2228
|
+
...childProps,
|
|
2229
|
+
name: "placeOfBirth",
|
|
2230
|
+
value: data?.placeOfBirth,
|
|
2231
|
+
readonly: formUtils.isReadOnly("placeOfBirth"),
|
|
2232
|
+
onInput: handleFieldChange("placeOfBirth", "input"),
|
|
2233
|
+
onBlur: handleFieldChange("placeOfBirth", "blur"),
|
|
2234
|
+
"aria-required": true,
|
|
2235
|
+
"aria-invalid": !valid?.placeOfBirth
|
|
2236
|
+
}
|
|
2237
|
+
)
|
|
2238
|
+
}
|
|
2239
|
+
),
|
|
2210
2240
|
country === "US" && isIndividual ? /* @__PURE__ */ jsx(PatriotActDisclosure, {}) : void 0
|
|
2211
2241
|
] });
|
|
2212
2242
|
}
|
|
@@ -2223,6 +2253,7 @@ const basicDetailsFields = [
|
|
|
2223
2253
|
"jaKanaLastName"
|
|
2224
2254
|
];
|
|
2225
2255
|
function BasicDetails(props) {
|
|
2256
|
+
const { t } = useTranslation();
|
|
2226
2257
|
const { i18n } = useI18nContext();
|
|
2227
2258
|
const {
|
|
2228
2259
|
form: { triggerValidation }
|
|
@@ -2248,7 +2279,7 @@ function BasicDetails(props) {
|
|
|
2248
2279
|
} = props;
|
|
2249
2280
|
const isDecisionMakerTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
|
|
2250
2281
|
const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
2251
|
-
const formUtils = createFormUtils(props,
|
|
2282
|
+
const formUtils = createFormUtils(props, t);
|
|
2252
2283
|
const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
|
|
2253
2284
|
const nomineeProps = getFieldProps(props, nomineeFields);
|
|
2254
2285
|
const localizedNameProps = getFieldProps(props, [
|
|
@@ -2295,7 +2326,7 @@ function BasicDetails(props) {
|
|
|
2295
2326
|
contentId: "reasonForFillingIndividualPersonalDetails"
|
|
2296
2327
|
}
|
|
2297
2328
|
),
|
|
2298
|
-
isDecisionMakerTask && trustedFieldsProvider ===
|
|
2329
|
+
isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
|
|
2299
2330
|
"weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
|
|
2300
2331
|
) }),
|
|
2301
2332
|
isDecisionMakerTask && (isGuidedDecisionMakersFlowDisabled || !isGuidedDecisionMakersFlowEnabled) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2469,7 +2500,7 @@ const isNextStepDisabled = signal(false);
|
|
|
2469
2500
|
const conflictRowTable = "adyen-kyc-conflict-row-table";
|
|
2470
2501
|
const conflictRowList = "adyen-kyc-conflict-row-list";
|
|
2471
2502
|
const conflictRowListOptionLabel = "adyen-kyc-conflict-row-list-option-label";
|
|
2472
|
-
const styles$
|
|
2503
|
+
const styles$3 = {
|
|
2473
2504
|
conflictRowTable,
|
|
2474
2505
|
conflictRowList,
|
|
2475
2506
|
conflictRowListOptionLabel
|
|
@@ -2495,7 +2526,7 @@ const ConflictRow = ({
|
|
|
2495
2526
|
}
|
|
2496
2527
|
}, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
|
|
2497
2528
|
if (hasOnlyProvided || hasOnlyDetected) return;
|
|
2498
|
-
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2529
|
+
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$3.conflictRowList, children: [
|
|
2499
2530
|
/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
|
|
2500
2531
|
/* @__PURE__ */ jsxs("dd", { children: [
|
|
2501
2532
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2504,7 +2535,7 @@ const ConflictRow = ({
|
|
|
2504
2535
|
{
|
|
2505
2536
|
variant: "caption",
|
|
2506
2537
|
color: "tertiary",
|
|
2507
|
-
className: styles$
|
|
2538
|
+
className: styles$3.conflictRowListOptionLabel,
|
|
2508
2539
|
children: i18n.get("youEntered")
|
|
2509
2540
|
}
|
|
2510
2541
|
),
|
|
@@ -2524,7 +2555,7 @@ const ConflictRow = ({
|
|
|
2524
2555
|
{
|
|
2525
2556
|
variant: "caption",
|
|
2526
2557
|
color: "tertiary",
|
|
2527
|
-
className: styles$
|
|
2558
|
+
className: styles$3.conflictRowListOptionLabel,
|
|
2528
2559
|
children: i18n.get("weDetected")
|
|
2529
2560
|
}
|
|
2530
2561
|
),
|
|
@@ -2539,7 +2570,7 @@ const ConflictRow = ({
|
|
|
2539
2570
|
)
|
|
2540
2571
|
] })
|
|
2541
2572
|
] })
|
|
2542
|
-
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$
|
|
2573
|
+
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$3.conflictRowTable, children: [
|
|
2543
2574
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
|
|
2544
2575
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
|
|
2545
2576
|
RadioWithLabel,
|
|
@@ -2565,7 +2596,7 @@ const dataConflictsWrapper = "adyen-kyc-data-conflicts-wrapper";
|
|
|
2565
2596
|
const dataConflictsHeader = "adyen-kyc-data-conflicts-header";
|
|
2566
2597
|
const dataConflictsTable = "adyen-kyc-data-conflicts-table";
|
|
2567
2598
|
const dataConflictsList = "adyen-kyc-data-conflicts-list";
|
|
2568
|
-
const styles$
|
|
2599
|
+
const styles$2 = {
|
|
2569
2600
|
dataConflictsWrapper,
|
|
2570
2601
|
dataConflictsHeader,
|
|
2571
2602
|
dataConflictsTable,
|
|
@@ -2606,13 +2637,13 @@ const DataConflictsModal = ({
|
|
|
2606
2637
|
// No dependencies, as setShowError and setResolutions are stable.
|
|
2607
2638
|
);
|
|
2608
2639
|
return /* @__PURE__ */ jsxs(Modal, { ariaLabel: i18n.get(title), onClose: () => setShowCancelModal(true), inset: true, children: [
|
|
2609
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2610
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2640
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsWrapper, children: [
|
|
2641
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsHeader, children: [
|
|
2611
2642
|
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: i18n.get(title) }),
|
|
2612
2643
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: i18n.get(explanation) })
|
|
2613
2644
|
] }),
|
|
2614
2645
|
showError ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get("chooseTheCorrectDetailsBeforeProceeding") }) : void 0,
|
|
2615
|
-
/* @__PURE__ */ jsx("dl", { className: styles$
|
|
2646
|
+
/* @__PURE__ */ jsx("dl", { className: styles$2.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
|
|
2616
2647
|
ConflictRow,
|
|
2617
2648
|
{
|
|
2618
2649
|
showAs: "listItem",
|
|
@@ -2625,7 +2656,7 @@ const DataConflictsModal = ({
|
|
|
2625
2656
|
},
|
|
2626
2657
|
property
|
|
2627
2658
|
)) }),
|
|
2628
|
-
/* @__PURE__ */ jsxs("table", { className: styles$
|
|
2659
|
+
/* @__PURE__ */ jsxs("table", { className: styles$2.dataConflictsTable, children: [
|
|
2629
2660
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
2630
2661
|
/* @__PURE__ */ jsx("th", {}),
|
|
2631
2662
|
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: i18n.get("youEntered") }) }),
|
|
@@ -2682,57 +2713,11 @@ const DataConflictsModal = ({
|
|
|
2682
2713
|
)
|
|
2683
2714
|
] });
|
|
2684
2715
|
};
|
|
2685
|
-
const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
|
|
2686
|
-
const styles$3 = {
|
|
2687
|
-
verificationDisclaimer
|
|
2688
|
-
};
|
|
2689
|
-
const IdVerificationDisclaimer = () => {
|
|
2690
|
-
const { i18n } = useI18nContext();
|
|
2691
|
-
return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$3.verificationDisclaimer, children: [
|
|
2692
|
-
i18n.get("ifYouChooseToUseOnfido"),
|
|
2693
|
-
" ",
|
|
2694
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
|
|
2695
|
-
" ",
|
|
2696
|
-
i18n.get("and"),
|
|
2697
|
-
" ",
|
|
2698
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("onfidoTermsOfService") })
|
|
2699
|
-
] });
|
|
2700
|
-
};
|
|
2701
|
-
const verificationHeader = "adyen-kyc-verification-header";
|
|
2702
2716
|
const verificationHeaderImage = "adyen-kyc-verification-header-image";
|
|
2703
|
-
const verificationHeaderContent = "adyen-kyc-verification-header-content";
|
|
2704
|
-
const styles$2 = {
|
|
2705
|
-
verificationHeader,
|
|
2706
|
-
verificationHeaderImage,
|
|
2707
|
-
verificationHeaderContent
|
|
2708
|
-
};
|
|
2709
|
-
const IdVerificationHeader = () => {
|
|
2710
|
-
const { i18n } = useI18nContext();
|
|
2711
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$2.verificationHeader, children: [
|
|
2712
|
-
/* @__PURE__ */ jsx(
|
|
2713
|
-
Svg,
|
|
2714
|
-
{
|
|
2715
|
-
className: styles$2.verificationHeaderImage,
|
|
2716
|
-
type: "image",
|
|
2717
|
-
name: "passport-front-green",
|
|
2718
|
-
title: i18n.get("instantIDVerificationDescription")
|
|
2719
|
-
}
|
|
2720
|
-
),
|
|
2721
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title-l", children: i18n.get("capturePersonalDetails") }),
|
|
2722
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$2.verificationHeaderContent, children: [
|
|
2723
|
-
i18n.get("takeOrUploadAPhoto"),
|
|
2724
|
-
" ",
|
|
2725
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
|
|
2726
|
-
] })
|
|
2727
|
-
] });
|
|
2728
|
-
};
|
|
2729
|
-
const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
|
|
2730
2717
|
const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
|
|
2731
|
-
const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
|
|
2732
2718
|
const styles$1 = {
|
|
2733
|
-
|
|
2734
|
-
verifyOnfidoError
|
|
2735
|
-
verifyOnfidoContent
|
|
2719
|
+
verificationHeaderImage,
|
|
2720
|
+
verifyOnfidoError
|
|
2736
2721
|
};
|
|
2737
2722
|
const toIndividualOnfidoConflictSchema = ({
|
|
2738
2723
|
basicDetails,
|
|
@@ -2917,6 +2902,7 @@ function IdVerificationMethod(props) {
|
|
|
2917
2902
|
fieldValidationErrors,
|
|
2918
2903
|
hasLiveSelfieErrorCode
|
|
2919
2904
|
} = props;
|
|
2905
|
+
const { t } = useTranslation();
|
|
2920
2906
|
const { i18n } = useI18nContext();
|
|
2921
2907
|
const userEvents = useAnalyticsContext();
|
|
2922
2908
|
const extractDocumentInformation2 = useExtractDocumentInformation();
|
|
@@ -3111,9 +3097,9 @@ function IdVerificationMethod(props) {
|
|
|
3111
3097
|
handlers.handleUpdateDocument();
|
|
3112
3098
|
};
|
|
3113
3099
|
const modalProvidedData = resolvedData || comparableExistingData;
|
|
3114
|
-
const formUtils = createFormUtils(props,
|
|
3100
|
+
const formUtils = createFormUtils(props, t);
|
|
3115
3101
|
isNextStepDisabled.value = showLoadingSpinner;
|
|
3116
|
-
return /* @__PURE__ */ jsxs(
|
|
3102
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3117
3103
|
/* @__PURE__ */ jsx(
|
|
3118
3104
|
ErrorPanel,
|
|
3119
3105
|
{
|
|
@@ -3123,44 +3109,75 @@ function IdVerificationMethod(props) {
|
|
|
3123
3109
|
id: "ariaErrorField"
|
|
3124
3110
|
}
|
|
3125
3111
|
),
|
|
3126
|
-
/* @__PURE__ */ jsx(
|
|
3127
|
-
|
|
3128
|
-
Alert,
|
|
3129
|
-
{
|
|
3130
|
-
variant: "error",
|
|
3131
|
-
title: i18n.get(error.key, error.options),
|
|
3132
|
-
className: styles$1.verifyOnfidoError
|
|
3133
|
-
}
|
|
3134
|
-
) : void 0,
|
|
3135
|
-
/* @__PURE__ */ jsx("div", { className: styles$1.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
|
|
3136
|
-
UploadedDocument,
|
|
3112
|
+
/* @__PURE__ */ jsx(
|
|
3113
|
+
LandingLayout,
|
|
3137
3114
|
{
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3115
|
+
media: /* @__PURE__ */ jsx(
|
|
3116
|
+
Svg,
|
|
3117
|
+
{
|
|
3118
|
+
type: "image",
|
|
3119
|
+
className: styles$1.verificationHeaderImage,
|
|
3120
|
+
name: "passport-front-green",
|
|
3121
|
+
title: i18n.get("instantIDVerificationDescription")
|
|
3122
|
+
}
|
|
3123
|
+
),
|
|
3124
|
+
title: i18n.get("identityVerification"),
|
|
3125
|
+
description: showIndividualMotionCapture?.value ? i18n.get("toHelpProtectAgainstFraudAndKeepOurServices") : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3126
|
+
i18n.get("takeOrUploadAPhoto"),
|
|
3127
|
+
" ",
|
|
3128
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
|
|
3129
|
+
] }),
|
|
3130
|
+
helpAction: error ? /* @__PURE__ */ jsx(
|
|
3131
|
+
Alert,
|
|
3132
|
+
{
|
|
3133
|
+
variant: "error",
|
|
3134
|
+
title: i18n.get(error.key, error.options),
|
|
3135
|
+
className: styles$1.verifyOnfidoError
|
|
3136
|
+
}
|
|
3137
|
+
) : void 0,
|
|
3138
|
+
actions: /* @__PURE__ */ jsx(Fragment, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3139
|
+
/* @__PURE__ */ jsx(
|
|
3140
|
+
Button,
|
|
3141
|
+
{
|
|
3142
|
+
fullWidth: true,
|
|
3143
|
+
onClick: launchOnfido,
|
|
3144
|
+
disabled: status === "extractionLoading",
|
|
3145
|
+
loading: status === "extractionLoading",
|
|
3146
|
+
children: i18n.get("startVerification")
|
|
3147
|
+
}
|
|
3148
|
+
),
|
|
3149
|
+
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
3150
|
+
Button,
|
|
3151
|
+
{
|
|
3152
|
+
onClick: () => setStatus("confirmManualFlowModal"),
|
|
3153
|
+
variant: "secondary",
|
|
3154
|
+
fullWidth: true,
|
|
3155
|
+
children: i18n.get("addDetailsManually")
|
|
3156
|
+
}
|
|
3157
|
+
)
|
|
3158
|
+
] }) }),
|
|
3159
|
+
content: !showLoadingSpinner && hasExistingDocument && /* @__PURE__ */ jsx(
|
|
3160
|
+
UploadedDocument,
|
|
3161
|
+
{
|
|
3162
|
+
document: existingDocument,
|
|
3163
|
+
onDelete: () => setStatus("confirmDeleteDocumentModal"),
|
|
3164
|
+
onUpdate: handleUpdateExistingDocument
|
|
3165
|
+
}
|
|
3166
|
+
),
|
|
3167
|
+
disclaimer: !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3168
|
+
i18n.get("byContinuingToUseThisService"),
|
|
3169
|
+
" ",
|
|
3170
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children: i18n.get("onfidoFacialScanPolicy") }),
|
|
3171
|
+
" ",
|
|
3172
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("privacyPolicy") }),
|
|
3173
|
+
" ",
|
|
3174
|
+
i18n.get("and"),
|
|
3175
|
+
" ",
|
|
3176
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("termsOfService") }),
|
|
3177
|
+
"."
|
|
3178
|
+
] })
|
|
3141
3179
|
}
|
|
3142
|
-
)
|
|
3143
|
-
/* @__PURE__ */ jsx(
|
|
3144
|
-
ProviderButton,
|
|
3145
|
-
{
|
|
3146
|
-
provider: "onfido",
|
|
3147
|
-
fullWidth: true,
|
|
3148
|
-
disabled: status === "extractionLoading",
|
|
3149
|
-
loading: status === "extractionLoading",
|
|
3150
|
-
onClick: launchOnfido
|
|
3151
|
-
}
|
|
3152
|
-
),
|
|
3153
|
-
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
3154
|
-
Button,
|
|
3155
|
-
{
|
|
3156
|
-
onClick: () => setStatus("confirmManualFlowModal"),
|
|
3157
|
-
variant: "secondary",
|
|
3158
|
-
fullWidth: true,
|
|
3159
|
-
children: i18n.get("addDetailsManually")
|
|
3160
|
-
}
|
|
3161
|
-
),
|
|
3162
|
-
/* @__PURE__ */ jsx(IdVerificationDisclaimer, {})
|
|
3163
|
-
] }) }) }),
|
|
3180
|
+
),
|
|
3164
3181
|
status === "onfidoModal" && /* @__PURE__ */ jsx(
|
|
3165
3182
|
OnfidoVerificationModal,
|
|
3166
3183
|
{
|
|
@@ -3232,8 +3249,8 @@ const ManualIdUpload = () => {
|
|
|
3232
3249
|
}
|
|
3233
3250
|
);
|
|
3234
3251
|
};
|
|
3235
|
-
const getDisplayErrorMessage = (errorMessage,
|
|
3236
|
-
return typeof errorMessage !== "boolean" ?
|
|
3252
|
+
const getDisplayErrorMessage = (errorMessage, t) => {
|
|
3253
|
+
return typeof errorMessage !== "boolean" ? translateStringOrObject(t, errorMessage) : errorMessage;
|
|
3237
3254
|
};
|
|
3238
3255
|
const SignatoryQuestionnaireModalContent = () => {
|
|
3239
3256
|
const { i18n } = useI18nContext();
|
|
@@ -3246,6 +3263,7 @@ const SignatoryQuestionnaireModalContent = () => {
|
|
|
3246
3263
|
] });
|
|
3247
3264
|
};
|
|
3248
3265
|
function SignatoryQuestionnaire(props) {
|
|
3266
|
+
const { t } = useTranslation();
|
|
3249
3267
|
const { i18n } = useI18nContext();
|
|
3250
3268
|
const userEvents = useAnalyticsContext();
|
|
3251
3269
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
@@ -3257,7 +3275,7 @@ function SignatoryQuestionnaire(props) {
|
|
|
3257
3275
|
fieldValidationErrors,
|
|
3258
3276
|
handleFieldChange
|
|
3259
3277
|
} = props;
|
|
3260
|
-
const formUtils = createFormUtils(props,
|
|
3278
|
+
const formUtils = createFormUtils(props, t);
|
|
3261
3279
|
if (!handleFieldChange) {
|
|
3262
3280
|
return;
|
|
3263
3281
|
}
|
|
@@ -3296,7 +3314,7 @@ function SignatoryQuestionnaire(props) {
|
|
|
3296
3314
|
onDescriptionLinkClick: openModal,
|
|
3297
3315
|
question: i18n.get("signatoryQuestion"),
|
|
3298
3316
|
descriptionLinkText: i18n.get("whatDoesThisMean"),
|
|
3299
|
-
errorMessage: getDisplayErrorMessage(errorMessage,
|
|
3317
|
+
errorMessage: getDisplayErrorMessage(errorMessage, t)
|
|
3300
3318
|
}
|
|
3301
3319
|
),
|
|
3302
3320
|
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
|
|
@@ -3374,6 +3392,7 @@ const uboQuestionnaireFields = [
|
|
|
3374
3392
|
"isNomineeShareholder"
|
|
3375
3393
|
];
|
|
3376
3394
|
function UboQuestionnaire(props) {
|
|
3395
|
+
const { t } = useTranslation();
|
|
3377
3396
|
const { i18n } = useI18nContext();
|
|
3378
3397
|
const userEvents = useAnalyticsContext();
|
|
3379
3398
|
const {
|
|
@@ -3385,7 +3404,7 @@ function UboQuestionnaire(props) {
|
|
|
3385
3404
|
fieldValidationErrors,
|
|
3386
3405
|
handleFieldChange
|
|
3387
3406
|
} = props;
|
|
3388
|
-
const formUtils = createFormUtils(props,
|
|
3407
|
+
const formUtils = createFormUtils(props, t);
|
|
3389
3408
|
const [activeModal, setActiveModal] = useState(null);
|
|
3390
3409
|
if (!handleFieldChange) {
|
|
3391
3410
|
return;
|
|
@@ -3452,7 +3471,7 @@ function UboQuestionnaire(props) {
|
|
|
3452
3471
|
onDescriptionLinkClick: openModal("isDirector"),
|
|
3453
3472
|
question: i18n.get("directorQuestion"),
|
|
3454
3473
|
descriptionLinkText: i18n.get("whatDoesThisMean"),
|
|
3455
|
-
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage,
|
|
3474
|
+
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
|
|
3456
3475
|
}
|
|
3457
3476
|
),
|
|
3458
3477
|
formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
|
|
@@ -3462,7 +3481,7 @@ function UboQuestionnaire(props) {
|
|
|
3462
3481
|
value: data?.isNomineeDirector,
|
|
3463
3482
|
onChange: handleFieldChange("isNomineeDirector"),
|
|
3464
3483
|
question: i18n.get("nomineeDirectorQuestion"),
|
|
3465
|
-
errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage,
|
|
3484
|
+
errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
|
|
3466
3485
|
}
|
|
3467
3486
|
),
|
|
3468
3487
|
formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(
|
|
@@ -3474,7 +3493,7 @@ function UboQuestionnaire(props) {
|
|
|
3474
3493
|
onDescriptionLinkClick: openModal("isOwner"),
|
|
3475
3494
|
question: i18n.get("ownerQuestion"),
|
|
3476
3495
|
descriptionLinkText: i18n.get("whatDoesThisMean"),
|
|
3477
|
-
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage,
|
|
3496
|
+
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
|
|
3478
3497
|
}
|
|
3479
3498
|
),
|
|
3480
3499
|
formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
|
|
@@ -3484,7 +3503,7 @@ function UboQuestionnaire(props) {
|
|
|
3484
3503
|
value: data?.isNomineeShareholder,
|
|
3485
3504
|
onChange: handleFieldChange("isNomineeShareholder"),
|
|
3486
3505
|
question: i18n.get("nomineeShareHolderQuestion"),
|
|
3487
|
-
errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage,
|
|
3506
|
+
errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
|
|
3488
3507
|
}
|
|
3489
3508
|
),
|
|
3490
3509
|
formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(
|
|
@@ -3496,7 +3515,7 @@ function UboQuestionnaire(props) {
|
|
|
3496
3515
|
onDescriptionLinkClick: openModal("isControllingPerson"),
|
|
3497
3516
|
question: i18n.get("controllingPersonQuestion"),
|
|
3498
3517
|
descriptionLinkText: i18n.get("whatDoesThisMean"),
|
|
3499
|
-
errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage,
|
|
3518
|
+
errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
|
|
3500
3519
|
}
|
|
3501
3520
|
),
|
|
3502
3521
|
activeModal && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: modalAriaLabelMap[activeModal], inset: true, children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, { modalType: activeModal }) })
|
|
@@ -3870,7 +3889,7 @@ const adjustOnfidoIdentificationData = (data, apiData) => {
|
|
|
3870
3889
|
const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEnabled, matchingScenario) => {
|
|
3871
3890
|
const legalEntity = {
|
|
3872
3891
|
...formatObject(individualOnfido, individualOnfidoApiKeyMapping),
|
|
3873
|
-
type:
|
|
3892
|
+
type: LegalEntityTypes.INDIVIDUAL
|
|
3874
3893
|
};
|
|
3875
3894
|
if (individualOnfido.additionalPersonalDetails) {
|
|
3876
3895
|
if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO) && individualOnfido.additionalPersonalDetails?.idNumber && individualOnfido.additionalPersonalDetails?.typeOfIdentity && individualOnfido.additionalPersonalDetails?.country === CountryCodes.Spain) {
|
|
@@ -3997,19 +4016,19 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
3997
4016
|
const associationTypes = new Set(associations.map((ea) => ea.type));
|
|
3998
4017
|
const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
3999
4018
|
individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
|
|
4000
|
-
|
|
4019
|
+
DecisionMakerTypes.SIGNATORY
|
|
4001
4020
|
);
|
|
4002
|
-
individualOnfido.uboQuestionnaire.isOwner = hasAssociation(
|
|
4021
|
+
individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
|
|
4003
4022
|
individualOnfido.uboQuestionnaire.isControllingPerson = hasAssociation(
|
|
4004
|
-
|
|
4023
|
+
DecisionMakerTypes.CONTROLLING_PERSON
|
|
4005
4024
|
);
|
|
4006
|
-
individualOnfido.uboQuestionnaire.isDirector = hasAssociation(
|
|
4025
|
+
individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
|
|
4007
4026
|
const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
4008
4027
|
individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
|
|
4009
|
-
|
|
4028
|
+
DecisionMakerTypes.DIRECTOR
|
|
4010
4029
|
);
|
|
4011
4030
|
individualOnfido.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(
|
|
4012
|
-
|
|
4031
|
+
DecisionMakerTypes.OWNER
|
|
4013
4032
|
);
|
|
4014
4033
|
}
|
|
4015
4034
|
individualOnfido.basicDetails = getNomineeFromAssociation(
|
|
@@ -4047,6 +4066,9 @@ const identityOnfidoBase = {
|
|
|
4047
4066
|
jobTitle: {
|
|
4048
4067
|
rule: "jobTitleIfRequiredForRole"
|
|
4049
4068
|
},
|
|
4069
|
+
placeOfBirth: {
|
|
4070
|
+
rule: "isPlaceOfBirthRequired"
|
|
4071
|
+
},
|
|
4050
4072
|
nationality: {
|
|
4051
4073
|
rule: "nationalityIfRequiredForRole"
|
|
4052
4074
|
},
|
|
@@ -4086,10 +4108,8 @@ const identityOnfidoBase = {
|
|
|
4086
4108
|
nomineeShareholder: {
|
|
4087
4109
|
rules: ["isGuidedDecisionMakersFlowDisabled", "nomineeShareHolderRequiredForCountry"]
|
|
4088
4110
|
},
|
|
4089
|
-
// Regardless of scenario, we want the user to go through the "verification method" step
|
|
4090
|
-
// and hopefully get Onfido-verified. Otherwise, they must go through the manual flow.
|
|
4091
4111
|
idVerificationMethod: {
|
|
4092
|
-
rule: "
|
|
4112
|
+
rule: "isIdVerificationMethodRequired"
|
|
4093
4113
|
},
|
|
4094
4114
|
idDocument: {
|
|
4095
4115
|
// (either from Onfido or previously-uploaded document)
|
|
@@ -4382,7 +4402,7 @@ function IndividualOnfidoDropin({
|
|
|
4382
4402
|
useEffect(() => {
|
|
4383
4403
|
setCountry(data?.additionalPersonalDetails?.country ?? parentCountry);
|
|
4384
4404
|
}, [data?.additionalPersonalDetails?.country, parentCountry]);
|
|
4385
|
-
const { data: scenarios } = useScenarios(country,
|
|
4405
|
+
const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
|
|
4386
4406
|
useEffect(() => {
|
|
4387
4407
|
if (!scenarios) return;
|
|
4388
4408
|
setHasMotionCaptureScenario(scenarios);
|
|
@@ -4390,7 +4410,7 @@ function IndividualOnfidoDropin({
|
|
|
4390
4410
|
}, [scenarios]);
|
|
4391
4411
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
4392
4412
|
parseConfiguration,
|
|
4393
|
-
legalEntityType:
|
|
4413
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
4394
4414
|
setLoadingStatus,
|
|
4395
4415
|
country
|
|
4396
4416
|
});
|
|
@@ -4473,7 +4493,7 @@ function IndividualOnfidoDropin({
|
|
|
4473
4493
|
};
|
|
4474
4494
|
await getIdVerificationStartCheck(data2);
|
|
4475
4495
|
};
|
|
4476
|
-
const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType) : [];
|
|
4496
|
+
const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType, matchingScenario) : [];
|
|
4477
4497
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
4478
4498
|
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
|
|
4479
4499
|
const submitLegalEntity = async ({
|