@aws-sdk/client-taxsettings 3.590.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 (119) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +272 -0
  3. package/dist-cjs/TaxSettings.js +25 -0
  4. package/dist-cjs/TaxSettingsClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/BatchDeleteTaxRegistrationCommand.js +29 -0
  8. package/dist-cjs/commands/BatchPutTaxRegistrationCommand.js +29 -0
  9. package/dist-cjs/commands/DeleteTaxRegistrationCommand.js +28 -0
  10. package/dist-cjs/commands/GetTaxRegistrationCommand.js +29 -0
  11. package/dist-cjs/commands/GetTaxRegistrationDocumentCommand.js +28 -0
  12. package/dist-cjs/commands/ListTaxRegistrationsCommand.js +29 -0
  13. package/dist-cjs/commands/PutTaxRegistrationCommand.js +29 -0
  14. package/dist-cjs/commands/index.js +10 -0
  15. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  16. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  17. package/dist-cjs/endpoint/ruleset.js +7 -0
  18. package/dist-cjs/extensionConfiguration.js +2 -0
  19. package/dist-cjs/index.js +11 -0
  20. package/dist-cjs/models/TaxSettingsServiceException.js +12 -0
  21. package/dist-cjs/models/index.js +4 -0
  22. package/dist-cjs/models/models_0.js +198 -0
  23. package/dist-cjs/pagination/Interfaces.js +2 -0
  24. package/dist-cjs/pagination/ListTaxRegistrationsPaginator.js +7 -0
  25. package/dist-cjs/pagination/index.js +5 -0
  26. package/dist-cjs/protocols/Aws_restJson1.js +311 -0
  27. package/dist-cjs/runtimeConfig.browser.js +39 -0
  28. package/dist-cjs/runtimeConfig.js +49 -0
  29. package/dist-cjs/runtimeConfig.native.js +15 -0
  30. package/dist-cjs/runtimeConfig.shared.js +34 -0
  31. package/dist-cjs/runtimeExtensions.js +25 -0
  32. package/dist-es/TaxSettings.js +21 -0
  33. package/dist-es/TaxSettingsClient.js +52 -0
  34. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  35. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  36. package/dist-es/commands/BatchDeleteTaxRegistrationCommand.js +25 -0
  37. package/dist-es/commands/BatchPutTaxRegistrationCommand.js +25 -0
  38. package/dist-es/commands/DeleteTaxRegistrationCommand.js +24 -0
  39. package/dist-es/commands/GetTaxRegistrationCommand.js +25 -0
  40. package/dist-es/commands/GetTaxRegistrationDocumentCommand.js +24 -0
  41. package/dist-es/commands/ListTaxRegistrationsCommand.js +25 -0
  42. package/dist-es/commands/PutTaxRegistrationCommand.js +25 -0
  43. package/dist-es/commands/index.js +7 -0
  44. package/dist-es/endpoint/EndpointParameters.js +14 -0
  45. package/dist-es/endpoint/endpointResolver.js +10 -0
  46. package/dist-es/endpoint/ruleset.js +4 -0
  47. package/dist-es/extensionConfiguration.js +1 -0
  48. package/dist-es/index.js +6 -0
  49. package/dist-es/models/TaxSettingsServiceException.js +8 -0
  50. package/dist-es/models/index.js +1 -0
  51. package/dist-es/models/models_0.js +178 -0
  52. package/dist-es/pagination/Interfaces.js +1 -0
  53. package/dist-es/pagination/ListTaxRegistrationsPaginator.js +4 -0
  54. package/dist-es/pagination/index.js +2 -0
  55. package/dist-es/protocols/Aws_restJson1.js +294 -0
  56. package/dist-es/runtimeConfig.browser.js +34 -0
  57. package/dist-es/runtimeConfig.js +44 -0
  58. package/dist-es/runtimeConfig.native.js +11 -0
  59. package/dist-es/runtimeConfig.shared.js +30 -0
  60. package/dist-es/runtimeExtensions.js +21 -0
  61. package/dist-types/TaxSettings.d.ts +73 -0
  62. package/dist-types/TaxSettingsClient.d.ts +189 -0
  63. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  64. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  65. package/dist-types/commands/BatchDeleteTaxRegistrationCommand.d.ts +81 -0
  66. package/dist-types/commands/BatchPutTaxRegistrationCommand.d.ts +346 -0
  67. package/dist-types/commands/DeleteTaxRegistrationCommand.d.ts +73 -0
  68. package/dist-types/commands/GetTaxRegistrationCommand.d.ts +158 -0
  69. package/dist-types/commands/GetTaxRegistrationDocumentCommand.d.ts +74 -0
  70. package/dist-types/commands/ListTaxRegistrationsCommand.d.ts +186 -0
  71. package/dist-types/commands/PutTaxRegistrationCommand.d.ts +336 -0
  72. package/dist-types/commands/index.d.ts +7 -0
  73. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  74. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  75. package/dist-types/endpoint/ruleset.d.ts +2 -0
  76. package/dist-types/extensionConfiguration.d.ts +9 -0
  77. package/dist-types/index.d.ts +25 -0
  78. package/dist-types/models/TaxSettingsServiceException.d.ts +13 -0
  79. package/dist-types/models/index.d.ts +1 -0
  80. package/dist-types/models/models_0.d.ts +1476 -0
  81. package/dist-types/pagination/Interfaces.d.ts +8 -0
  82. package/dist-types/pagination/ListTaxRegistrationsPaginator.d.ts +7 -0
  83. package/dist-types/pagination/index.d.ts +2 -0
  84. package/dist-types/protocols/Aws_restJson1.d.ts +65 -0
  85. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  86. package/dist-types/runtimeConfig.d.ts +45 -0
  87. package/dist-types/runtimeConfig.native.d.ts +44 -0
  88. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  89. package/dist-types/runtimeExtensions.d.ts +17 -0
  90. package/dist-types/ts3.4/TaxSettings.d.ts +129 -0
  91. package/dist-types/ts3.4/TaxSettingsClient.d.ts +162 -0
  92. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  93. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  94. package/dist-types/ts3.4/commands/BatchDeleteTaxRegistrationCommand.d.ts +39 -0
  95. package/dist-types/ts3.4/commands/BatchPutTaxRegistrationCommand.d.ts +39 -0
  96. package/dist-types/ts3.4/commands/DeleteTaxRegistrationCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/GetTaxRegistrationCommand.d.ts +39 -0
  98. package/dist-types/ts3.4/commands/GetTaxRegistrationDocumentCommand.d.ts +39 -0
  99. package/dist-types/ts3.4/commands/ListTaxRegistrationsCommand.d.ts +39 -0
  100. package/dist-types/ts3.4/commands/PutTaxRegistrationCommand.d.ts +39 -0
  101. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  102. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  103. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  104. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  105. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  106. package/dist-types/ts3.4/index.d.ts +9 -0
  107. package/dist-types/ts3.4/models/TaxSettingsServiceException.d.ts +8 -0
  108. package/dist-types/ts3.4/models/index.d.ts +1 -0
  109. package/dist-types/ts3.4/models/models_0.d.ts +408 -0
  110. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  111. package/dist-types/ts3.4/pagination/ListTaxRegistrationsPaginator.d.ts +11 -0
  112. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  113. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +89 -0
  114. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
  115. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  116. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  117. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  118. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  119. package/package.json +101 -0
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchDeleteTaxRegistrationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class BatchDeleteTaxRegistrationCommand 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("TaxSettings", "BatchDeleteTaxRegistration", {})
23
+ .n("TaxSettingsClient", "BatchDeleteTaxRegistrationCommand")
24
+ .f(void 0, models_0_1.BatchDeleteTaxRegistrationResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_BatchDeleteTaxRegistrationCommand)
26
+ .de(Aws_restJson1_1.de_BatchDeleteTaxRegistrationCommand)
27
+ .build() {
28
+ }
29
+ exports.BatchDeleteTaxRegistrationCommand = BatchDeleteTaxRegistrationCommand;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchPutTaxRegistrationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class BatchPutTaxRegistrationCommand 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("TaxSettings", "BatchPutTaxRegistration", {})
23
+ .n("TaxSettingsClient", "BatchPutTaxRegistrationCommand")
24
+ .f(models_0_1.BatchPutTaxRegistrationRequestFilterSensitiveLog, models_0_1.BatchPutTaxRegistrationResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_BatchPutTaxRegistrationCommand)
26
+ .de(Aws_restJson1_1.de_BatchPutTaxRegistrationCommand)
27
+ .build() {
28
+ }
29
+ exports.BatchPutTaxRegistrationCommand = BatchPutTaxRegistrationCommand;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTaxRegistrationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DeleteTaxRegistrationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TaxSettings", "DeleteTaxRegistration", {})
22
+ .n("TaxSettingsClient", "DeleteTaxRegistrationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteTaxRegistrationCommand)
25
+ .de(Aws_restJson1_1.de_DeleteTaxRegistrationCommand)
26
+ .build() {
27
+ }
28
+ exports.DeleteTaxRegistrationCommand = DeleteTaxRegistrationCommand;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTaxRegistrationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class GetTaxRegistrationCommand 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("TaxSettings", "GetTaxRegistration", {})
23
+ .n("TaxSettingsClient", "GetTaxRegistrationCommand")
24
+ .f(void 0, models_0_1.GetTaxRegistrationResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_GetTaxRegistrationCommand)
26
+ .de(Aws_restJson1_1.de_GetTaxRegistrationCommand)
27
+ .build() {
28
+ }
29
+ exports.GetTaxRegistrationCommand = GetTaxRegistrationCommand;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTaxRegistrationDocumentCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetTaxRegistrationDocumentCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TaxSettings", "GetTaxRegistrationDocument", {})
22
+ .n("TaxSettingsClient", "GetTaxRegistrationDocumentCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetTaxRegistrationDocumentCommand)
25
+ .de(Aws_restJson1_1.de_GetTaxRegistrationDocumentCommand)
26
+ .build() {
27
+ }
28
+ exports.GetTaxRegistrationDocumentCommand = GetTaxRegistrationDocumentCommand;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTaxRegistrationsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class ListTaxRegistrationsCommand 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("TaxSettings", "ListTaxRegistrations", {})
23
+ .n("TaxSettingsClient", "ListTaxRegistrationsCommand")
24
+ .f(void 0, models_0_1.ListTaxRegistrationsResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_ListTaxRegistrationsCommand)
26
+ .de(Aws_restJson1_1.de_ListTaxRegistrationsCommand)
27
+ .build() {
28
+ }
29
+ exports.ListTaxRegistrationsCommand = ListTaxRegistrationsCommand;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutTaxRegistrationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class PutTaxRegistrationCommand 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("TaxSettings", "PutTaxRegistration", {})
23
+ .n("TaxSettingsClient", "PutTaxRegistrationCommand")
24
+ .f(models_0_1.PutTaxRegistrationRequestFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_PutTaxRegistrationCommand)
26
+ .de(Aws_restJson1_1.de_PutTaxRegistrationCommand)
27
+ .build() {
28
+ }
29
+ exports.PutTaxRegistrationCommand = PutTaxRegistrationCommand;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchDeleteTaxRegistrationCommand"), exports);
5
+ tslib_1.__exportStar(require("./BatchPutTaxRegistrationCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteTaxRegistrationCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetTaxRegistrationCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetTaxRegistrationDocumentCommand"), exports);
9
+ tslib_1.__exportStar(require("./ListTaxRegistrationsCommand"), exports);
10
+ tslib_1.__exportStar(require("./PutTaxRegistrationCommand"), exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
9
+ defaultSigningName: "tax",
10
+ };
11
+ };
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
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
6
+ const ruleset_1 = require("./ruleset");
7
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
+ endpointParams: endpointParams,
10
+ logger: context.logger,
11
+ });
12
+ };
13
+ exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://tax-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://tax-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://tax.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://tax.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxSettingsServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./TaxSettingsClient"), exports);
6
+ tslib_1.__exportStar(require("./TaxSettings"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ var TaxSettingsServiceException_1 = require("./models/TaxSettingsServiceException");
11
+ Object.defineProperty(exports, "TaxSettingsServiceException", { enumerable: true, get: function () { return TaxSettingsServiceException_1.TaxSettingsServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxSettingsServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class TaxSettingsServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, TaxSettingsServiceException.prototype);
10
+ }
11
+ }
12
+ exports.TaxSettingsServiceException = TaxSettingsServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutTaxRegistrationRequestFilterSensitiveLog = exports.ListTaxRegistrationsResponseFilterSensitiveLog = exports.GetTaxRegistrationResponseFilterSensitiveLog = exports.TaxRegistrationFilterSensitiveLog = exports.BatchPutTaxRegistrationResponseFilterSensitiveLog = exports.BatchPutTaxRegistrationErrorFilterSensitiveLog = exports.BatchPutTaxRegistrationRequestFilterSensitiveLog = exports.TaxRegistrationEntryFilterSensitiveLog = exports.BatchDeleteTaxRegistrationResponseFilterSensitiveLog = exports.BatchDeleteTaxRegistrationErrorFilterSensitiveLog = exports.AccountDetailsFilterSensitiveLog = exports.TaxRegistrationWithJurisdictionFilterSensitiveLog = exports.AccountMetaDataFilterSensitiveLog = exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionErrorCode = exports.InternalServerException = exports.ConflictException = exports.TaxRegistrationStatus = exports.Sector = exports.TaxRegistrationType = exports.UkraineTrnType = exports.Industries = exports.RegistrationType = exports.SaudiArabiaTaxRegistrationNumberType = exports.TaxRegistrationNumberType = exports.MalaysiaServiceTaxCode = exports.IsraelDealerType = exports.IsraelCustomerType = exports.PersonType = exports.AddressRoleType = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const TaxSettingsServiceException_1 = require("./TaxSettingsServiceException");
6
+ exports.AddressRoleType = {
7
+ BILLING_ADDRESS: "BillingAddress",
8
+ CONTACT_ADDRESS: "ContactAddress",
9
+ TAX_ADDRESS: "TaxAddress",
10
+ };
11
+ exports.PersonType = {
12
+ BUSINESS: "Business",
13
+ LEGAL_PERSON: "Legal Person",
14
+ PHYSICAL_PERSON: "Physical Person",
15
+ };
16
+ exports.IsraelCustomerType = {
17
+ BUSINESS: "Business",
18
+ INDIVIDUAL: "Individual",
19
+ };
20
+ exports.IsraelDealerType = {
21
+ AUTHORIZED: "Authorized",
22
+ NON_AUTHORIZED: "Non-authorized",
23
+ };
24
+ exports.MalaysiaServiceTaxCode = {
25
+ CONSULTANCY: "Consultancy",
26
+ DIGITAL_SVC_ELECTRONIC_MEDIUM: "Digital Service And Electronic Medium",
27
+ IT_SERVICES: "IT Services",
28
+ TRAINING_OR_COACHING: "Training Or Coaching",
29
+ };
30
+ exports.TaxRegistrationNumberType = {
31
+ LOCAL_REGISTRATION_NUMBER: "LocalRegistrationNumber",
32
+ TAX_REGISTRATION_NUMBER: "TaxRegistrationNumber",
33
+ };
34
+ exports.SaudiArabiaTaxRegistrationNumberType = {
35
+ COMMERCIAL_REGISTRATION_NUMBER: "CommercialRegistrationNumber",
36
+ TAX_IDENTIFICATION_NUMBER: "TaxIdentificationNumber",
37
+ TAX_REGISTRATION_NUMBER: "TaxRegistrationNumber",
38
+ };
39
+ exports.RegistrationType = {
40
+ INTRA_EU: "Intra-EU",
41
+ LOCAL: "Local",
42
+ };
43
+ exports.Industries = {
44
+ BANKS: "Banks",
45
+ CIRCULATING_ORG: "CirculatingOrg",
46
+ DEVELOPMENT_AGENCIES: "DevelopmentAgencies",
47
+ INSURANCE: "Insurance",
48
+ PENSION_AND_BENEFIT_FUNDS: "PensionAndBenefitFunds",
49
+ PROFESSIONAL_ORG: "ProfessionalOrg",
50
+ };
51
+ exports.UkraineTrnType = {
52
+ BUSINESS: "Business",
53
+ INDIVIDUAL: "Individual",
54
+ };
55
+ exports.TaxRegistrationType = {
56
+ CNPJ: "CNPJ",
57
+ CPF: "CPF",
58
+ GST: "GST",
59
+ SST: "SST",
60
+ VAT: "VAT",
61
+ };
62
+ exports.Sector = {
63
+ BUSINESS: "Business",
64
+ INDIVIDUAL: "Individual",
65
+ PUBLIC_INSTITUTIONS: "Government",
66
+ };
67
+ exports.TaxRegistrationStatus = {
68
+ DELETED: "Deleted",
69
+ PENDING: "Pending",
70
+ REJECTED: "Rejected",
71
+ VERIFIED: "Verified",
72
+ };
73
+ class ConflictException extends TaxSettingsServiceException_1.TaxSettingsServiceException {
74
+ constructor(opts) {
75
+ super({
76
+ name: "ConflictException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ this.name = "ConflictException";
81
+ this.$fault = "client";
82
+ Object.setPrototypeOf(this, ConflictException.prototype);
83
+ this.errorCode = opts.errorCode;
84
+ }
85
+ }
86
+ exports.ConflictException = ConflictException;
87
+ class InternalServerException extends TaxSettingsServiceException_1.TaxSettingsServiceException {
88
+ constructor(opts) {
89
+ super({
90
+ name: "InternalServerException",
91
+ $fault: "server",
92
+ ...opts,
93
+ });
94
+ this.name = "InternalServerException";
95
+ this.$fault = "server";
96
+ Object.setPrototypeOf(this, InternalServerException.prototype);
97
+ this.errorCode = opts.errorCode;
98
+ }
99
+ }
100
+ exports.InternalServerException = InternalServerException;
101
+ exports.ValidationExceptionErrorCode = {
102
+ EXPIRED_TOKEN: "ExpiredToken",
103
+ FIELD_VALIDATION_FAILED: "FieldValidationFailed",
104
+ INVALID_TOKEN: "InvalidToken",
105
+ MALFORMED_TOKEN: "MalformedToken",
106
+ MISSING_INPUT: "MissingInput",
107
+ };
108
+ class ValidationException extends TaxSettingsServiceException_1.TaxSettingsServiceException {
109
+ constructor(opts) {
110
+ super({
111
+ name: "ValidationException",
112
+ $fault: "client",
113
+ ...opts,
114
+ });
115
+ this.name = "ValidationException";
116
+ this.$fault = "client";
117
+ Object.setPrototypeOf(this, ValidationException.prototype);
118
+ this.errorCode = opts.errorCode;
119
+ this.fieldList = opts.fieldList;
120
+ }
121
+ }
122
+ exports.ValidationException = ValidationException;
123
+ class ResourceNotFoundException extends TaxSettingsServiceException_1.TaxSettingsServiceException {
124
+ constructor(opts) {
125
+ super({
126
+ name: "ResourceNotFoundException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ this.name = "ResourceNotFoundException";
131
+ this.$fault = "client";
132
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
133
+ this.errorCode = opts.errorCode;
134
+ }
135
+ }
136
+ exports.ResourceNotFoundException = ResourceNotFoundException;
137
+ const AccountMetaDataFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ exports.AccountMetaDataFilterSensitiveLog = AccountMetaDataFilterSensitiveLog;
141
+ const TaxRegistrationWithJurisdictionFilterSensitiveLog = (obj) => ({
142
+ ...obj,
143
+ });
144
+ exports.TaxRegistrationWithJurisdictionFilterSensitiveLog = TaxRegistrationWithJurisdictionFilterSensitiveLog;
145
+ const AccountDetailsFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ ...(obj.taxRegistration && { taxRegistration: smithy_client_1.SENSITIVE_STRING }),
148
+ ...(obj.accountMetaData && { accountMetaData: smithy_client_1.SENSITIVE_STRING }),
149
+ });
150
+ exports.AccountDetailsFilterSensitiveLog = AccountDetailsFilterSensitiveLog;
151
+ const BatchDeleteTaxRegistrationErrorFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
154
+ });
155
+ exports.BatchDeleteTaxRegistrationErrorFilterSensitiveLog = BatchDeleteTaxRegistrationErrorFilterSensitiveLog;
156
+ const BatchDeleteTaxRegistrationResponseFilterSensitiveLog = (obj) => ({
157
+ ...obj,
158
+ ...(obj.errors && { errors: obj.errors.map((item) => (0, exports.BatchDeleteTaxRegistrationErrorFilterSensitiveLog)(item)) }),
159
+ });
160
+ exports.BatchDeleteTaxRegistrationResponseFilterSensitiveLog = BatchDeleteTaxRegistrationResponseFilterSensitiveLog;
161
+ const TaxRegistrationEntryFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ exports.TaxRegistrationEntryFilterSensitiveLog = TaxRegistrationEntryFilterSensitiveLog;
165
+ const BatchPutTaxRegistrationRequestFilterSensitiveLog = (obj) => ({
166
+ ...obj,
167
+ ...(obj.taxRegistrationEntry && { taxRegistrationEntry: smithy_client_1.SENSITIVE_STRING }),
168
+ });
169
+ exports.BatchPutTaxRegistrationRequestFilterSensitiveLog = BatchPutTaxRegistrationRequestFilterSensitiveLog;
170
+ const BatchPutTaxRegistrationErrorFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
173
+ });
174
+ exports.BatchPutTaxRegistrationErrorFilterSensitiveLog = BatchPutTaxRegistrationErrorFilterSensitiveLog;
175
+ const BatchPutTaxRegistrationResponseFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ ...(obj.errors && { errors: obj.errors.map((item) => (0, exports.BatchPutTaxRegistrationErrorFilterSensitiveLog)(item)) }),
178
+ });
179
+ exports.BatchPutTaxRegistrationResponseFilterSensitiveLog = BatchPutTaxRegistrationResponseFilterSensitiveLog;
180
+ const TaxRegistrationFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ exports.TaxRegistrationFilterSensitiveLog = TaxRegistrationFilterSensitiveLog;
184
+ const GetTaxRegistrationResponseFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ ...(obj.taxRegistration && { taxRegistration: smithy_client_1.SENSITIVE_STRING }),
187
+ });
188
+ exports.GetTaxRegistrationResponseFilterSensitiveLog = GetTaxRegistrationResponseFilterSensitiveLog;
189
+ const ListTaxRegistrationsResponseFilterSensitiveLog = (obj) => ({
190
+ ...obj,
191
+ ...(obj.accountDetails && { accountDetails: smithy_client_1.SENSITIVE_STRING }),
192
+ });
193
+ exports.ListTaxRegistrationsResponseFilterSensitiveLog = ListTaxRegistrationsResponseFilterSensitiveLog;
194
+ const PutTaxRegistrationRequestFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ ...(obj.taxRegistrationEntry && { taxRegistrationEntry: smithy_client_1.SENSITIVE_STRING }),
197
+ });
198
+ exports.PutTaxRegistrationRequestFilterSensitiveLog = PutTaxRegistrationRequestFilterSensitiveLog;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTaxRegistrations = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListTaxRegistrationsCommand_1 = require("../commands/ListTaxRegistrationsCommand");
6
+ const TaxSettingsClient_1 = require("../TaxSettingsClient");
7
+ exports.paginateListTaxRegistrations = (0, core_1.createPaginator)(TaxSettingsClient_1.TaxSettingsClient, ListTaxRegistrationsCommand_1.ListTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListTaxRegistrationsPaginator"), exports);