@swan-io/shared-business 12.2.12 → 12.2.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/shared-business",
3
- "version": "12.2.12",
3
+ "version": "12.2.13",
4
4
  "engines": {
5
5
  "node": "^22.12.0"
6
6
  },
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
- "@swan-io/lake": "12.2.12"
28
+ "@swan-io/lake": "12.2.13"
29
29
  },
30
30
  "dependencies": {
31
31
  "@formatjs/intl": "^3.1.6",
@@ -51,6 +51,6 @@
51
51
  "@types/react-native": "^0.72.8",
52
52
  "jsdom": "^26.1.0",
53
53
  "vitest": "^3.2.0",
54
- "@swan-io/lake": "12.2.12"
54
+ "@swan-io/lake": "12.2.13"
55
55
  }
56
56
  }
@@ -18,7 +18,7 @@ export const getTaxNumberTooltip = (accountCountry) => match(accountCountry)
18
18
  export const getCompanyTaxNumberHelp = (accountCountry) => match(accountCountry)
19
19
  .with("DEU", () => t("common.form.help.nbDigits", { nbDigits: "10-13" }))
20
20
  .with("ESP", () => t("common.form.help.nbCharacters", { nbCharacters: "9" }))
21
- .with("ITA", () => t("common.form.help.nbCharacters", { nbCharacters: "16" }))
21
+ .with("ITA", () => t("common.form.help.nbCharacters", { nbCharacters: "11" }))
22
22
  .otherwise(() => "");
23
23
  export const getIndividualTaxNumberHelp = (accountCountry) => match(accountCountry)
24
24
  .with("DEU", () => t("common.form.help.nbDigits", { nbDigits: "11" }))
@@ -98,8 +98,8 @@ export const validateCompanyTaxNumber = (accountCountry) => value => {
98
98
  }
99
99
  })
100
100
  .with("ITA", () => {
101
- // accept 16 characters
102
- if (!/^[a-zA-Z0-9]{16}$/.test(value)) {
101
+ // accept 11 characters
102
+ if (!/^[a-zA-Z0-9]{11}$/.test(value)) {
103
103
  return t("common.form.invalidTaxIdentificationNumber");
104
104
  }
105
105
  })