@aws-sdk/client-payment-cryptography-data 3.477.0 → 3.481.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 (49) hide show
  1. package/dist-cjs/commands/DecryptDataCommand.js +18 -41
  2. package/dist-cjs/commands/EncryptDataCommand.js +18 -41
  3. package/dist-cjs/commands/GenerateCardValidationDataCommand.js +18 -41
  4. package/dist-cjs/commands/GenerateMacCommand.js +18 -41
  5. package/dist-cjs/commands/GeneratePinDataCommand.js +18 -41
  6. package/dist-cjs/commands/ReEncryptDataCommand.js +18 -41
  7. package/dist-cjs/commands/TranslatePinDataCommand.js +18 -41
  8. package/dist-cjs/commands/VerifyAuthRequestCryptogramCommand.js +18 -41
  9. package/dist-cjs/commands/VerifyCardValidationDataCommand.js +18 -41
  10. package/dist-cjs/commands/VerifyMacCommand.js +18 -41
  11. package/dist-cjs/commands/VerifyPinDataCommand.js +18 -41
  12. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  13. package/dist-es/commands/DecryptDataCommand.js +18 -41
  14. package/dist-es/commands/EncryptDataCommand.js +18 -41
  15. package/dist-es/commands/GenerateCardValidationDataCommand.js +18 -41
  16. package/dist-es/commands/GenerateMacCommand.js +18 -41
  17. package/dist-es/commands/GeneratePinDataCommand.js +18 -41
  18. package/dist-es/commands/ReEncryptDataCommand.js +18 -41
  19. package/dist-es/commands/TranslatePinDataCommand.js +18 -41
  20. package/dist-es/commands/VerifyAuthRequestCryptogramCommand.js +18 -41
  21. package/dist-es/commands/VerifyCardValidationDataCommand.js +18 -41
  22. package/dist-es/commands/VerifyMacCommand.js +18 -41
  23. package/dist-es/commands/VerifyPinDataCommand.js +18 -41
  24. package/dist-es/endpoint/EndpointParameters.js +6 -0
  25. package/dist-types/commands/DecryptDataCommand.d.ts +6 -21
  26. package/dist-types/commands/EncryptDataCommand.d.ts +6 -21
  27. package/dist-types/commands/GenerateCardValidationDataCommand.d.ts +6 -21
  28. package/dist-types/commands/GenerateMacCommand.d.ts +6 -21
  29. package/dist-types/commands/GeneratePinDataCommand.d.ts +6 -21
  30. package/dist-types/commands/ReEncryptDataCommand.d.ts +6 -21
  31. package/dist-types/commands/TranslatePinDataCommand.d.ts +6 -21
  32. package/dist-types/commands/VerifyAuthRequestCryptogramCommand.d.ts +6 -21
  33. package/dist-types/commands/VerifyCardValidationDataCommand.d.ts +6 -21
  34. package/dist-types/commands/VerifyMacCommand.d.ts +6 -21
  35. package/dist-types/commands/VerifyPinDataCommand.d.ts +6 -21
  36. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  37. package/dist-types/ts3.4/commands/DecryptDataCommand.d.ts +14 -23
  38. package/dist-types/ts3.4/commands/EncryptDataCommand.d.ts +14 -23
  39. package/dist-types/ts3.4/commands/GenerateCardValidationDataCommand.d.ts +12 -24
  40. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +14 -23
  41. package/dist-types/ts3.4/commands/GeneratePinDataCommand.d.ts +14 -23
  42. package/dist-types/ts3.4/commands/ReEncryptDataCommand.d.ts +14 -23
  43. package/dist-types/ts3.4/commands/TranslatePinDataCommand.d.ts +14 -23
  44. package/dist-types/ts3.4/commands/VerifyAuthRequestCryptogramCommand.d.ts +12 -24
  45. package/dist-types/ts3.4/commands/VerifyCardValidationDataCommand.d.ts +12 -24
  46. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/VerifyPinDataCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  49. package/package.json +11 -11
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class VerifyMacCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, VerifyMacCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "PaymentCryptographyDataClient";
30
- const commandName = "VerifyMacCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.VerifyMacInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "PaymentCryptographyDataPlane",
39
- operation: "VerifyMac",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_VerifyMacCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_VerifyMacCommand)(output, context);
50
- }
11
+ class VerifyMacCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("PaymentCryptographyDataPlane", "VerifyMac", {})
23
+ .n("PaymentCryptographyDataClient", "VerifyMacCommand")
24
+ .f(models_0_1.VerifyMacInputFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_VerifyMacCommand)
26
+ .de(Aws_restJson1_1.de_VerifyMacCommand)
27
+ .build() {
51
28
  }
52
29
  exports.VerifyMacCommand = VerifyMacCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class VerifyPinDataCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, VerifyPinDataCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "PaymentCryptographyDataClient";
30
- const commandName = "VerifyPinDataCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.VerifyPinDataInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "PaymentCryptographyDataPlane",
39
- operation: "VerifyPinData",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_VerifyPinDataCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_VerifyPinDataCommand)(output, context);
50
- }
11
+ class VerifyPinDataCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("PaymentCryptographyDataPlane", "VerifyPinData", {})
23
+ .n("PaymentCryptographyDataClient", "VerifyPinDataCommand")
24
+ .f(models_0_1.VerifyPinDataInputFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_VerifyPinDataCommand)
26
+ .de(Aws_restJson1_1.de_VerifyPinDataCommand)
27
+ .build() {
51
28
  }
52
29
  exports.VerifyPinDataCommand = VerifyPinDataCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { DecryptDataInputFilterSensitiveLog, DecryptDataOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_DecryptDataCommand, se_DecryptDataCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class DecryptDataCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DecryptDataCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "DecryptDataCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: DecryptDataInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: DecryptDataOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "DecryptData",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_DecryptDataCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_DecryptDataCommand(output, context);
47
- }
8
+ export class DecryptDataCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "DecryptData", {})
20
+ .n("PaymentCryptographyDataClient", "DecryptDataCommand")
21
+ .f(DecryptDataInputFilterSensitiveLog, DecryptDataOutputFilterSensitiveLog)
22
+ .ser(se_DecryptDataCommand)
23
+ .de(de_DecryptDataCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { EncryptDataInputFilterSensitiveLog, EncryptDataOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_EncryptDataCommand, se_EncryptDataCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class EncryptDataCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, EncryptDataCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "EncryptDataCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: EncryptDataInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: EncryptDataOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "EncryptData",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_EncryptDataCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_EncryptDataCommand(output, context);
47
- }
8
+ export class EncryptDataCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "EncryptData", {})
20
+ .n("PaymentCryptographyDataClient", "EncryptDataCommand")
21
+ .f(EncryptDataInputFilterSensitiveLog, EncryptDataOutputFilterSensitiveLog)
22
+ .ser(se_EncryptDataCommand)
23
+ .de(de_EncryptDataCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { GenerateCardValidationDataInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_GenerateCardValidationDataCommand, se_GenerateCardValidationDataCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class GenerateCardValidationDataCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, GenerateCardValidationDataCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "GenerateCardValidationDataCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: GenerateCardValidationDataInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "GenerateCardValidationData",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_GenerateCardValidationDataCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_GenerateCardValidationDataCommand(output, context);
47
- }
8
+ export class GenerateCardValidationDataCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "GenerateCardValidationData", {})
20
+ .n("PaymentCryptographyDataClient", "GenerateCardValidationDataCommand")
21
+ .f(GenerateCardValidationDataInputFilterSensitiveLog, void 0)
22
+ .ser(se_GenerateCardValidationDataCommand)
23
+ .de(de_GenerateCardValidationDataCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { GenerateMacInputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_GenerateMacCommand, se_GenerateMacCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class GenerateMacCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, GenerateMacCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "GenerateMacCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: GenerateMacInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "GenerateMac",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_GenerateMacCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_GenerateMacCommand(output, context);
47
- }
8
+ export class GenerateMacCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "GenerateMac", {})
20
+ .n("PaymentCryptographyDataClient", "GenerateMacCommand")
21
+ .f(GenerateMacInputFilterSensitiveLog, void 0)
22
+ .ser(se_GenerateMacCommand)
23
+ .de(de_GenerateMacCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { GeneratePinDataInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_GeneratePinDataCommand, se_GeneratePinDataCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class GeneratePinDataCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, GeneratePinDataCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "GeneratePinDataCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: GeneratePinDataInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "GeneratePinData",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_GeneratePinDataCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_GeneratePinDataCommand(output, context);
47
- }
8
+ export class GeneratePinDataCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "GeneratePinData", {})
20
+ .n("PaymentCryptographyDataClient", "GeneratePinDataCommand")
21
+ .f(GeneratePinDataInputFilterSensitiveLog, void 0)
22
+ .ser(se_GeneratePinDataCommand)
23
+ .de(de_GeneratePinDataCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { ReEncryptDataInputFilterSensitiveLog, ReEncryptDataOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ReEncryptDataCommand, se_ReEncryptDataCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class ReEncryptDataCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ReEncryptDataCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "ReEncryptDataCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: ReEncryptDataInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: ReEncryptDataOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "ReEncryptData",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ReEncryptDataCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ReEncryptDataCommand(output, context);
47
- }
8
+ export class ReEncryptDataCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "ReEncryptData", {})
20
+ .n("PaymentCryptographyDataClient", "ReEncryptDataCommand")
21
+ .f(ReEncryptDataInputFilterSensitiveLog, ReEncryptDataOutputFilterSensitiveLog)
22
+ .ser(se_ReEncryptDataCommand)
23
+ .de(de_ReEncryptDataCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { TranslatePinDataInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_TranslatePinDataCommand, se_TranslatePinDataCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class TranslatePinDataCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, TranslatePinDataCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "PaymentCryptographyDataClient";
27
- const commandName = "TranslatePinDataCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: TranslatePinDataInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "PaymentCryptographyDataPlane",
36
- operation: "TranslatePinData",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_TranslatePinDataCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_TranslatePinDataCommand(output, context);
47
- }
8
+ export class TranslatePinDataCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("PaymentCryptographyDataPlane", "TranslatePinData", {})
20
+ .n("PaymentCryptographyDataClient", "TranslatePinDataCommand")
21
+ .f(TranslatePinDataInputFilterSensitiveLog, void 0)
22
+ .ser(se_TranslatePinDataCommand)
23
+ .de(de_TranslatePinDataCommand)
24
+ .build() {
48
25
  }