@adyen/kyc-components 3.17.0 → 3.17.2
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.
|
@@ -14022,6 +14022,7 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
|
|
|
14022
14022
|
return solePropCompData;
|
|
14023
14023
|
};
|
|
14024
14024
|
const mapSolePropToLegalEntity = (data) => {
|
|
14025
|
+
var _a, _b;
|
|
14025
14026
|
const requestObj = {
|
|
14026
14027
|
...formatObject(data, solePropApiKeyMapping)
|
|
14027
14028
|
};
|
|
@@ -14040,6 +14041,9 @@ const mapSolePropToLegalEntity = (data) => {
|
|
|
14040
14041
|
if (data.solePropRegistrationDetails.exemptedFromRegistrationNumber) {
|
|
14041
14042
|
requestObj.soleProprietorship.registrationNumber = "";
|
|
14042
14043
|
}
|
|
14044
|
+
if (!((_a = requestObj.soleProprietorship) == null ? void 0 : _a.countryOfGoverningLaw) && ((_b = data.solePropNameAndCountry) == null ? void 0 : _b.country)) {
|
|
14045
|
+
requestObj.soleProprietorship.countryOfGoverningLaw = data.solePropNameAndCountry.country;
|
|
14046
|
+
}
|
|
14043
14047
|
requestObj.type = LegalEntityType.SOLE_PROPRIETORSHIP;
|
|
14044
14048
|
return requestObj;
|
|
14045
14049
|
};
|
|
@@ -35932,7 +35936,7 @@ const ConfigurationApiProvider = ({
|
|
|
35932
35936
|
isEmbeddedDropin,
|
|
35933
35937
|
loadingContext
|
|
35934
35938
|
} = authContext;
|
|
35935
|
-
const sdkVersion = "3.17.
|
|
35939
|
+
const sdkVersion = "3.17.2";
|
|
35936
35940
|
useAnalytics({
|
|
35937
35941
|
onUserEvent,
|
|
35938
35942
|
legalEntityId: rootLegalEntityId,
|