@adyen/kyc-components 3.18.0 → 3.18.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.
@@ -13911,8 +13911,8 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
13911
13911
  }
13912
13912
  return solePropCompData;
13913
13913
  };
13914
- const mapSolePropToLegalEntity = (data, isCountryOfGoverningLawEnabled = false) => {
13915
- var _a;
13914
+ const mapSolePropToLegalEntity = (data) => {
13915
+ var _a, _b;
13916
13916
  const requestObj = {
13917
13917
  ...formatObject(data, solePropApiKeyMapping)
13918
13918
  };
@@ -13931,7 +13931,7 @@ const mapSolePropToLegalEntity = (data, isCountryOfGoverningLawEnabled = false)
13931
13931
  if (data.solePropRegistrationDetails.exemptedFromRegistrationNumber) {
13932
13932
  requestObj.soleProprietorship.registrationNumber = "";
13933
13933
  }
13934
- if (!isCountryOfGoverningLawEnabled && ((_a = data.solePropNameAndCountry) == null ? void 0 : _a.country)) {
13934
+ if (!((_a = requestObj.soleProprietorship) == null ? void 0 : _a.countryOfGoverningLaw) && ((_b = data.solePropNameAndCountry) == null ? void 0 : _b.country)) {
13935
13935
  requestObj.soleProprietorship.countryOfGoverningLaw = data.solePropNameAndCountry.country;
13936
13936
  }
13937
13937
  requestObj.type = LegalEntityType.SOLE_PROPRIETORSHIP;
@@ -32503,7 +32503,7 @@ function SolePropDropinComponent({
32503
32503
  const dataSubmitted = data;
32504
32504
  setLoadingStatus("loading");
32505
32505
  try {
32506
- const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted, isCountryOfGoverningLawEnabled));
32506
+ const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted));
32507
32507
  await submitDocuments2({
32508
32508
  forms: forms2,
32509
32509
  legalEntity,
@@ -35840,7 +35840,7 @@ const ConfigurationApiProvider = ({
35840
35840
  isEmbeddedDropin,
35841
35841
  loadingContext
35842
35842
  } = authContext;
35843
- const sdkVersion = "3.18.0";
35843
+ const sdkVersion = "3.18.1";
35844
35844
  useAnalytics({
35845
35845
  onUserEvent,
35846
35846
  legalEntityId: rootLegalEntityId,
@@ -35,7 +35,7 @@ export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEnti
35
35
  export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
36
36
  export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
37
37
  export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
38
- export declare const mapSolePropToLegalEntity: (data: SolePropSchema, isCountryOfGoverningLawEnabled?: boolean) => LegalEntity;
38
+ export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
39
39
  export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidence' | 'proofOfNationalId'>;
40
40
  export declare const getPage: ({ attachments }: Document, pageType?: PageType) => Attachment;
41
41
  export declare const getPageName: (document: Document, pageType?: PageType) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.18.0",
3
+ "version": "3.18.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [