@adyen/kyc-components 3.85.0 → 3.86.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-DWt6MA7A.js → AcceptTermsOfServiceComponent-DzMlzUjz.js} +16 -17
- package/dist/{Accordion-DQSd9JrF.js → Accordion-ZHPTn2Gl.js} +2 -2
- package/dist/{AccountSetupRejected-Y2jV7DOd.js → AccountSetupRejected-DON-7H74.js} +4 -4
- package/dist/{Address-CN31gTRW.js → Address-ChPj2pfR.js} +337 -22
- package/dist/{Alert-B2qwr9au.js → Alert-CeZqoFeT.js} +3 -3
- package/dist/{Avatar-CrL6cVDB.js → Avatar-zXT7v3KF.js} +2 -2
- package/dist/{BusinessDetailsMultiformDropin-BB1mTi0Z.js → BusinessDetailsMultiformDropin-DKiYg8gJ.js} +89 -3112
- package/dist/{BusinessFinancingComponent-BevBrUTE.js → BusinessFinancingComponent-BRziB5i-.js} +6 -6
- package/dist/{BusinessFinancingDropin-BgU5hfv0.js → BusinessFinancingDropin-CUmKL5bO.js} +21 -38
- package/dist/{BusinessFinancingPage-u2Xu42u-.js → BusinessFinancingPage-DhhnCxFQ.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-BNxEzkjO.js → BusinessTypeSelectionPage-B_dVM7cC.js} +9 -8
- package/dist/Card-Bz2B4J0v.js +82 -0
- package/dist/ConstitutionalDocument-Dt9O9bVo.js +143 -0
- package/dist/{CountryField-CFppUh42.js → CountryField-Bv9P8dRJ.js} +110 -78
- package/dist/CreateIndividualComponent-Mw4AiW_M.js +71 -0
- package/dist/CreateTransferInstrumentComponent-usUQlcH_.js +66 -0
- package/dist/{Currency-Zz8j3LFf.js → Currency-SzvigNNo.js} +8 -63
- package/dist/{CustomerSupport-CkqG00fn.js → CustomerSupport-C_KLB51k.js} +21 -9
- package/dist/{DebugModal-Cxp_Lbjk.js → DebugModal-DYolUZQS.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-kpoxsSYP.js → DecisionMakerDetailsPage-C2BzKLSi.js} +7 -7
- package/dist/{DecisionMakers-DMboYynJ.js → DecisionMakers-DTYzQWdY.js} +18 -20
- package/dist/{EmbeddedStatus-DdZv9Kwp.js → EmbeddedStatus-jepajhAF.js} +3 -3
- package/dist/{EndStateLayout-Cswr0wiZ.js → EndStateLayout-DQm7Xrqx.js} +2 -2
- package/dist/{useFormContext-DrrsFJH7.js → FormFlow-A9b0QEcM.js} +10 -16
- package/dist/{FormNavigation-DrejHtXO.js → FormNavigation-DEdNWaAc.js} +5 -5
- package/dist/{useGlobalData-rR_jnTzW.js → FormWrapper-DjWyqVD2.js} +12 -79
- package/dist/{IndividualOnfidoDropin-CydUe7_6.js → IndividualOnfido-BMIkKHvJ.js} +8187 -6328
- package/dist/IndividualOnfidoDropin-DBQF0Onh.js +2502 -0
- package/dist/{InputText-EX5kyD9L.js → InputText-BG-TiSNN.js} +4 -4
- package/dist/{Introduction-DncY2r7T.js → Introduction-BgoEJd8o.js} +4 -4
- package/dist/{JpAddress-BTfvrykR.js → JpAddress-Jxj9u4D5.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-DxqaU2W7.js → LegalRepresentativeDetailsPage-BH5AnQhk.js} +5 -5
- package/dist/{ListItem-pn0XFAz_.js → ListItem-DIDj0vuO.js} +3 -3
- package/dist/{ManageIndividualComponent-CKRuUS0t.js → ManageIndividualComponent-CJKXW8rK.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DDgriC3w.js → ManageTermsOfServiceComponent-DNf00D1s.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-BoQn6JaV.js → ManageTransferInstrumentComponent-gVWN389q.js} +14 -13
- package/dist/{MaybeModal-B1X7K4z1.js → MaybeModal-D51ALTH6.js} +3 -3
- package/dist/{Modal-ConNvgj4.js → Modal-C9aImxis.js} +2 -2
- package/dist/OnboardingDropinComponent-D-tQ12Sy.js +9791 -0
- package/dist/{PayoutDetailsDropin-CHOa81Ot.js → PayoutDetailsDropin-CxWPXV7j.js} +288 -158
- package/dist/{Review-BAuL4AQ-.js → Review-CRhM6n_P.js} +8 -8
- package/dist/RootBusinessDetailsPage-DZrT_e0g.js +61 -0
- package/dist/{RootBusinessLinesPage-D-YRRyIW.js → RootBusinessLinesPage-CJUpoVy5.js} +267 -144
- package/dist/RootIndividualDetailsPage-pqVuzOoJ.js +80 -0
- package/dist/{SignPCIComponent-B6FQiV5E.js → SignPCIComponent-BNbx3OzX.js} +11 -11
- package/dist/{SingpassSelection-DxGUYazk.js → SingpassSelection-BAa3S705.js} +4 -5
- package/dist/SoleProprietorshipPage-Bhw3GBKP.js +60 -0
- package/dist/{SourceOfFundsPage-Ce-Mim_H.js → SourceOfFundsPage-CJXpHSgo.js} +24 -29
- package/dist/{StepProgressIndicator-BymtNCPV.js → StepProgressIndicator-Dncrs7ra.js} +2 -2
- package/dist/{StoreProvider-BYjTSjnX.js → StoreProvider-CWnZNw9D.js} +427 -305
- package/dist/{TaskItemStatus-BholBQ7C.js → TaskItemStatus-D3ri_-L2.js} +3 -3
- package/dist/{TaxReportingDropin-CSa5vto5.js → TaxReportingDropin-Du7KU--L.js} +15 -17
- package/dist/{TrustDetailsPage-CYMeuEyr.js → TrustDetailsPage-SGmHwgzj.js} +24 -32
- package/dist/{TrustMemberCompanyPage-DICY9KDR.js → TrustMemberCompanyPage-BkQ9q4_T.js} +6 -6
- package/dist/{TrustMemberIndividualPage-DUGmI852.js → TrustMemberIndividualPage-CIr73hS-.js} +5 -5
- package/dist/UnincorporatedPartnershipIndividualPage-DQxHTyUp.js +65 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CuvkBZ2N.js → UnincorporatedPartnershipMemberCompanyPage-DOWqNUHn.js} +6 -6
- package/dist/VerificationErrorAlert-DDsMxj76.js +79 -0
- package/dist/{ViewVerificationStatusComponent-zXuO8CY1.js → ViewVerificationStatusComponent-Hqp0gnec.js} +4 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +20 -20
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bg-BG-fr-xfUBV.js → bg-BG-B1GR6lKu.js} +3 -1
- package/dist/{bg-BG-BIOMFPaW.js → bg-BG-BC1dwNN2.js} +2 -5
- package/dist/bg-BG-BJo9yIYj.js +13 -0
- package/dist/bg-BG-D8qq7TQJ.js +94 -0
- package/dist/bg-BG-a6CQ0hKw.js +13 -0
- package/dist/{bg-BG-Cs_1PU3v.js → bg-BG-e6Rs6yz_.js} +4 -1
- package/dist/{cs-CZ-DNWTRefA.js → cs-CZ-2foXfkBk.js} +2 -5
- package/dist/cs-CZ-BAr1-JAS.js +13 -0
- package/dist/cs-CZ-ChGeQ9s0.js +94 -0
- package/dist/{cs-CZ-C0sNB1Fm.js → cs-CZ-DBQXByj7.js} +3 -1
- package/dist/cs-CZ-LGBI1w0Z.js +13 -0
- package/dist/{cs-CZ-B2WAqmaW.js → cs-CZ-Q6NVYK-k.js} +4 -1
- package/dist/da-DK-914Viqia.js +13 -0
- package/dist/{da-DK-8dk9Q_Wk.js → da-DK-CjjWmhN6.js} +3 -1
- package/dist/da-DK-CyHH8kX3.js +94 -0
- package/dist/{da-DK-D-eeokQn.js → da-DK-DSYEF7Q1.js} +4 -1
- package/dist/{da-DK-D-PlwKvZ.js → da-DK-DU3_xdWg.js} +2 -5
- package/dist/da-DK-DoHb4ssx.js +13 -0
- package/dist/{de-DE-Dcs3W1fT.js → de-DE-B9-ILIdw.js} +4 -1
- package/dist/{de-DE-4GAd_srm.js → de-DE-BODG29hR.js} +2 -5
- package/dist/de-DE-BXKZNAA1.js +13 -0
- package/dist/de-DE-DL6SrIBE.js +94 -0
- package/dist/{de-DE-CCyKie8B.js → de-DE-DoQHxDRp.js} +3 -1
- package/dist/de-DE-R6YgDOo5.js +13 -0
- package/dist/{analytics-DkXXx2b6.js → debouncedInputEvent-B3Lwtvx_.js} +7 -21
- package/dist/{validate-DzaSMOa2.js → documentUtils-C2iCagu9.js} +3 -167
- package/dist/{dropinUtils-CCEDaAJW.js → dropinUtils-L9qJuAw0.js} +4 -20
- package/dist/el-GR-BnMw4HQ7.js +13 -0
- package/dist/{el-GR-D7zMcBtK.js → el-GR-CnoZeZlX.js} +3 -1
- package/dist/{el-GR-DBum-QDu.js → el-GR-DYjcbiSc.js} +4 -1
- package/dist/{el-GR-Ddnh0NhQ.js → el-GR-DcIdm3iK.js} +2 -5
- package/dist/el-GR-DgaUGjyJ.js +13 -0
- package/dist/el-GR-l0JeDNPy.js +94 -0
- package/dist/{en-US-DjF6iC7G.js → en-US-BxEW5N6f.js} +44 -5
- package/dist/{en-US-BwDZ0WHW.js → en-US-C5WyUweF.js} +3 -1
- package/dist/en-US-CTZwL084.js +13 -0
- package/dist/{en-US-BCFNoF5y.js → en-US-DYo4OF-P.js} +8 -7
- package/dist/{en-US-DdeSoN_2.js → en-US-gsp7CD_E.js} +5 -1
- package/dist/{es-ES-JvAvmB2A.js → es-ES-BMrse1nQ.js} +3 -1
- package/dist/es-ES-BWAlCq7R.js +13 -0
- package/dist/{es-ES-C7XjLOHi.js → es-ES-C-tTuMLH.js} +4 -1
- package/dist/es-ES-C1ClJ2XE.js +94 -0
- package/dist/{es-ES-C4lENXHH.js → es-ES-CMQqgMEJ.js} +2 -5
- package/dist/es-ES-dMSfTLXF.js +13 -0
- package/dist/{et-EE-SJf3_Ega.js → et-EE-BE8bHZns.js} +3 -1
- package/dist/et-EE-BG_Y29oV.js +94 -0
- package/dist/{et-EE-BUG05EDz.js → et-EE-BzLAp08F.js} +4 -1
- package/dist/et-EE-D9SV0taO.js +13 -0
- package/dist/{et-EE-3EQr-1cj.js → et-EE-DcpuYQwB.js} +2 -5
- package/dist/et-EE-l977xCZ_.js +13 -0
- package/dist/fi-FI-0ScajGUB.js +13 -0
- package/dist/{fi-FI-Byvvcxxq.js → fi-FI-4GTHkwOL.js} +2 -5
- package/dist/{fi-FI-Cy2hAl0B.js → fi-FI-Bmu7sndb.js} +3 -1
- package/dist/fi-FI-C7GrKbXx.js +13 -0
- package/dist/fi-FI-bIhXiQPL.js +94 -0
- package/dist/{fi-FI-CEzjKgiz.js → fi-FI-pyHLbmel.js} +4 -1
- package/dist/{MaskedInput-DB6EYmfa.js → fieldConfigurations-DVV23oeM.js} +616 -14
- package/dist/{fr-FR-E_UubsZ-.js → fr-FR-Ba-HRBQ7.js} +2 -5
- package/dist/fr-FR-Bj275MRb.js +94 -0
- package/dist/fr-FR-CqCcxkgA.js +13 -0
- package/dist/{fr-FR-DNJiLv9b.js → fr-FR-DG3tEkdN.js} +4 -1
- package/dist/fr-FR-o45TzYMp.js +13 -0
- package/dist/{fr-FR-BmW46mYd.js → fr-FR-ufKVxWpT.js} +3 -1
- package/dist/getFieldsWithExistingData-C6JBh3D6.js +22 -0
- package/dist/{getName-Dc03c4n_.js → getName-k5oRc0oZ.js} +9 -2
- package/dist/{hasDataChanged-CUdKM92N.js → hasDataChanged-CogwJI1I.js} +2 -2
- package/dist/{hr-HR-TVOgDkBf.js → hr-HR-BFx1T11G.js} +2 -5
- package/dist/{hr-HR-WMnlxMEY.js → hr-HR-BRFErTkv.js} +4 -1
- package/dist/{hr-HR-c1Si_0s4.js → hr-HR-BYXLJcPZ.js} +3 -1
- package/dist/hr-HR-CL0q_D2U.js +94 -0
- package/dist/hr-HR-CoCrArfg.js +13 -0
- package/dist/hr-HR-YG9hvMMj.js +13 -0
- package/dist/hu-HU-BrxUJuJh.js +13 -0
- package/dist/{hu-HU-B2nrl0pw.js → hu-HU-CJA8w351.js} +4 -1
- package/dist/hu-HU-DIurnBC3.js +13 -0
- package/dist/{hu-HU-DRONW_47.js → hu-HU-GXvzHwu9.js} +2 -5
- package/dist/{hu-HU-CibGC8KY.js → hu-HU-J4qBifyy.js} +3 -1
- package/dist/hu-HU-cLqGFTTR.js +94 -0
- package/dist/{iframeWidget-BWwxgbNs.js → iframeWidget-D2CKFlJk.js} +4 -4
- package/dist/{it-IT-BMjuva_2.js → it-IT-B_5GkLBx.js} +3 -1
- package/dist/{it-IT-DuBLJIdz.js → it-IT-Bw3VIHJB.js} +2 -5
- package/dist/it-IT-C0Qk47kh.js +94 -0
- package/dist/it-IT-CNS4NmYX.js +13 -0
- package/dist/it-IT-Cztl5jRY.js +13 -0
- package/dist/{it-IT-BRmX2jEi.js → it-IT-mhNjrQZn.js} +4 -1
- package/dist/{ja-JP-Cr_qjpZ2.js → ja-JP-BUrknIDB.js} +3 -1
- package/dist/{ja-JP-CCnzjx-u.js → ja-JP-BxEWI56P.js} +9 -1
- package/dist/{ja-JP-gRRH8Eph.js → ja-JP-CfrHlRGC.js} +4 -1
- package/dist/{ja-JP-CJ_j_HAA.js → ja-JP-DI7lRfpI.js} +2 -5
- package/dist/ja-JP-DSdZj-it.js +94 -0
- package/dist/ja-JP-DXkV1ta4.js +13 -0
- package/dist/{localizeDateString-rfEOu5f7.js → localizeDateString-ZCoTLjs1.js} +2 -2
- package/dist/lt-LT-BJTBEa5D.js +13 -0
- package/dist/lt-LT-C-dKiExL.js +94 -0
- package/dist/{lt-LT-BJQDUanx.js → lt-LT-C0Acftnm.js} +4 -1
- package/dist/lt-LT-D1viSP-v.js +13 -0
- package/dist/{lt-LT-DjNjg3Pl.js → lt-LT-L0wG5Pd2.js} +3 -1
- package/dist/{lt-LT-CBBDNCnp.js → lt-LT-ewVNPhQN.js} +2 -5
- package/dist/lv-LV-AkiOewnL.js +13 -0
- package/dist/{lv-LV-h3nTokkM.js → lv-LV-Bnq61WAt.js} +4 -1
- package/dist/{lv-LV-BpRfRfMz.js → lv-LV-DFvpmmGg.js} +3 -1
- package/dist/lv-LV-GI-ZDM0K.js +13 -0
- package/dist/{lv-LV-CtIe38WU.js → lv-LV-JqXvRt4T.js} +2 -5
- package/dist/lv-LV-UkEOuqFz.js +94 -0
- package/dist/{mapExistingFile-D_HVWRXe.js → mapExistingFile-txzqej6F.js} +5 -80
- package/dist/mapFinancialReportsToFinancialInformation-DoTIj0Q-.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-pPCQCgRx.js +63 -0
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-DsQrqqP5.js → mapLegalEntityToIndividualOnfidoSchema-B8NxtO2j.js} +3 -63
- package/dist/{mapTransferInstrumentToPayoutAccount-MugvfqfK.js → mapTransferInstrumentToPayoutAccount-D9lyD7nx.js} +2 -2
- package/dist/nl-NL-B6B4Z_tr.js +13 -0
- package/dist/nl-NL-Cfr5hMtI.js +94 -0
- package/dist/{nl-NL-CE4l8R5l.js → nl-NL-DR1wVqQC.js} +2 -5
- package/dist/{nl-NL-oaBDOlm6.js → nl-NL-UhpFianh.js} +3 -1
- package/dist/nl-NL-VneIcgWO.js +13 -0
- package/dist/{nl-NL-YzDSCWLL.js → nl-NL-donw5yvS.js} +4 -1
- package/dist/no-NO-ASO8Je2l.js +94 -0
- package/dist/{no-NO-B1_YJlMP.js → no-NO-BZmigu6-.js} +2 -5
- package/dist/{no-NO-BTrfxWS7.js → no-NO-DRF-gOWI.js} +3 -1
- package/dist/{no-NO-Big2B13b.js → no-NO-Dev7r3VA.js} +4 -1
- package/dist/no-NO-Dn1LUbDp.js +13 -0
- package/dist/no-NO-Dqp598Ox.js +13 -0
- package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
- package/dist/payout-verification-manual-BJsf7QPE.js +90 -0
- package/dist/{pl-PL-DGYFY42P.js → pl-PL-BKxhMICw.js} +2 -5
- package/dist/pl-PL-C1cP4Qpn.js +13 -0
- package/dist/pl-PL-CG4rvgUo.js +94 -0
- package/dist/{pl-PL-C72GTDxW.js → pl-PL-CHyLS1B7.js} +3 -1
- package/dist/{pl-PL-CL483jMb.js → pl-PL-DU_Xulyu.js} +4 -1
- package/dist/pl-PL-Zdh_Xu43.js +13 -0
- package/dist/{process-field-configurations-CiECrUSj.js → process-field-configurations-D2EUZow3.js} +3 -3
- package/dist/{pt-BR-CtFCi7U4.js → pt-BR-CFZE5Nop.js} +3 -1
- package/dist/{pt-BR-DJOzf0y2.js → pt-BR-DeXo4rsi.js} +4 -1
- package/dist/pt-BR-DkzLiK7Y.js +13 -0
- package/dist/pt-BR-DqLaaG4L.js +13 -0
- package/dist/pt-BR-IWTcYKu9.js +94 -0
- package/dist/{pt-BR-Co8OqKh-.js → pt-BR-wAIdhUru.js} +2 -5
- package/dist/{pt-PT-XAn7WGle.js → pt-PT-Bc9JI4eu.js} +3 -1
- package/dist/{pt-PT-pKLoM66X.js → pt-PT-C1qHVe7L.js} +2 -5
- package/dist/pt-PT-CoTUf3zo.js +13 -0
- package/dist/{pt-PT-B3qoJ3Fr.js → pt-PT-DkJdR6SS.js} +4 -1
- package/dist/pt-PT-LZZYQKaC.js +94 -0
- package/dist/pt-PT-uiREjC_e.js +13 -0
- package/dist/{resolveEnvironment-DTYC79J1.js → resolveEnvironment-CU4TOfg6.js} +3 -3
- package/dist/{ro-RO-Ct_BJvsc.js → ro-RO-BDjHimxe.js} +4 -1
- package/dist/{ro-RO-qX8X1Q1m.js → ro-RO-BFzooIri.js} +3 -1
- package/dist/ro-RO-C835aMET.js +13 -0
- package/dist/ro-RO-_HSYnLLu.js +13 -0
- package/dist/{ro-RO-D3rQ93wa.js → ro-RO-juw6hKRk.js} +2 -5
- package/dist/ro-RO-nVSeNtIQ.js +94 -0
- package/dist/{rules-BfrH23mO.js → rules-LaFMJfnA.js} +4 -5
- package/dist/{sk-SK-CmH1I1tp.js → sk-SK-BM57awWi.js} +2 -5
- package/dist/sk-SK-BX0wsQH4.js +94 -0
- package/dist/sk-SK-D6KtBU3q.js +13 -0
- package/dist/{sk-SK-CjdK4BKW.js → sk-SK-DRuiKuEp.js} +3 -1
- package/dist/sk-SK-K03EHmJF.js +13 -0
- package/dist/{sk-SK-FGK1FMMO.js → sk-SK-atqQJid1.js} +4 -1
- package/dist/{sl-SI-lPxRRPsh.js → sl-SI-CmYmQ6nG.js} +3 -1
- package/dist/{sl-SI-Cz28AFTz.js → sl-SI-CwKpXVCh.js} +4 -1
- package/dist/sl-SI-Dt7rovIT.js +94 -0
- package/dist/{sl-SI-hnlbW1OT.js → sl-SI-g2WSP0Tj.js} +2 -5
- package/dist/sl-SI-gM40Ay3W.js +13 -0
- package/dist/sl-SI-wYYQibM-.js +13 -0
- package/dist/style.css +931 -892
- package/dist/styles-CLV89_hH.js +931 -892
- package/dist/sv-SE-Bnhsdw8c.js +13 -0
- package/dist/{sv-SE-DLl7OGxl.js → sv-SE-CGCP_6VE.js} +4 -1
- package/dist/{sv-SE-BPpQ-05i.js → sv-SE-CHomf31L.js} +3 -1
- package/dist/{sv-SE-7Cbo1oic.js → sv-SE-Cfs0NHgG.js} +2 -5
- package/dist/sv-SE-DqzH809e.js +94 -0
- package/dist/sv-SE-uisfAT9L.js +13 -0
- package/dist/{useForm-CNi1k1NR.js → trackNavigation-gyYoCNvj.js} +25 -8
- package/dist/types/api/businessLines/businessLines.types.d.ts +7 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +51 -51
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +2 -4
- package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/BusinessLineModal.d.ts +3 -2
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +11 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +124 -124
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +0 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
- package/dist/types/context/ExperimentContext/types.d.ts +12 -0
- package/dist/types/core/errorMapping.d.ts +4 -1
- package/dist/types/core/user-events.d.ts +7 -9
- package/dist/types/hooks/{useAnalytics.d.ts → useAnalytics/useAnalytics.d.ts} +1 -7
- package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +19 -0
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
- package/dist/types/utils/{trackNavigation.d.ts → analytics/trackNavigation.d.ts} +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/{types-DNH7oNbA.js → types-C1FJZQd1.js} +2 -2
- package/dist/{types-SBNit_kK.js → types-D0aacEF5.js} +27 -3
- package/dist/{types-DHmyPbAn.js → types-DQVZ5BSQ.js} +14 -2
- package/dist/{useAssociatedLegalEntity-CmhNWabq.js → useAssociatedLegalEntity-CuTN8T5x.js} +2 -2
- package/dist/{useDataset-C0A9qR_N.js → useDataset-C4vcroxo.js} +3 -3
- package/dist/{useMultiForm-CU58VvHX.js → useMultiForm-GpoMvhwU.js} +4 -4
- package/dist/{useOnboardingStatus-DuIJSnGH.js → useOnboardingStatus-Cifcsbcr.js} +1 -1
- package/dist/{useScenarios-T0NF0gUi.js → useScenarios-AyvycExm.js} +2 -2
- package/dist/{useTermsOfServiceStatus-1oGd6y18.js → useTermsOfServiceStatus-yhwwFpfh.js} +1 -1
- package/dist/{useToastContext-DHgUoF6x.js → useToastContext-CCxuinr_.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-57G1Bu4k.js → useUnincorporatedPartnershipMembers-D_N_aPNq.js} +62 -7
- package/dist/{utils-DZz9bCID.js → utils-U0nEMoML.js} +6 -46
- package/dist/validate-BRRbVwma.js +41 -0
- package/dist/{validate-Bz6-McmI.js → validate-Bqbj3vVS.js} +2 -2
- package/dist/{validationError-Ci4nlmhZ.js → validationError-DhRqgFgA.js} +2 -2
- package/package.json +1 -1
- package/dist/Card-N9psV2kP.js +0 -147
- package/dist/CreateIndividualComponent-BL3dK960.js +0 -71
- package/dist/CreateTransferInstrumentComponent-kxMU_XVD.js +0 -66
- package/dist/Divider-DiS12D_i.js +0 -239
- package/dist/Dropzone-DSyKXnbD.js +0 -218
- package/dist/Image-BhBefhke.js +0 -22
- package/dist/InputDate-C2j7qA_b.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/LandingLayout-Ca68Z9DA.js +0 -60
- package/dist/Link-BS6Zpegg.js +0 -35
- package/dist/OnboardingDropinComponent-IKzrTT3r.js +0 -4274
- package/dist/RadioGroup-DhwjhH0X.js +0 -144
- package/dist/RegistrationAddress-BnyrwF-X.js +0 -2337
- package/dist/RootBusinessDetailsPage-BFR4Sxfp.js +0 -61
- package/dist/RootIndividualDetailsPage-D6lLtamt.js +0 -76
- package/dist/SoleProprietorshipPage-BKlAFmwp.js +0 -60
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/TaxInformationField-DCjcBMwQ.js +0 -3094
- package/dist/TileGroup-BkTpSpVX.js +0 -174
- package/dist/UnincorporatedPartnershipIndividualPage-DZZc7sEn.js +0 -65
- package/dist/bafinUtils-DkP3ZoN4.js +0 -366
- package/dist/bg-BG-BLe6BCNz.js +0 -13
- package/dist/bg-BG-BPsOhDfg.js +0 -13
- package/dist/bg-BG-z3gZQvGq.js +0 -42
- package/dist/commonValidators-BLvtzPWZ.js +0 -24
- package/dist/cs-CZ-C5lyVYlZ.js +0 -42
- package/dist/cs-CZ-CHzJM-ii.js +0 -13
- package/dist/cs-CZ-xoLsda7i.js +0 -13
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-CYl2jko-.js +0 -42
- package/dist/da-DK-D-TJghBi.js +0 -13
- package/dist/da-DK-XNMYSp7w.js +0 -13
- package/dist/de-DE-BI7AAdOv.js +0 -13
- package/dist/de-DE-CCmlaL2F.js +0 -13
- package/dist/de-DE-DlUEkik0.js +0 -42
- package/dist/el-GR-DZ8GheJK.js +0 -42
- package/dist/el-GR-DoCIcce-.js +0 -13
- package/dist/el-GR-kYiInIQ9.js +0 -13
- package/dist/en-US-DYpvuCLO.js +0 -13
- package/dist/es-ES-CJMsyMAc.js +0 -13
- package/dist/es-ES-CnNU6AJv.js +0 -13
- package/dist/es-ES-D0c0MoqK.js +0 -42
- package/dist/et-EE-BR4OXRfV.js +0 -13
- package/dist/et-EE-C4Fwyr7-.js +0 -42
- package/dist/et-EE-sB7wkSA3.js +0 -13
- package/dist/fi-FI-BbqwYcLI.js +0 -13
- package/dist/fi-FI-bRXb-Q_i.js +0 -42
- package/dist/fi-FI-u5GxMZsq.js +0 -13
- package/dist/fieldConfigurations-BsOQ678Q.js +0 -448
- package/dist/form-rules-DhbF2mY4.js +0 -13
- package/dist/fr-FR-CMjrAkKl.js +0 -13
- package/dist/fr-FR-Cr-Y1vIy.js +0 -13
- package/dist/fr-FR-JLPKgufm.js +0 -42
- package/dist/hr-HR-Bhsop3CT.js +0 -13
- package/dist/hr-HR-D26Gz-HL.js +0 -42
- package/dist/hr-HR-D8cBxUFa.js +0 -13
- package/dist/hu-HU-BVfkOdJe.js +0 -13
- package/dist/hu-HU-BZCFneWx.js +0 -42
- package/dist/hu-HU-D2j1ISVk.js +0 -13
- package/dist/isEmpty-B0GMAw4K.js +0 -23
- package/dist/it-IT-C7Sg1k4p.js +0 -13
- package/dist/it-IT-CwA8megO.js +0 -13
- package/dist/it-IT-mScKLwBR.js +0 -42
- package/dist/ja-JP-DyELKS9Q.js +0 -42
- package/dist/ja-JP-GSbqID7o.js +0 -13
- package/dist/jpAddressSchema-ULGNNt5U.js +0 -27
- package/dist/lt-LT-C5nNCk4_.js +0 -13
- package/dist/lt-LT-CLPQVRpJ.js +0 -42
- package/dist/lt-LT-DSiutpRl.js +0 -13
- package/dist/lv-LV-C62XiDE5.js +0 -13
- package/dist/lv-LV-CEK8Re4d.js +0 -13
- package/dist/lv-LV-Cu-MJMVO.js +0 -42
- package/dist/mapJpAddressSchemaToAddressLocalizations-D7YGYa9S.js +0 -147
- package/dist/nl-NL-BOJ6zuBr.js +0 -13
- package/dist/nl-NL-DOQPxTX-.js +0 -13
- package/dist/nl-NL-pVdpCCOx.js +0 -42
- package/dist/no-NO-CRULNwNn.js +0 -42
- package/dist/no-NO-Cp3-tDMw.js +0 -13
- package/dist/no-NO-CuwTDFSf.js +0 -13
- package/dist/pl-PL-1-MrLPXu.js +0 -13
- package/dist/pl-PL-CtDHmbhp.js +0 -13
- package/dist/pl-PL-CxCiWdAF.js +0 -42
- package/dist/pt-BR-Br_cHzGx.js +0 -13
- package/dist/pt-BR-DnKEuslh.js +0 -13
- package/dist/pt-BR-apPtB2cK.js +0 -42
- package/dist/pt-PT-CLwCij2I.js +0 -13
- package/dist/pt-PT-Coa6J7SM.js +0 -42
- package/dist/pt-PT-cjbtYBUX.js +0 -13
- package/dist/ro-RO-BTqq5BPM.js +0 -42
- package/dist/ro-RO-CGhIjlpU.js +0 -13
- package/dist/ro-RO-Cmk-sVDr.js +0 -13
- package/dist/sk-SK-Bo5nvxWQ.js +0 -13
- package/dist/sk-SK-Do6CKNU4.js +0 -13
- package/dist/sk-SK-welR06By.js +0 -42
- package/dist/sl-SI-B9N6vA08.js +0 -42
- package/dist/sl-SI-CrTRlNnN.js +0 -13
- package/dist/sl-SI-cY-L2ma-.js +0 -13
- package/dist/sv-SE-BtwPrLEA.js +0 -13
- package/dist/sv-SE-D6al0j6W.js +0 -42
- package/dist/sv-SE-WPziDPQa.js +0 -13
- package/dist/types/utils/analytics.d.ts +0 -31
- package/dist/utils-AieP90ex.js +0 -29
- package/dist/utils-Bd79Y_6k.js +0 -165
- package/dist/validate-WO7yAOk4.js +0 -382
|
@@ -2,48 +2,45 @@
|
|
|
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] = "7fcf74fb-0eb6-4de2-ab68-e220e822bf18", e._sentryDebugIdIdentifier = "sentry-dbid-7fcf74fb-0eb6-4de2-ab68-e220e822bf18");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
+
import { signal } from "@preact/signals";
|
|
11
12
|
import { useState, useEffect, useRef, useMemo, useCallback, useContext } from "preact/hooks";
|
|
12
|
-
import { b as useApiContext, j as useQuery, k as httpPost, o as httpGet,
|
|
13
|
-
import { u as useTransferInstrument, m as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-
|
|
14
|
-
import { a as useForm, F as Field,
|
|
15
|
-
import { E as ExperimentNames } from "./types-
|
|
16
|
-
import { I as InputText, S as SettingNames } from "./InputText-
|
|
17
|
-
import { u as useGlobalDataSlice, a as useGlobalData,
|
|
18
|
-
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-
|
|
19
|
-
import { a as augmentWithCountryConfigs, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
20
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
21
|
-
import {
|
|
22
|
-
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-
|
|
23
|
-
import { c as currencyByCountry } from "./types-
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
13
|
+
import { b as useApiContext, j as useQuery, k as httpPost, o as httpGet, a2 as useMutation, a3 as useQueryClient, P as createLogger, V as CountryCodes, u as useTranslation, c as useLegalEntity, R as ROOT_LE, z as LegalEntityTypes, a as addResourceBundles, L as Loader, M as EntityTypes, _ as __variableDynamicImportRuntimeHelper, a1 as useAnalyticsContext, a4 as Icon, y as Typography, B as Button, ao as objectsDeepEqual, a_ as doArraysMatch, X as isEmpty, $ as useExperimentsContext, bj as getSdkToken, H as hasOwnEntityAssociationOfType, K as useAccountHolder, m as useSettingsContext, bk as EEA_Countries, g as getLegalEntityCountry, ak as Trans, bl as isAccountIdentifierObscured, bm as hasEmptyFields, bn as extractFieldName, bo as concatenateFieldNames, av as keysOf, aF as getCapabilityProblems, O as TaskTypes, aG as cloneObject, r as skipToken } from "./StoreProvider-CWnZNw9D.js";
|
|
14
|
+
import { u as useTransferInstrument, m as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-D9lyD7nx.js";
|
|
15
|
+
import { a as useForm, F as Field, S as Select, L as LoaderWrapper } from "./trackNavigation-gyYoCNvj.js";
|
|
16
|
+
import { E as ExperimentNames } from "./types-DQVZ5BSQ.js";
|
|
17
|
+
import { I as InputText, S as SettingNames } from "./InputText-BG-TiSNN.js";
|
|
18
|
+
import { c as useUnincorporatedPartnershipMembers, u as useGlobalDataSlice, a as useGlobalData, e as useResetGlobalData, b as useStateContext } from "./useUnincorporatedPartnershipMembers-D_N_aPNq.js";
|
|
19
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-CCxuinr_.js";
|
|
20
|
+
import { a as augmentWithCountryConfigs, g as getPropsFromConfigurations } from "./process-field-configurations-D2EUZow3.js";
|
|
21
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-L9qJuAw0.js";
|
|
22
|
+
import { A as AdyenKycSdkError, p as payoutAccountFormat, m as mapExistingFile, g as getPageName, u as useScenarioConfiguration, b as useUnifyLoadingStatus } from "./mapExistingFile-txzqej6F.js";
|
|
23
|
+
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-C4vcroxo.js";
|
|
24
|
+
import { c as currencyByCountry, C as Currencies } from "./types-D0aacEF5.js";
|
|
25
|
+
import { F as FormWrapper } from "./FormWrapper-DjWyqVD2.js";
|
|
26
|
+
import { i as isValidationError, p as processValidationErrors, b as isIdDocumentUploadError, c as isBankStatementUploadError, a as isMaintenanceModeError, m as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-DhRqgFgA.js";
|
|
27
|
+
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils, b as getFileExtention } from "./documentUtils-C2iCagu9.js";
|
|
28
|
+
import { g as getLegalEntityNameBasedOnType, b as getPayoutAccountHolderName } from "./getName-k5oRc0oZ.js";
|
|
29
|
+
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-D2CKFlJk.js";
|
|
28
30
|
import { Show } from "@preact/signals/utils";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
32
|
-
import {
|
|
33
|
-
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
31
|
+
import { M as Modal } from "./Modal-C9aImxis.js";
|
|
32
|
+
import { c as createFormUtils, H as Header, E as ErrorPanel, k as isNotEmptyValidator, m as mergeFieldMetadataIntoProps, d as getFieldProps, C as CountryField, a as Link, g as getFormProps, f as summaryStep, s as summaryItem } from "./CountryField-Bv9P8dRJ.js";
|
|
33
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CuTN8T5x.js";
|
|
34
|
+
import { i as useCapabilityProblems, k as getProblemsForEntity, D as DropzoneFile, q as bytesToSize, o as defaultFileValidationOptions, p as fileValidationRules, S as StateContextSetter, t as DocumentGuidance, T as TextArea, m as makeMask, n as numericInputs, c as nonInputs, s as spacer, l as customInputs, v as validatePatternOnBlur, r as resolveFieldMetadata, M as MaskedInput, b as alphanumericInputs, u as uppercase, d as alphaInputs, I as Image, R as RadioGroupCard, C as ContextGuidance, x as createFormRules } from "./fieldConfigurations-DVV23oeM.js";
|
|
34
35
|
import cx from "classnames";
|
|
35
36
|
import { memo, lazy } from "preact/compat";
|
|
36
|
-
import { u as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-57G1Bu4k.js";
|
|
37
37
|
import { b as bankStatementDescriptionPattern } from "./basePatterns-BwdnMQxI.js";
|
|
38
38
|
import { createContext } from "preact";
|
|
39
|
-
import { a as Alert } from "./Alert-
|
|
40
|
-
import { A as ActionBar } from "./FormNavigation-
|
|
39
|
+
import { a as Alert } from "./Alert-CeZqoFeT.js";
|
|
40
|
+
import { A as ActionBar } from "./FormNavigation-DEdNWaAc.js";
|
|
41
41
|
import OpenBankingSDK from "@adyen/openbankingsdk";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { C as Currencies } from "./currency-BGwQyxBo.js";
|
|
45
|
-
import { I as Image } from "./Image-BhBefhke.js";
|
|
46
|
-
import { L as Link } from "./Link-BS6Zpegg.js";
|
|
42
|
+
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
43
|
+
import { C as Card } from "./Card-Bz2B4J0v.js";
|
|
47
44
|
const getCheck = async (legalEntityId, baseUrl, data) => {
|
|
48
45
|
return httpPost(
|
|
49
46
|
{
|
|
@@ -334,7 +331,7 @@ function PayoutDetailsPage({
|
|
|
334
331
|
);
|
|
335
332
|
const capabilityProblems = useCapabilityProblems();
|
|
336
333
|
addResourceBundles(i18n, i18n.language, [
|
|
337
|
-
{ ns: "banking", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-
|
|
334
|
+
{ ns: "banking", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-D8qq7TQJ.js"), "../language/cs-CZ.json": () => import("./cs-CZ-ChGeQ9s0.js"), "../language/da-DK.json": () => import("./da-DK-CyHH8kX3.js"), "../language/de-DE.json": () => import("./de-DE-DL6SrIBE.js"), "../language/el-GR.json": () => import("./el-GR-l0JeDNPy.js"), "../language/en-US.json": () => import("./en-US-BxEW5N6f.js"), "../language/es-ES.json": () => import("./es-ES-C1ClJ2XE.js"), "../language/et-EE.json": () => import("./et-EE-BG_Y29oV.js"), "../language/fi-FI.json": () => import("./fi-FI-bIhXiQPL.js"), "../language/fr-FR.json": () => import("./fr-FR-Bj275MRb.js"), "../language/hr-HR.json": () => import("./hr-HR-CL0q_D2U.js"), "../language/hu-HU.json": () => import("./hu-HU-cLqGFTTR.js"), "../language/it-IT.json": () => import("./it-IT-C0Qk47kh.js"), "../language/ja-JP.json": () => import("./ja-JP-DSdZj-it.js"), "../language/lt-LT.json": () => import("./lt-LT-C-dKiExL.js"), "../language/lv-LV.json": () => import("./lv-LV-UkEOuqFz.js"), "../language/nl-NL.json": () => import("./nl-NL-Cfr5hMtI.js"), "../language/no-NO.json": () => import("./no-NO-ASO8Je2l.js"), "../language/pl-PL.json": () => import("./pl-PL-CG4rvgUo.js"), "../language/pt-BR.json": () => import("./pt-BR-IWTcYKu9.js"), "../language/pt-PT.json": () => import("./pt-PT-LZZYQKaC.js"), "../language/ro-RO.json": () => import("./ro-RO-nVSeNtIQ.js"), "../language/sk-SK.json": () => import("./sk-SK-BX0wsQH4.js"), "../language/sl-SI.json": () => import("./sl-SI-Dt7rovIT.js"), "../language/sv-SE.json": () => import("./sv-SE-DqzH809e.js") }), `../language/${i18n.language}.json`, 3) }
|
|
338
335
|
]);
|
|
339
336
|
if (!rootLe || associatedLeIsLoading) {
|
|
340
337
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -490,14 +487,14 @@ function FilePicker({
|
|
|
490
487
|
const bankDocument = "adyen-kyc-bank-document";
|
|
491
488
|
const bankDocumentDocumentUpload = "adyen-kyc-bank-document-document-upload";
|
|
492
489
|
const bankDocumentDocumentDescription = "adyen-kyc-bank-document-document-description";
|
|
493
|
-
const styles$
|
|
490
|
+
const styles$3 = {
|
|
494
491
|
bankDocument,
|
|
495
492
|
bankDocumentDocumentUpload,
|
|
496
493
|
bankDocumentDocumentDescription
|
|
497
494
|
};
|
|
498
495
|
const documentRequirements = "adyen-kyc-document-requirements";
|
|
499
496
|
const documentRequirementsSubtitle = "adyen-kyc-document-requirements-subtitle";
|
|
500
|
-
const styles$
|
|
497
|
+
const styles$2 = {
|
|
501
498
|
documentRequirements,
|
|
502
499
|
documentRequirementsSubtitle
|
|
503
500
|
};
|
|
@@ -582,7 +579,7 @@ const applyNamedModifiers = (country, documentModifiers) => {
|
|
|
582
579
|
switch (documentModifiers.associatedEntityType) {
|
|
583
580
|
case LegalEntityTypes.TRUST:
|
|
584
581
|
return {
|
|
585
|
-
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.TRUST]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.TRUST]
|
|
582
|
+
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.TRUST]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.TRUST].default,
|
|
586
583
|
options: {
|
|
587
584
|
values: {
|
|
588
585
|
trusteeName: documentModifiers.rootEntityLegalName,
|
|
@@ -593,7 +590,7 @@ const applyNamedModifiers = (country, documentModifiers) => {
|
|
|
593
590
|
};
|
|
594
591
|
case LegalEntityTypes.UNINCORPORATED_PARTNERSHIP:
|
|
595
592
|
return {
|
|
596
|
-
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]
|
|
593
|
+
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP].default,
|
|
597
594
|
options: {
|
|
598
595
|
values: {
|
|
599
596
|
partnerNames: documentModifiers.unincorporatedPartnershipMembers || "",
|
|
@@ -604,7 +601,7 @@ const applyNamedModifiers = (country, documentModifiers) => {
|
|
|
604
601
|
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
605
602
|
default:
|
|
606
603
|
return {
|
|
607
|
-
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.SOLE_PROPRIETORSHIP]
|
|
604
|
+
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.INDIVIDUAL][LegalEntityTypes.SOLE_PROPRIETORSHIP].default,
|
|
608
605
|
options: {
|
|
609
606
|
values: {
|
|
610
607
|
individualLegalName: documentModifiers.rootEntityLegalName,
|
|
@@ -618,7 +615,7 @@ const applyNamedModifiers = (country, documentModifiers) => {
|
|
|
618
615
|
switch (documentModifiers.associatedEntityType) {
|
|
619
616
|
case LegalEntityTypes.TRUST:
|
|
620
617
|
return {
|
|
621
|
-
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.TRUST]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.TRUST]
|
|
618
|
+
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.TRUST]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.TRUST].default,
|
|
622
619
|
options: {
|
|
623
620
|
values: {
|
|
624
621
|
trusteeName: documentModifiers.rootEntityLegalName,
|
|
@@ -629,7 +626,7 @@ const applyNamedModifiers = (country, documentModifiers) => {
|
|
|
629
626
|
};
|
|
630
627
|
case LegalEntityTypes.UNINCORPORATED_PARTNERSHIP:
|
|
631
628
|
return {
|
|
632
|
-
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]
|
|
629
|
+
key: accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]?.[country] ?? accountNameRequirementWithLegalArrangement[LegalEntityTypes.ORGANIZATION][LegalEntityTypes.UNINCORPORATED_PARTNERSHIP].default,
|
|
633
630
|
options: {
|
|
634
631
|
values: {
|
|
635
632
|
partnerNames: documentModifiers.unincorporatedPartnershipMembers || "",
|
|
@@ -675,15 +672,16 @@ const BankDocumentRequirements = ({
|
|
|
675
672
|
documentType,
|
|
676
673
|
documentModifiers
|
|
677
674
|
}) => {
|
|
678
|
-
const {
|
|
675
|
+
const { t } = useTranslation("banking");
|
|
676
|
+
const { t: commonT } = useTranslation("common");
|
|
679
677
|
const documentRequirements2 = getBankDocumentRequirements(
|
|
680
678
|
country,
|
|
681
679
|
documentType,
|
|
682
680
|
documentModifiers
|
|
683
681
|
);
|
|
684
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
685
|
-
/* @__PURE__ */ jsx("strong", { className: styles$
|
|
686
|
-
/* @__PURE__ */ jsx("ul", { children: documentRequirements2.map(({ key, options }, i) => /* @__PURE__ */ jsx("li", { "data-testid": key, children:
|
|
682
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$2.documentRequirements, children: [
|
|
683
|
+
/* @__PURE__ */ jsx("strong", { className: styles$2.documentRequirementsSubtitle, children: commonT(($) => $["documentRequirements"]) }),
|
|
684
|
+
/* @__PURE__ */ jsx("ul", { children: documentRequirements2.map(({ key, options }, i) => /* @__PURE__ */ jsx("li", { "data-testid": key, children: t(($) => $[key], options?.values) }, i)) })
|
|
687
685
|
] });
|
|
688
686
|
};
|
|
689
687
|
const bankDocumentValidationRules = {
|
|
@@ -714,10 +712,11 @@ function BankDocument(props) {
|
|
|
714
712
|
fieldValidationErrors,
|
|
715
713
|
shouldValidate
|
|
716
714
|
} = props;
|
|
717
|
-
const { t } = useTranslation("
|
|
715
|
+
const { t } = useTranslation("banking");
|
|
716
|
+
const { t: commonT } = useTranslation("common");
|
|
718
717
|
const stateRef = useRef({ setState: null });
|
|
719
718
|
const isBankStatementOptional = optionalFields?.includes("bankStatementDocument") ?? false;
|
|
720
|
-
const formUtils = createFormUtils(props,
|
|
719
|
+
const formUtils = createFormUtils(props, commonT);
|
|
721
720
|
const bankStatementValidationOptions = useMemo(
|
|
722
721
|
() => ({
|
|
723
722
|
...defaultFileValidationOptions,
|
|
@@ -790,7 +789,7 @@ function BankDocument(props) {
|
|
|
790
789
|
}),
|
|
791
790
|
[legalEntity, associatedLegalArrangement, unincorporatedPartnershipMembers]
|
|
792
791
|
);
|
|
793
|
-
return /* @__PURE__ */ jsxs("form", { className: styles$
|
|
792
|
+
return /* @__PURE__ */ jsxs("form", { className: styles$3.bankDocument, children: [
|
|
794
793
|
/* @__PURE__ */ jsx(StateContextSetter, { owner: id, stateRef }),
|
|
795
794
|
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
796
795
|
/* @__PURE__ */ jsx(
|
|
@@ -815,7 +814,7 @@ function BankDocument(props) {
|
|
|
815
814
|
...childProps,
|
|
816
815
|
onChange: handleChangeFor("documentType"),
|
|
817
816
|
name: "documentType",
|
|
818
|
-
placeholder:
|
|
817
|
+
placeholder: commonT(($) => $["selectDocument"]),
|
|
819
818
|
isInvalid: false,
|
|
820
819
|
items: getBankDocumentOptions(),
|
|
821
820
|
selected: data.documentType
|
|
@@ -837,7 +836,7 @@ function BankDocument(props) {
|
|
|
837
836
|
data.documentType || usingExistingUploadedDocuments ? /* @__PURE__ */ jsx(
|
|
838
837
|
Field,
|
|
839
838
|
{
|
|
840
|
-
className: cx(styles$
|
|
839
|
+
className: cx(styles$3.bankDocumentDocumentUpload, "adyen-kyc-upload-field"),
|
|
841
840
|
name: "bankStatementDocument",
|
|
842
841
|
isValid: valid.bankStatementDocument,
|
|
843
842
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -858,7 +857,7 @@ function BankDocument(props) {
|
|
|
858
857
|
data.documentType || usingExistingUploadedDocuments ? /* @__PURE__ */ jsx(
|
|
859
858
|
Field,
|
|
860
859
|
{
|
|
861
|
-
className: cx(styles$
|
|
860
|
+
className: cx(styles$3.bankDocumentDocumentDescription),
|
|
862
861
|
name: "description",
|
|
863
862
|
label: formUtils.getLabel("bankDocumentFileDescription"),
|
|
864
863
|
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
@@ -943,8 +942,9 @@ function BankVerificationWidget({
|
|
|
943
942
|
createTrustedTransferInstrument: createTrustedTransferInstrument2,
|
|
944
943
|
fullscreen
|
|
945
944
|
}) {
|
|
946
|
-
const {
|
|
945
|
+
const { t } = useTranslation("banking");
|
|
947
946
|
const userEvents = useAnalyticsContext();
|
|
947
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
948
948
|
const widgetContainerRef = useRef(null);
|
|
949
949
|
const sdkToken = getSdkToken();
|
|
950
950
|
const { mutateAsync: handleBankVerificationError2 } = useHandleBankVerificationError();
|
|
@@ -957,12 +957,12 @@ function BankVerificationWidget({
|
|
|
957
957
|
};
|
|
958
958
|
const DEFAULT_ERROR = {
|
|
959
959
|
error: "UNKNOWN_ERROR",
|
|
960
|
-
message:
|
|
960
|
+
message: t(($) => $["weCouldntCompleteTheAccountCheck"])
|
|
961
961
|
};
|
|
962
962
|
setBankVerificationError(null);
|
|
963
963
|
const widgetCallback = useCallback(
|
|
964
964
|
(payload) => {
|
|
965
|
-
const errorContent =
|
|
965
|
+
const errorContent = t(($) => $["tryAgainOrManualAccountDetails"]);
|
|
966
966
|
switch (payload.action) {
|
|
967
967
|
case VerificationWidgetCallbackActions.HANDLE_EXCEPTION: {
|
|
968
968
|
let errorTitle;
|
|
@@ -972,14 +972,14 @@ function BankVerificationWidget({
|
|
|
972
972
|
errorTitle = "";
|
|
973
973
|
break;
|
|
974
974
|
case "CONNECTION_ERROR":
|
|
975
|
-
errorTitle =
|
|
975
|
+
errorTitle = t(($) => $["couldNotEstablishBankConnection"]);
|
|
976
976
|
break;
|
|
977
977
|
case "GENERIC_ERROR":
|
|
978
|
-
errorTitle =
|
|
978
|
+
errorTitle = t(($) => $["ranIntoTechnicalError"]);
|
|
979
979
|
break;
|
|
980
980
|
case "UNKNOWN_ERROR":
|
|
981
981
|
default: {
|
|
982
|
-
errorTitle =
|
|
982
|
+
errorTitle = t(($) => $["couldNotCompleteAccountCheck"]);
|
|
983
983
|
break;
|
|
984
984
|
}
|
|
985
985
|
}
|
|
@@ -987,12 +987,15 @@ function BankVerificationWidget({
|
|
|
987
987
|
setBankVerificationError({ title: errorTitle, content: errorContent });
|
|
988
988
|
}
|
|
989
989
|
setHideVerificationWidget(true);
|
|
990
|
+
if (isExperimentEnabled(ExperimentNames.EnablePayoutVerificationMethodPageRedesign)) {
|
|
991
|
+
showInstantVerificationPayoutModal.value = false;
|
|
992
|
+
}
|
|
990
993
|
onBack?.();
|
|
991
994
|
break;
|
|
992
995
|
}
|
|
993
996
|
case VerificationWidgetCallbackActions.RETRY_VERIFICATION:
|
|
994
997
|
setBankVerificationError({
|
|
995
|
-
title:
|
|
998
|
+
title: t(($) => $["failedInitializeInstantVerification"]),
|
|
996
999
|
content: errorContent
|
|
997
1000
|
});
|
|
998
1001
|
setHideVerificationWidget(true);
|
|
@@ -1012,7 +1015,7 @@ function BankVerificationWidget({
|
|
|
1012
1015
|
}
|
|
1013
1016
|
}
|
|
1014
1017
|
},
|
|
1015
|
-
[
|
|
1018
|
+
[t, retrieveBankAccountInfo, onBack, setBankVerificationError, setHideVerificationWidget]
|
|
1016
1019
|
);
|
|
1017
1020
|
useEffect(
|
|
1018
1021
|
() => {
|
|
@@ -1178,7 +1181,9 @@ function BankVerification(props) {
|
|
|
1178
1181
|
id,
|
|
1179
1182
|
fieldValidationErrors
|
|
1180
1183
|
} = props;
|
|
1181
|
-
const {
|
|
1184
|
+
const { t } = useTranslation("banking");
|
|
1185
|
+
const { t: commonT } = useTranslation("common");
|
|
1186
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
1182
1187
|
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
1183
1188
|
const schema = accountVerificationFields;
|
|
1184
1189
|
const stateRef = useRef({ setState: null });
|
|
@@ -1206,6 +1211,9 @@ function BankVerification(props) {
|
|
|
1206
1211
|
hideSidebar?.(false);
|
|
1207
1212
|
triggerValidation();
|
|
1208
1213
|
await invalidateRootLegalEntity();
|
|
1214
|
+
if (isExperimentEnabled(ExperimentNames.EnablePayoutVerificationMethodPageRedesign)) {
|
|
1215
|
+
showInstantVerificationPayoutModal.value = false;
|
|
1216
|
+
}
|
|
1209
1217
|
};
|
|
1210
1218
|
const handleOnBack = () => {
|
|
1211
1219
|
setHideVerificationWidget(false);
|
|
@@ -1232,7 +1240,7 @@ function BankVerification(props) {
|
|
|
1232
1240
|
/* @__PURE__ */ jsx(StateContextSetter, { owner: id, stateRef }),
|
|
1233
1241
|
bankInfoValidated && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1234
1242
|
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
1235
|
-
/* @__PURE__ */ jsx(Alert, { title:
|
|
1243
|
+
/* @__PURE__ */ jsx(Alert, { title: t(($) => $["youSuccessfullyVerifiedAccount"]), variant: "success" })
|
|
1236
1244
|
] }),
|
|
1237
1245
|
provider && formIsActive && !bankInfoValidated && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-bank-verification-container", children: /* @__PURE__ */ jsx("form", { className: "adyen-kyc-bank-verification", children: !hideVerificationWidget ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1238
1246
|
/* @__PURE__ */ jsx(
|
|
@@ -1247,7 +1255,7 @@ function BankVerification(props) {
|
|
|
1247
1255
|
createTrustedTransferInstrument: createTrustedTransferInstrument2
|
|
1248
1256
|
}
|
|
1249
1257
|
),
|
|
1250
|
-
/* @__PURE__ */ jsx(ActionBar, { onBack: handleOnBack, backButtonLabel:
|
|
1258
|
+
/* @__PURE__ */ jsx(ActionBar, { onBack: handleOnBack, backButtonLabel: commonT(($) => $["goBack"]) })
|
|
1251
1259
|
] }) : void 0 }) })
|
|
1252
1260
|
] });
|
|
1253
1261
|
}
|
|
@@ -2158,7 +2166,7 @@ const payoutCurrencySupport = {
|
|
|
2158
2166
|
const shouldShowCheckGuidance = (country) => country === "US";
|
|
2159
2167
|
const shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
|
|
2160
2168
|
const shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultipleCurrencies.has(country);
|
|
2161
|
-
const getSupportedCurrencyGuidance = (
|
|
2169
|
+
const getSupportedCurrencyGuidance = (t, country, requiredFields) => {
|
|
2162
2170
|
const format = requiredFields.includes("iban") ? "iban" : "local";
|
|
2163
2171
|
if (!shouldShowPayoutAlert(country)) {
|
|
2164
2172
|
return;
|
|
@@ -2167,11 +2175,10 @@ const getSupportedCurrencyGuidance = (i18n, country, requiredFields) => {
|
|
|
2167
2175
|
if (!supportedCurrencies) {
|
|
2168
2176
|
return;
|
|
2169
2177
|
}
|
|
2170
|
-
return supportedCurrencies.length > 1 ?
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
});
|
|
2178
|
+
return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
|
|
2179
|
+
currencyOne: supportedCurrencies[0],
|
|
2180
|
+
currencyTwo: supportedCurrencies[1]
|
|
2181
|
+
}) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
|
|
2175
2182
|
};
|
|
2176
2183
|
const getSupportedCurrenciesPerFormat = (country, format) => {
|
|
2177
2184
|
const supportedCurrencies = payoutCurrencySupport[country];
|
|
@@ -2194,7 +2201,7 @@ const isLocalCurrency = (country, currency) => {
|
|
|
2194
2201
|
const AccountHolderDescriptionFragment = ({
|
|
2195
2202
|
legalEntityResponse
|
|
2196
2203
|
}) => {
|
|
2197
|
-
const {
|
|
2204
|
+
const { t } = useTranslation("banking");
|
|
2198
2205
|
const hasSolePropEntityAssociations = hasOwnEntityAssociationOfType(
|
|
2199
2206
|
LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
2200
2207
|
legalEntityResponse.entityAssociations,
|
|
@@ -2208,7 +2215,7 @@ const AccountHolderDescriptionFragment = ({
|
|
|
2208
2215
|
);
|
|
2209
2216
|
const { individual: individual2 } = legalEntityResponse;
|
|
2210
2217
|
return /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2211
|
-
`${
|
|
2218
|
+
`${t(($) => $["bankAccountHasToBeInYourName"])} `,
|
|
2212
2219
|
/* @__PURE__ */ jsx(
|
|
2213
2220
|
Typography,
|
|
2214
2221
|
{
|
|
@@ -2217,7 +2224,7 @@ const AccountHolderDescriptionFragment = ({
|
|
|
2217
2224
|
children: `${individual2?.name.firstName} ${individual2?.name.lastName}`
|
|
2218
2225
|
}
|
|
2219
2226
|
),
|
|
2220
|
-
` ${
|
|
2227
|
+
` ${t(($) => $["orSoleProprietorshipName"])} `,
|
|
2221
2228
|
" ",
|
|
2222
2229
|
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-stronger", children: `${soleProp?.name ?? ""}` })
|
|
2223
2230
|
] });
|
|
@@ -2231,29 +2238,23 @@ const AccountHolderDescriptionFragment = ({
|
|
|
2231
2238
|
const trust = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "trust");
|
|
2232
2239
|
if (legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL) {
|
|
2233
2240
|
return /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2234
|
-
`${
|
|
2235
|
-
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-stronger", children:
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
trustName: trust?.name ?? ""
|
|
2239
|
-
}
|
|
2241
|
+
`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `,
|
|
2242
|
+
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-stronger", children: t(($) => $["trusteeAsTrusteeForTrust"], {
|
|
2243
|
+
trusteeName: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse?.individual?.name.lastName}`,
|
|
2244
|
+
trustName: trust?.name ?? ""
|
|
2240
2245
|
}) })
|
|
2241
2246
|
] });
|
|
2242
2247
|
}
|
|
2243
|
-
const companyTrusteeBankAccountName = legalEntityResponse?.organization?.legalName !== legalEntityResponse?.organization?.doingBusinessAs ?
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
values: {
|
|
2251
|
-
trusteeName: legalEntityResponse?.organization?.legalName ?? "",
|
|
2252
|
-
trustName: trust?.name ?? ""
|
|
2253
|
-
}
|
|
2248
|
+
const companyTrusteeBankAccountName = legalEntityResponse?.organization?.legalName !== legalEntityResponse?.organization?.doingBusinessAs ? t(($) => $["trusteeAsTrusteeForTrustDoingBusinessAs"], {
|
|
2249
|
+
trusteeName: legalEntityResponse?.organization?.legalName ?? "",
|
|
2250
|
+
trustName: trust?.name ?? "",
|
|
2251
|
+
tradingName: legalEntityResponse?.organization?.doingBusinessAs
|
|
2252
|
+
}) : t(($) => $["trusteeAsTrusteeForTrust"], {
|
|
2253
|
+
trusteeName: legalEntityResponse?.organization?.legalName ?? "",
|
|
2254
|
+
trustName: trust?.name ?? ""
|
|
2254
2255
|
});
|
|
2255
2256
|
return /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2256
|
-
`${
|
|
2257
|
+
`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `,
|
|
2257
2258
|
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-stronger", children: companyTrusteeBankAccountName })
|
|
2258
2259
|
] });
|
|
2259
2260
|
}
|
|
@@ -2267,22 +2268,20 @@ const AccountHolderDescriptionFragment = ({
|
|
|
2267
2268
|
(ea) => ea.entityType === "unincorporatedPartnership"
|
|
2268
2269
|
);
|
|
2269
2270
|
const partnerNames = unincorporatedPartnershipMembers?.map((member) => member?.name)?.sort();
|
|
2270
|
-
return /* @__PURE__ */ jsx(Typography, { children: `${
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
partnershipName: unincorporatedPartnership?.name ?? ""
|
|
2274
|
-
}
|
|
2271
|
+
return /* @__PURE__ */ jsx(Typography, { children: `${t(($) => $["bankAccountToHaveSameNameAsUnincorporatedPartnership"], {
|
|
2272
|
+
partnerNames: `${partnerNames?.join(", ")}`,
|
|
2273
|
+
partnershipName: unincorporatedPartnership?.name ?? ""
|
|
2275
2274
|
})} ` });
|
|
2276
2275
|
}
|
|
2277
2276
|
if (legalEntityResponse.type === LegalEntityTypes.ORGANIZATION) {
|
|
2278
2277
|
return /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2279
|
-
`${
|
|
2278
|
+
`${t(($) => $["bankAccountHasToBeInYourCompanyName"])} `,
|
|
2280
2279
|
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-stronger", children: legalEntityResponse?.organization?.legalName })
|
|
2281
2280
|
] });
|
|
2282
2281
|
}
|
|
2283
2282
|
const { individual } = legalEntityResponse;
|
|
2284
2283
|
return /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2285
|
-
`${
|
|
2284
|
+
`${t(($) => $["bankAccountHasToBeInYourName"])} `,
|
|
2286
2285
|
/* @__PURE__ */ jsx(
|
|
2287
2286
|
Typography,
|
|
2288
2287
|
{
|
|
@@ -2297,7 +2296,7 @@ const checkGuidance = "adyen-kyc-check-guidance";
|
|
|
2297
2296
|
const checkGuidanceImage = "adyen-kyc-check-guidance-image";
|
|
2298
2297
|
const checkGuidanceAnnotated = "adyen-kyc-check-guidance-annotated";
|
|
2299
2298
|
const checkGuidanceInactive = "adyen-kyc-check-guidance-inactive";
|
|
2300
|
-
const styles = {
|
|
2299
|
+
const styles$1 = {
|
|
2301
2300
|
checkGuidance,
|
|
2302
2301
|
checkGuidanceImage,
|
|
2303
2302
|
checkGuidanceAnnotated,
|
|
@@ -2307,13 +2306,13 @@ const usCheckAccount = lazy(() => import("./us-check-account-number-C7KE5YzX.js"
|
|
|
2307
2306
|
const usCheckRouting = lazy(() => import("./us-check-routing-number-DUbhsYAR.js"));
|
|
2308
2307
|
const usCheck = lazy(() => import("./us-check-CYY6Crhr.js"));
|
|
2309
2308
|
const CheckGuidance = ({ annotated }) => {
|
|
2310
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.checkGuidance, children: [
|
|
2309
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.checkGuidance, children: [
|
|
2311
2310
|
/* @__PURE__ */ jsx(
|
|
2312
2311
|
Image,
|
|
2313
2312
|
{
|
|
2314
2313
|
lazyLoadedImage: usCheckAccount,
|
|
2315
|
-
className: cx(styles.checkGuidanceImage, styles.checkGuidanceAnnotated, {
|
|
2316
|
-
[styles.checkGuidanceInactive]: annotated !== "account"
|
|
2314
|
+
className: cx(styles$1.checkGuidanceImage, styles$1.checkGuidanceAnnotated, {
|
|
2315
|
+
[styles$1.checkGuidanceInactive]: annotated !== "account"
|
|
2317
2316
|
})
|
|
2318
2317
|
}
|
|
2319
2318
|
),
|
|
@@ -2321,12 +2320,12 @@ const CheckGuidance = ({ annotated }) => {
|
|
|
2321
2320
|
Image,
|
|
2322
2321
|
{
|
|
2323
2322
|
lazyLoadedImage: usCheckRouting,
|
|
2324
|
-
className: cx(styles.checkGuidanceImage, styles.checkGuidanceAnnotated, {
|
|
2325
|
-
[styles.checkGuidanceInactive]: annotated !== "routing"
|
|
2323
|
+
className: cx(styles$1.checkGuidanceImage, styles$1.checkGuidanceAnnotated, {
|
|
2324
|
+
[styles$1.checkGuidanceInactive]: annotated !== "routing"
|
|
2326
2325
|
})
|
|
2327
2326
|
}
|
|
2328
2327
|
),
|
|
2329
|
-
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: usCheck, className: styles.checkGuidanceImage })
|
|
2328
|
+
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: usCheck, className: styles$1.checkGuidanceImage })
|
|
2330
2329
|
] });
|
|
2331
2330
|
};
|
|
2332
2331
|
const payoutAccountFields = [
|
|
@@ -2342,7 +2341,6 @@ function PayoutAccount(props) {
|
|
|
2342
2341
|
const accountFormat = payoutAccountFormat.value;
|
|
2343
2342
|
const { t } = useTranslation("banking");
|
|
2344
2343
|
const { t: commonT } = useTranslation("common");
|
|
2345
|
-
const { i18n } = useI18nContext();
|
|
2346
2344
|
const [checkAnnotation, setCheckAnnotation] = useState();
|
|
2347
2345
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
2348
2346
|
const isCrossBorderPayoutsEnabled = isExperimentEnabled("EnableCrossBorderPayouts");
|
|
@@ -2447,7 +2445,7 @@ function PayoutAccount(props) {
|
|
|
2447
2445
|
shouldShowPayoutAlert(country) && !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(
|
|
2448
2446
|
Alert,
|
|
2449
2447
|
{
|
|
2450
|
-
title: getSupportedCurrencyGuidance(
|
|
2448
|
+
title: getSupportedCurrencyGuidance(t, country, requiredFields),
|
|
2451
2449
|
className: "adyen-kyc-u-margin-bottom-8"
|
|
2452
2450
|
}
|
|
2453
2451
|
),
|
|
@@ -2623,6 +2621,12 @@ const instantVerificationImage = lazy(
|
|
|
2623
2621
|
const manualVerificationImage = lazy(
|
|
2624
2622
|
() => import("./manual-verification-BvZWqA00.js")
|
|
2625
2623
|
);
|
|
2624
|
+
const instantVerificationImageNew = lazy(
|
|
2625
|
+
() => import("./payout-verification-instant-5u-wvFKv.js")
|
|
2626
|
+
);
|
|
2627
|
+
const manualVerificationImageNew = lazy(
|
|
2628
|
+
() => import("./payout-verification-manual-BJsf7QPE.js")
|
|
2629
|
+
);
|
|
2626
2630
|
const getProviderIconName = (providerName) => {
|
|
2627
2631
|
switch (providerName?.toLowerCase()) {
|
|
2628
2632
|
case "tink":
|
|
@@ -2635,12 +2639,12 @@ const getProviderIconName = (providerName) => {
|
|
|
2635
2639
|
return void 0;
|
|
2636
2640
|
}
|
|
2637
2641
|
};
|
|
2638
|
-
const makePayoutVerificationMethodsMetadata = (instantVerificationProviderName) => ({
|
|
2642
|
+
const makePayoutVerificationMethodsMetadata = (instantVerificationProviderName, makePayoutVerificationMethodsMetadata2) => ({
|
|
2639
2643
|
instantVerification: {
|
|
2640
2644
|
name: "verifyViaMobileBankingAppOrWebsite",
|
|
2641
2645
|
subtitle: "instant",
|
|
2646
|
+
svgImport: makePayoutVerificationMethodsMetadata2 ? instantVerificationImageNew : instantVerificationImage,
|
|
2642
2647
|
description: "instantVerificationDescription",
|
|
2643
|
-
svgImport: instantVerificationImage,
|
|
2644
2648
|
provider: instantVerificationProviderName ? {
|
|
2645
2649
|
name: instantVerificationProviderName,
|
|
2646
2650
|
svgImport: getProviderIconName(instantVerificationProviderName)
|
|
@@ -2650,7 +2654,7 @@ const makePayoutVerificationMethodsMetadata = (instantVerificationProviderName)
|
|
|
2650
2654
|
name: "uploadABankStatement",
|
|
2651
2655
|
subtitle: "mayTakeAFewDays",
|
|
2652
2656
|
description: "manualVerificationDescription",
|
|
2653
|
-
svgImport: manualVerificationImage
|
|
2657
|
+
svgImport: makePayoutVerificationMethodsMetadata2 ? manualVerificationImageNew : manualVerificationImage
|
|
2654
2658
|
}
|
|
2655
2659
|
});
|
|
2656
2660
|
const payoutVerificationMethods = ["instantVerification", "manualVerification"];
|
|
@@ -2667,22 +2671,32 @@ const getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
|
|
|
2667
2671
|
return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2668
2672
|
}
|
|
2669
2673
|
};
|
|
2670
|
-
const
|
|
2674
|
+
const fieldVerificationMethods = "adyen-kyc-field-verification-methods";
|
|
2675
|
+
const fieldVerificationMethodsCard = "adyen-kyc-field-verification-methods-card";
|
|
2676
|
+
const fieldVerificationMethodsFooter = "adyen-kyc-field-verification-methods-footer";
|
|
2677
|
+
const fieldVerificationMethodsLogo = "adyen-kyc-field-verification-methods-logo";
|
|
2678
|
+
const instantVerificationError = "adyen-kyc-instant-verification-error";
|
|
2679
|
+
const payoutVerificationMethodCard = "adyen-kyc-payout-verification-method-card";
|
|
2680
|
+
const payoutVerificationMethodCardImage = "adyen-kyc-payout-verification-method-card-image";
|
|
2681
|
+
const payoutVerificationMethodCardBody = "adyen-kyc-payout-verification-method-card-body";
|
|
2682
|
+
const payoutVerificationMethodCardImageContainer = "adyen-kyc-payout-verification-method-card-image-container";
|
|
2683
|
+
const styles = {
|
|
2684
|
+
fieldVerificationMethods,
|
|
2685
|
+
fieldVerificationMethodsCard,
|
|
2686
|
+
fieldVerificationMethodsFooter,
|
|
2687
|
+
fieldVerificationMethodsLogo,
|
|
2688
|
+
instantVerificationError,
|
|
2689
|
+
payoutVerificationMethodCard,
|
|
2690
|
+
payoutVerificationMethodCardImage,
|
|
2691
|
+
payoutVerificationMethodCardBody,
|
|
2692
|
+
payoutVerificationMethodCardImageContainer
|
|
2693
|
+
};
|
|
2694
|
+
const PayoutVerificationMethodOptionIcon = ({
|
|
2671
2695
|
method,
|
|
2672
2696
|
methodsMetadata
|
|
2673
2697
|
}) => {
|
|
2674
|
-
const {
|
|
2675
|
-
|
|
2676
|
-
return provider ? /* @__PURE__ */ jsxs(Typography, { el: "div", variant: "caption", className: "adyen-kyc-field-verification-methods__footer", children: [
|
|
2677
|
-
i18n.get("poweredBy"),
|
|
2678
|
-
provider.svgImport ? /* @__PURE__ */ jsx(
|
|
2679
|
-
Image,
|
|
2680
|
-
{
|
|
2681
|
-
className: "adyen-kyc-field-verification-methods__logo",
|
|
2682
|
-
lazyLoadedImage: provider.svgImport
|
|
2683
|
-
}
|
|
2684
|
-
) : ` ${provider.name}`
|
|
2685
|
-
] }) : null;
|
|
2698
|
+
const { svgImport } = methodsMetadata[method];
|
|
2699
|
+
return /* @__PURE__ */ jsx(Image, { className: styles.payoutVerificationMethodCardImage, lazyLoadedImage: svgImport });
|
|
2686
2700
|
};
|
|
2687
2701
|
const payoutVerificationMethodFields = ["payoutVerificationMethod", "bankCountry", ...accountVerificationFields];
|
|
2688
2702
|
function PayoutVerificationMethod(props) {
|
|
@@ -2703,10 +2717,13 @@ function PayoutVerificationMethod(props) {
|
|
|
2703
2717
|
const { type: legalEntityType } = legalEntityResponse;
|
|
2704
2718
|
const { t } = useTranslation("banking");
|
|
2705
2719
|
const { t: commonT } = useTranslation("common");
|
|
2706
|
-
const
|
|
2720
|
+
const instantVerificationError2 = useContext(InstantVerificationErrorContext);
|
|
2707
2721
|
const { isSettingEnabled } = useSettingsContext();
|
|
2708
2722
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
2709
2723
|
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
2724
|
+
const isPayoutVerificationMethodPageRedesignEnabled = isExperimentEnabled(
|
|
2725
|
+
ExperimentNames.EnablePayoutVerificationMethodPageRedesign
|
|
2726
|
+
);
|
|
2710
2727
|
const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(
|
|
2711
2728
|
SettingNames.AllowIntraRegionCrossBorderPayout
|
|
2712
2729
|
);
|
|
@@ -2738,18 +2755,40 @@ function PayoutVerificationMethod(props) {
|
|
|
2738
2755
|
() => updateStateSlice({ data: { ...sliceData, ...data }, errors, valid, fieldProblems }),
|
|
2739
2756
|
[data, errors, fieldProblems, valid]
|
|
2740
2757
|
);
|
|
2741
|
-
const methodsMetadata = makePayoutVerificationMethodsMetadata(
|
|
2758
|
+
const methodsMetadata = makePayoutVerificationMethodsMetadata(
|
|
2759
|
+
provider?.name,
|
|
2760
|
+
isPayoutVerificationMethodPageRedesignEnabled
|
|
2761
|
+
);
|
|
2762
|
+
const PayoutVerificationMethodOptionFooter = ({
|
|
2763
|
+
method,
|
|
2764
|
+
methodsMetadata: methodsMetadata2
|
|
2765
|
+
}) => {
|
|
2766
|
+
const { t: t2 } = useTranslation("common");
|
|
2767
|
+
const { provider: provider2 } = methodsMetadata2[method];
|
|
2768
|
+
return provider2 ? /* @__PURE__ */ jsxs(Typography, { el: "div", variant: "caption", className: styles.fieldVerificationMethodsFooter, children: [
|
|
2769
|
+
t2(($) => $["poweredBy"]),
|
|
2770
|
+
provider2.svgImport ? /* @__PURE__ */ jsx(
|
|
2771
|
+
Image,
|
|
2772
|
+
{
|
|
2773
|
+
className: styles.fieldVerificationMethodsLogo,
|
|
2774
|
+
lazyLoadedImage: provider2.svgImport
|
|
2775
|
+
}
|
|
2776
|
+
) : ` ${provider2.name}`
|
|
2777
|
+
] }) : null;
|
|
2778
|
+
};
|
|
2742
2779
|
const selectVerificationMethod = (method) => {
|
|
2743
2780
|
setHasSelectedMethod(true);
|
|
2744
2781
|
handleChangeFor("payoutVerificationMethod")(method);
|
|
2745
2782
|
};
|
|
2746
2783
|
useEffect(() => {
|
|
2747
2784
|
if (bankInfoValidated || enabledUnbiasedVerificationMethod) return;
|
|
2748
|
-
if (!
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2785
|
+
if (!isExperimentEnabled(ExperimentNames.EnablePayoutVerificationMethodPageRedesign)) {
|
|
2786
|
+
if (!hasSelectedMethod && instantVerificationAvailable && data.payoutVerificationMethod !== "instantVerification") {
|
|
2787
|
+
handleChangeFor("payoutVerificationMethod")("instantVerification");
|
|
2788
|
+
}
|
|
2789
|
+
if (!instantVerificationAvailable && data.payoutVerificationMethod !== "manualVerification") {
|
|
2790
|
+
handleChangeFor("payoutVerificationMethod")("manualVerification");
|
|
2791
|
+
}
|
|
2753
2792
|
}
|
|
2754
2793
|
}, [
|
|
2755
2794
|
data.payoutVerificationMethod,
|
|
@@ -2794,15 +2833,47 @@ function PayoutVerificationMethod(props) {
|
|
|
2794
2833
|
}
|
|
2795
2834
|
)
|
|
2796
2835
|
] });
|
|
2797
|
-
|
|
2836
|
+
const PayoutVerificationMethodOptionCard = ({
|
|
2837
|
+
payoutMethod,
|
|
2838
|
+
title,
|
|
2839
|
+
subtitle,
|
|
2840
|
+
tag
|
|
2841
|
+
}) => /* @__PURE__ */ jsxs(
|
|
2842
|
+
Card,
|
|
2843
|
+
{
|
|
2844
|
+
className: cx(styles.payoutVerificationMethodCard, {
|
|
2845
|
+
"adyen-kyc-u-margin-bottom-8": payoutMethod === "instantVerification"
|
|
2846
|
+
}),
|
|
2847
|
+
bodyClassName: styles.payoutVerificationMethodCardBody,
|
|
2848
|
+
onClick: () => selectVerificationMethod(payoutMethod),
|
|
2849
|
+
stateful: true,
|
|
2850
|
+
active: payoutMethod === data.payoutVerificationMethod,
|
|
2851
|
+
children: [
|
|
2852
|
+
/* @__PURE__ */ jsx("div", { className: styles.payoutVerificationMethodCardImageContainer, children: /* @__PURE__ */ jsx(
|
|
2853
|
+
PayoutVerificationMethodOptionIcon,
|
|
2854
|
+
{
|
|
2855
|
+
method: payoutMethod,
|
|
2856
|
+
methodsMetadata
|
|
2857
|
+
}
|
|
2858
|
+
) }),
|
|
2859
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-16", children: [
|
|
2860
|
+
tag,
|
|
2861
|
+
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "body-strongest", className: "adyen-kyc-u-margin-bottom-8", children: title }),
|
|
2862
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: subtitle })
|
|
2863
|
+
] })
|
|
2864
|
+
]
|
|
2865
|
+
},
|
|
2866
|
+
payoutMethod
|
|
2867
|
+
);
|
|
2868
|
+
return /* @__PURE__ */ jsxs("form", { className: styles.payoutVerificationMethod, children: [
|
|
2798
2869
|
heading && /* @__PURE__ */ jsx(Header, { title: heading, children: /* @__PURE__ */ jsx("template", { slot: "description", children: description }) }),
|
|
2799
|
-
|
|
2870
|
+
instantVerificationError2 && /* @__PURE__ */ jsx(
|
|
2800
2871
|
Alert,
|
|
2801
2872
|
{
|
|
2802
2873
|
variant: "error",
|
|
2803
|
-
className:
|
|
2804
|
-
title:
|
|
2805
|
-
children:
|
|
2874
|
+
className: styles.instantVerificationError,
|
|
2875
|
+
title: instantVerificationError2.title,
|
|
2876
|
+
children: instantVerificationError2.content && /* @__PURE__ */ jsx("p", { className: "adyen-kyc-u-margin-0", children: instantVerificationError2.content })
|
|
2806
2877
|
}
|
|
2807
2878
|
),
|
|
2808
2879
|
!isExperimentEnabled(ExperimentNames.EnableCrossBorderPayouts) && countryField,
|
|
@@ -2816,7 +2887,25 @@ function PayoutVerificationMethod(props) {
|
|
|
2816
2887
|
helper: instantVerificationAvailable ? void 0 : t(($) => $["weDoNotYetSupportInstantVerificationForBankAccountsIn"], {
|
|
2817
2888
|
countryName: bankCountryName
|
|
2818
2889
|
}),
|
|
2819
|
-
children: (childProps) => /* @__PURE__ */
|
|
2890
|
+
children: (childProps) => isPayoutVerificationMethodPageRedesignEnabled ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2891
|
+
/* @__PURE__ */ jsx(
|
|
2892
|
+
PayoutVerificationMethodOptionCard,
|
|
2893
|
+
{
|
|
2894
|
+
payoutMethod: "instantVerification",
|
|
2895
|
+
title: t(($) => $["verifyViaMobileBankingAppOrWebsite"]),
|
|
2896
|
+
subtitle: t(($) => $["instantVerificationDescription"]),
|
|
2897
|
+
tag: /* @__PURE__ */ jsx(Tag, { variant: "blue", className: "adyen-kyc-u-margin-bottom-8", children: t(($) => $["recommended"]) })
|
|
2898
|
+
}
|
|
2899
|
+
),
|
|
2900
|
+
/* @__PURE__ */ jsx(
|
|
2901
|
+
PayoutVerificationMethodOptionCard,
|
|
2902
|
+
{
|
|
2903
|
+
payoutMethod: "manualVerification",
|
|
2904
|
+
title: t(($) => $["uploadABankStatement"]),
|
|
2905
|
+
subtitle: t(($) => $["mayTakeAFewDays"])
|
|
2906
|
+
}
|
|
2907
|
+
)
|
|
2908
|
+
] }) : /* @__PURE__ */ jsx(
|
|
2820
2909
|
RadioGroupCard,
|
|
2821
2910
|
{
|
|
2822
2911
|
...childProps,
|
|
@@ -2828,12 +2917,18 @@ function PayoutVerificationMethod(props) {
|
|
|
2828
2917
|
optionName: (method) => t(($) => $[methodsMetadata[method].name]),
|
|
2829
2918
|
optionDescription: (method) => t(($) => $[methodsMetadata[method].description]),
|
|
2830
2919
|
optionSubtitle: (method) => t(($) => $[methodsMetadata[method].subtitle]),
|
|
2831
|
-
className:
|
|
2920
|
+
className: styles.fieldVerificationMethods,
|
|
2832
2921
|
optionClassNames: () => ({
|
|
2833
|
-
label:
|
|
2922
|
+
label: styles.fieldVerificationMethodsCard
|
|
2834
2923
|
}),
|
|
2835
2924
|
isOptionDisabled: (option) => bankInfoValidated || option === "instantVerification" && !instantVerificationAvailable,
|
|
2836
|
-
renderOptionIcon: (method) => /* @__PURE__ */ jsx(
|
|
2925
|
+
renderOptionIcon: (method) => /* @__PURE__ */ jsx(
|
|
2926
|
+
PayoutVerificationMethodOptionIcon,
|
|
2927
|
+
{
|
|
2928
|
+
method,
|
|
2929
|
+
methodsMetadata
|
|
2930
|
+
}
|
|
2931
|
+
),
|
|
2837
2932
|
renderOptionFooter: (method) => /* @__PURE__ */ jsx(
|
|
2838
2933
|
PayoutVerificationMethodOptionFooter,
|
|
2839
2934
|
{
|
|
@@ -2843,7 +2938,7 @@ function PayoutVerificationMethod(props) {
|
|
|
2843
2938
|
),
|
|
2844
2939
|
floatingRadio: true
|
|
2845
2940
|
}
|
|
2846
|
-
)
|
|
2941
|
+
)
|
|
2847
2942
|
}
|
|
2848
2943
|
),
|
|
2849
2944
|
/* @__PURE__ */ jsx(
|
|
@@ -2899,7 +2994,6 @@ const payoutSteps = {
|
|
|
2899
2994
|
formId: "payoutAccountDocuments",
|
|
2900
2995
|
formName: "bankDocument",
|
|
2901
2996
|
formHeader: "bankDocumentHeader",
|
|
2902
|
-
formDescription: "bankDocumentDescription",
|
|
2903
2997
|
fields: bankDocumentFields
|
|
2904
2998
|
},
|
|
2905
2999
|
payoutAccountVerification: {
|
|
@@ -2932,7 +3026,7 @@ function PayoutDetails(props) {
|
|
|
2932
3026
|
onBack,
|
|
2933
3027
|
trustedTransferInstrumentId
|
|
2934
3028
|
} = props;
|
|
2935
|
-
const [
|
|
3029
|
+
const [instantVerificationError2, setInstantVerificationError] = useInstantVerificationErrorNotification(1e4);
|
|
2936
3030
|
const payoutCountryDetailsFormProps = getFormProps(props, PayoutCountryDetailsFormID);
|
|
2937
3031
|
const verificationMethodFormProps = getFormProps(props, PayoutVerificationMethodFormID);
|
|
2938
3032
|
const accountVerificationFormProps = getFormProps(props, PayoutAccountVerificationFormID);
|
|
@@ -3003,7 +3097,7 @@ function PayoutDetails(props) {
|
|
|
3003
3097
|
"div",
|
|
3004
3098
|
{
|
|
3005
3099
|
className: activeForm?.formId !== PayoutVerificationMethodFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
3006
|
-
children: /* @__PURE__ */ jsx(InstantVerificationErrorContext.Provider, { value:
|
|
3100
|
+
children: /* @__PURE__ */ jsx(InstantVerificationErrorContext.Provider, { value: instantVerificationError2, children: /* @__PURE__ */ jsx(
|
|
3007
3101
|
PayoutVerificationMethod,
|
|
3008
3102
|
{
|
|
3009
3103
|
...verificationMethodFormProps,
|
|
@@ -3096,7 +3190,24 @@ function PayoutDetails(props) {
|
|
|
3096
3190
|
showPayoutVerificationMethodError.value = false;
|
|
3097
3191
|
}
|
|
3098
3192
|
}
|
|
3099
|
-
) })
|
|
3193
|
+
) }),
|
|
3194
|
+
/* @__PURE__ */ jsx(Show, { when: showInstantVerificationPayoutModal, children: /* @__PURE__ */ jsx(Modal, { ariaLabel: "Bank Verification Modal", children: /* @__PURE__ */ jsx(
|
|
3195
|
+
BankVerification,
|
|
3196
|
+
{
|
|
3197
|
+
...accountVerificationFormProps,
|
|
3198
|
+
heading: t(($) => $["bankAccountVerification"]),
|
|
3199
|
+
id: PayoutAccountVerificationFormID,
|
|
3200
|
+
provider,
|
|
3201
|
+
country: bankCountry,
|
|
3202
|
+
onBack,
|
|
3203
|
+
hideSidebar: setHideSidebar,
|
|
3204
|
+
setBankVerificationError: setInstantVerificationError,
|
|
3205
|
+
bankInfoValidated,
|
|
3206
|
+
setBankInfoValidated,
|
|
3207
|
+
formIsActive: activeForm?.formId === PayoutVerificationMethodFormID,
|
|
3208
|
+
createTrustedTransferInstrument: createTrustedTransferInstrument2
|
|
3209
|
+
}
|
|
3210
|
+
) }) })
|
|
3100
3211
|
] });
|
|
3101
3212
|
}
|
|
3102
3213
|
const rules = ({
|
|
@@ -3341,6 +3452,7 @@ const getPayoutVerificationMethod = (transferInstrument, instantVerificationEnab
|
|
|
3341
3452
|
return enabledUnbiasedVerificationMethod || !instantVerificationEnabled ? void 0 : "instantVerification";
|
|
3342
3453
|
}
|
|
3343
3454
|
};
|
|
3455
|
+
const showInstantVerificationPayoutModal = signal(false);
|
|
3344
3456
|
function PayoutDetailsDropin({
|
|
3345
3457
|
legalEntityResponse,
|
|
3346
3458
|
associatedLegalArrangement,
|
|
@@ -3372,8 +3484,8 @@ function PayoutDetailsDropin({
|
|
|
3372
3484
|
const [previousTrustedInstrumentStatus, setPreviousTrustedInstrumentStatus] = useState(
|
|
3373
3485
|
createTrustedTransferInstrumentStatus
|
|
3374
3486
|
);
|
|
3375
|
-
const { t, i18n: i18next } = useTranslation("
|
|
3376
|
-
const {
|
|
3487
|
+
const { t, i18n: i18next } = useTranslation("banking");
|
|
3488
|
+
const { t: commonT } = useTranslation("common");
|
|
3377
3489
|
const userEvents = useAnalyticsContext();
|
|
3378
3490
|
const { showToast, clearToasts } = useToastContext();
|
|
3379
3491
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -3390,6 +3502,9 @@ function PayoutDetailsDropin({
|
|
|
3390
3502
|
const enabledUnbiasedVerificationMethod = isExperimentEnabled(
|
|
3391
3503
|
"BankVerificationMethodAutonomy_UnbiasedSelection"
|
|
3392
3504
|
);
|
|
3505
|
+
const isPayoutVerificationMethodPageRedesignEnabled = isExperimentEnabled(
|
|
3506
|
+
ExperimentNames.EnablePayoutVerificationMethodPageRedesign
|
|
3507
|
+
);
|
|
3393
3508
|
const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
|
|
3394
3509
|
const fallbackCurrency = currencyByCountry[defaultPayoutCountry]?.[0];
|
|
3395
3510
|
const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
|
|
@@ -3520,6 +3635,8 @@ function PayoutDetailsDropin({
|
|
|
3520
3635
|
});
|
|
3521
3636
|
const checkAsAServiceResultStatus = checkAsAServiceData?.status;
|
|
3522
3637
|
const checkAsAServiceResultErrors = checkAsAServiceData?.errors;
|
|
3638
|
+
const provider = providers?.[0];
|
|
3639
|
+
const isInstantVerificationFlow = data.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
|
|
3523
3640
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
3524
3641
|
const payoutDetailsSteps = useMemo(() => {
|
|
3525
3642
|
const appropriatePayoutDetailsSteps = getAppropriatePayoutDetailsSteps(
|
|
@@ -3578,7 +3695,10 @@ function PayoutDetailsDropin({
|
|
|
3578
3695
|
documentUtils.fetchDocuments(transferInstrument.documentDetails, transferInstrument.id).then(() => {
|
|
3579
3696
|
setDocuments(mapApiDocumentToPayoutDocuments(transferInstrument.id));
|
|
3580
3697
|
}).catch(() => {
|
|
3581
|
-
showToast({
|
|
3698
|
+
showToast({
|
|
3699
|
+
label: commonT(($) => $["failedToFetchRelevantDocuments"]),
|
|
3700
|
+
variant: "error"
|
|
3701
|
+
});
|
|
3582
3702
|
});
|
|
3583
3703
|
}
|
|
3584
3704
|
}, [transferInstrument?.documentDetails]);
|
|
@@ -3614,7 +3734,7 @@ function PayoutDetailsDropin({
|
|
|
3614
3734
|
payoutAccountDocuments: { bankStatementDocument: true }
|
|
3615
3735
|
}
|
|
3616
3736
|
});
|
|
3617
|
-
throw new Error(
|
|
3737
|
+
throw new Error(commonT(($) => $["remediationMessage_1_704"]));
|
|
3618
3738
|
} finally {
|
|
3619
3739
|
await refetchTransferInstrument?.();
|
|
3620
3740
|
}
|
|
@@ -3674,18 +3794,18 @@ function PayoutDetailsDropin({
|
|
|
3674
3794
|
const validationErrors = processValidationErrors(e, taskType);
|
|
3675
3795
|
setProblems({ ...problems, validationErrors });
|
|
3676
3796
|
} else if (isIdDocumentUploadError(e)) {
|
|
3677
|
-
showToast({ label:
|
|
3797
|
+
showToast({ label: t(($) => $["idDocumentAlreadyUploaded"]), variant: "error" });
|
|
3678
3798
|
} else if (isBankStatementUploadError(e)) {
|
|
3679
|
-
showToast({ label:
|
|
3799
|
+
showToast({ label: t(($) => $["bankStatementAlreadyUploaded"]), variant: "error" });
|
|
3680
3800
|
} else if (isMaintenanceModeError(e)) {
|
|
3681
3801
|
showToast({
|
|
3682
|
-
label:
|
|
3802
|
+
label: commonT(($) => $["maintenanceModeMessage"]),
|
|
3683
3803
|
variant: "error",
|
|
3684
3804
|
duration: "indefinite"
|
|
3685
3805
|
});
|
|
3686
3806
|
} else {
|
|
3687
3807
|
const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
|
|
3688
|
-
showToast({ label:
|
|
3808
|
+
showToast({ label: commonT(($) => $[errorTranslatable]), variant: "error" });
|
|
3689
3809
|
}
|
|
3690
3810
|
setIsSubmitting(false);
|
|
3691
3811
|
userEvents.addTaskEvent("Encountered error", {
|
|
@@ -3700,13 +3820,13 @@ function PayoutDetailsDropin({
|
|
|
3700
3820
|
const formatFileSummaryData = (bankDocuments) => {
|
|
3701
3821
|
const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
|
|
3702
3822
|
return {
|
|
3703
|
-
documentType: bankDocuments?.documentType &&
|
|
3823
|
+
documentType: bankDocuments?.documentType && commonT(($) => $[bankDocuments?.documentType]),
|
|
3704
3824
|
fileName: bankStatementDocument?.name,
|
|
3705
3825
|
description: bankDocuments?.description
|
|
3706
3826
|
};
|
|
3707
3827
|
};
|
|
3708
3828
|
const canSubmit = () => {
|
|
3709
|
-
if (
|
|
3829
|
+
if (isInstantVerificationFlow) {
|
|
3710
3830
|
return false;
|
|
3711
3831
|
}
|
|
3712
3832
|
const bankDetails = data.payoutAccountDetails;
|
|
@@ -3743,7 +3863,7 @@ function PayoutDetailsDropin({
|
|
|
3743
3863
|
refetchBankVerificationProviders();
|
|
3744
3864
|
const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
|
|
3745
3865
|
if (errorTranslatable === "transferInstrumentLimitHasAlreadyBeenMet") {
|
|
3746
|
-
showToast({ label:
|
|
3866
|
+
showToast({ label: commonT(($) => $[errorTranslatable]), variant: "error" });
|
|
3747
3867
|
}
|
|
3748
3868
|
throw e;
|
|
3749
3869
|
}
|
|
@@ -3787,6 +3907,14 @@ function PayoutDetailsDropin({
|
|
|
3787
3907
|
setIsCaasCalled(false);
|
|
3788
3908
|
}, [forms, checkAsAServiceResultStatus, isCaasCalled]);
|
|
3789
3909
|
const handleFormNextClick = async () => {
|
|
3910
|
+
if (isPayoutVerificationMethodPageRedesignEnabled && activeForm.formId === "payoutVerificationMethod") {
|
|
3911
|
+
if (isInstantVerificationFlow) {
|
|
3912
|
+
showInstantVerificationPayoutModal.value = true;
|
|
3913
|
+
return;
|
|
3914
|
+
} else {
|
|
3915
|
+
handleNextClick();
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3790
3918
|
if (!data?.payoutVerificationMethod?.payoutVerificationMethod) {
|
|
3791
3919
|
showPayoutVerificationMethodError.value = true;
|
|
3792
3920
|
return;
|
|
@@ -3797,8 +3925,6 @@ function PayoutDetailsDropin({
|
|
|
3797
3925
|
setIsCaasCalled(true);
|
|
3798
3926
|
if (response?.status === "INCOMPLETE_INPUT") {
|
|
3799
3927
|
setIsModalOpen(true);
|
|
3800
|
-
} else {
|
|
3801
|
-
handleNextClick();
|
|
3802
3928
|
}
|
|
3803
3929
|
} catch {
|
|
3804
3930
|
handleNextClick();
|
|
@@ -3812,6 +3938,10 @@ function PayoutDetailsDropin({
|
|
|
3812
3938
|
handleNextClick();
|
|
3813
3939
|
setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
|
|
3814
3940
|
}
|
|
3941
|
+
if (isExperimentEnabled(ExperimentNames.EnablePayoutVerificationMethodPageRedesign) && activeForm.formId === "payoutVerificationMethod" && createTrustedTransferInstrumentStatus === "success") {
|
|
3942
|
+
gotoFormByFormIndex(forms.length - 1);
|
|
3943
|
+
setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
|
|
3944
|
+
}
|
|
3815
3945
|
}
|
|
3816
3946
|
const omittedForms = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
|
|
3817
3947
|
const { header: invalidFieldHeader, content: invalidFieldContent } = getInvalidFieldsErrorMessage(
|
|
@@ -3827,10 +3957,10 @@ function PayoutDetailsDropin({
|
|
|
3827
3957
|
isModalOpen && /* @__PURE__ */ jsx(
|
|
3828
3958
|
Confirm,
|
|
3829
3959
|
{
|
|
3830
|
-
title:
|
|
3831
|
-
description:
|
|
3832
|
-
cancelText:
|
|
3833
|
-
confirmText:
|
|
3960
|
+
title: t(($) => $[invalidFieldHeader]),
|
|
3961
|
+
description: t(($) => $[invalidFieldContent]),
|
|
3962
|
+
cancelText: commonT(($) => $["editDetails"]),
|
|
3963
|
+
confirmText: t(($) => $["continueAnyway"]),
|
|
3834
3964
|
onConfirm: () => {
|
|
3835
3965
|
handleNextClick();
|
|
3836
3966
|
setIsModalOpen(false);
|
|
@@ -3854,7 +3984,7 @@ function PayoutDetailsDropin({
|
|
|
3854
3984
|
summaryEditButton: ["payoutVerificationMethod"]
|
|
3855
3985
|
}
|
|
3856
3986
|
},
|
|
3857
|
-
handleBackClick,
|
|
3987
|
+
handleBackClick: !isPayoutVerificationMethodPageRedesignEnabled || activeForm.formId !== "summary" ? handleBackClick : void 0,
|
|
3858
3988
|
handleNextClick: handleFormNextClick,
|
|
3859
3989
|
handleHomeClick,
|
|
3860
3990
|
handleCloseClick,
|
|
@@ -3882,7 +4012,7 @@ function PayoutDetailsDropin({
|
|
|
3882
4012
|
setSkipSubmit,
|
|
3883
4013
|
legalEntityResponse,
|
|
3884
4014
|
associatedLegalArrangement,
|
|
3885
|
-
provider
|
|
4015
|
+
provider,
|
|
3886
4016
|
bankVendorsLoadingStatus,
|
|
3887
4017
|
instantVerificationAvailable,
|
|
3888
4018
|
createTrustedTransferInstrument: createTrustedTransferInstrumentHandler,
|