@aws-sdk/client-payment-cryptography-data 3.928.0 → 3.930.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.
Files changed (37) hide show
  1. package/dist-cjs/index.js +1282 -1477
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/PaymentCryptographyDataClient.js +2 -0
  4. package/dist-es/commands/DecryptDataCommand.js +3 -10
  5. package/dist-es/commands/EncryptDataCommand.js +3 -10
  6. package/dist-es/commands/GenerateCardValidationDataCommand.js +3 -10
  7. package/dist-es/commands/GenerateMacCommand.js +3 -10
  8. package/dist-es/commands/GenerateMacEmvPinChangeCommand.js +3 -10
  9. package/dist-es/commands/GeneratePinDataCommand.js +3 -10
  10. package/dist-es/commands/ReEncryptDataCommand.js +3 -10
  11. package/dist-es/commands/TranslateKeyMaterialCommand.js +3 -10
  12. package/dist-es/commands/TranslatePinDataCommand.js +3 -10
  13. package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +3 -10
  14. package/dist-es/commands/VerifyCardValidationDataCommand.js +3 -10
  15. package/dist-es/commands/VerifyMacCommand.js +3 -10
  16. package/dist-es/commands/VerifyPinDataCommand.js +3 -10
  17. package/dist-es/models/models_0.js +0 -729
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-es/schemas/schemas_0.js +1238 -0
  20. package/dist-types/PaymentCryptographyDataClient.d.ts +10 -1
  21. package/dist-types/models/models_0.d.ts +68 -305
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  23. package/dist-types/runtimeConfig.d.ts +1 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -0
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/schemas/schemas_0.d.ts +141 -0
  27. package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +4 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +0 -235
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +147 -0
  34. package/package.json +33 -33
  35. package/dist-es/protocols/Aws_restJson1.js +0 -570
  36. package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class PaymentCryptographyDataClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class PaymentCryptographyDataClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class PaymentCryptographyDataServiceException extends smithyClient.ServiceException {
113
+ let PaymentCryptographyDataServiceException$1 = class PaymentCryptographyDataServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, PaymentCryptographyDataServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends PaymentCryptographyDataServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends PaymentCryptographyDataServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,7 +130,7 @@ class AccessDeniedException extends PaymentCryptographyDataServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
133
+ };
134
134
  const MajorKeyDerivationMode = {
135
135
  EMV_OPTION_A: "EMV_OPTION_A",
136
136
  EMV_OPTION_B: "EMV_OPTION_B",
@@ -141,58 +141,6 @@ const PaddingType = {
141
141
  OAEP_SHA512: "OAEP_SHA512",
142
142
  PKCS1: "PKCS1",
143
143
  };
144
- exports.CardGenerationAttributes = void 0;
145
- (function (CardGenerationAttributes) {
146
- CardGenerationAttributes.visit = (value, visitor) => {
147
- if (value.AmexCardSecurityCodeVersion1 !== undefined)
148
- return visitor.AmexCardSecurityCodeVersion1(value.AmexCardSecurityCodeVersion1);
149
- if (value.AmexCardSecurityCodeVersion2 !== undefined)
150
- return visitor.AmexCardSecurityCodeVersion2(value.AmexCardSecurityCodeVersion2);
151
- if (value.CardVerificationValue1 !== undefined)
152
- return visitor.CardVerificationValue1(value.CardVerificationValue1);
153
- if (value.CardVerificationValue2 !== undefined)
154
- return visitor.CardVerificationValue2(value.CardVerificationValue2);
155
- if (value.CardHolderVerificationValue !== undefined)
156
- return visitor.CardHolderVerificationValue(value.CardHolderVerificationValue);
157
- if (value.DynamicCardVerificationCode !== undefined)
158
- return visitor.DynamicCardVerificationCode(value.DynamicCardVerificationCode);
159
- if (value.DynamicCardVerificationValue !== undefined)
160
- return visitor.DynamicCardVerificationValue(value.DynamicCardVerificationValue);
161
- return visitor._(value.$unknown[0], value.$unknown[1]);
162
- };
163
- })(exports.CardGenerationAttributes || (exports.CardGenerationAttributes = {}));
164
- exports.CardVerificationAttributes = void 0;
165
- (function (CardVerificationAttributes) {
166
- CardVerificationAttributes.visit = (value, visitor) => {
167
- if (value.AmexCardSecurityCodeVersion1 !== undefined)
168
- return visitor.AmexCardSecurityCodeVersion1(value.AmexCardSecurityCodeVersion1);
169
- if (value.AmexCardSecurityCodeVersion2 !== undefined)
170
- return visitor.AmexCardSecurityCodeVersion2(value.AmexCardSecurityCodeVersion2);
171
- if (value.CardVerificationValue1 !== undefined)
172
- return visitor.CardVerificationValue1(value.CardVerificationValue1);
173
- if (value.CardVerificationValue2 !== undefined)
174
- return visitor.CardVerificationValue2(value.CardVerificationValue2);
175
- if (value.CardHolderVerificationValue !== undefined)
176
- return visitor.CardHolderVerificationValue(value.CardHolderVerificationValue);
177
- if (value.DynamicCardVerificationCode !== undefined)
178
- return visitor.DynamicCardVerificationCode(value.DynamicCardVerificationCode);
179
- if (value.DynamicCardVerificationValue !== undefined)
180
- return visitor.DynamicCardVerificationValue(value.DynamicCardVerificationValue);
181
- if (value.DiscoverDynamicCardVerificationCode !== undefined)
182
- return visitor.DiscoverDynamicCardVerificationCode(value.DiscoverDynamicCardVerificationCode);
183
- return visitor._(value.$unknown[0], value.$unknown[1]);
184
- };
185
- })(exports.CardVerificationAttributes || (exports.CardVerificationAttributes = {}));
186
- exports.CryptogramAuthResponse = void 0;
187
- (function (CryptogramAuthResponse) {
188
- CryptogramAuthResponse.visit = (value, visitor) => {
189
- if (value.ArpcMethod1 !== undefined)
190
- return visitor.ArpcMethod1(value.ArpcMethod1);
191
- if (value.ArpcMethod2 !== undefined)
192
- return visitor.ArpcMethod2(value.ArpcMethod2);
193
- return visitor._(value.$unknown[0], value.$unknown[1]);
194
- };
195
- })(exports.CryptogramAuthResponse || (exports.CryptogramAuthResponse = {}));
196
144
  const DukptDerivationType = {
197
145
  AES_128: "AES_128",
198
146
  AES_192: "AES_192",
@@ -227,20 +175,6 @@ const EncryptionMode = {
227
175
  ECB: "ECB",
228
176
  OFB: "OFB",
229
177
  };
230
- exports.EncryptionDecryptionAttributes = void 0;
231
- (function (EncryptionDecryptionAttributes) {
232
- EncryptionDecryptionAttributes.visit = (value, visitor) => {
233
- if (value.Symmetric !== undefined)
234
- return visitor.Symmetric(value.Symmetric);
235
- if (value.Asymmetric !== undefined)
236
- return visitor.Asymmetric(value.Asymmetric);
237
- if (value.Dukpt !== undefined)
238
- return visitor.Dukpt(value.Dukpt);
239
- if (value.Emv !== undefined)
240
- return visitor.Emv(value.Emv);
241
- return visitor._(value.$unknown[0], value.$unknown[1]);
242
- };
243
- })(exports.EncryptionDecryptionAttributes || (exports.EncryptionDecryptionAttributes = {}));
244
178
  const KeyCheckValueAlgorithm = {
245
179
  ANSI_X9_24: "ANSI_X9_24",
246
180
  CMAC: "CMAC",
@@ -267,17 +201,7 @@ const KeyDerivationHashAlgorithm = {
267
201
  SHA_384: "SHA_384",
268
202
  SHA_512: "SHA_512",
269
203
  };
270
- exports.WrappedKeyMaterial = void 0;
271
- (function (WrappedKeyMaterial) {
272
- WrappedKeyMaterial.visit = (value, visitor) => {
273
- if (value.Tr31KeyBlock !== undefined)
274
- return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
275
- if (value.DiffieHellmanSymmetricKey !== undefined)
276
- return visitor.DiffieHellmanSymmetricKey(value.DiffieHellmanSymmetricKey);
277
- return visitor._(value.$unknown[0], value.$unknown[1]);
278
- };
279
- })(exports.WrappedKeyMaterial || (exports.WrappedKeyMaterial = {}));
280
- class InternalServerException extends PaymentCryptographyDataServiceException {
204
+ let InternalServerException$1 = class InternalServerException extends PaymentCryptographyDataServiceException$1 {
281
205
  name = "InternalServerException";
282
206
  $fault = "server";
283
207
  Message;
@@ -290,8 +214,8 @@ class InternalServerException extends PaymentCryptographyDataServiceException {
290
214
  Object.setPrototypeOf(this, InternalServerException.prototype);
291
215
  this.Message = opts.Message;
292
216
  }
293
- }
294
- class ResourceNotFoundException extends PaymentCryptographyDataServiceException {
217
+ };
218
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends PaymentCryptographyDataServiceException$1 {
295
219
  name = "ResourceNotFoundException";
296
220
  $fault = "client";
297
221
  ResourceId;
@@ -304,8 +228,8 @@ class ResourceNotFoundException extends PaymentCryptographyDataServiceException
304
228
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
305
229
  this.ResourceId = opts.ResourceId;
306
230
  }
307
- }
308
- class ThrottlingException extends PaymentCryptographyDataServiceException {
231
+ };
232
+ let ThrottlingException$1 = class ThrottlingException extends PaymentCryptographyDataServiceException$1 {
309
233
  name = "ThrottlingException";
310
234
  $fault = "client";
311
235
  Message;
@@ -318,8 +242,8 @@ class ThrottlingException extends PaymentCryptographyDataServiceException {
318
242
  Object.setPrototypeOf(this, ThrottlingException.prototype);
319
243
  this.Message = opts.Message;
320
244
  }
321
- }
322
- class ValidationException extends PaymentCryptographyDataServiceException {
245
+ };
246
+ let ValidationException$1 = class ValidationException extends PaymentCryptographyDataServiceException$1 {
323
247
  name = "ValidationException";
324
248
  $fault = "client";
325
249
  fieldList;
@@ -332,7 +256,7 @@ class ValidationException extends PaymentCryptographyDataServiceException {
332
256
  Object.setPrototypeOf(this, ValidationException.prototype);
333
257
  this.fieldList = opts.fieldList;
334
258
  }
335
- }
259
+ };
336
260
  const PinBlockLengthPosition = {
337
261
  FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
338
262
  NONE: "NONE",
@@ -341,30 +265,6 @@ const PinBlockPaddingType = {
341
265
  ISO_IEC_7816_4: "ISO_IEC_7816_4",
342
266
  NO_PADDING: "NO_PADDING",
343
267
  };
344
- exports.DerivationMethodAttributes = void 0;
345
- (function (DerivationMethodAttributes) {
346
- DerivationMethodAttributes.visit = (value, visitor) => {
347
- if (value.EmvCommon !== undefined)
348
- return visitor.EmvCommon(value.EmvCommon);
349
- if (value.Amex !== undefined)
350
- return visitor.Amex(value.Amex);
351
- if (value.Visa !== undefined)
352
- return visitor.Visa(value.Visa);
353
- if (value.Emv2000 !== undefined)
354
- return visitor.Emv2000(value.Emv2000);
355
- if (value.Mastercard !== undefined)
356
- return visitor.Mastercard(value.Mastercard);
357
- return visitor._(value.$unknown[0], value.$unknown[1]);
358
- };
359
- })(exports.DerivationMethodAttributes || (exports.DerivationMethodAttributes = {}));
360
- exports.DiffieHellmanDerivationData = void 0;
361
- (function (DiffieHellmanDerivationData) {
362
- DiffieHellmanDerivationData.visit = (value, visitor) => {
363
- if (value.SharedInformation !== undefined)
364
- return visitor.SharedInformation(value.SharedInformation);
365
- return visitor._(value.$unknown[0], value.$unknown[1]);
366
- };
367
- })(exports.DiffieHellmanDerivationData || (exports.DiffieHellmanDerivationData = {}));
368
268
  const MacAlgorithm = {
369
269
  CMAC: "CMAC",
370
270
  HMAC: "HMAC",
@@ -382,123 +282,29 @@ const SessionKeyDerivationMode = {
382
282
  MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
383
283
  VISA: "VISA",
384
284
  };
385
- exports.SessionKeyDerivationValue = void 0;
386
- (function (SessionKeyDerivationValue) {
387
- SessionKeyDerivationValue.visit = (value, visitor) => {
388
- if (value.ApplicationCryptogram !== undefined)
389
- return visitor.ApplicationCryptogram(value.ApplicationCryptogram);
390
- if (value.ApplicationTransactionCounter !== undefined)
391
- return visitor.ApplicationTransactionCounter(value.ApplicationTransactionCounter);
392
- return visitor._(value.$unknown[0], value.$unknown[1]);
393
- };
394
- })(exports.SessionKeyDerivationValue || (exports.SessionKeyDerivationValue = {}));
395
- exports.MacAttributes = void 0;
396
- (function (MacAttributes) {
397
- MacAttributes.visit = (value, visitor) => {
398
- if (value.Algorithm !== undefined)
399
- return visitor.Algorithm(value.Algorithm);
400
- if (value.EmvMac !== undefined)
401
- return visitor.EmvMac(value.EmvMac);
402
- if (value.DukptIso9797Algorithm1 !== undefined)
403
- return visitor.DukptIso9797Algorithm1(value.DukptIso9797Algorithm1);
404
- if (value.DukptIso9797Algorithm3 !== undefined)
405
- return visitor.DukptIso9797Algorithm3(value.DukptIso9797Algorithm3);
406
- if (value.DukptCmac !== undefined)
407
- return visitor.DukptCmac(value.DukptCmac);
408
- return visitor._(value.$unknown[0], value.$unknown[1]);
409
- };
410
- })(exports.MacAttributes || (exports.MacAttributes = {}));
411
285
  const PinBlockFormatForEmvPinChange = {
412
286
  ISO_FORMAT_0: "ISO_FORMAT_0",
413
287
  ISO_FORMAT_1: "ISO_FORMAT_1",
414
288
  ISO_FORMAT_3: "ISO_FORMAT_3",
415
289
  };
416
- exports.PinGenerationAttributes = void 0;
417
- (function (PinGenerationAttributes) {
418
- PinGenerationAttributes.visit = (value, visitor) => {
419
- if (value.VisaPin !== undefined)
420
- return visitor.VisaPin(value.VisaPin);
421
- if (value.VisaPinVerificationValue !== undefined)
422
- return visitor.VisaPinVerificationValue(value.VisaPinVerificationValue);
423
- if (value.Ibm3624PinOffset !== undefined)
424
- return visitor.Ibm3624PinOffset(value.Ibm3624PinOffset);
425
- if (value.Ibm3624NaturalPin !== undefined)
426
- return visitor.Ibm3624NaturalPin(value.Ibm3624NaturalPin);
427
- if (value.Ibm3624RandomPin !== undefined)
428
- return visitor.Ibm3624RandomPin(value.Ibm3624RandomPin);
429
- if (value.Ibm3624PinFromOffset !== undefined)
430
- return visitor.Ibm3624PinFromOffset(value.Ibm3624PinFromOffset);
431
- return visitor._(value.$unknown[0], value.$unknown[1]);
432
- };
433
- })(exports.PinGenerationAttributes || (exports.PinGenerationAttributes = {}));
434
290
  const PinBlockFormatForPinData = {
435
291
  ISO_FORMAT_0: "ISO_FORMAT_0",
436
292
  ISO_FORMAT_1: "ISO_FORMAT_1",
437
293
  ISO_FORMAT_3: "ISO_FORMAT_3",
438
294
  ISO_FORMAT_4: "ISO_FORMAT_4",
439
295
  };
440
- exports.PinData = void 0;
441
- (function (PinData) {
442
- PinData.visit = (value, visitor) => {
443
- if (value.PinOffset !== undefined)
444
- return visitor.PinOffset(value.PinOffset);
445
- if (value.VerificationValue !== undefined)
446
- return visitor.VerificationValue(value.VerificationValue);
447
- return visitor._(value.$unknown[0], value.$unknown[1]);
448
- };
449
- })(exports.PinData || (exports.PinData = {}));
450
- exports.IncomingKeyMaterial = void 0;
451
- (function (IncomingKeyMaterial) {
452
- IncomingKeyMaterial.visit = (value, visitor) => {
453
- if (value.DiffieHellmanTr31KeyBlock !== undefined)
454
- return visitor.DiffieHellmanTr31KeyBlock(value.DiffieHellmanTr31KeyBlock);
455
- return visitor._(value.$unknown[0], value.$unknown[1]);
456
- };
457
- })(exports.IncomingKeyMaterial || (exports.IncomingKeyMaterial = {}));
458
- exports.OutgoingKeyMaterial = void 0;
459
- (function (OutgoingKeyMaterial) {
460
- OutgoingKeyMaterial.visit = (value, visitor) => {
461
- if (value.Tr31KeyBlock !== undefined)
462
- return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
463
- return visitor._(value.$unknown[0], value.$unknown[1]);
464
- };
465
- })(exports.OutgoingKeyMaterial || (exports.OutgoingKeyMaterial = {}));
466
- exports.ReEncryptionAttributes = void 0;
467
- (function (ReEncryptionAttributes) {
468
- ReEncryptionAttributes.visit = (value, visitor) => {
469
- if (value.Symmetric !== undefined)
470
- return visitor.Symmetric(value.Symmetric);
471
- if (value.Dukpt !== undefined)
472
- return visitor.Dukpt(value.Dukpt);
473
- return visitor._(value.$unknown[0], value.$unknown[1]);
474
- };
475
- })(exports.ReEncryptionAttributes || (exports.ReEncryptionAttributes = {}));
476
296
  const WrappedKeyMaterialFormat = {
477
297
  KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
478
298
  TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
479
299
  TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
480
300
  };
481
- exports.TranslationIsoFormats = void 0;
482
- (function (TranslationIsoFormats) {
483
- TranslationIsoFormats.visit = (value, visitor) => {
484
- if (value.IsoFormat0 !== undefined)
485
- return visitor.IsoFormat0(value.IsoFormat0);
486
- if (value.IsoFormat1 !== undefined)
487
- return visitor.IsoFormat1(value.IsoFormat1);
488
- if (value.IsoFormat3 !== undefined)
489
- return visitor.IsoFormat3(value.IsoFormat3);
490
- if (value.IsoFormat4 !== undefined)
491
- return visitor.IsoFormat4(value.IsoFormat4);
492
- return visitor._(value.$unknown[0], value.$unknown[1]);
493
- };
494
- })(exports.TranslationIsoFormats || (exports.TranslationIsoFormats = {}));
495
301
  const VerificationFailedReason = {
496
302
  INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
497
303
  INVALID_MAC: "INVALID_MAC",
498
304
  INVALID_PIN: "INVALID_PIN",
499
305
  INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
500
306
  };
501
- class VerificationFailedException extends PaymentCryptographyDataServiceException {
307
+ let VerificationFailedException$1 = class VerificationFailedException extends PaymentCryptographyDataServiceException$1 {
502
308
  name = "VerificationFailedException";
503
309
  $fault = "client";
504
310
  Reason;
@@ -513,1121 +319,1252 @@ class VerificationFailedException extends PaymentCryptographyDataServiceExceptio
513
319
  this.Reason = opts.Reason;
514
320
  this.Message = opts.Message;
515
321
  }
516
- }
517
- exports.SessionKeyDerivation = void 0;
518
- (function (SessionKeyDerivation) {
519
- SessionKeyDerivation.visit = (value, visitor) => {
520
- if (value.EmvCommon !== undefined)
521
- return visitor.EmvCommon(value.EmvCommon);
522
- if (value.Mastercard !== undefined)
523
- return visitor.Mastercard(value.Mastercard);
524
- if (value.Emv2000 !== undefined)
525
- return visitor.Emv2000(value.Emv2000);
526
- if (value.Amex !== undefined)
527
- return visitor.Amex(value.Amex);
528
- if (value.Visa !== undefined)
529
- return visitor.Visa(value.Visa);
530
- return visitor._(value.$unknown[0], value.$unknown[1]);
531
- };
532
- })(exports.SessionKeyDerivation || (exports.SessionKeyDerivation = {}));
533
- exports.PinVerificationAttributes = void 0;
534
- (function (PinVerificationAttributes) {
535
- PinVerificationAttributes.visit = (value, visitor) => {
536
- if (value.VisaPin !== undefined)
537
- return visitor.VisaPin(value.VisaPin);
538
- if (value.Ibm3624Pin !== undefined)
539
- return visitor.Ibm3624Pin(value.Ibm3624Pin);
540
- return visitor._(value.$unknown[0], value.$unknown[1]);
541
- };
542
- })(exports.PinVerificationAttributes || (exports.PinVerificationAttributes = {}));
543
- const CurrentPinAttributesFilterSensitiveLog = (obj) => ({
544
- ...obj,
545
- ...(obj.CurrentEncryptedPinBlock && { CurrentEncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
546
- });
547
- const AmexAttributesFilterSensitiveLog = (obj) => ({
548
- ...obj,
549
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
550
- ...(obj.CurrentPinAttributes && {
551
- CurrentPinAttributes: CurrentPinAttributesFilterSensitiveLog(obj.CurrentPinAttributes),
552
- }),
553
- });
554
- const AmexCardSecurityCodeVersion1FilterSensitiveLog = (obj) => ({
555
- ...obj,
556
- ...(obj.CardExpiryDate && { CardExpiryDate: smithyClient.SENSITIVE_STRING }),
557
- });
558
- const AmexCardSecurityCodeVersion2FilterSensitiveLog = (obj) => ({
559
- ...obj,
560
- ...(obj.CardExpiryDate && { CardExpiryDate: smithyClient.SENSITIVE_STRING }),
561
- ...(obj.ServiceCode && { ServiceCode: smithyClient.SENSITIVE_STRING }),
562
- });
563
- const CardVerificationValue1FilterSensitiveLog = (obj) => ({
564
- ...obj,
565
- ...(obj.CardExpiryDate && { CardExpiryDate: smithyClient.SENSITIVE_STRING }),
566
- ...(obj.ServiceCode && { ServiceCode: smithyClient.SENSITIVE_STRING }),
567
- });
568
- const CardVerificationValue2FilterSensitiveLog = (obj) => ({
569
- ...obj,
570
- ...(obj.CardExpiryDate && { CardExpiryDate: smithyClient.SENSITIVE_STRING }),
571
- });
572
- const DynamicCardVerificationCodeFilterSensitiveLog = (obj) => ({
573
- ...obj,
574
- ...(obj.TrackData && { TrackData: smithyClient.SENSITIVE_STRING }),
575
- });
576
- const DynamicCardVerificationValueFilterSensitiveLog = (obj) => ({
577
- ...obj,
578
- ...(obj.CardExpiryDate && { CardExpiryDate: smithyClient.SENSITIVE_STRING }),
579
- ...(obj.ServiceCode && { ServiceCode: smithyClient.SENSITIVE_STRING }),
580
- });
581
- const CardGenerationAttributesFilterSensitiveLog = (obj) => {
582
- if (obj.AmexCardSecurityCodeVersion1 !== undefined)
583
- return {
584
- AmexCardSecurityCodeVersion1: AmexCardSecurityCodeVersion1FilterSensitiveLog(obj.AmexCardSecurityCodeVersion1),
585
- };
586
- if (obj.AmexCardSecurityCodeVersion2 !== undefined)
587
- return {
588
- AmexCardSecurityCodeVersion2: AmexCardSecurityCodeVersion2FilterSensitiveLog(obj.AmexCardSecurityCodeVersion2),
589
- };
590
- if (obj.CardVerificationValue1 !== undefined)
591
- return { CardVerificationValue1: CardVerificationValue1FilterSensitiveLog(obj.CardVerificationValue1) };
592
- if (obj.CardVerificationValue2 !== undefined)
593
- return { CardVerificationValue2: CardVerificationValue2FilterSensitiveLog(obj.CardVerificationValue2) };
594
- if (obj.CardHolderVerificationValue !== undefined)
595
- return { CardHolderVerificationValue: obj.CardHolderVerificationValue };
596
- if (obj.DynamicCardVerificationCode !== undefined)
597
- return {
598
- DynamicCardVerificationCode: DynamicCardVerificationCodeFilterSensitiveLog(obj.DynamicCardVerificationCode),
599
- };
600
- if (obj.DynamicCardVerificationValue !== undefined)
601
- return {
602
- DynamicCardVerificationValue: DynamicCardVerificationValueFilterSensitiveLog(obj.DynamicCardVerificationValue),
603
- };
604
- if (obj.$unknown !== undefined)
605
- return { [obj.$unknown[0]]: "UNKNOWN" };
606
322
  };
607
- const DiscoverDynamicCardVerificationCodeFilterSensitiveLog = (obj) => ({
608
- ...obj,
609
- ...(obj.CardExpiryDate && { CardExpiryDate: smithyClient.SENSITIVE_STRING }),
610
- });
611
- const CardVerificationAttributesFilterSensitiveLog = (obj) => {
612
- if (obj.AmexCardSecurityCodeVersion1 !== undefined)
613
- return {
614
- AmexCardSecurityCodeVersion1: AmexCardSecurityCodeVersion1FilterSensitiveLog(obj.AmexCardSecurityCodeVersion1),
615
- };
616
- if (obj.AmexCardSecurityCodeVersion2 !== undefined)
617
- return {
618
- AmexCardSecurityCodeVersion2: AmexCardSecurityCodeVersion2FilterSensitiveLog(obj.AmexCardSecurityCodeVersion2),
619
- };
620
- if (obj.CardVerificationValue1 !== undefined)
621
- return { CardVerificationValue1: CardVerificationValue1FilterSensitiveLog(obj.CardVerificationValue1) };
622
- if (obj.CardVerificationValue2 !== undefined)
623
- return { CardVerificationValue2: CardVerificationValue2FilterSensitiveLog(obj.CardVerificationValue2) };
624
- if (obj.CardHolderVerificationValue !== undefined)
625
- return { CardHolderVerificationValue: obj.CardHolderVerificationValue };
626
- if (obj.DynamicCardVerificationCode !== undefined)
627
- return {
628
- DynamicCardVerificationCode: DynamicCardVerificationCodeFilterSensitiveLog(obj.DynamicCardVerificationCode),
629
- };
630
- if (obj.DynamicCardVerificationValue !== undefined)
631
- return {
632
- DynamicCardVerificationValue: DynamicCardVerificationValueFilterSensitiveLog(obj.DynamicCardVerificationValue),
633
- };
634
- if (obj.DiscoverDynamicCardVerificationCode !== undefined)
635
- return {
636
- DiscoverDynamicCardVerificationCode: DiscoverDynamicCardVerificationCodeFilterSensitiveLog(obj.DiscoverDynamicCardVerificationCode),
637
- };
638
- if (obj.$unknown !== undefined)
639
- return { [obj.$unknown[0]]: "UNKNOWN" };
640
- };
641
- const CryptogramVerificationArpcMethod2FilterSensitiveLog = (obj) => ({
642
- ...obj,
643
- ...(obj.ProprietaryAuthenticationData && { ProprietaryAuthenticationData: smithyClient.SENSITIVE_STRING }),
644
- });
645
- const CryptogramAuthResponseFilterSensitiveLog = (obj) => {
646
- if (obj.ArpcMethod1 !== undefined)
647
- return { ArpcMethod1: obj.ArpcMethod1 };
648
- if (obj.ArpcMethod2 !== undefined)
649
- return { ArpcMethod2: CryptogramVerificationArpcMethod2FilterSensitiveLog(obj.ArpcMethod2) };
650
- if (obj.$unknown !== undefined)
651
- return { [obj.$unknown[0]]: "UNKNOWN" };
652
- };
653
- const DukptEncryptionAttributesFilterSensitiveLog = (obj) => ({
654
- ...obj,
655
- ...(obj.InitializationVector && { InitializationVector: smithyClient.SENSITIVE_STRING }),
656
- });
657
- const EmvEncryptionAttributesFilterSensitiveLog = (obj) => ({
658
- ...obj,
659
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
660
- ...(obj.SessionDerivationData && { SessionDerivationData: smithyClient.SENSITIVE_STRING }),
661
- ...(obj.InitializationVector && { InitializationVector: smithyClient.SENSITIVE_STRING }),
662
- });
663
- const SymmetricEncryptionAttributesFilterSensitiveLog = (obj) => ({
664
- ...obj,
665
- ...(obj.InitializationVector && { InitializationVector: smithyClient.SENSITIVE_STRING }),
666
- });
667
- const EncryptionDecryptionAttributesFilterSensitiveLog = (obj) => {
668
- if (obj.Symmetric !== undefined)
669
- return { Symmetric: SymmetricEncryptionAttributesFilterSensitiveLog(obj.Symmetric) };
670
- if (obj.Asymmetric !== undefined)
671
- return { Asymmetric: obj.Asymmetric };
672
- if (obj.Dukpt !== undefined)
673
- return { Dukpt: DukptEncryptionAttributesFilterSensitiveLog(obj.Dukpt) };
674
- if (obj.Emv !== undefined)
675
- return { Emv: EmvEncryptionAttributesFilterSensitiveLog(obj.Emv) };
676
- if (obj.$unknown !== undefined)
677
- return { [obj.$unknown[0]]: "UNKNOWN" };
678
- };
679
- const WrappedKeyMaterialFilterSensitiveLog = (obj) => {
680
- if (obj.Tr31KeyBlock !== undefined)
681
- return { Tr31KeyBlock: smithyClient.SENSITIVE_STRING };
682
- if (obj.DiffieHellmanSymmetricKey !== undefined)
683
- return { DiffieHellmanSymmetricKey: obj.DiffieHellmanSymmetricKey };
684
- if (obj.$unknown !== undefined)
685
- return { [obj.$unknown[0]]: "UNKNOWN" };
686
- };
687
- const WrappedKeyFilterSensitiveLog = (obj) => ({
688
- ...obj,
689
- ...(obj.WrappedKeyMaterial && { WrappedKeyMaterial: WrappedKeyMaterialFilterSensitiveLog(obj.WrappedKeyMaterial) }),
690
- });
691
- const DecryptDataInputFilterSensitiveLog = (obj) => ({
692
- ...obj,
693
- ...(obj.CipherText && { CipherText: smithyClient.SENSITIVE_STRING }),
694
- ...(obj.DecryptionAttributes && {
695
- DecryptionAttributes: EncryptionDecryptionAttributesFilterSensitiveLog(obj.DecryptionAttributes),
696
- }),
697
- ...(obj.WrappedKey && { WrappedKey: WrappedKeyFilterSensitiveLog(obj.WrappedKey) }),
698
- });
699
- const DecryptDataOutputFilterSensitiveLog = (obj) => ({
700
- ...obj,
701
- ...(obj.PlainText && { PlainText: smithyClient.SENSITIVE_STRING }),
702
- });
703
- const Emv2000AttributesFilterSensitiveLog = (obj) => ({
704
- ...obj,
705
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
706
- });
707
- const EmvCommonAttributesFilterSensitiveLog = (obj) => ({
708
- ...obj,
709
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
710
- ...(obj.ApplicationCryptogram && { ApplicationCryptogram: smithyClient.SENSITIVE_STRING }),
711
- });
712
- const MasterCardAttributesFilterSensitiveLog = (obj) => ({
713
- ...obj,
714
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
715
- ...(obj.ApplicationCryptogram && { ApplicationCryptogram: smithyClient.SENSITIVE_STRING }),
716
- });
717
- const VisaAttributesFilterSensitiveLog = (obj) => ({
718
- ...obj,
719
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
720
- ...(obj.CurrentPinAttributes && {
721
- CurrentPinAttributes: CurrentPinAttributesFilterSensitiveLog(obj.CurrentPinAttributes),
722
- }),
723
- });
724
- const DerivationMethodAttributesFilterSensitiveLog = (obj) => {
725
- if (obj.EmvCommon !== undefined)
726
- return { EmvCommon: EmvCommonAttributesFilterSensitiveLog(obj.EmvCommon) };
727
- if (obj.Amex !== undefined)
728
- return { Amex: AmexAttributesFilterSensitiveLog(obj.Amex) };
729
- if (obj.Visa !== undefined)
730
- return { Visa: VisaAttributesFilterSensitiveLog(obj.Visa) };
731
- if (obj.Emv2000 !== undefined)
732
- return { Emv2000: Emv2000AttributesFilterSensitiveLog(obj.Emv2000) };
733
- if (obj.Mastercard !== undefined)
734
- return { Mastercard: MasterCardAttributesFilterSensitiveLog(obj.Mastercard) };
735
- if (obj.$unknown !== undefined)
736
- return { [obj.$unknown[0]]: "UNKNOWN" };
737
- };
738
- const EncryptDataInputFilterSensitiveLog = (obj) => ({
739
- ...obj,
740
- ...(obj.PlainText && { PlainText: smithyClient.SENSITIVE_STRING }),
741
- ...(obj.EncryptionAttributes && {
742
- EncryptionAttributes: EncryptionDecryptionAttributesFilterSensitiveLog(obj.EncryptionAttributes),
743
- }),
744
- ...(obj.WrappedKey && { WrappedKey: WrappedKeyFilterSensitiveLog(obj.WrappedKey) }),
745
- });
746
- const EncryptDataOutputFilterSensitiveLog = (obj) => ({
747
- ...obj,
748
- ...(obj.CipherText && { CipherText: smithyClient.SENSITIVE_STRING }),
749
- });
750
- const GenerateCardValidationDataInputFilterSensitiveLog = (obj) => ({
751
- ...obj,
752
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
753
- ...(obj.GenerationAttributes && {
754
- GenerationAttributes: CardGenerationAttributesFilterSensitiveLog(obj.GenerationAttributes),
755
- }),
756
- });
757
- const GenerateCardValidationDataOutputFilterSensitiveLog = (obj) => ({
758
- ...obj,
759
- ...(obj.ValidationData && { ValidationData: smithyClient.SENSITIVE_STRING }),
760
- });
761
- const SessionKeyDerivationValueFilterSensitiveLog = (obj) => {
762
- if (obj.ApplicationCryptogram !== undefined)
763
- return { ApplicationCryptogram: smithyClient.SENSITIVE_STRING };
764
- if (obj.ApplicationTransactionCounter !== undefined)
765
- return { ApplicationTransactionCounter: obj.ApplicationTransactionCounter };
766
- if (obj.$unknown !== undefined)
767
- return { [obj.$unknown[0]]: "UNKNOWN" };
768
- };
769
- const MacAlgorithmEmvFilterSensitiveLog = (obj) => ({
770
- ...obj,
771
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
772
- ...(obj.SessionKeyDerivationValue && {
773
- SessionKeyDerivationValue: SessionKeyDerivationValueFilterSensitiveLog(obj.SessionKeyDerivationValue),
774
- }),
775
- });
776
- const MacAttributesFilterSensitiveLog = (obj) => {
777
- if (obj.Algorithm !== undefined)
778
- return { Algorithm: obj.Algorithm };
779
- if (obj.EmvMac !== undefined)
780
- return { EmvMac: MacAlgorithmEmvFilterSensitiveLog(obj.EmvMac) };
781
- if (obj.DukptIso9797Algorithm1 !== undefined)
782
- return { DukptIso9797Algorithm1: obj.DukptIso9797Algorithm1 };
783
- if (obj.DukptIso9797Algorithm3 !== undefined)
784
- return { DukptIso9797Algorithm3: obj.DukptIso9797Algorithm3 };
785
- if (obj.DukptCmac !== undefined)
786
- return { DukptCmac: obj.DukptCmac };
787
- if (obj.$unknown !== undefined)
788
- return { [obj.$unknown[0]]: "UNKNOWN" };
789
- };
790
- const GenerateMacInputFilterSensitiveLog = (obj) => ({
791
- ...obj,
792
- ...(obj.MessageData && { MessageData: smithyClient.SENSITIVE_STRING }),
793
- ...(obj.GenerationAttributes && { GenerationAttributes: MacAttributesFilterSensitiveLog(obj.GenerationAttributes) }),
794
- });
795
- const GenerateMacOutputFilterSensitiveLog = (obj) => ({
796
- ...obj,
797
- ...(obj.Mac && { Mac: smithyClient.SENSITIVE_STRING }),
798
- });
799
- const GenerateMacEmvPinChangeInputFilterSensitiveLog = (obj) => ({
800
- ...obj,
801
- ...(obj.NewEncryptedPinBlock && { NewEncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
802
- ...(obj.MessageData && { MessageData: smithyClient.SENSITIVE_STRING }),
803
- ...(obj.DerivationMethodAttributes && {
804
- DerivationMethodAttributes: DerivationMethodAttributesFilterSensitiveLog(obj.DerivationMethodAttributes),
805
- }),
806
- });
807
- const GenerateMacEmvPinChangeOutputFilterSensitiveLog = (obj) => ({
808
- ...obj,
809
- ...(obj.Mac && { Mac: smithyClient.SENSITIVE_STRING }),
810
- ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
811
- });
812
- const Ibm3624NaturalPinFilterSensitiveLog = (obj) => ({
813
- ...obj,
814
- ...(obj.DecimalizationTable && { DecimalizationTable: smithyClient.SENSITIVE_STRING }),
815
- ...(obj.PinValidationData && { PinValidationData: smithyClient.SENSITIVE_STRING }),
816
- });
817
- const Ibm3624PinFromOffsetFilterSensitiveLog = (obj) => ({
818
- ...obj,
819
- ...(obj.DecimalizationTable && { DecimalizationTable: smithyClient.SENSITIVE_STRING }),
820
- ...(obj.PinValidationData && { PinValidationData: smithyClient.SENSITIVE_STRING }),
821
- ...(obj.PinOffset && { PinOffset: smithyClient.SENSITIVE_STRING }),
822
- });
823
- const Ibm3624PinOffsetFilterSensitiveLog = (obj) => ({
824
- ...obj,
825
- ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
826
- ...(obj.DecimalizationTable && { DecimalizationTable: smithyClient.SENSITIVE_STRING }),
827
- ...(obj.PinValidationData && { PinValidationData: smithyClient.SENSITIVE_STRING }),
828
- });
829
- const Ibm3624RandomPinFilterSensitiveLog = (obj) => ({
830
- ...obj,
831
- ...(obj.DecimalizationTable && { DecimalizationTable: smithyClient.SENSITIVE_STRING }),
832
- ...(obj.PinValidationData && { PinValidationData: smithyClient.SENSITIVE_STRING }),
833
- });
834
- const VisaPinVerificationValueFilterSensitiveLog = (obj) => ({
835
- ...obj,
836
- ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
837
- });
838
- const PinGenerationAttributesFilterSensitiveLog = (obj) => {
839
- if (obj.VisaPin !== undefined)
840
- return { VisaPin: obj.VisaPin };
841
- if (obj.VisaPinVerificationValue !== undefined)
842
- return { VisaPinVerificationValue: VisaPinVerificationValueFilterSensitiveLog(obj.VisaPinVerificationValue) };
843
- if (obj.Ibm3624PinOffset !== undefined)
844
- return { Ibm3624PinOffset: Ibm3624PinOffsetFilterSensitiveLog(obj.Ibm3624PinOffset) };
845
- if (obj.Ibm3624NaturalPin !== undefined)
846
- return { Ibm3624NaturalPin: Ibm3624NaturalPinFilterSensitiveLog(obj.Ibm3624NaturalPin) };
847
- if (obj.Ibm3624RandomPin !== undefined)
848
- return { Ibm3624RandomPin: Ibm3624RandomPinFilterSensitiveLog(obj.Ibm3624RandomPin) };
849
- if (obj.Ibm3624PinFromOffset !== undefined)
850
- return { Ibm3624PinFromOffset: Ibm3624PinFromOffsetFilterSensitiveLog(obj.Ibm3624PinFromOffset) };
851
- if (obj.$unknown !== undefined)
852
- return { [obj.$unknown[0]]: "UNKNOWN" };
853
- };
854
- const GeneratePinDataInputFilterSensitiveLog = (obj) => ({
855
- ...obj,
856
- ...(obj.GenerationAttributes && {
857
- GenerationAttributes: PinGenerationAttributesFilterSensitiveLog(obj.GenerationAttributes),
858
- }),
859
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
860
- ...(obj.EncryptionWrappedKey && { EncryptionWrappedKey: WrappedKeyFilterSensitiveLog(obj.EncryptionWrappedKey) }),
861
- });
862
- const PinDataFilterSensitiveLog = (obj) => {
863
- if (obj.PinOffset !== undefined)
864
- return { PinOffset: smithyClient.SENSITIVE_STRING };
865
- if (obj.VerificationValue !== undefined)
866
- return { VerificationValue: smithyClient.SENSITIVE_STRING };
867
- if (obj.$unknown !== undefined)
868
- return { [obj.$unknown[0]]: "UNKNOWN" };
869
- };
870
- const GeneratePinDataOutputFilterSensitiveLog = (obj) => ({
871
- ...obj,
872
- ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
873
- ...(obj.PinData && { PinData: PinDataFilterSensitiveLog(obj.PinData) }),
874
- });
875
- const Ibm3624PinVerificationFilterSensitiveLog = (obj) => ({
876
- ...obj,
877
- ...(obj.DecimalizationTable && { DecimalizationTable: smithyClient.SENSITIVE_STRING }),
878
- ...(obj.PinValidationData && { PinValidationData: smithyClient.SENSITIVE_STRING }),
879
- ...(obj.PinOffset && { PinOffset: smithyClient.SENSITIVE_STRING }),
880
- });
881
- const IncomingDiffieHellmanTr31KeyBlockFilterSensitiveLog = (obj) => ({
882
- ...obj,
883
- ...(obj.DerivationData && { DerivationData: obj.DerivationData }),
884
- ...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
885
- });
886
- const IncomingKeyMaterialFilterSensitiveLog = (obj) => {
887
- if (obj.DiffieHellmanTr31KeyBlock !== undefined)
888
- return {
889
- DiffieHellmanTr31KeyBlock: IncomingDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock),
890
- };
891
- if (obj.$unknown !== undefined)
892
- return { [obj.$unknown[0]]: "UNKNOWN" };
893
- };
894
- const ReEncryptionAttributesFilterSensitiveLog = (obj) => {
895
- if (obj.Symmetric !== undefined)
896
- return { Symmetric: SymmetricEncryptionAttributesFilterSensitiveLog(obj.Symmetric) };
897
- if (obj.Dukpt !== undefined)
898
- return { Dukpt: DukptEncryptionAttributesFilterSensitiveLog(obj.Dukpt) };
899
- if (obj.$unknown !== undefined)
900
- return { [obj.$unknown[0]]: "UNKNOWN" };
901
- };
902
- const ReEncryptDataInputFilterSensitiveLog = (obj) => ({
903
- ...obj,
904
- ...(obj.CipherText && { CipherText: smithyClient.SENSITIVE_STRING }),
905
- ...(obj.IncomingEncryptionAttributes && {
906
- IncomingEncryptionAttributes: ReEncryptionAttributesFilterSensitiveLog(obj.IncomingEncryptionAttributes),
907
- }),
908
- ...(obj.OutgoingEncryptionAttributes && {
909
- OutgoingEncryptionAttributes: ReEncryptionAttributesFilterSensitiveLog(obj.OutgoingEncryptionAttributes),
910
- }),
911
- ...(obj.IncomingWrappedKey && { IncomingWrappedKey: WrappedKeyFilterSensitiveLog(obj.IncomingWrappedKey) }),
912
- ...(obj.OutgoingWrappedKey && { OutgoingWrappedKey: WrappedKeyFilterSensitiveLog(obj.OutgoingWrappedKey) }),
913
- });
914
- const ReEncryptDataOutputFilterSensitiveLog = (obj) => ({
915
- ...obj,
916
- ...(obj.CipherText && { CipherText: smithyClient.SENSITIVE_STRING }),
917
- });
918
- const TranslateKeyMaterialInputFilterSensitiveLog = (obj) => ({
919
- ...obj,
920
- ...(obj.IncomingKeyMaterial && {
921
- IncomingKeyMaterial: IncomingKeyMaterialFilterSensitiveLog(obj.IncomingKeyMaterial),
922
- }),
923
- ...(obj.OutgoingKeyMaterial && { OutgoingKeyMaterial: obj.OutgoingKeyMaterial }),
924
- });
925
- const WrappedWorkingKeyFilterSensitiveLog = (obj) => ({
926
- ...obj,
927
- ...(obj.WrappedKeyMaterial && { WrappedKeyMaterial: smithyClient.SENSITIVE_STRING }),
928
- });
929
- const TranslateKeyMaterialOutputFilterSensitiveLog = (obj) => ({
930
- ...obj,
931
- ...(obj.WrappedKey && { WrappedKey: WrappedWorkingKeyFilterSensitiveLog(obj.WrappedKey) }),
932
- });
933
- const TranslationPinDataIsoFormat034FilterSensitiveLog = (obj) => ({
934
- ...obj,
935
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
936
- });
937
- const TranslationIsoFormatsFilterSensitiveLog = (obj) => {
938
- if (obj.IsoFormat0 !== undefined)
939
- return { IsoFormat0: TranslationPinDataIsoFormat034FilterSensitiveLog(obj.IsoFormat0) };
940
- if (obj.IsoFormat1 !== undefined)
941
- return { IsoFormat1: obj.IsoFormat1 };
942
- if (obj.IsoFormat3 !== undefined)
943
- return { IsoFormat3: TranslationPinDataIsoFormat034FilterSensitiveLog(obj.IsoFormat3) };
944
- if (obj.IsoFormat4 !== undefined)
945
- return { IsoFormat4: TranslationPinDataIsoFormat034FilterSensitiveLog(obj.IsoFormat4) };
946
- if (obj.$unknown !== undefined)
947
- return { [obj.$unknown[0]]: "UNKNOWN" };
948
- };
949
- const TranslatePinDataInputFilterSensitiveLog = (obj) => ({
950
- ...obj,
951
- ...(obj.IncomingTranslationAttributes && {
952
- IncomingTranslationAttributes: TranslationIsoFormatsFilterSensitiveLog(obj.IncomingTranslationAttributes),
953
- }),
954
- ...(obj.OutgoingTranslationAttributes && {
955
- OutgoingTranslationAttributes: TranslationIsoFormatsFilterSensitiveLog(obj.OutgoingTranslationAttributes),
956
- }),
957
- ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
958
- ...(obj.IncomingWrappedKey && { IncomingWrappedKey: WrappedKeyFilterSensitiveLog(obj.IncomingWrappedKey) }),
959
- ...(obj.OutgoingWrappedKey && { OutgoingWrappedKey: WrappedKeyFilterSensitiveLog(obj.OutgoingWrappedKey) }),
960
- });
961
- const TranslatePinDataOutputFilterSensitiveLog = (obj) => ({
962
- ...obj,
963
- ...(obj.PinBlock && { PinBlock: smithyClient.SENSITIVE_STRING }),
964
- });
965
- const SessionKeyAmexFilterSensitiveLog = (obj) => ({
966
- ...obj,
967
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
968
- });
969
- const SessionKeyEmv2000FilterSensitiveLog = (obj) => ({
970
- ...obj,
971
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
972
- });
973
- const SessionKeyEmvCommonFilterSensitiveLog = (obj) => ({
974
- ...obj,
975
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
976
- });
977
- const SessionKeyMastercardFilterSensitiveLog = (obj) => ({
978
- ...obj,
979
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
980
- });
981
- const SessionKeyVisaFilterSensitiveLog = (obj) => ({
982
- ...obj,
983
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
984
- });
985
- const SessionKeyDerivationFilterSensitiveLog = (obj) => {
986
- if (obj.EmvCommon !== undefined)
987
- return { EmvCommon: SessionKeyEmvCommonFilterSensitiveLog(obj.EmvCommon) };
988
- if (obj.Mastercard !== undefined)
989
- return { Mastercard: SessionKeyMastercardFilterSensitiveLog(obj.Mastercard) };
990
- if (obj.Emv2000 !== undefined)
991
- return { Emv2000: SessionKeyEmv2000FilterSensitiveLog(obj.Emv2000) };
992
- if (obj.Amex !== undefined)
993
- return { Amex: SessionKeyAmexFilterSensitiveLog(obj.Amex) };
994
- if (obj.Visa !== undefined)
995
- return { Visa: SessionKeyVisaFilterSensitiveLog(obj.Visa) };
996
- if (obj.$unknown !== undefined)
997
- return { [obj.$unknown[0]]: "UNKNOWN" };
998
- };
999
- const VerifyAuthRequestCryptogramInputFilterSensitiveLog = (obj) => ({
1000
- ...obj,
1001
- ...(obj.TransactionData && { TransactionData: smithyClient.SENSITIVE_STRING }),
1002
- ...(obj.AuthRequestCryptogram && { AuthRequestCryptogram: smithyClient.SENSITIVE_STRING }),
1003
- ...(obj.SessionKeyDerivationAttributes && {
1004
- SessionKeyDerivationAttributes: SessionKeyDerivationFilterSensitiveLog(obj.SessionKeyDerivationAttributes),
1005
- }),
1006
- ...(obj.AuthResponseAttributes && {
1007
- AuthResponseAttributes: CryptogramAuthResponseFilterSensitiveLog(obj.AuthResponseAttributes),
1008
- }),
1009
- });
1010
- const VerifyAuthRequestCryptogramOutputFilterSensitiveLog = (obj) => ({
1011
- ...obj,
1012
- ...(obj.AuthResponseValue && { AuthResponseValue: smithyClient.SENSITIVE_STRING }),
1013
- });
1014
- const VerifyCardValidationDataInputFilterSensitiveLog = (obj) => ({
1015
- ...obj,
1016
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
1017
- ...(obj.VerificationAttributes && {
1018
- VerificationAttributes: CardVerificationAttributesFilterSensitiveLog(obj.VerificationAttributes),
1019
- }),
1020
- ...(obj.ValidationData && { ValidationData: smithyClient.SENSITIVE_STRING }),
1021
- });
1022
- const VerifyMacInputFilterSensitiveLog = (obj) => ({
1023
- ...obj,
1024
- ...(obj.MessageData && { MessageData: smithyClient.SENSITIVE_STRING }),
1025
- ...(obj.Mac && { Mac: smithyClient.SENSITIVE_STRING }),
1026
- ...(obj.VerificationAttributes && {
1027
- VerificationAttributes: MacAttributesFilterSensitiveLog(obj.VerificationAttributes),
1028
- }),
1029
- });
1030
- const VisaPinVerificationFilterSensitiveLog = (obj) => ({
1031
- ...obj,
1032
- ...(obj.VerificationValue && { VerificationValue: smithyClient.SENSITIVE_STRING }),
1033
- });
1034
- const PinVerificationAttributesFilterSensitiveLog = (obj) => {
1035
- if (obj.VisaPin !== undefined)
1036
- return { VisaPin: VisaPinVerificationFilterSensitiveLog(obj.VisaPin) };
1037
- if (obj.Ibm3624Pin !== undefined)
1038
- return { Ibm3624Pin: Ibm3624PinVerificationFilterSensitiveLog(obj.Ibm3624Pin) };
1039
- if (obj.$unknown !== undefined)
1040
- return { [obj.$unknown[0]]: "UNKNOWN" };
1041
- };
1042
- const VerifyPinDataInputFilterSensitiveLog = (obj) => ({
1043
- ...obj,
1044
- ...(obj.VerificationAttributes && {
1045
- VerificationAttributes: PinVerificationAttributesFilterSensitiveLog(obj.VerificationAttributes),
1046
- }),
1047
- ...(obj.EncryptedPinBlock && { EncryptedPinBlock: smithyClient.SENSITIVE_STRING }),
1048
- ...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: smithyClient.SENSITIVE_STRING }),
1049
- ...(obj.EncryptionWrappedKey && { EncryptionWrappedKey: WrappedKeyFilterSensitiveLog(obj.EncryptionWrappedKey) }),
1050
- });
1051
323
 
1052
- const se_DecryptDataCommand = async (input, context) => {
1053
- const b = core.requestBuilder(input, context);
1054
- const headers = {
1055
- "content-type": "application/json",
1056
- };
1057
- b.bp("/keys/{KeyIdentifier}/decrypt");
1058
- b.p("KeyIdentifier", () => input.KeyIdentifier, "{KeyIdentifier}", false);
1059
- let body;
1060
- body = JSON.stringify(smithyClient.take(input, {
1061
- CipherText: [],
1062
- DecryptionAttributes: (_) => smithyClient._json(_),
1063
- WrappedKey: (_) => smithyClient._json(_),
1064
- }));
1065
- b.m("POST").h(headers).b(body);
1066
- return b.build();
1067
- };
1068
- const se_EncryptDataCommand = async (input, context) => {
1069
- const b = core.requestBuilder(input, context);
1070
- const headers = {
1071
- "content-type": "application/json",
1072
- };
1073
- b.bp("/keys/{KeyIdentifier}/encrypt");
1074
- b.p("KeyIdentifier", () => input.KeyIdentifier, "{KeyIdentifier}", false);
1075
- let body;
1076
- body = JSON.stringify(smithyClient.take(input, {
1077
- EncryptionAttributes: (_) => smithyClient._json(_),
1078
- PlainText: [],
1079
- WrappedKey: (_) => smithyClient._json(_),
1080
- }));
1081
- b.m("POST").h(headers).b(body);
1082
- return b.build();
1083
- };
1084
- const se_GenerateCardValidationDataCommand = async (input, context) => {
1085
- const b = core.requestBuilder(input, context);
1086
- const headers = {
1087
- "content-type": "application/json",
1088
- };
1089
- b.bp("/cardvalidationdata/generate");
1090
- let body;
1091
- body = JSON.stringify(smithyClient.take(input, {
1092
- GenerationAttributes: (_) => smithyClient._json(_),
1093
- KeyIdentifier: [],
1094
- PrimaryAccountNumber: [],
1095
- ValidationDataLength: [],
1096
- }));
1097
- b.m("POST").h(headers).b(body);
1098
- return b.build();
1099
- };
1100
- const se_GenerateMacCommand = async (input, context) => {
1101
- const b = core.requestBuilder(input, context);
1102
- const headers = {
1103
- "content-type": "application/json",
1104
- };
1105
- b.bp("/mac/generate");
1106
- let body;
1107
- body = JSON.stringify(smithyClient.take(input, {
1108
- GenerationAttributes: (_) => smithyClient._json(_),
1109
- KeyIdentifier: [],
1110
- MacLength: [],
1111
- MessageData: [],
1112
- }));
1113
- b.m("POST").h(headers).b(body);
1114
- return b.build();
1115
- };
1116
- const se_GenerateMacEmvPinChangeCommand = async (input, context) => {
1117
- const b = core.requestBuilder(input, context);
1118
- const headers = {
1119
- "content-type": "application/json",
1120
- };
1121
- b.bp("/macemvpinchange/generate");
1122
- let body;
1123
- body = JSON.stringify(smithyClient.take(input, {
1124
- DerivationMethodAttributes: (_) => smithyClient._json(_),
1125
- MessageData: [],
1126
- NewEncryptedPinBlock: [],
1127
- NewPinPekIdentifier: [],
1128
- PinBlockFormat: [],
1129
- SecureMessagingConfidentialityKeyIdentifier: [],
1130
- SecureMessagingIntegrityKeyIdentifier: [],
1131
- }));
1132
- b.m("POST").h(headers).b(body);
1133
- return b.build();
1134
- };
1135
- const se_GeneratePinDataCommand = async (input, context) => {
1136
- const b = core.requestBuilder(input, context);
1137
- const headers = {
1138
- "content-type": "application/json",
1139
- };
1140
- b.bp("/pindata/generate");
1141
- let body;
1142
- body = JSON.stringify(smithyClient.take(input, {
1143
- EncryptionKeyIdentifier: [],
1144
- EncryptionWrappedKey: (_) => smithyClient._json(_),
1145
- GenerationAttributes: (_) => smithyClient._json(_),
1146
- GenerationKeyIdentifier: [],
1147
- PinBlockFormat: [],
1148
- PinDataLength: [],
1149
- PrimaryAccountNumber: [],
1150
- }));
1151
- b.m("POST").h(headers).b(body);
1152
- return b.build();
1153
- };
1154
- const se_ReEncryptDataCommand = async (input, context) => {
1155
- const b = core.requestBuilder(input, context);
1156
- const headers = {
1157
- "content-type": "application/json",
1158
- };
1159
- b.bp("/keys/{IncomingKeyIdentifier}/reencrypt");
1160
- b.p("IncomingKeyIdentifier", () => input.IncomingKeyIdentifier, "{IncomingKeyIdentifier}", false);
1161
- let body;
1162
- body = JSON.stringify(smithyClient.take(input, {
1163
- CipherText: [],
1164
- IncomingEncryptionAttributes: (_) => smithyClient._json(_),
1165
- IncomingWrappedKey: (_) => smithyClient._json(_),
1166
- OutgoingEncryptionAttributes: (_) => smithyClient._json(_),
1167
- OutgoingKeyIdentifier: [],
1168
- OutgoingWrappedKey: (_) => smithyClient._json(_),
1169
- }));
1170
- b.m("POST").h(headers).b(body);
1171
- return b.build();
1172
- };
1173
- const se_TranslateKeyMaterialCommand = async (input, context) => {
1174
- const b = core.requestBuilder(input, context);
1175
- const headers = {
1176
- "content-type": "application/json",
1177
- };
1178
- b.bp("/keymaterial/translate");
1179
- let body;
1180
- body = JSON.stringify(smithyClient.take(input, {
1181
- IncomingKeyMaterial: (_) => smithyClient._json(_),
1182
- KeyCheckValueAlgorithm: [],
1183
- OutgoingKeyMaterial: (_) => smithyClient._json(_),
1184
- }));
1185
- b.m("POST").h(headers).b(body);
1186
- return b.build();
1187
- };
1188
- const se_TranslatePinDataCommand = async (input, context) => {
1189
- const b = core.requestBuilder(input, context);
1190
- const headers = {
1191
- "content-type": "application/json",
1192
- };
1193
- b.bp("/pindata/translate");
1194
- let body;
1195
- body = JSON.stringify(smithyClient.take(input, {
1196
- EncryptedPinBlock: [],
1197
- IncomingDukptAttributes: (_) => smithyClient._json(_),
1198
- IncomingKeyIdentifier: [],
1199
- IncomingTranslationAttributes: (_) => smithyClient._json(_),
1200
- IncomingWrappedKey: (_) => smithyClient._json(_),
1201
- OutgoingDukptAttributes: (_) => smithyClient._json(_),
1202
- OutgoingKeyIdentifier: [],
1203
- OutgoingTranslationAttributes: (_) => smithyClient._json(_),
1204
- OutgoingWrappedKey: (_) => smithyClient._json(_),
1205
- }));
1206
- b.m("POST").h(headers).b(body);
1207
- return b.build();
1208
- };
1209
- const se_VerifyAuthRequestCryptogramCommand = async (input, context) => {
1210
- const b = core.requestBuilder(input, context);
1211
- const headers = {
1212
- "content-type": "application/json",
1213
- };
1214
- b.bp("/cryptogram/verify");
1215
- let body;
1216
- body = JSON.stringify(smithyClient.take(input, {
1217
- AuthRequestCryptogram: [],
1218
- AuthResponseAttributes: (_) => smithyClient._json(_),
1219
- KeyIdentifier: [],
1220
- MajorKeyDerivationMode: [],
1221
- SessionKeyDerivationAttributes: (_) => smithyClient._json(_),
1222
- TransactionData: [],
1223
- }));
1224
- b.m("POST").h(headers).b(body);
1225
- return b.build();
1226
- };
1227
- const se_VerifyCardValidationDataCommand = async (input, context) => {
1228
- const b = core.requestBuilder(input, context);
1229
- const headers = {
1230
- "content-type": "application/json",
1231
- };
1232
- b.bp("/cardvalidationdata/verify");
1233
- let body;
1234
- body = JSON.stringify(smithyClient.take(input, {
1235
- KeyIdentifier: [],
1236
- PrimaryAccountNumber: [],
1237
- ValidationData: [],
1238
- VerificationAttributes: (_) => smithyClient._json(_),
1239
- }));
1240
- b.m("POST").h(headers).b(body);
1241
- return b.build();
1242
- };
1243
- const se_VerifyMacCommand = async (input, context) => {
1244
- const b = core.requestBuilder(input, context);
1245
- const headers = {
1246
- "content-type": "application/json",
1247
- };
1248
- b.bp("/mac/verify");
1249
- let body;
1250
- body = JSON.stringify(smithyClient.take(input, {
1251
- KeyIdentifier: [],
1252
- Mac: [],
1253
- MacLength: [],
1254
- MessageData: [],
1255
- VerificationAttributes: (_) => smithyClient._json(_),
1256
- }));
1257
- b.m("POST").h(headers).b(body);
1258
- return b.build();
1259
- };
1260
- const se_VerifyPinDataCommand = async (input, context) => {
1261
- const b = core.requestBuilder(input, context);
1262
- const headers = {
1263
- "content-type": "application/json",
1264
- };
1265
- b.bp("/pindata/verify");
1266
- let body;
1267
- body = JSON.stringify(smithyClient.take(input, {
1268
- DukptAttributes: (_) => smithyClient._json(_),
1269
- EncryptedPinBlock: [],
1270
- EncryptionKeyIdentifier: [],
1271
- EncryptionWrappedKey: (_) => smithyClient._json(_),
1272
- PinBlockFormat: [],
1273
- PinDataLength: [],
1274
- PrimaryAccountNumber: [],
1275
- VerificationAttributes: (_) => smithyClient._json(_),
1276
- VerificationKeyIdentifier: [],
1277
- }));
1278
- b.m("POST").h(headers).b(body);
1279
- return b.build();
1280
- };
1281
- const de_DecryptDataCommand = async (output, context) => {
1282
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
- return de_CommandError(output, context);
1284
- }
1285
- const contents = smithyClient.map({
1286
- $metadata: deserializeMetadata(output),
1287
- });
1288
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1289
- const doc = smithyClient.take(data, {
1290
- KeyArn: smithyClient.expectString,
1291
- KeyCheckValue: smithyClient.expectString,
1292
- PlainText: smithyClient.expectString,
1293
- });
1294
- Object.assign(contents, doc);
1295
- return contents;
1296
- };
1297
- const de_EncryptDataCommand = async (output, context) => {
1298
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1299
- return de_CommandError(output, context);
1300
- }
1301
- const contents = smithyClient.map({
1302
- $metadata: deserializeMetadata(output),
1303
- });
1304
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1305
- const doc = smithyClient.take(data, {
1306
- CipherText: smithyClient.expectString,
1307
- KeyArn: smithyClient.expectString,
1308
- KeyCheckValue: smithyClient.expectString,
1309
- });
1310
- Object.assign(contents, doc);
1311
- return contents;
1312
- };
1313
- const de_GenerateCardValidationDataCommand = async (output, context) => {
1314
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1315
- return de_CommandError(output, context);
1316
- }
1317
- const contents = smithyClient.map({
1318
- $metadata: deserializeMetadata(output),
1319
- });
1320
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1321
- const doc = smithyClient.take(data, {
1322
- KeyArn: smithyClient.expectString,
1323
- KeyCheckValue: smithyClient.expectString,
1324
- ValidationData: smithyClient.expectString,
1325
- });
1326
- Object.assign(contents, doc);
1327
- return contents;
1328
- };
1329
- const de_GenerateMacCommand = async (output, context) => {
1330
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1331
- return de_CommandError(output, context);
1332
- }
1333
- const contents = smithyClient.map({
1334
- $metadata: deserializeMetadata(output),
1335
- });
1336
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1337
- const doc = smithyClient.take(data, {
1338
- KeyArn: smithyClient.expectString,
1339
- KeyCheckValue: smithyClient.expectString,
1340
- Mac: smithyClient.expectString,
1341
- });
1342
- Object.assign(contents, doc);
1343
- return contents;
1344
- };
1345
- const de_GenerateMacEmvPinChangeCommand = async (output, context) => {
1346
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1347
- return de_CommandError(output, context);
1348
- }
1349
- const contents = smithyClient.map({
1350
- $metadata: deserializeMetadata(output),
1351
- });
1352
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1353
- const doc = smithyClient.take(data, {
1354
- EncryptedPinBlock: smithyClient.expectString,
1355
- Mac: smithyClient.expectString,
1356
- NewPinPekArn: smithyClient.expectString,
1357
- NewPinPekKeyCheckValue: smithyClient.expectString,
1358
- SecureMessagingConfidentialityKeyArn: smithyClient.expectString,
1359
- SecureMessagingConfidentialityKeyCheckValue: smithyClient.expectString,
1360
- SecureMessagingIntegrityKeyArn: smithyClient.expectString,
1361
- SecureMessagingIntegrityKeyCheckValue: smithyClient.expectString,
1362
- VisaAmexDerivationOutputs: smithyClient._json,
1363
- });
1364
- Object.assign(contents, doc);
1365
- return contents;
1366
- };
1367
- const de_GeneratePinDataCommand = async (output, context) => {
1368
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1369
- return de_CommandError(output, context);
1370
- }
1371
- const contents = smithyClient.map({
1372
- $metadata: deserializeMetadata(output),
1373
- });
1374
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1375
- const doc = smithyClient.take(data, {
1376
- EncryptedPinBlock: smithyClient.expectString,
1377
- EncryptionKeyArn: smithyClient.expectString,
1378
- EncryptionKeyCheckValue: smithyClient.expectString,
1379
- GenerationKeyArn: smithyClient.expectString,
1380
- GenerationKeyCheckValue: smithyClient.expectString,
1381
- PinData: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1382
- });
1383
- Object.assign(contents, doc);
1384
- return contents;
1385
- };
1386
- const de_ReEncryptDataCommand = async (output, context) => {
1387
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
- return de_CommandError(output, context);
1389
- }
1390
- const contents = smithyClient.map({
1391
- $metadata: deserializeMetadata(output),
1392
- });
1393
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1394
- const doc = smithyClient.take(data, {
1395
- CipherText: smithyClient.expectString,
1396
- KeyArn: smithyClient.expectString,
1397
- KeyCheckValue: smithyClient.expectString,
1398
- });
1399
- Object.assign(contents, doc);
1400
- return contents;
1401
- };
1402
- const de_TranslateKeyMaterialCommand = async (output, context) => {
1403
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1404
- return de_CommandError(output, context);
1405
- }
1406
- const contents = smithyClient.map({
1407
- $metadata: deserializeMetadata(output),
1408
- });
1409
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1410
- const doc = smithyClient.take(data, {
1411
- WrappedKey: smithyClient._json,
1412
- });
1413
- Object.assign(contents, doc);
1414
- return contents;
1415
- };
1416
- const de_TranslatePinDataCommand = async (output, context) => {
1417
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1418
- return de_CommandError(output, context);
1419
- }
1420
- const contents = smithyClient.map({
1421
- $metadata: deserializeMetadata(output),
1422
- });
1423
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1424
- const doc = smithyClient.take(data, {
1425
- KeyArn: smithyClient.expectString,
1426
- KeyCheckValue: smithyClient.expectString,
1427
- PinBlock: smithyClient.expectString,
1428
- });
1429
- Object.assign(contents, doc);
1430
- return contents;
1431
- };
1432
- const de_VerifyAuthRequestCryptogramCommand = async (output, context) => {
1433
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1434
- return de_CommandError(output, context);
1435
- }
1436
- const contents = smithyClient.map({
1437
- $metadata: deserializeMetadata(output),
1438
- });
1439
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1440
- const doc = smithyClient.take(data, {
1441
- AuthResponseValue: smithyClient.expectString,
1442
- KeyArn: smithyClient.expectString,
1443
- KeyCheckValue: smithyClient.expectString,
1444
- });
1445
- Object.assign(contents, doc);
1446
- return contents;
1447
- };
1448
- const de_VerifyCardValidationDataCommand = async (output, context) => {
1449
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1450
- return de_CommandError(output, context);
1451
- }
1452
- const contents = smithyClient.map({
1453
- $metadata: deserializeMetadata(output),
1454
- });
1455
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1456
- const doc = smithyClient.take(data, {
1457
- KeyArn: smithyClient.expectString,
1458
- KeyCheckValue: smithyClient.expectString,
1459
- });
1460
- Object.assign(contents, doc);
1461
- return contents;
1462
- };
1463
- const de_VerifyMacCommand = async (output, context) => {
1464
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1465
- return de_CommandError(output, context);
1466
- }
1467
- const contents = smithyClient.map({
1468
- $metadata: deserializeMetadata(output),
1469
- });
1470
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1471
- const doc = smithyClient.take(data, {
1472
- KeyArn: smithyClient.expectString,
1473
- KeyCheckValue: smithyClient.expectString,
1474
- });
1475
- Object.assign(contents, doc);
1476
- return contents;
1477
- };
1478
- const de_VerifyPinDataCommand = async (output, context) => {
1479
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1480
- return de_CommandError(output, context);
1481
- }
1482
- const contents = smithyClient.map({
1483
- $metadata: deserializeMetadata(output),
1484
- });
1485
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1486
- const doc = smithyClient.take(data, {
1487
- EncryptionKeyArn: smithyClient.expectString,
1488
- EncryptionKeyCheckValue: smithyClient.expectString,
1489
- VerificationKeyArn: smithyClient.expectString,
1490
- VerificationKeyCheckValue: smithyClient.expectString,
1491
- });
1492
- Object.assign(contents, doc);
1493
- return contents;
1494
- };
1495
- const de_CommandError = async (output, context) => {
1496
- const parsedOutput = {
1497
- ...output,
1498
- body: await core$1.parseJsonErrorBody(output.body, context),
1499
- };
1500
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1501
- switch (errorCode) {
1502
- case "AccessDeniedException":
1503
- case "com.amazonaws.paymentcryptographydata#AccessDeniedException":
1504
- throw await de_AccessDeniedExceptionRes(parsedOutput);
1505
- case "InternalServerException":
1506
- case "com.amazonaws.paymentcryptographydata#InternalServerException":
1507
- throw await de_InternalServerExceptionRes(parsedOutput);
1508
- case "ResourceNotFoundException":
1509
- case "com.amazonaws.paymentcryptographydata#ResourceNotFoundException":
1510
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1511
- case "ThrottlingException":
1512
- case "com.amazonaws.paymentcryptographydata#ThrottlingException":
1513
- throw await de_ThrottlingExceptionRes(parsedOutput);
1514
- case "ValidationException":
1515
- case "com.amazonaws.paymentcryptographydata#ValidationException":
1516
- throw await de_ValidationExceptionRes(parsedOutput);
1517
- case "VerificationFailedException":
1518
- case "com.amazonaws.paymentcryptographydata#VerificationFailedException":
1519
- throw await de_VerificationFailedExceptionRes(parsedOutput);
1520
- default:
1521
- const parsedBody = parsedOutput.body;
1522
- return throwDefaultError({
1523
- output,
1524
- parsedBody,
1525
- errorCode,
1526
- });
1527
- }
1528
- };
1529
- const throwDefaultError = smithyClient.withBaseException(PaymentCryptographyDataServiceException);
1530
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1531
- const contents = smithyClient.map({});
1532
- const data = parsedOutput.body;
1533
- const doc = smithyClient.take(data, {
1534
- Message: smithyClient.expectString,
1535
- });
1536
- Object.assign(contents, doc);
1537
- const exception = new AccessDeniedException({
1538
- $metadata: deserializeMetadata(parsedOutput),
1539
- ...contents,
1540
- });
1541
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1542
- };
1543
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1544
- const contents = smithyClient.map({});
1545
- const data = parsedOutput.body;
1546
- const doc = smithyClient.take(data, {
1547
- Message: smithyClient.expectString,
1548
- });
1549
- Object.assign(contents, doc);
1550
- const exception = new InternalServerException({
1551
- $metadata: deserializeMetadata(parsedOutput),
1552
- ...contents,
1553
- });
1554
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1555
- };
1556
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1557
- const contents = smithyClient.map({});
1558
- const data = parsedOutput.body;
1559
- const doc = smithyClient.take(data, {
1560
- ResourceId: smithyClient.expectString,
1561
- });
1562
- Object.assign(contents, doc);
1563
- const exception = new ResourceNotFoundException({
1564
- $metadata: deserializeMetadata(parsedOutput),
1565
- ...contents,
1566
- });
1567
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1568
- };
1569
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1570
- const contents = smithyClient.map({});
1571
- const data = parsedOutput.body;
1572
- const doc = smithyClient.take(data, {
1573
- Message: smithyClient.expectString,
1574
- });
1575
- Object.assign(contents, doc);
1576
- const exception = new ThrottlingException({
1577
- $metadata: deserializeMetadata(parsedOutput),
1578
- ...contents,
1579
- });
1580
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1581
- };
1582
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1583
- const contents = smithyClient.map({});
1584
- const data = parsedOutput.body;
1585
- const doc = smithyClient.take(data, {
1586
- fieldList: smithyClient._json,
1587
- message: smithyClient.expectString,
1588
- });
1589
- Object.assign(contents, doc);
1590
- const exception = new ValidationException({
1591
- $metadata: deserializeMetadata(parsedOutput),
1592
- ...contents,
1593
- });
1594
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1595
- };
1596
- const de_VerificationFailedExceptionRes = async (parsedOutput, context) => {
1597
- const contents = smithyClient.map({});
1598
- const data = parsedOutput.body;
1599
- const doc = smithyClient.take(data, {
1600
- Message: smithyClient.expectString,
1601
- Reason: smithyClient.expectString,
1602
- });
1603
- Object.assign(contents, doc);
1604
- const exception = new VerificationFailedException({
1605
- $metadata: deserializeMetadata(parsedOutput),
1606
- ...contents,
1607
- });
1608
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1609
- };
1610
- const deserializeMetadata = (output) => ({
1611
- httpStatusCode: output.statusCode,
1612
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1613
- extendedRequestId: output.headers["x-amz-id-2"],
1614
- cfId: output.headers["x-amz-cf-id"],
1615
- });
324
+ const _A = "Amex";
325
+ const _AA = "AmexAttributes";
326
+ const _AC = "ApplicationCryptogram";
327
+ const _ACSCV = "AmexCardSecurityCodeVersion1";
328
+ const _ACSCVm = "AmexCardSecurityCodeVersion2";
329
+ const _ACT = "ApplicationCryptogramType";
330
+ const _ADE = "AccessDeniedException";
331
+ const _AEA = "AsymmetricEncryptionAttributes";
332
+ const _AM = "ArpcMethod1";
333
+ const _AMr = "ArpcMethod2";
334
+ const _ARA = "AuthResponseAttributes";
335
+ const _ARC = "AuthResponseCode";
336
+ const _ARCT = "AuthRequestCryptogramType";
337
+ const _ARCu = "AuthRequestCryptogram";
338
+ const _ARKA = "AuthorizationRequestKeyArn";
339
+ const _ARKCV = "AuthorizationRequestKeyCheckValue";
340
+ const _ARKI = "AuthorizationRequestKeyIdentifier";
341
+ const _ARV = "AuthResponseValue";
342
+ const _ARVT = "AuthResponseValueType";
343
+ const _ATC = "ApplicationTransactionCounter";
344
+ const _Al = "Algorithm";
345
+ const _As = "Asymmetric";
346
+ const _CAPKI = "CertificateAuthorityPublicKeyIdentifier";
347
+ const _CAR = "CryptogramAuthResponse";
348
+ const _CED = "CardExpiryDate";
349
+ const _CEDT = "CardExpiryDateType";
350
+ const _CEPB = "CurrentEncryptedPinBlock";
351
+ const _CGA = "CardGenerationAttributes";
352
+ const _CHVV = "CardHolderVerificationValue";
353
+ const _CMDT = "CommandMessageDataType";
354
+ const _CPA = "CurrentPinAttributes";
355
+ const _CPPA = "CurrentPinPekArn";
356
+ const _CPPI = "CurrentPinPekIdentifier";
357
+ const _CPPKCV = "CurrentPinPekKeyCheckValue";
358
+ const _CSU = "CardStatusUpdate";
359
+ const _CT = "CipherText";
360
+ const _CTT = "CipherTextType";
361
+ const _CVA = "CardVerificationAttributes";
362
+ const _CVAM = "CryptogramVerificationArpcMethod1";
363
+ const _CVAMr = "CryptogramVerificationArpcMethod2";
364
+ const _CVV = "CardVerificationValue1";
365
+ const _CVVa = "CardVerificationValue2";
366
+ const _D = "Dukpt";
367
+ const _DA = "DecryptionAttributes";
368
+ const _DAu = "DukptAttributes";
369
+ const _DC = "DukptCmac";
370
+ const _DCVC = "DynamicCardVerificationCode";
371
+ const _DCVV = "DynamicCardVerificationValue";
372
+ const _DD = "DerivationData";
373
+ const _DDA = "DukptDerivationAttributes";
374
+ const _DDCVC = "DiscoverDynamicCardVerificationCode";
375
+ const _DDI = "DecryptDataInput";
376
+ const _DDO = "DecryptDataOutput";
377
+ const _DDT = "DukptDerivationType";
378
+ const _DDe = "DecryptData";
379
+ const _DEA = "DukptEncryptionAttributes";
380
+ const _DHDD = "DiffieHellmanDerivationData";
381
+ const _DHSK = "DiffieHellmanSymmetricKey";
382
+ const _DHTKB = "DiffieHellmanTr31KeyBlock";
383
+ const _DIA = "DukptIso9797Algorithm1";
384
+ const _DIAu = "DukptIso9797Algorithm3";
385
+ const _DKA = "DeriveKeyAlgorithm";
386
+ const _DKDT = "DukptKeyDerivationType";
387
+ const _DKV = "DukptKeyVariant";
388
+ const _DMA = "DerivationMethodAttributes";
389
+ const _DT = "DecimalizationTable";
390
+ const _DTT = "DecimalizationTableType";
391
+ const _E = "Emv2000";
392
+ const _EA = "Emv2000Attributes";
393
+ const _EAn = "EncryptionAttributes";
394
+ const _EC = "EmvCommon";
395
+ const _ECA = "EmvCommonAttributes";
396
+ const _ED = "EncryptData";
397
+ const _EDA = "EcdhDerivationAttributes";
398
+ const _EDAn = "EncryptionDecryptionAttributes";
399
+ const _EDI = "EncryptDataInput";
400
+ const _EDO = "EncryptDataOutput";
401
+ const _EEA = "EmvEncryptionAttributes";
402
+ const _EKA = "EncryptionKeyArn";
403
+ const _EKCV = "EncryptionKeyCheckValue";
404
+ const _EKI = "EncryptionKeyIdentifier";
405
+ const _EM = "EmvMac";
406
+ const _EPB = "EncryptedPinBlock";
407
+ const _EPBT = "EncryptedPinBlockType";
408
+ const _EWK = "EncryptionWrappedKey";
409
+ const _Em = "Emv";
410
+ const _GA = "GenerationAttributes";
411
+ const _GCVD = "GenerateCardValidationData";
412
+ const _GCVDI = "GenerateCardValidationDataInput";
413
+ const _GCVDO = "GenerateCardValidationDataOutput";
414
+ const _GKA = "GenerationKeyArn";
415
+ const _GKCV = "GenerationKeyCheckValue";
416
+ const _GKI = "GenerationKeyIdentifier";
417
+ const _GM = "GenerateMac";
418
+ const _GMEPC = "GenerateMacEmvPinChange";
419
+ const _GMEPCI = "GenerateMacEmvPinChangeInput";
420
+ const _GMEPCO = "GenerateMacEmvPinChangeOutput";
421
+ const _GMI = "GenerateMacInput";
422
+ const _GMO = "GenerateMacOutput";
423
+ const _GPD = "GeneratePinData";
424
+ const _GPDI = "GeneratePinDataInput";
425
+ const _GPDO = "GeneratePinDataOutput";
426
+ const _HELBA = "HexEvenLengthBetween16And32";
427
+ const _IDA = "IncomingDukptAttributes";
428
+ const _IDHTKB = "IncomingDiffieHellmanTr31KeyBlock";
429
+ const _IEA = "IncomingEncryptionAttributes";
430
+ const _IF = "IsoFormat0";
431
+ const _IFs = "IsoFormat1";
432
+ const _IFso = "IsoFormat3";
433
+ const _IFsoo = "IsoFormat4";
434
+ const _IKI = "IncomingKeyIdentifier";
435
+ const _IKM = "IncomingKeyMaterial";
436
+ const _INP = "Ibm3624NaturalPin";
437
+ const _IP = "Ibm3624Pin";
438
+ const _IPFO = "Ibm3624PinFromOffset";
439
+ const _IPO = "Ibm3624PinOffset";
440
+ const _IPV = "Ibm3624PinVerification";
441
+ const _IRP = "Ibm3624RandomPin";
442
+ const _ISE = "InternalServerException";
443
+ const _ITA = "IncomingTranslationAttributes";
444
+ const _IV = "InitializationVector";
445
+ const _IVT = "InitializationVectorType";
446
+ const _IWK = "IncomingWrappedKey";
447
+ const _KA = "KeyArn";
448
+ const _KAe = "KeyAlgorithm";
449
+ const _KCV = "KeyCheckValue";
450
+ const _KCVA = "KeyCheckValueAlgorithm";
451
+ const _KDF = "KeyDerivationFunction";
452
+ const _KDHA = "KeyDerivationHashAlgorithm";
453
+ const _KI = "KeyIdentifier";
454
+ const _KM = "KeyMaterial";
455
+ const _KSN = "KeySerialNumber";
456
+ const _M = "Message";
457
+ const _MA = "MacAttributes";
458
+ const _MAD = "MacAlgorithmDukpt";
459
+ const _MAE = "MacAlgorithmEmv";
460
+ const _MCA = "MasterCardAttributes";
461
+ const _MD = "MessageData";
462
+ const _MDT = "MessageDataType";
463
+ const _MKDM = "MajorKeyDerivationMode";
464
+ const _ML = "MacLength";
465
+ const _MOT = "MacOutputType";
466
+ const _MT = "MacType";
467
+ const _Ma = "Mac";
468
+ const _Mas = "Mastercard";
469
+ const _Mo = "Mode";
470
+ const _NEPB = "NewEncryptedPinBlock";
471
+ const _NPPA = "NewPinPekArn";
472
+ const _NPPI = "NewPinPekIdentifier";
473
+ const _NPPKCV = "NewPinPekKeyCheckValue";
474
+ const _ODA = "OutgoingDukptAttributes";
475
+ const _OEA = "OutgoingEncryptionAttributes";
476
+ const _OKI = "OutgoingKeyIdentifier";
477
+ const _OKM = "OutgoingKeyMaterial";
478
+ const _OTA = "OutgoingTranslationAttributes";
479
+ const _OTKB = "OutgoingTr31KeyBlock";
480
+ const _OWK = "OutgoingWrappedKey";
481
+ const _PAD = "ProprietaryAuthenticationData";
482
+ const _PADT = "ProprietaryAuthenticationDataType";
483
+ const _PAN = "PrimaryAccountNumber";
484
+ const _PANT = "PrimaryAccountNumberType";
485
+ const _PB = "PinBlock";
486
+ const _PBF = "PinBlockFormat";
487
+ const _PBLE = "PinBlockLengthEquals16";
488
+ const _PBLP = "PinBlockLengthPosition";
489
+ const _PBPT = "PinBlockPaddingType";
490
+ const _PCMOT = "PinChangeMacOutputType";
491
+ const _PD = "PinData";
492
+ const _PDL = "PinDataLength";
493
+ const _PGA = "PinGenerationAttributes";
494
+ const _PKC = "PublicKeyCertificate";
495
+ const _PKI = "PrivateKeyIdentifier";
496
+ const _PO = "PinOffset";
497
+ const _POT = "PinOffsetType";
498
+ const _PSN = "PanSequenceNumber";
499
+ const _PT = "PaddingType";
500
+ const _PTOT = "PlainTextOutputType";
501
+ const _PTT = "PlainTextType";
502
+ const _PTl = "PlainText";
503
+ const _PVA = "PinVerificationAttributes";
504
+ const _PVD = "PinValidationData";
505
+ const _PVDPC = "PinValidationDataPadCharacter";
506
+ const _PVDT = "PinValidationDataType";
507
+ const _PVKI = "PinVerificationKeyIndex";
508
+ const _R = "Reason";
509
+ const _REA = "ReEncryptionAttributes";
510
+ const _RED = "ReEncryptData";
511
+ const _REDI = "ReEncryptDataInput";
512
+ const _REDO = "ReEncryptDataOutput";
513
+ const _RI = "ResourceId";
514
+ const _RNFE = "ResourceNotFoundException";
515
+ const _S = "Symmetric";
516
+ const _SC = "ServiceCode";
517
+ const _SCT = "ServiceCodeType";
518
+ const _SDD = "SessionDerivationData";
519
+ const _SDDT = "SessionDerivationDataType";
520
+ const _SEA = "SymmetricEncryptionAttributes";
521
+ const _SI = "SharedInformation";
522
+ const _SKA = "SessionKeyAmex";
523
+ const _SKD = "SessionKeyDerivation";
524
+ const _SKDA = "SessionKeyDerivationAttributes";
525
+ const _SKDM = "SessionKeyDerivationMode";
526
+ const _SKDV = "SessionKeyDerivationValue";
527
+ const _SKE = "SessionKeyEmv2000";
528
+ const _SKEC = "SessionKeyEmvCommon";
529
+ const _SKM = "SessionKeyMastercard";
530
+ const _SKV = "SessionKeyVisa";
531
+ const _SMCKA = "SecureMessagingConfidentialityKeyArn";
532
+ const _SMCKCV = "SecureMessagingConfidentialityKeyCheckValue";
533
+ const _SMCKI = "SecureMessagingConfidentialityKeyIdentifier";
534
+ const _SMIKA = "SecureMessagingIntegrityKeyArn";
535
+ const _SMIKCV = "SecureMessagingIntegrityKeyCheckValue";
536
+ const _SMIKI = "SecureMessagingIntegrityKeyIdentifier";
537
+ const _TD = "TrackData";
538
+ const _TDT = "TrackDataType";
539
+ const _TDTr = "TransactionDataType";
540
+ const _TDr = "TransactionData";
541
+ const _TE = "ThrottlingException";
542
+ const _TIF = "TranslationIsoFormats";
543
+ const _TKB = "Tr31KeyBlock";
544
+ const _TKM = "TranslateKeyMaterial";
545
+ const _TKMI = "TranslateKeyMaterialInput";
546
+ const _TKMO = "TranslateKeyMaterialOutput";
547
+ const _TPD = "TranslatePinData";
548
+ const _TPDI = "TranslatePinDataInput";
549
+ const _TPDIF = "TranslationPinDataIsoFormat034";
550
+ const _TPDIFr = "TranslationPinDataIsoFormat1";
551
+ const _TPDO = "TranslatePinDataOutput";
552
+ const _TWKB = "Tr31WrappedKeyBlock";
553
+ const _UN = "UnpredictableNumber";
554
+ const _V = "Visa";
555
+ const _VA = "VerificationAttributes";
556
+ const _VADO = "VisaAmexDerivationOutputs";
557
+ const _VARC = "VerifyAuthRequestCryptogram";
558
+ const _VARCI = "VerifyAuthRequestCryptogramInput";
559
+ const _VARCO = "VerifyAuthRequestCryptogramOutput";
560
+ const _VAi = "VisaAttributes";
561
+ const _VCVD = "VerifyCardValidationData";
562
+ const _VCVDI = "VerifyCardValidationDataInput";
563
+ const _VCVDO = "VerifyCardValidationDataOutput";
564
+ const _VD = "ValidationData";
565
+ const _VDL = "ValidationDataLength";
566
+ const _VDT = "ValidationDataType";
567
+ const _VE = "ValidationException";
568
+ const _VEF = "ValidationExceptionField";
569
+ const _VEFL = "ValidationExceptionFieldList";
570
+ const _VFE = "VerificationFailedException";
571
+ const _VKA = "VerificationKeyArn";
572
+ const _VKCV = "VerificationKeyCheckValue";
573
+ const _VKI = "VerificationKeyIdentifier";
574
+ const _VM = "VerifyMac";
575
+ const _VMI = "VerifyMacInput";
576
+ const _VMO = "VerifyMacOutput";
577
+ const _VP = "VisaPin";
578
+ const _VPD = "VerifyPinData";
579
+ const _VPDI = "VerifyPinDataInput";
580
+ const _VPDO = "VerifyPinDataOutput";
581
+ const _VPV = "VisaPinVerification";
582
+ const _VPVV = "VisaPinVerificationValue";
583
+ const _VV = "VerificationValue";
584
+ const _VVT = "VerificationValueType";
585
+ const _WK = "WrappedKey";
586
+ const _WKB = "WrappedKeyBlock";
587
+ const _WKI = "WrappingKeyIdentifier";
588
+ const _WKM = "WrappedKeyMaterial";
589
+ const _WKMF = "WrappedKeyMaterialFormat";
590
+ const _WWK = "WrappedWorkingKey";
591
+ const _c = "client";
592
+ const _e = "error";
593
+ const _fL = "fieldList";
594
+ const _h = "http";
595
+ const _hE = "httpError";
596
+ const _m = "message";
597
+ const _p = "path";
598
+ const _s = "server";
599
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptographydata";
600
+ const n0 = "com.amazonaws.paymentcryptographydata";
601
+ var ApplicationCryptogramType = [0, n0, _ACT, 8, 0];
602
+ var AuthRequestCryptogramType = [0, n0, _ARCT, 8, 0];
603
+ var AuthResponseValueType = [0, n0, _ARVT, 8, 0];
604
+ var CardExpiryDateType = [0, n0, _CEDT, 8, 0];
605
+ var CipherTextType = [0, n0, _CTT, 8, 0];
606
+ var CommandMessageDataType = [0, n0, _CMDT, 8, 0];
607
+ var DecimalizationTableType = [0, n0, _DTT, 8, 0];
608
+ var EncryptedPinBlockType = [0, n0, _EPBT, 8, 0];
609
+ var HexEvenLengthBetween16And32 = [0, n0, _HELBA, 8, 0];
610
+ var InitializationVectorType = [0, n0, _IVT, 8, 0];
611
+ var KeyMaterial = [0, n0, _KM, 8, 0];
612
+ var MacOutputType = [0, n0, _MOT, 8, 0];
613
+ var MacType = [0, n0, _MT, 8, 0];
614
+ var MessageDataType = [0, n0, _MDT, 8, 0];
615
+ var PinBlockLengthEquals16 = [0, n0, _PBLE, 8, 0];
616
+ var PinChangeMacOutputType = [0, n0, _PCMOT, 8, 0];
617
+ var PinOffsetType = [0, n0, _POT, 8, 0];
618
+ var PinValidationDataType = [0, n0, _PVDT, 8, 0];
619
+ var PlainTextOutputType = [0, n0, _PTOT, 8, 0];
620
+ var PlainTextType = [0, n0, _PTT, 8, 0];
621
+ var PrimaryAccountNumberType = [0, n0, _PANT, 8, 0];
622
+ var ProprietaryAuthenticationDataType = [0, n0, _PADT, 8, 0];
623
+ var ServiceCodeType = [0, n0, _SCT, 8, 0];
624
+ var SessionDerivationDataType = [0, n0, _SDDT, 8, 0];
625
+ var Tr31WrappedKeyBlock = [0, n0, _TWKB, 8, 0];
626
+ var TrackDataType = [0, n0, _TDT, 8, 0];
627
+ var TransactionDataType = [0, n0, _TDTr, 8, 0];
628
+ var ValidationDataType = [0, n0, _VDT, 8, 0];
629
+ var VerificationValueType = [0, n0, _VVT, 8, 0];
630
+ var AccessDeniedException = [
631
+ -3,
632
+ n0,
633
+ _ADE,
634
+ {
635
+ [_e]: _c,
636
+ [_hE]: 403,
637
+ },
638
+ [_M],
639
+ [0],
640
+ ];
641
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
642
+ var AmexAttributes = [
643
+ 3,
644
+ n0,
645
+ _AA,
646
+ 0,
647
+ [_MKDM, _PAN, _PSN, _ATC, _ARKI, _CPA],
648
+ [0, [() => PrimaryAccountNumberType, 0], 0, 0, 0, [() => CurrentPinAttributes, 0]],
649
+ ];
650
+ var AmexCardSecurityCodeVersion1 = [
651
+ 3,
652
+ n0,
653
+ _ACSCV,
654
+ 0,
655
+ [_CED],
656
+ [[() => CardExpiryDateType, 0]],
657
+ ];
658
+ var AmexCardSecurityCodeVersion2 = [
659
+ 3,
660
+ n0,
661
+ _ACSCVm,
662
+ 0,
663
+ [_CED, _SC],
664
+ [
665
+ [() => CardExpiryDateType, 0],
666
+ [() => ServiceCodeType, 0],
667
+ ],
668
+ ];
669
+ var AsymmetricEncryptionAttributes = [3, n0, _AEA, 0, [_PT], [0]];
670
+ var CardHolderVerificationValue = [3, n0, _CHVV, 0, [_UN, _PSN, _ATC], [0, 0, 0]];
671
+ var CardVerificationValue1 = [
672
+ 3,
673
+ n0,
674
+ _CVV,
675
+ 0,
676
+ [_CED, _SC],
677
+ [
678
+ [() => CardExpiryDateType, 0],
679
+ [() => ServiceCodeType, 0],
680
+ ],
681
+ ];
682
+ var CardVerificationValue2 = [3, n0, _CVVa, 0, [_CED], [[() => CardExpiryDateType, 0]]];
683
+ var CryptogramVerificationArpcMethod1 = [3, n0, _CVAM, 0, [_ARC], [0]];
684
+ var CryptogramVerificationArpcMethod2 = [
685
+ 3,
686
+ n0,
687
+ _CVAMr,
688
+ 0,
689
+ [_CSU, _PAD],
690
+ [0, [() => ProprietaryAuthenticationDataType, 0]],
691
+ ];
692
+ var CurrentPinAttributes = [
693
+ 3,
694
+ n0,
695
+ _CPA,
696
+ 0,
697
+ [_CPPI, _CEPB],
698
+ [0, [() => PinBlockLengthEquals16, 0]],
699
+ ];
700
+ var DecryptDataInput = [
701
+ 3,
702
+ n0,
703
+ _DDI,
704
+ 0,
705
+ [_KI, _CT, _DA, _WK],
706
+ [
707
+ [0, 1],
708
+ [() => CipherTextType, 0],
709
+ [() => EncryptionDecryptionAttributes, 0],
710
+ [() => WrappedKey, 0],
711
+ ],
712
+ ];
713
+ var DecryptDataOutput = [
714
+ 3,
715
+ n0,
716
+ _DDO,
717
+ 0,
718
+ [_KA, _KCV, _PTl],
719
+ [0, 0, [() => PlainTextOutputType, 0]],
720
+ ];
721
+ var DiscoverDynamicCardVerificationCode = [
722
+ 3,
723
+ n0,
724
+ _DDCVC,
725
+ 0,
726
+ [_CED, _UN, _ATC],
727
+ [[() => CardExpiryDateType, 0], 0, 0],
728
+ ];
729
+ var DukptAttributes = [3, n0, _DAu, 0, [_KSN, _DDT], [0, 0]];
730
+ var DukptDerivationAttributes = [3, n0, _DDA, 0, [_KSN, _DKDT, _DKV], [0, 0, 0]];
731
+ var DukptEncryptionAttributes = [
732
+ 3,
733
+ n0,
734
+ _DEA,
735
+ 0,
736
+ [_KSN, _Mo, _DKDT, _DKV, _IV],
737
+ [0, 0, 0, 0, [() => InitializationVectorType, 0]],
738
+ ];
739
+ var DynamicCardVerificationCode = [
740
+ 3,
741
+ n0,
742
+ _DCVC,
743
+ 0,
744
+ [_UN, _PSN, _ATC, _TD],
745
+ [0, 0, 0, [() => TrackDataType, 0]],
746
+ ];
747
+ var DynamicCardVerificationValue = [
748
+ 3,
749
+ n0,
750
+ _DCVV,
751
+ 0,
752
+ [_PSN, _CED, _SC, _ATC],
753
+ [0, [() => CardExpiryDateType, 0], [() => ServiceCodeType, 0], 0],
754
+ ];
755
+ var EcdhDerivationAttributes = [
756
+ 3,
757
+ n0,
758
+ _EDA,
759
+ 0,
760
+ [_CAPKI, _PKC, _KAe, _KDF, _KDHA, _SI],
761
+ [0, 0, 0, 0, 0, 0],
762
+ ];
763
+ var Emv2000Attributes = [
764
+ 3,
765
+ n0,
766
+ _EA,
767
+ 0,
768
+ [_MKDM, _PAN, _PSN, _ATC],
769
+ [0, [() => PrimaryAccountNumberType, 0], 0, 0],
770
+ ];
771
+ var EmvCommonAttributes = [
772
+ 3,
773
+ n0,
774
+ _ECA,
775
+ 0,
776
+ [_MKDM, _PAN, _PSN, _AC, _Mo, _PBPT, _PBLP],
777
+ [0, [() => PrimaryAccountNumberType, 0], 0, [() => ApplicationCryptogramType, 0], 0, 0, 0],
778
+ ];
779
+ var EmvEncryptionAttributes = [
780
+ 3,
781
+ n0,
782
+ _EEA,
783
+ 0,
784
+ [_MKDM, _PAN, _PSN, _SDD, _Mo, _IV],
785
+ [
786
+ 0,
787
+ [() => PrimaryAccountNumberType, 0],
788
+ 0,
789
+ [() => SessionDerivationDataType, 0],
790
+ 0,
791
+ [() => InitializationVectorType, 0],
792
+ ],
793
+ ];
794
+ var EncryptDataInput = [
795
+ 3,
796
+ n0,
797
+ _EDI,
798
+ 0,
799
+ [_KI, _PTl, _EAn, _WK],
800
+ [
801
+ [0, 1],
802
+ [() => PlainTextType, 0],
803
+ [() => EncryptionDecryptionAttributes, 0],
804
+ [() => WrappedKey, 0],
805
+ ],
806
+ ];
807
+ var EncryptDataOutput = [
808
+ 3,
809
+ n0,
810
+ _EDO,
811
+ 0,
812
+ [_KA, _KCV, _CT],
813
+ [0, 0, [() => CipherTextType, 0]],
814
+ ];
815
+ var GenerateCardValidationDataInput = [
816
+ 3,
817
+ n0,
818
+ _GCVDI,
819
+ 0,
820
+ [_KI, _PAN, _GA, _VDL],
821
+ [0, [() => PrimaryAccountNumberType, 0], [() => CardGenerationAttributes, 0], 1],
822
+ ];
823
+ var GenerateCardValidationDataOutput = [
824
+ 3,
825
+ n0,
826
+ _GCVDO,
827
+ 0,
828
+ [_KA, _KCV, _VD],
829
+ [0, 0, [() => ValidationDataType, 0]],
830
+ ];
831
+ var GenerateMacEmvPinChangeInput = [
832
+ 3,
833
+ n0,
834
+ _GMEPCI,
835
+ 0,
836
+ [_NPPI, _NEPB, _PBF, _SMIKI, _SMCKI, _MD, _DMA],
837
+ [
838
+ 0,
839
+ [() => PinBlockLengthEquals16, 0],
840
+ 0,
841
+ 0,
842
+ 0,
843
+ [() => CommandMessageDataType, 0],
844
+ [() => DerivationMethodAttributes, 0],
845
+ ],
846
+ ];
847
+ var GenerateMacEmvPinChangeOutput = [
848
+ 3,
849
+ n0,
850
+ _GMEPCO,
851
+ 0,
852
+ [_NPPA, _SMIKA, _SMCKA, _Ma, _EPB, _NPPKCV, _SMIKCV, _SMCKCV, _VADO],
853
+ [
854
+ 0,
855
+ 0,
856
+ 0,
857
+ [() => PinChangeMacOutputType, 0],
858
+ [() => EncryptedPinBlockType, 0],
859
+ 0,
860
+ 0,
861
+ 0,
862
+ () => VisaAmexDerivationOutputs,
863
+ ],
864
+ ];
865
+ var GenerateMacInput = [
866
+ 3,
867
+ n0,
868
+ _GMI,
869
+ 0,
870
+ [_KI, _MD, _GA, _ML],
871
+ [0, [() => MessageDataType, 0], [() => MacAttributes, 0], 1],
872
+ ];
873
+ var GenerateMacOutput = [
874
+ 3,
875
+ n0,
876
+ _GMO,
877
+ 0,
878
+ [_KA, _KCV, _Ma],
879
+ [0, 0, [() => MacOutputType, 0]],
880
+ ];
881
+ var GeneratePinDataInput = [
882
+ 3,
883
+ n0,
884
+ _GPDI,
885
+ 0,
886
+ [_GKI, _EKI, _GA, _PDL, _PAN, _PBF, _EWK],
887
+ [0, 0, [() => PinGenerationAttributes, 0], 1, [() => PrimaryAccountNumberType, 0], 0, [() => WrappedKey, 0]],
888
+ ];
889
+ var GeneratePinDataOutput = [
890
+ 3,
891
+ n0,
892
+ _GPDO,
893
+ 0,
894
+ [_GKA, _GKCV, _EKA, _EKCV, _EPB, _PD],
895
+ [0, 0, 0, 0, [() => EncryptedPinBlockType, 0], [() => PinData, 0]],
896
+ ];
897
+ var Ibm3624NaturalPin = [
898
+ 3,
899
+ n0,
900
+ _INP,
901
+ 0,
902
+ [_DT, _PVDPC, _PVD],
903
+ [[() => DecimalizationTableType, 0], 0, [() => PinValidationDataType, 0]],
904
+ ];
905
+ var Ibm3624PinFromOffset = [
906
+ 3,
907
+ n0,
908
+ _IPFO,
909
+ 0,
910
+ [_DT, _PVDPC, _PVD, _PO],
911
+ [[() => DecimalizationTableType, 0], 0, [() => PinValidationDataType, 0], [() => PinOffsetType, 0]],
912
+ ];
913
+ var Ibm3624PinOffset = [
914
+ 3,
915
+ n0,
916
+ _IPO,
917
+ 0,
918
+ [_EPB, _DT, _PVDPC, _PVD],
919
+ [[() => EncryptedPinBlockType, 0], [() => DecimalizationTableType, 0], 0, [() => PinValidationDataType, 0]],
920
+ ];
921
+ var Ibm3624PinVerification = [
922
+ 3,
923
+ n0,
924
+ _IPV,
925
+ 0,
926
+ [_DT, _PVDPC, _PVD, _PO],
927
+ [[() => DecimalizationTableType, 0], 0, [() => PinValidationDataType, 0], [() => PinOffsetType, 0]],
928
+ ];
929
+ var Ibm3624RandomPin = [
930
+ 3,
931
+ n0,
932
+ _IRP,
933
+ 0,
934
+ [_DT, _PVDPC, _PVD],
935
+ [[() => DecimalizationTableType, 0], 0, [() => PinValidationDataType, 0]],
936
+ ];
937
+ var IncomingDiffieHellmanTr31KeyBlock = [
938
+ 3,
939
+ n0,
940
+ _IDHTKB,
941
+ 0,
942
+ [_PKI, _CAPKI, _PKC, _DKA, _KDF, _KDHA, _DD, _WKB],
943
+ [0, 0, 0, 0, 0, 0, () => DiffieHellmanDerivationData, [() => Tr31WrappedKeyBlock, 0]],
944
+ ];
945
+ var InternalServerException = [
946
+ -3,
947
+ n0,
948
+ _ISE,
949
+ {
950
+ [_e]: _s,
951
+ [_hE]: 500,
952
+ },
953
+ [_M],
954
+ [0],
955
+ ];
956
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
957
+ var MacAlgorithmDukpt = [3, n0, _MAD, 0, [_KSN, _DKV, _DDT], [0, 0, 0]];
958
+ var MacAlgorithmEmv = [
959
+ 3,
960
+ n0,
961
+ _MAE,
962
+ 0,
963
+ [_MKDM, _PAN, _PSN, _SKDM, _SKDV],
964
+ [0, [() => PrimaryAccountNumberType, 0], 0, 0, [() => SessionKeyDerivationValue, 0]],
965
+ ];
966
+ var MasterCardAttributes = [
967
+ 3,
968
+ n0,
969
+ _MCA,
970
+ 0,
971
+ [_MKDM, _PAN, _PSN, _AC],
972
+ [0, [() => PrimaryAccountNumberType, 0], 0, [() => ApplicationCryptogramType, 0]],
973
+ ];
974
+ var OutgoingTr31KeyBlock = [3, n0, _OTKB, 0, [_WKI], [0]];
975
+ var ReEncryptDataInput = [
976
+ 3,
977
+ n0,
978
+ _REDI,
979
+ 0,
980
+ [_IKI, _OKI, _CT, _IEA, _OEA, _IWK, _OWK],
981
+ [
982
+ [0, 1],
983
+ 0,
984
+ [() => CipherTextType, 0],
985
+ [() => ReEncryptionAttributes, 0],
986
+ [() => ReEncryptionAttributes, 0],
987
+ [() => WrappedKey, 0],
988
+ [() => WrappedKey, 0],
989
+ ],
990
+ ];
991
+ var ReEncryptDataOutput = [
992
+ 3,
993
+ n0,
994
+ _REDO,
995
+ 0,
996
+ [_KA, _KCV, _CT],
997
+ [0, 0, [() => CipherTextType, 0]],
998
+ ];
999
+ var ResourceNotFoundException = [
1000
+ -3,
1001
+ n0,
1002
+ _RNFE,
1003
+ {
1004
+ [_e]: _c,
1005
+ [_hE]: 404,
1006
+ },
1007
+ [_RI],
1008
+ [0],
1009
+ ];
1010
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
1011
+ var SessionKeyAmex = [
1012
+ 3,
1013
+ n0,
1014
+ _SKA,
1015
+ 0,
1016
+ [_PAN, _PSN],
1017
+ [[() => PrimaryAccountNumberType, 0], 0],
1018
+ ];
1019
+ var SessionKeyEmv2000 = [
1020
+ 3,
1021
+ n0,
1022
+ _SKE,
1023
+ 0,
1024
+ [_PAN, _PSN, _ATC],
1025
+ [[() => PrimaryAccountNumberType, 0], 0, 0],
1026
+ ];
1027
+ var SessionKeyEmvCommon = [
1028
+ 3,
1029
+ n0,
1030
+ _SKEC,
1031
+ 0,
1032
+ [_PAN, _PSN, _ATC],
1033
+ [[() => PrimaryAccountNumberType, 0], 0, 0],
1034
+ ];
1035
+ var SessionKeyMastercard = [
1036
+ 3,
1037
+ n0,
1038
+ _SKM,
1039
+ 0,
1040
+ [_PAN, _PSN, _ATC, _UN],
1041
+ [[() => PrimaryAccountNumberType, 0], 0, 0, 0],
1042
+ ];
1043
+ var SessionKeyVisa = [
1044
+ 3,
1045
+ n0,
1046
+ _SKV,
1047
+ 0,
1048
+ [_PAN, _PSN],
1049
+ [[() => PrimaryAccountNumberType, 0], 0],
1050
+ ];
1051
+ var SymmetricEncryptionAttributes = [
1052
+ 3,
1053
+ n0,
1054
+ _SEA,
1055
+ 0,
1056
+ [_Mo, _IV, _PT],
1057
+ [0, [() => InitializationVectorType, 0], 0],
1058
+ ];
1059
+ var ThrottlingException = [
1060
+ -3,
1061
+ n0,
1062
+ _TE,
1063
+ {
1064
+ [_e]: _c,
1065
+ [_hE]: 429,
1066
+ },
1067
+ [_M],
1068
+ [0],
1069
+ ];
1070
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
1071
+ var TranslateKeyMaterialInput = [
1072
+ 3,
1073
+ n0,
1074
+ _TKMI,
1075
+ 0,
1076
+ [_IKM, _OKM, _KCVA],
1077
+ [[() => IncomingKeyMaterial, 0], () => OutgoingKeyMaterial, 0],
1078
+ ];
1079
+ var TranslateKeyMaterialOutput = [3, n0, _TKMO, 0, [_WK], [[() => WrappedWorkingKey, 0]]];
1080
+ var TranslatePinDataInput = [
1081
+ 3,
1082
+ n0,
1083
+ _TPDI,
1084
+ 0,
1085
+ [_IKI, _OKI, _ITA, _OTA, _EPB, _IDA, _ODA, _IWK, _OWK],
1086
+ [
1087
+ 0,
1088
+ 0,
1089
+ [() => TranslationIsoFormats, 0],
1090
+ [() => TranslationIsoFormats, 0],
1091
+ [() => HexEvenLengthBetween16And32, 0],
1092
+ () => DukptDerivationAttributes,
1093
+ () => DukptDerivationAttributes,
1094
+ [() => WrappedKey, 0],
1095
+ [() => WrappedKey, 0],
1096
+ ],
1097
+ ];
1098
+ var TranslatePinDataOutput = [
1099
+ 3,
1100
+ n0,
1101
+ _TPDO,
1102
+ 0,
1103
+ [_PB, _KA, _KCV],
1104
+ [[() => EncryptedPinBlockType, 0], 0, 0],
1105
+ ];
1106
+ var TranslationPinDataIsoFormat034 = [
1107
+ 3,
1108
+ n0,
1109
+ _TPDIF,
1110
+ 0,
1111
+ [_PAN],
1112
+ [[() => PrimaryAccountNumberType, 0]],
1113
+ ];
1114
+ var TranslationPinDataIsoFormat1 = [3, n0, _TPDIFr, 0, [], []];
1115
+ var ValidationException = [
1116
+ -3,
1117
+ n0,
1118
+ _VE,
1119
+ {
1120
+ [_e]: _c,
1121
+ },
1122
+ [_m, _fL],
1123
+ [0, () => ValidationExceptionFieldList],
1124
+ ];
1125
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
1126
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_p, _m], [0, 0]];
1127
+ var VerificationFailedException = [
1128
+ -3,
1129
+ n0,
1130
+ _VFE,
1131
+ {
1132
+ [_e]: _c,
1133
+ [_hE]: 400,
1134
+ },
1135
+ [_R, _M],
1136
+ [0, 0],
1137
+ ];
1138
+ schema.TypeRegistry.for(n0).registerError(VerificationFailedException, VerificationFailedException$1);
1139
+ var VerifyAuthRequestCryptogramInput = [
1140
+ 3,
1141
+ n0,
1142
+ _VARCI,
1143
+ 0,
1144
+ [_KI, _TDr, _ARCu, _MKDM, _SKDA, _ARA],
1145
+ [
1146
+ 0,
1147
+ [() => TransactionDataType, 0],
1148
+ [() => AuthRequestCryptogramType, 0],
1149
+ 0,
1150
+ [() => SessionKeyDerivation, 0],
1151
+ [() => CryptogramAuthResponse, 0],
1152
+ ],
1153
+ ];
1154
+ var VerifyAuthRequestCryptogramOutput = [
1155
+ 3,
1156
+ n0,
1157
+ _VARCO,
1158
+ 0,
1159
+ [_KA, _KCV, _ARV],
1160
+ [0, 0, [() => AuthResponseValueType, 0]],
1161
+ ];
1162
+ var VerifyCardValidationDataInput = [
1163
+ 3,
1164
+ n0,
1165
+ _VCVDI,
1166
+ 0,
1167
+ [_KI, _PAN, _VA, _VD],
1168
+ [0, [() => PrimaryAccountNumberType, 0], [() => CardVerificationAttributes, 0], [() => ValidationDataType, 0]],
1169
+ ];
1170
+ var VerifyCardValidationDataOutput = [3, n0, _VCVDO, 0, [_KA, _KCV], [0, 0]];
1171
+ var VerifyMacInput = [
1172
+ 3,
1173
+ n0,
1174
+ _VMI,
1175
+ 0,
1176
+ [_KI, _MD, _Ma, _VA, _ML],
1177
+ [0, [() => MessageDataType, 0], [() => MacType, 0], [() => MacAttributes, 0], 1],
1178
+ ];
1179
+ var VerifyMacOutput = [3, n0, _VMO, 0, [_KA, _KCV], [0, 0]];
1180
+ var VerifyPinDataInput = [
1181
+ 3,
1182
+ n0,
1183
+ _VPDI,
1184
+ 0,
1185
+ [_VKI, _EKI, _VA, _EPB, _PAN, _PBF, _PDL, _DAu, _EWK],
1186
+ [
1187
+ 0,
1188
+ 0,
1189
+ [() => PinVerificationAttributes, 0],
1190
+ [() => EncryptedPinBlockType, 0],
1191
+ [() => PrimaryAccountNumberType, 0],
1192
+ 0,
1193
+ 1,
1194
+ () => DukptAttributes,
1195
+ [() => WrappedKey, 0],
1196
+ ],
1197
+ ];
1198
+ var VerifyPinDataOutput = [3, n0, _VPDO, 0, [_VKA, _VKCV, _EKA, _EKCV], [0, 0, 0, 0]];
1199
+ var VisaAmexDerivationOutputs = [
1200
+ 3,
1201
+ n0,
1202
+ _VADO,
1203
+ 0,
1204
+ [_ARKA, _ARKCV, _CPPA, _CPPKCV],
1205
+ [0, 0, 0, 0],
1206
+ ];
1207
+ var VisaAttributes = [
1208
+ 3,
1209
+ n0,
1210
+ _VAi,
1211
+ 0,
1212
+ [_MKDM, _PAN, _PSN, _ATC, _ARKI, _CPA],
1213
+ [0, [() => PrimaryAccountNumberType, 0], 0, 0, 0, [() => CurrentPinAttributes, 0]],
1214
+ ];
1215
+ var VisaPin = [3, n0, _VP, 0, [_PVKI], [1]];
1216
+ var VisaPinVerification = [
1217
+ 3,
1218
+ n0,
1219
+ _VPV,
1220
+ 0,
1221
+ [_PVKI, _VV],
1222
+ [1, [() => VerificationValueType, 0]],
1223
+ ];
1224
+ var VisaPinVerificationValue = [
1225
+ 3,
1226
+ n0,
1227
+ _VPVV,
1228
+ 0,
1229
+ [_EPB, _PVKI],
1230
+ [[() => EncryptedPinBlockType, 0], 1],
1231
+ ];
1232
+ var WrappedKey = [3, n0, _WK, 0, [_WKM, _KCVA], [[() => WrappedKeyMaterial, 0], 0]];
1233
+ var WrappedWorkingKey = [
1234
+ 3,
1235
+ n0,
1236
+ _WWK,
1237
+ 0,
1238
+ [_WKM, _KCV, _WKMF],
1239
+ [[() => KeyMaterial, 0], 0, 0],
1240
+ ];
1241
+ var PaymentCryptographyDataServiceException = [
1242
+ -3,
1243
+ _sm,
1244
+ "PaymentCryptographyDataServiceException",
1245
+ 0,
1246
+ [],
1247
+ [],
1248
+ ];
1249
+ schema.TypeRegistry.for(_sm).registerError(PaymentCryptographyDataServiceException, PaymentCryptographyDataServiceException$1);
1250
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
1251
+ var CardGenerationAttributes = [
1252
+ 3,
1253
+ n0,
1254
+ _CGA,
1255
+ 0,
1256
+ [_ACSCV, _ACSCVm, _CVV, _CVVa, _CHVV, _DCVC, _DCVV],
1257
+ [
1258
+ [() => AmexCardSecurityCodeVersion1, 0],
1259
+ [() => AmexCardSecurityCodeVersion2, 0],
1260
+ [() => CardVerificationValue1, 0],
1261
+ [() => CardVerificationValue2, 0],
1262
+ () => CardHolderVerificationValue,
1263
+ [() => DynamicCardVerificationCode, 0],
1264
+ [() => DynamicCardVerificationValue, 0],
1265
+ ],
1266
+ ];
1267
+ var CardVerificationAttributes = [
1268
+ 3,
1269
+ n0,
1270
+ _CVA,
1271
+ 0,
1272
+ [_ACSCV, _ACSCVm, _CVV, _CVVa, _CHVV, _DCVC, _DCVV, _DDCVC],
1273
+ [
1274
+ [() => AmexCardSecurityCodeVersion1, 0],
1275
+ [() => AmexCardSecurityCodeVersion2, 0],
1276
+ [() => CardVerificationValue1, 0],
1277
+ [() => CardVerificationValue2, 0],
1278
+ () => CardHolderVerificationValue,
1279
+ [() => DynamicCardVerificationCode, 0],
1280
+ [() => DynamicCardVerificationValue, 0],
1281
+ [() => DiscoverDynamicCardVerificationCode, 0],
1282
+ ],
1283
+ ];
1284
+ var CryptogramAuthResponse = [
1285
+ 3,
1286
+ n0,
1287
+ _CAR,
1288
+ 0,
1289
+ [_AM, _AMr],
1290
+ [() => CryptogramVerificationArpcMethod1, [() => CryptogramVerificationArpcMethod2, 0]],
1291
+ ];
1292
+ var DerivationMethodAttributes = [
1293
+ 3,
1294
+ n0,
1295
+ _DMA,
1296
+ 0,
1297
+ [_EC, _A, _V, _E, _Mas],
1298
+ [
1299
+ [() => EmvCommonAttributes, 0],
1300
+ [() => AmexAttributes, 0],
1301
+ [() => VisaAttributes, 0],
1302
+ [() => Emv2000Attributes, 0],
1303
+ [() => MasterCardAttributes, 0],
1304
+ ],
1305
+ ];
1306
+ var DiffieHellmanDerivationData = [3, n0, _DHDD, 0, [_SI], [0]];
1307
+ var EncryptionDecryptionAttributes = [
1308
+ 3,
1309
+ n0,
1310
+ _EDAn,
1311
+ 0,
1312
+ [_S, _As, _D, _Em],
1313
+ [
1314
+ [() => SymmetricEncryptionAttributes, 0],
1315
+ () => AsymmetricEncryptionAttributes,
1316
+ [() => DukptEncryptionAttributes, 0],
1317
+ [() => EmvEncryptionAttributes, 0],
1318
+ ],
1319
+ ];
1320
+ var IncomingKeyMaterial = [
1321
+ 3,
1322
+ n0,
1323
+ _IKM,
1324
+ 0,
1325
+ [_DHTKB],
1326
+ [[() => IncomingDiffieHellmanTr31KeyBlock, 0]],
1327
+ ];
1328
+ var MacAttributes = [
1329
+ 3,
1330
+ n0,
1331
+ _MA,
1332
+ 0,
1333
+ [_Al, _EM, _DIA, _DIAu, _DC],
1334
+ [0, [() => MacAlgorithmEmv, 0], () => MacAlgorithmDukpt, () => MacAlgorithmDukpt, () => MacAlgorithmDukpt],
1335
+ ];
1336
+ var OutgoingKeyMaterial = [3, n0, _OKM, 0, [_TKB], [() => OutgoingTr31KeyBlock]];
1337
+ var PinData = [
1338
+ 3,
1339
+ n0,
1340
+ _PD,
1341
+ 0,
1342
+ [_PO, _VV],
1343
+ [
1344
+ [() => PinOffsetType, 0],
1345
+ [() => VerificationValueType, 0],
1346
+ ],
1347
+ ];
1348
+ var PinGenerationAttributes = [
1349
+ 3,
1350
+ n0,
1351
+ _PGA,
1352
+ 0,
1353
+ [_VP, _VPVV, _IPO, _INP, _IRP, _IPFO],
1354
+ [
1355
+ () => VisaPin,
1356
+ [() => VisaPinVerificationValue, 0],
1357
+ [() => Ibm3624PinOffset, 0],
1358
+ [() => Ibm3624NaturalPin, 0],
1359
+ [() => Ibm3624RandomPin, 0],
1360
+ [() => Ibm3624PinFromOffset, 0],
1361
+ ],
1362
+ ];
1363
+ var PinVerificationAttributes = [
1364
+ 3,
1365
+ n0,
1366
+ _PVA,
1367
+ 0,
1368
+ [_VP, _IP],
1369
+ [
1370
+ [() => VisaPinVerification, 0],
1371
+ [() => Ibm3624PinVerification, 0],
1372
+ ],
1373
+ ];
1374
+ var ReEncryptionAttributes = [
1375
+ 3,
1376
+ n0,
1377
+ _REA,
1378
+ 0,
1379
+ [_S, _D],
1380
+ [
1381
+ [() => SymmetricEncryptionAttributes, 0],
1382
+ [() => DukptEncryptionAttributes, 0],
1383
+ ],
1384
+ ];
1385
+ var SessionKeyDerivation = [
1386
+ 3,
1387
+ n0,
1388
+ _SKD,
1389
+ 0,
1390
+ [_EC, _Mas, _E, _A, _V],
1391
+ [
1392
+ [() => SessionKeyEmvCommon, 0],
1393
+ [() => SessionKeyMastercard, 0],
1394
+ [() => SessionKeyEmv2000, 0],
1395
+ [() => SessionKeyAmex, 0],
1396
+ [() => SessionKeyVisa, 0],
1397
+ ],
1398
+ ];
1399
+ var SessionKeyDerivationValue = [
1400
+ 3,
1401
+ n0,
1402
+ _SKDV,
1403
+ 0,
1404
+ [_AC, _ATC],
1405
+ [[() => ApplicationCryptogramType, 0], 0],
1406
+ ];
1407
+ var TranslationIsoFormats = [
1408
+ 3,
1409
+ n0,
1410
+ _TIF,
1411
+ 0,
1412
+ [_IF, _IFs, _IFso, _IFsoo],
1413
+ [
1414
+ [() => TranslationPinDataIsoFormat034, 0],
1415
+ () => TranslationPinDataIsoFormat1,
1416
+ [() => TranslationPinDataIsoFormat034, 0],
1417
+ [() => TranslationPinDataIsoFormat034, 0],
1418
+ ],
1419
+ ];
1420
+ var WrappedKeyMaterial = [
1421
+ 3,
1422
+ n0,
1423
+ _WKM,
1424
+ 0,
1425
+ [_TKB, _DHSK],
1426
+ [[() => Tr31WrappedKeyBlock, 0], () => EcdhDerivationAttributes],
1427
+ ];
1428
+ var DecryptData = [
1429
+ 9,
1430
+ n0,
1431
+ _DDe,
1432
+ {
1433
+ [_h]: ["POST", "/keys/{KeyIdentifier}/decrypt", 200],
1434
+ },
1435
+ () => DecryptDataInput,
1436
+ () => DecryptDataOutput,
1437
+ ];
1438
+ var EncryptData = [
1439
+ 9,
1440
+ n0,
1441
+ _ED,
1442
+ {
1443
+ [_h]: ["POST", "/keys/{KeyIdentifier}/encrypt", 200],
1444
+ },
1445
+ () => EncryptDataInput,
1446
+ () => EncryptDataOutput,
1447
+ ];
1448
+ var GenerateCardValidationData = [
1449
+ 9,
1450
+ n0,
1451
+ _GCVD,
1452
+ {
1453
+ [_h]: ["POST", "/cardvalidationdata/generate", 200],
1454
+ },
1455
+ () => GenerateCardValidationDataInput,
1456
+ () => GenerateCardValidationDataOutput,
1457
+ ];
1458
+ var GenerateMac = [
1459
+ 9,
1460
+ n0,
1461
+ _GM,
1462
+ {
1463
+ [_h]: ["POST", "/mac/generate", 200],
1464
+ },
1465
+ () => GenerateMacInput,
1466
+ () => GenerateMacOutput,
1467
+ ];
1468
+ var GenerateMacEmvPinChange = [
1469
+ 9,
1470
+ n0,
1471
+ _GMEPC,
1472
+ {
1473
+ [_h]: ["POST", "/macemvpinchange/generate", 200],
1474
+ },
1475
+ () => GenerateMacEmvPinChangeInput,
1476
+ () => GenerateMacEmvPinChangeOutput,
1477
+ ];
1478
+ var GeneratePinData = [
1479
+ 9,
1480
+ n0,
1481
+ _GPD,
1482
+ {
1483
+ [_h]: ["POST", "/pindata/generate", 200],
1484
+ },
1485
+ () => GeneratePinDataInput,
1486
+ () => GeneratePinDataOutput,
1487
+ ];
1488
+ var ReEncryptData = [
1489
+ 9,
1490
+ n0,
1491
+ _RED,
1492
+ {
1493
+ [_h]: ["POST", "/keys/{IncomingKeyIdentifier}/reencrypt", 200],
1494
+ },
1495
+ () => ReEncryptDataInput,
1496
+ () => ReEncryptDataOutput,
1497
+ ];
1498
+ var TranslateKeyMaterial = [
1499
+ 9,
1500
+ n0,
1501
+ _TKM,
1502
+ {
1503
+ [_h]: ["POST", "/keymaterial/translate", 200],
1504
+ },
1505
+ () => TranslateKeyMaterialInput,
1506
+ () => TranslateKeyMaterialOutput,
1507
+ ];
1508
+ var TranslatePinData = [
1509
+ 9,
1510
+ n0,
1511
+ _TPD,
1512
+ {
1513
+ [_h]: ["POST", "/pindata/translate", 200],
1514
+ },
1515
+ () => TranslatePinDataInput,
1516
+ () => TranslatePinDataOutput,
1517
+ ];
1518
+ var VerifyAuthRequestCryptogram = [
1519
+ 9,
1520
+ n0,
1521
+ _VARC,
1522
+ {
1523
+ [_h]: ["POST", "/cryptogram/verify", 200],
1524
+ },
1525
+ () => VerifyAuthRequestCryptogramInput,
1526
+ () => VerifyAuthRequestCryptogramOutput,
1527
+ ];
1528
+ var VerifyCardValidationData = [
1529
+ 9,
1530
+ n0,
1531
+ _VCVD,
1532
+ {
1533
+ [_h]: ["POST", "/cardvalidationdata/verify", 200],
1534
+ },
1535
+ () => VerifyCardValidationDataInput,
1536
+ () => VerifyCardValidationDataOutput,
1537
+ ];
1538
+ var VerifyMac = [
1539
+ 9,
1540
+ n0,
1541
+ _VM,
1542
+ {
1543
+ [_h]: ["POST", "/mac/verify", 200],
1544
+ },
1545
+ () => VerifyMacInput,
1546
+ () => VerifyMacOutput,
1547
+ ];
1548
+ var VerifyPinData = [
1549
+ 9,
1550
+ n0,
1551
+ _VPD,
1552
+ {
1553
+ [_h]: ["POST", "/pindata/verify", 200],
1554
+ },
1555
+ () => VerifyPinDataInput,
1556
+ () => VerifyPinDataOutput,
1557
+ ];
1616
1558
 
1617
1559
  class DecryptDataCommand extends smithyClient.Command
1618
1560
  .classBuilder()
1619
1561
  .ep(commonParams)
1620
1562
  .m(function (Command, cs, config, o) {
1621
- return [
1622
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1623
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1624
- ];
1563
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1625
1564
  })
1626
1565
  .s("PaymentCryptographyDataPlane", "DecryptData", {})
1627
1566
  .n("PaymentCryptographyDataClient", "DecryptDataCommand")
1628
- .f(DecryptDataInputFilterSensitiveLog, DecryptDataOutputFilterSensitiveLog)
1629
- .ser(se_DecryptDataCommand)
1630
- .de(de_DecryptDataCommand)
1567
+ .sc(DecryptData)
1631
1568
  .build() {
1632
1569
  }
1633
1570
 
@@ -1635,16 +1572,11 @@ class EncryptDataCommand extends smithyClient.Command
1635
1572
  .classBuilder()
1636
1573
  .ep(commonParams)
1637
1574
  .m(function (Command, cs, config, o) {
1638
- return [
1639
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1640
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1641
- ];
1575
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1642
1576
  })
1643
1577
  .s("PaymentCryptographyDataPlane", "EncryptData", {})
1644
1578
  .n("PaymentCryptographyDataClient", "EncryptDataCommand")
1645
- .f(EncryptDataInputFilterSensitiveLog, EncryptDataOutputFilterSensitiveLog)
1646
- .ser(se_EncryptDataCommand)
1647
- .de(de_EncryptDataCommand)
1579
+ .sc(EncryptData)
1648
1580
  .build() {
1649
1581
  }
1650
1582
 
@@ -1652,16 +1584,11 @@ class GenerateCardValidationDataCommand extends smithyClient.Command
1652
1584
  .classBuilder()
1653
1585
  .ep(commonParams)
1654
1586
  .m(function (Command, cs, config, o) {
1655
- return [
1656
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1657
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1658
- ];
1587
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1659
1588
  })
1660
1589
  .s("PaymentCryptographyDataPlane", "GenerateCardValidationData", {})
1661
1590
  .n("PaymentCryptographyDataClient", "GenerateCardValidationDataCommand")
1662
- .f(GenerateCardValidationDataInputFilterSensitiveLog, GenerateCardValidationDataOutputFilterSensitiveLog)
1663
- .ser(se_GenerateCardValidationDataCommand)
1664
- .de(de_GenerateCardValidationDataCommand)
1591
+ .sc(GenerateCardValidationData)
1665
1592
  .build() {
1666
1593
  }
1667
1594
 
@@ -1669,16 +1596,11 @@ class GenerateMacCommand extends smithyClient.Command
1669
1596
  .classBuilder()
1670
1597
  .ep(commonParams)
1671
1598
  .m(function (Command, cs, config, o) {
1672
- return [
1673
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1674
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1675
- ];
1599
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1676
1600
  })
1677
1601
  .s("PaymentCryptographyDataPlane", "GenerateMac", {})
1678
1602
  .n("PaymentCryptographyDataClient", "GenerateMacCommand")
1679
- .f(GenerateMacInputFilterSensitiveLog, GenerateMacOutputFilterSensitiveLog)
1680
- .ser(se_GenerateMacCommand)
1681
- .de(de_GenerateMacCommand)
1603
+ .sc(GenerateMac)
1682
1604
  .build() {
1683
1605
  }
1684
1606
 
@@ -1686,16 +1608,11 @@ class GenerateMacEmvPinChangeCommand extends smithyClient.Command
1686
1608
  .classBuilder()
1687
1609
  .ep(commonParams)
1688
1610
  .m(function (Command, cs, config, o) {
1689
- return [
1690
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1691
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1692
- ];
1611
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1693
1612
  })
1694
1613
  .s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {})
1695
1614
  .n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand")
1696
- .f(GenerateMacEmvPinChangeInputFilterSensitiveLog, GenerateMacEmvPinChangeOutputFilterSensitiveLog)
1697
- .ser(se_GenerateMacEmvPinChangeCommand)
1698
- .de(de_GenerateMacEmvPinChangeCommand)
1615
+ .sc(GenerateMacEmvPinChange)
1699
1616
  .build() {
1700
1617
  }
1701
1618
 
@@ -1703,16 +1620,11 @@ class GeneratePinDataCommand extends smithyClient.Command
1703
1620
  .classBuilder()
1704
1621
  .ep(commonParams)
1705
1622
  .m(function (Command, cs, config, o) {
1706
- return [
1707
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1708
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1709
- ];
1623
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1710
1624
  })
1711
1625
  .s("PaymentCryptographyDataPlane", "GeneratePinData", {})
1712
1626
  .n("PaymentCryptographyDataClient", "GeneratePinDataCommand")
1713
- .f(GeneratePinDataInputFilterSensitiveLog, GeneratePinDataOutputFilterSensitiveLog)
1714
- .ser(se_GeneratePinDataCommand)
1715
- .de(de_GeneratePinDataCommand)
1627
+ .sc(GeneratePinData)
1716
1628
  .build() {
1717
1629
  }
1718
1630
 
@@ -1720,16 +1632,11 @@ class ReEncryptDataCommand extends smithyClient.Command
1720
1632
  .classBuilder()
1721
1633
  .ep(commonParams)
1722
1634
  .m(function (Command, cs, config, o) {
1723
- return [
1724
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1725
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1726
- ];
1635
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1727
1636
  })
1728
1637
  .s("PaymentCryptographyDataPlane", "ReEncryptData", {})
1729
1638
  .n("PaymentCryptographyDataClient", "ReEncryptDataCommand")
1730
- .f(ReEncryptDataInputFilterSensitiveLog, ReEncryptDataOutputFilterSensitiveLog)
1731
- .ser(se_ReEncryptDataCommand)
1732
- .de(de_ReEncryptDataCommand)
1639
+ .sc(ReEncryptData)
1733
1640
  .build() {
1734
1641
  }
1735
1642
 
@@ -1737,16 +1644,11 @@ class TranslateKeyMaterialCommand extends smithyClient.Command
1737
1644
  .classBuilder()
1738
1645
  .ep(commonParams)
1739
1646
  .m(function (Command, cs, config, o) {
1740
- return [
1741
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1742
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1743
- ];
1647
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1744
1648
  })
1745
1649
  .s("PaymentCryptographyDataPlane", "TranslateKeyMaterial", {})
1746
1650
  .n("PaymentCryptographyDataClient", "TranslateKeyMaterialCommand")
1747
- .f(TranslateKeyMaterialInputFilterSensitiveLog, TranslateKeyMaterialOutputFilterSensitiveLog)
1748
- .ser(se_TranslateKeyMaterialCommand)
1749
- .de(de_TranslateKeyMaterialCommand)
1651
+ .sc(TranslateKeyMaterial)
1750
1652
  .build() {
1751
1653
  }
1752
1654
 
@@ -1754,16 +1656,11 @@ class TranslatePinDataCommand extends smithyClient.Command
1754
1656
  .classBuilder()
1755
1657
  .ep(commonParams)
1756
1658
  .m(function (Command, cs, config, o) {
1757
- return [
1758
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1759
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1760
- ];
1659
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1761
1660
  })
1762
1661
  .s("PaymentCryptographyDataPlane", "TranslatePinData", {})
1763
1662
  .n("PaymentCryptographyDataClient", "TranslatePinDataCommand")
1764
- .f(TranslatePinDataInputFilterSensitiveLog, TranslatePinDataOutputFilterSensitiveLog)
1765
- .ser(se_TranslatePinDataCommand)
1766
- .de(de_TranslatePinDataCommand)
1663
+ .sc(TranslatePinData)
1767
1664
  .build() {
1768
1665
  }
1769
1666
 
@@ -1771,16 +1668,11 @@ class VerifyAuthRequestCryptogramCommand extends smithyClient.Command
1771
1668
  .classBuilder()
1772
1669
  .ep(commonParams)
1773
1670
  .m(function (Command, cs, config, o) {
1774
- return [
1775
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1776
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1777
- ];
1671
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1778
1672
  })
1779
1673
  .s("PaymentCryptographyDataPlane", "VerifyAuthRequestCryptogram", {})
1780
1674
  .n("PaymentCryptographyDataClient", "VerifyAuthRequestCryptogramCommand")
1781
- .f(VerifyAuthRequestCryptogramInputFilterSensitiveLog, VerifyAuthRequestCryptogramOutputFilterSensitiveLog)
1782
- .ser(se_VerifyAuthRequestCryptogramCommand)
1783
- .de(de_VerifyAuthRequestCryptogramCommand)
1675
+ .sc(VerifyAuthRequestCryptogram)
1784
1676
  .build() {
1785
1677
  }
1786
1678
 
@@ -1788,16 +1680,11 @@ class VerifyCardValidationDataCommand extends smithyClient.Command
1788
1680
  .classBuilder()
1789
1681
  .ep(commonParams)
1790
1682
  .m(function (Command, cs, config, o) {
1791
- return [
1792
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1793
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1794
- ];
1683
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1795
1684
  })
1796
1685
  .s("PaymentCryptographyDataPlane", "VerifyCardValidationData", {})
1797
1686
  .n("PaymentCryptographyDataClient", "VerifyCardValidationDataCommand")
1798
- .f(VerifyCardValidationDataInputFilterSensitiveLog, void 0)
1799
- .ser(se_VerifyCardValidationDataCommand)
1800
- .de(de_VerifyCardValidationDataCommand)
1687
+ .sc(VerifyCardValidationData)
1801
1688
  .build() {
1802
1689
  }
1803
1690
 
@@ -1805,16 +1692,11 @@ class VerifyMacCommand extends smithyClient.Command
1805
1692
  .classBuilder()
1806
1693
  .ep(commonParams)
1807
1694
  .m(function (Command, cs, config, o) {
1808
- return [
1809
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1810
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1811
- ];
1695
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1812
1696
  })
1813
1697
  .s("PaymentCryptographyDataPlane", "VerifyMac", {})
1814
1698
  .n("PaymentCryptographyDataClient", "VerifyMacCommand")
1815
- .f(VerifyMacInputFilterSensitiveLog, void 0)
1816
- .ser(se_VerifyMacCommand)
1817
- .de(de_VerifyMacCommand)
1699
+ .sc(VerifyMac)
1818
1700
  .build() {
1819
1701
  }
1820
1702
 
@@ -1822,16 +1704,11 @@ class VerifyPinDataCommand extends smithyClient.Command
1822
1704
  .classBuilder()
1823
1705
  .ep(commonParams)
1824
1706
  .m(function (Command, cs, config, o) {
1825
- return [
1826
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1827
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1828
- ];
1707
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1829
1708
  })
1830
1709
  .s("PaymentCryptographyDataPlane", "VerifyPinData", {})
1831
1710
  .n("PaymentCryptographyDataClient", "VerifyPinDataCommand")
1832
- .f(VerifyPinDataInputFilterSensitiveLog, void 0)
1833
- .ser(se_VerifyPinDataCommand)
1834
- .de(de_VerifyPinDataCommand)
1711
+ .sc(VerifyPinData)
1835
1712
  .build() {
1836
1713
  }
1837
1714
 
@@ -1862,117 +1739,45 @@ Object.defineProperty(exports, "__Client", {
1862
1739
  enumerable: true,
1863
1740
  get: function () { return smithyClient.Client; }
1864
1741
  });
1865
- exports.AccessDeniedException = AccessDeniedException;
1866
- exports.AmexAttributesFilterSensitiveLog = AmexAttributesFilterSensitiveLog;
1867
- exports.AmexCardSecurityCodeVersion1FilterSensitiveLog = AmexCardSecurityCodeVersion1FilterSensitiveLog;
1868
- exports.AmexCardSecurityCodeVersion2FilterSensitiveLog = AmexCardSecurityCodeVersion2FilterSensitiveLog;
1869
- exports.CardGenerationAttributesFilterSensitiveLog = CardGenerationAttributesFilterSensitiveLog;
1870
- exports.CardVerificationAttributesFilterSensitiveLog = CardVerificationAttributesFilterSensitiveLog;
1871
- exports.CardVerificationValue1FilterSensitiveLog = CardVerificationValue1FilterSensitiveLog;
1872
- exports.CardVerificationValue2FilterSensitiveLog = CardVerificationValue2FilterSensitiveLog;
1873
- exports.CryptogramAuthResponseFilterSensitiveLog = CryptogramAuthResponseFilterSensitiveLog;
1874
- exports.CryptogramVerificationArpcMethod2FilterSensitiveLog = CryptogramVerificationArpcMethod2FilterSensitiveLog;
1875
- exports.CurrentPinAttributesFilterSensitiveLog = CurrentPinAttributesFilterSensitiveLog;
1742
+ exports.AccessDeniedException = AccessDeniedException$1;
1876
1743
  exports.DecryptDataCommand = DecryptDataCommand;
1877
- exports.DecryptDataInputFilterSensitiveLog = DecryptDataInputFilterSensitiveLog;
1878
- exports.DecryptDataOutputFilterSensitiveLog = DecryptDataOutputFilterSensitiveLog;
1879
- exports.DerivationMethodAttributesFilterSensitiveLog = DerivationMethodAttributesFilterSensitiveLog;
1880
- exports.DiscoverDynamicCardVerificationCodeFilterSensitiveLog = DiscoverDynamicCardVerificationCodeFilterSensitiveLog;
1881
1744
  exports.DukptDerivationType = DukptDerivationType;
1882
- exports.DukptEncryptionAttributesFilterSensitiveLog = DukptEncryptionAttributesFilterSensitiveLog;
1883
1745
  exports.DukptEncryptionMode = DukptEncryptionMode;
1884
1746
  exports.DukptKeyVariant = DukptKeyVariant;
1885
- exports.DynamicCardVerificationCodeFilterSensitiveLog = DynamicCardVerificationCodeFilterSensitiveLog;
1886
- exports.DynamicCardVerificationValueFilterSensitiveLog = DynamicCardVerificationValueFilterSensitiveLog;
1887
- exports.Emv2000AttributesFilterSensitiveLog = Emv2000AttributesFilterSensitiveLog;
1888
- exports.EmvCommonAttributesFilterSensitiveLog = EmvCommonAttributesFilterSensitiveLog;
1889
- exports.EmvEncryptionAttributesFilterSensitiveLog = EmvEncryptionAttributesFilterSensitiveLog;
1890
1747
  exports.EmvEncryptionMode = EmvEncryptionMode;
1891
1748
  exports.EmvMajorKeyDerivationMode = EmvMajorKeyDerivationMode;
1892
1749
  exports.EncryptDataCommand = EncryptDataCommand;
1893
- exports.EncryptDataInputFilterSensitiveLog = EncryptDataInputFilterSensitiveLog;
1894
- exports.EncryptDataOutputFilterSensitiveLog = EncryptDataOutputFilterSensitiveLog;
1895
- exports.EncryptionDecryptionAttributesFilterSensitiveLog = EncryptionDecryptionAttributesFilterSensitiveLog;
1896
1750
  exports.EncryptionMode = EncryptionMode;
1897
1751
  exports.GenerateCardValidationDataCommand = GenerateCardValidationDataCommand;
1898
- exports.GenerateCardValidationDataInputFilterSensitiveLog = GenerateCardValidationDataInputFilterSensitiveLog;
1899
- exports.GenerateCardValidationDataOutputFilterSensitiveLog = GenerateCardValidationDataOutputFilterSensitiveLog;
1900
1752
  exports.GenerateMacCommand = GenerateMacCommand;
1901
1753
  exports.GenerateMacEmvPinChangeCommand = GenerateMacEmvPinChangeCommand;
1902
- exports.GenerateMacEmvPinChangeInputFilterSensitiveLog = GenerateMacEmvPinChangeInputFilterSensitiveLog;
1903
- exports.GenerateMacEmvPinChangeOutputFilterSensitiveLog = GenerateMacEmvPinChangeOutputFilterSensitiveLog;
1904
- exports.GenerateMacInputFilterSensitiveLog = GenerateMacInputFilterSensitiveLog;
1905
- exports.GenerateMacOutputFilterSensitiveLog = GenerateMacOutputFilterSensitiveLog;
1906
1754
  exports.GeneratePinDataCommand = GeneratePinDataCommand;
1907
- exports.GeneratePinDataInputFilterSensitiveLog = GeneratePinDataInputFilterSensitiveLog;
1908
- exports.GeneratePinDataOutputFilterSensitiveLog = GeneratePinDataOutputFilterSensitiveLog;
1909
- exports.Ibm3624NaturalPinFilterSensitiveLog = Ibm3624NaturalPinFilterSensitiveLog;
1910
- exports.Ibm3624PinFromOffsetFilterSensitiveLog = Ibm3624PinFromOffsetFilterSensitiveLog;
1911
- exports.Ibm3624PinOffsetFilterSensitiveLog = Ibm3624PinOffsetFilterSensitiveLog;
1912
- exports.Ibm3624PinVerificationFilterSensitiveLog = Ibm3624PinVerificationFilterSensitiveLog;
1913
- exports.Ibm3624RandomPinFilterSensitiveLog = Ibm3624RandomPinFilterSensitiveLog;
1914
- exports.IncomingDiffieHellmanTr31KeyBlockFilterSensitiveLog = IncomingDiffieHellmanTr31KeyBlockFilterSensitiveLog;
1915
- exports.IncomingKeyMaterialFilterSensitiveLog = IncomingKeyMaterialFilterSensitiveLog;
1916
- exports.InternalServerException = InternalServerException;
1755
+ exports.InternalServerException = InternalServerException$1;
1917
1756
  exports.KeyCheckValueAlgorithm = KeyCheckValueAlgorithm;
1918
1757
  exports.KeyDerivationFunction = KeyDerivationFunction;
1919
1758
  exports.KeyDerivationHashAlgorithm = KeyDerivationHashAlgorithm;
1920
1759
  exports.MacAlgorithm = MacAlgorithm;
1921
- exports.MacAlgorithmEmvFilterSensitiveLog = MacAlgorithmEmvFilterSensitiveLog;
1922
- exports.MacAttributesFilterSensitiveLog = MacAttributesFilterSensitiveLog;
1923
1760
  exports.MajorKeyDerivationMode = MajorKeyDerivationMode;
1924
- exports.MasterCardAttributesFilterSensitiveLog = MasterCardAttributesFilterSensitiveLog;
1925
1761
  exports.PaddingType = PaddingType;
1926
1762
  exports.PaymentCryptographyData = PaymentCryptographyData;
1927
1763
  exports.PaymentCryptographyDataClient = PaymentCryptographyDataClient;
1928
- exports.PaymentCryptographyDataServiceException = PaymentCryptographyDataServiceException;
1764
+ exports.PaymentCryptographyDataServiceException = PaymentCryptographyDataServiceException$1;
1929
1765
  exports.PinBlockFormatForEmvPinChange = PinBlockFormatForEmvPinChange;
1930
1766
  exports.PinBlockFormatForPinData = PinBlockFormatForPinData;
1931
1767
  exports.PinBlockLengthPosition = PinBlockLengthPosition;
1932
1768
  exports.PinBlockPaddingType = PinBlockPaddingType;
1933
- exports.PinDataFilterSensitiveLog = PinDataFilterSensitiveLog;
1934
- exports.PinGenerationAttributesFilterSensitiveLog = PinGenerationAttributesFilterSensitiveLog;
1935
- exports.PinVerificationAttributesFilterSensitiveLog = PinVerificationAttributesFilterSensitiveLog;
1936
1769
  exports.ReEncryptDataCommand = ReEncryptDataCommand;
1937
- exports.ReEncryptDataInputFilterSensitiveLog = ReEncryptDataInputFilterSensitiveLog;
1938
- exports.ReEncryptDataOutputFilterSensitiveLog = ReEncryptDataOutputFilterSensitiveLog;
1939
- exports.ReEncryptionAttributesFilterSensitiveLog = ReEncryptionAttributesFilterSensitiveLog;
1940
- exports.ResourceNotFoundException = ResourceNotFoundException;
1941
- exports.SessionKeyAmexFilterSensitiveLog = SessionKeyAmexFilterSensitiveLog;
1942
- exports.SessionKeyDerivationFilterSensitiveLog = SessionKeyDerivationFilterSensitiveLog;
1770
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1943
1771
  exports.SessionKeyDerivationMode = SessionKeyDerivationMode;
1944
- exports.SessionKeyDerivationValueFilterSensitiveLog = SessionKeyDerivationValueFilterSensitiveLog;
1945
- exports.SessionKeyEmv2000FilterSensitiveLog = SessionKeyEmv2000FilterSensitiveLog;
1946
- exports.SessionKeyEmvCommonFilterSensitiveLog = SessionKeyEmvCommonFilterSensitiveLog;
1947
- exports.SessionKeyMastercardFilterSensitiveLog = SessionKeyMastercardFilterSensitiveLog;
1948
- exports.SessionKeyVisaFilterSensitiveLog = SessionKeyVisaFilterSensitiveLog;
1949
- exports.SymmetricEncryptionAttributesFilterSensitiveLog = SymmetricEncryptionAttributesFilterSensitiveLog;
1950
1772
  exports.SymmetricKeyAlgorithm = SymmetricKeyAlgorithm;
1951
- exports.ThrottlingException = ThrottlingException;
1773
+ exports.ThrottlingException = ThrottlingException$1;
1952
1774
  exports.TranslateKeyMaterialCommand = TranslateKeyMaterialCommand;
1953
- exports.TranslateKeyMaterialInputFilterSensitiveLog = TranslateKeyMaterialInputFilterSensitiveLog;
1954
- exports.TranslateKeyMaterialOutputFilterSensitiveLog = TranslateKeyMaterialOutputFilterSensitiveLog;
1955
1775
  exports.TranslatePinDataCommand = TranslatePinDataCommand;
1956
- exports.TranslatePinDataInputFilterSensitiveLog = TranslatePinDataInputFilterSensitiveLog;
1957
- exports.TranslatePinDataOutputFilterSensitiveLog = TranslatePinDataOutputFilterSensitiveLog;
1958
- exports.TranslationIsoFormatsFilterSensitiveLog = TranslationIsoFormatsFilterSensitiveLog;
1959
- exports.TranslationPinDataIsoFormat034FilterSensitiveLog = TranslationPinDataIsoFormat034FilterSensitiveLog;
1960
- exports.ValidationException = ValidationException;
1961
- exports.VerificationFailedException = VerificationFailedException;
1776
+ exports.ValidationException = ValidationException$1;
1777
+ exports.VerificationFailedException = VerificationFailedException$1;
1962
1778
  exports.VerificationFailedReason = VerificationFailedReason;
1963
1779
  exports.VerifyAuthRequestCryptogramCommand = VerifyAuthRequestCryptogramCommand;
1964
- exports.VerifyAuthRequestCryptogramInputFilterSensitiveLog = VerifyAuthRequestCryptogramInputFilterSensitiveLog;
1965
- exports.VerifyAuthRequestCryptogramOutputFilterSensitiveLog = VerifyAuthRequestCryptogramOutputFilterSensitiveLog;
1966
1780
  exports.VerifyCardValidationDataCommand = VerifyCardValidationDataCommand;
1967
- exports.VerifyCardValidationDataInputFilterSensitiveLog = VerifyCardValidationDataInputFilterSensitiveLog;
1968
1781
  exports.VerifyMacCommand = VerifyMacCommand;
1969
- exports.VerifyMacInputFilterSensitiveLog = VerifyMacInputFilterSensitiveLog;
1970
1782
  exports.VerifyPinDataCommand = VerifyPinDataCommand;
1971
- exports.VerifyPinDataInputFilterSensitiveLog = VerifyPinDataInputFilterSensitiveLog;
1972
- exports.VisaAttributesFilterSensitiveLog = VisaAttributesFilterSensitiveLog;
1973
- exports.VisaPinVerificationFilterSensitiveLog = VisaPinVerificationFilterSensitiveLog;
1974
- exports.VisaPinVerificationValueFilterSensitiveLog = VisaPinVerificationValueFilterSensitiveLog;
1975
- exports.WrappedKeyFilterSensitiveLog = WrappedKeyFilterSensitiveLog;
1976
- exports.WrappedKeyMaterialFilterSensitiveLog = WrappedKeyMaterialFilterSensitiveLog;
1977
1783
  exports.WrappedKeyMaterialFormat = WrappedKeyMaterialFormat;
1978
- exports.WrappedWorkingKeyFilterSensitiveLog = WrappedWorkingKeyFilterSensitiveLog;