b2b-platform-utils 1.1.73 → 1.1.74

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 +30 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1242,6 +1242,36 @@ const STATIC_ERRORS = [
1242
1242
  httpCode: 422,
1243
1243
  description: "Request currency is required for this payment method.",
1244
1244
  },
1245
+ {
1246
+ errorCode: 1204,
1247
+ errorKey: "invalidWagerMultiplier",
1248
+ httpCode: 422,
1249
+ description: "Wager multiplier is missing or invalid.",
1250
+ },
1251
+ {
1252
+ errorCode: 1205,
1253
+ errorKey: "financialOperationReasonRequired",
1254
+ httpCode: 422,
1255
+ description: "Financial operation reason is required.",
1256
+ },
1257
+ {
1258
+ errorCode: 1206,
1259
+ errorKey: "financialOperationIdempotencyRequired",
1260
+ httpCode: 422,
1261
+ description: "Financial operation idempotency identifier is required.",
1262
+ },
1263
+ {
1264
+ errorCode: 1207,
1265
+ errorKey: "financialOperationNotFound",
1266
+ httpCode: 404,
1267
+ description: "Financial operation was not found.",
1268
+ },
1269
+ {
1270
+ errorCode: 1208,
1271
+ errorKey: "financialOperationInvalidState",
1272
+ httpCode: 422,
1273
+ description: "Financial operation is not allowed in its current state.",
1274
+ },
1245
1275
  ];
1246
1276
 
1247
1277
  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.73",
3
+ "version": "1.1.74",
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",