@adyen/kyc-components 2.24.1 → 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", "companyBasics.legalCompanyName", "companyBasics.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 canSubmit = (data) => mandatoryApiFields.ORGANIZATION.every((detail) => {
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.24.1",
3
+ "version": "2.24.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [