@adyen/kyc-components 2.13.3 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/{HK-0561cac3.mjs → HK-675b8651.mjs} +0 -6
- package/dist/es/adyen-kyc-components.es.js +42 -11
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/TransferInstrumentComponent/TransferInstrumentComponent.d.ts +2 -1
- package/dist/types/core/Services/kycExternalApi/company-deep-search.d.ts +2 -4
- package/dist/types/core/Services/kycExternalApi/company-index-search.d.ts +2 -4
- package/dist/types/core/Services/kycExternalApi/get-company-data.d.ts +2 -4
- package/dist/types/core/Services/kycExternalApi/refresh-company-data.d.ts +2 -4
- package/dist/types/core/Services/kycExternalApi/verify-tin.d.ts +2 -4
- package/dist/types/core/Services/utils.d.ts +2 -0
- package/dist/types/core/hooks/useFormComposer.d.ts +3 -2
- package/dist/types/core/models/api/company-search.d.ts +18 -22
- package/dist/types/core/models/api/organization.d.ts +6 -6
- package/dist/types/core/models/country-code.d.ts +1 -1
- package/dist/types/core/models/state-code.d.ts +32 -1
- package/package.json +3 -3
|
@@ -10979,7 +10979,7 @@ const idDocumentTypeOptions = [{
|
|
|
10979
10979
|
hasBackPage: false
|
|
10980
10980
|
}, {
|
|
10981
10981
|
id: DocumentType.IDENTITY_CARD,
|
|
10982
|
-
name: "
|
|
10982
|
+
name: "identityCard",
|
|
10983
10983
|
hasBackPage: true
|
|
10984
10984
|
}];
|
|
10985
10985
|
const onfidoDocumentTypeMapping = [{
|
|
@@ -10988,7 +10988,7 @@ const onfidoDocumentTypeMapping = [{
|
|
|
10988
10988
|
hasBackPage: true
|
|
10989
10989
|
}, {
|
|
10990
10990
|
id: DocumentType.NATIONAL_IDENTITY_CARD,
|
|
10991
|
-
name: "
|
|
10991
|
+
name: "identityCard",
|
|
10992
10992
|
hasBackPage: true
|
|
10993
10993
|
}, {
|
|
10994
10994
|
id: DocumentType.PASSPORT,
|
|
@@ -16292,11 +16292,16 @@ const handleFetchResponse = async (response, responseType) => {
|
|
|
16292
16292
|
}
|
|
16293
16293
|
};
|
|
16294
16294
|
const isValidationErrorResponse = (response) => (response == null ? void 0 : response.status) === 422;
|
|
16295
|
+
const processValidationErrors$1 = async (response) => {
|
|
16296
|
+
const responseData = await response.json();
|
|
16297
|
+
throw new ValidationError(responseData.errorCode, responseData);
|
|
16298
|
+
};
|
|
16295
16299
|
class ValidationError extends Error {
|
|
16296
16300
|
constructor(message, validationDetails) {
|
|
16297
16301
|
super(message);
|
|
16298
16302
|
this.invalidFields = validationDetails == null ? void 0 : validationDetails.invalidFields;
|
|
16299
16303
|
this.errorCode = validationDetails == null ? void 0 : validationDetails.errorCode;
|
|
16304
|
+
this.sourceError = validationDetails;
|
|
16300
16305
|
}
|
|
16301
16306
|
}
|
|
16302
16307
|
const http = async (options, data, responseType = "json") => {
|
|
@@ -16328,8 +16333,7 @@ const http = async (options, data, responseType = "json") => {
|
|
|
16328
16333
|
return options.errorHandler(handleFetchResponse(response, responseType));
|
|
16329
16334
|
}
|
|
16330
16335
|
if (isValidationErrorResponse(response)) {
|
|
16331
|
-
|
|
16332
|
-
throw new ValidationError(responseData.errorCode, responseData);
|
|
16336
|
+
return processValidationErrors$1(response);
|
|
16333
16337
|
}
|
|
16334
16338
|
logFetchError(errorMessage, errorLevel);
|
|
16335
16339
|
throw new Error(errorMessage);
|
|
@@ -19587,6 +19591,7 @@ const useFormComposer = ({
|
|
|
19587
19591
|
forms,
|
|
19588
19592
|
formRef,
|
|
19589
19593
|
submitButtonLabel,
|
|
19594
|
+
externalBackClick,
|
|
19590
19595
|
onSubmit,
|
|
19591
19596
|
skipSubmit,
|
|
19592
19597
|
onSkipSubmit
|
|
@@ -19600,6 +19605,7 @@ const useFormComposer = ({
|
|
|
19600
19605
|
const [hasAlreadyNavigatedForm, setHasAlreadyNavigatedForm] = useState(false);
|
|
19601
19606
|
const getFormIndex = (formId) => forms.findIndex((form) => form.formId === formId);
|
|
19602
19607
|
const isFinalStep = getFormIndex(activeForm.formId) === forms.length - 1;
|
|
19608
|
+
const isFirstStep = getFormIndex(activeForm.formId) === 0;
|
|
19603
19609
|
useEffect(() => {
|
|
19604
19610
|
setActiveForm((activeForm2) => forms.find(({
|
|
19605
19611
|
formId
|
|
@@ -19644,11 +19650,11 @@ const useFormComposer = ({
|
|
|
19644
19650
|
return;
|
|
19645
19651
|
}
|
|
19646
19652
|
if (isFormSummaryStep(activeForm)) {
|
|
19647
|
-
if (skipSubmit
|
|
19648
|
-
onSkipSubmit();
|
|
19649
|
-
|
|
19653
|
+
if (skipSubmit) {
|
|
19654
|
+
onSkipSubmit == null ? void 0 : onSkipSubmit();
|
|
19655
|
+
} else {
|
|
19656
|
+
onSubmit == null ? void 0 : onSubmit();
|
|
19650
19657
|
}
|
|
19651
|
-
onSubmit();
|
|
19652
19658
|
return;
|
|
19653
19659
|
}
|
|
19654
19660
|
if (!activeForm.isValid) {
|
|
@@ -19689,8 +19695,9 @@ const useFormComposer = ({
|
|
|
19689
19695
|
}
|
|
19690
19696
|
};
|
|
19691
19697
|
const nextButtonLabel = isFinalStep ? i18n.get(submitButtonLabel ?? "submit") : i18n.get("next");
|
|
19698
|
+
const backClickHandler = isFirstStep ? externalBackClick : handleBackClick;
|
|
19692
19699
|
return {
|
|
19693
|
-
handleBackClick,
|
|
19700
|
+
handleBackClick: backClickHandler,
|
|
19694
19701
|
handleNextClick,
|
|
19695
19702
|
nextButtonLabel,
|
|
19696
19703
|
gotoFormByFormIndex,
|
|
@@ -23929,7 +23936,8 @@ function PayoutDetailsDropinComponent({
|
|
|
23929
23936
|
refreshLegalEntity,
|
|
23930
23937
|
navigateBackToTaskList,
|
|
23931
23938
|
createTrustedTransferInstrument: createTrustedTransferInstrument2,
|
|
23932
|
-
handleBankVerificationError: handleBankVerificationError2
|
|
23939
|
+
handleBankVerificationError: handleBankVerificationError2,
|
|
23940
|
+
handleBackClick: externalBackClick
|
|
23933
23941
|
}) {
|
|
23934
23942
|
var _a, _b, _c;
|
|
23935
23943
|
const {
|
|
@@ -24231,6 +24239,7 @@ function PayoutDetailsDropinComponent({
|
|
|
24231
24239
|
baseTrackingPayload,
|
|
24232
24240
|
forms,
|
|
24233
24241
|
submitButtonLabel,
|
|
24242
|
+
externalBackClick,
|
|
24234
24243
|
onSubmit,
|
|
24235
24244
|
skipSubmit,
|
|
24236
24245
|
onSkipSubmit: navigateBackToTaskList
|
|
@@ -27811,6 +27820,7 @@ function TransferInstrumentComponent({
|
|
|
27811
27820
|
transferInstrumentId,
|
|
27812
27821
|
onChange,
|
|
27813
27822
|
onSubmit,
|
|
27823
|
+
handleBackClick,
|
|
27814
27824
|
eventEmitter
|
|
27815
27825
|
}) {
|
|
27816
27826
|
const {
|
|
@@ -27852,6 +27862,7 @@ function TransferInstrumentComponent({
|
|
|
27852
27862
|
handleUpdateDocument: updateDocument2,
|
|
27853
27863
|
handleCreateTransferInstrument: createTransferInstrument2,
|
|
27854
27864
|
handleUpdateTransferInstrument: updateTransferInstrument2,
|
|
27865
|
+
handleBackClick,
|
|
27855
27866
|
hideNavigation: true,
|
|
27856
27867
|
refreshLegalEntity: fetchLegalEntity,
|
|
27857
27868
|
onChange,
|
|
@@ -27967,7 +27978,7 @@ const AuthProvider = ({
|
|
|
27967
27978
|
children
|
|
27968
27979
|
});
|
|
27969
27980
|
};
|
|
27970
|
-
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-43128b9f.mjs"), "./AE.json": () => import("./AE-81598d61.mjs"), "./AG.json": () => import("./AG-ed98ae0e.mjs"), "./AI.json": () => import("./AI-3e78c886.mjs"), "./AL.json": () => import("./AL-3ad2778a.mjs"), "./AM.json": () => import("./AM-6a5175fb.mjs"), "./AN.json": () => import("./AN-311f7139.mjs"), "./AO.json": () => import("./AO-99b5ef59.mjs"), "./AQ.json": () => import("./AQ-effe27c7.mjs"), "./AR.json": () => import("./AR-4013d95c.mjs"), "./AS.json": () => import("./AS-f15d56b2.mjs"), "./AT.json": () => import("./AT-d4d62b74.mjs"), "./AU.json": () => import("./AU-b9cba969.mjs"), "./AW.json": () => import("./AW-581f73fb.mjs"), "./AX.json": () => import("./AX-07af957a.mjs"), "./AZ.json": () => import("./AZ-be214142.mjs"), "./BA.json": () => import("./BA-af4be83f.mjs"), "./BB.json": () => import("./BB-df28f015.mjs"), "./BD.json": () => import("./BD-7aef0af6.mjs"), "./BE.json": () => import("./BE-fc7cf8d5.mjs"), "./BF.json": () => import("./BF-090b06e2.mjs"), "./BG.json": () => import("./BG-1f54cf4f.mjs"), "./BH.json": () => import("./BH-1e9cc2b9.mjs"), "./BJ.json": () => import("./BJ-d5dd5c6f.mjs"), "./BM.json": () => import("./BM-a808b13f.mjs"), "./BN.json": () => import("./BN-b13f6f6a.mjs"), "./BR.json": () => import("./BR-55d93100.mjs"), "./BS.json": () => import("./BS-db6a5bce.mjs"), "./BT.json": () => import("./BT-dfed2604.mjs"), "./BV.json": () => import("./BV-e123b0a8.mjs"), "./BW.json": () => import("./BW-08473bd7.mjs"), "./BY.json": () => import("./BY-2762d989.mjs"), "./BZ.json": () => import("./BZ-7f28b1ff.mjs"), "./CA.json": () => import("./CA-aa1f78ab.mjs"), "./CC.json": () => import("./CC-2cc6ac39.mjs"), "./CF.json": () => import("./CF-78ae0244.mjs"), "./CH.json": () => import("./CH-47f538c0.mjs"), "./CI.json": () => import("./CI-10feb889.mjs"), "./CK.json": () => import("./CK-e308c734.mjs"), "./CL.json": () => import("./CL-4a6c3e0b.mjs"), "./CM.json": () => import("./CM-fddc630d.mjs"), "./CN.json": () => import("./CN-46bb9203.mjs"), "./CO.json": () => import("./CO-1b150cda.mjs"), "./CR.json": () => import("./CR-2bf50f66.mjs"), "./CU.json": () => import("./CU-904aea8f.mjs"), "./CX.json": () => import("./CX-750ccd92.mjs"), "./CY.json": () => import("./CY-1508b23e.mjs"), "./CZ.json": () => import("./CZ-b6eaa1d5.mjs"), "./DE.json": () => import("./DE-e02051d4.mjs"), "./DJ.json": () => import("./DJ-0032728a.mjs"), "./DK.json": () => import("./DK-6116657e.mjs"), "./DM.json": () => import("./DM-a2c158c9.mjs"), "./DO.json": () => import("./DO-cedffa27.mjs"), "./DZ.json": () => import("./DZ-d44be6f8.mjs"), "./EC.json": () => import("./EC-c2e5813b.mjs"), "./EE.json": () => import("./EE-1a10f52d.mjs"), "./EG.json": () => import("./EG-8f29aebd.mjs"), "./EH.json": () => import("./EH-2dafda3e.mjs"), "./ES.json": () => import("./ES-42b3562e.mjs"), "./ET.json": () => import("./ET-ffa87ef0.mjs"), "./FI.json": () => import("./FI-8e3bb2bb.mjs"), "./FJ.json": () => import("./FJ-088ea689.mjs"), "./FK.json": () => import("./FK-16d84ff5.mjs"), "./FM.json": () => import("./FM-32616e6f.mjs"), "./FO.json": () => import("./FO-62c08e45.mjs"), "./FR.json": () => import("./FR-3db03e20.mjs"), "./GA.json": () => import("./GA-4de2f994.mjs"), "./GB.json": () => import("./GB-28ea0b5a.mjs"), "./GD.json": () => import("./GD-0ad67069.mjs"), "./GE.json": () => import("./GE-0f594b35.mjs"), "./GF.json": () => import("./GF-a062cea7.mjs"), "./GG.json": () => import("./GG-e00581ea.mjs"), "./GH.json": () => import("./GH-80209e7e.mjs"), "./GI.json": () => import("./GI-b0f7c8b3.mjs"), "./GL.json": () => import("./GL-8f5e8ba9.mjs"), "./GM.json": () => import("./GM-ff3ca013.mjs"), "./GN.json": () => import("./GN-fc7c0f8c.mjs"), "./GP.json": () => import("./GP-68f23382.mjs"), "./GQ.json": () => import("./GQ-f9867fbd.mjs"), "./GR.json": () => import("./GR-64a2d25c.mjs"), "./GS.json": () => import("./GS-49ce0f4c.mjs"), "./GT.json": () => import("./GT-fa779b14.mjs"), "./GU.json": () => import("./GU-f0dceb37.mjs"), "./GW.json": () => import("./GW-471336ea.mjs"), "./GY.json": () => import("./GY-2889ae39.mjs"), "./HK.json": () => import("./HK-0561cac3.mjs"), "./HM.json": () => import("./HM-924a724f.mjs"), "./HN.json": () => import("./HN-6dae206e.mjs"), "./HR.json": () => import("./HR-85763090.mjs"), "./HT.json": () => import("./HT-a659da85.mjs"), "./HU.json": () => import("./HU-f9ea5037.mjs"), "./ID.json": () => import("./ID-cb5cfce1.mjs"), "./IE.json": () => import("./IE-b341cbd2.mjs"), "./IL.json": () => import("./IL-657901df.mjs"), "./IM.json": () => import("./IM-5bd6279a.mjs"), "./IN.json": () => import("./IN-3c11df0e.mjs"), "./IO.json": () => import("./IO-24f6d2e7.mjs"), "./IQ.json": () => import("./IQ-241c0148.mjs"), "./IS.json": () => import("./IS-4a7e436f.mjs"), "./IT.json": () => import("./IT-f9755e76.mjs"), "./JE.json": () => import("./JE-46968fa2.mjs"), "./JM.json": () => import("./JM-a6657a34.mjs"), "./JO.json": () => import("./JO-bd1eabea.mjs"), "./JP.json": () => import("./JP-9b5a30fa.mjs"), "./KE.json": () => import("./KE-2a866579.mjs"), "./KG.json": () => import("./KG-7713761d.mjs"), "./KH.json": () => import("./KH-a5f0f831.mjs"), "./KI.json": () => import("./KI-8376e298.mjs"), "./KM.json": () => import("./KM-48c8c9c0.mjs"), "./KN.json": () => import("./KN-b34777c7.mjs"), "./KR.json": () => import("./KR-8bcf8499.mjs"), "./KW.json": () => import("./KW-4dd6ab01.mjs"), "./KY.json": () => import("./KY-4f921c93.mjs"), "./KZ.json": () => import("./KZ-68b655f3.mjs"), "./LA.json": () => import("./LA-582a34e2.mjs"), "./LB.json": () => import("./LB-7e5023a3.mjs"), "./LC.json": () => import("./LC-4e610f91.mjs"), "./LI.json": () => import("./LI-3979434e.mjs"), "./LK.json": () => import("./LK-23f5002d.mjs"), "./LT.json": () => import("./LT-2076ca77.mjs"), "./LU.json": () => import("./LU-b0538582.mjs"), "./LV.json": () => import("./LV-440617df.mjs"), "./MA.json": () => import("./MA-f2af9aa6.mjs"), "./MC.json": () => import("./MC-f619d821.mjs"), "./MD.json": () => import("./MD-ffe4e2f4.mjs"), "./ME.json": () => import("./ME-46686aa8.mjs"), "./MH.json": () => import("./MH-c535387d.mjs"), "./MK.json": () => import("./MK-11442cf1.mjs"), "./ML.json": () => import("./ML-b2c3720e.mjs"), "./MM.json": () => import("./MM-0ae1a124.mjs"), "./MN.json": () => import("./MN-baba0d9d.mjs"), "./MO.json": () => import("./MO-2c51f9f7.mjs"), "./MP.json": () => import("./MP-55044c4b.mjs"), "./MQ.json": () => import("./MQ-aaefd2b2.mjs"), "./MR.json": () => import("./MR-f122a6f0.mjs"), "./MS.json": () => import("./MS-7623ec5f.mjs"), "./MT.json": () => import("./MT-315c76bb.mjs"), "./MU.json": () => import("./MU-126673fe.mjs"), "./MV.json": () => import("./MV-d8748aca.mjs"), "./MW.json": () => import("./MW-26492427.mjs"), "./MX.json": () => import("./MX-ca79b44b.mjs"), "./MY.json": () => import("./MY-443e729e.mjs"), "./MZ.json": () => import("./MZ-192a5094.mjs"), "./NC.json": () => import("./NC-3849aac0.mjs"), "./NE.json": () => import("./NE-bf76bc84.mjs"), "./NF.json": () => import("./NF-46f5dffa.mjs"), "./NG.json": () => import("./NG-458396e5.mjs"), "./NI.json": () => import("./NI-efe8c864.mjs"), "./NL.json": () => import("./NL-3e38d0eb.mjs"), "./NO.json": () => import("./NO-088fac56.mjs"), "./NP.json": () => import("./NP-26b20587.mjs"), "./NR.json": () => import("./NR-ba1f7da1.mjs"), "./NU.json": () => import("./NU-6dc3ed45.mjs"), "./NZ.json": () => import("./NZ-12ed2cb9.mjs"), "./OM.json": () => import("./OM-4976855b.mjs"), "./PA.json": () => import("./PA-3b45122a.mjs"), "./PE.json": () => import("./PE-ad6e8281.mjs"), "./PF.json": () => import("./PF-2b1b6f30.mjs"), "./PG.json": () => import("./PG-b94ea47f.mjs"), "./PH.json": () => import("./PH-1b96a1eb.mjs"), "./PK.json": () => import("./PK-35cadd30.mjs"), "./PL.json": () => import("./PL-6a490cd1.mjs"), "./PM.json": () => import("./PM-d508f3c5.mjs"), "./PN.json": () => import("./PN-1f6ccf43.mjs"), "./PR.json": () => import("./PR-730f2830.mjs"), "./PS.json": () => import("./PS-f3ef78cd.mjs"), "./PT.json": () => import("./PT-66954cea.mjs"), "./PW.json": () => import("./PW-0d1c7797.mjs"), "./PY.json": () => import("./PY-c8e58794.mjs"), "./QA.json": () => import("./QA-35be8b1e.mjs"), "./RE.json": () => import("./RE-9f92ed9b.mjs"), "./RO.json": () => import("./RO-5c62edb1.mjs"), "./RS.json": () => import("./RS-bc256d90.mjs"), "./RU.json": () => import("./RU-bbee5e73.mjs"), "./RW.json": () => import("./RW-95b5d859.mjs"), "./SA.json": () => import("./SA-69b2f72a.mjs"), "./SB.json": () => import("./SB-567c239a.mjs"), "./SC.json": () => import("./SC-9e5a0d31.mjs"), "./SE.json": () => import("./SE-4ed53265.mjs"), "./SG.json": () => import("./SG-970463e3.mjs"), "./SH.json": () => import("./SH-d8ab21b7.mjs"), "./SI.json": () => import("./SI-3b6d3545.mjs"), "./SJ.json": () => import("./SJ-e3430cfd.mjs"), "./SK.json": () => import("./SK-2385e057.mjs"), "./SL.json": () => import("./SL-92bf45d9.mjs"), "./SM.json": () => import("./SM-bafbc267.mjs"), "./SN.json": () => import("./SN-5733e740.mjs"), "./SO.json": () => import("./SO-d5b69054.mjs"), "./SR.json": () => import("./SR-0a8c71c0.mjs"), "./ST.json": () => import("./ST-d40d86c1.mjs"), "./TC.json": () => import("./TC-ccbc7116.mjs"), "./TD.json": () => import("./TD-679d137c.mjs"), "./TF.json": () => import("./TF-6bfcf75d.mjs"), "./TG.json": () => import("./TG-a20ef9ed.mjs"), "./TH.json": () => import("./TH-e39a447c.mjs"), "./TK.json": () => import("./TK-89a81d38.mjs"), "./TL.json": () => import("./TL-8d6ca9b7.mjs"), "./TN.json": () => import("./TN-6e746476.mjs"), "./TO.json": () => import("./TO-a8c55d73.mjs"), "./TR.json": () => import("./TR-b1175ddc.mjs"), "./TT.json": () => import("./TT-5c4a3940.mjs"), "./TV.json": () => import("./TV-e1a267b9.mjs"), "./TW.json": () => import("./TW-9e0e34fa.mjs"), "./TZ.json": () => import("./TZ-c8a8159b.mjs"), "./UA.json": () => import("./UA-7014199a.mjs"), "./UG.json": () => import("./UG-1fe39fa7.mjs"), "./UM.json": () => import("./UM-3fcbf872.mjs"), "./US.json": () => import("./US-6fbdfc0c.mjs"), "./UY.json": () => import("./UY-e6d05d75.mjs"), "./UZ.json": () => import("./UZ-433656c8.mjs"), "./VA.json": () => import("./VA-e8e13d32.mjs"), "./VC.json": () => import("./VC-331669c0.mjs"), "./VE.json": () => import("./VE-5e7b0d3b.mjs"), "./VG.json": () => import("./VG-43e85e33.mjs"), "./VI.json": () => import("./VI-3d9d6d8b.mjs"), "./VN.json": () => import("./VN-9442a8c1.mjs"), "./VU.json": () => import("./VU-96fae02f.mjs"), "./WF.json": () => import("./WF-90a27056.mjs"), "./WS.json": () => import("./WS-ddcb2b71.mjs"), "./YE.json": () => import("./YE-02c4c81e.mjs"), "./YT.json": () => import("./YT-33751cc9.mjs"), "./ZA.json": () => import("./ZA-0084b083.mjs"), "./ZM.json": () => import("./ZM-c6a4d6cc.mjs") });
|
|
27981
|
+
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-43128b9f.mjs"), "./AE.json": () => import("./AE-81598d61.mjs"), "./AG.json": () => import("./AG-ed98ae0e.mjs"), "./AI.json": () => import("./AI-3e78c886.mjs"), "./AL.json": () => import("./AL-3ad2778a.mjs"), "./AM.json": () => import("./AM-6a5175fb.mjs"), "./AN.json": () => import("./AN-311f7139.mjs"), "./AO.json": () => import("./AO-99b5ef59.mjs"), "./AQ.json": () => import("./AQ-effe27c7.mjs"), "./AR.json": () => import("./AR-4013d95c.mjs"), "./AS.json": () => import("./AS-f15d56b2.mjs"), "./AT.json": () => import("./AT-d4d62b74.mjs"), "./AU.json": () => import("./AU-b9cba969.mjs"), "./AW.json": () => import("./AW-581f73fb.mjs"), "./AX.json": () => import("./AX-07af957a.mjs"), "./AZ.json": () => import("./AZ-be214142.mjs"), "./BA.json": () => import("./BA-af4be83f.mjs"), "./BB.json": () => import("./BB-df28f015.mjs"), "./BD.json": () => import("./BD-7aef0af6.mjs"), "./BE.json": () => import("./BE-fc7cf8d5.mjs"), "./BF.json": () => import("./BF-090b06e2.mjs"), "./BG.json": () => import("./BG-1f54cf4f.mjs"), "./BH.json": () => import("./BH-1e9cc2b9.mjs"), "./BJ.json": () => import("./BJ-d5dd5c6f.mjs"), "./BM.json": () => import("./BM-a808b13f.mjs"), "./BN.json": () => import("./BN-b13f6f6a.mjs"), "./BR.json": () => import("./BR-55d93100.mjs"), "./BS.json": () => import("./BS-db6a5bce.mjs"), "./BT.json": () => import("./BT-dfed2604.mjs"), "./BV.json": () => import("./BV-e123b0a8.mjs"), "./BW.json": () => import("./BW-08473bd7.mjs"), "./BY.json": () => import("./BY-2762d989.mjs"), "./BZ.json": () => import("./BZ-7f28b1ff.mjs"), "./CA.json": () => import("./CA-aa1f78ab.mjs"), "./CC.json": () => import("./CC-2cc6ac39.mjs"), "./CF.json": () => import("./CF-78ae0244.mjs"), "./CH.json": () => import("./CH-47f538c0.mjs"), "./CI.json": () => import("./CI-10feb889.mjs"), "./CK.json": () => import("./CK-e308c734.mjs"), "./CL.json": () => import("./CL-4a6c3e0b.mjs"), "./CM.json": () => import("./CM-fddc630d.mjs"), "./CN.json": () => import("./CN-46bb9203.mjs"), "./CO.json": () => import("./CO-1b150cda.mjs"), "./CR.json": () => import("./CR-2bf50f66.mjs"), "./CU.json": () => import("./CU-904aea8f.mjs"), "./CX.json": () => import("./CX-750ccd92.mjs"), "./CY.json": () => import("./CY-1508b23e.mjs"), "./CZ.json": () => import("./CZ-b6eaa1d5.mjs"), "./DE.json": () => import("./DE-e02051d4.mjs"), "./DJ.json": () => import("./DJ-0032728a.mjs"), "./DK.json": () => import("./DK-6116657e.mjs"), "./DM.json": () => import("./DM-a2c158c9.mjs"), "./DO.json": () => import("./DO-cedffa27.mjs"), "./DZ.json": () => import("./DZ-d44be6f8.mjs"), "./EC.json": () => import("./EC-c2e5813b.mjs"), "./EE.json": () => import("./EE-1a10f52d.mjs"), "./EG.json": () => import("./EG-8f29aebd.mjs"), "./EH.json": () => import("./EH-2dafda3e.mjs"), "./ES.json": () => import("./ES-42b3562e.mjs"), "./ET.json": () => import("./ET-ffa87ef0.mjs"), "./FI.json": () => import("./FI-8e3bb2bb.mjs"), "./FJ.json": () => import("./FJ-088ea689.mjs"), "./FK.json": () => import("./FK-16d84ff5.mjs"), "./FM.json": () => import("./FM-32616e6f.mjs"), "./FO.json": () => import("./FO-62c08e45.mjs"), "./FR.json": () => import("./FR-3db03e20.mjs"), "./GA.json": () => import("./GA-4de2f994.mjs"), "./GB.json": () => import("./GB-28ea0b5a.mjs"), "./GD.json": () => import("./GD-0ad67069.mjs"), "./GE.json": () => import("./GE-0f594b35.mjs"), "./GF.json": () => import("./GF-a062cea7.mjs"), "./GG.json": () => import("./GG-e00581ea.mjs"), "./GH.json": () => import("./GH-80209e7e.mjs"), "./GI.json": () => import("./GI-b0f7c8b3.mjs"), "./GL.json": () => import("./GL-8f5e8ba9.mjs"), "./GM.json": () => import("./GM-ff3ca013.mjs"), "./GN.json": () => import("./GN-fc7c0f8c.mjs"), "./GP.json": () => import("./GP-68f23382.mjs"), "./GQ.json": () => import("./GQ-f9867fbd.mjs"), "./GR.json": () => import("./GR-64a2d25c.mjs"), "./GS.json": () => import("./GS-49ce0f4c.mjs"), "./GT.json": () => import("./GT-fa779b14.mjs"), "./GU.json": () => import("./GU-f0dceb37.mjs"), "./GW.json": () => import("./GW-471336ea.mjs"), "./GY.json": () => import("./GY-2889ae39.mjs"), "./HK.json": () => import("./HK-675b8651.mjs"), "./HM.json": () => import("./HM-924a724f.mjs"), "./HN.json": () => import("./HN-6dae206e.mjs"), "./HR.json": () => import("./HR-85763090.mjs"), "./HT.json": () => import("./HT-a659da85.mjs"), "./HU.json": () => import("./HU-f9ea5037.mjs"), "./ID.json": () => import("./ID-cb5cfce1.mjs"), "./IE.json": () => import("./IE-b341cbd2.mjs"), "./IL.json": () => import("./IL-657901df.mjs"), "./IM.json": () => import("./IM-5bd6279a.mjs"), "./IN.json": () => import("./IN-3c11df0e.mjs"), "./IO.json": () => import("./IO-24f6d2e7.mjs"), "./IQ.json": () => import("./IQ-241c0148.mjs"), "./IS.json": () => import("./IS-4a7e436f.mjs"), "./IT.json": () => import("./IT-f9755e76.mjs"), "./JE.json": () => import("./JE-46968fa2.mjs"), "./JM.json": () => import("./JM-a6657a34.mjs"), "./JO.json": () => import("./JO-bd1eabea.mjs"), "./JP.json": () => import("./JP-9b5a30fa.mjs"), "./KE.json": () => import("./KE-2a866579.mjs"), "./KG.json": () => import("./KG-7713761d.mjs"), "./KH.json": () => import("./KH-a5f0f831.mjs"), "./KI.json": () => import("./KI-8376e298.mjs"), "./KM.json": () => import("./KM-48c8c9c0.mjs"), "./KN.json": () => import("./KN-b34777c7.mjs"), "./KR.json": () => import("./KR-8bcf8499.mjs"), "./KW.json": () => import("./KW-4dd6ab01.mjs"), "./KY.json": () => import("./KY-4f921c93.mjs"), "./KZ.json": () => import("./KZ-68b655f3.mjs"), "./LA.json": () => import("./LA-582a34e2.mjs"), "./LB.json": () => import("./LB-7e5023a3.mjs"), "./LC.json": () => import("./LC-4e610f91.mjs"), "./LI.json": () => import("./LI-3979434e.mjs"), "./LK.json": () => import("./LK-23f5002d.mjs"), "./LT.json": () => import("./LT-2076ca77.mjs"), "./LU.json": () => import("./LU-b0538582.mjs"), "./LV.json": () => import("./LV-440617df.mjs"), "./MA.json": () => import("./MA-f2af9aa6.mjs"), "./MC.json": () => import("./MC-f619d821.mjs"), "./MD.json": () => import("./MD-ffe4e2f4.mjs"), "./ME.json": () => import("./ME-46686aa8.mjs"), "./MH.json": () => import("./MH-c535387d.mjs"), "./MK.json": () => import("./MK-11442cf1.mjs"), "./ML.json": () => import("./ML-b2c3720e.mjs"), "./MM.json": () => import("./MM-0ae1a124.mjs"), "./MN.json": () => import("./MN-baba0d9d.mjs"), "./MO.json": () => import("./MO-2c51f9f7.mjs"), "./MP.json": () => import("./MP-55044c4b.mjs"), "./MQ.json": () => import("./MQ-aaefd2b2.mjs"), "./MR.json": () => import("./MR-f122a6f0.mjs"), "./MS.json": () => import("./MS-7623ec5f.mjs"), "./MT.json": () => import("./MT-315c76bb.mjs"), "./MU.json": () => import("./MU-126673fe.mjs"), "./MV.json": () => import("./MV-d8748aca.mjs"), "./MW.json": () => import("./MW-26492427.mjs"), "./MX.json": () => import("./MX-ca79b44b.mjs"), "./MY.json": () => import("./MY-443e729e.mjs"), "./MZ.json": () => import("./MZ-192a5094.mjs"), "./NC.json": () => import("./NC-3849aac0.mjs"), "./NE.json": () => import("./NE-bf76bc84.mjs"), "./NF.json": () => import("./NF-46f5dffa.mjs"), "./NG.json": () => import("./NG-458396e5.mjs"), "./NI.json": () => import("./NI-efe8c864.mjs"), "./NL.json": () => import("./NL-3e38d0eb.mjs"), "./NO.json": () => import("./NO-088fac56.mjs"), "./NP.json": () => import("./NP-26b20587.mjs"), "./NR.json": () => import("./NR-ba1f7da1.mjs"), "./NU.json": () => import("./NU-6dc3ed45.mjs"), "./NZ.json": () => import("./NZ-12ed2cb9.mjs"), "./OM.json": () => import("./OM-4976855b.mjs"), "./PA.json": () => import("./PA-3b45122a.mjs"), "./PE.json": () => import("./PE-ad6e8281.mjs"), "./PF.json": () => import("./PF-2b1b6f30.mjs"), "./PG.json": () => import("./PG-b94ea47f.mjs"), "./PH.json": () => import("./PH-1b96a1eb.mjs"), "./PK.json": () => import("./PK-35cadd30.mjs"), "./PL.json": () => import("./PL-6a490cd1.mjs"), "./PM.json": () => import("./PM-d508f3c5.mjs"), "./PN.json": () => import("./PN-1f6ccf43.mjs"), "./PR.json": () => import("./PR-730f2830.mjs"), "./PS.json": () => import("./PS-f3ef78cd.mjs"), "./PT.json": () => import("./PT-66954cea.mjs"), "./PW.json": () => import("./PW-0d1c7797.mjs"), "./PY.json": () => import("./PY-c8e58794.mjs"), "./QA.json": () => import("./QA-35be8b1e.mjs"), "./RE.json": () => import("./RE-9f92ed9b.mjs"), "./RO.json": () => import("./RO-5c62edb1.mjs"), "./RS.json": () => import("./RS-bc256d90.mjs"), "./RU.json": () => import("./RU-bbee5e73.mjs"), "./RW.json": () => import("./RW-95b5d859.mjs"), "./SA.json": () => import("./SA-69b2f72a.mjs"), "./SB.json": () => import("./SB-567c239a.mjs"), "./SC.json": () => import("./SC-9e5a0d31.mjs"), "./SE.json": () => import("./SE-4ed53265.mjs"), "./SG.json": () => import("./SG-970463e3.mjs"), "./SH.json": () => import("./SH-d8ab21b7.mjs"), "./SI.json": () => import("./SI-3b6d3545.mjs"), "./SJ.json": () => import("./SJ-e3430cfd.mjs"), "./SK.json": () => import("./SK-2385e057.mjs"), "./SL.json": () => import("./SL-92bf45d9.mjs"), "./SM.json": () => import("./SM-bafbc267.mjs"), "./SN.json": () => import("./SN-5733e740.mjs"), "./SO.json": () => import("./SO-d5b69054.mjs"), "./SR.json": () => import("./SR-0a8c71c0.mjs"), "./ST.json": () => import("./ST-d40d86c1.mjs"), "./TC.json": () => import("./TC-ccbc7116.mjs"), "./TD.json": () => import("./TD-679d137c.mjs"), "./TF.json": () => import("./TF-6bfcf75d.mjs"), "./TG.json": () => import("./TG-a20ef9ed.mjs"), "./TH.json": () => import("./TH-e39a447c.mjs"), "./TK.json": () => import("./TK-89a81d38.mjs"), "./TL.json": () => import("./TL-8d6ca9b7.mjs"), "./TN.json": () => import("./TN-6e746476.mjs"), "./TO.json": () => import("./TO-a8c55d73.mjs"), "./TR.json": () => import("./TR-b1175ddc.mjs"), "./TT.json": () => import("./TT-5c4a3940.mjs"), "./TV.json": () => import("./TV-e1a267b9.mjs"), "./TW.json": () => import("./TW-9e0e34fa.mjs"), "./TZ.json": () => import("./TZ-c8a8159b.mjs"), "./UA.json": () => import("./UA-7014199a.mjs"), "./UG.json": () => import("./UG-1fe39fa7.mjs"), "./UM.json": () => import("./UM-3fcbf872.mjs"), "./US.json": () => import("./US-6fbdfc0c.mjs"), "./UY.json": () => import("./UY-e6d05d75.mjs"), "./UZ.json": () => import("./UZ-433656c8.mjs"), "./VA.json": () => import("./VA-e8e13d32.mjs"), "./VC.json": () => import("./VC-331669c0.mjs"), "./VE.json": () => import("./VE-5e7b0d3b.mjs"), "./VG.json": () => import("./VG-43e85e33.mjs"), "./VI.json": () => import("./VI-3d9d6d8b.mjs"), "./VN.json": () => import("./VN-9442a8c1.mjs"), "./VU.json": () => import("./VU-96fae02f.mjs"), "./WF.json": () => import("./WF-90a27056.mjs"), "./WS.json": () => import("./WS-ddcb2b71.mjs"), "./YE.json": () => import("./YE-02c4c81e.mjs"), "./YT.json": () => import("./YT-33751cc9.mjs"), "./ZA.json": () => import("./ZA-0084b083.mjs"), "./ZM.json": () => import("./ZM-c6a4d6cc.mjs") });
|
|
27971
27982
|
const getAccountFormatsForCountry = async (country2) => {
|
|
27972
27983
|
const importForCountry = accountFormatsImports[`./${country2}.json`];
|
|
27973
27984
|
if (!importForCountry) {
|
|
@@ -28062,6 +28073,10 @@ const companyDeepSearch = async (context, data) => {
|
|
|
28062
28073
|
clientKey,
|
|
28063
28074
|
errorLevel: "warn",
|
|
28064
28075
|
errorMessage: "Failed to use companyDeepSearch",
|
|
28076
|
+
errorHandler: async (response) => {
|
|
28077
|
+
const error = await response;
|
|
28078
|
+
throw new AdyenKycSdkError(error.message, error);
|
|
28079
|
+
},
|
|
28065
28080
|
path: "v1/companyIndex/deepSearch",
|
|
28066
28081
|
headers: {
|
|
28067
28082
|
"Content-Type": "application/json"
|
|
@@ -28078,6 +28093,10 @@ const companyIndexSearch = async (context, data) => {
|
|
|
28078
28093
|
clientKey,
|
|
28079
28094
|
errorLevel: "warn",
|
|
28080
28095
|
errorMessage: "Failed to use companyIndexSearch",
|
|
28096
|
+
errorHandler: async (response) => {
|
|
28097
|
+
const error = await response;
|
|
28098
|
+
throw new AdyenKycSdkError(error.message, error);
|
|
28099
|
+
},
|
|
28081
28100
|
path: "v1/companyIndex/indexSearch",
|
|
28082
28101
|
headers: {
|
|
28083
28102
|
"Content-Type": "application/json"
|
|
@@ -28120,6 +28139,10 @@ const getCompanyData = async (context, data) => {
|
|
|
28120
28139
|
clientKey,
|
|
28121
28140
|
errorLevel: "warn",
|
|
28122
28141
|
errorMessage: "Failed to use getCompanyData",
|
|
28142
|
+
errorHandler: async (response) => {
|
|
28143
|
+
const error = await response;
|
|
28144
|
+
throw new AdyenKycSdkError(error.message, error);
|
|
28145
|
+
},
|
|
28123
28146
|
path: "v1/companyData/fullDataset",
|
|
28124
28147
|
headers: {
|
|
28125
28148
|
"Content-Type": "application/json"
|
|
@@ -28173,6 +28196,10 @@ const refreshCompanyData = async (context, data) => {
|
|
|
28173
28196
|
clientKey,
|
|
28174
28197
|
errorLevel: "warn",
|
|
28175
28198
|
errorMessage: "Failed to use refreshCompanyData",
|
|
28199
|
+
errorHandler: async (response) => {
|
|
28200
|
+
const error = await response;
|
|
28201
|
+
throw new AdyenKycSdkError(error.message, error);
|
|
28202
|
+
},
|
|
28176
28203
|
path: "v1/companyData/refreshDataset",
|
|
28177
28204
|
headers: {
|
|
28178
28205
|
"Content-Type": "application/json"
|
|
@@ -28240,6 +28267,10 @@ const verifyTin = async (context, data) => {
|
|
|
28240
28267
|
clientKey,
|
|
28241
28268
|
errorLevel: "warn",
|
|
28242
28269
|
errorMessage: "Failed to use verifyTin",
|
|
28270
|
+
errorHandler: async (response) => {
|
|
28271
|
+
const error = await response;
|
|
28272
|
+
throw new AdyenKycSdkError(error.message, error);
|
|
28273
|
+
},
|
|
28243
28274
|
path: "v1/tinVerification/verifyTin",
|
|
28244
28275
|
headers: {
|
|
28245
28276
|
"Content-Type": "application/json"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LegalEntity } from '../../../../core/models/api/legal-entity';
|
|
2
2
|
import { PayoutDetailsDropinProps } from '../../../PayoutDetails/types';
|
|
3
3
|
export declare const getRegistrationCountry: (legalEntityResponse: LegalEntity) => "ID" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
4
|
-
export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, trackingConfig, accountHolder, country, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, hideNavigation, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
|
|
4
|
+
export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, trackingConfig, accountHolder, country, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, hideNavigation, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, handleBackClick: externalBackClick, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
|
|
@@ -5,6 +5,7 @@ export interface TransferInstrumentComponentProps {
|
|
|
5
5
|
transferInstrumentId?: string;
|
|
6
6
|
onChange?(): void;
|
|
7
7
|
onSubmit?(): void;
|
|
8
|
+
handleBackClick?(): void;
|
|
8
9
|
eventEmitter?: EventEmitter;
|
|
9
10
|
}
|
|
10
|
-
export declare function TransferInstrumentComponent({ legalEntityId, transferInstrumentId, onChange, onSubmit, eventEmitter, }: TransferInstrumentComponentProps): import("preact").JSX.Element;
|
|
11
|
+
export declare function TransferInstrumentComponent({ legalEntityId, transferInstrumentId, onChange, onSubmit, handleBackClick, eventEmitter, }: TransferInstrumentComponentProps): import("preact").JSX.Element;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { CompanyDeepSearchRequest, CompanyDeepSearchResponse } from '../../models/api/company-search';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
clientKey: string;
|
|
5
|
-
}, data: CompanyDeepSearchRequest) => Promise<CompanyDeepSearchResponse>;
|
|
2
|
+
import type { RequestContext } from '../types';
|
|
3
|
+
export declare const companyDeepSearch: (context: RequestContext, data: CompanyDeepSearchRequest) => Promise<CompanyDeepSearchResponse>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { CompanyIndexSearchRequest, CompanyIndexSearchResponse } from '../../models/api/company-search';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
clientKey: string;
|
|
5
|
-
}, data: CompanyIndexSearchRequest) => Promise<CompanyIndexSearchResponse>;
|
|
2
|
+
import type { RequestContext } from '../types';
|
|
3
|
+
export declare const companyIndexSearch: (context: RequestContext, data: CompanyIndexSearchRequest) => Promise<CompanyIndexSearchResponse>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { CompanyDataResponse, GetCompanyDataRequest } from '../../models/api/company-search';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
clientKey: string;
|
|
5
|
-
}, data: GetCompanyDataRequest) => Promise<CompanyDataResponse>;
|
|
2
|
+
import type { RequestContext } from '../types';
|
|
3
|
+
export declare const getCompanyData: (context: RequestContext, data: GetCompanyDataRequest) => Promise<CompanyDataResponse>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { CompanyDataResponse, RefreshCompanyDataRequest } from '../../models/api/company-search';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
clientKey: string;
|
|
5
|
-
}, data: RefreshCompanyDataRequest) => Promise<CompanyDataResponse>;
|
|
2
|
+
import type { RequestContext } from '../types';
|
|
3
|
+
export declare const refreshCompanyData: (context: RequestContext, data: RefreshCompanyDataRequest) => Promise<CompanyDataResponse>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { TinVerificationRequest, TinVerificationResponse } from '../../models/api/company-search';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
clientKey: string;
|
|
5
|
-
}, data: TinVerificationRequest) => Promise<TinVerificationResponse>;
|
|
2
|
+
import type { RequestContext } from '../types';
|
|
3
|
+
export declare const verifyTin: (context: RequestContext, data: TinVerificationRequest) => Promise<TinVerificationResponse>;
|
|
@@ -5,8 +5,10 @@ export declare const getRequestUrl: (loadingContext: string, path: string, clien
|
|
|
5
5
|
export declare const logFetchError: (message: string, level: FetchErrorLevel) => void;
|
|
6
6
|
export declare const handleFetchResponse: (response: Response, responseType: XMLHttpRequestResponseType) => Promise<any>;
|
|
7
7
|
export declare const isValidationErrorResponse: (response: any) => boolean;
|
|
8
|
+
export declare const processValidationErrors: (response: Response) => Promise<never>;
|
|
8
9
|
export declare class ValidationError extends Error {
|
|
9
10
|
invalidFields: InvalidField[];
|
|
10
11
|
errorCode: string;
|
|
12
|
+
sourceError: unknown;
|
|
11
13
|
constructor(message: string, validationDetails: ValidationResponse);
|
|
12
14
|
}
|
|
@@ -5,19 +5,20 @@ import { FormModelWithValidity } from '../models/form';
|
|
|
5
5
|
import { BaseTrackingPayload } from '../utils';
|
|
6
6
|
export interface FormComposer {
|
|
7
7
|
handleNextClick(): void;
|
|
8
|
-
handleBackClick(): void;
|
|
8
|
+
handleBackClick?(): void;
|
|
9
9
|
nextButtonLabel: string;
|
|
10
10
|
gotoFormByFormIndex(index: number): void;
|
|
11
11
|
activeForm: FormModelWithValidity;
|
|
12
12
|
shouldValidate: boolean;
|
|
13
13
|
setShouldValidate: StateUpdater<boolean>;
|
|
14
14
|
}
|
|
15
|
-
export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, onSubmit, skipSubmit, onSkipSubmit, }: {
|
|
15
|
+
export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, externalBackClick, onSubmit, skipSubmit, onSkipSubmit, }: {
|
|
16
16
|
problems: EntityProblems;
|
|
17
17
|
baseTrackingPayload: BaseTrackingPayload;
|
|
18
18
|
forms: FormModelWithValidity[];
|
|
19
19
|
formRef?: any;
|
|
20
20
|
submitButtonLabel?: TranslationKey;
|
|
21
|
+
externalBackClick?(): void;
|
|
21
22
|
onSubmit(): void;
|
|
22
23
|
skipSubmit?: boolean;
|
|
23
24
|
onSkipSubmit?(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CountryCode } from '../country-code';
|
|
2
2
|
import type { StateCodeUS } from '../state-code';
|
|
3
|
-
|
|
3
|
+
interface CompanySearchRequest {
|
|
4
4
|
/**
|
|
5
5
|
* @description A free-form value representing a partial company name
|
|
6
6
|
*/
|
|
@@ -31,7 +31,7 @@ export interface CompanySearchResult {
|
|
|
31
31
|
name: string;
|
|
32
32
|
registrationNumber: string;
|
|
33
33
|
requestTime: string;
|
|
34
|
-
lastUpdate
|
|
34
|
+
lastUpdate?: string;
|
|
35
35
|
}
|
|
36
36
|
export type CompanyIndexSearchResponse = {
|
|
37
37
|
results: Array<CompanySearchResult>;
|
|
@@ -39,20 +39,7 @@ export type CompanyIndexSearchResponse = {
|
|
|
39
39
|
export type CompanyDeepSearchResponse = {
|
|
40
40
|
results: Array<CompanySearchResult>;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @description Nine letter Tax Identification Number with or without hyphens
|
|
45
|
-
*/
|
|
46
|
-
tin: string;
|
|
47
|
-
/**
|
|
48
|
-
* @description Company name
|
|
49
|
-
*/
|
|
50
|
-
name: string;
|
|
51
|
-
}
|
|
52
|
-
export interface TinVerificationResponse {
|
|
53
|
-
matched: boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface CompanyDataRequest {
|
|
42
|
+
interface CompanyDataRequest {
|
|
56
43
|
/**
|
|
57
44
|
* @description Company Id returned from index search
|
|
58
45
|
*/
|
|
@@ -64,17 +51,26 @@ export interface CompanyDataRequest {
|
|
|
64
51
|
}
|
|
65
52
|
export type GetCompanyDataRequest = CompanyDataRequest;
|
|
66
53
|
export type RefreshCompanyDataRequest = CompanyDataRequest;
|
|
67
|
-
export interface CompanyDataResponse {
|
|
68
|
-
id: string;
|
|
69
|
-
name: string;
|
|
54
|
+
export interface CompanyDataResponse extends CompanySearchResult {
|
|
70
55
|
country: CountryCode;
|
|
71
|
-
registrationNumber: string;
|
|
72
56
|
organizationType: string;
|
|
73
57
|
address: string;
|
|
74
|
-
requestTime: string;
|
|
75
|
-
lastUpdate: string;
|
|
76
58
|
street?: string;
|
|
77
59
|
city?: string;
|
|
78
60
|
state?: StateCodeUS;
|
|
79
61
|
zipcode?: string;
|
|
80
62
|
}
|
|
63
|
+
export interface TinVerificationRequest {
|
|
64
|
+
/**
|
|
65
|
+
* @description Nine letter Tax Identification Number with or without hyphens
|
|
66
|
+
*/
|
|
67
|
+
tin: string;
|
|
68
|
+
/**
|
|
69
|
+
* @description Company name from index/deep search response
|
|
70
|
+
*/
|
|
71
|
+
name: string;
|
|
72
|
+
}
|
|
73
|
+
export interface TinVerificationResponse {
|
|
74
|
+
matched: boolean;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CountryCode } from '../country-code';
|
|
2
|
-
import { Address } from './address';
|
|
3
|
-
import { CompanyTypesValue } from './company-types-value';
|
|
4
|
-
import { Phone } from './phone';
|
|
1
|
+
import type { CountryCode } from '../country-code';
|
|
2
|
+
import type { Address } from './address';
|
|
3
|
+
import type { CompanyTypesValue } from './company-types-value';
|
|
4
|
+
import type { Phone } from './phone';
|
|
5
5
|
export interface Organization {
|
|
6
|
+
legalName: string;
|
|
7
|
+
registeredAddress: Address;
|
|
6
8
|
description?: string;
|
|
7
9
|
doingBusinessAs?: string;
|
|
8
10
|
email?: string;
|
|
9
|
-
legalName: string;
|
|
10
11
|
phone?: Phone;
|
|
11
12
|
principalPlaceOfBusiness?: Address;
|
|
12
|
-
registeredAddress: Address;
|
|
13
13
|
registrationNumber?: string;
|
|
14
14
|
stockData?: {
|
|
15
15
|
marketIdentifier: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type CountryCode = `${CountryCodes}`;
|
|
1
2
|
export declare const enum CountryCodes {
|
|
2
3
|
Afghanistan = "AF",
|
|
3
4
|
AlandIslands = "AX",
|
|
@@ -246,4 +247,3 @@ export declare const enum CountryCodes {
|
|
|
246
247
|
Zambia = "ZM",
|
|
247
248
|
Zimbabwe = "ZW"
|
|
248
249
|
}
|
|
249
|
-
export type CountryCode = `${CountryCodes}`;
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
export type StateCode = StateCodeUS | StateCodeBR;
|
|
2
|
+
export type StateCodeBR = `${StateCodesBR}`;
|
|
3
|
+
export declare const enum StateCodesBR {
|
|
4
|
+
Acre = "AC",
|
|
5
|
+
Alagoas = "AL",
|
|
6
|
+
Amazonas = "AM",
|
|
7
|
+
Amapá = "AP",
|
|
8
|
+
Bahia = "BA",
|
|
9
|
+
Ceará = " CE",
|
|
10
|
+
DistritoFederal = "DF",
|
|
11
|
+
EspíritoSanto = "ES",
|
|
12
|
+
Goiás = "GO",
|
|
13
|
+
Maranhão = "MA",
|
|
14
|
+
MinasGerais = "MG",
|
|
15
|
+
MatoGrossodoSul = "MS",
|
|
16
|
+
MatoGrosso = "MT",
|
|
17
|
+
Pará = "PA",
|
|
18
|
+
Paraíba = "PB",
|
|
19
|
+
Pernambuco = "PE",
|
|
20
|
+
Piauí = "PI",
|
|
21
|
+
Paraná = "PR",
|
|
22
|
+
RiodeJaneiro = "RJ",
|
|
23
|
+
RioGrandedoNorte = "RN",
|
|
24
|
+
Rondônia = "RO",
|
|
25
|
+
Roraima = "RR",
|
|
26
|
+
RioGrandedoSul = "RS",
|
|
27
|
+
SantaCatarina = "SC",
|
|
28
|
+
Sergipe = "SE",
|
|
29
|
+
SãoPaulo = "SP",
|
|
30
|
+
Tocantins = "TO"
|
|
31
|
+
}
|
|
32
|
+
export type StateCodeUS = `${StateCodesUS}`;
|
|
1
33
|
export declare const enum StateCodesUS {
|
|
2
34
|
Alabama = "AL",
|
|
3
35
|
Alaska = "AK",
|
|
@@ -51,4 +83,3 @@ export declare const enum StateCodesUS {
|
|
|
51
83
|
Wisconsin = "WI",
|
|
52
84
|
Wyoming = "WY"
|
|
53
85
|
}
|
|
54
|
-
export type StateCodeUS = `${StateCodesUS}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@types/sanitize-html": "^2.9.0",
|
|
93
93
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
94
94
|
"@typescript-eslint/parser": "^5.62.0",
|
|
95
|
-
"@vitest/coverage-
|
|
95
|
+
"@vitest/coverage-v8": "^0.34.3",
|
|
96
96
|
"autoprefixer": "^10.4.15",
|
|
97
97
|
"axios": "^1.5.0",
|
|
98
98
|
"chalk": "^4.1.2",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"typescript-strict-plugin": "^2.2.0",
|
|
134
134
|
"vite": "^4.4.9",
|
|
135
135
|
"vite-node": "^0.33.0",
|
|
136
|
-
"vitest": "^0.
|
|
136
|
+
"vitest": "^0.34.6"
|
|
137
137
|
},
|
|
138
138
|
"overrides": {
|
|
139
139
|
"msw": {
|