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