@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.
Files changed (107) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +294 -0
  3. package/dist-cjs/PaymentCryptographyData.js +33 -0
  4. package/dist-cjs/PaymentCryptographyDataClient.js +41 -0
  5. package/dist-cjs/commands/DecryptDataCommand.js +47 -0
  6. package/dist-cjs/commands/EncryptDataCommand.js +47 -0
  7. package/dist-cjs/commands/GenerateCardValidationDataCommand.js +47 -0
  8. package/dist-cjs/commands/GenerateMacCommand.js +47 -0
  9. package/dist-cjs/commands/GeneratePinDataCommand.js +47 -0
  10. package/dist-cjs/commands/ReEncryptDataCommand.js +47 -0
  11. package/dist-cjs/commands/TranslatePinDataCommand.js +47 -0
  12. package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +47 -0
  13. package/dist-cjs/commands/VerifyCardValidationDataCommand.js +47 -0
  14. package/dist-cjs/commands/VerifyMacCommand.js +47 -0
  15. package/dist-cjs/commands/VerifyPinDataCommand.js +47 -0
  16. package/dist-cjs/commands/index.js +14 -0
  17. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  18. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  19. package/dist-cjs/endpoint/ruleset.js +7 -0
  20. package/dist-cjs/index.js +10 -0
  21. package/dist-cjs/models/PaymentCryptographyDataServiceException.js +12 -0
  22. package/dist-cjs/models/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +526 -0
  24. package/dist-cjs/protocols/Aws_restJson1.js +963 -0
  25. package/dist-cjs/runtimeConfig.browser.js +39 -0
  26. package/dist-cjs/runtimeConfig.js +48 -0
  27. package/dist-cjs/runtimeConfig.native.js +15 -0
  28. package/dist-cjs/runtimeConfig.shared.js +21 -0
  29. package/dist-es/PaymentCryptographyData.js +29 -0
  30. package/dist-es/PaymentCryptographyDataClient.js +37 -0
  31. package/dist-es/commands/DecryptDataCommand.js +43 -0
  32. package/dist-es/commands/EncryptDataCommand.js +43 -0
  33. package/dist-es/commands/GenerateCardValidationDataCommand.js +43 -0
  34. package/dist-es/commands/GenerateMacCommand.js +43 -0
  35. package/dist-es/commands/GeneratePinDataCommand.js +43 -0
  36. package/dist-es/commands/ReEncryptDataCommand.js +43 -0
  37. package/dist-es/commands/TranslatePinDataCommand.js +43 -0
  38. package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +43 -0
  39. package/dist-es/commands/VerifyCardValidationDataCommand.js +43 -0
  40. package/dist-es/commands/VerifyMacCommand.js +43 -0
  41. package/dist-es/commands/VerifyPinDataCommand.js +43 -0
  42. package/dist-es/commands/index.js +11 -0
  43. package/dist-es/endpoint/EndpointParameters.js +8 -0
  44. package/dist-es/endpoint/endpointResolver.js +8 -0
  45. package/dist-es/endpoint/ruleset.js +4 -0
  46. package/dist-es/index.js +5 -0
  47. package/dist-es/models/PaymentCryptographyDataServiceException.js +8 -0
  48. package/dist-es/models/index.js +1 -0
  49. package/dist-es/models/models_0.js +488 -0
  50. package/dist-es/protocols/Aws_restJson1.js +938 -0
  51. package/dist-es/runtimeConfig.browser.js +34 -0
  52. package/dist-es/runtimeConfig.js +43 -0
  53. package/dist-es/runtimeConfig.native.js +11 -0
  54. package/dist-es/runtimeConfig.shared.js +17 -0
  55. package/dist-types/PaymentCryptographyData.d.ts +88 -0
  56. package/dist-types/PaymentCryptographyDataClient.d.ts +174 -0
  57. package/dist-types/commands/DecryptDataCommand.d.ts +133 -0
  58. package/dist-types/commands/EncryptDataCommand.d.ts +138 -0
  59. package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +144 -0
  60. package/dist-types/commands/GenerateMacCommand.d.ts +134 -0
  61. package/dist-types/commands/GeneratePinDataCommand.d.ts +155 -0
  62. package/dist-types/commands/ReEncryptDataCommand.d.ts +150 -0
  63. package/dist-types/commands/TranslatePinDataCommand.d.ts +147 -0
  64. package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +150 -0
  65. package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +156 -0
  66. package/dist-types/commands/VerifyMacCommand.d.ts +137 -0
  67. package/dist-types/commands/VerifyPinDataCommand.d.ts +134 -0
  68. package/dist-types/commands/index.d.ts +11 -0
  69. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  70. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  71. package/dist-types/endpoint/ruleset.d.ts +2 -0
  72. package/dist-types/index.d.ts +11 -0
  73. package/dist-types/models/PaymentCryptographyDataServiceException.d.ts +13 -0
  74. package/dist-types/models/index.d.ts +1 -0
  75. package/dist-types/models/models_0.d.ts +2191 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
  77. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  78. package/dist-types/runtimeConfig.d.ts +42 -0
  79. package/dist-types/runtimeConfig.native.d.ts +41 -0
  80. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  81. package/dist-types/ts3.4/PaymentCryptographyData.d.ts +194 -0
  82. package/dist-types/ts3.4/PaymentCryptographyDataClient.d.ts +181 -0
  83. package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +35 -0
  84. package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +35 -0
  85. package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +35 -0
  87. package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +38 -0
  88. package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +35 -0
  89. package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +42 -0
  92. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +35 -0
  93. package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +35 -0
  94. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  95. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  96. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  97. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  98. package/dist-types/ts3.4/index.d.ts +5 -0
  99. package/dist-types/ts3.4/models/PaymentCryptographyDataServiceException.d.ts +8 -0
  100. package/dist-types/ts3.4/models/index.d.ts +1 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +1168 -0
  102. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +137 -0
  103. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  104. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  105. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  106. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  107. package/package.json +99 -0
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
+ const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
+ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
+ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
+ const util_retry_1 = require("@aws-sdk/util-retry");
12
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
15
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
+ const getRuntimeConfig = (config) => {
17
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
+ return {
21
+ ...clientSharedValues,
22
+ ...config,
23
+ runtime: "browser",
24
+ defaultsMode,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ };
38
+ };
39
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const client_sts_1 = require("@aws-sdk/client-sts");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
+ const hash_node_1 = require("@aws-sdk/hash-node");
10
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
+ const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
+ const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
+ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
+ const util_retry_1 = require("@aws-sdk/util-retry");
15
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
18
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
20
+ const getRuntimeConfig = (config) => {
21
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
+ return {
26
+ ...clientSharedValues,
27
+ ...config,
28
+ runtime: "node",
29
+ defaultsMode,
30
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
31
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
32
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
33
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
35
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
37
+ retryMode: config?.retryMode ??
38
+ (0, node_config_provider_1.loadConfig)({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
42
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
43
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
44
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
+ };
47
+ };
48
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ const url_parser_1 = require("@aws-sdk/url-parser");
6
+ const util_base64_1 = require("@aws-sdk/util-base64");
7
+ const util_utf8_1 = require("@aws-sdk/util-utf8");
8
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
9
+ const getRuntimeConfig = (config) => ({
10
+ apiVersion: "2022-02-03",
11
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
+ serviceId: config?.serviceId ?? "Payment Cryptography Data",
17
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
18
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
19
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
20
+ });
21
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,29 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
+ import { DecryptDataCommand } from "./commands/DecryptDataCommand";
3
+ import { EncryptDataCommand } from "./commands/EncryptDataCommand";
4
+ import { GenerateCardValidationDataCommand, } from "./commands/GenerateCardValidationDataCommand";
5
+ import { GenerateMacCommand } from "./commands/GenerateMacCommand";
6
+ import { GeneratePinDataCommand, } from "./commands/GeneratePinDataCommand";
7
+ import { ReEncryptDataCommand, } from "./commands/ReEncryptDataCommand";
8
+ import { TranslatePinDataCommand, } from "./commands/TranslatePinDataCommand";
9
+ import { VerifyAuthRequestCryptogramCommand, } from "./commands/VerifyAuthRequestCryptogramCommand";
10
+ import { VerifyCardValidationDataCommand, } from "./commands/VerifyCardValidationDataCommand";
11
+ import { VerifyMacCommand } from "./commands/VerifyMacCommand";
12
+ import { VerifyPinDataCommand, } from "./commands/VerifyPinDataCommand";
13
+ import { PaymentCryptographyDataClient } from "./PaymentCryptographyDataClient";
14
+ const commands = {
15
+ DecryptDataCommand,
16
+ EncryptDataCommand,
17
+ GenerateCardValidationDataCommand,
18
+ GenerateMacCommand,
19
+ GeneratePinDataCommand,
20
+ ReEncryptDataCommand,
21
+ TranslatePinDataCommand,
22
+ VerifyAuthRequestCryptogramCommand,
23
+ VerifyCardValidationDataCommand,
24
+ VerifyMacCommand,
25
+ VerifyPinDataCommand,
26
+ };
27
+ export class PaymentCryptographyData extends PaymentCryptographyDataClient {
28
+ }
29
+ createAggregatedClient(commands, PaymentCryptographyData);
@@ -0,0 +1,37 @@
1
+ import { resolveRegionConfig } from "@aws-sdk/config-resolver";
2
+ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
+ import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
4
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
7
+ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
+ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
+ import { Client as __Client, } from "@aws-sdk/smithy-client";
11
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ export { __Client };
14
+ export class PaymentCryptographyDataClient extends __Client {
15
+ constructor(configuration) {
16
+ const _config_0 = __getRuntimeConfig(configuration);
17
+ const _config_1 = resolveClientEndpointParameters(_config_0);
18
+ const _config_2 = resolveRegionConfig(_config_1);
19
+ const _config_3 = resolveEndpointConfig(_config_2);
20
+ const _config_4 = resolveRetryConfig(_config_3);
21
+ const _config_5 = resolveHostHeaderConfig(_config_4);
22
+ const _config_6 = resolveAwsAuthConfig(_config_5);
23
+ const _config_7 = resolveUserAgentConfig(_config_6);
24
+ super(_config_7);
25
+ this.config = _config_7;
26
+ this.middlewareStack.use(getRetryPlugin(this.config));
27
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
28
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
29
+ this.middlewareStack.use(getLoggerPlugin(this.config));
30
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
31
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
32
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
+ }
34
+ destroy() {
35
+ super.destroy();
36
+ }
37
+ }
@@ -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 { DecryptDataInputFilterSensitiveLog, DecryptDataOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_DecryptDataCommand, se_DecryptDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DecryptDataCommand 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, DecryptDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "DecryptDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: DecryptDataInputFilterSensitiveLog,
32
+ outputFilterSensitiveLog: DecryptDataOutputFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_DecryptDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_DecryptDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { EncryptDataInputFilterSensitiveLog, EncryptDataOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_EncryptDataCommand, se_EncryptDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class EncryptDataCommand 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, EncryptDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "EncryptDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: EncryptDataInputFilterSensitiveLog,
32
+ outputFilterSensitiveLog: EncryptDataOutputFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_EncryptDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_EncryptDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { GenerateCardValidationDataInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_GenerateCardValidationDataCommand, se_GenerateCardValidationDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GenerateCardValidationDataCommand 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, GenerateCardValidationDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "GenerateCardValidationDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: GenerateCardValidationDataInputFilterSensitiveLog,
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_GenerateCardValidationDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_GenerateCardValidationDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { GenerateMacInputFilterSensitiveLog } from "../models/models_0";
5
+ import { de_GenerateMacCommand, se_GenerateMacCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GenerateMacCommand 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, GenerateMacCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "GenerateMacCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: GenerateMacInputFilterSensitiveLog,
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_GenerateMacCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_GenerateMacCommand(output, context);
42
+ }
43
+ }
@@ -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 { GeneratePinDataInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_GeneratePinDataCommand, se_GeneratePinDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GeneratePinDataCommand 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, GeneratePinDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "GeneratePinDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: GeneratePinDataInputFilterSensitiveLog,
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_GeneratePinDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_GeneratePinDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { ReEncryptDataInputFilterSensitiveLog, ReEncryptDataOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_ReEncryptDataCommand, se_ReEncryptDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ReEncryptDataCommand 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, ReEncryptDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "ReEncryptDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: ReEncryptDataInputFilterSensitiveLog,
32
+ outputFilterSensitiveLog: ReEncryptDataOutputFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_ReEncryptDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_ReEncryptDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { TranslatePinDataInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_TranslatePinDataCommand, se_TranslatePinDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class TranslatePinDataCommand 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, TranslatePinDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "TranslatePinDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: TranslatePinDataInputFilterSensitiveLog,
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_TranslatePinDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_TranslatePinDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { VerifyAuthRequestCryptogramInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_VerifyAuthRequestCryptogramCommand, se_VerifyAuthRequestCryptogramCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class VerifyAuthRequestCryptogramCommand 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, VerifyAuthRequestCryptogramCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "VerifyAuthRequestCryptogramCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: VerifyAuthRequestCryptogramInputFilterSensitiveLog,
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_VerifyAuthRequestCryptogramCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_VerifyAuthRequestCryptogramCommand(output, context);
42
+ }
43
+ }
@@ -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 { VerifyCardValidationDataInputFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_VerifyCardValidationDataCommand, se_VerifyCardValidationDataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class VerifyCardValidationDataCommand 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, VerifyCardValidationDataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "VerifyCardValidationDataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: VerifyCardValidationDataInputFilterSensitiveLog,
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_VerifyCardValidationDataCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_VerifyCardValidationDataCommand(output, context);
42
+ }
43
+ }
@@ -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 { VerifyMacInputFilterSensitiveLog } from "../models/models_0";
5
+ import { de_VerifyMacCommand, se_VerifyMacCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class VerifyMacCommand 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, VerifyMacCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "PaymentCryptographyDataClient";
26
+ const commandName = "VerifyMacCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: VerifyMacInputFilterSensitiveLog,
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_VerifyMacCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_VerifyMacCommand(output, context);
42
+ }
43
+ }