@aws-sdk/client-payment-cryptography-data 3.349.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/LICENSE +201 -0
- package/README.md +294 -0
- package/dist-cjs/PaymentCryptographyData.js +33 -0
- package/dist-cjs/PaymentCryptographyDataClient.js +41 -0
- package/dist-cjs/commands/DecryptDataCommand.js +47 -0
- package/dist-cjs/commands/EncryptDataCommand.js +47 -0
- package/dist-cjs/commands/GenerateCardValidationDataCommand.js +47 -0
- package/dist-cjs/commands/GenerateMacCommand.js +47 -0
- package/dist-cjs/commands/GeneratePinDataCommand.js +47 -0
- package/dist-cjs/commands/ReEncryptDataCommand.js +47 -0
- package/dist-cjs/commands/TranslatePinDataCommand.js +47 -0
- package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +47 -0
- package/dist-cjs/commands/VerifyCardValidationDataCommand.js +47 -0
- package/dist-cjs/commands/VerifyMacCommand.js +47 -0
- package/dist-cjs/commands/VerifyPinDataCommand.js +47 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/PaymentCryptographyDataServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +526 -0
- package/dist-cjs/protocols/Aws_restJson1.js +963 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/PaymentCryptographyData.js +29 -0
- package/dist-es/PaymentCryptographyDataClient.js +37 -0
- package/dist-es/commands/DecryptDataCommand.js +43 -0
- package/dist-es/commands/EncryptDataCommand.js +43 -0
- package/dist-es/commands/GenerateCardValidationDataCommand.js +43 -0
- package/dist-es/commands/GenerateMacCommand.js +43 -0
- package/dist-es/commands/GeneratePinDataCommand.js +43 -0
- package/dist-es/commands/ReEncryptDataCommand.js +43 -0
- package/dist-es/commands/TranslatePinDataCommand.js +43 -0
- package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +43 -0
- package/dist-es/commands/VerifyCardValidationDataCommand.js +43 -0
- package/dist-es/commands/VerifyMacCommand.js +43 -0
- package/dist-es/commands/VerifyPinDataCommand.js +43 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/PaymentCryptographyDataServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +488 -0
- package/dist-es/protocols/Aws_restJson1.js +938 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/PaymentCryptographyData.d.ts +88 -0
- package/dist-types/PaymentCryptographyDataClient.d.ts +174 -0
- package/dist-types/commands/DecryptDataCommand.d.ts +133 -0
- package/dist-types/commands/EncryptDataCommand.d.ts +138 -0
- package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +144 -0
- package/dist-types/commands/GenerateMacCommand.d.ts +134 -0
- package/dist-types/commands/GeneratePinDataCommand.d.ts +155 -0
- package/dist-types/commands/ReEncryptDataCommand.d.ts +150 -0
- package/dist-types/commands/TranslatePinDataCommand.d.ts +147 -0
- package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +150 -0
- package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +156 -0
- package/dist-types/commands/VerifyMacCommand.d.ts +137 -0
- package/dist-types/commands/VerifyPinDataCommand.d.ts +134 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +11 -0
- package/dist-types/models/PaymentCryptographyDataServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2191 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/PaymentCryptographyData.d.ts +194 -0
- package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +181 -0
- package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/PaymentCryptographyDataServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1168 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +137 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +99 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { VerifyPinDataInputFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { de_VerifyPinDataCommand, se_VerifyPinDataCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class VerifyPinDataCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, VerifyPinDataCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "PaymentCryptographyDataClient";
|
|
26
|
+
const commandName = "VerifyPinDataCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: VerifyPinDataInputFilterSensitiveLog,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_VerifyPinDataCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_VerifyPinDataCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./DecryptDataCommand";
|
|
2
|
+
export * from "./EncryptDataCommand";
|
|
3
|
+
export * from "./GenerateCardValidationDataCommand";
|
|
4
|
+
export * from "./GenerateMacCommand";
|
|
5
|
+
export * from "./GeneratePinDataCommand";
|
|
6
|
+
export * from "./ReEncryptDataCommand";
|
|
7
|
+
export * from "./TranslatePinDataCommand";
|
|
8
|
+
export * from "./VerifyAuthRequestCryptogramCommand";
|
|
9
|
+
export * from "./VerifyCardValidationDataCommand";
|
|
10
|
+
export * from "./VerifyMacCommand";
|
|
11
|
+
export * from "./VerifyPinDataCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dataplane.payment-cryptography-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dataplane.payment-cryptography-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://dataplane.payment-cryptography.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://dataplane.payment-cryptography.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
|
+
export const ruleSet = _data;
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class PaymentCryptographyDataServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, PaymentCryptographyDataServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export const PaddingType = {
|
|
17
|
+
OAEP_SHA1: "OAEP_SHA1",
|
|
18
|
+
OAEP_SHA256: "OAEP_SHA256",
|
|
19
|
+
OAEP_SHA512: "OAEP_SHA512",
|
|
20
|
+
PKCS1: "PKCS1",
|
|
21
|
+
};
|
|
22
|
+
export var CardGenerationAttributes;
|
|
23
|
+
(function (CardGenerationAttributes) {
|
|
24
|
+
CardGenerationAttributes.visit = (value, visitor) => {
|
|
25
|
+
if (value.AmexCardSecurityCodeVersion1 !== undefined)
|
|
26
|
+
return visitor.AmexCardSecurityCodeVersion1(value.AmexCardSecurityCodeVersion1);
|
|
27
|
+
if (value.AmexCardSecurityCodeVersion2 !== undefined)
|
|
28
|
+
return visitor.AmexCardSecurityCodeVersion2(value.AmexCardSecurityCodeVersion2);
|
|
29
|
+
if (value.CardVerificationValue1 !== undefined)
|
|
30
|
+
return visitor.CardVerificationValue1(value.CardVerificationValue1);
|
|
31
|
+
if (value.CardVerificationValue2 !== undefined)
|
|
32
|
+
return visitor.CardVerificationValue2(value.CardVerificationValue2);
|
|
33
|
+
if (value.CardHolderVerificationValue !== undefined)
|
|
34
|
+
return visitor.CardHolderVerificationValue(value.CardHolderVerificationValue);
|
|
35
|
+
if (value.DynamicCardVerificationCode !== undefined)
|
|
36
|
+
return visitor.DynamicCardVerificationCode(value.DynamicCardVerificationCode);
|
|
37
|
+
if (value.DynamicCardVerificationValue !== undefined)
|
|
38
|
+
return visitor.DynamicCardVerificationValue(value.DynamicCardVerificationValue);
|
|
39
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
40
|
+
};
|
|
41
|
+
})(CardGenerationAttributes || (CardGenerationAttributes = {}));
|
|
42
|
+
export var CardVerificationAttributes;
|
|
43
|
+
(function (CardVerificationAttributes) {
|
|
44
|
+
CardVerificationAttributes.visit = (value, visitor) => {
|
|
45
|
+
if (value.AmexCardSecurityCodeVersion1 !== undefined)
|
|
46
|
+
return visitor.AmexCardSecurityCodeVersion1(value.AmexCardSecurityCodeVersion1);
|
|
47
|
+
if (value.AmexCardSecurityCodeVersion2 !== undefined)
|
|
48
|
+
return visitor.AmexCardSecurityCodeVersion2(value.AmexCardSecurityCodeVersion2);
|
|
49
|
+
if (value.CardVerificationValue1 !== undefined)
|
|
50
|
+
return visitor.CardVerificationValue1(value.CardVerificationValue1);
|
|
51
|
+
if (value.CardVerificationValue2 !== undefined)
|
|
52
|
+
return visitor.CardVerificationValue2(value.CardVerificationValue2);
|
|
53
|
+
if (value.CardHolderVerificationValue !== undefined)
|
|
54
|
+
return visitor.CardHolderVerificationValue(value.CardHolderVerificationValue);
|
|
55
|
+
if (value.DynamicCardVerificationCode !== undefined)
|
|
56
|
+
return visitor.DynamicCardVerificationCode(value.DynamicCardVerificationCode);
|
|
57
|
+
if (value.DynamicCardVerificationValue !== undefined)
|
|
58
|
+
return visitor.DynamicCardVerificationValue(value.DynamicCardVerificationValue);
|
|
59
|
+
if (value.DiscoverDynamicCardVerificationCode !== undefined)
|
|
60
|
+
return visitor.DiscoverDynamicCardVerificationCode(value.DiscoverDynamicCardVerificationCode);
|
|
61
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
62
|
+
};
|
|
63
|
+
})(CardVerificationAttributes || (CardVerificationAttributes = {}));
|
|
64
|
+
export var CryptogramAuthResponse;
|
|
65
|
+
(function (CryptogramAuthResponse) {
|
|
66
|
+
CryptogramAuthResponse.visit = (value, visitor) => {
|
|
67
|
+
if (value.ArpcMethod1 !== undefined)
|
|
68
|
+
return visitor.ArpcMethod1(value.ArpcMethod1);
|
|
69
|
+
if (value.ArpcMethod2 !== undefined)
|
|
70
|
+
return visitor.ArpcMethod2(value.ArpcMethod2);
|
|
71
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
72
|
+
};
|
|
73
|
+
})(CryptogramAuthResponse || (CryptogramAuthResponse = {}));
|
|
74
|
+
export const DukptDerivationType = {
|
|
75
|
+
AES_128: "AES_128",
|
|
76
|
+
AES_192: "AES_192",
|
|
77
|
+
AES_256: "AES_256",
|
|
78
|
+
TDES_2KEY: "TDES_2KEY",
|
|
79
|
+
TDES_3KEY: "TDES_3KEY",
|
|
80
|
+
};
|
|
81
|
+
export const DukptKeyVariant = {
|
|
82
|
+
BIDIRECTIONAL: "BIDIRECTIONAL",
|
|
83
|
+
REQUEST: "REQUEST",
|
|
84
|
+
RESPONSE: "RESPONSE",
|
|
85
|
+
};
|
|
86
|
+
export const DukptEncryptionMode = {
|
|
87
|
+
CBC: "CBC",
|
|
88
|
+
ECB: "ECB",
|
|
89
|
+
};
|
|
90
|
+
export const EncryptionMode = {
|
|
91
|
+
CBC: "CBC",
|
|
92
|
+
CFB: "CFB",
|
|
93
|
+
CFB1: "CFB1",
|
|
94
|
+
CFB128: "CFB128",
|
|
95
|
+
CFB64: "CFB64",
|
|
96
|
+
CFB8: "CFB8",
|
|
97
|
+
ECB: "ECB",
|
|
98
|
+
OFB: "OFB",
|
|
99
|
+
};
|
|
100
|
+
export var EncryptionDecryptionAttributes;
|
|
101
|
+
(function (EncryptionDecryptionAttributes) {
|
|
102
|
+
EncryptionDecryptionAttributes.visit = (value, visitor) => {
|
|
103
|
+
if (value.Symmetric !== undefined)
|
|
104
|
+
return visitor.Symmetric(value.Symmetric);
|
|
105
|
+
if (value.Asymmetric !== undefined)
|
|
106
|
+
return visitor.Asymmetric(value.Asymmetric);
|
|
107
|
+
if (value.Dukpt !== undefined)
|
|
108
|
+
return visitor.Dukpt(value.Dukpt);
|
|
109
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
110
|
+
};
|
|
111
|
+
})(EncryptionDecryptionAttributes || (EncryptionDecryptionAttributes = {}));
|
|
112
|
+
export class InternalServerException extends __BaseException {
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "InternalServerException",
|
|
116
|
+
$fault: "server",
|
|
117
|
+
...opts,
|
|
118
|
+
});
|
|
119
|
+
this.name = "InternalServerException";
|
|
120
|
+
this.$fault = "server";
|
|
121
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
122
|
+
this.Message = opts.Message;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "ResourceNotFoundException",
|
|
129
|
+
$fault: "client",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
this.name = "ResourceNotFoundException";
|
|
133
|
+
this.$fault = "client";
|
|
134
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
135
|
+
this.ResourceId = opts.ResourceId;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export class ThrottlingException extends __BaseException {
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "ThrottlingException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
this.name = "ThrottlingException";
|
|
146
|
+
this.$fault = "client";
|
|
147
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
148
|
+
this.Message = opts.Message;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
export class ValidationException extends __BaseException {
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "ValidationException",
|
|
155
|
+
$fault: "client",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
this.name = "ValidationException";
|
|
159
|
+
this.$fault = "client";
|
|
160
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
161
|
+
this.fieldList = opts.fieldList;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
export const MacAlgorithm = {
|
|
165
|
+
CMAC: "CMAC",
|
|
166
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
167
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
168
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
169
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
170
|
+
ISO9797_ALGORITHM1: "ISO9797_ALGORITHM1",
|
|
171
|
+
ISO9797_ALGORITHM3: "ISO9797_ALGORITHM3",
|
|
172
|
+
};
|
|
173
|
+
export const MajorKeyDerivationMode = {
|
|
174
|
+
EMV_OPTION_A: "EMV_OPTION_A",
|
|
175
|
+
EMV_OPTION_B: "EMV_OPTION_B",
|
|
176
|
+
};
|
|
177
|
+
export const SessionKeyDerivationMode = {
|
|
178
|
+
AMEX: "AMEX",
|
|
179
|
+
EMV2000: "EMV2000",
|
|
180
|
+
EMV_COMMON_SESSION_KEY: "EMV_COMMON_SESSION_KEY",
|
|
181
|
+
MASTERCARD_SESSION_KEY: "MASTERCARD_SESSION_KEY",
|
|
182
|
+
VISA: "VISA",
|
|
183
|
+
};
|
|
184
|
+
export var SessionKeyDerivationValue;
|
|
185
|
+
(function (SessionKeyDerivationValue) {
|
|
186
|
+
SessionKeyDerivationValue.visit = (value, visitor) => {
|
|
187
|
+
if (value.ApplicationCryptogram !== undefined)
|
|
188
|
+
return visitor.ApplicationCryptogram(value.ApplicationCryptogram);
|
|
189
|
+
if (value.ApplicationTransactionCounter !== undefined)
|
|
190
|
+
return visitor.ApplicationTransactionCounter(value.ApplicationTransactionCounter);
|
|
191
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
192
|
+
};
|
|
193
|
+
})(SessionKeyDerivationValue || (SessionKeyDerivationValue = {}));
|
|
194
|
+
export var MacAttributes;
|
|
195
|
+
(function (MacAttributes) {
|
|
196
|
+
MacAttributes.visit = (value, visitor) => {
|
|
197
|
+
if (value.Algorithm !== undefined)
|
|
198
|
+
return visitor.Algorithm(value.Algorithm);
|
|
199
|
+
if (value.EmvMac !== undefined)
|
|
200
|
+
return visitor.EmvMac(value.EmvMac);
|
|
201
|
+
if (value.DukptIso9797Algorithm1 !== undefined)
|
|
202
|
+
return visitor.DukptIso9797Algorithm1(value.DukptIso9797Algorithm1);
|
|
203
|
+
if (value.DukptIso9797Algorithm3 !== undefined)
|
|
204
|
+
return visitor.DukptIso9797Algorithm3(value.DukptIso9797Algorithm3);
|
|
205
|
+
if (value.DukptCmac !== undefined)
|
|
206
|
+
return visitor.DukptCmac(value.DukptCmac);
|
|
207
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
208
|
+
};
|
|
209
|
+
})(MacAttributes || (MacAttributes = {}));
|
|
210
|
+
export var PinGenerationAttributes;
|
|
211
|
+
(function (PinGenerationAttributes) {
|
|
212
|
+
PinGenerationAttributes.visit = (value, visitor) => {
|
|
213
|
+
if (value.VisaPin !== undefined)
|
|
214
|
+
return visitor.VisaPin(value.VisaPin);
|
|
215
|
+
if (value.VisaPinVerificationValue !== undefined)
|
|
216
|
+
return visitor.VisaPinVerificationValue(value.VisaPinVerificationValue);
|
|
217
|
+
if (value.Ibm3624PinOffset !== undefined)
|
|
218
|
+
return visitor.Ibm3624PinOffset(value.Ibm3624PinOffset);
|
|
219
|
+
if (value.Ibm3624NaturalPin !== undefined)
|
|
220
|
+
return visitor.Ibm3624NaturalPin(value.Ibm3624NaturalPin);
|
|
221
|
+
if (value.Ibm3624RandomPin !== undefined)
|
|
222
|
+
return visitor.Ibm3624RandomPin(value.Ibm3624RandomPin);
|
|
223
|
+
if (value.Ibm3624PinFromOffset !== undefined)
|
|
224
|
+
return visitor.Ibm3624PinFromOffset(value.Ibm3624PinFromOffset);
|
|
225
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
226
|
+
};
|
|
227
|
+
})(PinGenerationAttributes || (PinGenerationAttributes = {}));
|
|
228
|
+
export const PinBlockFormatForPinData = {
|
|
229
|
+
ISO_FORMAT_0: "ISO_FORMAT_0",
|
|
230
|
+
ISO_FORMAT_3: "ISO_FORMAT_3",
|
|
231
|
+
};
|
|
232
|
+
export var PinData;
|
|
233
|
+
(function (PinData) {
|
|
234
|
+
PinData.visit = (value, visitor) => {
|
|
235
|
+
if (value.PinOffset !== undefined)
|
|
236
|
+
return visitor.PinOffset(value.PinOffset);
|
|
237
|
+
if (value.VerificationValue !== undefined)
|
|
238
|
+
return visitor.VerificationValue(value.VerificationValue);
|
|
239
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
240
|
+
};
|
|
241
|
+
})(PinData || (PinData = {}));
|
|
242
|
+
export var ReEncryptionAttributes;
|
|
243
|
+
(function (ReEncryptionAttributes) {
|
|
244
|
+
ReEncryptionAttributes.visit = (value, visitor) => {
|
|
245
|
+
if (value.Symmetric !== undefined)
|
|
246
|
+
return visitor.Symmetric(value.Symmetric);
|
|
247
|
+
if (value.Dukpt !== undefined)
|
|
248
|
+
return visitor.Dukpt(value.Dukpt);
|
|
249
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
250
|
+
};
|
|
251
|
+
})(ReEncryptionAttributes || (ReEncryptionAttributes = {}));
|
|
252
|
+
export var TranslationIsoFormats;
|
|
253
|
+
(function (TranslationIsoFormats) {
|
|
254
|
+
TranslationIsoFormats.visit = (value, visitor) => {
|
|
255
|
+
if (value.IsoFormat0 !== undefined)
|
|
256
|
+
return visitor.IsoFormat0(value.IsoFormat0);
|
|
257
|
+
if (value.IsoFormat1 !== undefined)
|
|
258
|
+
return visitor.IsoFormat1(value.IsoFormat1);
|
|
259
|
+
if (value.IsoFormat3 !== undefined)
|
|
260
|
+
return visitor.IsoFormat3(value.IsoFormat3);
|
|
261
|
+
if (value.IsoFormat4 !== undefined)
|
|
262
|
+
return visitor.IsoFormat4(value.IsoFormat4);
|
|
263
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
264
|
+
};
|
|
265
|
+
})(TranslationIsoFormats || (TranslationIsoFormats = {}));
|
|
266
|
+
export const VerificationFailedReason = {
|
|
267
|
+
INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM",
|
|
268
|
+
INVALID_MAC: "INVALID_MAC",
|
|
269
|
+
INVALID_PIN: "INVALID_PIN",
|
|
270
|
+
INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA",
|
|
271
|
+
};
|
|
272
|
+
export class VerificationFailedException extends __BaseException {
|
|
273
|
+
constructor(opts) {
|
|
274
|
+
super({
|
|
275
|
+
name: "VerificationFailedException",
|
|
276
|
+
$fault: "client",
|
|
277
|
+
...opts,
|
|
278
|
+
});
|
|
279
|
+
this.name = "VerificationFailedException";
|
|
280
|
+
this.$fault = "client";
|
|
281
|
+
Object.setPrototypeOf(this, VerificationFailedException.prototype);
|
|
282
|
+
this.Reason = opts.Reason;
|
|
283
|
+
this.Message = opts.Message;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
export var SessionKeyDerivation;
|
|
287
|
+
(function (SessionKeyDerivation) {
|
|
288
|
+
SessionKeyDerivation.visit = (value, visitor) => {
|
|
289
|
+
if (value.EmvCommon !== undefined)
|
|
290
|
+
return visitor.EmvCommon(value.EmvCommon);
|
|
291
|
+
if (value.Mastercard !== undefined)
|
|
292
|
+
return visitor.Mastercard(value.Mastercard);
|
|
293
|
+
if (value.Emv2000 !== undefined)
|
|
294
|
+
return visitor.Emv2000(value.Emv2000);
|
|
295
|
+
if (value.Amex !== undefined)
|
|
296
|
+
return visitor.Amex(value.Amex);
|
|
297
|
+
if (value.Visa !== undefined)
|
|
298
|
+
return visitor.Visa(value.Visa);
|
|
299
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
300
|
+
};
|
|
301
|
+
})(SessionKeyDerivation || (SessionKeyDerivation = {}));
|
|
302
|
+
export var PinVerificationAttributes;
|
|
303
|
+
(function (PinVerificationAttributes) {
|
|
304
|
+
PinVerificationAttributes.visit = (value, visitor) => {
|
|
305
|
+
if (value.VisaPin !== undefined)
|
|
306
|
+
return visitor.VisaPin(value.VisaPin);
|
|
307
|
+
if (value.Ibm3624Pin !== undefined)
|
|
308
|
+
return visitor.Ibm3624Pin(value.Ibm3624Pin);
|
|
309
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
310
|
+
};
|
|
311
|
+
})(PinVerificationAttributes || (PinVerificationAttributes = {}));
|
|
312
|
+
export const DukptEncryptionAttributesFilterSensitiveLog = (obj) => ({
|
|
313
|
+
...obj,
|
|
314
|
+
...(obj.InitializationVector && { InitializationVector: SENSITIVE_STRING }),
|
|
315
|
+
});
|
|
316
|
+
export const SymmetricEncryptionAttributesFilterSensitiveLog = (obj) => ({
|
|
317
|
+
...obj,
|
|
318
|
+
...(obj.InitializationVector && { InitializationVector: SENSITIVE_STRING }),
|
|
319
|
+
});
|
|
320
|
+
export const EncryptionDecryptionAttributesFilterSensitiveLog = (obj) => {
|
|
321
|
+
if (obj.Symmetric !== undefined)
|
|
322
|
+
return { Symmetric: SymmetricEncryptionAttributesFilterSensitiveLog(obj.Symmetric) };
|
|
323
|
+
if (obj.Asymmetric !== undefined)
|
|
324
|
+
return { Asymmetric: obj.Asymmetric };
|
|
325
|
+
if (obj.Dukpt !== undefined)
|
|
326
|
+
return { Dukpt: DukptEncryptionAttributesFilterSensitiveLog(obj.Dukpt) };
|
|
327
|
+
if (obj.$unknown !== undefined)
|
|
328
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
329
|
+
};
|
|
330
|
+
export const DecryptDataInputFilterSensitiveLog = (obj) => ({
|
|
331
|
+
...obj,
|
|
332
|
+
...(obj.CipherText && { CipherText: SENSITIVE_STRING }),
|
|
333
|
+
...(obj.DecryptionAttributes && {
|
|
334
|
+
DecryptionAttributes: EncryptionDecryptionAttributesFilterSensitiveLog(obj.DecryptionAttributes),
|
|
335
|
+
}),
|
|
336
|
+
});
|
|
337
|
+
export const DecryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
338
|
+
...obj,
|
|
339
|
+
...(obj.PlainText && { PlainText: SENSITIVE_STRING }),
|
|
340
|
+
});
|
|
341
|
+
export const EncryptDataInputFilterSensitiveLog = (obj) => ({
|
|
342
|
+
...obj,
|
|
343
|
+
...(obj.PlainText && { PlainText: SENSITIVE_STRING }),
|
|
344
|
+
...(obj.EncryptionAttributes && {
|
|
345
|
+
EncryptionAttributes: EncryptionDecryptionAttributesFilterSensitiveLog(obj.EncryptionAttributes),
|
|
346
|
+
}),
|
|
347
|
+
});
|
|
348
|
+
export const EncryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
349
|
+
...obj,
|
|
350
|
+
...(obj.CipherText && { CipherText: SENSITIVE_STRING }),
|
|
351
|
+
});
|
|
352
|
+
export const GenerateCardValidationDataInputFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
355
|
+
...(obj.GenerationAttributes && { GenerationAttributes: obj.GenerationAttributes }),
|
|
356
|
+
});
|
|
357
|
+
export const MacAlgorithmEmvFilterSensitiveLog = (obj) => ({
|
|
358
|
+
...obj,
|
|
359
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
360
|
+
...(obj.SessionKeyDerivationValue && { SessionKeyDerivationValue: obj.SessionKeyDerivationValue }),
|
|
361
|
+
});
|
|
362
|
+
export const MacAttributesFilterSensitiveLog = (obj) => {
|
|
363
|
+
if (obj.Algorithm !== undefined)
|
|
364
|
+
return { Algorithm: obj.Algorithm };
|
|
365
|
+
if (obj.EmvMac !== undefined)
|
|
366
|
+
return { EmvMac: MacAlgorithmEmvFilterSensitiveLog(obj.EmvMac) };
|
|
367
|
+
if (obj.DukptIso9797Algorithm1 !== undefined)
|
|
368
|
+
return { DukptIso9797Algorithm1: obj.DukptIso9797Algorithm1 };
|
|
369
|
+
if (obj.DukptIso9797Algorithm3 !== undefined)
|
|
370
|
+
return { DukptIso9797Algorithm3: obj.DukptIso9797Algorithm3 };
|
|
371
|
+
if (obj.DukptCmac !== undefined)
|
|
372
|
+
return { DukptCmac: obj.DukptCmac };
|
|
373
|
+
if (obj.$unknown !== undefined)
|
|
374
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
375
|
+
};
|
|
376
|
+
export const GenerateMacInputFilterSensitiveLog = (obj) => ({
|
|
377
|
+
...obj,
|
|
378
|
+
...(obj.GenerationAttributes && { GenerationAttributes: MacAttributesFilterSensitiveLog(obj.GenerationAttributes) }),
|
|
379
|
+
});
|
|
380
|
+
export const GeneratePinDataInputFilterSensitiveLog = (obj) => ({
|
|
381
|
+
...obj,
|
|
382
|
+
...(obj.GenerationAttributes && { GenerationAttributes: obj.GenerationAttributes }),
|
|
383
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
384
|
+
});
|
|
385
|
+
export const ReEncryptionAttributesFilterSensitiveLog = (obj) => {
|
|
386
|
+
if (obj.Symmetric !== undefined)
|
|
387
|
+
return { Symmetric: SymmetricEncryptionAttributesFilterSensitiveLog(obj.Symmetric) };
|
|
388
|
+
if (obj.Dukpt !== undefined)
|
|
389
|
+
return { Dukpt: DukptEncryptionAttributesFilterSensitiveLog(obj.Dukpt) };
|
|
390
|
+
if (obj.$unknown !== undefined)
|
|
391
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
392
|
+
};
|
|
393
|
+
export const ReEncryptDataInputFilterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
...(obj.CipherText && { CipherText: SENSITIVE_STRING }),
|
|
396
|
+
...(obj.IncomingEncryptionAttributes && {
|
|
397
|
+
IncomingEncryptionAttributes: ReEncryptionAttributesFilterSensitiveLog(obj.IncomingEncryptionAttributes),
|
|
398
|
+
}),
|
|
399
|
+
...(obj.OutgoingEncryptionAttributes && {
|
|
400
|
+
OutgoingEncryptionAttributes: ReEncryptionAttributesFilterSensitiveLog(obj.OutgoingEncryptionAttributes),
|
|
401
|
+
}),
|
|
402
|
+
});
|
|
403
|
+
export const ReEncryptDataOutputFilterSensitiveLog = (obj) => ({
|
|
404
|
+
...obj,
|
|
405
|
+
...(obj.CipherText && { CipherText: SENSITIVE_STRING }),
|
|
406
|
+
});
|
|
407
|
+
export const TranslationPinDataIsoFormat034FilterSensitiveLog = (obj) => ({
|
|
408
|
+
...obj,
|
|
409
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
410
|
+
});
|
|
411
|
+
export const TranslationIsoFormatsFilterSensitiveLog = (obj) => {
|
|
412
|
+
if (obj.IsoFormat0 !== undefined)
|
|
413
|
+
return { IsoFormat0: TranslationPinDataIsoFormat034FilterSensitiveLog(obj.IsoFormat0) };
|
|
414
|
+
if (obj.IsoFormat1 !== undefined)
|
|
415
|
+
return { IsoFormat1: obj.IsoFormat1 };
|
|
416
|
+
if (obj.IsoFormat3 !== undefined)
|
|
417
|
+
return { IsoFormat3: TranslationPinDataIsoFormat034FilterSensitiveLog(obj.IsoFormat3) };
|
|
418
|
+
if (obj.IsoFormat4 !== undefined)
|
|
419
|
+
return { IsoFormat4: TranslationPinDataIsoFormat034FilterSensitiveLog(obj.IsoFormat4) };
|
|
420
|
+
if (obj.$unknown !== undefined)
|
|
421
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
422
|
+
};
|
|
423
|
+
export const TranslatePinDataInputFilterSensitiveLog = (obj) => ({
|
|
424
|
+
...obj,
|
|
425
|
+
...(obj.IncomingTranslationAttributes && {
|
|
426
|
+
IncomingTranslationAttributes: TranslationIsoFormatsFilterSensitiveLog(obj.IncomingTranslationAttributes),
|
|
427
|
+
}),
|
|
428
|
+
...(obj.OutgoingTranslationAttributes && {
|
|
429
|
+
OutgoingTranslationAttributes: TranslationIsoFormatsFilterSensitiveLog(obj.OutgoingTranslationAttributes),
|
|
430
|
+
}),
|
|
431
|
+
});
|
|
432
|
+
export const SessionKeyAmexFilterSensitiveLog = (obj) => ({
|
|
433
|
+
...obj,
|
|
434
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
435
|
+
});
|
|
436
|
+
export const SessionKeyEmv2000FilterSensitiveLog = (obj) => ({
|
|
437
|
+
...obj,
|
|
438
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
439
|
+
});
|
|
440
|
+
export const SessionKeyEmvCommonFilterSensitiveLog = (obj) => ({
|
|
441
|
+
...obj,
|
|
442
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
443
|
+
});
|
|
444
|
+
export const SessionKeyMastercardFilterSensitiveLog = (obj) => ({
|
|
445
|
+
...obj,
|
|
446
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
447
|
+
});
|
|
448
|
+
export const SessionKeyVisaFilterSensitiveLog = (obj) => ({
|
|
449
|
+
...obj,
|
|
450
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
451
|
+
});
|
|
452
|
+
export const SessionKeyDerivationFilterSensitiveLog = (obj) => {
|
|
453
|
+
if (obj.EmvCommon !== undefined)
|
|
454
|
+
return { EmvCommon: SessionKeyEmvCommonFilterSensitiveLog(obj.EmvCommon) };
|
|
455
|
+
if (obj.Mastercard !== undefined)
|
|
456
|
+
return { Mastercard: SessionKeyMastercardFilterSensitiveLog(obj.Mastercard) };
|
|
457
|
+
if (obj.Emv2000 !== undefined)
|
|
458
|
+
return { Emv2000: SessionKeyEmv2000FilterSensitiveLog(obj.Emv2000) };
|
|
459
|
+
if (obj.Amex !== undefined)
|
|
460
|
+
return { Amex: SessionKeyAmexFilterSensitiveLog(obj.Amex) };
|
|
461
|
+
if (obj.Visa !== undefined)
|
|
462
|
+
return { Visa: SessionKeyVisaFilterSensitiveLog(obj.Visa) };
|
|
463
|
+
if (obj.$unknown !== undefined)
|
|
464
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
465
|
+
};
|
|
466
|
+
export const VerifyAuthRequestCryptogramInputFilterSensitiveLog = (obj) => ({
|
|
467
|
+
...obj,
|
|
468
|
+
...(obj.SessionKeyDerivationAttributes && {
|
|
469
|
+
SessionKeyDerivationAttributes: SessionKeyDerivationFilterSensitiveLog(obj.SessionKeyDerivationAttributes),
|
|
470
|
+
}),
|
|
471
|
+
...(obj.AuthResponseAttributes && { AuthResponseAttributes: obj.AuthResponseAttributes }),
|
|
472
|
+
});
|
|
473
|
+
export const VerifyCardValidationDataInputFilterSensitiveLog = (obj) => ({
|
|
474
|
+
...obj,
|
|
475
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
476
|
+
...(obj.VerificationAttributes && { VerificationAttributes: obj.VerificationAttributes }),
|
|
477
|
+
});
|
|
478
|
+
export const VerifyMacInputFilterSensitiveLog = (obj) => ({
|
|
479
|
+
...obj,
|
|
480
|
+
...(obj.VerificationAttributes && {
|
|
481
|
+
VerificationAttributes: MacAttributesFilterSensitiveLog(obj.VerificationAttributes),
|
|
482
|
+
}),
|
|
483
|
+
});
|
|
484
|
+
export const VerifyPinDataInputFilterSensitiveLog = (obj) => ({
|
|
485
|
+
...obj,
|
|
486
|
+
...(obj.VerificationAttributes && { VerificationAttributes: obj.VerificationAttributes }),
|
|
487
|
+
...(obj.PrimaryAccountNumber && { PrimaryAccountNumber: SENSITIVE_STRING }),
|
|
488
|
+
});
|