@adyen/kyc-components 3.21.3 → 3.21.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.
|
@@ -6539,17 +6539,27 @@ const taxIdNumberOptions = {
|
|
|
6539
6539
|
name: "socialSecurityNumber",
|
|
6540
6540
|
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6541
6541
|
}],
|
|
6542
|
+
[CountryCodes.PuertoRico]: [{
|
|
6543
|
+
id: "EIN",
|
|
6544
|
+
name: "ein"
|
|
6545
|
+
}, {
|
|
6546
|
+
id: "SSN",
|
|
6547
|
+
name: "ssn",
|
|
6548
|
+
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6549
|
+
}],
|
|
6542
6550
|
[CountryCodes.UnitedStates]: [{
|
|
6543
6551
|
id: "EIN",
|
|
6544
6552
|
name: "ein"
|
|
6545
6553
|
}, {
|
|
6546
6554
|
id: "SSN",
|
|
6547
|
-
name: "ssn"
|
|
6555
|
+
name: "ssn",
|
|
6556
|
+
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6548
6557
|
}]
|
|
6549
6558
|
};
|
|
6550
6559
|
const getTaxIdNumberOptions = (country2, companyType2) => {
|
|
6551
6560
|
const optionsForCountry = taxIdNumberOptions[country2];
|
|
6552
6561
|
if (!companyType2 || !optionsForCountry) return optionsForCountry;
|
|
6562
|
+
if (country2 === "US" || country2 === "PR") return optionsForCountry.filter((option) => option.id === "EIN");
|
|
6553
6563
|
return optionsForCountry.filter((option) => {
|
|
6554
6564
|
var _a;
|
|
6555
6565
|
return ((_a = option.applicableOnlyFor) == null ? void 0 : _a.includes(companyType2)) ?? true;
|
|
@@ -38953,7 +38963,7 @@ const ConfigurationApiProvider = ({
|
|
|
38953
38963
|
isEmbeddedDropin,
|
|
38954
38964
|
loadingContext
|
|
38955
38965
|
} = authContext;
|
|
38956
|
-
const sdkVersion = "3.21.
|
|
38966
|
+
const sdkVersion = "3.21.4";
|
|
38957
38967
|
useAnalytics({
|
|
38958
38968
|
onUserEvent,
|
|
38959
38969
|
legalEntityId: rootLegalEntityId,
|
|
@@ -131,12 +131,21 @@ export declare const taxIdNumberOptions: {
|
|
|
131
131
|
readonly name: "socialSecurityNumber";
|
|
132
132
|
readonly applicableOnlyFor: readonly [CompanyTypesValue.SOLE_PROPRIETORSHIP];
|
|
133
133
|
}];
|
|
134
|
+
readonly PR: readonly [{
|
|
135
|
+
readonly id: "EIN";
|
|
136
|
+
readonly name: "ein";
|
|
137
|
+
}, {
|
|
138
|
+
readonly id: "SSN";
|
|
139
|
+
readonly name: "ssn";
|
|
140
|
+
readonly applicableOnlyFor: readonly [CompanyTypesValue.SOLE_PROPRIETORSHIP];
|
|
141
|
+
}];
|
|
134
142
|
readonly US: readonly [{
|
|
135
143
|
readonly id: "EIN";
|
|
136
144
|
readonly name: "ein";
|
|
137
145
|
}, {
|
|
138
146
|
readonly id: "SSN";
|
|
139
147
|
readonly name: "ssn";
|
|
148
|
+
readonly applicableOnlyFor: readonly [CompanyTypesValue.SOLE_PROPRIETORSHIP];
|
|
140
149
|
}];
|
|
141
150
|
};
|
|
142
151
|
export declare const getTaxIdNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => readonly TaxIdNumberOption[] | undefined;
|