@adyen/kyc-components 2.25.0 → 2.25.1

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.
@@ -13944,7 +13944,7 @@ const mandatoryApiFields = {
13944
13944
  INDIVIDUAL: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry"],
13945
13945
  DECISIONMAKER: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry", "personalDetails.role", "personalDetails.jobTitle"],
13946
13946
  DECISION_MAKER_OWNER: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry", "personalDetails.role"],
13947
- ORGANIZATION: ["companyNameAndCountry.legalCompanyName", "companyNameAndCountry.country", "companyBasics.legalCompanyName", "companyBasics.country"],
13947
+ ORGANIZATION: ["companyNameAndCountry.legalCompanyName", "companyNameAndCountry.country"],
13948
13948
  SOLE_PROPRIETORSHIP: ["solePropNameAndCountry.legalCompanyName", "solePropNameAndCountry.country"],
13949
13949
  TRUST: ["trustRegistrationDetails.legalName", "trustRegistrationDetails.country"]
13950
13950
  };
@@ -24408,7 +24408,8 @@ const parseConfiguration$2 = ({
24408
24408
  country: country2,
24409
24409
  matchingScenario
24410
24410
  }) => parseCompanySearchScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.ORGANIZATION], country2);
24411
- const canSubmit = (data) => mandatoryApiFields.ORGANIZATION.every((detail) => {
24411
+ const mandatoryApiFieldsForCompanySearch = [...mandatoryApiFields.ORGANIZATION, "companyBasics.legalCompanyName", "companyBasics.country"];
24412
+ const canSubmit = (data) => mandatoryApiFieldsForCompanySearch.every((detail) => {
24412
24413
  const value = getProp(data, detail);
24413
24414
  return !isEmpty$1(value);
24414
24415
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.25.0",
3
+ "version": "2.25.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [