b2b-platform-utils 1.1.71 → 1.1.72

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 +96 -0
  2. package/package.json +1 -1
package/errorsMap.js CHANGED
@@ -1044,6 +1044,102 @@ const STATIC_ERRORS = [
1044
1044
  httpCode: 503,
1045
1045
  description: "Withdrawal provider operation requires status reconciliation.",
1046
1046
  },
1047
+ {
1048
+ errorCode: 1171,
1049
+ errorKey: "missingFirstName",
1050
+ httpCode: 422,
1051
+ description: "First name is required for this payment method.",
1052
+ },
1053
+ {
1054
+ errorCode: 1172,
1055
+ errorKey: "missingLastName",
1056
+ httpCode: 422,
1057
+ description: "Last name is required for this payment method.",
1058
+ },
1059
+ {
1060
+ errorCode: 1173,
1061
+ errorKey: "missingPhoneNumber",
1062
+ httpCode: 422,
1063
+ description: "Phone number is required for this payment method.",
1064
+ },
1065
+ {
1066
+ errorCode: 1174,
1067
+ errorKey: "missingEmail",
1068
+ httpCode: 422,
1069
+ description: "Email address is required for this payment method.",
1070
+ },
1071
+ {
1072
+ errorCode: 1175,
1073
+ errorKey: "missingCustomerZipCode",
1074
+ httpCode: 422,
1075
+ description: "Postal code is required for this payment method.",
1076
+ },
1077
+ {
1078
+ errorCode: 1176,
1079
+ errorKey: "missingCustomerCountry",
1080
+ httpCode: 422,
1081
+ description: "Country is required for this payment method.",
1082
+ },
1083
+ {
1084
+ errorCode: 1177,
1085
+ errorKey: "missingCustomerAddress",
1086
+ httpCode: 422,
1087
+ description: "Address is required for this payment method.",
1088
+ },
1089
+ {
1090
+ errorCode: 1178,
1091
+ errorKey: "missingCustomerCity",
1092
+ httpCode: 422,
1093
+ description: "City is required for this payment method.",
1094
+ },
1095
+ {
1096
+ errorCode: 1179,
1097
+ errorKey: "missingCustomerBirthday",
1098
+ httpCode: 422,
1099
+ description: "Date of birth is required for this payment method.",
1100
+ },
1101
+ {
1102
+ errorCode: 1180,
1103
+ errorKey: "depositAmountBelowMinimum",
1104
+ httpCode: 422,
1105
+ description: "Deposit amount is below the minimum allowed amount.",
1106
+ },
1107
+ {
1108
+ errorCode: 1181,
1109
+ errorKey: "depositAmountAboveMaximum",
1110
+ httpCode: 422,
1111
+ description: "Deposit amount exceeds the maximum allowed amount.",
1112
+ },
1113
+ {
1114
+ errorCode: 1182,
1115
+ errorKey: "withdrawalAmountBelowMinimum",
1116
+ httpCode: 422,
1117
+ description: "Withdrawal amount is below the minimum allowed amount.",
1118
+ },
1119
+ {
1120
+ errorCode: 1183,
1121
+ errorKey: "withdrawalAmountAboveMaximum",
1122
+ httpCode: 422,
1123
+ description: "Withdrawal amount exceeds the maximum allowed amount.",
1124
+ },
1125
+ {
1126
+ errorCode: 1184,
1127
+ errorKey: "invalidDepositAmount",
1128
+ httpCode: 422,
1129
+ description: "Deposit amount is missing or invalid.",
1130
+ },
1131
+ {
1132
+ errorCode: 1185,
1133
+ errorKey: "invalidWithdrawalAmount",
1134
+ httpCode: 422,
1135
+ description: "Withdrawal amount is missing or invalid.",
1136
+ },
1137
+ {
1138
+ errorCode: 1186,
1139
+ errorKey: "paymentClientContextMissing",
1140
+ httpCode: 422,
1141
+ description: "Required payment client context is missing or invalid.",
1142
+ },
1047
1143
  ];
1048
1144
 
1049
1145
  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.71",
3
+ "version": "1.1.72",
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",