@aws-sdk/client-payment-cryptography-data 3.503.1 → 3.507.0
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/dist-cjs/index.js +13 -332
- package/dist-es/protocols/Aws_restJson1.js +12 -331
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -943,7 +943,7 @@ var se_VerifyPinDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
943
943
|
}, "se_VerifyPinDataCommand");
|
|
944
944
|
var de_DecryptDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
945
945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
-
return
|
|
946
|
+
return de_CommandError(output, context);
|
|
947
947
|
}
|
|
948
948
|
const contents = (0, import_smithy_client.map)({
|
|
949
949
|
$metadata: deserializeMetadata(output)
|
|
@@ -957,40 +957,9 @@ var de_DecryptDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
957
957
|
Object.assign(contents, doc);
|
|
958
958
|
return contents;
|
|
959
959
|
}, "de_DecryptDataCommand");
|
|
960
|
-
var de_DecryptDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context)
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "AccessDeniedException":
|
|
968
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalServerException":
|
|
971
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceNotFoundException":
|
|
974
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ThrottlingException":
|
|
977
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ValidationException":
|
|
980
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
}, "de_DecryptDataCommandError");
|
|
991
960
|
var de_EncryptDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
994
963
|
}
|
|
995
964
|
const contents = (0, import_smithy_client.map)({
|
|
996
965
|
$metadata: deserializeMetadata(output)
|
|
@@ -1004,40 +973,9 @@ var de_EncryptDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1004
973
|
Object.assign(contents, doc);
|
|
1005
974
|
return contents;
|
|
1006
975
|
}, "de_EncryptDataCommand");
|
|
1007
|
-
var de_EncryptDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1008
|
-
const parsedOutput = {
|
|
1009
|
-
...output,
|
|
1010
|
-
body: await parseErrorBody(output.body, context)
|
|
1011
|
-
};
|
|
1012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
-
switch (errorCode) {
|
|
1014
|
-
case "AccessDeniedException":
|
|
1015
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1016
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InternalServerException":
|
|
1018
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ResourceNotFoundException":
|
|
1021
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ThrottlingException":
|
|
1024
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1025
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ValidationException":
|
|
1027
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody,
|
|
1034
|
-
errorCode
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
}, "de_EncryptDataCommandError");
|
|
1038
976
|
var de_GenerateCardValidationDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
978
|
+
return de_CommandError(output, context);
|
|
1041
979
|
}
|
|
1042
980
|
const contents = (0, import_smithy_client.map)({
|
|
1043
981
|
$metadata: deserializeMetadata(output)
|
|
@@ -1051,40 +989,9 @@ var de_GenerateCardValidationDataCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1051
989
|
Object.assign(contents, doc);
|
|
1052
990
|
return contents;
|
|
1053
991
|
}, "de_GenerateCardValidationDataCommand");
|
|
1054
|
-
var de_GenerateCardValidationDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context)
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "AccessDeniedException":
|
|
1062
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1063
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceNotFoundException":
|
|
1068
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ThrottlingException":
|
|
1071
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1072
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ValidationException":
|
|
1074
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1075
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}, "de_GenerateCardValidationDataCommandError");
|
|
1085
992
|
var de_GenerateMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
1088
995
|
}
|
|
1089
996
|
const contents = (0, import_smithy_client.map)({
|
|
1090
997
|
$metadata: deserializeMetadata(output)
|
|
@@ -1098,40 +1005,9 @@ var de_GenerateMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1098
1005
|
Object.assign(contents, doc);
|
|
1099
1006
|
return contents;
|
|
1100
1007
|
}, "de_GenerateMacCommand");
|
|
1101
|
-
var de_GenerateMacCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1102
|
-
const parsedOutput = {
|
|
1103
|
-
...output,
|
|
1104
|
-
body: await parseErrorBody(output.body, context)
|
|
1105
|
-
};
|
|
1106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
-
switch (errorCode) {
|
|
1108
|
-
case "AccessDeniedException":
|
|
1109
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1110
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "InternalServerException":
|
|
1112
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1113
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ResourceNotFoundException":
|
|
1115
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1116
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ThrottlingException":
|
|
1118
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ValidationException":
|
|
1121
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
}, "de_GenerateMacCommandError");
|
|
1132
1008
|
var de_GeneratePinDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
1009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1135
1011
|
}
|
|
1136
1012
|
const contents = (0, import_smithy_client.map)({
|
|
1137
1013
|
$metadata: deserializeMetadata(output)
|
|
@@ -1148,40 +1024,9 @@ var de_GeneratePinDataCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1148
1024
|
Object.assign(contents, doc);
|
|
1149
1025
|
return contents;
|
|
1150
1026
|
}, "de_GeneratePinDataCommand");
|
|
1151
|
-
var de_GeneratePinDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context)
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "AccessDeniedException":
|
|
1159
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "InternalServerException":
|
|
1162
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1163
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ResourceNotFoundException":
|
|
1165
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ThrottlingException":
|
|
1168
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1169
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ValidationException":
|
|
1171
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1173
|
-
default:
|
|
1174
|
-
const parsedBody = parsedOutput.body;
|
|
1175
|
-
return throwDefaultError({
|
|
1176
|
-
output,
|
|
1177
|
-
parsedBody,
|
|
1178
|
-
errorCode
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
}, "de_GeneratePinDataCommandError");
|
|
1182
1027
|
var de_ReEncryptDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
1028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1185
1030
|
}
|
|
1186
1031
|
const contents = (0, import_smithy_client.map)({
|
|
1187
1032
|
$metadata: deserializeMetadata(output)
|
|
@@ -1195,40 +1040,9 @@ var de_ReEncryptDataCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1195
1040
|
Object.assign(contents, doc);
|
|
1196
1041
|
return contents;
|
|
1197
1042
|
}, "de_ReEncryptDataCommand");
|
|
1198
|
-
var de_ReEncryptDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context)
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "AccessDeniedException":
|
|
1206
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InternalServerException":
|
|
1209
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1210
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ResourceNotFoundException":
|
|
1212
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ThrottlingException":
|
|
1215
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1216
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ValidationException":
|
|
1218
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1220
|
-
default:
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
return throwDefaultError({
|
|
1223
|
-
output,
|
|
1224
|
-
parsedBody,
|
|
1225
|
-
errorCode
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
}, "de_ReEncryptDataCommandError");
|
|
1229
1043
|
var de_TranslatePinDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1231
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1232
1046
|
}
|
|
1233
1047
|
const contents = (0, import_smithy_client.map)({
|
|
1234
1048
|
$metadata: deserializeMetadata(output)
|
|
@@ -1242,40 +1056,9 @@ var de_TranslatePinDataCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1242
1056
|
Object.assign(contents, doc);
|
|
1243
1057
|
return contents;
|
|
1244
1058
|
}, "de_TranslatePinDataCommand");
|
|
1245
|
-
var de_TranslatePinDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
|
-
const parsedOutput = {
|
|
1247
|
-
...output,
|
|
1248
|
-
body: await parseErrorBody(output.body, context)
|
|
1249
|
-
};
|
|
1250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
-
switch (errorCode) {
|
|
1252
|
-
case "AccessDeniedException":
|
|
1253
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "InternalServerException":
|
|
1256
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1257
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ResourceNotFoundException":
|
|
1259
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1260
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ThrottlingException":
|
|
1262
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1263
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ValidationException":
|
|
1265
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
}, "de_TranslatePinDataCommandError");
|
|
1276
1059
|
var de_VerifyAuthRequestCryptogramCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1277
1060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1278
|
-
return
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1279
1062
|
}
|
|
1280
1063
|
const contents = (0, import_smithy_client.map)({
|
|
1281
1064
|
$metadata: deserializeMetadata(output)
|
|
@@ -1289,43 +1072,9 @@ var de_VerifyAuthRequestCryptogramCommand = /* @__PURE__ */ __name(async (output
|
|
|
1289
1072
|
Object.assign(contents, doc);
|
|
1290
1073
|
return contents;
|
|
1291
1074
|
}, "de_VerifyAuthRequestCryptogramCommand");
|
|
1292
|
-
var de_VerifyAuthRequestCryptogramCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context)
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
switch (errorCode) {
|
|
1299
|
-
case "AccessDeniedException":
|
|
1300
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1301
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "InternalServerException":
|
|
1303
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ResourceNotFoundException":
|
|
1306
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ThrottlingException":
|
|
1309
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1310
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ValidationException":
|
|
1312
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1313
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "VerificationFailedException":
|
|
1315
|
-
case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
|
|
1316
|
-
throw await de_VerificationFailedExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
}, "de_VerifyAuthRequestCryptogramCommandError");
|
|
1326
1075
|
var de_VerifyCardValidationDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1327
1076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
1077
|
+
return de_CommandError(output, context);
|
|
1329
1078
|
}
|
|
1330
1079
|
const contents = (0, import_smithy_client.map)({
|
|
1331
1080
|
$metadata: deserializeMetadata(output)
|
|
@@ -1338,43 +1087,9 @@ var de_VerifyCardValidationDataCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1338
1087
|
Object.assign(contents, doc);
|
|
1339
1088
|
return contents;
|
|
1340
1089
|
}, "de_VerifyCardValidationDataCommand");
|
|
1341
|
-
var de_VerifyCardValidationDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1342
|
-
const parsedOutput = {
|
|
1343
|
-
...output,
|
|
1344
|
-
body: await parseErrorBody(output.body, context)
|
|
1345
|
-
};
|
|
1346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
-
switch (errorCode) {
|
|
1348
|
-
case "AccessDeniedException":
|
|
1349
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InternalServerException":
|
|
1352
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceNotFoundException":
|
|
1355
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ThrottlingException":
|
|
1358
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "ValidationException":
|
|
1361
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "VerificationFailedException":
|
|
1364
|
-
case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
|
|
1365
|
-
throw await de_VerificationFailedExceptionRes(parsedOutput, context);
|
|
1366
|
-
default:
|
|
1367
|
-
const parsedBody = parsedOutput.body;
|
|
1368
|
-
return throwDefaultError({
|
|
1369
|
-
output,
|
|
1370
|
-
parsedBody,
|
|
1371
|
-
errorCode
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
}, "de_VerifyCardValidationDataCommandError");
|
|
1375
1090
|
var de_VerifyMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
1091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
|
-
return
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1378
1093
|
}
|
|
1379
1094
|
const contents = (0, import_smithy_client.map)({
|
|
1380
1095
|
$metadata: deserializeMetadata(output)
|
|
@@ -1387,43 +1102,9 @@ var de_VerifyMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1387
1102
|
Object.assign(contents, doc);
|
|
1388
1103
|
return contents;
|
|
1389
1104
|
}, "de_VerifyMacCommand");
|
|
1390
|
-
var de_VerifyMacCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
-
const parsedOutput = {
|
|
1392
|
-
...output,
|
|
1393
|
-
body: await parseErrorBody(output.body, context)
|
|
1394
|
-
};
|
|
1395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
-
switch (errorCode) {
|
|
1397
|
-
case "AccessDeniedException":
|
|
1398
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
1399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "InternalServerException":
|
|
1401
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
1402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ResourceNotFoundException":
|
|
1404
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
1405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ThrottlingException":
|
|
1407
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
1408
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ValidationException":
|
|
1410
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
1411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "VerificationFailedException":
|
|
1413
|
-
case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
|
|
1414
|
-
throw await de_VerificationFailedExceptionRes(parsedOutput, context);
|
|
1415
|
-
default:
|
|
1416
|
-
const parsedBody = parsedOutput.body;
|
|
1417
|
-
return throwDefaultError({
|
|
1418
|
-
output,
|
|
1419
|
-
parsedBody,
|
|
1420
|
-
errorCode
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
}, "de_VerifyMacCommandError");
|
|
1424
1105
|
var de_VerifyPinDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1425
1106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
-
return
|
|
1107
|
+
return de_CommandError(output, context);
|
|
1427
1108
|
}
|
|
1428
1109
|
const contents = (0, import_smithy_client.map)({
|
|
1429
1110
|
$metadata: deserializeMetadata(output)
|
|
@@ -1438,7 +1119,7 @@ var de_VerifyPinDataCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1438
1119
|
Object.assign(contents, doc);
|
|
1439
1120
|
return contents;
|
|
1440
1121
|
}, "de_VerifyPinDataCommand");
|
|
1441
|
-
var
|
|
1122
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1442
1123
|
const parsedOutput = {
|
|
1443
1124
|
...output,
|
|
1444
1125
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1471,7 +1152,7 @@ var de_VerifyPinDataCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1471
1152
|
errorCode
|
|
1472
1153
|
});
|
|
1473
1154
|
}
|
|
1474
|
-
}, "
|
|
1155
|
+
}, "de_CommandError");
|
|
1475
1156
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(PaymentCryptographyDataServiceException);
|
|
1476
1157
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1477
1158
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -192,7 +192,7 @@ export const se_VerifyPinDataCommand = async (input, context) => {
|
|
|
192
192
|
};
|
|
193
193
|
export const de_DecryptDataCommand = async (output, context) => {
|
|
194
194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
195
|
-
return
|
|
195
|
+
return de_CommandError(output, context);
|
|
196
196
|
}
|
|
197
197
|
const contents = map({
|
|
198
198
|
$metadata: deserializeMetadata(output),
|
|
@@ -206,40 +206,9 @@ export const de_DecryptDataCommand = async (output, context) => {
|
|
|
206
206
|
Object.assign(contents, doc);
|
|
207
207
|
return contents;
|
|
208
208
|
};
|
|
209
|
-
const de_DecryptDataCommandError = async (output, context) => {
|
|
210
|
-
const parsedOutput = {
|
|
211
|
-
...output,
|
|
212
|
-
body: await parseErrorBody(output.body, context),
|
|
213
|
-
};
|
|
214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
215
|
-
switch (errorCode) {
|
|
216
|
-
case "AccessDeniedException":
|
|
217
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
218
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
219
|
-
case "InternalServerException":
|
|
220
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
221
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
222
|
-
case "ResourceNotFoundException":
|
|
223
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
224
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
225
|
-
case "ThrottlingException":
|
|
226
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
227
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
228
|
-
case "ValidationException":
|
|
229
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
230
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
231
|
-
default:
|
|
232
|
-
const parsedBody = parsedOutput.body;
|
|
233
|
-
return throwDefaultError({
|
|
234
|
-
output,
|
|
235
|
-
parsedBody,
|
|
236
|
-
errorCode,
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
209
|
export const de_EncryptDataCommand = async (output, context) => {
|
|
241
210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
|
-
return
|
|
211
|
+
return de_CommandError(output, context);
|
|
243
212
|
}
|
|
244
213
|
const contents = map({
|
|
245
214
|
$metadata: deserializeMetadata(output),
|
|
@@ -253,40 +222,9 @@ export const de_EncryptDataCommand = async (output, context) => {
|
|
|
253
222
|
Object.assign(contents, doc);
|
|
254
223
|
return contents;
|
|
255
224
|
};
|
|
256
|
-
const de_EncryptDataCommandError = async (output, context) => {
|
|
257
|
-
const parsedOutput = {
|
|
258
|
-
...output,
|
|
259
|
-
body: await parseErrorBody(output.body, context),
|
|
260
|
-
};
|
|
261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
262
|
-
switch (errorCode) {
|
|
263
|
-
case "AccessDeniedException":
|
|
264
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
265
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
266
|
-
case "InternalServerException":
|
|
267
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
268
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
269
|
-
case "ResourceNotFoundException":
|
|
270
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
271
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
272
|
-
case "ThrottlingException":
|
|
273
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
274
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
275
|
-
case "ValidationException":
|
|
276
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
277
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
278
|
-
default:
|
|
279
|
-
const parsedBody = parsedOutput.body;
|
|
280
|
-
return throwDefaultError({
|
|
281
|
-
output,
|
|
282
|
-
parsedBody,
|
|
283
|
-
errorCode,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
225
|
export const de_GenerateCardValidationDataCommand = async (output, context) => {
|
|
288
226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
289
|
-
return
|
|
227
|
+
return de_CommandError(output, context);
|
|
290
228
|
}
|
|
291
229
|
const contents = map({
|
|
292
230
|
$metadata: deserializeMetadata(output),
|
|
@@ -300,40 +238,9 @@ export const de_GenerateCardValidationDataCommand = async (output, context) => {
|
|
|
300
238
|
Object.assign(contents, doc);
|
|
301
239
|
return contents;
|
|
302
240
|
};
|
|
303
|
-
const de_GenerateCardValidationDataCommandError = async (output, context) => {
|
|
304
|
-
const parsedOutput = {
|
|
305
|
-
...output,
|
|
306
|
-
body: await parseErrorBody(output.body, context),
|
|
307
|
-
};
|
|
308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
|
-
switch (errorCode) {
|
|
310
|
-
case "AccessDeniedException":
|
|
311
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
312
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
313
|
-
case "InternalServerException":
|
|
314
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ResourceNotFoundException":
|
|
317
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ThrottlingException":
|
|
320
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
321
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ValidationException":
|
|
323
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
324
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
241
|
export const de_GenerateMacCommand = async (output, context) => {
|
|
335
242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
336
|
-
return
|
|
243
|
+
return de_CommandError(output, context);
|
|
337
244
|
}
|
|
338
245
|
const contents = map({
|
|
339
246
|
$metadata: deserializeMetadata(output),
|
|
@@ -347,40 +254,9 @@ export const de_GenerateMacCommand = async (output, context) => {
|
|
|
347
254
|
Object.assign(contents, doc);
|
|
348
255
|
return contents;
|
|
349
256
|
};
|
|
350
|
-
const de_GenerateMacCommandError = async (output, context) => {
|
|
351
|
-
const parsedOutput = {
|
|
352
|
-
...output,
|
|
353
|
-
body: await parseErrorBody(output.body, context),
|
|
354
|
-
};
|
|
355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
|
-
switch (errorCode) {
|
|
357
|
-
case "AccessDeniedException":
|
|
358
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
359
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
360
|
-
case "InternalServerException":
|
|
361
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ResourceNotFoundException":
|
|
364
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
365
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ThrottlingException":
|
|
367
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
368
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
369
|
-
case "ValidationException":
|
|
370
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
257
|
export const de_GeneratePinDataCommand = async (output, context) => {
|
|
382
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
383
|
-
return
|
|
259
|
+
return de_CommandError(output, context);
|
|
384
260
|
}
|
|
385
261
|
const contents = map({
|
|
386
262
|
$metadata: deserializeMetadata(output),
|
|
@@ -397,40 +273,9 @@ export const de_GeneratePinDataCommand = async (output, context) => {
|
|
|
397
273
|
Object.assign(contents, doc);
|
|
398
274
|
return contents;
|
|
399
275
|
};
|
|
400
|
-
const de_GeneratePinDataCommandError = async (output, context) => {
|
|
401
|
-
const parsedOutput = {
|
|
402
|
-
...output,
|
|
403
|
-
body: await parseErrorBody(output.body, context),
|
|
404
|
-
};
|
|
405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
|
-
switch (errorCode) {
|
|
407
|
-
case "AccessDeniedException":
|
|
408
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
409
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
410
|
-
case "InternalServerException":
|
|
411
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
412
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
413
|
-
case "ResourceNotFoundException":
|
|
414
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
415
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ThrottlingException":
|
|
417
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
418
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ValidationException":
|
|
420
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
421
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
422
|
-
default:
|
|
423
|
-
const parsedBody = parsedOutput.body;
|
|
424
|
-
return throwDefaultError({
|
|
425
|
-
output,
|
|
426
|
-
parsedBody,
|
|
427
|
-
errorCode,
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
};
|
|
431
276
|
export const de_ReEncryptDataCommand = async (output, context) => {
|
|
432
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
-
return
|
|
278
|
+
return de_CommandError(output, context);
|
|
434
279
|
}
|
|
435
280
|
const contents = map({
|
|
436
281
|
$metadata: deserializeMetadata(output),
|
|
@@ -444,40 +289,9 @@ export const de_ReEncryptDataCommand = async (output, context) => {
|
|
|
444
289
|
Object.assign(contents, doc);
|
|
445
290
|
return contents;
|
|
446
291
|
};
|
|
447
|
-
const de_ReEncryptDataCommandError = async (output, context) => {
|
|
448
|
-
const parsedOutput = {
|
|
449
|
-
...output,
|
|
450
|
-
body: await parseErrorBody(output.body, context),
|
|
451
|
-
};
|
|
452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
|
-
switch (errorCode) {
|
|
454
|
-
case "AccessDeniedException":
|
|
455
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
457
|
-
case "InternalServerException":
|
|
458
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
459
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ResourceNotFoundException":
|
|
461
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
462
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ThrottlingException":
|
|
464
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
465
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
466
|
-
case "ValidationException":
|
|
467
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
return throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
errorCode,
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
292
|
export const de_TranslatePinDataCommand = async (output, context) => {
|
|
479
293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return
|
|
294
|
+
return de_CommandError(output, context);
|
|
481
295
|
}
|
|
482
296
|
const contents = map({
|
|
483
297
|
$metadata: deserializeMetadata(output),
|
|
@@ -491,40 +305,9 @@ export const de_TranslatePinDataCommand = async (output, context) => {
|
|
|
491
305
|
Object.assign(contents, doc);
|
|
492
306
|
return contents;
|
|
493
307
|
};
|
|
494
|
-
const de_TranslatePinDataCommandError = async (output, context) => {
|
|
495
|
-
const parsedOutput = {
|
|
496
|
-
...output,
|
|
497
|
-
body: await parseErrorBody(output.body, context),
|
|
498
|
-
};
|
|
499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
-
switch (errorCode) {
|
|
501
|
-
case "AccessDeniedException":
|
|
502
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
504
|
-
case "InternalServerException":
|
|
505
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
506
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ResourceNotFoundException":
|
|
508
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ThrottlingException":
|
|
511
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
512
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ValidationException":
|
|
514
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
515
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
516
|
-
default:
|
|
517
|
-
const parsedBody = parsedOutput.body;
|
|
518
|
-
return throwDefaultError({
|
|
519
|
-
output,
|
|
520
|
-
parsedBody,
|
|
521
|
-
errorCode,
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
308
|
export const de_VerifyAuthRequestCryptogramCommand = async (output, context) => {
|
|
526
309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
-
return
|
|
310
|
+
return de_CommandError(output, context);
|
|
528
311
|
}
|
|
529
312
|
const contents = map({
|
|
530
313
|
$metadata: deserializeMetadata(output),
|
|
@@ -538,43 +321,9 @@ export const de_VerifyAuthRequestCryptogramCommand = async (output, context) =>
|
|
|
538
321
|
Object.assign(contents, doc);
|
|
539
322
|
return contents;
|
|
540
323
|
};
|
|
541
|
-
const de_VerifyAuthRequestCryptogramCommandError = async (output, context) => {
|
|
542
|
-
const parsedOutput = {
|
|
543
|
-
...output,
|
|
544
|
-
body: await parseErrorBody(output.body, context),
|
|
545
|
-
};
|
|
546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
-
switch (errorCode) {
|
|
548
|
-
case "AccessDeniedException":
|
|
549
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
550
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
551
|
-
case "InternalServerException":
|
|
552
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ResourceNotFoundException":
|
|
555
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ThrottlingException":
|
|
558
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
559
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ValidationException":
|
|
561
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
562
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
|
-
case "VerificationFailedException":
|
|
564
|
-
case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
|
|
565
|
-
throw await de_VerificationFailedExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
324
|
export const de_VerifyCardValidationDataCommand = async (output, context) => {
|
|
576
325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
578
327
|
}
|
|
579
328
|
const contents = map({
|
|
580
329
|
$metadata: deserializeMetadata(output),
|
|
@@ -587,43 +336,9 @@ export const de_VerifyCardValidationDataCommand = async (output, context) => {
|
|
|
587
336
|
Object.assign(contents, doc);
|
|
588
337
|
return contents;
|
|
589
338
|
};
|
|
590
|
-
const de_VerifyCardValidationDataCommandError = async (output, context) => {
|
|
591
|
-
const parsedOutput = {
|
|
592
|
-
...output,
|
|
593
|
-
body: await parseErrorBody(output.body, context),
|
|
594
|
-
};
|
|
595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
-
switch (errorCode) {
|
|
597
|
-
case "AccessDeniedException":
|
|
598
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerException":
|
|
601
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ResourceNotFoundException":
|
|
604
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ThrottlingException":
|
|
607
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ValidationException":
|
|
610
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
612
|
-
case "VerificationFailedException":
|
|
613
|
-
case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
|
|
614
|
-
throw await de_VerificationFailedExceptionRes(parsedOutput, context);
|
|
615
|
-
default:
|
|
616
|
-
const parsedBody = parsedOutput.body;
|
|
617
|
-
return throwDefaultError({
|
|
618
|
-
output,
|
|
619
|
-
parsedBody,
|
|
620
|
-
errorCode,
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
339
|
export const de_VerifyMacCommand = async (output, context) => {
|
|
625
340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
-
return
|
|
341
|
+
return de_CommandError(output, context);
|
|
627
342
|
}
|
|
628
343
|
const contents = map({
|
|
629
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -636,43 +351,9 @@ export const de_VerifyMacCommand = async (output, context) => {
|
|
|
636
351
|
Object.assign(contents, doc);
|
|
637
352
|
return contents;
|
|
638
353
|
};
|
|
639
|
-
const de_VerifyMacCommandError = async (output, context) => {
|
|
640
|
-
const parsedOutput = {
|
|
641
|
-
...output,
|
|
642
|
-
body: await parseErrorBody(output.body, context),
|
|
643
|
-
};
|
|
644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
-
switch (errorCode) {
|
|
646
|
-
case "AccessDeniedException":
|
|
647
|
-
case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
|
|
648
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
649
|
-
case "InternalServerException":
|
|
650
|
-
case "com.amazonaws.paymentcryptographydata#InternalServerException":
|
|
651
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ResourceNotFoundException":
|
|
653
|
-
case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
|
|
654
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ThrottlingException":
|
|
656
|
-
case "com.amazonaws.paymentcryptographydata#ThrottlingException":
|
|
657
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ValidationException":
|
|
659
|
-
case "com.amazonaws.paymentcryptographydata#ValidationException":
|
|
660
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
661
|
-
case "VerificationFailedException":
|
|
662
|
-
case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
|
|
663
|
-
throw await de_VerificationFailedExceptionRes(parsedOutput, context);
|
|
664
|
-
default:
|
|
665
|
-
const parsedBody = parsedOutput.body;
|
|
666
|
-
return throwDefaultError({
|
|
667
|
-
output,
|
|
668
|
-
parsedBody,
|
|
669
|
-
errorCode,
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
354
|
export const de_VerifyPinDataCommand = async (output, context) => {
|
|
674
355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
-
return
|
|
356
|
+
return de_CommandError(output, context);
|
|
676
357
|
}
|
|
677
358
|
const contents = map({
|
|
678
359
|
$metadata: deserializeMetadata(output),
|
|
@@ -687,7 +368,7 @@ export const de_VerifyPinDataCommand = async (output, context) => {
|
|
|
687
368
|
Object.assign(contents, doc);
|
|
688
369
|
return contents;
|
|
689
370
|
};
|
|
690
|
-
const
|
|
371
|
+
const de_CommandError = async (output, context) => {
|
|
691
372
|
const parsedOutput = {
|
|
692
373
|
...output,
|
|
693
374
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-payment-cryptography-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Payment Cryptography Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-payment-cryptography-data",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|