@adyen/kyc-components 3.11.1 → 3.11.3

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.
@@ -302,6 +302,7 @@ const pciDssQuestionnaire = "PCI DSS questionnaire";
302
302
  const serviceAgreementSignedSuccessfully = "Service agreement signed successfully";
303
303
  const serviceAgreementSignFailed = "Service agreement signing failed";
304
304
  const failedToGetServiceAgreementStatus = "Failed to get the service agreement status";
305
+ const failedToFetchAcceptedByName = "Failed to get the legal entity that accepted service agreement";
305
306
  const failedToGetServiceAgreement = "Failed to get the service agreement";
306
307
  const failedToGetServiceAgreementInSelectedLanguageFallbackToEn = "Failed to get the service agreement in the selected language. Falling back to English.";
307
308
  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.";
@@ -1568,6 +1569,7 @@ const defaultTrans = {
1568
1569
  serviceAgreementSignedSuccessfully,
1569
1570
  serviceAgreementSignFailed,
1570
1571
  failedToGetServiceAgreementStatus,
1572
+ failedToFetchAcceptedByName,
1571
1573
  failedToGetServiceAgreement,
1572
1574
  failedToGetServiceAgreementInSelectedLanguageFallbackToEn,
1573
1575
  iHaveReadAndIAcceptTheseTerms,
@@ -13673,7 +13675,7 @@ const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount2, bankCou
13673
13675
  case "hkLocal":
13674
13676
  return {
13675
13677
  ...localAccount,
13676
- clearingCode: payoutAccount2.branchCode
13678
+ clearingCode: payoutAccount2.bankCode
13677
13679
  };
13678
13680
  case "nzLocal":
13679
13681
  return {
@@ -20136,20 +20138,6 @@ const defaultFieldConfig$2 = {
20136
20138
  }
20137
20139
  }
20138
20140
  },
20139
- [CountryCodes.HongKong]: {
20140
- label: "branchCode",
20141
- validators: validatePatternOnBlur(/^\d{3}$/),
20142
- mask: {
20143
- mask: makeMask(...numericInputs(3))
20144
- },
20145
- guidanceText: {
20146
- key: "enterNDigitsForExample",
20147
- values: {
20148
- numDigits: "3",
20149
- example: "100"
20150
- }
20151
- }
20152
- },
20153
20141
  [CountryCodes.UnitedStates]: {
20154
20142
  label: "achRoutingNumber",
20155
20143
  validators: validatePatternOnBlur(/^\d{9}$/),
@@ -32820,11 +32808,19 @@ function DropinComposerComponent({
32820
32808
  getPciTemplate2().catch(logger$b.error);
32821
32809
  }, [getPciTemplate2, tasks]);
32822
32810
  const addFetchedAcceptedByName = async (acceptanceInfo) => {
32823
- const acceptedByEntity = await (args == null ? void 0 : args.handleGetLegalEntity(acceptanceInfo.acceptedBy));
32824
- return {
32825
- ...acceptanceInfo,
32826
- acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
32827
- };
32811
+ try {
32812
+ const acceptedByEntity = await (args == null ? void 0 : args.handleGetLegalEntity(acceptanceInfo.acceptedBy));
32813
+ return {
32814
+ ...acceptanceInfo,
32815
+ acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
32816
+ };
32817
+ } catch (e) {
32818
+ logger$b.warn(i18n.get("failedToFetchAcceptedByName"));
32819
+ return {
32820
+ ...acceptanceInfo,
32821
+ acceptedByName: null
32822
+ };
32823
+ }
32828
32824
  };
32829
32825
  const getServiceAgreementAcceptanceInfos = async () => {
32830
32826
  if (rootLegalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
@@ -35488,7 +35484,7 @@ const ConfigurationApiProvider = ({
35488
35484
  isEmbeddedDropin,
35489
35485
  loadingContext
35490
35486
  } = authContext;
35491
- const sdkVersion = "3.11.1";
35487
+ const sdkVersion = "3.11.3";
35492
35488
  useAnalytics({
35493
35489
  onUserEvent,
35494
35490
  legalEntityId: rootLegalEntityId,
@@ -11,7 +11,7 @@ export interface ServiceAgreementAcceptanceInfo {
11
11
  type: ServiceAgreementType;
12
12
  }
13
13
  export interface ServiceAgreementAcceptanceInfoWithName extends ServiceAgreementAcceptanceInfo {
14
- acceptedByName: string;
14
+ acceptedByName?: string;
15
15
  }
16
16
  export interface ServiceAgreementSchema {
17
17
  signer?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.11.1",
3
+ "version": "3.11.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [