b2b-platform-utils 1.1.79 → 1.1.81

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 +78 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1296,6 +1296,84 @@ const STATIC_ERRORS = [
1296
1296
  httpCode: 403,
1297
1297
  description: "Authenticated user lacks the required permission.",
1298
1298
  },
1299
+ {
1300
+ errorCode: 1213,
1301
+ errorKey: "withdrawalRejected",
1302
+ httpCode: 422,
1303
+ description: "Withdrawal was rejected and cannot be processed.",
1304
+ },
1305
+ {
1306
+ errorCode: 1214,
1307
+ errorKey: "financialOperationInvalidPaymentMethodId",
1308
+ httpCode: 422,
1309
+ description: "Financial operation payment method identifier is invalid.",
1310
+ },
1311
+ {
1312
+ errorCode: 1215,
1313
+ errorKey: "financialOperationPaymentMethodNotAllowed",
1314
+ httpCode: 422,
1315
+ description: "Payment method is not allowed for the requested financial operation.",
1316
+ },
1317
+ {
1318
+ errorCode: 1216,
1319
+ errorKey: "financialOperationExternalPaymentIdInvalid",
1320
+ httpCode: 422,
1321
+ description: "External payment identifier is invalid.",
1322
+ },
1323
+ {
1324
+ errorCode: 1217,
1325
+ errorKey: "financialOperationExternalTransactionIdInvalid",
1326
+ httpCode: 422,
1327
+ description: "External transaction identifier is invalid.",
1328
+ },
1329
+ {
1330
+ errorCode: 1218,
1331
+ errorKey: "financialOperationCurrencyNotAllowed",
1332
+ httpCode: 422,
1333
+ description: "Currency is not allowed for the requested financial operation.",
1334
+ },
1335
+ {
1336
+ errorCode: 1219,
1337
+ errorKey: "financialOperationTypeInvalid",
1338
+ httpCode: 422,
1339
+ description: "Financial operation type is missing or invalid.",
1340
+ },
1341
+ {
1342
+ errorCode: 1220,
1343
+ errorKey: "financialOperationRewardReferenceRequired",
1344
+ httpCode: 422,
1345
+ description: "Reward reference is required for Reward compensation.",
1346
+ },
1347
+ {
1348
+ errorCode: 1221,
1349
+ errorKey: "financialOperationInternalCommentRequired",
1350
+ httpCode: 422,
1351
+ description: "Internal comment is required for this financial operation.",
1352
+ },
1353
+ {
1354
+ errorCode: 1222,
1355
+ errorKey: "financialOperationInsufficientFunds",
1356
+ httpCode: 422,
1357
+ description: "Insufficient available funds for the requested financial operation.",
1358
+ },
1359
+ {
1360
+ errorCode: 1223,
1361
+ errorKey: "financialOperationDuplicateExternalReference",
1362
+ httpCode: 409,
1363
+ description: "External payment reference is already associated with another financial operation.",
1364
+ },
1365
+ {
1366
+ errorCode: 1224,
1367
+ errorKey: "financialOperationIdempotencyConflict",
1368
+ httpCode: 409,
1369
+ description: "Financial operation idempotency identifier conflicts with an existing operation.",
1370
+ },
1371
+ {
1372
+ errorCode: 1225,
1373
+ errorKey: "financialOperationUserCreditRestricted",
1374
+ httpCode: 403,
1375
+ description: "Credit financial operations are not allowed for this user.",
1376
+ },
1299
1377
  ];
1300
1378
 
1301
1379
  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.79",
3
+ "version": "1.1.81",
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",