@adyen/kyc-components 2.47.1 → 2.47.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.
|
@@ -6489,17 +6489,27 @@ const taxIdNumberOptions = {
|
|
|
6489
6489
|
name: "socialSecurityNumber",
|
|
6490
6490
|
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6491
6491
|
}],
|
|
6492
|
+
[CountryCodes.PuertoRico]: [{
|
|
6493
|
+
id: "EIN",
|
|
6494
|
+
name: "ein"
|
|
6495
|
+
}, {
|
|
6496
|
+
id: "SSN",
|
|
6497
|
+
name: "ssn",
|
|
6498
|
+
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6499
|
+
}],
|
|
6492
6500
|
[CountryCodes.UnitedStates]: [{
|
|
6493
6501
|
id: "EIN",
|
|
6494
6502
|
name: "ein"
|
|
6495
6503
|
}, {
|
|
6496
6504
|
id: "SSN",
|
|
6497
|
-
name: "ssn"
|
|
6505
|
+
name: "ssn",
|
|
6506
|
+
applicableOnlyFor: [CompanyTypesValue.SOLE_PROPRIETORSHIP]
|
|
6498
6507
|
}]
|
|
6499
6508
|
};
|
|
6500
6509
|
const getTaxIdNumberOptions = (country2, companyType2) => {
|
|
6501
6510
|
const optionsForCountry = taxIdNumberOptions[country2];
|
|
6502
6511
|
if (!companyType2 || !optionsForCountry) return optionsForCountry;
|
|
6512
|
+
if (country2 === "US" || country2 === "PR") return optionsForCountry.filter((option) => option.id === "EIN");
|
|
6503
6513
|
return optionsForCountry.filter((option) => {
|
|
6504
6514
|
var _a;
|
|
6505
6515
|
return ((_a = option.applicableOnlyFor) == null ? void 0 : _a.includes(companyType2)) ?? true;
|
|
@@ -38034,7 +38044,7 @@ const ConfigurationApiProvider = ({
|
|
|
38034
38044
|
isEmbeddedDropin,
|
|
38035
38045
|
loadingContext
|
|
38036
38046
|
} = authContext;
|
|
38037
|
-
const sdkVersion = "2.47.
|
|
38047
|
+
const sdkVersion = "2.47.2";
|
|
38038
38048
|
useAnalytics({
|
|
38039
38049
|
onUserEvent,
|
|
38040
38050
|
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;
|