@adyen/kyc-components 2.26.3 → 2.26.4
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.
|
@@ -6245,7 +6245,7 @@ const businessRegistrationNumberMasks = {
|
|
|
6245
6245
|
},
|
|
6246
6246
|
[CountryCodes.Finland]: {
|
|
6247
6247
|
default: {
|
|
6248
|
-
mask: makeMask(...numericInputs(
|
|
6248
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" - "), ...numericInputs(1))
|
|
6249
6249
|
}
|
|
6250
6250
|
},
|
|
6251
6251
|
[CountryCodes.France]: {
|
|
@@ -6443,6 +6443,9 @@ const businessRegistrationNumberMasks = {
|
|
|
6443
6443
|
default: {
|
|
6444
6444
|
mask: makeMask(...alphanumericInputs(8)),
|
|
6445
6445
|
transformOnType: uppercase
|
|
6446
|
+
},
|
|
6447
|
+
nonProfit: {
|
|
6448
|
+
mask: makeMask(...numericInputs(6), ...numericInputs(1, true))
|
|
6446
6449
|
}
|
|
6447
6450
|
},
|
|
6448
6451
|
[CountryCodes.UnitedStates]: {
|
|
@@ -6503,7 +6506,7 @@ const businessRegistrationNumberPatterns = {
|
|
|
6503
6506
|
default: /^\d{8}$/
|
|
6504
6507
|
},
|
|
6505
6508
|
[CountryCodes.Finland]: {
|
|
6506
|
-
default: /^\d{
|
|
6509
|
+
default: /^\d{8}$/
|
|
6507
6510
|
},
|
|
6508
6511
|
[CountryCodes.France]: {
|
|
6509
6512
|
SIRET: /^\d{9}-?\d{5}$/,
|
|
@@ -6613,7 +6616,7 @@ const businessRegistrationNumberPatterns = {
|
|
|
6613
6616
|
default: /^[a-zA-Z][a-zA-Z0-9]{8}$/
|
|
6614
6617
|
},
|
|
6615
6618
|
[CountryCodes.Sweden]: {
|
|
6616
|
-
default: /^\d{
|
|
6619
|
+
default: /^\d{10}$/
|
|
6617
6620
|
},
|
|
6618
6621
|
[CountryCodes.Switzerland]: {
|
|
6619
6622
|
default: /^CHE\d{9}$|^CH\d{11}$/
|
|
@@ -7152,7 +7155,7 @@ const defaultFieldConfig = {
|
|
|
7152
7155
|
values: {
|
|
7153
7156
|
minChars: "8",
|
|
7154
7157
|
maxChars: "11",
|
|
7155
|
-
example: "
|
|
7158
|
+
example: "8732P92873"
|
|
7156
7159
|
}
|
|
7157
7160
|
}
|
|
7158
7161
|
} : {
|
|
@@ -7351,16 +7354,37 @@ const defaultFieldConfig = {
|
|
|
7351
7354
|
}
|
|
7352
7355
|
}
|
|
7353
7356
|
},
|
|
7354
|
-
[CountryCodes.UnitedKingdom]: {
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7357
|
+
[CountryCodes.UnitedKingdom]: ({
|
|
7358
|
+
companyType: companyType2
|
|
7359
|
+
}) => {
|
|
7360
|
+
switch (companyType2) {
|
|
7361
|
+
case "nonProfit":
|
|
7362
|
+
return {
|
|
7363
|
+
label: "charityNumber",
|
|
7364
|
+
mask: businessRegistrationNumberMasks[CountryCodes.UnitedKingdom].nonProfit,
|
|
7365
|
+
validators: validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.UnitedKingdom].nonProfit),
|
|
7366
|
+
helperText: {
|
|
7367
|
+
key: "enterXToYDigitsForExample",
|
|
7368
|
+
values: {
|
|
7369
|
+
minDigits: "6",
|
|
7370
|
+
maxDigits: "7",
|
|
7371
|
+
example: "123456"
|
|
7372
|
+
}
|
|
7373
|
+
}
|
|
7374
|
+
};
|
|
7375
|
+
default:
|
|
7376
|
+
return {
|
|
7377
|
+
label: "companyNumber",
|
|
7378
|
+
mask: businessRegistrationNumberMasks[CountryCodes.UnitedKingdom].default,
|
|
7379
|
+
validators: validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.UnitedKingdom].default),
|
|
7380
|
+
helperText: {
|
|
7381
|
+
key: "enterNCharactersForExample",
|
|
7382
|
+
values: {
|
|
7383
|
+
numChars: "8",
|
|
7384
|
+
example: "43668490"
|
|
7385
|
+
}
|
|
7386
|
+
}
|
|
7387
|
+
};
|
|
7364
7388
|
}
|
|
7365
7389
|
},
|
|
7366
7390
|
[CountryCodes.UnitedStates]: {}
|
|
@@ -247,6 +247,9 @@ export declare const businessRegistrationNumberMasks: {
|
|
|
247
247
|
mask: import("../maskTypes").Mask;
|
|
248
248
|
transformOnType: import("../transformers/types").InputTransformer;
|
|
249
249
|
};
|
|
250
|
+
nonProfit: {
|
|
251
|
+
mask: import("../maskTypes").Mask;
|
|
252
|
+
};
|
|
250
253
|
};
|
|
251
254
|
US: {
|
|
252
255
|
default: {
|