@adyen/kyc-components 3.12.0 → 3.12.1
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.
|
@@ -304,6 +304,7 @@ const pciDssQuestionnaire = "PCI DSS questionnaire";
|
|
|
304
304
|
const serviceAgreementSignedSuccessfully = "Service agreement signed successfully";
|
|
305
305
|
const serviceAgreementSignFailed = "Service agreement signing failed";
|
|
306
306
|
const failedToGetServiceAgreementStatus = "Failed to get the service agreement status";
|
|
307
|
+
const failedToFetchAcceptedByName = "Failed to get the legal entity that accepted service agreement";
|
|
307
308
|
const failedToGetServiceAgreement = "Failed to get the service agreement";
|
|
308
309
|
const failedToGetServiceAgreementInSelectedLanguageFallbackToEn = "Failed to get the service agreement in the selected language. Falling back to English.";
|
|
309
310
|
const iHaveReadAndIAcceptTheseTerms = "I have read and I accept these terms and confirm that I am a legal representative authorized to accept these terms on behalf of the company. I have taken notice of the privacy statement (www.adyen.com/policies-and-disclaimer/privacy-policy) and I consent to my (personal) data being used for the purposes described therein.";
|
|
@@ -1580,6 +1581,7 @@ const defaultTrans = {
|
|
|
1580
1581
|
serviceAgreementSignedSuccessfully,
|
|
1581
1582
|
serviceAgreementSignFailed,
|
|
1582
1583
|
failedToGetServiceAgreementStatus,
|
|
1584
|
+
failedToFetchAcceptedByName,
|
|
1583
1585
|
failedToGetServiceAgreement,
|
|
1584
1586
|
failedToGetServiceAgreementInSelectedLanguageFallbackToEn,
|
|
1585
1587
|
iHaveReadAndIAcceptTheseTerms,
|
|
@@ -33069,11 +33071,19 @@ function DropinComposerComponent({
|
|
|
33069
33071
|
getPciTemplate2().catch(logger$b.error);
|
|
33070
33072
|
}, [getPciTemplate2, tasks]);
|
|
33071
33073
|
const addFetchedAcceptedByName = async (acceptanceInfo) => {
|
|
33072
|
-
|
|
33073
|
-
|
|
33074
|
-
|
|
33075
|
-
|
|
33076
|
-
|
|
33074
|
+
try {
|
|
33075
|
+
const acceptedByEntity = await (args == null ? void 0 : args.handleGetLegalEntity(acceptanceInfo.acceptedBy));
|
|
33076
|
+
return {
|
|
33077
|
+
...acceptanceInfo,
|
|
33078
|
+
acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
|
|
33079
|
+
};
|
|
33080
|
+
} catch (e) {
|
|
33081
|
+
logger$b.warn(i18n.get("failedToFetchAcceptedByName"));
|
|
33082
|
+
return {
|
|
33083
|
+
...acceptanceInfo,
|
|
33084
|
+
acceptedByName: null
|
|
33085
|
+
};
|
|
33086
|
+
}
|
|
33077
33087
|
};
|
|
33078
33088
|
const getServiceAgreementAcceptanceInfos = async () => {
|
|
33079
33089
|
if (rootLegalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
|
|
@@ -35780,7 +35790,7 @@ const ConfigurationApiProvider = ({
|
|
|
35780
35790
|
isEmbeddedDropin,
|
|
35781
35791
|
loadingContext
|
|
35782
35792
|
} = authContext;
|
|
35783
|
-
const sdkVersion = "3.12.
|
|
35793
|
+
const sdkVersion = "3.12.1";
|
|
35784
35794
|
useAnalytics({
|
|
35785
35795
|
onUserEvent,
|
|
35786
35796
|
legalEntityId: rootLegalEntityId,
|
|
@@ -11,7 +11,7 @@ export interface ServiceAgreementAcceptanceInfo {
|
|
|
11
11
|
type: ServiceAgreementType;
|
|
12
12
|
}
|
|
13
13
|
export interface ServiceAgreementAcceptanceInfoWithName extends ServiceAgreementAcceptanceInfo {
|
|
14
|
-
acceptedByName
|
|
14
|
+
acceptedByName?: string;
|
|
15
15
|
}
|
|
16
16
|
export interface ServiceAgreementSchema {
|
|
17
17
|
signer?: string;
|