@adyen/kyc-components 2.69.0 → 2.70.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.
|
@@ -654,6 +654,7 @@ const defaultTrans = {
|
|
|
654
654
|
errorMessage_1_5051: "Signing person on the affiliation document could not be verified",
|
|
655
655
|
errorMessage_1_5052: "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.",
|
|
656
656
|
errorMessage_1_5053: "The affiliation document was not issued within the last 6 months",
|
|
657
|
+
errorMessage_1_5064: "The VAT number didn't match the one on the registry.",
|
|
657
658
|
errorMessage_1_5067: "The legal name didn't match the one on the VAT registry.",
|
|
658
659
|
errorMessage_1_51: "Organization details didn't match the document",
|
|
659
660
|
errorMessage_1_52: "Registration document didn't meet requirements",
|
|
@@ -4345,7 +4346,8 @@ const Select = ({
|
|
|
4345
4346
|
if (enableTracking) {
|
|
4346
4347
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
4347
4348
|
actionType: "select",
|
|
4348
|
-
field: name
|
|
4349
|
+
field: name,
|
|
4350
|
+
returnValue: selectedItem.id
|
|
4349
4351
|
});
|
|
4350
4352
|
}
|
|
4351
4353
|
if (showSearchList) setIsShowList(showSearchList);
|
|
@@ -23439,8 +23441,8 @@ const invalidInputRemediationActionMappings = {
|
|
|
23439
23441
|
// [{ key: 'documents', type: ['proofOfOwnership'] }] // <---- See DEV-50768,
|
|
23440
23442
|
"1_508": [],
|
|
23441
23443
|
// [{ key: 'documents', type: ['proofOfOwnership'] }] // <---- See DEV-50768
|
|
23442
|
-
"1_512": [{ key: DocumentType.VAT_DOCUMENT }],
|
|
23443
|
-
"1_513": [{ key: DocumentType.VAT_DOCUMENT }],
|
|
23444
|
+
"1_512": [{ key: DocumentType.VAT_DOCUMENT }, { key: "organization.vatNumber" }],
|
|
23445
|
+
"1_513": [{ key: DocumentType.VAT_DOCUMENT }, { key: "organization.vatNumber" }],
|
|
23444
23446
|
"1_600": [{ key: "soleProprietorship.name" }, { key: "soleProprietorship.registeredAddress" }],
|
|
23445
23447
|
// Both trust and soleprop remediation to upload constitutional document use the same codes
|
|
23446
23448
|
"1_601": [{ key: DocumentType.CONSTITUTIONAL_DOCUMENT }],
|
|
@@ -23714,6 +23716,14 @@ const setReviewRequiredError = (verificationError, entityProblems) => {
|
|
|
23714
23716
|
};
|
|
23715
23717
|
setPriorityStatus(entityProblems, TaskStatus.SUBMIT);
|
|
23716
23718
|
};
|
|
23719
|
+
const FIELDS_WITH_LINKED_DATA = ["vatNumber"];
|
|
23720
|
+
const getLinkedRemedidationFormFields = (acc, field) => {
|
|
23721
|
+
switch (field) {
|
|
23722
|
+
case "vatNumber":
|
|
23723
|
+
acc.fields = [...acc.fields, "vatAbsenceReason", "exemptedFromVat"];
|
|
23724
|
+
break;
|
|
23725
|
+
}
|
|
23726
|
+
};
|
|
23717
23727
|
function setInvalidInputError(parentVerificationError, entityProblems, isExperimentEnabled) {
|
|
23718
23728
|
var _a, _b;
|
|
23719
23729
|
const processedSubErrors = (_a = parentVerificationError == null ? void 0 : parentVerificationError.subErrors) == null ? void 0 : _a.reduce(
|
|
@@ -23729,6 +23739,9 @@ function setInvalidInputError(parentVerificationError, entityProblems, isExperim
|
|
|
23729
23739
|
const formsAndFields = mappedCompFields == null ? void 0 : mappedCompFields.reduce(
|
|
23730
23740
|
(acc3, fullFieldPath) => {
|
|
23731
23741
|
const [form, field] = fullFieldPath.split(/\.(.+)/, 2);
|
|
23742
|
+
if (FIELDS_WITH_LINKED_DATA.includes(field)) {
|
|
23743
|
+
getLinkedRemedidationFormFields(acc3, field);
|
|
23744
|
+
}
|
|
23732
23745
|
acc3.forms = [...acc3.forms, form];
|
|
23733
23746
|
acc3.fields = [...acc3.fields, field];
|
|
23734
23747
|
return acc3;
|
|
@@ -39331,7 +39344,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
39331
39344
|
};
|
|
39332
39345
|
};
|
|
39333
39346
|
const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
|
|
39334
|
-
const sdkVersion = "2.
|
|
39347
|
+
const sdkVersion = "2.70.0";
|
|
39335
39348
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39336
39349
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39337
39350
|
useEffect(() => {
|
|
@@ -39673,7 +39686,7 @@ const ConfigurationApiProvider = ({
|
|
|
39673
39686
|
[authContext, rootLegalEntityId]
|
|
39674
39687
|
);
|
|
39675
39688
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
39676
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.
|
|
39689
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.70.0" }),
|
|
39677
39690
|
children
|
|
39678
39691
|
] });
|
|
39679
39692
|
};
|
|
@@ -40289,7 +40302,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40289
40302
|
};
|
|
40290
40303
|
const copyToClipboard = async () => {
|
|
40291
40304
|
const toCopy = {
|
|
40292
|
-
sdkVersion: "2.
|
|
40305
|
+
sdkVersion: "2.70.0",
|
|
40293
40306
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40294
40307
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40295
40308
|
};
|
|
@@ -40354,7 +40367,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40354
40367
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40355
40368
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40356
40369
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
40357
|
-
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.
|
|
40370
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.70.0" })
|
|
40358
40371
|
] }) }),
|
|
40359
40372
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40360
40373
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40499,7 +40512,7 @@ class UIElement extends BaseElement {
|
|
|
40499
40512
|
userEvents.updateBaseTrackingPayload({
|
|
40500
40513
|
...baseTracking,
|
|
40501
40514
|
componentName: this.props.componentName,
|
|
40502
|
-
sdkVersion: "2.
|
|
40515
|
+
sdkVersion: "2.70.0",
|
|
40503
40516
|
userAgent: navigator.userAgent
|
|
40504
40517
|
});
|
|
40505
40518
|
return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
|