@adyen/kyc-components 2.3.1 → 2.3.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.
|
@@ -4509,7 +4509,7 @@ const lengthValidationPatterns = {
|
|
|
4509
4509
|
message: "validationEnter9Or12Digits"
|
|
4510
4510
|
}
|
|
4511
4511
|
};
|
|
4512
|
-
const bankStatementDescriptionPattern = /^[
|
|
4512
|
+
const bankStatementDescriptionPattern = /^[\s+$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6a-zA-Z0-9-."_,:;'*!@#%()+?¿/&「」]*$/;
|
|
4513
4513
|
const businessRegistrationNumberPatterns = {
|
|
4514
4514
|
[CountryCodes.Australia]: {
|
|
4515
4515
|
default: {
|
|
@@ -12136,7 +12136,7 @@ function formatSwedenPersonnummer(value) {
|
|
|
12136
12136
|
}
|
|
12137
12137
|
const formattedCountries = [CountryCodes.Denmark, CountryCodes.Sweden];
|
|
12138
12138
|
const stripCountryIdFormat = (value, country2) => {
|
|
12139
|
-
if (formattedCountries.includes(country2)) {
|
|
12139
|
+
if (value && formattedCountries.includes(country2)) {
|
|
12140
12140
|
return cleanNonNumbers(value);
|
|
12141
12141
|
}
|
|
12142
12142
|
return value;
|
|
@@ -22415,22 +22415,22 @@ function IndividualDropinComponent({
|
|
|
22415
22415
|
legalEntity,
|
|
22416
22416
|
dataSubmitted
|
|
22417
22417
|
}) => {
|
|
22418
|
-
if (isDocumentsRequired2(forms2))
|
|
22419
|
-
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22427
|
-
|
|
22428
|
-
|
|
22429
|
-
|
|
22430
|
-
|
|
22431
|
-
}
|
|
22418
|
+
if (!isDocumentsRequired2(forms2))
|
|
22419
|
+
return;
|
|
22420
|
+
if (hasInstantIdVerification(dataSubmitted)) {
|
|
22421
|
+
await handleInstantIdVerificationStartCheck(dataSubmitted.idDocument.instantIdVerificationData, legalEntity.id);
|
|
22422
|
+
} else {
|
|
22423
|
+
const formattedDocuments = await mapIndividualDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
22424
|
+
const uploadedDocuments = await documentUtils.uploadDocuments(formattedDocuments, legalEntity.id);
|
|
22425
|
+
uploadedDocuments == null ? void 0 : uploadedDocuments.forEach((doc) => {
|
|
22426
|
+
userEvents.addEvent("Saved document", {
|
|
22427
|
+
segmentation: {
|
|
22428
|
+
...baseTrackingPayload,
|
|
22429
|
+
documentType: doc.type,
|
|
22430
|
+
fileExtention: doc.attachments.map((item) => getFileExtention(item.pageName))
|
|
22431
|
+
}
|
|
22432
22432
|
});
|
|
22433
|
-
}
|
|
22433
|
+
});
|
|
22434
22434
|
}
|
|
22435
22435
|
};
|
|
22436
22436
|
const hasInstantIdVerification = (dataSubmitted) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CountryCode } from '../../core/models/country-code';
|
|
2
|
-
export declare const stripCountryIdFormat: (value: string, country: CountryCode) => string;
|
|
2
|
+
export declare const stripCountryIdFormat: (value: string | undefined, country: CountryCode) => string;
|