@adyen/kyc-components 2.24.0 → 2.24.2
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.
|
@@ -13909,7 +13909,7 @@ const mandatoryApiFields = {
|
|
|
13909
13909
|
INDIVIDUAL: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry"],
|
|
13910
13910
|
DECISIONMAKER: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry", "personalDetails.role", "personalDetails.jobTitle"],
|
|
13911
13911
|
DECISION_MAKER_OWNER: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry", "personalDetails.role"],
|
|
13912
|
-
ORGANIZATION: ["companyNameAndCountry.legalCompanyName", "companyNameAndCountry.country"
|
|
13912
|
+
ORGANIZATION: ["companyNameAndCountry.legalCompanyName", "companyNameAndCountry.country"],
|
|
13913
13913
|
SOLE_PROPRIETORSHIP: ["solePropNameAndCountry.legalCompanyName", "solePropNameAndCountry.country"],
|
|
13914
13914
|
TRUST: ["trustRegistrationDetails.legalName", "trustRegistrationDetails.country"]
|
|
13915
13915
|
};
|
|
@@ -24373,7 +24373,8 @@ const parseConfiguration$2 = ({
|
|
|
24373
24373
|
country: country2,
|
|
24374
24374
|
matchingScenario
|
|
24375
24375
|
}) => parseCompanySearchScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.ORGANIZATION], country2);
|
|
24376
|
-
const
|
|
24376
|
+
const mandatoryApiFieldsForCompanySearch = [...mandatoryApiFields.ORGANIZATION, "companyBasics.legalCompanyName", "companyBasics.country"];
|
|
24377
|
+
const canSubmit = (data) => mandatoryApiFieldsForCompanySearch.every((detail) => {
|
|
24377
24378
|
const value = getProp(data, detail);
|
|
24378
24379
|
return !isEmpty$1(value);
|
|
24379
24380
|
});
|
|
@@ -27458,7 +27459,7 @@ function TaskListComponent({
|
|
|
27458
27459
|
title: i18n.get(isEnableNewEntryFlowEnabled ? "soleProprietorshipDetails" : "soleProprietorDetails"),
|
|
27459
27460
|
status: getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, getOwnSoleProprietorshipIdArray(legalEntityResponse)),
|
|
27460
27461
|
problems: getOwnSolePropProblems(legalEntityResponse, capabilityProblems)
|
|
27461
|
-
}), tasks.includes(TaskTypes.COMPANY) && isExperimentEnabled("EnableCompanySearchFlow") ? jsx(TaskListItem, {
|
|
27462
|
+
}), tasks.includes(TaskTypes.COMPANY) && (isExperimentEnabled("EnableCompanySearchFlow") ? jsx(TaskListItem, {
|
|
27462
27463
|
onNavigateToTask: handleOnNavigateToTaskCompanySearch,
|
|
27463
27464
|
icon: "company",
|
|
27464
27465
|
title: hasTrust ? i18n.get("companyTrusteeDetails") : i18n.get("companyDetails"),
|
|
@@ -27470,7 +27471,7 @@ function TaskListComponent({
|
|
|
27470
27471
|
title: hasTrust ? i18n.get("companyTrusteeDetails") : i18n.get("companyDetails"),
|
|
27471
27472
|
status: getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, [legalEntityResponse.id]),
|
|
27472
27473
|
problems: (_g = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _g[legalEntityResponse.id]
|
|
27473
|
-
}), tasks.includes(TaskTypes.DECISION_MAKER) && jsx(TaskListItem, {
|
|
27474
|
+
})), tasks.includes(TaskTypes.DECISION_MAKER) && jsx(TaskListItem, {
|
|
27474
27475
|
onNavigateToTask: handleOnNavigateToTaskDecisionMaker,
|
|
27475
27476
|
icon: "decision-maker",
|
|
27476
27477
|
title: i18n.get("decisionMakers"),
|