@adyen/kyc-components 2.43.1 → 2.43.3
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.
|
@@ -13890,8 +13890,8 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
|
|
|
13890
13890
|
}
|
|
13891
13891
|
return solePropCompData;
|
|
13892
13892
|
};
|
|
13893
|
-
const mapSolePropToLegalEntity = (data
|
|
13894
|
-
var _a;
|
|
13893
|
+
const mapSolePropToLegalEntity = (data) => {
|
|
13894
|
+
var _a, _b;
|
|
13895
13895
|
const requestObj = {
|
|
13896
13896
|
...formatObject(data, solePropApiKeyMapping)
|
|
13897
13897
|
};
|
|
@@ -13910,7 +13910,7 @@ const mapSolePropToLegalEntity = (data, isCountryOfGoverningLawEnabled = false)
|
|
|
13910
13910
|
if (data.solePropRegistrationDetails.exemptedFromRegistrationNumber) {
|
|
13911
13911
|
requestObj.soleProprietorship.registrationNumber = "";
|
|
13912
13912
|
}
|
|
13913
|
-
if (!
|
|
13913
|
+
if (!((_a = requestObj.soleProprietorship) == null ? void 0 : _a.countryOfGoverningLaw) && ((_b = data.solePropNameAndCountry) == null ? void 0 : _b.country)) {
|
|
13914
13914
|
requestObj.soleProprietorship.countryOfGoverningLaw = data.solePropNameAndCountry.country;
|
|
13915
13915
|
}
|
|
13916
13916
|
requestObj.type = LegalEntityType.SOLE_PROPRIETORSHIP;
|
|
@@ -32339,7 +32339,7 @@ function SolePropDropinComponent({
|
|
|
32339
32339
|
const dataSubmitted = data;
|
|
32340
32340
|
setLoadingStatus("loading");
|
|
32341
32341
|
try {
|
|
32342
|
-
const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted
|
|
32342
|
+
const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted));
|
|
32343
32343
|
await submitDocuments2({
|
|
32344
32344
|
forms: forms2,
|
|
32345
32345
|
legalEntity,
|
|
@@ -35024,7 +35024,7 @@ const ConfigurationApiProvider = ({
|
|
|
35024
35024
|
isEmbeddedDropin,
|
|
35025
35025
|
loadingContext
|
|
35026
35026
|
} = authContext;
|
|
35027
|
-
const sdkVersion = "2.43.
|
|
35027
|
+
const sdkVersion = "2.43.3";
|
|
35028
35028
|
useAnalytics({
|
|
35029
35029
|
onUserEvent,
|
|
35030
35030
|
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
|
|
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;
|