@aws-sdk/client-payment-cryptography-data 3.489.0 → 3.495.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/PaymentCryptographyData.js +1 -33
- package/dist-cjs/PaymentCryptographyDataClient.js +1 -43
- package/dist-cjs/commands/DecryptDataCommand.js +1 -29
- package/dist-cjs/commands/EncryptDataCommand.js +1 -29
- package/dist-cjs/commands/GenerateCardValidationDataCommand.js +1 -29
- package/dist-cjs/commands/GenerateMacCommand.js +1 -29
- package/dist-cjs/commands/GeneratePinDataCommand.js +1 -29
- package/dist-cjs/commands/ReEncryptDataCommand.js +1 -29
- package/dist-cjs/commands/TranslatePinDataCommand.js +1 -29
- package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +1 -29
- package/dist-cjs/commands/VerifyCardValidationDataCommand.js +1 -29
- package/dist-cjs/commands/VerifyMacCommand.js +1 -29
- package/dist-cjs/commands/VerifyPinDataCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -14
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1881 -10
- package/dist-cjs/models/PaymentCryptographyDataServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -530
- package/dist-cjs/protocols/Aws_restJson1.js +1 -881
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentCryptographyDataServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class PaymentCryptographyDataServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, PaymentCryptographyDataServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.PaymentCryptographyDataServiceException = PaymentCryptographyDataServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,530 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SessionKeyMastercardFilterSensitiveLog = exports.SessionKeyEmvCommonFilterSensitiveLog = exports.SessionKeyEmv2000FilterSensitiveLog = exports.SessionKeyAmexFilterSensitiveLog = exports.TranslatePinDataInputFilterSensitiveLog = exports.TranslationIsoFormatsFilterSensitiveLog = exports.TranslationPinDataIsoFormat034FilterSensitiveLog = exports.ReEncryptDataOutputFilterSensitiveLog = exports.ReEncryptDataInputFilterSensitiveLog = exports.ReEncryptionAttributesFilterSensitiveLog = exports.GeneratePinDataInputFilterSensitiveLog = exports.GenerateMacInputFilterSensitiveLog = exports.MacAttributesFilterSensitiveLog = exports.MacAlgorithmEmvFilterSensitiveLog = exports.GenerateCardValidationDataInputFilterSensitiveLog = exports.EncryptDataOutputFilterSensitiveLog = exports.EncryptDataInputFilterSensitiveLog = exports.DecryptDataOutputFilterSensitiveLog = exports.DecryptDataInputFilterSensitiveLog = exports.EncryptionDecryptionAttributesFilterSensitiveLog = exports.SymmetricEncryptionAttributesFilterSensitiveLog = exports.DukptEncryptionAttributesFilterSensitiveLog = exports.PinVerificationAttributes = exports.SessionKeyDerivation = exports.VerificationFailedException = exports.VerificationFailedReason = exports.TranslationIsoFormats = exports.ReEncryptionAttributes = exports.PinData = exports.PinBlockFormatForPinData = exports.PinGenerationAttributes = exports.MacAttributes = exports.SessionKeyDerivationValue = exports.SessionKeyDerivationMode = exports.MajorKeyDerivationMode = exports.MacAlgorithm = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.EncryptionDecryptionAttributes = exports.EncryptionMode = exports.DukptEncryptionMode = exports.DukptKeyVariant = exports.DukptDerivationType = exports.CryptogramAuthResponse = exports.CardVerificationAttributes = exports.CardGenerationAttributes = exports.PaddingType = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.VerifyPinDataInputFilterSensitiveLog = exports.VerifyMacInputFilterSensitiveLog = exports.VerifyCardValidationDataInputFilterSensitiveLog = exports.VerifyAuthRequestCryptogramInputFilterSensitiveLog = exports.SessionKeyDerivationFilterSensitiveLog = exports.SessionKeyVisaFilterSensitiveLog = void 0;
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const PaymentCryptographyDataServiceException_1 = require("./PaymentCryptographyDataServiceException");
|
|
7
|
-
class AccessDeniedException extends PaymentCryptographyDataServiceException_1.PaymentCryptographyDataServiceException {
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "AccessDeniedException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
this.name = "AccessDeniedException";
|
|
15
|
-
this.$fault = "client";
|
|
16
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
17
|
-
this.Message = opts.Message;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
21
|
-
exports.PaddingType = {
|
|
22
|
-
OAEP_SHA1: "OAEP_SHA1",
|
|
23
|
-
OAEP_SHA256: "OAEP_SHA256",
|
|
24
|
-
OAEP_SHA512: "OAEP_SHA512",
|
|
25
|
-
PKCS1: "PKCS1",
|
|
26
|
-
};
|
|
27
|
-
var CardGenerationAttributes;
|
|
28
|
-
(function (CardGenerationAttributes) {
|
|
29
|
-
CardGenerationAttributes.visit = (value, visitor) => {
|
|
30
|
-
if (value.AmexCardSecurityCodeVersion1 !== undefined)
|
|
31
|
-
return visitor.AmexCardSecurityCodeVersion1(value.AmexCardSecurityCodeVersion1);
|
|
32
|
-
if (value.AmexCardSecurityCodeVersion2 !== undefined)
|
|
33
|
-
return visitor.AmexCardSecurityCodeVersion2(value.AmexCardSecurityCodeVersion2);
|
|
34
|
-
if (value.CardVerificationValue1 !== undefined)
|
|
35
|
-
return visitor.CardVerificationValue1(value.CardVerificationValue1);
|
|
36
|
-
if (value.CardVerificationValue2 !== undefined)
|
|
37
|
-
return visitor.CardVerificationValue2(value.CardVerificationValue2);
|
|
38
|
-
if (value.CardHolderVerificationValue !== undefined)
|
|
39
|
-
return visitor.CardHolderVerificationValue(value.CardHolderVerificationValue);
|
|
40
|
-
if (value.DynamicCardVerificationCode !== undefined)
|
|
41
|
-
return visitor.DynamicCardVerificationCode(value.DynamicCardVerificationCode);
|
|
42
|
-
if (value.DynamicCardVerificationValue !== undefined)
|
|
43
|
-
return visitor.DynamicCardVerificationValue(value.DynamicCardVerificationValue);
|
|
44
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
45
|
-
};
|
|
46
|
-
})(CardGenerationAttributes = exports.CardGenerationAttributes || (exports.CardGenerationAttributes = {}));
|
|
47
|
-
var CardVerificationAttributes;
|
|
48
|
-
(function (CardVerificationAttributes) {
|
|
49
|
-
CardVerificationAttributes.visit = (value, visitor) => {
|
|
50
|
-
if (value.AmexCardSecurityCodeVersion1 !== undefined)
|
|
51
|
-
return visitor.AmexCardSecurityCodeVersion1(value.AmexCardSecurityCodeVersion1);
|
|
52
|
-
if (value.AmexCardSecurityCodeVersion2 !== undefined)
|
|
53
|
-
return visitor.AmexCardSecurityCodeVersion2(value.AmexCardSecurityCodeVersion2);
|
|
54
|
-
if (value.CardVerificationValue1 !== undefined)
|
|
55
|
-
return visitor.CardVerificationValue1(value.CardVerificationValue1);
|
|
56
|
-
if (value.CardVerificationValue2 !== undefined)
|
|
57
|
-
return visitor.CardVerificationValue2(value.CardVerificationValue2);
|
|
58
|
-
if (value.CardHolderVerificationValue !== undefined)
|
|
59
|
-
return visitor.CardHolderVerificationValue(value.CardHolderVerificationValue);
|
|
60
|
-
if (value.DynamicCardVerificationCode !== undefined)
|
|
61
|
-
return visitor.DynamicCardVerificationCode(value.DynamicCardVerificationCode);
|
|
62
|
-
if (value.DynamicCardVerificationValue !== undefined)
|
|
63
|
-
return visitor.DynamicCardVerificationValue(value.DynamicCardVerificationValue);
|
|
64
|
-
if (value.DiscoverDynamicCardVerificationCode !== undefined)
|
|
65
|
-
return visitor.DiscoverDynamicCardVerificationCode(value.DiscoverDynamicCardVerificationCode);
|
|
66
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
67
|
-
};
|
|
68
|
-
})(CardVerificationAttributes = exports.CardVerificationAttributes || (exports.CardVerificationAttributes = {}));
|
|
69
|
-
var CryptogramAuthResponse;
|
|
70
|
-
(function (CryptogramAuthResponse) {
|
|
71
|
-
CryptogramAuthResponse.visit = (value, visitor) => {
|
|
72
|
-
if (value.ArpcMethod1 !== undefined)
|
|
73
|
-
return visitor.ArpcMethod1(value.ArpcMethod1);
|
|
74
|
-
if (value.ArpcMethod2 !== undefined)
|
|
75
|
-
return visitor.ArpcMethod2(value.ArpcMethod2);
|
|
76
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
77
|
-
};
|
|
78
|
-
})(CryptogramAuthResponse = exports.CryptogramAuthResponse || (exports.CryptogramAuthResponse = {}));
|
|
79
|
-
exports.DukptDerivationType = {
|
|
80
|
-
AES_128: "AES_128",
|
|
81
|
-
AES_192: "AES_192",
|
|
82
|
-
AES_256: "AES_256",
|
|
83
|
-
TDES_2KEY: "TDES_2KEY",
|
|
84
|
-
TDES_3KEY: "TDES_3KEY",
|
|
85
|
-
};
|
|
86
|
-
exports.DukptKeyVariant = {
|
|
87
|
-
BIDIRECTIONAL: "BIDIRECTIONAL",
|
|
88
|
-
REQUEST: "REQUEST",
|
|
89
|
-
RESPONSE: "RESPONSE",
|
|
90
|
-
};
|
|
91
|
-
exports.DukptEncryptionMode = {
|
|
92
|
-
CBC: "CBC",
|
|
93
|
-
ECB: "ECB",
|
|
94
|
-
};
|
|
95
|
-
exports.EncryptionMode = {
|
|
96
|
-
CBC: "CBC",
|
|
97
|
-
CFB: "CFB",
|
|
98
|
-
CFB1: "CFB1",
|
|
99
|
-
CFB128: "CFB128",
|
|
100
|
-
CFB64: "CFB64",
|
|
101
|
-
CFB8: "CFB8",
|
|
102
|
-
ECB: "ECB",
|
|
103
|
-
OFB: "OFB",
|
|
104
|
-
};
|
|
105
|
-
var EncryptionDecryptionAttributes;
|
|
106
|
-
(function (EncryptionDecryptionAttributes) {
|
|
107
|
-
EncryptionDecryptionAttributes.visit = (value, visitor) => {
|
|
108
|
-
if (value.Symmetric !== undefined)
|
|
109
|
-
return visitor.Symmetric(value.Symmetric);
|
|
110
|
-
if (value.Asymmetric !== undefined)
|
|
111
|
-
return visitor.Asymmetric(value.Asymmetric);
|
|
112
|
-
if (value.Dukpt !== undefined)
|
|
113
|
-
return visitor.Dukpt(value.Dukpt);
|
|
114
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
115
|
-
};
|
|
116
|
-
})(EncryptionDecryptionAttributes = exports.EncryptionDecryptionAttributes || (exports.EncryptionDecryptionAttributes = {}));
|
|
117
|
-
class InternalServerException extends PaymentCryptographyDataServiceException_1.PaymentCryptographyDataServiceException {
|
|
118
|
-
constructor(opts) {
|
|
119
|
-
super({
|
|
120
|
-
name: "InternalServerException",
|
|
121
|
-
$fault: "server",
|
|
122
|
-
...opts,
|
|
123
|
-
});
|
|
124
|
-
this.name = "InternalServerException";
|
|
125
|
-
this.$fault = "server";
|
|
126
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
127
|
-
this.Message = opts.Message;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.InternalServerException = InternalServerException;
|
|
131
|
-
class ResourceNotFoundException extends PaymentCryptographyDataServiceException_1.PaymentCryptographyDataServiceException {
|
|
132
|
-
constructor(opts) {
|
|
133
|
-
super({
|
|
134
|
-
name: "ResourceNotFoundException",
|
|
135
|
-
$fault: "client",
|
|
136
|
-
...opts,
|
|
137
|
-
});
|
|
138
|
-
this.name = "ResourceNotFoundException";
|
|
139
|
-
this.$fault = "client";
|
|
140
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
141
|
-
this.ResourceId = opts.ResourceId;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
145
|
-
class ThrottlingException extends PaymentCryptographyDataServiceException_1.PaymentCryptographyDataServiceException {
|
|
146
|
-
constructor(opts) {
|
|
147
|
-
super({
|
|
148
|
-
name: "ThrottlingException",
|
|
149
|
-
$fault: "client",
|
|
150
|
-
...opts,
|
|
151
|
-
});
|
|
152
|
-
this.name = "ThrottlingException";
|
|
153
|
-
this.$fault = "client";
|
|
154
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
155
|
-
this.Message = opts.Message;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
exports.ThrottlingException = ThrottlingException;
|
|
159
|
-
class ValidationException extends PaymentCryptographyDataServiceException_1.PaymentCryptographyDataServiceException {
|
|
160
|
-
constructor(opts) {
|
|
161
|
-
super({
|
|
162
|
-
name: "ValidationException",
|
|
163
|
-
$fault: "client",
|
|
164
|
-
...opts,
|
|
165
|
-
});
|
|
166
|
-
this.name = "ValidationException";
|
|
167
|
-
this.$fault = "client";
|
|
168
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
169
|
-
this.fieldList = opts.fieldList;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
exports.ValidationException = ValidationException;
|
|
173
|
-
exports.MacAlgorithm = {
|
|
174
|
-
CMAC: "CMAC",
|
|
175
|
-
HMAC_SHA224: "HMAC_SHA224",
|
|
176
|
-
HMAC_SHA256: "HMAC_SHA256",
|
|
177
|
-
HMAC_SHA384: "HMAC_SHA384",
|
|
178
|
-
HMAC_SHA512: "HMAC_SHA512",
|
|
179
|
-
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
180
|
-
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
181
|
-
};
|
|
182
|
-
exports.MajorKeyDerivationMode = {
|
|
183
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
184
|
-
EMV_OPTION_B: "EMV_OPTION_B",
|
|
185
|
-
};
|
|
186
|
-
exports.SessionKeyDerivationMode = {
|
|
187
|
-
AMEX: "AMEX",
|
|
188
|
-
EMV2000: "EMV2000",
|
|
189
|
-
EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY",
|
|
190
|
-
MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
|
|
191
|
-
VISA: "VISA",
|
|
192
|
-
};
|
|
193
|
-
var SessionKeyDerivationValue;
|
|
194
|
-
(function (SessionKeyDerivationValue) {
|
|
195
|
-
SessionKeyDerivationValue.visit = (value, visitor) => {
|
|
196
|
-
if (value.ApplicationCryptogram !== undefined)
|
|
197
|
-
return visitor.ApplicationCryptogram(value.ApplicationCryptogram);
|
|
198
|
-
if (value.ApplicationTransactionCounter !== undefined)
|
|
199
|
-
return visitor.ApplicationTransactionCounter(value.ApplicationTransactionCounter);
|
|
200
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
201
|
-
};
|
|
202
|
-
})(SessionKeyDerivationValue = exports.SessionKeyDerivationValue || (exports.SessionKeyDerivationValue = {}));
|
|
203
|
-
var MacAttributes;
|
|
204
|
-
(function (MacAttributes) {
|
|
205
|
-
MacAttributes.visit = (value, visitor) => {
|
|
206
|
-
if (value.Algorithm !== undefined)
|
|
207
|
-
return visitor.Algorithm(value.Algorithm);
|
|
208
|
-
if (value.EmvMac !== undefined)
|
|
209
|
-
return visitor.EmvMac(value.EmvMac);
|
|
210
|
-
if (value.DukptIso9797Algorithm1 !== undefined)
|
|
211
|
-
return visitor.DukptIso9797Algorithm1(value.DukptIso9797Algorithm1);
|
|
212
|
-
if (value.DukptIso9797Algorithm3 !== undefined)
|
|
213
|
-
return visitor.DukptIso9797Algorithm3(value.DukptIso9797Algorithm3);
|
|
214
|
-
if (value.DukptCmac !== undefined)
|
|
215
|
-
return visitor.DukptCmac(value.DukptCmac);
|
|
216
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
217
|
-
};
|
|
218
|
-
})(MacAttributes = exports.MacAttributes || (exports.MacAttributes = {}));
|
|
219
|
-
var PinGenerationAttributes;
|
|
220
|
-
(function (PinGenerationAttributes) {
|
|
221
|
-
PinGenerationAttributes.visit = (value, visitor) => {
|
|
222
|
-
if (value.VisaPin !== undefined)
|
|
223
|
-
return visitor.VisaPin(value.VisaPin);
|
|
224
|
-
if (value.VisaPinVerificationValue !== undefined)
|
|
225
|
-
return visitor.VisaPinVerificationValue(value.VisaPinVerificationValue);
|
|
226
|
-
if (value.Ibm3624PinOffset !== undefined)
|
|
227
|
-
return visitor.Ibm3624PinOffset(value.Ibm3624PinOffset);
|
|
228
|
-
if (value.Ibm3624NaturalPin !== undefined)
|
|
229
|
-
return visitor.Ibm3624NaturalPin(value.Ibm3624NaturalPin);
|
|
230
|
-
if (value.Ibm3624RandomPin !== undefined)
|
|
231
|
-
return visitor.Ibm3624RandomPin(value.Ibm3624RandomPin);
|
|
232
|
-
if (value.Ibm3624PinFromOffset !== undefined)
|
|
233
|
-
return visitor.Ibm3624PinFromOffset(value.Ibm3624PinFromOffset);
|
|
234
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
235
|
-
};
|
|
236
|
-
})(PinGenerationAttributes = exports.PinGenerationAttributes || (exports.PinGenerationAttributes = {}));
|
|
237
|
-
exports.PinBlockFormatForPinData = {
|
|
238
|
-
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
239
|
-
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
240
|
-
};
|
|
241
|
-
var PinData;
|
|
242
|
-
(function (PinData) {
|
|
243
|
-
PinData.visit = (value, visitor) => {
|
|
244
|
-
if (value.PinOffset !== undefined)
|
|
245
|
-
return visitor.PinOffset(value.PinOffset);
|
|
246
|
-
if (value.VerificationValue !== undefined)
|
|
247
|
-
return visitor.VerificationValue(value.VerificationValue);
|
|
248
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
249
|
-
};
|
|
250
|
-
})(PinData = exports.PinData || (exports.PinData = {}));
|
|
251
|
-
var ReEncryptionAttributes;
|
|
252
|
-
(function (ReEncryptionAttributes) {
|
|
253
|
-
ReEncryptionAttributes.visit = (value, visitor) => {
|
|
254
|
-
if (value.Symmetric !== undefined)
|
|
255
|
-
return visitor.Symmetric(value.Symmetric);
|
|
256
|
-
if (value.Dukpt !== undefined)
|
|
257
|
-
return visitor.Dukpt(value.Dukpt);
|
|
258
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
259
|
-
};
|
|
260
|
-
})(ReEncryptionAttributes = exports.ReEncryptionAttributes || (exports.ReEncryptionAttributes = {}));
|
|
261
|
-
var TranslationIsoFormats;
|
|
262
|
-
(function (TranslationIsoFormats) {
|
|
263
|
-
TranslationIsoFormats.visit = (value, visitor) => {
|
|
264
|
-
if (value.IsoFormat0 !== undefined)
|
|
265
|
-
return visitor.IsoFormat0(value.IsoFormat0);
|
|
266
|
-
if (value.IsoFormat1 !== undefined)
|
|
267
|
-
return visitor.IsoFormat1(value.IsoFormat1);
|
|
268
|
-
if (value.IsoFormat3 !== undefined)
|
|
269
|
-
return visitor.IsoFormat3(value.IsoFormat3);
|
|
270
|
-
if (value.IsoFormat4 !== undefined)
|
|
271
|
-
return visitor.IsoFormat4(value.IsoFormat4);
|
|
272
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
273
|
-
};
|
|
274
|
-
})(TranslationIsoFormats = exports.TranslationIsoFormats || (exports.TranslationIsoFormats = {}));
|
|
275
|
-
exports.VerificationFailedReason = {
|
|
276
|
-
INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
|
|
277
|
-
INVALID_MAC: "INVALID_MAC",
|
|
278
|
-
INVALID_PIN: "INVALID_PIN",
|
|
279
|
-
INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
|
|
280
|
-
};
|
|
281
|
-
class VerificationFailedException extends PaymentCryptographyDataServiceException_1.PaymentCryptographyDataServiceException {
|
|
282
|
-
constructor(opts) {
|
|
283
|
-
super({
|
|
284
|
-
name: "VerificationFailedException",
|
|
285
|
-
$fault: "client",
|
|
286
|
-
...opts,
|
|
287
|
-
});
|
|
288
|
-
this.name = "VerificationFailedException";
|
|
289
|
-
this.$fault = "client";
|
|
290
|
-
Object.setPrototypeOf(this, VerificationFailedException.prototype);
|
|
291
|
-
this.Reason = opts.Reason;
|
|
292
|
-
this.Message = opts.Message;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
exports.VerificationFailedException = VerificationFailedException;
|
|
296
|
-
var SessionKeyDerivation;
|
|
297
|
-
(function (SessionKeyDerivation) {
|
|
298
|
-
SessionKeyDerivation.visit = (value, visitor) => {
|
|
299
|
-
if (value.EmvCommon !== undefined)
|
|
300
|
-
return visitor.EmvCommon(value.EmvCommon);
|
|
301
|
-
if (value.Mastercard !== undefined)
|
|
302
|
-
return visitor.Mastercard(value.Mastercard);
|
|
303
|
-
if (value.Emv2000 !== undefined)
|
|
304
|
-
return visitor.Emv2000(value.Emv2000);
|
|
305
|
-
if (value.Amex !== undefined)
|
|
306
|
-
return visitor.Amex(value.Amex);
|
|
307
|
-
if (value.Visa !== undefined)
|
|
308
|
-
return visitor.Visa(value.Visa);
|
|
309
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
310
|
-
};
|
|
311
|
-
})(SessionKeyDerivation = exports.SessionKeyDerivation || (exports.SessionKeyDerivation = {}));
|
|
312
|
-
var PinVerificationAttributes;
|
|
313
|
-
(function (PinVerificationAttributes) {
|
|
314
|
-
PinVerificationAttributes.visit = (value, visitor) => {
|
|
315
|
-
if (value.VisaPin !== undefined)
|
|
316
|
-
return visitor.VisaPin(value.VisaPin);
|
|
317
|
-
if (value.Ibm3624Pin !== undefined)
|
|
318
|
-
return visitor.Ibm3624Pin(value.Ibm3624Pin);
|
|
319
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
320
|
-
};
|
|
321
|
-
})(PinVerificationAttributes = exports.PinVerificationAttributes || (exports.PinVerificationAttributes = {}));
|
|
322
|
-
const DukptEncryptionAttributesFilterSensitiveLog = (obj) => ({
|
|
323
|
-
...obj,
|
|
324
|
-
...(obj.InitializationVector && { InitializationVector: smithy_client_1.SENSITIVE_STRING }),
|
|
325
|
-
});
|
|
326
|
-
exports.DukptEncryptionAttributesFilterSensitiveLog = DukptEncryptionAttributesFilterSensitiveLog;
|
|
327
|
-
const SymmetricEncryptionAttributesFilterSensitiveLog = (obj) => ({
|
|
328
|
-
...obj,
|
|
329
|
-
...(obj.InitializationVector && { InitializationVector: smithy_client_1.SENSITIVE_STRING }),
|
|
330
|
-
});
|
|
331
|
-
exports.SymmetricEncryptionAttributesFilterSensitiveLog = SymmetricEncryptionAttributesFilterSensitiveLog;
|
|
332
|
-
const EncryptionDecryptionAttributesFilterSensitiveLog = (obj) => {
|
|
333
|
-
if (obj.Symmetric !== undefined)
|
|
334
|
-
return { Symmetric: (0, exports.SymmetricEncryptionAttributesFilterSensitiveLog)(obj.Symmetric) };
|
|
335
|
-
if (obj.Asymmetric !== undefined)
|
|
336
|
-
return { Asymmetric: obj.Asymmetric };
|
|
337
|
-
if (obj.Dukpt !== undefined)
|
|
338
|
-
return { Dukpt: (0, exports.DukptEncryptionAttributesFilterSensitiveLog)(obj.Dukpt) };
|
|
339
|
-
if (obj.$unknown !== undefined)
|
|
340
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
341
|
-
};
|
|
342
|
-
exports.EncryptionDecryptionAttributesFilterSensitiveLog = EncryptionDecryptionAttributesFilterSensitiveLog;
|
|
343
|
-
const DecryptDataInputFilterSensitiveLog = (obj) => ({
|
|
344
|
-
...obj,
|
|
345
|
-
...(obj.CipherText && { CipherText: smithy_client_1.SENSITIVE_STRING }),
|
|
346
|
-
...(obj.DecryptionAttributes && {
|
|
347
|
-
DecryptionAttributes: (0, exports.EncryptionDecryptionAttributesFilterSensitiveLog)(obj.DecryptionAttributes),
|
|
348
|
-
}),
|
|
349
|
-
});
|
|
350
|
-
exports.DecryptDataInputFilterSensitiveLog = DecryptDataInputFilterSensitiveLog;
|
|
351
|
-
const DecryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
352
|
-
...obj,
|
|
353
|
-
...(obj.PlainText && { PlainText: smithy_client_1.SENSITIVE_STRING }),
|
|
354
|
-
});
|
|
355
|
-
exports.DecryptDataOutputFilterSensitiveLog = DecryptDataOutputFilterSensitiveLog;
|
|
356
|
-
const EncryptDataInputFilterSensitiveLog = (obj) => ({
|
|
357
|
-
...obj,
|
|
358
|
-
...(obj.PlainText && { PlainText: smithy_client_1.SENSITIVE_STRING }),
|
|
359
|
-
...(obj.EncryptionAttributes && {
|
|
360
|
-
EncryptionAttributes: (0, exports.EncryptionDecryptionAttributesFilterSensitiveLog)(obj.EncryptionAttributes),
|
|
361
|
-
}),
|
|
362
|
-
});
|
|
363
|
-
exports.EncryptDataInputFilterSensitiveLog = EncryptDataInputFilterSensitiveLog;
|
|
364
|
-
const EncryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
365
|
-
...obj,
|
|
366
|
-
...(obj.CipherText && { CipherText: smithy_client_1.SENSITIVE_STRING }),
|
|
367
|
-
});
|
|
368
|
-
exports.EncryptDataOutputFilterSensitiveLog = EncryptDataOutputFilterSensitiveLog;
|
|
369
|
-
const GenerateCardValidationDataInputFilterSensitiveLog = (obj) => ({
|
|
370
|
-
...obj,
|
|
371
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
372
|
-
...(obj.GenerationAttributes && { GenerationAttributes: obj.GenerationAttributes }),
|
|
373
|
-
});
|
|
374
|
-
exports.GenerateCardValidationDataInputFilterSensitiveLog = GenerateCardValidationDataInputFilterSensitiveLog;
|
|
375
|
-
const MacAlgorithmEmvFilterSensitiveLog = (obj) => ({
|
|
376
|
-
...obj,
|
|
377
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
378
|
-
...(obj.SessionKeyDerivationValue && { SessionKeyDerivationValue: obj.SessionKeyDerivationValue }),
|
|
379
|
-
});
|
|
380
|
-
exports.MacAlgorithmEmvFilterSensitiveLog = MacAlgorithmEmvFilterSensitiveLog;
|
|
381
|
-
const MacAttributesFilterSensitiveLog = (obj) => {
|
|
382
|
-
if (obj.Algorithm !== undefined)
|
|
383
|
-
return { Algorithm: obj.Algorithm };
|
|
384
|
-
if (obj.EmvMac !== undefined)
|
|
385
|
-
return { EmvMac: (0, exports.MacAlgorithmEmvFilterSensitiveLog)(obj.EmvMac) };
|
|
386
|
-
if (obj.DukptIso9797Algorithm1 !== undefined)
|
|
387
|
-
return { DukptIso9797Algorithm1: obj.DukptIso9797Algorithm1 };
|
|
388
|
-
if (obj.DukptIso9797Algorithm3 !== undefined)
|
|
389
|
-
return { DukptIso9797Algorithm3: obj.DukptIso9797Algorithm3 };
|
|
390
|
-
if (obj.DukptCmac !== undefined)
|
|
391
|
-
return { DukptCmac: obj.DukptCmac };
|
|
392
|
-
if (obj.$unknown !== undefined)
|
|
393
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
394
|
-
};
|
|
395
|
-
exports.MacAttributesFilterSensitiveLog = MacAttributesFilterSensitiveLog;
|
|
396
|
-
const GenerateMacInputFilterSensitiveLog = (obj) => ({
|
|
397
|
-
...obj,
|
|
398
|
-
...(obj.MessageData && { MessageData: smithy_client_1.SENSITIVE_STRING }),
|
|
399
|
-
...(obj.GenerationAttributes && { GenerationAttributes: (0, exports.MacAttributesFilterSensitiveLog)(obj.GenerationAttributes) }),
|
|
400
|
-
});
|
|
401
|
-
exports.GenerateMacInputFilterSensitiveLog = GenerateMacInputFilterSensitiveLog;
|
|
402
|
-
const GeneratePinDataInputFilterSensitiveLog = (obj) => ({
|
|
403
|
-
...obj,
|
|
404
|
-
...(obj.GenerationAttributes && { GenerationAttributes: obj.GenerationAttributes }),
|
|
405
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
406
|
-
});
|
|
407
|
-
exports.GeneratePinDataInputFilterSensitiveLog = GeneratePinDataInputFilterSensitiveLog;
|
|
408
|
-
const ReEncryptionAttributesFilterSensitiveLog = (obj) => {
|
|
409
|
-
if (obj.Symmetric !== undefined)
|
|
410
|
-
return { Symmetric: (0, exports.SymmetricEncryptionAttributesFilterSensitiveLog)(obj.Symmetric) };
|
|
411
|
-
if (obj.Dukpt !== undefined)
|
|
412
|
-
return { Dukpt: (0, exports.DukptEncryptionAttributesFilterSensitiveLog)(obj.Dukpt) };
|
|
413
|
-
if (obj.$unknown !== undefined)
|
|
414
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
415
|
-
};
|
|
416
|
-
exports.ReEncryptionAttributesFilterSensitiveLog = ReEncryptionAttributesFilterSensitiveLog;
|
|
417
|
-
const ReEncryptDataInputFilterSensitiveLog = (obj) => ({
|
|
418
|
-
...obj,
|
|
419
|
-
...(obj.CipherText && { CipherText: smithy_client_1.SENSITIVE_STRING }),
|
|
420
|
-
...(obj.IncomingEncryptionAttributes && {
|
|
421
|
-
IncomingEncryptionAttributes: (0, exports.ReEncryptionAttributesFilterSensitiveLog)(obj.IncomingEncryptionAttributes),
|
|
422
|
-
}),
|
|
423
|
-
...(obj.OutgoingEncryptionAttributes && {
|
|
424
|
-
OutgoingEncryptionAttributes: (0, exports.ReEncryptionAttributesFilterSensitiveLog)(obj.OutgoingEncryptionAttributes),
|
|
425
|
-
}),
|
|
426
|
-
});
|
|
427
|
-
exports.ReEncryptDataInputFilterSensitiveLog = ReEncryptDataInputFilterSensitiveLog;
|
|
428
|
-
const ReEncryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
429
|
-
...obj,
|
|
430
|
-
...(obj.CipherText && { CipherText: smithy_client_1.SENSITIVE_STRING }),
|
|
431
|
-
});
|
|
432
|
-
exports.ReEncryptDataOutputFilterSensitiveLog = ReEncryptDataOutputFilterSensitiveLog;
|
|
433
|
-
const TranslationPinDataIsoFormat034FilterSensitiveLog = (obj) => ({
|
|
434
|
-
...obj,
|
|
435
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
436
|
-
});
|
|
437
|
-
exports.TranslationPinDataIsoFormat034FilterSensitiveLog = TranslationPinDataIsoFormat034FilterSensitiveLog;
|
|
438
|
-
const TranslationIsoFormatsFilterSensitiveLog = (obj) => {
|
|
439
|
-
if (obj.IsoFormat0 !== undefined)
|
|
440
|
-
return { IsoFormat0: (0, exports.TranslationPinDataIsoFormat034FilterSensitiveLog)(obj.IsoFormat0) };
|
|
441
|
-
if (obj.IsoFormat1 !== undefined)
|
|
442
|
-
return { IsoFormat1: obj.IsoFormat1 };
|
|
443
|
-
if (obj.IsoFormat3 !== undefined)
|
|
444
|
-
return { IsoFormat3: (0, exports.TranslationPinDataIsoFormat034FilterSensitiveLog)(obj.IsoFormat3) };
|
|
445
|
-
if (obj.IsoFormat4 !== undefined)
|
|
446
|
-
return { IsoFormat4: (0, exports.TranslationPinDataIsoFormat034FilterSensitiveLog)(obj.IsoFormat4) };
|
|
447
|
-
if (obj.$unknown !== undefined)
|
|
448
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
449
|
-
};
|
|
450
|
-
exports.TranslationIsoFormatsFilterSensitiveLog = TranslationIsoFormatsFilterSensitiveLog;
|
|
451
|
-
const TranslatePinDataInputFilterSensitiveLog = (obj) => ({
|
|
452
|
-
...obj,
|
|
453
|
-
...(obj.IncomingTranslationAttributes && {
|
|
454
|
-
IncomingTranslationAttributes: (0, exports.TranslationIsoFormatsFilterSensitiveLog)(obj.IncomingTranslationAttributes),
|
|
455
|
-
}),
|
|
456
|
-
...(obj.OutgoingTranslationAttributes && {
|
|
457
|
-
OutgoingTranslationAttributes: (0, exports.TranslationIsoFormatsFilterSensitiveLog)(obj.OutgoingTranslationAttributes),
|
|
458
|
-
}),
|
|
459
|
-
...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithy_client_1.SENSITIVE_STRING }),
|
|
460
|
-
});
|
|
461
|
-
exports.TranslatePinDataInputFilterSensitiveLog = TranslatePinDataInputFilterSensitiveLog;
|
|
462
|
-
const SessionKeyAmexFilterSensitiveLog = (obj) => ({
|
|
463
|
-
...obj,
|
|
464
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
465
|
-
});
|
|
466
|
-
exports.SessionKeyAmexFilterSensitiveLog = SessionKeyAmexFilterSensitiveLog;
|
|
467
|
-
const SessionKeyEmv2000FilterSensitiveLog = (obj) => ({
|
|
468
|
-
...obj,
|
|
469
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
470
|
-
});
|
|
471
|
-
exports.SessionKeyEmv2000FilterSensitiveLog = SessionKeyEmv2000FilterSensitiveLog;
|
|
472
|
-
const SessionKeyEmvCommonFilterSensitiveLog = (obj) => ({
|
|
473
|
-
...obj,
|
|
474
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
475
|
-
});
|
|
476
|
-
exports.SessionKeyEmvCommonFilterSensitiveLog = SessionKeyEmvCommonFilterSensitiveLog;
|
|
477
|
-
const SessionKeyMastercardFilterSensitiveLog = (obj) => ({
|
|
478
|
-
...obj,
|
|
479
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
480
|
-
});
|
|
481
|
-
exports.SessionKeyMastercardFilterSensitiveLog = SessionKeyMastercardFilterSensitiveLog;
|
|
482
|
-
const SessionKeyVisaFilterSensitiveLog = (obj) => ({
|
|
483
|
-
...obj,
|
|
484
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
485
|
-
});
|
|
486
|
-
exports.SessionKeyVisaFilterSensitiveLog = SessionKeyVisaFilterSensitiveLog;
|
|
487
|
-
const SessionKeyDerivationFilterSensitiveLog = (obj) => {
|
|
488
|
-
if (obj.EmvCommon !== undefined)
|
|
489
|
-
return { EmvCommon: (0, exports.SessionKeyEmvCommonFilterSensitiveLog)(obj.EmvCommon) };
|
|
490
|
-
if (obj.Mastercard !== undefined)
|
|
491
|
-
return { Mastercard: (0, exports.SessionKeyMastercardFilterSensitiveLog)(obj.Mastercard) };
|
|
492
|
-
if (obj.Emv2000 !== undefined)
|
|
493
|
-
return { Emv2000: (0, exports.SessionKeyEmv2000FilterSensitiveLog)(obj.Emv2000) };
|
|
494
|
-
if (obj.Amex !== undefined)
|
|
495
|
-
return { Amex: (0, exports.SessionKeyAmexFilterSensitiveLog)(obj.Amex) };
|
|
496
|
-
if (obj.Visa !== undefined)
|
|
497
|
-
return { Visa: (0, exports.SessionKeyVisaFilterSensitiveLog)(obj.Visa) };
|
|
498
|
-
if (obj.$unknown !== undefined)
|
|
499
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
500
|
-
};
|
|
501
|
-
exports.SessionKeyDerivationFilterSensitiveLog = SessionKeyDerivationFilterSensitiveLog;
|
|
502
|
-
const VerifyAuthRequestCryptogramInputFilterSensitiveLog = (obj) => ({
|
|
503
|
-
...obj,
|
|
504
|
-
...(obj.SessionKeyDerivationAttributes && {
|
|
505
|
-
SessionKeyDerivationAttributes: (0, exports.SessionKeyDerivationFilterSensitiveLog)(obj.SessionKeyDerivationAttributes),
|
|
506
|
-
}),
|
|
507
|
-
...(obj.AuthResponseAttributes && { AuthResponseAttributes: obj.AuthResponseAttributes }),
|
|
508
|
-
});
|
|
509
|
-
exports.VerifyAuthRequestCryptogramInputFilterSensitiveLog = VerifyAuthRequestCryptogramInputFilterSensitiveLog;
|
|
510
|
-
const VerifyCardValidationDataInputFilterSensitiveLog = (obj) => ({
|
|
511
|
-
...obj,
|
|
512
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
513
|
-
...(obj.VerificationAttributes && { VerificationAttributes: obj.VerificationAttributes }),
|
|
514
|
-
});
|
|
515
|
-
exports.VerifyCardValidationDataInputFilterSensitiveLog = VerifyCardValidationDataInputFilterSensitiveLog;
|
|
516
|
-
const VerifyMacInputFilterSensitiveLog = (obj) => ({
|
|
517
|
-
...obj,
|
|
518
|
-
...(obj.MessageData && { MessageData: smithy_client_1.SENSITIVE_STRING }),
|
|
519
|
-
...(obj.Mac && { Mac: smithy_client_1.SENSITIVE_STRING }),
|
|
520
|
-
...(obj.VerificationAttributes && {
|
|
521
|
-
VerificationAttributes: (0, exports.MacAttributesFilterSensitiveLog)(obj.VerificationAttributes),
|
|
522
|
-
}),
|
|
523
|
-
});
|
|
524
|
-
exports.VerifyMacInputFilterSensitiveLog = VerifyMacInputFilterSensitiveLog;
|
|
525
|
-
const VerifyPinDataInputFilterSensitiveLog = (obj) => ({
|
|
526
|
-
...obj,
|
|
527
|
-
...(obj.VerificationAttributes && { VerificationAttributes: obj.VerificationAttributes }),
|
|
528
|
-
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithy_client_1.SENSITIVE_STRING }),
|
|
529
|
-
});
|
|
530
|
-
exports.VerifyPinDataInputFilterSensitiveLog = VerifyPinDataInputFilterSensitiveLog;
|
|
1
|
+
module.exports = require("../index.js");
|