@adyen/kyc-components 3.17.1 → 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.
|
@@ -14021,8 +14021,8 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
|
|
|
14021
14021
|
}
|
|
14022
14022
|
return solePropCompData;
|
|
14023
14023
|
};
|
|
14024
|
-
const mapSolePropToLegalEntity = (data
|
|
14025
|
-
var _a;
|
|
14024
|
+
const mapSolePropToLegalEntity = (data) => {
|
|
14025
|
+
var _a, _b;
|
|
14026
14026
|
const requestObj = {
|
|
14027
14027
|
...formatObject(data, solePropApiKeyMapping)
|
|
14028
14028
|
};
|
|
@@ -14041,7 +14041,7 @@ const mapSolePropToLegalEntity = (data, isCountryOfGoverningLawEnabled = false)
|
|
|
14041
14041
|
if (data.solePropRegistrationDetails.exemptedFromRegistrationNumber) {
|
|
14042
14042
|
requestObj.soleProprietorship.registrationNumber = "";
|
|
14043
14043
|
}
|
|
14044
|
-
if (!
|
|
14044
|
+
if (!((_a = requestObj.soleProprietorship) == null ? void 0 : _a.countryOfGoverningLaw) && ((_b = data.solePropNameAndCountry) == null ? void 0 : _b.country)) {
|
|
14045
14045
|
requestObj.soleProprietorship.countryOfGoverningLaw = data.solePropNameAndCountry.country;
|
|
14046
14046
|
}
|
|
14047
14047
|
requestObj.type = LegalEntityType.SOLE_PROPRIETORSHIP;
|
|
@@ -32602,7 +32602,7 @@ function SolePropDropinComponent({
|
|
|
32602
32602
|
const dataSubmitted = data;
|
|
32603
32603
|
setLoadingStatus("loading");
|
|
32604
32604
|
try {
|
|
32605
|
-
const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted
|
|
32605
|
+
const legalEntity = await handleSubmitLegalEntity(mapSolePropToLegalEntity(dataSubmitted));
|
|
32606
32606
|
await submitDocuments2({
|
|
32607
32607
|
forms: forms2,
|
|
32608
32608
|
legalEntity,
|
|
@@ -35936,7 +35936,7 @@ const ConfigurationApiProvider = ({
|
|
|
35936
35936
|
isEmbeddedDropin,
|
|
35937
35937
|
loadingContext
|
|
35938
35938
|
} = authContext;
|
|
35939
|
-
const sdkVersion = "3.17.
|
|
35939
|
+
const sdkVersion = "3.17.2";
|
|
35940
35940
|
useAnalytics({
|
|
35941
35941
|
onUserEvent,
|
|
35942
35942
|
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;
|