b2b-platform-utils 1.1.81 → 1.1.83

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.
Files changed (2) hide show
  1. package/errorsMap.js +12 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1374,6 +1374,18 @@ const STATIC_ERRORS = [
1374
1374
  httpCode: 403,
1375
1375
  description: "Credit financial operations are not allowed for this user.",
1376
1376
  },
1377
+ {
1378
+ errorCode: 1226,
1379
+ errorKey: "financialOperationTrustedFieldForbidden",
1380
+ httpCode: 422,
1381
+ description: "Trusted financial operation field is forbidden.",
1382
+ },
1383
+ {
1384
+ errorCode: 1227,
1385
+ errorKey: "financialOperationInvalidAmount",
1386
+ httpCode: 422,
1387
+ description: "Financial operation amount is invalid.",
1388
+ },
1377
1389
  ];
1378
1390
 
1379
1391
  const STATIC_BY_KEY = Object.fromEntries(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b2b-platform-utils",
3
- "version": "1.1.81",
3
+ "version": "1.1.83",
4
4
  "description": "Shared utilities for Node.js microservices: errors map, local cache, logger, numbers, dates, filesystem, media optimization, paginator, slugger, crypto wrapper, sanitize HTML, sorting.",
5
5
  "type": "commonjs",
6
6
  "license": "KingSizer",