@adyen/kyc-components 3.21.0 → 3.21.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.
|
@@ -14491,7 +14491,6 @@ const individualBaseMapping = {
|
|
|
14491
14491
|
"personalDetails.licenseCardNumber": "individual.identificationData.cardNumber",
|
|
14492
14492
|
"personalDetails.expiryDate": "individual.identificationData.expiryDate",
|
|
14493
14493
|
"personalDetails.nationality": "individual.nationality",
|
|
14494
|
-
"personalDetails.jobTitle": "individual.jobTitle",
|
|
14495
14494
|
"address.city": "individual.residentialAddress.city",
|
|
14496
14495
|
"address.country": "individual.residentialAddress.country",
|
|
14497
14496
|
"address.postalCode": "individual.residentialAddress.postalCode",
|
|
@@ -36375,7 +36374,7 @@ const getLegalEntity = async (context, legalEntityId) => {
|
|
|
36375
36374
|
loadingContext,
|
|
36376
36375
|
legalEntityId: rootLegalEntityId
|
|
36377
36376
|
} = context;
|
|
36378
|
-
const path = legalEntityId !== rootLegalEntityId ? `${rootLegalEntityId}/${legalEntityId}` : `${rootLegalEntityId}`;
|
|
36377
|
+
const path = legalEntityId !== rootLegalEntityId ? `${rootLegalEntityId}/child/${legalEntityId}` : `${rootLegalEntityId}`;
|
|
36379
36378
|
return httpGet({
|
|
36380
36379
|
loadingContext,
|
|
36381
36380
|
errorLevel: "warn",
|
|
@@ -36484,17 +36483,20 @@ const updateLegalEntity = async (context, legalEntity, legalEntityId) => {
|
|
|
36484
36483
|
loadingContext,
|
|
36485
36484
|
legalEntityId: rootLegalEntityId
|
|
36486
36485
|
} = context;
|
|
36487
|
-
const
|
|
36486
|
+
const patchLegalEntity = {
|
|
36487
|
+
...legalEntity,
|
|
36488
|
+
id: legalEntityId
|
|
36489
|
+
};
|
|
36488
36490
|
return httpPost({
|
|
36489
36491
|
loadingContext,
|
|
36490
36492
|
errorLevel: "warn",
|
|
36491
36493
|
errorMessage: `LegalEntity update failed`,
|
|
36492
|
-
path
|
|
36494
|
+
path: `${rootLegalEntityId}`,
|
|
36493
36495
|
authentication: "jwt",
|
|
36494
36496
|
headers: {
|
|
36495
36497
|
"Content-Type": "application/json"
|
|
36496
36498
|
}
|
|
36497
|
-
},
|
|
36499
|
+
}, patchLegalEntity);
|
|
36498
36500
|
};
|
|
36499
36501
|
const updateTransferInstrument = async (context, transferInstrument, transferInstrumentId) => {
|
|
36500
36502
|
const {
|
|
@@ -39076,7 +39078,7 @@ const ConfigurationApiProvider = ({
|
|
|
39076
39078
|
isEmbeddedDropin,
|
|
39077
39079
|
loadingContext
|
|
39078
39080
|
} = authContext;
|
|
39079
|
-
const sdkVersion = "3.21.
|
|
39081
|
+
const sdkVersion = "3.21.2";
|
|
39080
39082
|
useAnalytics({
|
|
39081
39083
|
onUserEvent,
|
|
39082
39084
|
legalEntityId: rootLegalEntityId,
|
|
@@ -33,7 +33,6 @@ export declare const individualComponentsKeyMapping: {
|
|
|
33
33
|
'personalDetails.licenseCardNumber': string;
|
|
34
34
|
'personalDetails.expiryDate': string;
|
|
35
35
|
'personalDetails.nationality': string;
|
|
36
|
-
'personalDetails.jobTitle': string;
|
|
37
36
|
'address.city': string;
|
|
38
37
|
'address.country': string;
|
|
39
38
|
'address.postalCode': string;
|