@adyen/kyc-components 3.21.0 → 3.21.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.
|
@@ -36375,7 +36375,7 @@ const getLegalEntity = async (context, legalEntityId) => {
|
|
|
36375
36375
|
loadingContext,
|
|
36376
36376
|
legalEntityId: rootLegalEntityId
|
|
36377
36377
|
} = context;
|
|
36378
|
-
const path = legalEntityId !== rootLegalEntityId ? `${rootLegalEntityId}/${legalEntityId}` : `${rootLegalEntityId}`;
|
|
36378
|
+
const path = legalEntityId !== rootLegalEntityId ? `${rootLegalEntityId}/child/${legalEntityId}` : `${rootLegalEntityId}`;
|
|
36379
36379
|
return httpGet({
|
|
36380
36380
|
loadingContext,
|
|
36381
36381
|
errorLevel: "warn",
|
|
@@ -36484,17 +36484,20 @@ const updateLegalEntity = async (context, legalEntity, legalEntityId) => {
|
|
|
36484
36484
|
loadingContext,
|
|
36485
36485
|
legalEntityId: rootLegalEntityId
|
|
36486
36486
|
} = context;
|
|
36487
|
-
const
|
|
36487
|
+
const patchLegalEntity = {
|
|
36488
|
+
...legalEntity,
|
|
36489
|
+
id: legalEntityId
|
|
36490
|
+
};
|
|
36488
36491
|
return httpPost({
|
|
36489
36492
|
loadingContext,
|
|
36490
36493
|
errorLevel: "warn",
|
|
36491
36494
|
errorMessage: `LegalEntity update failed`,
|
|
36492
|
-
path
|
|
36495
|
+
path: `${rootLegalEntityId}`,
|
|
36493
36496
|
authentication: "jwt",
|
|
36494
36497
|
headers: {
|
|
36495
36498
|
"Content-Type": "application/json"
|
|
36496
36499
|
}
|
|
36497
|
-
},
|
|
36500
|
+
}, patchLegalEntity);
|
|
36498
36501
|
};
|
|
36499
36502
|
const updateTransferInstrument = async (context, transferInstrument, transferInstrumentId) => {
|
|
36500
36503
|
const {
|
|
@@ -39076,7 +39079,7 @@ const ConfigurationApiProvider = ({
|
|
|
39076
39079
|
isEmbeddedDropin,
|
|
39077
39080
|
loadingContext
|
|
39078
39081
|
} = authContext;
|
|
39079
|
-
const sdkVersion = "3.21.
|
|
39082
|
+
const sdkVersion = "3.21.1";
|
|
39080
39083
|
useAnalytics({
|
|
39081
39084
|
onUserEvent,
|
|
39082
39085
|
legalEntityId: rootLegalEntityId,
|