b2b-platform-utils 1.1.36 → 1.1.37
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/errorsMap.js +30 -0
- package/package.json +1 -1
package/errorsMap.js
CHANGED
|
@@ -443,6 +443,36 @@ const STATIC_ERRORS = [
|
|
|
443
443
|
httpCode: 403,
|
|
444
444
|
description: "Registration is not allowed.",
|
|
445
445
|
},
|
|
446
|
+
{
|
|
447
|
+
errorCode: 1072,
|
|
448
|
+
errorKey: "paymentCompletedInvalidUser",
|
|
449
|
+
httpCode: 422,
|
|
450
|
+
description: "User reference is missing or invalid for payment.completed.",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
errorCode: 1073,
|
|
454
|
+
errorKey: "paymentCompletedMissingIdempotencyKey",
|
|
455
|
+
httpCode: 422,
|
|
456
|
+
description: "Idempotency key is missing for payment.completed.",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
errorCode: 1074,
|
|
460
|
+
errorKey: "paymentCompletedInvalidCurrency",
|
|
461
|
+
httpCode: 422,
|
|
462
|
+
description: "Currency is missing or invalid for payment.completed.",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
errorCode: 1075,
|
|
466
|
+
errorKey: "paymentCompletedInvalidAmount",
|
|
467
|
+
httpCode: 422,
|
|
468
|
+
description: "Amount is missing or invalid for payment.completed.",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
errorCode: 1076,
|
|
472
|
+
errorKey: "paymentCompletedInvalidCurrencyScale",
|
|
473
|
+
httpCode: 422,
|
|
474
|
+
description: "Currency scale is missing or invalid for payment.completed.",
|
|
475
|
+
},
|
|
446
476
|
];
|
|
447
477
|
|
|
448
478
|
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.
|
|
3
|
+
"version": "1.1.37",
|
|
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",
|