@aws-sdk/client-payment-cryptography-data 3.675.0 → 3.676.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/index.js +179 -5
- package/dist-es/PaymentCryptographyData.js +2 -0
- package/dist-es/commands/GenerateMacEmvPinChangeCommand.js +23 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +92 -4
- package/dist-es/protocols/Aws_restJson1.js +41 -0
- package/dist-types/PaymentCryptographyData.d.ts +7 -0
- package/dist-types/PaymentCryptographyDataClient.d.ts +3 -2
- package/dist-types/commands/DecryptDataCommand.d.ts +10 -9
- package/dist-types/commands/EncryptDataCommand.d.ts +11 -9
- package/dist-types/commands/GenerateMacCommand.d.ts +9 -9
- package/dist-types/commands/GenerateMacEmvPinChangeCommand.d.ts +173 -0
- package/dist-types/commands/GeneratePinDataCommand.d.ts +1 -1
- package/dist-types/commands/ReEncryptDataCommand.d.ts +11 -10
- package/dist-types/commands/TranslatePinDataCommand.d.ts +5 -4
- package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +1 -1
- package/dist-types/commands/VerifyMacCommand.d.ts +9 -9
- package/dist-types/commands/VerifyPinDataCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +475 -13
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/PaymentCryptographyData.d.ts +17 -0
- package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GenerateMacEmvPinChangeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +185 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -235,6 +235,14 @@ GenerateMac
|
|
|
235
235
|
|
|
236
236
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography-data/command/GenerateMacCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/GenerateMacCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/GenerateMacCommandOutput/)
|
|
237
237
|
|
|
238
|
+
</details>
|
|
239
|
+
<details>
|
|
240
|
+
<summary>
|
|
241
|
+
GenerateMacEmvPinChange
|
|
242
|
+
</summary>
|
|
243
|
+
|
|
244
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/payment-cryptography-data/command/GenerateMacEmvPinChangeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/GenerateMacEmvPinChangeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-payment-cryptography-data/Interface/GenerateMacEmvPinChangeCommandOutput/)
|
|
245
|
+
|
|
238
246
|
</details>
|
|
239
247
|
<details>
|
|
240
248
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AmexAttributesFilterSensitiveLog: () => AmexAttributesFilterSensitiveLog,
|
|
25
26
|
AmexCardSecurityCodeVersion1FilterSensitiveLog: () => AmexCardSecurityCodeVersion1FilterSensitiveLog,
|
|
26
27
|
AmexCardSecurityCodeVersion2FilterSensitiveLog: () => AmexCardSecurityCodeVersion2FilterSensitiveLog,
|
|
27
28
|
CardGenerationAttributes: () => CardGenerationAttributes,
|
|
@@ -33,9 +34,12 @@ __export(src_exports, {
|
|
|
33
34
|
CryptogramAuthResponse: () => CryptogramAuthResponse,
|
|
34
35
|
CryptogramAuthResponseFilterSensitiveLog: () => CryptogramAuthResponseFilterSensitiveLog,
|
|
35
36
|
CryptogramVerificationArpcMethod2FilterSensitiveLog: () => CryptogramVerificationArpcMethod2FilterSensitiveLog,
|
|
37
|
+
CurrentPinAttributesFilterSensitiveLog: () => CurrentPinAttributesFilterSensitiveLog,
|
|
36
38
|
DecryptDataCommand: () => DecryptDataCommand,
|
|
37
39
|
DecryptDataInputFilterSensitiveLog: () => DecryptDataInputFilterSensitiveLog,
|
|
38
40
|
DecryptDataOutputFilterSensitiveLog: () => DecryptDataOutputFilterSensitiveLog,
|
|
41
|
+
DerivationMethodAttributes: () => DerivationMethodAttributes,
|
|
42
|
+
DerivationMethodAttributesFilterSensitiveLog: () => DerivationMethodAttributesFilterSensitiveLog,
|
|
39
43
|
DiscoverDynamicCardVerificationCodeFilterSensitiveLog: () => DiscoverDynamicCardVerificationCodeFilterSensitiveLog,
|
|
40
44
|
DukptDerivationType: () => DukptDerivationType,
|
|
41
45
|
DukptEncryptionAttributesFilterSensitiveLog: () => DukptEncryptionAttributesFilterSensitiveLog,
|
|
@@ -43,6 +47,8 @@ __export(src_exports, {
|
|
|
43
47
|
DukptKeyVariant: () => DukptKeyVariant,
|
|
44
48
|
DynamicCardVerificationCodeFilterSensitiveLog: () => DynamicCardVerificationCodeFilterSensitiveLog,
|
|
45
49
|
DynamicCardVerificationValueFilterSensitiveLog: () => DynamicCardVerificationValueFilterSensitiveLog,
|
|
50
|
+
Emv2000AttributesFilterSensitiveLog: () => Emv2000AttributesFilterSensitiveLog,
|
|
51
|
+
EmvCommonAttributesFilterSensitiveLog: () => EmvCommonAttributesFilterSensitiveLog,
|
|
46
52
|
EmvEncryptionAttributesFilterSensitiveLog: () => EmvEncryptionAttributesFilterSensitiveLog,
|
|
47
53
|
EmvEncryptionMode: () => EmvEncryptionMode,
|
|
48
54
|
EmvMajorKeyDerivationMode: () => EmvMajorKeyDerivationMode,
|
|
@@ -56,6 +62,9 @@ __export(src_exports, {
|
|
|
56
62
|
GenerateCardValidationDataInputFilterSensitiveLog: () => GenerateCardValidationDataInputFilterSensitiveLog,
|
|
57
63
|
GenerateCardValidationDataOutputFilterSensitiveLog: () => GenerateCardValidationDataOutputFilterSensitiveLog,
|
|
58
64
|
GenerateMacCommand: () => GenerateMacCommand,
|
|
65
|
+
GenerateMacEmvPinChangeCommand: () => GenerateMacEmvPinChangeCommand,
|
|
66
|
+
GenerateMacEmvPinChangeInputFilterSensitiveLog: () => GenerateMacEmvPinChangeInputFilterSensitiveLog,
|
|
67
|
+
GenerateMacEmvPinChangeOutputFilterSensitiveLog: () => GenerateMacEmvPinChangeOutputFilterSensitiveLog,
|
|
59
68
|
GenerateMacInputFilterSensitiveLog: () => GenerateMacInputFilterSensitiveLog,
|
|
60
69
|
GenerateMacOutputFilterSensitiveLog: () => GenerateMacOutputFilterSensitiveLog,
|
|
61
70
|
GeneratePinDataCommand: () => GeneratePinDataCommand,
|
|
@@ -73,11 +82,15 @@ __export(src_exports, {
|
|
|
73
82
|
MacAttributes: () => MacAttributes,
|
|
74
83
|
MacAttributesFilterSensitiveLog: () => MacAttributesFilterSensitiveLog,
|
|
75
84
|
MajorKeyDerivationMode: () => MajorKeyDerivationMode,
|
|
85
|
+
MasterCardAttributesFilterSensitiveLog: () => MasterCardAttributesFilterSensitiveLog,
|
|
76
86
|
PaddingType: () => PaddingType,
|
|
77
87
|
PaymentCryptographyData: () => PaymentCryptographyData,
|
|
78
88
|
PaymentCryptographyDataClient: () => PaymentCryptographyDataClient,
|
|
79
89
|
PaymentCryptographyDataServiceException: () => PaymentCryptographyDataServiceException,
|
|
90
|
+
PinBlockFormatForEmvPinChange: () => PinBlockFormatForEmvPinChange,
|
|
80
91
|
PinBlockFormatForPinData: () => PinBlockFormatForPinData,
|
|
92
|
+
PinBlockLengthPosition: () => PinBlockLengthPosition,
|
|
93
|
+
PinBlockPaddingType: () => PinBlockPaddingType,
|
|
81
94
|
PinData: () => PinData,
|
|
82
95
|
PinDataFilterSensitiveLog: () => PinDataFilterSensitiveLog,
|
|
83
96
|
PinGenerationAttributes: () => PinGenerationAttributes,
|
|
@@ -120,6 +133,7 @@ __export(src_exports, {
|
|
|
120
133
|
VerifyMacInputFilterSensitiveLog: () => VerifyMacInputFilterSensitiveLog,
|
|
121
134
|
VerifyPinDataCommand: () => VerifyPinDataCommand,
|
|
122
135
|
VerifyPinDataInputFilterSensitiveLog: () => VerifyPinDataInputFilterSensitiveLog,
|
|
136
|
+
VisaAttributesFilterSensitiveLog: () => VisaAttributesFilterSensitiveLog,
|
|
123
137
|
VisaPinVerificationFilterSensitiveLog: () => VisaPinVerificationFilterSensitiveLog,
|
|
124
138
|
VisaPinVerificationValueFilterSensitiveLog: () => VisaPinVerificationValueFilterSensitiveLog,
|
|
125
139
|
WrappedKeyFilterSensitiveLog: () => WrappedKeyFilterSensitiveLog,
|
|
@@ -310,6 +324,10 @@ var _AccessDeniedException = class _AccessDeniedException extends PaymentCryptog
|
|
|
310
324
|
};
|
|
311
325
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
312
326
|
var AccessDeniedException = _AccessDeniedException;
|
|
327
|
+
var MajorKeyDerivationMode = {
|
|
328
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
329
|
+
EMV_OPTION_B: "EMV_OPTION_B"
|
|
330
|
+
};
|
|
313
331
|
var PaddingType = {
|
|
314
332
|
OAEP_SHA1: "OAEP_SHA1",
|
|
315
333
|
OAEP_SHA256: "OAEP_SHA256",
|
|
@@ -500,6 +518,30 @@ var _ValidationException = class _ValidationException extends PaymentCryptograph
|
|
|
500
518
|
};
|
|
501
519
|
__name(_ValidationException, "ValidationException");
|
|
502
520
|
var ValidationException = _ValidationException;
|
|
521
|
+
var PinBlockLengthPosition = {
|
|
522
|
+
FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
|
|
523
|
+
NONE: "NONE"
|
|
524
|
+
};
|
|
525
|
+
var PinBlockPaddingType = {
|
|
526
|
+
ISO_IEC_7816_4: "ISO_IEC_7816_4",
|
|
527
|
+
NO_PADDING: "NO_PADDING"
|
|
528
|
+
};
|
|
529
|
+
var DerivationMethodAttributes;
|
|
530
|
+
((DerivationMethodAttributes3) => {
|
|
531
|
+
DerivationMethodAttributes3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
532
|
+
if (value.EmvCommon !== void 0)
|
|
533
|
+
return visitor.EmvCommon(value.EmvCommon);
|
|
534
|
+
if (value.Amex !== void 0)
|
|
535
|
+
return visitor.Amex(value.Amex);
|
|
536
|
+
if (value.Visa !== void 0)
|
|
537
|
+
return visitor.Visa(value.Visa);
|
|
538
|
+
if (value.Emv2000 !== void 0)
|
|
539
|
+
return visitor.Emv2000(value.Emv2000);
|
|
540
|
+
if (value.Mastercard !== void 0)
|
|
541
|
+
return visitor.Mastercard(value.Mastercard);
|
|
542
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
543
|
+
}, "visit");
|
|
544
|
+
})(DerivationMethodAttributes || (DerivationMethodAttributes = {}));
|
|
503
545
|
var MacAlgorithm = {
|
|
504
546
|
CMAC: "CMAC",
|
|
505
547
|
HMAC_SHA224: "HMAC_SHA224",
|
|
@@ -509,10 +551,6 @@ var MacAlgorithm = {
|
|
|
509
551
|
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
510
552
|
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3"
|
|
511
553
|
};
|
|
512
|
-
var MajorKeyDerivationMode = {
|
|
513
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
514
|
-
EMV_OPTION_B: "EMV_OPTION_B"
|
|
515
|
-
};
|
|
516
554
|
var SessionKeyDerivationMode = {
|
|
517
555
|
AMEX: "AMEX",
|
|
518
556
|
EMV2000: "EMV2000",
|
|
@@ -546,6 +584,11 @@ var MacAttributes;
|
|
|
546
584
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
547
585
|
}, "visit");
|
|
548
586
|
})(MacAttributes || (MacAttributes = {}));
|
|
587
|
+
var PinBlockFormatForEmvPinChange = {
|
|
588
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
589
|
+
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
590
|
+
ISO_FORMAT_3: "ISO_FORMAT_3"
|
|
591
|
+
};
|
|
549
592
|
var PinGenerationAttributes;
|
|
550
593
|
((PinGenerationAttributes3) => {
|
|
551
594
|
PinGenerationAttributes3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -653,6 +696,17 @@ var PinVerificationAttributes;
|
|
|
653
696
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
654
697
|
}, "visit");
|
|
655
698
|
})(PinVerificationAttributes || (PinVerificationAttributes = {}));
|
|
699
|
+
var CurrentPinAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
700
|
+
...obj,
|
|
701
|
+
...obj.CurrentEncryptedPinBlock && { CurrentEncryptedPinBlock: import_smithy_client.SENSITIVE_STRING }
|
|
702
|
+
}), "CurrentPinAttributesFilterSensitiveLog");
|
|
703
|
+
var AmexAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
704
|
+
...obj,
|
|
705
|
+
...obj.PrimaryAccountNumber && { PrimaryAccountNumber: import_smithy_client.SENSITIVE_STRING },
|
|
706
|
+
...obj.CurrentPinAttributes && {
|
|
707
|
+
CurrentPinAttributes: CurrentPinAttributesFilterSensitiveLog(obj.CurrentPinAttributes)
|
|
708
|
+
}
|
|
709
|
+
}), "AmexAttributesFilterSensitiveLog");
|
|
656
710
|
var AmexCardSecurityCodeVersion1FilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
657
711
|
...obj,
|
|
658
712
|
...obj.CardExpiryDate && { CardExpiryDate: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -802,6 +856,41 @@ var DecryptDataOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
802
856
|
...obj,
|
|
803
857
|
...obj.PlainText && { PlainText: import_smithy_client.SENSITIVE_STRING }
|
|
804
858
|
}), "DecryptDataOutputFilterSensitiveLog");
|
|
859
|
+
var Emv2000AttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
860
|
+
...obj,
|
|
861
|
+
...obj.PrimaryAccountNumber && { PrimaryAccountNumber: import_smithy_client.SENSITIVE_STRING }
|
|
862
|
+
}), "Emv2000AttributesFilterSensitiveLog");
|
|
863
|
+
var EmvCommonAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
864
|
+
...obj,
|
|
865
|
+
...obj.PrimaryAccountNumber && { PrimaryAccountNumber: import_smithy_client.SENSITIVE_STRING },
|
|
866
|
+
...obj.ApplicationCryptogram && { ApplicationCryptogram: import_smithy_client.SENSITIVE_STRING }
|
|
867
|
+
}), "EmvCommonAttributesFilterSensitiveLog");
|
|
868
|
+
var MasterCardAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
869
|
+
...obj,
|
|
870
|
+
...obj.PrimaryAccountNumber && { PrimaryAccountNumber: import_smithy_client.SENSITIVE_STRING },
|
|
871
|
+
...obj.ApplicationCryptogram && { ApplicationCryptogram: import_smithy_client.SENSITIVE_STRING }
|
|
872
|
+
}), "MasterCardAttributesFilterSensitiveLog");
|
|
873
|
+
var VisaAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
874
|
+
...obj,
|
|
875
|
+
...obj.PrimaryAccountNumber && { PrimaryAccountNumber: import_smithy_client.SENSITIVE_STRING },
|
|
876
|
+
...obj.CurrentPinAttributes && {
|
|
877
|
+
CurrentPinAttributes: CurrentPinAttributesFilterSensitiveLog(obj.CurrentPinAttributes)
|
|
878
|
+
}
|
|
879
|
+
}), "VisaAttributesFilterSensitiveLog");
|
|
880
|
+
var DerivationMethodAttributesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
881
|
+
if (obj.EmvCommon !== void 0)
|
|
882
|
+
return { EmvCommon: EmvCommonAttributesFilterSensitiveLog(obj.EmvCommon) };
|
|
883
|
+
if (obj.Amex !== void 0)
|
|
884
|
+
return { Amex: AmexAttributesFilterSensitiveLog(obj.Amex) };
|
|
885
|
+
if (obj.Visa !== void 0)
|
|
886
|
+
return { Visa: VisaAttributesFilterSensitiveLog(obj.Visa) };
|
|
887
|
+
if (obj.Emv2000 !== void 0)
|
|
888
|
+
return { Emv2000: Emv2000AttributesFilterSensitiveLog(obj.Emv2000) };
|
|
889
|
+
if (obj.Mastercard !== void 0)
|
|
890
|
+
return { Mastercard: MasterCardAttributesFilterSensitiveLog(obj.Mastercard) };
|
|
891
|
+
if (obj.$unknown !== void 0)
|
|
892
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
893
|
+
}, "DerivationMethodAttributesFilterSensitiveLog");
|
|
805
894
|
var EncryptDataInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
806
895
|
...obj,
|
|
807
896
|
...obj.PlainText && { PlainText: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -863,6 +952,19 @@ var GenerateMacOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
863
952
|
...obj,
|
|
864
953
|
...obj.Mac && { Mac: import_smithy_client.SENSITIVE_STRING }
|
|
865
954
|
}), "GenerateMacOutputFilterSensitiveLog");
|
|
955
|
+
var GenerateMacEmvPinChangeInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
956
|
+
...obj,
|
|
957
|
+
...obj.NewEncryptedPinBlock && { NewEncryptedPinBlock: import_smithy_client.SENSITIVE_STRING },
|
|
958
|
+
...obj.MessageData && { MessageData: import_smithy_client.SENSITIVE_STRING },
|
|
959
|
+
...obj.DerivationMethodAttributes && {
|
|
960
|
+
DerivationMethodAttributes: DerivationMethodAttributesFilterSensitiveLog(obj.DerivationMethodAttributes)
|
|
961
|
+
}
|
|
962
|
+
}), "GenerateMacEmvPinChangeInputFilterSensitiveLog");
|
|
963
|
+
var GenerateMacEmvPinChangeOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
964
|
+
...obj,
|
|
965
|
+
...obj.Mac && { Mac: import_smithy_client.SENSITIVE_STRING },
|
|
966
|
+
...obj.EncryptedPinBlock && { EncryptedPinBlock: import_smithy_client.SENSITIVE_STRING }
|
|
967
|
+
}), "GenerateMacEmvPinChangeOutputFilterSensitiveLog");
|
|
866
968
|
var Ibm3624NaturalPinFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
867
969
|
...obj,
|
|
868
970
|
...obj.DecimalizationTable && { DecimalizationTable: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -1149,6 +1251,27 @@ var se_GenerateMacCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1149
1251
|
b.m("POST").h(headers).b(body);
|
|
1150
1252
|
return b.build();
|
|
1151
1253
|
}, "se_GenerateMacCommand");
|
|
1254
|
+
var se_GenerateMacEmvPinChangeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1255
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1256
|
+
const headers = {
|
|
1257
|
+
"content-type": "application/json"
|
|
1258
|
+
};
|
|
1259
|
+
b.bp("/macemvpinchange/generate");
|
|
1260
|
+
let body;
|
|
1261
|
+
body = JSON.stringify(
|
|
1262
|
+
(0, import_smithy_client.take)(input, {
|
|
1263
|
+
DerivationMethodAttributes: (_) => (0, import_smithy_client._json)(_),
|
|
1264
|
+
MessageData: [],
|
|
1265
|
+
NewEncryptedPinBlock: [],
|
|
1266
|
+
NewPinPekIdentifier: [],
|
|
1267
|
+
PinBlockFormat: [],
|
|
1268
|
+
SecureMessagingConfidentialityKeyIdentifier: [],
|
|
1269
|
+
SecureMessagingIntegrityKeyIdentifier: []
|
|
1270
|
+
})
|
|
1271
|
+
);
|
|
1272
|
+
b.m("POST").h(headers).b(body);
|
|
1273
|
+
return b.build();
|
|
1274
|
+
}, "se_GenerateMacEmvPinChangeCommand");
|
|
1152
1275
|
var se_GeneratePinDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1153
1276
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1154
1277
|
const headers = {
|
|
@@ -1356,6 +1479,28 @@ var de_GenerateMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1356
1479
|
Object.assign(contents, doc);
|
|
1357
1480
|
return contents;
|
|
1358
1481
|
}, "de_GenerateMacCommand");
|
|
1482
|
+
var de_GenerateMacEmvPinChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
|
+
return de_CommandError(output, context);
|
|
1485
|
+
}
|
|
1486
|
+
const contents = (0, import_smithy_client.map)({
|
|
1487
|
+
$metadata: deserializeMetadata(output)
|
|
1488
|
+
});
|
|
1489
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1490
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1491
|
+
EncryptedPinBlock: import_smithy_client.expectString,
|
|
1492
|
+
Mac: import_smithy_client.expectString,
|
|
1493
|
+
NewPinPekArn: import_smithy_client.expectString,
|
|
1494
|
+
NewPinPekKeyCheckValue: import_smithy_client.expectString,
|
|
1495
|
+
SecureMessagingConfidentialityKeyArn: import_smithy_client.expectString,
|
|
1496
|
+
SecureMessagingConfidentialityKeyCheckValue: import_smithy_client.expectString,
|
|
1497
|
+
SecureMessagingIntegrityKeyArn: import_smithy_client.expectString,
|
|
1498
|
+
SecureMessagingIntegrityKeyCheckValue: import_smithy_client.expectString,
|
|
1499
|
+
VisaAmexDerivationOutputs: import_smithy_client._json
|
|
1500
|
+
});
|
|
1501
|
+
Object.assign(contents, doc);
|
|
1502
|
+
return contents;
|
|
1503
|
+
}, "de_GenerateMacEmvPinChangeCommand");
|
|
1359
1504
|
var de_GeneratePinDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
1505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1361
1506
|
return de_CommandError(output, context);
|
|
@@ -1645,6 +1790,20 @@ var _GenerateMacCommand = class _GenerateMacCommand extends import_smithy_client
|
|
|
1645
1790
|
__name(_GenerateMacCommand, "GenerateMacCommand");
|
|
1646
1791
|
var GenerateMacCommand = _GenerateMacCommand;
|
|
1647
1792
|
|
|
1793
|
+
// src/commands/GenerateMacEmvPinChangeCommand.ts
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
var _GenerateMacEmvPinChangeCommand = class _GenerateMacEmvPinChangeCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1798
|
+
return [
|
|
1799
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1800
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1801
|
+
];
|
|
1802
|
+
}).s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {}).n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand").f(GenerateMacEmvPinChangeInputFilterSensitiveLog, GenerateMacEmvPinChangeOutputFilterSensitiveLog).ser(se_GenerateMacEmvPinChangeCommand).de(de_GenerateMacEmvPinChangeCommand).build() {
|
|
1803
|
+
};
|
|
1804
|
+
__name(_GenerateMacEmvPinChangeCommand, "GenerateMacEmvPinChangeCommand");
|
|
1805
|
+
var GenerateMacEmvPinChangeCommand = _GenerateMacEmvPinChangeCommand;
|
|
1806
|
+
|
|
1648
1807
|
// src/commands/GeneratePinDataCommand.ts
|
|
1649
1808
|
|
|
1650
1809
|
|
|
@@ -1749,6 +1908,7 @@ var commands = {
|
|
|
1749
1908
|
EncryptDataCommand,
|
|
1750
1909
|
GenerateCardValidationDataCommand,
|
|
1751
1910
|
GenerateMacCommand,
|
|
1911
|
+
GenerateMacEmvPinChangeCommand,
|
|
1752
1912
|
GeneratePinDataCommand,
|
|
1753
1913
|
ReEncryptDataCommand,
|
|
1754
1914
|
TranslatePinDataCommand,
|
|
@@ -1774,6 +1934,7 @@ var PaymentCryptographyData = _PaymentCryptographyData;
|
|
|
1774
1934
|
EncryptDataCommand,
|
|
1775
1935
|
GenerateCardValidationDataCommand,
|
|
1776
1936
|
GenerateMacCommand,
|
|
1937
|
+
GenerateMacEmvPinChangeCommand,
|
|
1777
1938
|
GeneratePinDataCommand,
|
|
1778
1939
|
ReEncryptDataCommand,
|
|
1779
1940
|
TranslatePinDataCommand,
|
|
@@ -1782,6 +1943,7 @@ var PaymentCryptographyData = _PaymentCryptographyData;
|
|
|
1782
1943
|
VerifyMacCommand,
|
|
1783
1944
|
VerifyPinDataCommand,
|
|
1784
1945
|
AccessDeniedException,
|
|
1946
|
+
MajorKeyDerivationMode,
|
|
1785
1947
|
PaddingType,
|
|
1786
1948
|
CardGenerationAttributes,
|
|
1787
1949
|
CardVerificationAttributes,
|
|
@@ -1799,11 +1961,14 @@ var PaymentCryptographyData = _PaymentCryptographyData;
|
|
|
1799
1961
|
ResourceNotFoundException,
|
|
1800
1962
|
ThrottlingException,
|
|
1801
1963
|
ValidationException,
|
|
1964
|
+
PinBlockLengthPosition,
|
|
1965
|
+
PinBlockPaddingType,
|
|
1966
|
+
DerivationMethodAttributes,
|
|
1802
1967
|
MacAlgorithm,
|
|
1803
|
-
MajorKeyDerivationMode,
|
|
1804
1968
|
SessionKeyDerivationMode,
|
|
1805
1969
|
SessionKeyDerivationValue,
|
|
1806
1970
|
MacAttributes,
|
|
1971
|
+
PinBlockFormatForEmvPinChange,
|
|
1807
1972
|
PinGenerationAttributes,
|
|
1808
1973
|
PinBlockFormatForPinData,
|
|
1809
1974
|
PinData,
|
|
@@ -1813,6 +1978,8 @@ var PaymentCryptographyData = _PaymentCryptographyData;
|
|
|
1813
1978
|
VerificationFailedException,
|
|
1814
1979
|
SessionKeyDerivation,
|
|
1815
1980
|
PinVerificationAttributes,
|
|
1981
|
+
CurrentPinAttributesFilterSensitiveLog,
|
|
1982
|
+
AmexAttributesFilterSensitiveLog,
|
|
1816
1983
|
AmexCardSecurityCodeVersion1FilterSensitiveLog,
|
|
1817
1984
|
AmexCardSecurityCodeVersion2FilterSensitiveLog,
|
|
1818
1985
|
CardVerificationValue1FilterSensitiveLog,
|
|
@@ -1832,6 +1999,11 @@ var PaymentCryptographyData = _PaymentCryptographyData;
|
|
|
1832
1999
|
WrappedKeyFilterSensitiveLog,
|
|
1833
2000
|
DecryptDataInputFilterSensitiveLog,
|
|
1834
2001
|
DecryptDataOutputFilterSensitiveLog,
|
|
2002
|
+
Emv2000AttributesFilterSensitiveLog,
|
|
2003
|
+
EmvCommonAttributesFilterSensitiveLog,
|
|
2004
|
+
MasterCardAttributesFilterSensitiveLog,
|
|
2005
|
+
VisaAttributesFilterSensitiveLog,
|
|
2006
|
+
DerivationMethodAttributesFilterSensitiveLog,
|
|
1835
2007
|
EncryptDataInputFilterSensitiveLog,
|
|
1836
2008
|
EncryptDataOutputFilterSensitiveLog,
|
|
1837
2009
|
GenerateCardValidationDataInputFilterSensitiveLog,
|
|
@@ -1841,6 +2013,8 @@ var PaymentCryptographyData = _PaymentCryptographyData;
|
|
|
1841
2013
|
MacAttributesFilterSensitiveLog,
|
|
1842
2014
|
GenerateMacInputFilterSensitiveLog,
|
|
1843
2015
|
GenerateMacOutputFilterSensitiveLog,
|
|
2016
|
+
GenerateMacEmvPinChangeInputFilterSensitiveLog,
|
|
2017
|
+
GenerateMacEmvPinChangeOutputFilterSensitiveLog,
|
|
1844
2018
|
Ibm3624NaturalPinFilterSensitiveLog,
|
|
1845
2019
|
Ibm3624PinFromOffsetFilterSensitiveLog,
|
|
1846
2020
|
Ibm3624PinOffsetFilterSensitiveLog,
|
|
@@ -3,6 +3,7 @@ import { DecryptDataCommand } from "./commands/DecryptDataCommand";
|
|
|
3
3
|
import { EncryptDataCommand } from "./commands/EncryptDataCommand";
|
|
4
4
|
import { GenerateCardValidationDataCommand, } from "./commands/GenerateCardValidationDataCommand";
|
|
5
5
|
import { GenerateMacCommand } from "./commands/GenerateMacCommand";
|
|
6
|
+
import { GenerateMacEmvPinChangeCommand, } from "./commands/GenerateMacEmvPinChangeCommand";
|
|
6
7
|
import { GeneratePinDataCommand, } from "./commands/GeneratePinDataCommand";
|
|
7
8
|
import { ReEncryptDataCommand, } from "./commands/ReEncryptDataCommand";
|
|
8
9
|
import { TranslatePinDataCommand, } from "./commands/TranslatePinDataCommand";
|
|
@@ -16,6 +17,7 @@ const commands = {
|
|
|
16
17
|
EncryptDataCommand,
|
|
17
18
|
GenerateCardValidationDataCommand,
|
|
18
19
|
GenerateMacCommand,
|
|
20
|
+
GenerateMacEmvPinChangeCommand,
|
|
19
21
|
GeneratePinDataCommand,
|
|
20
22
|
ReEncryptDataCommand,
|
|
21
23
|
TranslatePinDataCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GenerateMacEmvPinChangeInputFilterSensitiveLog, GenerateMacEmvPinChangeOutputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_GenerateMacEmvPinChangeCommand, se_GenerateMacEmvPinChangeCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GenerateMacEmvPinChangeCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("PaymentCryptographyDataPlane", "GenerateMacEmvPinChange", {})
|
|
18
|
+
.n("PaymentCryptographyDataClient", "GenerateMacEmvPinChangeCommand")
|
|
19
|
+
.f(GenerateMacEmvPinChangeInputFilterSensitiveLog, GenerateMacEmvPinChangeOutputFilterSensitiveLog)
|
|
20
|
+
.ser(se_GenerateMacEmvPinChangeCommand)
|
|
21
|
+
.de(de_GenerateMacEmvPinChangeCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./DecryptDataCommand";
|
|
|
2
2
|
export * from "./EncryptDataCommand";
|
|
3
3
|
export * from "./GenerateCardValidationDataCommand";
|
|
4
4
|
export * from "./GenerateMacCommand";
|
|
5
|
+
export * from "./GenerateMacEmvPinChangeCommand";
|
|
5
6
|
export * from "./GeneratePinDataCommand";
|
|
6
7
|
export * from "./ReEncryptDataCommand";
|
|
7
8
|
export * from "./TranslatePinDataCommand";
|
|
@@ -13,6 +13,10 @@ export class AccessDeniedException extends __BaseException {
|
|
|
13
13
|
this.Message = opts.Message;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
export const MajorKeyDerivationMode = {
|
|
17
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
18
|
+
EMV_OPTION_B: "EMV_OPTION_B",
|
|
19
|
+
};
|
|
16
20
|
export const PaddingType = {
|
|
17
21
|
OAEP_SHA1: "OAEP_SHA1",
|
|
18
22
|
OAEP_SHA256: "OAEP_SHA256",
|
|
@@ -183,6 +187,30 @@ export class ValidationException extends __BaseException {
|
|
|
183
187
|
this.fieldList = opts.fieldList;
|
|
184
188
|
}
|
|
185
189
|
}
|
|
190
|
+
export const PinBlockLengthPosition = {
|
|
191
|
+
FRONT_OF_PIN_BLOCK: "FRONT_OF_PIN_BLOCK",
|
|
192
|
+
NONE: "NONE",
|
|
193
|
+
};
|
|
194
|
+
export const PinBlockPaddingType = {
|
|
195
|
+
ISO_IEC_7816_4: "ISO_IEC_7816_4",
|
|
196
|
+
NO_PADDING: "NO_PADDING",
|
|
197
|
+
};
|
|
198
|
+
export var DerivationMethodAttributes;
|
|
199
|
+
(function (DerivationMethodAttributes) {
|
|
200
|
+
DerivationMethodAttributes.visit = (value, visitor) => {
|
|
201
|
+
if (value.EmvCommon !== undefined)
|
|
202
|
+
return visitor.EmvCommon(value.EmvCommon);
|
|
203
|
+
if (value.Amex !== undefined)
|
|
204
|
+
return visitor.Amex(value.Amex);
|
|
205
|
+
if (value.Visa !== undefined)
|
|
206
|
+
return visitor.Visa(value.Visa);
|
|
207
|
+
if (value.Emv2000 !== undefined)
|
|
208
|
+
return visitor.Emv2000(value.Emv2000);
|
|
209
|
+
if (value.Mastercard !== undefined)
|
|
210
|
+
return visitor.Mastercard(value.Mastercard);
|
|
211
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
212
|
+
};
|
|
213
|
+
})(DerivationMethodAttributes || (DerivationMethodAttributes = {}));
|
|
186
214
|
export const MacAlgorithm = {
|
|
187
215
|
CMAC: "CMAC",
|
|
188
216
|
HMAC_SHA224: "HMAC_SHA224",
|
|
@@ -192,10 +220,6 @@ export const MacAlgorithm = {
|
|
|
192
220
|
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
193
221
|
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
194
222
|
};
|
|
195
|
-
export const MajorKeyDerivationMode = {
|
|
196
|
-
EMV_OPTION_A: "EMV_OPTION_A",
|
|
197
|
-
EMV_OPTION_B: "EMV_OPTION_B",
|
|
198
|
-
};
|
|
199
223
|
export const SessionKeyDerivationMode = {
|
|
200
224
|
AMEX: "AMEX",
|
|
201
225
|
EMV2000: "EMV2000",
|
|
@@ -229,6 +253,11 @@ export var MacAttributes;
|
|
|
229
253
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
230
254
|
};
|
|
231
255
|
})(MacAttributes || (MacAttributes = {}));
|
|
256
|
+
export const PinBlockFormatForEmvPinChange = {
|
|
257
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
258
|
+
ISO_FORMAT_1: "ISO_FORMAT_1",
|
|
259
|
+
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
260
|
+
};
|
|
232
261
|
export var PinGenerationAttributes;
|
|
233
262
|
(function (PinGenerationAttributes) {
|
|
234
263
|
PinGenerationAttributes.visit = (value, visitor) => {
|
|
@@ -331,6 +360,17 @@ export var PinVerificationAttributes;
|
|
|
331
360
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
332
361
|
};
|
|
333
362
|
})(PinVerificationAttributes || (PinVerificationAttributes = {}));
|
|
363
|
+
export const CurrentPinAttributesFilterSensitiveLog = (obj) => ({
|
|
364
|
+
...obj,
|
|
365
|
+
...(obj.CurrentEncryptedPinBlock && { CurrentEncryptedPinBlock: SENSITIVE_STRING }),
|
|
366
|
+
});
|
|
367
|
+
export const AmexAttributesFilterSensitiveLog = (obj) => ({
|
|
368
|
+
...obj,
|
|
369
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
370
|
+
...(obj.CurrentPinAttributes && {
|
|
371
|
+
CurrentPinAttributes: CurrentPinAttributesFilterSensitiveLog(obj.CurrentPinAttributes),
|
|
372
|
+
}),
|
|
373
|
+
});
|
|
334
374
|
export const AmexCardSecurityCodeVersion1FilterSensitiveLog = (obj) => ({
|
|
335
375
|
...obj,
|
|
336
376
|
...(obj.CardExpiryDate && { CardExpiryDate: SENSITIVE_STRING }),
|
|
@@ -478,6 +518,41 @@ export const DecryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
|
478
518
|
...obj,
|
|
479
519
|
...(obj.PlainText && { PlainText: SENSITIVE_STRING }),
|
|
480
520
|
});
|
|
521
|
+
export const Emv2000AttributesFilterSensitiveLog = (obj) => ({
|
|
522
|
+
...obj,
|
|
523
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
524
|
+
});
|
|
525
|
+
export const EmvCommonAttributesFilterSensitiveLog = (obj) => ({
|
|
526
|
+
...obj,
|
|
527
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
528
|
+
...(obj.ApplicationCryptogram && { ApplicationCryptogram: SENSITIVE_STRING }),
|
|
529
|
+
});
|
|
530
|
+
export const MasterCardAttributesFilterSensitiveLog = (obj) => ({
|
|
531
|
+
...obj,
|
|
532
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
533
|
+
...(obj.ApplicationCryptogram && { ApplicationCryptogram: SENSITIVE_STRING }),
|
|
534
|
+
});
|
|
535
|
+
export const VisaAttributesFilterSensitiveLog = (obj) => ({
|
|
536
|
+
...obj,
|
|
537
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
538
|
+
...(obj.CurrentPinAttributes && {
|
|
539
|
+
CurrentPinAttributes: CurrentPinAttributesFilterSensitiveLog(obj.CurrentPinAttributes),
|
|
540
|
+
}),
|
|
541
|
+
});
|
|
542
|
+
export const DerivationMethodAttributesFilterSensitiveLog = (obj) => {
|
|
543
|
+
if (obj.EmvCommon !== undefined)
|
|
544
|
+
return { EmvCommon: EmvCommonAttributesFilterSensitiveLog(obj.EmvCommon) };
|
|
545
|
+
if (obj.Amex !== undefined)
|
|
546
|
+
return { Amex: AmexAttributesFilterSensitiveLog(obj.Amex) };
|
|
547
|
+
if (obj.Visa !== undefined)
|
|
548
|
+
return { Visa: VisaAttributesFilterSensitiveLog(obj.Visa) };
|
|
549
|
+
if (obj.Emv2000 !== undefined)
|
|
550
|
+
return { Emv2000: Emv2000AttributesFilterSensitiveLog(obj.Emv2000) };
|
|
551
|
+
if (obj.Mastercard !== undefined)
|
|
552
|
+
return { Mastercard: MasterCardAttributesFilterSensitiveLog(obj.Mastercard) };
|
|
553
|
+
if (obj.$unknown !== undefined)
|
|
554
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
555
|
+
};
|
|
481
556
|
export const EncryptDataInputFilterSensitiveLog = (obj) => ({
|
|
482
557
|
...obj,
|
|
483
558
|
...(obj.PlainText && { PlainText: SENSITIVE_STRING }),
|
|
@@ -539,6 +614,19 @@ export const GenerateMacOutputFilterSensitiveLog = (obj) => ({
|
|
|
539
614
|
...obj,
|
|
540
615
|
...(obj.Mac && { Mac: SENSITIVE_STRING }),
|
|
541
616
|
});
|
|
617
|
+
export const GenerateMacEmvPinChangeInputFilterSensitiveLog = (obj) => ({
|
|
618
|
+
...obj,
|
|
619
|
+
...(obj.NewEncryptedPinBlock && { NewEncryptedPinBlock: SENSITIVE_STRING }),
|
|
620
|
+
...(obj.MessageData && { MessageData: SENSITIVE_STRING }),
|
|
621
|
+
...(obj.DerivationMethodAttributes && {
|
|
622
|
+
DerivationMethodAttributes: DerivationMethodAttributesFilterSensitiveLog(obj.DerivationMethodAttributes),
|
|
623
|
+
}),
|
|
624
|
+
});
|
|
625
|
+
export const GenerateMacEmvPinChangeOutputFilterSensitiveLog = (obj) => ({
|
|
626
|
+
...obj,
|
|
627
|
+
...(obj.Mac && { Mac: SENSITIVE_STRING }),
|
|
628
|
+
...(obj.EncryptedPinBlock && { EncryptedPinBlock: SENSITIVE_STRING }),
|
|
629
|
+
});
|
|
542
630
|
export const Ibm3624NaturalPinFilterSensitiveLog = (obj) => ({
|
|
543
631
|
...obj,
|
|
544
632
|
...(obj.DecimalizationTable && { DecimalizationTable: SENSITIVE_STRING }),
|
|
@@ -67,6 +67,25 @@ export const se_GenerateMacCommand = async (input, context) => {
|
|
|
67
67
|
b.m("POST").h(headers).b(body);
|
|
68
68
|
return b.build();
|
|
69
69
|
};
|
|
70
|
+
export const se_GenerateMacEmvPinChangeCommand = async (input, context) => {
|
|
71
|
+
const b = rb(input, context);
|
|
72
|
+
const headers = {
|
|
73
|
+
"content-type": "application/json",
|
|
74
|
+
};
|
|
75
|
+
b.bp("/macemvpinchange/generate");
|
|
76
|
+
let body;
|
|
77
|
+
body = JSON.stringify(take(input, {
|
|
78
|
+
DerivationMethodAttributes: (_) => _json(_),
|
|
79
|
+
MessageData: [],
|
|
80
|
+
NewEncryptedPinBlock: [],
|
|
81
|
+
NewPinPekIdentifier: [],
|
|
82
|
+
PinBlockFormat: [],
|
|
83
|
+
SecureMessagingConfidentialityKeyIdentifier: [],
|
|
84
|
+
SecureMessagingIntegrityKeyIdentifier: [],
|
|
85
|
+
}));
|
|
86
|
+
b.m("POST").h(headers).b(body);
|
|
87
|
+
return b.build();
|
|
88
|
+
};
|
|
70
89
|
export const se_GeneratePinDataCommand = async (input, context) => {
|
|
71
90
|
const b = rb(input, context);
|
|
72
91
|
const headers = {
|
|
@@ -260,6 +279,28 @@ export const de_GenerateMacCommand = async (output, context) => {
|
|
|
260
279
|
Object.assign(contents, doc);
|
|
261
280
|
return contents;
|
|
262
281
|
};
|
|
282
|
+
export const de_GenerateMacEmvPinChangeCommand = async (output, context) => {
|
|
283
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
284
|
+
return de_CommandError(output, context);
|
|
285
|
+
}
|
|
286
|
+
const contents = map({
|
|
287
|
+
$metadata: deserializeMetadata(output),
|
|
288
|
+
});
|
|
289
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
290
|
+
const doc = take(data, {
|
|
291
|
+
EncryptedPinBlock: __expectString,
|
|
292
|
+
Mac: __expectString,
|
|
293
|
+
NewPinPekArn: __expectString,
|
|
294
|
+
NewPinPekKeyCheckValue: __expectString,
|
|
295
|
+
SecureMessagingConfidentialityKeyArn: __expectString,
|
|
296
|
+
SecureMessagingConfidentialityKeyCheckValue: __expectString,
|
|
297
|
+
SecureMessagingIntegrityKeyArn: __expectString,
|
|
298
|
+
SecureMessagingIntegrityKeyCheckValue: __expectString,
|
|
299
|
+
VisaAmexDerivationOutputs: _json,
|
|
300
|
+
});
|
|
301
|
+
Object.assign(contents, doc);
|
|
302
|
+
return contents;
|
|
303
|
+
};
|
|
263
304
|
export const de_GeneratePinDataCommand = async (output, context) => {
|
|
264
305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
265
306
|
return de_CommandError(output, context);
|
|
@@ -3,6 +3,7 @@ import { DecryptDataCommandInput, DecryptDataCommandOutput } from "./commands/De
|
|
|
3
3
|
import { EncryptDataCommandInput, EncryptDataCommandOutput } from "./commands/EncryptDataCommand";
|
|
4
4
|
import { GenerateCardValidationDataCommandInput, GenerateCardValidationDataCommandOutput } from "./commands/GenerateCardValidationDataCommand";
|
|
5
5
|
import { GenerateMacCommandInput, GenerateMacCommandOutput } from "./commands/GenerateMacCommand";
|
|
6
|
+
import { GenerateMacEmvPinChangeCommandInput, GenerateMacEmvPinChangeCommandOutput } from "./commands/GenerateMacEmvPinChangeCommand";
|
|
6
7
|
import { GeneratePinDataCommandInput, GeneratePinDataCommandOutput } from "./commands/GeneratePinDataCommand";
|
|
7
8
|
import { ReEncryptDataCommandInput, ReEncryptDataCommandOutput } from "./commands/ReEncryptDataCommand";
|
|
8
9
|
import { TranslatePinDataCommandInput, TranslatePinDataCommandOutput } from "./commands/TranslatePinDataCommand";
|
|
@@ -36,6 +37,12 @@ export interface PaymentCryptographyData {
|
|
|
36
37
|
generateMac(args: GenerateMacCommandInput, options?: __HttpHandlerOptions): Promise<GenerateMacCommandOutput>;
|
|
37
38
|
generateMac(args: GenerateMacCommandInput, cb: (err: any, data?: GenerateMacCommandOutput) => void): void;
|
|
38
39
|
generateMac(args: GenerateMacCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateMacCommandOutput) => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* @see {@link GenerateMacEmvPinChangeCommand}
|
|
42
|
+
*/
|
|
43
|
+
generateMacEmvPinChange(args: GenerateMacEmvPinChangeCommandInput, options?: __HttpHandlerOptions): Promise<GenerateMacEmvPinChangeCommandOutput>;
|
|
44
|
+
generateMacEmvPinChange(args: GenerateMacEmvPinChangeCommandInput, cb: (err: any, data?: GenerateMacEmvPinChangeCommandOutput) => void): void;
|
|
45
|
+
generateMacEmvPinChange(args: GenerateMacEmvPinChangeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateMacEmvPinChangeCommandOutput) => void): void;
|
|
39
46
|
/**
|
|
40
47
|
* @see {@link GeneratePinDataCommand}
|
|
41
48
|
*/
|
|
@@ -11,6 +11,7 @@ import { DecryptDataCommandInput, DecryptDataCommandOutput } from "./commands/De
|
|
|
11
11
|
import { EncryptDataCommandInput, EncryptDataCommandOutput } from "./commands/EncryptDataCommand";
|
|
12
12
|
import { GenerateCardValidationDataCommandInput, GenerateCardValidationDataCommandOutput } from "./commands/GenerateCardValidationDataCommand";
|
|
13
13
|
import { GenerateMacCommandInput, GenerateMacCommandOutput } from "./commands/GenerateMacCommand";
|
|
14
|
+
import { GenerateMacEmvPinChangeCommandInput, GenerateMacEmvPinChangeCommandOutput } from "./commands/GenerateMacEmvPinChangeCommand";
|
|
14
15
|
import { GeneratePinDataCommandInput, GeneratePinDataCommandOutput } from "./commands/GeneratePinDataCommand";
|
|
15
16
|
import { ReEncryptDataCommandInput, ReEncryptDataCommandOutput } from "./commands/ReEncryptDataCommand";
|
|
16
17
|
import { TranslatePinDataCommandInput, TranslatePinDataCommandOutput } from "./commands/TranslatePinDataCommand";
|
|
@@ -24,11 +25,11 @@ export { __Client };
|
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
27
|
-
export type ServiceInputTypes = DecryptDataCommandInput | EncryptDataCommandInput | GenerateCardValidationDataCommandInput | GenerateMacCommandInput | GeneratePinDataCommandInput | ReEncryptDataCommandInput | TranslatePinDataCommandInput | VerifyAuthRequestCryptogramCommandInput | VerifyCardValidationDataCommandInput | VerifyMacCommandInput | VerifyPinDataCommandInput;
|
|
28
|
+
export type ServiceInputTypes = DecryptDataCommandInput | EncryptDataCommandInput | GenerateCardValidationDataCommandInput | GenerateMacCommandInput | GenerateMacEmvPinChangeCommandInput | GeneratePinDataCommandInput | ReEncryptDataCommandInput | TranslatePinDataCommandInput | VerifyAuthRequestCryptogramCommandInput | VerifyCardValidationDataCommandInput | VerifyMacCommandInput | VerifyPinDataCommandInput;
|
|
28
29
|
/**
|
|
29
30
|
* @public
|
|
30
31
|
*/
|
|
31
|
-
export type ServiceOutputTypes = DecryptDataCommandOutput | EncryptDataCommandOutput | GenerateCardValidationDataCommandOutput | GenerateMacCommandOutput | GeneratePinDataCommandOutput | ReEncryptDataCommandOutput | TranslatePinDataCommandOutput | VerifyAuthRequestCryptogramCommandOutput | VerifyCardValidationDataCommandOutput | VerifyMacCommandOutput | VerifyPinDataCommandOutput;
|
|
32
|
+
export type ServiceOutputTypes = DecryptDataCommandOutput | EncryptDataCommandOutput | GenerateCardValidationDataCommandOutput | GenerateMacCommandOutput | GenerateMacEmvPinChangeCommandOutput | GeneratePinDataCommandOutput | ReEncryptDataCommandOutput | TranslatePinDataCommandOutput | VerifyAuthRequestCryptogramCommandOutput | VerifyCardValidationDataCommandOutput | VerifyMacCommandOutput | VerifyPinDataCommandOutput;
|
|
32
33
|
/**
|
|
33
34
|
* @public
|
|
34
35
|
*/
|