@adyen/kyc-components 2.44.0 → 2.44.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.
|
@@ -13786,8 +13786,8 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
|
|
|
13786
13786
|
}
|
|
13787
13787
|
return solePropCompData;
|
|
13788
13788
|
};
|
|
13789
|
-
const mapSolePropToLegalEntity = (data
|
|
13790
|
-
var _a;
|
|
13789
|
+
const mapSolePropToLegalEntity = (data) => {
|
|
13790
|
+
var _a, _b;
|
|
13791
13791
|
const requestObj = {
|
|
13792
13792
|
...formatObject(data, solePropApiKeyMapping)
|
|
13793
13793
|
};
|
|
@@ -13806,7 +13806,7 @@ const mapSolePropToLegalEntity = (data, isCountryOfGoverningLawEnabled = false)
|
|
|
13806
13806
|
if (data.solePropRegistrationDetails.exemptedFromRegistrationNumber) {
|
|
13807
13807
|
requestObj.soleProprietorship.registrationNumber = "";
|
|
13808
13808
|
}
|
|
13809
|
-
if (!
|
|
13809
|
+
if (!((_a = requestObj.soleProprietorship) == null ? void 0 : _a.countryOfGoverningLaw) && ((_b = data.solePropNameAndCountry) == null ? void 0 : _b.country)) {
|
|
13810
13810
|
requestObj.soleProprietorship.countryOfGoverningLaw = data.solePropNameAndCountry.country;
|
|
13811
13811
|
}
|
|
13812
13812
|
requestObj.type = LegalEntityType.SOLE_PROPRIETORSHIP;
|
|
@@ -32247,7 +32247,7 @@ function SolePropDropinComponent({
|
|
|
32247
32247
|
const dataSubmitted = data;
|
|
32248
32248
|
setLoadingStatus("loading");
|
|
32249
32249
|
try {
|
|
32250
|
-
const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted
|
|
32250
|
+
const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted));
|
|
32251
32251
|
await submitDocuments2({
|
|
32252
32252
|
forms: forms2,
|
|
32253
32253
|
legalEntity,
|
|
@@ -34932,7 +34932,7 @@ const ConfigurationApiProvider = ({
|
|
|
34932
34932
|
isEmbeddedDropin,
|
|
34933
34933
|
loadingContext
|
|
34934
34934
|
} = authContext;
|
|
34935
|
-
const sdkVersion = "2.44.
|
|
34935
|
+
const sdkVersion = "2.44.1";
|
|
34936
34936
|
useAnalytics({
|
|
34937
34937
|
onUserEvent,
|
|
34938
34938
|
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;
|