@aws-sdk/client-taxsettings 3.901.0 → 3.907.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 (2) hide show
  1. package/dist-cjs/index.js +1355 -1559
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,1598 +1,1394 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- AccountDetailsFilterSensitiveLog: () => AccountDetailsFilterSensitiveLog,
26
- AccountMetaDataFilterSensitiveLog: () => AccountMetaDataFilterSensitiveLog,
27
- AddressRoleType: () => AddressRoleType,
28
- AttachmentUploadException: () => AttachmentUploadException,
29
- BatchDeleteTaxRegistrationCommand: () => BatchDeleteTaxRegistrationCommand,
30
- BatchDeleteTaxRegistrationErrorFilterSensitiveLog: () => BatchDeleteTaxRegistrationErrorFilterSensitiveLog,
31
- BatchDeleteTaxRegistrationResponseFilterSensitiveLog: () => BatchDeleteTaxRegistrationResponseFilterSensitiveLog,
32
- BatchGetTaxExemptionsCommand: () => BatchGetTaxExemptionsCommand,
33
- BatchPutTaxRegistrationCommand: () => BatchPutTaxRegistrationCommand,
34
- BatchPutTaxRegistrationErrorFilterSensitiveLog: () => BatchPutTaxRegistrationErrorFilterSensitiveLog,
35
- BatchPutTaxRegistrationRequestFilterSensitiveLog: () => BatchPutTaxRegistrationRequestFilterSensitiveLog,
36
- BatchPutTaxRegistrationResponseFilterSensitiveLog: () => BatchPutTaxRegistrationResponseFilterSensitiveLog,
37
- CaseCreationLimitExceededException: () => CaseCreationLimitExceededException,
38
- ConflictException: () => ConflictException,
39
- DeleteSupplementalTaxRegistrationCommand: () => DeleteSupplementalTaxRegistrationCommand,
40
- DeleteTaxRegistrationCommand: () => DeleteTaxRegistrationCommand,
41
- EntityExemptionAccountStatus: () => EntityExemptionAccountStatus,
42
- GetTaxExemptionTypesCommand: () => GetTaxExemptionTypesCommand,
43
- GetTaxInheritanceCommand: () => GetTaxInheritanceCommand,
44
- GetTaxRegistrationCommand: () => GetTaxRegistrationCommand,
45
- GetTaxRegistrationDocumentCommand: () => GetTaxRegistrationDocumentCommand,
46
- GetTaxRegistrationResponseFilterSensitiveLog: () => GetTaxRegistrationResponseFilterSensitiveLog,
47
- HeritageStatus: () => HeritageStatus,
48
- IndonesiaTaxRegistrationNumberType: () => IndonesiaTaxRegistrationNumberType,
49
- Industries: () => Industries,
50
- InternalServerException: () => InternalServerException,
51
- IsraelCustomerType: () => IsraelCustomerType,
52
- IsraelDealerType: () => IsraelDealerType,
53
- ListSupplementalTaxRegistrationsCommand: () => ListSupplementalTaxRegistrationsCommand,
54
- ListSupplementalTaxRegistrationsResponseFilterSensitiveLog: () => ListSupplementalTaxRegistrationsResponseFilterSensitiveLog,
55
- ListTaxExemptionsCommand: () => ListTaxExemptionsCommand,
56
- ListTaxRegistrationsCommand: () => ListTaxRegistrationsCommand,
57
- ListTaxRegistrationsResponseFilterSensitiveLog: () => ListTaxRegistrationsResponseFilterSensitiveLog,
58
- MalaysiaServiceTaxCode: () => MalaysiaServiceTaxCode,
59
- PersonType: () => PersonType,
60
- PutSupplementalTaxRegistrationCommand: () => PutSupplementalTaxRegistrationCommand,
61
- PutSupplementalTaxRegistrationRequestFilterSensitiveLog: () => PutSupplementalTaxRegistrationRequestFilterSensitiveLog,
62
- PutTaxExemptionCommand: () => PutTaxExemptionCommand,
63
- PutTaxInheritanceCommand: () => PutTaxInheritanceCommand,
64
- PutTaxRegistrationCommand: () => PutTaxRegistrationCommand,
65
- PutTaxRegistrationRequestFilterSensitiveLog: () => PutTaxRegistrationRequestFilterSensitiveLog,
66
- RegistrationType: () => RegistrationType,
67
- ResourceNotFoundException: () => ResourceNotFoundException,
68
- SaudiArabiaTaxRegistrationNumberType: () => SaudiArabiaTaxRegistrationNumberType,
69
- Sector: () => Sector,
70
- SupplementalTaxRegistrationEntryFilterSensitiveLog: () => SupplementalTaxRegistrationEntryFilterSensitiveLog,
71
- SupplementalTaxRegistrationFilterSensitiveLog: () => SupplementalTaxRegistrationFilterSensitiveLog,
72
- SupplementalTaxRegistrationType: () => SupplementalTaxRegistrationType,
73
- TaxRegistrationEntryFilterSensitiveLog: () => TaxRegistrationEntryFilterSensitiveLog,
74
- TaxRegistrationFilterSensitiveLog: () => TaxRegistrationFilterSensitiveLog,
75
- TaxRegistrationNumberType: () => TaxRegistrationNumberType,
76
- TaxRegistrationStatus: () => TaxRegistrationStatus,
77
- TaxRegistrationType: () => TaxRegistrationType,
78
- TaxRegistrationWithJurisdictionFilterSensitiveLog: () => TaxRegistrationWithJurisdictionFilterSensitiveLog,
79
- TaxSettings: () => TaxSettings,
80
- TaxSettingsClient: () => TaxSettingsClient,
81
- TaxSettingsServiceException: () => TaxSettingsServiceException,
82
- UkraineTrnType: () => UkraineTrnType,
83
- UzbekistanTaxRegistrationNumberType: () => UzbekistanTaxRegistrationNumberType,
84
- ValidationException: () => ValidationException,
85
- ValidationExceptionErrorCode: () => ValidationExceptionErrorCode,
86
- __Client: () => import_smithy_client.Client,
87
- paginateListSupplementalTaxRegistrations: () => paginateListSupplementalTaxRegistrations,
88
- paginateListTaxExemptions: () => paginateListTaxExemptions,
89
- paginateListTaxRegistrations: () => paginateListTaxRegistrations
90
- });
91
- module.exports = __toCommonJS(index_exports);
92
-
93
- // src/TaxSettingsClient.ts
94
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
95
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
96
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
97
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
98
- var import_config_resolver = require("@smithy/config-resolver");
99
- var import_core = require("@smithy/core");
100
- var import_middleware_content_length = require("@smithy/middleware-content-length");
101
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
102
- var import_middleware_retry = require("@smithy/middleware-retry");
103
-
104
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
105
-
106
- // src/endpoint/EndpointParameters.ts
107
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
108
- return Object.assign(options, {
109
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
110
- useFipsEndpoint: options.useFipsEndpoint ?? false,
111
- defaultSigningName: "tax"
112
- });
113
- }, "resolveClientEndpointParameters");
114
- var commonParams = {
115
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
116
- Endpoint: { type: "builtInParams", name: "endpoint" },
117
- Region: { type: "builtInParams", name: "region" },
118
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "tax",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
119
32
  };
120
33
 
121
- // src/TaxSettingsClient.ts
122
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
123
72
 
124
- // src/runtimeExtensions.ts
125
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
126
- var import_protocol_http = require("@smithy/protocol-http");
127
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
128
78
 
129
- // src/auth/httpAuthExtensionConfiguration.ts
130
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
131
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
132
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
133
- let _credentials = runtimeConfig.credentials;
134
- return {
135
- setHttpAuthScheme(httpAuthScheme) {
136
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
137
- if (index === -1) {
138
- _httpAuthSchemes.push(httpAuthScheme);
139
- } else {
140
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
141
- }
142
- },
143
- httpAuthSchemes() {
144
- return _httpAuthSchemes;
145
- },
146
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
147
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
148
- },
149
- httpAuthSchemeProvider() {
150
- return _httpAuthSchemeProvider;
151
- },
152
- setCredentials(credentials) {
153
- _credentials = credentials;
154
- },
155
- credentials() {
156
- return _credentials;
79
+ class TaxSettingsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultTaxSettingsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
157
107
  }
158
- };
159
- }, "getHttpAuthExtensionConfiguration");
160
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
161
- return {
162
- httpAuthSchemes: config.httpAuthSchemes(),
163
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
164
- credentials: config.credentials()
165
- };
166
- }, "resolveHttpAuthRuntimeConfig");
167
-
168
- // src/runtimeExtensions.ts
169
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
170
- const extensionConfiguration = Object.assign(
171
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
172
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
173
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
174
- getHttpAuthExtensionConfiguration(runtimeConfig)
175
- );
176
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
177
- return Object.assign(
178
- runtimeConfig,
179
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
180
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
181
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
182
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
183
- );
184
- }, "resolveRuntimeExtensions");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
185
112
 
186
- // src/TaxSettingsClient.ts
187
- var TaxSettingsClient = class extends import_smithy_client.Client {
188
- static {
189
- __name(this, "TaxSettingsClient");
190
- }
191
- /**
192
- * The resolved configuration of TaxSettingsClient class. This is resolved and normalized from the {@link TaxSettingsClientConfig | constructor configuration interface}.
193
- */
194
- config;
195
- constructor(...[configuration]) {
196
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
197
- super(_config_0);
198
- this.initConfig = _config_0;
199
- const _config_1 = resolveClientEndpointParameters(_config_0);
200
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
201
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
202
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
203
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
204
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
205
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
206
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
207
- this.config = _config_8;
208
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
213
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
214
- this.middlewareStack.use(
215
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
216
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultTaxSettingsHttpAuthSchemeParametersProvider,
217
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
218
- "aws.auth#sigv4": config.credentials
219
- }), "identityProviderConfigProvider")
220
- })
221
- );
222
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
223
- }
224
- /**
225
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
226
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
227
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
228
- */
229
- destroy() {
230
- super.destroy();
231
- }
113
+ class TaxSettingsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, TaxSettingsServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends TaxSettingsServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ }
131
+ }
132
+ const AddressRoleType = {
133
+ BILLING_ADDRESS: "BillingAddress",
134
+ CONTACT_ADDRESS: "ContactAddress",
135
+ TAX_ADDRESS: "TaxAddress",
232
136
  };
233
-
234
- // src/TaxSettings.ts
235
-
236
-
237
- // src/commands/BatchDeleteTaxRegistrationCommand.ts
238
-
239
- var import_middleware_serde = require("@smithy/middleware-serde");
240
-
241
-
242
- // src/models/models_0.ts
243
-
244
-
245
- // src/models/TaxSettingsServiceException.ts
246
-
247
- var TaxSettingsServiceException = class _TaxSettingsServiceException extends import_smithy_client.ServiceException {
248
- static {
249
- __name(this, "TaxSettingsServiceException");
250
- }
251
- /**
252
- * @internal
253
- */
254
- constructor(options) {
255
- super(options);
256
- Object.setPrototypeOf(this, _TaxSettingsServiceException.prototype);
257
- }
137
+ const PersonType = {
138
+ BUSINESS: "Business",
139
+ LEGAL_PERSON: "Legal Person",
140
+ PHYSICAL_PERSON: "Physical Person",
141
+ };
142
+ const IndonesiaTaxRegistrationNumberType = {
143
+ NIK: "NIK",
144
+ NITKU: "NITKU",
145
+ NPWP: "NPWP",
146
+ PASSPORT_NUMBER: "PassportNumber",
147
+ };
148
+ const IsraelCustomerType = {
149
+ BUSINESS: "Business",
150
+ INDIVIDUAL: "Individual",
151
+ };
152
+ const IsraelDealerType = {
153
+ AUTHORIZED: "Authorized",
154
+ NON_AUTHORIZED: "Non-authorized",
155
+ };
156
+ const MalaysiaServiceTaxCode = {
157
+ CONSULTANCY: "Consultancy",
158
+ DIGITAL_SVC_ELECTRONIC_MEDIUM: "Digital Service And Electronic Medium",
159
+ IT_SERVICES: "IT Services",
160
+ TRAINING_OR_COACHING: "Training Or Coaching",
161
+ };
162
+ const TaxRegistrationNumberType = {
163
+ LOCAL_REGISTRATION_NUMBER: "LocalRegistrationNumber",
164
+ TAX_REGISTRATION_NUMBER: "TaxRegistrationNumber",
165
+ };
166
+ const SaudiArabiaTaxRegistrationNumberType = {
167
+ COMMERCIAL_REGISTRATION_NUMBER: "CommercialRegistrationNumber",
168
+ TAX_IDENTIFICATION_NUMBER: "TaxIdentificationNumber",
169
+ TAX_REGISTRATION_NUMBER: "TaxRegistrationNumber",
258
170
  };
171
+ const RegistrationType = {
172
+ INTRA_EU: "Intra-EU",
173
+ LOCAL: "Local",
174
+ };
175
+ const Industries = {
176
+ BANKS: "Banks",
177
+ CIRCULATING_ORG: "CirculatingOrg",
178
+ DEVELOPMENT_AGENCIES: "DevelopmentAgencies",
179
+ INSURANCE: "Insurance",
180
+ PENSION_AND_BENEFIT_FUNDS: "PensionAndBenefitFunds",
181
+ PROFESSIONAL_ORG: "ProfessionalOrg",
182
+ };
183
+ const UkraineTrnType = {
184
+ BUSINESS: "Business",
185
+ INDIVIDUAL: "Individual",
186
+ };
187
+ const UzbekistanTaxRegistrationNumberType = {
188
+ BUSINESS: "Business",
189
+ INDIVIDUAL: "Individual",
190
+ };
191
+ const TaxRegistrationType = {
192
+ CNPJ: "CNPJ",
193
+ CPF: "CPF",
194
+ GST: "GST",
195
+ NRIC: "NRIC",
196
+ SST: "SST",
197
+ TIN: "TIN",
198
+ VAT: "VAT",
199
+ };
200
+ const Sector = {
201
+ BUSINESS: "Business",
202
+ INDIVIDUAL: "Individual",
203
+ PUBLIC_INSTITUTIONS: "Government",
204
+ };
205
+ const TaxRegistrationStatus = {
206
+ DELETED: "Deleted",
207
+ PENDING: "Pending",
208
+ REJECTED: "Rejected",
209
+ VERIFIED: "Verified",
210
+ };
211
+ class AttachmentUploadException extends TaxSettingsServiceException {
212
+ name = "AttachmentUploadException";
213
+ $fault = "client";
214
+ constructor(opts) {
215
+ super({
216
+ name: "AttachmentUploadException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, AttachmentUploadException.prototype);
221
+ }
222
+ }
223
+ class ConflictException extends TaxSettingsServiceException {
224
+ name = "ConflictException";
225
+ $fault = "client";
226
+ errorCode;
227
+ constructor(opts) {
228
+ super({
229
+ name: "ConflictException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, ConflictException.prototype);
234
+ this.errorCode = opts.errorCode;
235
+ }
236
+ }
237
+ class InternalServerException extends TaxSettingsServiceException {
238
+ name = "InternalServerException";
239
+ $fault = "server";
240
+ errorCode;
241
+ constructor(opts) {
242
+ super({
243
+ name: "InternalServerException",
244
+ $fault: "server",
245
+ ...opts,
246
+ });
247
+ Object.setPrototypeOf(this, InternalServerException.prototype);
248
+ this.errorCode = opts.errorCode;
249
+ }
250
+ }
251
+ const ValidationExceptionErrorCode = {
252
+ EXPIRED_TOKEN: "ExpiredToken",
253
+ FIELD_VALIDATION_FAILED: "FieldValidationFailed",
254
+ INVALID_TOKEN: "InvalidToken",
255
+ MALFORMED_TOKEN: "MalformedToken",
256
+ MISSING_INPUT: "MissingInput",
257
+ };
258
+ class ValidationException extends TaxSettingsServiceException {
259
+ name = "ValidationException";
260
+ $fault = "client";
261
+ errorCode;
262
+ fieldList;
263
+ constructor(opts) {
264
+ super({
265
+ name: "ValidationException",
266
+ $fault: "client",
267
+ ...opts,
268
+ });
269
+ Object.setPrototypeOf(this, ValidationException.prototype);
270
+ this.errorCode = opts.errorCode;
271
+ this.fieldList = opts.fieldList;
272
+ }
273
+ }
274
+ const EntityExemptionAccountStatus = {
275
+ Expired: "Expired",
276
+ None: "None",
277
+ Pending: "Pending",
278
+ Valid: "Valid",
279
+ };
280
+ class ResourceNotFoundException extends TaxSettingsServiceException {
281
+ name = "ResourceNotFoundException";
282
+ $fault = "client";
283
+ errorCode;
284
+ constructor(opts) {
285
+ super({
286
+ name: "ResourceNotFoundException",
287
+ $fault: "client",
288
+ ...opts,
289
+ });
290
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
291
+ this.errorCode = opts.errorCode;
292
+ }
293
+ }
294
+ class CaseCreationLimitExceededException extends TaxSettingsServiceException {
295
+ name = "CaseCreationLimitExceededException";
296
+ $fault = "client";
297
+ constructor(opts) {
298
+ super({
299
+ name: "CaseCreationLimitExceededException",
300
+ $fault: "client",
301
+ ...opts,
302
+ });
303
+ Object.setPrototypeOf(this, CaseCreationLimitExceededException.prototype);
304
+ }
305
+ }
306
+ const HeritageStatus = {
307
+ OptIn: "OptIn",
308
+ OptOut: "OptOut",
309
+ };
310
+ const SupplementalTaxRegistrationType = {
311
+ VAT: "VAT",
312
+ };
313
+ const AccountMetaDataFilterSensitiveLog = (obj) => ({
314
+ ...obj,
315
+ });
316
+ const TaxRegistrationWithJurisdictionFilterSensitiveLog = (obj) => ({
317
+ ...obj,
318
+ });
319
+ const AccountDetailsFilterSensitiveLog = (obj) => ({
320
+ ...obj,
321
+ ...(obj.taxRegistration && { taxRegistration: smithyClient.SENSITIVE_STRING }),
322
+ ...(obj.accountMetaData && { accountMetaData: smithyClient.SENSITIVE_STRING }),
323
+ });
324
+ const BatchDeleteTaxRegistrationErrorFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ ...(obj.message && { message: smithyClient.SENSITIVE_STRING }),
327
+ });
328
+ const BatchDeleteTaxRegistrationResponseFilterSensitiveLog = (obj) => ({
329
+ ...obj,
330
+ ...(obj.errors && { errors: obj.errors.map((item) => BatchDeleteTaxRegistrationErrorFilterSensitiveLog(item)) }),
331
+ });
332
+ const TaxRegistrationEntryFilterSensitiveLog = (obj) => ({
333
+ ...obj,
334
+ });
335
+ const BatchPutTaxRegistrationRequestFilterSensitiveLog = (obj) => ({
336
+ ...obj,
337
+ ...(obj.taxRegistrationEntry && { taxRegistrationEntry: smithyClient.SENSITIVE_STRING }),
338
+ });
339
+ const BatchPutTaxRegistrationErrorFilterSensitiveLog = (obj) => ({
340
+ ...obj,
341
+ ...(obj.message && { message: smithyClient.SENSITIVE_STRING }),
342
+ });
343
+ const BatchPutTaxRegistrationResponseFilterSensitiveLog = (obj) => ({
344
+ ...obj,
345
+ ...(obj.errors && { errors: obj.errors.map((item) => BatchPutTaxRegistrationErrorFilterSensitiveLog(item)) }),
346
+ });
347
+ const TaxRegistrationFilterSensitiveLog = (obj) => ({
348
+ ...obj,
349
+ });
350
+ const GetTaxRegistrationResponseFilterSensitiveLog = (obj) => ({
351
+ ...obj,
352
+ ...(obj.taxRegistration && { taxRegistration: smithyClient.SENSITIVE_STRING }),
353
+ });
354
+ const SupplementalTaxRegistrationFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ });
357
+ const ListSupplementalTaxRegistrationsResponseFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ ...(obj.taxRegistrations && { taxRegistrations: smithyClient.SENSITIVE_STRING }),
360
+ });
361
+ const ListTaxRegistrationsResponseFilterSensitiveLog = (obj) => ({
362
+ ...obj,
363
+ ...(obj.accountDetails && { accountDetails: smithyClient.SENSITIVE_STRING }),
364
+ });
365
+ const SupplementalTaxRegistrationEntryFilterSensitiveLog = (obj) => ({
366
+ ...obj,
367
+ });
368
+ const PutSupplementalTaxRegistrationRequestFilterSensitiveLog = (obj) => ({
369
+ ...obj,
370
+ ...(obj.taxRegistrationEntry && { taxRegistrationEntry: smithyClient.SENSITIVE_STRING }),
371
+ });
372
+ const PutTaxRegistrationRequestFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ ...(obj.taxRegistrationEntry && { taxRegistrationEntry: smithyClient.SENSITIVE_STRING }),
375
+ });
259
376
 
260
- // src/models/models_0.ts
261
- var AccessDeniedException = class _AccessDeniedException extends TaxSettingsServiceException {
262
- static {
263
- __name(this, "AccessDeniedException");
264
- }
265
- name = "AccessDeniedException";
266
- $fault = "client";
267
- /**
268
- * @internal
269
- */
270
- constructor(opts) {
271
- super({
272
- name: "AccessDeniedException",
273
- $fault: "client",
274
- ...opts
377
+ const se_BatchDeleteTaxRegistrationCommand = async (input, context) => {
378
+ const b = core.requestBuilder(input, context);
379
+ const headers = {
380
+ "content-type": "application/json",
381
+ };
382
+ b.bp("/BatchDeleteTaxRegistration");
383
+ let body;
384
+ body = JSON.stringify(smithyClient.take(input, {
385
+ accountIds: (_) => smithyClient._json(_),
386
+ }));
387
+ b.m("POST").h(headers).b(body);
388
+ return b.build();
389
+ };
390
+ const se_BatchGetTaxExemptionsCommand = async (input, context) => {
391
+ const b = core.requestBuilder(input, context);
392
+ const headers = {
393
+ "content-type": "application/json",
394
+ };
395
+ b.bp("/BatchGetTaxExemptions");
396
+ let body;
397
+ body = JSON.stringify(smithyClient.take(input, {
398
+ accountIds: (_) => smithyClient._json(_),
399
+ }));
400
+ b.m("POST").h(headers).b(body);
401
+ return b.build();
402
+ };
403
+ const se_BatchPutTaxRegistrationCommand = async (input, context) => {
404
+ const b = core.requestBuilder(input, context);
405
+ const headers = {
406
+ "content-type": "application/json",
407
+ };
408
+ b.bp("/BatchPutTaxRegistration");
409
+ let body;
410
+ body = JSON.stringify(smithyClient.take(input, {
411
+ accountIds: (_) => smithyClient._json(_),
412
+ taxRegistrationEntry: (_) => se_TaxRegistrationEntry(_, context),
413
+ }));
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
416
+ };
417
+ const se_DeleteSupplementalTaxRegistrationCommand = async (input, context) => {
418
+ const b = core.requestBuilder(input, context);
419
+ const headers = {
420
+ "content-type": "application/json",
421
+ };
422
+ b.bp("/DeleteSupplementalTaxRegistration");
423
+ let body;
424
+ body = JSON.stringify(smithyClient.take(input, {
425
+ authorityId: [],
426
+ }));
427
+ b.m("POST").h(headers).b(body);
428
+ return b.build();
429
+ };
430
+ const se_DeleteTaxRegistrationCommand = async (input, context) => {
431
+ const b = core.requestBuilder(input, context);
432
+ const headers = {
433
+ "content-type": "application/json",
434
+ };
435
+ b.bp("/DeleteTaxRegistration");
436
+ let body;
437
+ body = JSON.stringify(smithyClient.take(input, {
438
+ accountId: [],
439
+ }));
440
+ b.m("POST").h(headers).b(body);
441
+ return b.build();
442
+ };
443
+ const se_GetTaxExemptionTypesCommand = async (input, context) => {
444
+ const b = core.requestBuilder(input, context);
445
+ const headers = {};
446
+ b.bp("/GetTaxExemptionTypes");
447
+ let body;
448
+ b.m("POST").h(headers).b(body);
449
+ return b.build();
450
+ };
451
+ const se_GetTaxInheritanceCommand = async (input, context) => {
452
+ const b = core.requestBuilder(input, context);
453
+ const headers = {};
454
+ b.bp("/GetTaxInheritance");
455
+ let body;
456
+ b.m("POST").h(headers).b(body);
457
+ return b.build();
458
+ };
459
+ const se_GetTaxRegistrationCommand = async (input, context) => {
460
+ const b = core.requestBuilder(input, context);
461
+ const headers = {
462
+ "content-type": "application/json",
463
+ };
464
+ b.bp("/GetTaxRegistration");
465
+ let body;
466
+ body = JSON.stringify(smithyClient.take(input, {
467
+ accountId: [],
468
+ }));
469
+ b.m("POST").h(headers).b(body);
470
+ return b.build();
471
+ };
472
+ const se_GetTaxRegistrationDocumentCommand = async (input, context) => {
473
+ const b = core.requestBuilder(input, context);
474
+ const headers = {
475
+ "content-type": "application/json",
476
+ };
477
+ b.bp("/GetTaxRegistrationDocument");
478
+ let body;
479
+ body = JSON.stringify(smithyClient.take(input, {
480
+ destinationS3Location: (_) => smithyClient._json(_),
481
+ taxDocumentMetadata: (_) => smithyClient._json(_),
482
+ }));
483
+ b.m("POST").h(headers).b(body);
484
+ return b.build();
485
+ };
486
+ const se_ListSupplementalTaxRegistrationsCommand = async (input, context) => {
487
+ const b = core.requestBuilder(input, context);
488
+ const headers = {
489
+ "content-type": "application/json",
490
+ };
491
+ b.bp("/ListSupplementalTaxRegistrations");
492
+ let body;
493
+ body = JSON.stringify(smithyClient.take(input, {
494
+ maxResults: [],
495
+ nextToken: [],
496
+ }));
497
+ b.m("POST").h(headers).b(body);
498
+ return b.build();
499
+ };
500
+ const se_ListTaxExemptionsCommand = async (input, context) => {
501
+ const b = core.requestBuilder(input, context);
502
+ const headers = {
503
+ "content-type": "application/json",
504
+ };
505
+ b.bp("/ListTaxExemptions");
506
+ let body;
507
+ body = JSON.stringify(smithyClient.take(input, {
508
+ maxResults: [],
509
+ nextToken: [],
510
+ }));
511
+ b.m("POST").h(headers).b(body);
512
+ return b.build();
513
+ };
514
+ const se_ListTaxRegistrationsCommand = async (input, context) => {
515
+ const b = core.requestBuilder(input, context);
516
+ const headers = {
517
+ "content-type": "application/json",
518
+ };
519
+ b.bp("/ListTaxRegistrations");
520
+ let body;
521
+ body = JSON.stringify(smithyClient.take(input, {
522
+ maxResults: [],
523
+ nextToken: [],
524
+ }));
525
+ b.m("POST").h(headers).b(body);
526
+ return b.build();
527
+ };
528
+ const se_PutSupplementalTaxRegistrationCommand = async (input, context) => {
529
+ const b = core.requestBuilder(input, context);
530
+ const headers = {
531
+ "content-type": "application/json",
532
+ };
533
+ b.bp("/PutSupplementalTaxRegistration");
534
+ let body;
535
+ body = JSON.stringify(smithyClient.take(input, {
536
+ taxRegistrationEntry: (_) => smithyClient._json(_),
537
+ }));
538
+ b.m("POST").h(headers).b(body);
539
+ return b.build();
540
+ };
541
+ const se_PutTaxExemptionCommand = async (input, context) => {
542
+ const b = core.requestBuilder(input, context);
543
+ const headers = {
544
+ "content-type": "application/json",
545
+ };
546
+ b.bp("/PutTaxExemption");
547
+ let body;
548
+ body = JSON.stringify(smithyClient.take(input, {
549
+ accountIds: (_) => smithyClient._json(_),
550
+ authority: (_) => smithyClient._json(_),
551
+ exemptionCertificate: (_) => se_ExemptionCertificate(_, context),
552
+ exemptionType: [],
553
+ }));
554
+ b.m("POST").h(headers).b(body);
555
+ return b.build();
556
+ };
557
+ const se_PutTaxInheritanceCommand = async (input, context) => {
558
+ const b = core.requestBuilder(input, context);
559
+ const headers = {
560
+ "content-type": "application/json",
561
+ };
562
+ b.bp("/PutTaxInheritance");
563
+ let body;
564
+ body = JSON.stringify(smithyClient.take(input, {
565
+ heritageStatus: [],
566
+ }));
567
+ b.m("POST").h(headers).b(body);
568
+ return b.build();
569
+ };
570
+ const se_PutTaxRegistrationCommand = async (input, context) => {
571
+ const b = core.requestBuilder(input, context);
572
+ const headers = {
573
+ "content-type": "application/json",
574
+ };
575
+ b.bp("/PutTaxRegistration");
576
+ let body;
577
+ body = JSON.stringify(smithyClient.take(input, {
578
+ accountId: [],
579
+ taxRegistrationEntry: (_) => se_TaxRegistrationEntry(_, context),
580
+ }));
581
+ b.m("POST").h(headers).b(body);
582
+ return b.build();
583
+ };
584
+ const de_BatchDeleteTaxRegistrationCommand = async (output, context) => {
585
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
586
+ return de_CommandError(output, context);
587
+ }
588
+ const contents = smithyClient.map({
589
+ $metadata: deserializeMetadata(output),
275
590
  });
276
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
277
- }
278
- };
279
- var AddressRoleType = {
280
- BILLING_ADDRESS: "BillingAddress",
281
- CONTACT_ADDRESS: "ContactAddress",
282
- TAX_ADDRESS: "TaxAddress"
283
- };
284
- var PersonType = {
285
- BUSINESS: "Business",
286
- LEGAL_PERSON: "Legal Person",
287
- PHYSICAL_PERSON: "Physical Person"
288
- };
289
- var IndonesiaTaxRegistrationNumberType = {
290
- NIK: "NIK",
291
- NITKU: "NITKU",
292
- NPWP: "NPWP",
293
- PASSPORT_NUMBER: "PassportNumber"
294
- };
295
- var IsraelCustomerType = {
296
- BUSINESS: "Business",
297
- INDIVIDUAL: "Individual"
298
- };
299
- var IsraelDealerType = {
300
- AUTHORIZED: "Authorized",
301
- NON_AUTHORIZED: "Non-authorized"
302
- };
303
- var MalaysiaServiceTaxCode = {
304
- CONSULTANCY: "Consultancy",
305
- DIGITAL_SVC_ELECTRONIC_MEDIUM: "Digital Service And Electronic Medium",
306
- IT_SERVICES: "IT Services",
307
- TRAINING_OR_COACHING: "Training Or Coaching"
308
- };
309
- var TaxRegistrationNumberType = {
310
- LOCAL_REGISTRATION_NUMBER: "LocalRegistrationNumber",
311
- TAX_REGISTRATION_NUMBER: "TaxRegistrationNumber"
312
- };
313
- var SaudiArabiaTaxRegistrationNumberType = {
314
- COMMERCIAL_REGISTRATION_NUMBER: "CommercialRegistrationNumber",
315
- TAX_IDENTIFICATION_NUMBER: "TaxIdentificationNumber",
316
- TAX_REGISTRATION_NUMBER: "TaxRegistrationNumber"
317
- };
318
- var RegistrationType = {
319
- INTRA_EU: "Intra-EU",
320
- LOCAL: "Local"
321
- };
322
- var Industries = {
323
- BANKS: "Banks",
324
- CIRCULATING_ORG: "CirculatingOrg",
325
- DEVELOPMENT_AGENCIES: "DevelopmentAgencies",
326
- INSURANCE: "Insurance",
327
- PENSION_AND_BENEFIT_FUNDS: "PensionAndBenefitFunds",
328
- PROFESSIONAL_ORG: "ProfessionalOrg"
329
- };
330
- var UkraineTrnType = {
331
- BUSINESS: "Business",
332
- INDIVIDUAL: "Individual"
333
- };
334
- var UzbekistanTaxRegistrationNumberType = {
335
- BUSINESS: "Business",
336
- INDIVIDUAL: "Individual"
337
- };
338
- var TaxRegistrationType = {
339
- CNPJ: "CNPJ",
340
- CPF: "CPF",
341
- GST: "GST",
342
- NRIC: "NRIC",
343
- SST: "SST",
344
- TIN: "TIN",
345
- VAT: "VAT"
346
- };
347
- var Sector = {
348
- BUSINESS: "Business",
349
- INDIVIDUAL: "Individual",
350
- PUBLIC_INSTITUTIONS: "Government"
351
- };
352
- var TaxRegistrationStatus = {
353
- DELETED: "Deleted",
354
- PENDING: "Pending",
355
- REJECTED: "Rejected",
356
- VERIFIED: "Verified"
357
- };
358
- var AttachmentUploadException = class _AttachmentUploadException extends TaxSettingsServiceException {
359
- static {
360
- __name(this, "AttachmentUploadException");
361
- }
362
- name = "AttachmentUploadException";
363
- $fault = "client";
364
- /**
365
- * @internal
366
- */
367
- constructor(opts) {
368
- super({
369
- name: "AttachmentUploadException",
370
- $fault: "client",
371
- ...opts
591
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
592
+ const doc = smithyClient.take(data, {
593
+ errors: smithyClient._json,
372
594
  });
373
- Object.setPrototypeOf(this, _AttachmentUploadException.prototype);
374
- }
375
- };
376
- var ConflictException = class _ConflictException extends TaxSettingsServiceException {
377
- static {
378
- __name(this, "ConflictException");
379
- }
380
- name = "ConflictException";
381
- $fault = "client";
382
- /**
383
- * <p>409</p>
384
- * @public
385
- */
386
- errorCode;
387
- /**
388
- * @internal
389
- */
390
- constructor(opts) {
391
- super({
392
- name: "ConflictException",
393
- $fault: "client",
394
- ...opts
595
+ Object.assign(contents, doc);
596
+ return contents;
597
+ };
598
+ const de_BatchGetTaxExemptionsCommand = async (output, context) => {
599
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
600
+ return de_CommandError(output, context);
601
+ }
602
+ const contents = smithyClient.map({
603
+ $metadata: deserializeMetadata(output),
395
604
  });
396
- Object.setPrototypeOf(this, _ConflictException.prototype);
397
- this.errorCode = opts.errorCode;
398
- }
399
- };
400
- var InternalServerException = class _InternalServerException extends TaxSettingsServiceException {
401
- static {
402
- __name(this, "InternalServerException");
403
- }
404
- name = "InternalServerException";
405
- $fault = "server";
406
- /**
407
- * <p>500</p>
408
- * @public
409
- */
410
- errorCode;
411
- /**
412
- * @internal
413
- */
414
- constructor(opts) {
415
- super({
416
- name: "InternalServerException",
417
- $fault: "server",
418
- ...opts
605
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
606
+ const doc = smithyClient.take(data, {
607
+ failedAccounts: smithyClient._json,
608
+ taxExemptionDetailsMap: (_) => de_TaxExemptionDetailsMap(_),
419
609
  });
420
- Object.setPrototypeOf(this, _InternalServerException.prototype);
421
- this.errorCode = opts.errorCode;
422
- }
423
- };
424
- var ValidationExceptionErrorCode = {
425
- EXPIRED_TOKEN: "ExpiredToken",
426
- FIELD_VALIDATION_FAILED: "FieldValidationFailed",
427
- INVALID_TOKEN: "InvalidToken",
428
- MALFORMED_TOKEN: "MalformedToken",
429
- MISSING_INPUT: "MissingInput"
430
- };
431
- var ValidationException = class _ValidationException extends TaxSettingsServiceException {
432
- static {
433
- __name(this, "ValidationException");
434
- }
435
- name = "ValidationException";
436
- $fault = "client";
437
- /**
438
- * <p>400</p>
439
- * @public
440
- */
441
- errorCode;
442
- /**
443
- * <p>400</p>
444
- * @public
445
- */
446
- fieldList;
447
- /**
448
- * @internal
449
- */
450
- constructor(opts) {
451
- super({
452
- name: "ValidationException",
453
- $fault: "client",
454
- ...opts
610
+ Object.assign(contents, doc);
611
+ return contents;
612
+ };
613
+ const de_BatchPutTaxRegistrationCommand = async (output, context) => {
614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
615
+ return de_CommandError(output, context);
616
+ }
617
+ const contents = smithyClient.map({
618
+ $metadata: deserializeMetadata(output),
455
619
  });
456
- Object.setPrototypeOf(this, _ValidationException.prototype);
457
- this.errorCode = opts.errorCode;
458
- this.fieldList = opts.fieldList;
459
- }
460
- };
461
- var EntityExemptionAccountStatus = {
462
- Expired: "Expired",
463
- None: "None",
464
- Pending: "Pending",
465
- Valid: "Valid"
466
- };
467
- var ResourceNotFoundException = class _ResourceNotFoundException extends TaxSettingsServiceException {
468
- static {
469
- __name(this, "ResourceNotFoundException");
470
- }
471
- name = "ResourceNotFoundException";
472
- $fault = "client";
473
- /**
474
- * <p>404</p>
475
- * @public
476
- */
477
- errorCode;
478
- /**
479
- * @internal
480
- */
481
- constructor(opts) {
482
- super({
483
- name: "ResourceNotFoundException",
484
- $fault: "client",
485
- ...opts
620
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
621
+ const doc = smithyClient.take(data, {
622
+ errors: smithyClient._json,
623
+ status: smithyClient.expectString,
486
624
  });
487
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
488
- this.errorCode = opts.errorCode;
489
- }
490
- };
491
- var CaseCreationLimitExceededException = class _CaseCreationLimitExceededException extends TaxSettingsServiceException {
492
- static {
493
- __name(this, "CaseCreationLimitExceededException");
494
- }
495
- name = "CaseCreationLimitExceededException";
496
- $fault = "client";
497
- /**
498
- * @internal
499
- */
500
- constructor(opts) {
501
- super({
502
- name: "CaseCreationLimitExceededException",
503
- $fault: "client",
504
- ...opts
625
+ Object.assign(contents, doc);
626
+ return contents;
627
+ };
628
+ const de_DeleteSupplementalTaxRegistrationCommand = async (output, context) => {
629
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
630
+ return de_CommandError(output, context);
631
+ }
632
+ const contents = smithyClient.map({
633
+ $metadata: deserializeMetadata(output),
505
634
  });
506
- Object.setPrototypeOf(this, _CaseCreationLimitExceededException.prototype);
507
- }
508
- };
509
- var HeritageStatus = {
510
- OptIn: "OptIn",
511
- OptOut: "OptOut"
512
- };
513
- var SupplementalTaxRegistrationType = {
514
- VAT: "VAT"
515
- };
516
- var AccountMetaDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
517
- ...obj
518
- }), "AccountMetaDataFilterSensitiveLog");
519
- var TaxRegistrationWithJurisdictionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
520
- ...obj
521
- }), "TaxRegistrationWithJurisdictionFilterSensitiveLog");
522
- var AccountDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
523
- ...obj,
524
- ...obj.taxRegistration && { taxRegistration: import_smithy_client.SENSITIVE_STRING },
525
- ...obj.accountMetaData && { accountMetaData: import_smithy_client.SENSITIVE_STRING }
526
- }), "AccountDetailsFilterSensitiveLog");
527
- var BatchDeleteTaxRegistrationErrorFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
528
- ...obj,
529
- ...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
530
- }), "BatchDeleteTaxRegistrationErrorFilterSensitiveLog");
531
- var BatchDeleteTaxRegistrationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
532
- ...obj,
533
- ...obj.errors && { errors: obj.errors.map((item) => BatchDeleteTaxRegistrationErrorFilterSensitiveLog(item)) }
534
- }), "BatchDeleteTaxRegistrationResponseFilterSensitiveLog");
535
- var TaxRegistrationEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
536
- ...obj
537
- }), "TaxRegistrationEntryFilterSensitiveLog");
538
- var BatchPutTaxRegistrationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
539
- ...obj,
540
- ...obj.taxRegistrationEntry && { taxRegistrationEntry: import_smithy_client.SENSITIVE_STRING }
541
- }), "BatchPutTaxRegistrationRequestFilterSensitiveLog");
542
- var BatchPutTaxRegistrationErrorFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
543
- ...obj,
544
- ...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
545
- }), "BatchPutTaxRegistrationErrorFilterSensitiveLog");
546
- var BatchPutTaxRegistrationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
547
- ...obj,
548
- ...obj.errors && { errors: obj.errors.map((item) => BatchPutTaxRegistrationErrorFilterSensitiveLog(item)) }
549
- }), "BatchPutTaxRegistrationResponseFilterSensitiveLog");
550
- var TaxRegistrationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
551
- ...obj
552
- }), "TaxRegistrationFilterSensitiveLog");
553
- var GetTaxRegistrationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
554
- ...obj,
555
- ...obj.taxRegistration && { taxRegistration: import_smithy_client.SENSITIVE_STRING }
556
- }), "GetTaxRegistrationResponseFilterSensitiveLog");
557
- var SupplementalTaxRegistrationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
558
- ...obj
559
- }), "SupplementalTaxRegistrationFilterSensitiveLog");
560
- var ListSupplementalTaxRegistrationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
561
- ...obj,
562
- ...obj.taxRegistrations && { taxRegistrations: import_smithy_client.SENSITIVE_STRING }
563
- }), "ListSupplementalTaxRegistrationsResponseFilterSensitiveLog");
564
- var ListTaxRegistrationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
565
- ...obj,
566
- ...obj.accountDetails && { accountDetails: import_smithy_client.SENSITIVE_STRING }
567
- }), "ListTaxRegistrationsResponseFilterSensitiveLog");
568
- var SupplementalTaxRegistrationEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
569
- ...obj
570
- }), "SupplementalTaxRegistrationEntryFilterSensitiveLog");
571
- var PutSupplementalTaxRegistrationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
572
- ...obj,
573
- ...obj.taxRegistrationEntry && { taxRegistrationEntry: import_smithy_client.SENSITIVE_STRING }
574
- }), "PutSupplementalTaxRegistrationRequestFilterSensitiveLog");
575
- var PutTaxRegistrationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
576
- ...obj,
577
- ...obj.taxRegistrationEntry && { taxRegistrationEntry: import_smithy_client.SENSITIVE_STRING }
578
- }), "PutTaxRegistrationRequestFilterSensitiveLog");
579
-
580
- // src/protocols/Aws_restJson1.ts
581
- var import_core2 = require("@aws-sdk/core");
582
-
583
-
584
- var se_BatchDeleteTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
585
- const b = (0, import_core.requestBuilder)(input, context);
586
- const headers = {
587
- "content-type": "application/json"
588
- };
589
- b.bp("/BatchDeleteTaxRegistration");
590
- let body;
591
- body = JSON.stringify(
592
- (0, import_smithy_client.take)(input, {
593
- accountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accountIds")
594
- })
595
- );
596
- b.m("POST").h(headers).b(body);
597
- return b.build();
598
- }, "se_BatchDeleteTaxRegistrationCommand");
599
- var se_BatchGetTaxExemptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
600
- const b = (0, import_core.requestBuilder)(input, context);
601
- const headers = {
602
- "content-type": "application/json"
603
- };
604
- b.bp("/BatchGetTaxExemptions");
605
- let body;
606
- body = JSON.stringify(
607
- (0, import_smithy_client.take)(input, {
608
- accountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accountIds")
609
- })
610
- );
611
- b.m("POST").h(headers).b(body);
612
- return b.build();
613
- }, "se_BatchGetTaxExemptionsCommand");
614
- var se_BatchPutTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
615
- const b = (0, import_core.requestBuilder)(input, context);
616
- const headers = {
617
- "content-type": "application/json"
618
- };
619
- b.bp("/BatchPutTaxRegistration");
620
- let body;
621
- body = JSON.stringify(
622
- (0, import_smithy_client.take)(input, {
623
- accountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accountIds"),
624
- taxRegistrationEntry: /* @__PURE__ */ __name((_) => se_TaxRegistrationEntry(_, context), "taxRegistrationEntry")
625
- })
626
- );
627
- b.m("POST").h(headers).b(body);
628
- return b.build();
629
- }, "se_BatchPutTaxRegistrationCommand");
630
- var se_DeleteSupplementalTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
631
- const b = (0, import_core.requestBuilder)(input, context);
632
- const headers = {
633
- "content-type": "application/json"
634
- };
635
- b.bp("/DeleteSupplementalTaxRegistration");
636
- let body;
637
- body = JSON.stringify(
638
- (0, import_smithy_client.take)(input, {
639
- authorityId: []
640
- })
641
- );
642
- b.m("POST").h(headers).b(body);
643
- return b.build();
644
- }, "se_DeleteSupplementalTaxRegistrationCommand");
645
- var se_DeleteTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
646
- const b = (0, import_core.requestBuilder)(input, context);
647
- const headers = {
648
- "content-type": "application/json"
649
- };
650
- b.bp("/DeleteTaxRegistration");
651
- let body;
652
- body = JSON.stringify(
653
- (0, import_smithy_client.take)(input, {
654
- accountId: []
655
- })
656
- );
657
- b.m("POST").h(headers).b(body);
658
- return b.build();
659
- }, "se_DeleteTaxRegistrationCommand");
660
- var se_GetTaxExemptionTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
661
- const b = (0, import_core.requestBuilder)(input, context);
662
- const headers = {};
663
- b.bp("/GetTaxExemptionTypes");
664
- let body;
665
- b.m("POST").h(headers).b(body);
666
- return b.build();
667
- }, "se_GetTaxExemptionTypesCommand");
668
- var se_GetTaxInheritanceCommand = /* @__PURE__ */ __name(async (input, context) => {
669
- const b = (0, import_core.requestBuilder)(input, context);
670
- const headers = {};
671
- b.bp("/GetTaxInheritance");
672
- let body;
673
- b.m("POST").h(headers).b(body);
674
- return b.build();
675
- }, "se_GetTaxInheritanceCommand");
676
- var se_GetTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
677
- const b = (0, import_core.requestBuilder)(input, context);
678
- const headers = {
679
- "content-type": "application/json"
680
- };
681
- b.bp("/GetTaxRegistration");
682
- let body;
683
- body = JSON.stringify(
684
- (0, import_smithy_client.take)(input, {
685
- accountId: []
686
- })
687
- );
688
- b.m("POST").h(headers).b(body);
689
- return b.build();
690
- }, "se_GetTaxRegistrationCommand");
691
- var se_GetTaxRegistrationDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
692
- const b = (0, import_core.requestBuilder)(input, context);
693
- const headers = {
694
- "content-type": "application/json"
695
- };
696
- b.bp("/GetTaxRegistrationDocument");
697
- let body;
698
- body = JSON.stringify(
699
- (0, import_smithy_client.take)(input, {
700
- destinationS3Location: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationS3Location"),
701
- taxDocumentMetadata: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "taxDocumentMetadata")
702
- })
703
- );
704
- b.m("POST").h(headers).b(body);
705
- return b.build();
706
- }, "se_GetTaxRegistrationDocumentCommand");
707
- var se_ListSupplementalTaxRegistrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
708
- const b = (0, import_core.requestBuilder)(input, context);
709
- const headers = {
710
- "content-type": "application/json"
711
- };
712
- b.bp("/ListSupplementalTaxRegistrations");
713
- let body;
714
- body = JSON.stringify(
715
- (0, import_smithy_client.take)(input, {
716
- maxResults: [],
717
- nextToken: []
718
- })
719
- );
720
- b.m("POST").h(headers).b(body);
721
- return b.build();
722
- }, "se_ListSupplementalTaxRegistrationsCommand");
723
- var se_ListTaxExemptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
724
- const b = (0, import_core.requestBuilder)(input, context);
725
- const headers = {
726
- "content-type": "application/json"
727
- };
728
- b.bp("/ListTaxExemptions");
729
- let body;
730
- body = JSON.stringify(
731
- (0, import_smithy_client.take)(input, {
732
- maxResults: [],
733
- nextToken: []
734
- })
735
- );
736
- b.m("POST").h(headers).b(body);
737
- return b.build();
738
- }, "se_ListTaxExemptionsCommand");
739
- var se_ListTaxRegistrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
740
- const b = (0, import_core.requestBuilder)(input, context);
741
- const headers = {
742
- "content-type": "application/json"
743
- };
744
- b.bp("/ListTaxRegistrations");
745
- let body;
746
- body = JSON.stringify(
747
- (0, import_smithy_client.take)(input, {
748
- maxResults: [],
749
- nextToken: []
750
- })
751
- );
752
- b.m("POST").h(headers).b(body);
753
- return b.build();
754
- }, "se_ListTaxRegistrationsCommand");
755
- var se_PutSupplementalTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
756
- const b = (0, import_core.requestBuilder)(input, context);
757
- const headers = {
758
- "content-type": "application/json"
759
- };
760
- b.bp("/PutSupplementalTaxRegistration");
761
- let body;
762
- body = JSON.stringify(
763
- (0, import_smithy_client.take)(input, {
764
- taxRegistrationEntry: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "taxRegistrationEntry")
765
- })
766
- );
767
- b.m("POST").h(headers).b(body);
768
- return b.build();
769
- }, "se_PutSupplementalTaxRegistrationCommand");
770
- var se_PutTaxExemptionCommand = /* @__PURE__ */ __name(async (input, context) => {
771
- const b = (0, import_core.requestBuilder)(input, context);
772
- const headers = {
773
- "content-type": "application/json"
774
- };
775
- b.bp("/PutTaxExemption");
776
- let body;
777
- body = JSON.stringify(
778
- (0, import_smithy_client.take)(input, {
779
- accountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accountIds"),
780
- authority: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "authority"),
781
- exemptionCertificate: /* @__PURE__ */ __name((_) => se_ExemptionCertificate(_, context), "exemptionCertificate"),
782
- exemptionType: []
783
- })
784
- );
785
- b.m("POST").h(headers).b(body);
786
- return b.build();
787
- }, "se_PutTaxExemptionCommand");
788
- var se_PutTaxInheritanceCommand = /* @__PURE__ */ __name(async (input, context) => {
789
- const b = (0, import_core.requestBuilder)(input, context);
790
- const headers = {
791
- "content-type": "application/json"
792
- };
793
- b.bp("/PutTaxInheritance");
794
- let body;
795
- body = JSON.stringify(
796
- (0, import_smithy_client.take)(input, {
797
- heritageStatus: []
798
- })
799
- );
800
- b.m("POST").h(headers).b(body);
801
- return b.build();
802
- }, "se_PutTaxInheritanceCommand");
803
- var se_PutTaxRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
804
- const b = (0, import_core.requestBuilder)(input, context);
805
- const headers = {
806
- "content-type": "application/json"
807
- };
808
- b.bp("/PutTaxRegistration");
809
- let body;
810
- body = JSON.stringify(
811
- (0, import_smithy_client.take)(input, {
812
- accountId: [],
813
- taxRegistrationEntry: /* @__PURE__ */ __name((_) => se_TaxRegistrationEntry(_, context), "taxRegistrationEntry")
814
- })
815
- );
816
- b.m("POST").h(headers).b(body);
817
- return b.build();
818
- }, "se_PutTaxRegistrationCommand");
819
- var de_BatchDeleteTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
820
- if (output.statusCode !== 200 && output.statusCode >= 300) {
821
- return de_CommandError(output, context);
822
- }
823
- const contents = (0, import_smithy_client.map)({
824
- $metadata: deserializeMetadata(output)
825
- });
826
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
827
- const doc = (0, import_smithy_client.take)(data, {
828
- errors: import_smithy_client._json
829
- });
830
- Object.assign(contents, doc);
831
- return contents;
832
- }, "de_BatchDeleteTaxRegistrationCommand");
833
- var de_BatchGetTaxExemptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
834
- if (output.statusCode !== 200 && output.statusCode >= 300) {
835
- return de_CommandError(output, context);
836
- }
837
- const contents = (0, import_smithy_client.map)({
838
- $metadata: deserializeMetadata(output)
839
- });
840
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
841
- const doc = (0, import_smithy_client.take)(data, {
842
- failedAccounts: import_smithy_client._json,
843
- taxExemptionDetailsMap: /* @__PURE__ */ __name((_) => de_TaxExemptionDetailsMap(_, context), "taxExemptionDetailsMap")
844
- });
845
- Object.assign(contents, doc);
846
- return contents;
847
- }, "de_BatchGetTaxExemptionsCommand");
848
- var de_BatchPutTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
849
- if (output.statusCode !== 200 && output.statusCode >= 300) {
850
- return de_CommandError(output, context);
851
- }
852
- const contents = (0, import_smithy_client.map)({
853
- $metadata: deserializeMetadata(output)
854
- });
855
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
856
- const doc = (0, import_smithy_client.take)(data, {
857
- errors: import_smithy_client._json,
858
- status: import_smithy_client.expectString
859
- });
860
- Object.assign(contents, doc);
861
- return contents;
862
- }, "de_BatchPutTaxRegistrationCommand");
863
- var de_DeleteSupplementalTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
864
- if (output.statusCode !== 200 && output.statusCode >= 300) {
865
- return de_CommandError(output, context);
866
- }
867
- const contents = (0, import_smithy_client.map)({
868
- $metadata: deserializeMetadata(output)
869
- });
870
- await (0, import_smithy_client.collectBody)(output.body, context);
871
- return contents;
872
- }, "de_DeleteSupplementalTaxRegistrationCommand");
873
- var de_DeleteTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
874
- if (output.statusCode !== 200 && output.statusCode >= 300) {
875
- return de_CommandError(output, context);
876
- }
877
- const contents = (0, import_smithy_client.map)({
878
- $metadata: deserializeMetadata(output)
879
- });
880
- await (0, import_smithy_client.collectBody)(output.body, context);
881
- return contents;
882
- }, "de_DeleteTaxRegistrationCommand");
883
- var de_GetTaxExemptionTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
884
- if (output.statusCode !== 200 && output.statusCode >= 300) {
885
- return de_CommandError(output, context);
886
- }
887
- const contents = (0, import_smithy_client.map)({
888
- $metadata: deserializeMetadata(output)
889
- });
890
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
891
- const doc = (0, import_smithy_client.take)(data, {
892
- taxExemptionTypes: import_smithy_client._json
893
- });
894
- Object.assign(contents, doc);
895
- return contents;
896
- }, "de_GetTaxExemptionTypesCommand");
897
- var de_GetTaxInheritanceCommand = /* @__PURE__ */ __name(async (output, context) => {
898
- if (output.statusCode !== 200 && output.statusCode >= 300) {
899
- return de_CommandError(output, context);
900
- }
901
- const contents = (0, import_smithy_client.map)({
902
- $metadata: deserializeMetadata(output)
903
- });
904
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
905
- const doc = (0, import_smithy_client.take)(data, {
906
- heritageStatus: import_smithy_client.expectString
907
- });
908
- Object.assign(contents, doc);
909
- return contents;
910
- }, "de_GetTaxInheritanceCommand");
911
- var de_GetTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
912
- if (output.statusCode !== 200 && output.statusCode >= 300) {
913
- return de_CommandError(output, context);
914
- }
915
- const contents = (0, import_smithy_client.map)({
916
- $metadata: deserializeMetadata(output)
917
- });
918
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
919
- const doc = (0, import_smithy_client.take)(data, {
920
- taxRegistration: import_smithy_client._json
921
- });
922
- Object.assign(contents, doc);
923
- return contents;
924
- }, "de_GetTaxRegistrationCommand");
925
- var de_GetTaxRegistrationDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
926
- if (output.statusCode !== 200 && output.statusCode >= 300) {
927
- return de_CommandError(output, context);
928
- }
929
- const contents = (0, import_smithy_client.map)({
930
- $metadata: deserializeMetadata(output)
931
- });
932
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
933
- const doc = (0, import_smithy_client.take)(data, {
934
- destinationFilePath: import_smithy_client.expectString,
935
- presignedS3Url: import_smithy_client.expectString
936
- });
937
- Object.assign(contents, doc);
938
- return contents;
939
- }, "de_GetTaxRegistrationDocumentCommand");
940
- var de_ListSupplementalTaxRegistrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
941
- if (output.statusCode !== 200 && output.statusCode >= 300) {
942
- return de_CommandError(output, context);
943
- }
944
- const contents = (0, import_smithy_client.map)({
945
- $metadata: deserializeMetadata(output)
946
- });
947
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
948
- const doc = (0, import_smithy_client.take)(data, {
949
- nextToken: import_smithy_client.expectString,
950
- taxRegistrations: import_smithy_client._json
951
- });
952
- Object.assign(contents, doc);
953
- return contents;
954
- }, "de_ListSupplementalTaxRegistrationsCommand");
955
- var de_ListTaxExemptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
956
- if (output.statusCode !== 200 && output.statusCode >= 300) {
957
- return de_CommandError(output, context);
958
- }
959
- const contents = (0, import_smithy_client.map)({
960
- $metadata: deserializeMetadata(output)
961
- });
962
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
963
- const doc = (0, import_smithy_client.take)(data, {
964
- nextToken: import_smithy_client.expectString,
965
- taxExemptionDetailsMap: /* @__PURE__ */ __name((_) => de_TaxExemptionDetailsMap(_, context), "taxExemptionDetailsMap")
966
- });
967
- Object.assign(contents, doc);
968
- return contents;
969
- }, "de_ListTaxExemptionsCommand");
970
- var de_ListTaxRegistrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
971
- if (output.statusCode !== 200 && output.statusCode >= 300) {
972
- return de_CommandError(output, context);
973
- }
974
- const contents = (0, import_smithy_client.map)({
975
- $metadata: deserializeMetadata(output)
976
- });
977
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
978
- const doc = (0, import_smithy_client.take)(data, {
979
- accountDetails: import_smithy_client._json,
980
- nextToken: import_smithy_client.expectString
981
- });
982
- Object.assign(contents, doc);
983
- return contents;
984
- }, "de_ListTaxRegistrationsCommand");
985
- var de_PutSupplementalTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
986
- if (output.statusCode !== 200 && output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const contents = (0, import_smithy_client.map)({
990
- $metadata: deserializeMetadata(output)
991
- });
992
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
993
- const doc = (0, import_smithy_client.take)(data, {
994
- authorityId: import_smithy_client.expectString,
995
- status: import_smithy_client.expectString
996
- });
997
- Object.assign(contents, doc);
998
- return contents;
999
- }, "de_PutSupplementalTaxRegistrationCommand");
1000
- var de_PutTaxExemptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1001
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1002
- return de_CommandError(output, context);
1003
- }
1004
- const contents = (0, import_smithy_client.map)({
1005
- $metadata: deserializeMetadata(output)
1006
- });
1007
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1008
- const doc = (0, import_smithy_client.take)(data, {
1009
- caseId: import_smithy_client.expectString
1010
- });
1011
- Object.assign(contents, doc);
1012
- return contents;
1013
- }, "de_PutTaxExemptionCommand");
1014
- var de_PutTaxInheritanceCommand = /* @__PURE__ */ __name(async (output, context) => {
1015
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1016
- return de_CommandError(output, context);
1017
- }
1018
- const contents = (0, import_smithy_client.map)({
1019
- $metadata: deserializeMetadata(output)
1020
- });
1021
- await (0, import_smithy_client.collectBody)(output.body, context);
1022
- return contents;
1023
- }, "de_PutTaxInheritanceCommand");
1024
- var de_PutTaxRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const contents = (0, import_smithy_client.map)({
1029
- $metadata: deserializeMetadata(output)
1030
- });
1031
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1032
- const doc = (0, import_smithy_client.take)(data, {
1033
- status: import_smithy_client.expectString
1034
- });
1035
- Object.assign(contents, doc);
1036
- return contents;
1037
- }, "de_PutTaxRegistrationCommand");
1038
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1039
- const parsedOutput = {
1040
- ...output,
1041
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1042
- };
1043
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1044
- switch (errorCode) {
1045
- case "ConflictException":
1046
- case "com.amazonaws.taxsettings#ConflictException":
1047
- throw await de_ConflictExceptionRes(parsedOutput, context);
1048
- case "InternalServerException":
1049
- case "com.amazonaws.taxsettings#InternalServerException":
1050
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1051
- case "ValidationException":
1052
- case "com.amazonaws.taxsettings#ValidationException":
1053
- throw await de_ValidationExceptionRes(parsedOutput, context);
1054
- case "ResourceNotFoundException":
1055
- case "com.amazonaws.taxsettings#ResourceNotFoundException":
1056
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1057
- case "AccessDeniedException":
1058
- case "com.amazonaws.taxsettings#AccessDeniedException":
1059
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1060
- case "AttachmentUploadException":
1061
- case "com.amazonaws.taxsettings#AttachmentUploadException":
1062
- throw await de_AttachmentUploadExceptionRes(parsedOutput, context);
1063
- case "CaseCreationLimitExceededException":
1064
- case "com.amazonaws.taxsettings#CaseCreationLimitExceededException":
1065
- throw await de_CaseCreationLimitExceededExceptionRes(parsedOutput, context);
1066
- default:
1067
- const parsedBody = parsedOutput.body;
1068
- return throwDefaultError({
1069
- output,
1070
- parsedBody,
1071
- errorCode
1072
- });
1073
- }
1074
- }, "de_CommandError");
1075
- var throwDefaultError = (0, import_smithy_client.withBaseException)(TaxSettingsServiceException);
1076
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1077
- const contents = (0, import_smithy_client.map)({});
1078
- const data = parsedOutput.body;
1079
- const doc = (0, import_smithy_client.take)(data, {
1080
- message: import_smithy_client.expectString
1081
- });
1082
- Object.assign(contents, doc);
1083
- const exception = new AccessDeniedException({
1084
- $metadata: deserializeMetadata(parsedOutput),
1085
- ...contents
1086
- });
1087
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1088
- }, "de_AccessDeniedExceptionRes");
1089
- var de_AttachmentUploadExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1090
- const contents = (0, import_smithy_client.map)({});
1091
- const data = parsedOutput.body;
1092
- const doc = (0, import_smithy_client.take)(data, {
1093
- message: import_smithy_client.expectString
1094
- });
1095
- Object.assign(contents, doc);
1096
- const exception = new AttachmentUploadException({
1097
- $metadata: deserializeMetadata(parsedOutput),
1098
- ...contents
1099
- });
1100
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1101
- }, "de_AttachmentUploadExceptionRes");
1102
- var de_CaseCreationLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1103
- const contents = (0, import_smithy_client.map)({});
1104
- const data = parsedOutput.body;
1105
- const doc = (0, import_smithy_client.take)(data, {
1106
- message: import_smithy_client.expectString
1107
- });
1108
- Object.assign(contents, doc);
1109
- const exception = new CaseCreationLimitExceededException({
1110
- $metadata: deserializeMetadata(parsedOutput),
1111
- ...contents
1112
- });
1113
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1114
- }, "de_CaseCreationLimitExceededExceptionRes");
1115
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1116
- const contents = (0, import_smithy_client.map)({});
1117
- const data = parsedOutput.body;
1118
- const doc = (0, import_smithy_client.take)(data, {
1119
- errorCode: import_smithy_client.expectString,
1120
- message: import_smithy_client.expectString
1121
- });
1122
- Object.assign(contents, doc);
1123
- const exception = new ConflictException({
1124
- $metadata: deserializeMetadata(parsedOutput),
1125
- ...contents
1126
- });
1127
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1128
- }, "de_ConflictExceptionRes");
1129
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1130
- const contents = (0, import_smithy_client.map)({});
1131
- const data = parsedOutput.body;
1132
- const doc = (0, import_smithy_client.take)(data, {
1133
- errorCode: import_smithy_client.expectString,
1134
- message: import_smithy_client.expectString
1135
- });
1136
- Object.assign(contents, doc);
1137
- const exception = new InternalServerException({
1138
- $metadata: deserializeMetadata(parsedOutput),
1139
- ...contents
1140
- });
1141
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1142
- }, "de_InternalServerExceptionRes");
1143
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1144
- const contents = (0, import_smithy_client.map)({});
1145
- const data = parsedOutput.body;
1146
- const doc = (0, import_smithy_client.take)(data, {
1147
- errorCode: import_smithy_client.expectString,
1148
- message: import_smithy_client.expectString
1149
- });
1150
- Object.assign(contents, doc);
1151
- const exception = new ResourceNotFoundException({
1152
- $metadata: deserializeMetadata(parsedOutput),
1153
- ...contents
1154
- });
1155
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1156
- }, "de_ResourceNotFoundExceptionRes");
1157
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1158
- const contents = (0, import_smithy_client.map)({});
1159
- const data = parsedOutput.body;
1160
- const doc = (0, import_smithy_client.take)(data, {
1161
- errorCode: import_smithy_client.expectString,
1162
- fieldList: import_smithy_client._json,
1163
- message: import_smithy_client.expectString
1164
- });
1165
- Object.assign(contents, doc);
1166
- const exception = new ValidationException({
1167
- $metadata: deserializeMetadata(parsedOutput),
1168
- ...contents
1169
- });
1170
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1171
- }, "de_ValidationExceptionRes");
1172
- var se_ExemptionCertificate = /* @__PURE__ */ __name((input, context) => {
1173
- return (0, import_smithy_client.take)(input, {
1174
- documentFile: context.base64Encoder,
1175
- documentName: []
1176
- });
1177
- }, "se_ExemptionCertificate");
1178
- var se_TaxRegistrationDocFile = /* @__PURE__ */ __name((input, context) => {
1179
- return (0, import_smithy_client.take)(input, {
1180
- fileContent: context.base64Encoder,
1181
- fileName: []
1182
- });
1183
- }, "se_TaxRegistrationDocFile");
1184
- var se_TaxRegistrationDocument = /* @__PURE__ */ __name((input, context) => {
1185
- return (0, import_smithy_client.take)(input, {
1186
- file: /* @__PURE__ */ __name((_) => se_TaxRegistrationDocFile(_, context), "file"),
1187
- s3Location: import_smithy_client._json
1188
- });
1189
- }, "se_TaxRegistrationDocument");
1190
- var se_TaxRegistrationDocuments = /* @__PURE__ */ __name((input, context) => {
1191
- return input.filter((e) => e != null).map((entry) => {
1192
- return se_TaxRegistrationDocument(entry, context);
1193
- });
1194
- }, "se_TaxRegistrationDocuments");
1195
- var se_TaxRegistrationEntry = /* @__PURE__ */ __name((input, context) => {
1196
- return (0, import_smithy_client.take)(input, {
1197
- additionalTaxInformation: import_smithy_client._json,
1198
- certifiedEmailId: [],
1199
- legalAddress: import_smithy_client._json,
1200
- legalName: [],
1201
- registrationId: [],
1202
- registrationType: [],
1203
- sector: [],
1204
- verificationDetails: /* @__PURE__ */ __name((_) => se_VerificationDetails(_, context), "verificationDetails")
1205
- });
1206
- }, "se_TaxRegistrationEntry");
1207
- var se_VerificationDetails = /* @__PURE__ */ __name((input, context) => {
1208
- return (0, import_smithy_client.take)(input, {
1209
- dateOfBirth: [],
1210
- taxRegistrationDocuments: /* @__PURE__ */ __name((_) => se_TaxRegistrationDocuments(_, context), "taxRegistrationDocuments")
1211
- });
1212
- }, "se_VerificationDetails");
1213
- var de_TaxExemption = /* @__PURE__ */ __name((output, context) => {
1214
- return (0, import_smithy_client.take)(output, {
1215
- authority: import_smithy_client._json,
1216
- effectiveDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "effectiveDate"),
1217
- expirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "expirationDate"),
1218
- status: import_smithy_client.expectString,
1219
- systemEffectiveDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "systemEffectiveDate"),
1220
- taxExemptionType: import_smithy_client._json
1221
- });
1222
- }, "de_TaxExemption");
1223
- var de_TaxExemptionDetails = /* @__PURE__ */ __name((output, context) => {
1224
- return (0, import_smithy_client.take)(output, {
1225
- heritageObtainedDetails: import_smithy_client.expectBoolean,
1226
- heritageObtainedParentEntity: import_smithy_client.expectString,
1227
- heritageObtainedReason: import_smithy_client.expectString,
1228
- taxExemptions: /* @__PURE__ */ __name((_) => de_TaxExemptions(_, context), "taxExemptions")
1229
- });
1230
- }, "de_TaxExemptionDetails");
1231
- var de_TaxExemptionDetailsMap = /* @__PURE__ */ __name((output, context) => {
1232
- return Object.entries(output).reduce((acc, [key, value]) => {
1233
- if (value === null) {
1234
- return acc;
635
+ await smithyClient.collectBody(output.body, context);
636
+ return contents;
637
+ };
638
+ const de_DeleteTaxRegistrationCommand = async (output, context) => {
639
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
640
+ return de_CommandError(output, context);
1235
641
  }
1236
- acc[key] = de_TaxExemptionDetails(value, context);
1237
- return acc;
1238
- }, {});
1239
- }, "de_TaxExemptionDetailsMap");
1240
- var de_TaxExemptions = /* @__PURE__ */ __name((output, context) => {
1241
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1242
- return de_TaxExemption(entry, context);
1243
- });
1244
- return retVal;
1245
- }, "de_TaxExemptions");
1246
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1247
- httpStatusCode: output.statusCode,
1248
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1249
- extendedRequestId: output.headers["x-amz-id-2"],
1250
- cfId: output.headers["x-amz-cf-id"]
1251
- }), "deserializeMetadata");
1252
-
1253
- // src/commands/BatchDeleteTaxRegistrationCommand.ts
1254
- var BatchDeleteTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1255
- return [
1256
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1257
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1258
- ];
1259
- }).s("TaxSettings", "BatchDeleteTaxRegistration", {}).n("TaxSettingsClient", "BatchDeleteTaxRegistrationCommand").f(void 0, BatchDeleteTaxRegistrationResponseFilterSensitiveLog).ser(se_BatchDeleteTaxRegistrationCommand).de(de_BatchDeleteTaxRegistrationCommand).build() {
1260
- static {
1261
- __name(this, "BatchDeleteTaxRegistrationCommand");
1262
- }
642
+ const contents = smithyClient.map({
643
+ $metadata: deserializeMetadata(output),
644
+ });
645
+ await smithyClient.collectBody(output.body, context);
646
+ return contents;
1263
647
  };
1264
-
1265
- // src/commands/BatchGetTaxExemptionsCommand.ts
1266
-
1267
-
1268
-
1269
- var BatchGetTaxExemptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1270
- return [
1271
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1272
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1273
- ];
1274
- }).s("TaxSettings", "BatchGetTaxExemptions", {}).n("TaxSettingsClient", "BatchGetTaxExemptionsCommand").f(void 0, void 0).ser(se_BatchGetTaxExemptionsCommand).de(de_BatchGetTaxExemptionsCommand).build() {
1275
- static {
1276
- __name(this, "BatchGetTaxExemptionsCommand");
1277
- }
648
+ const de_GetTaxExemptionTypesCommand = async (output, context) => {
649
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
650
+ return de_CommandError(output, context);
651
+ }
652
+ const contents = smithyClient.map({
653
+ $metadata: deserializeMetadata(output),
654
+ });
655
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
656
+ const doc = smithyClient.take(data, {
657
+ taxExemptionTypes: smithyClient._json,
658
+ });
659
+ Object.assign(contents, doc);
660
+ return contents;
1278
661
  };
1279
-
1280
- // src/commands/BatchPutTaxRegistrationCommand.ts
1281
-
1282
-
1283
-
1284
- var BatchPutTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1285
- return [
1286
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1287
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1288
- ];
1289
- }).s("TaxSettings", "BatchPutTaxRegistration", {}).n("TaxSettingsClient", "BatchPutTaxRegistrationCommand").f(BatchPutTaxRegistrationRequestFilterSensitiveLog, BatchPutTaxRegistrationResponseFilterSensitiveLog).ser(se_BatchPutTaxRegistrationCommand).de(de_BatchPutTaxRegistrationCommand).build() {
1290
- static {
1291
- __name(this, "BatchPutTaxRegistrationCommand");
1292
- }
662
+ const de_GetTaxInheritanceCommand = async (output, context) => {
663
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
664
+ return de_CommandError(output, context);
665
+ }
666
+ const contents = smithyClient.map({
667
+ $metadata: deserializeMetadata(output),
668
+ });
669
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
670
+ const doc = smithyClient.take(data, {
671
+ heritageStatus: smithyClient.expectString,
672
+ });
673
+ Object.assign(contents, doc);
674
+ return contents;
1293
675
  };
1294
-
1295
- // src/commands/DeleteSupplementalTaxRegistrationCommand.ts
1296
-
1297
-
1298
-
1299
- var DeleteSupplementalTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1300
- return [
1301
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1302
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1303
- ];
1304
- }).s("TaxSettings", "DeleteSupplementalTaxRegistration", {}).n("TaxSettingsClient", "DeleteSupplementalTaxRegistrationCommand").f(void 0, void 0).ser(se_DeleteSupplementalTaxRegistrationCommand).de(de_DeleteSupplementalTaxRegistrationCommand).build() {
1305
- static {
1306
- __name(this, "DeleteSupplementalTaxRegistrationCommand");
1307
- }
676
+ const de_GetTaxRegistrationCommand = async (output, context) => {
677
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
678
+ return de_CommandError(output, context);
679
+ }
680
+ const contents = smithyClient.map({
681
+ $metadata: deserializeMetadata(output),
682
+ });
683
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
684
+ const doc = smithyClient.take(data, {
685
+ taxRegistration: smithyClient._json,
686
+ });
687
+ Object.assign(contents, doc);
688
+ return contents;
1308
689
  };
1309
-
1310
- // src/commands/DeleteTaxRegistrationCommand.ts
1311
-
1312
-
1313
-
1314
- var DeleteTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1315
- return [
1316
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1317
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1318
- ];
1319
- }).s("TaxSettings", "DeleteTaxRegistration", {}).n("TaxSettingsClient", "DeleteTaxRegistrationCommand").f(void 0, void 0).ser(se_DeleteTaxRegistrationCommand).de(de_DeleteTaxRegistrationCommand).build() {
1320
- static {
1321
- __name(this, "DeleteTaxRegistrationCommand");
1322
- }
690
+ const de_GetTaxRegistrationDocumentCommand = async (output, context) => {
691
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
692
+ return de_CommandError(output, context);
693
+ }
694
+ const contents = smithyClient.map({
695
+ $metadata: deserializeMetadata(output),
696
+ });
697
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
698
+ const doc = smithyClient.take(data, {
699
+ destinationFilePath: smithyClient.expectString,
700
+ presignedS3Url: smithyClient.expectString,
701
+ });
702
+ Object.assign(contents, doc);
703
+ return contents;
1323
704
  };
1324
-
1325
- // src/commands/GetTaxExemptionTypesCommand.ts
1326
-
1327
-
1328
-
1329
- var GetTaxExemptionTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1330
- return [
1331
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1332
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1333
- ];
1334
- }).s("TaxSettings", "GetTaxExemptionTypes", {}).n("TaxSettingsClient", "GetTaxExemptionTypesCommand").f(void 0, void 0).ser(se_GetTaxExemptionTypesCommand).de(de_GetTaxExemptionTypesCommand).build() {
1335
- static {
1336
- __name(this, "GetTaxExemptionTypesCommand");
1337
- }
705
+ const de_ListSupplementalTaxRegistrationsCommand = async (output, context) => {
706
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
707
+ return de_CommandError(output, context);
708
+ }
709
+ const contents = smithyClient.map({
710
+ $metadata: deserializeMetadata(output),
711
+ });
712
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
713
+ const doc = smithyClient.take(data, {
714
+ nextToken: smithyClient.expectString,
715
+ taxRegistrations: smithyClient._json,
716
+ });
717
+ Object.assign(contents, doc);
718
+ return contents;
1338
719
  };
1339
-
1340
- // src/commands/GetTaxInheritanceCommand.ts
1341
-
1342
-
1343
-
1344
- var GetTaxInheritanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1345
- return [
1346
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1347
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1348
- ];
1349
- }).s("TaxSettings", "GetTaxInheritance", {}).n("TaxSettingsClient", "GetTaxInheritanceCommand").f(void 0, void 0).ser(se_GetTaxInheritanceCommand).de(de_GetTaxInheritanceCommand).build() {
1350
- static {
1351
- __name(this, "GetTaxInheritanceCommand");
1352
- }
720
+ const de_ListTaxExemptionsCommand = async (output, context) => {
721
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
722
+ return de_CommandError(output, context);
723
+ }
724
+ const contents = smithyClient.map({
725
+ $metadata: deserializeMetadata(output),
726
+ });
727
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
728
+ const doc = smithyClient.take(data, {
729
+ nextToken: smithyClient.expectString,
730
+ taxExemptionDetailsMap: (_) => de_TaxExemptionDetailsMap(_),
731
+ });
732
+ Object.assign(contents, doc);
733
+ return contents;
1353
734
  };
1354
-
1355
- // src/commands/GetTaxRegistrationCommand.ts
1356
-
1357
-
1358
-
1359
- var GetTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1360
- return [
1361
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1362
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1363
- ];
1364
- }).s("TaxSettings", "GetTaxRegistration", {}).n("TaxSettingsClient", "GetTaxRegistrationCommand").f(void 0, GetTaxRegistrationResponseFilterSensitiveLog).ser(se_GetTaxRegistrationCommand).de(de_GetTaxRegistrationCommand).build() {
1365
- static {
1366
- __name(this, "GetTaxRegistrationCommand");
1367
- }
735
+ const de_ListTaxRegistrationsCommand = async (output, context) => {
736
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
737
+ return de_CommandError(output, context);
738
+ }
739
+ const contents = smithyClient.map({
740
+ $metadata: deserializeMetadata(output),
741
+ });
742
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
743
+ const doc = smithyClient.take(data, {
744
+ accountDetails: smithyClient._json,
745
+ nextToken: smithyClient.expectString,
746
+ });
747
+ Object.assign(contents, doc);
748
+ return contents;
1368
749
  };
1369
-
1370
- // src/commands/GetTaxRegistrationDocumentCommand.ts
1371
-
1372
-
1373
-
1374
- var GetTaxRegistrationDocumentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1375
- return [
1376
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1377
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1378
- ];
1379
- }).s("TaxSettings", "GetTaxRegistrationDocument", {}).n("TaxSettingsClient", "GetTaxRegistrationDocumentCommand").f(void 0, void 0).ser(se_GetTaxRegistrationDocumentCommand).de(de_GetTaxRegistrationDocumentCommand).build() {
1380
- static {
1381
- __name(this, "GetTaxRegistrationDocumentCommand");
1382
- }
750
+ const de_PutSupplementalTaxRegistrationCommand = async (output, context) => {
751
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
752
+ return de_CommandError(output, context);
753
+ }
754
+ const contents = smithyClient.map({
755
+ $metadata: deserializeMetadata(output),
756
+ });
757
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
758
+ const doc = smithyClient.take(data, {
759
+ authorityId: smithyClient.expectString,
760
+ status: smithyClient.expectString,
761
+ });
762
+ Object.assign(contents, doc);
763
+ return contents;
1383
764
  };
1384
-
1385
- // src/commands/ListSupplementalTaxRegistrationsCommand.ts
1386
-
1387
-
1388
-
1389
- var ListSupplementalTaxRegistrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1390
- return [
1391
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1392
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1393
- ];
1394
- }).s("TaxSettings", "ListSupplementalTaxRegistrations", {}).n("TaxSettingsClient", "ListSupplementalTaxRegistrationsCommand").f(void 0, ListSupplementalTaxRegistrationsResponseFilterSensitiveLog).ser(se_ListSupplementalTaxRegistrationsCommand).de(de_ListSupplementalTaxRegistrationsCommand).build() {
1395
- static {
1396
- __name(this, "ListSupplementalTaxRegistrationsCommand");
1397
- }
765
+ const de_PutTaxExemptionCommand = async (output, context) => {
766
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
767
+ return de_CommandError(output, context);
768
+ }
769
+ const contents = smithyClient.map({
770
+ $metadata: deserializeMetadata(output),
771
+ });
772
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
773
+ const doc = smithyClient.take(data, {
774
+ caseId: smithyClient.expectString,
775
+ });
776
+ Object.assign(contents, doc);
777
+ return contents;
1398
778
  };
1399
-
1400
- // src/commands/ListTaxExemptionsCommand.ts
1401
-
1402
-
1403
-
1404
- var ListTaxExemptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1405
- return [
1406
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1407
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1408
- ];
1409
- }).s("TaxSettings", "ListTaxExemptions", {}).n("TaxSettingsClient", "ListTaxExemptionsCommand").f(void 0, void 0).ser(se_ListTaxExemptionsCommand).de(de_ListTaxExemptionsCommand).build() {
1410
- static {
1411
- __name(this, "ListTaxExemptionsCommand");
1412
- }
779
+ const de_PutTaxInheritanceCommand = async (output, context) => {
780
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
781
+ return de_CommandError(output, context);
782
+ }
783
+ const contents = smithyClient.map({
784
+ $metadata: deserializeMetadata(output),
785
+ });
786
+ await smithyClient.collectBody(output.body, context);
787
+ return contents;
1413
788
  };
1414
-
1415
- // src/commands/ListTaxRegistrationsCommand.ts
1416
-
1417
-
1418
-
1419
- var ListTaxRegistrationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1420
- return [
1421
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1422
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1423
- ];
1424
- }).s("TaxSettings", "ListTaxRegistrations", {}).n("TaxSettingsClient", "ListTaxRegistrationsCommand").f(void 0, ListTaxRegistrationsResponseFilterSensitiveLog).ser(se_ListTaxRegistrationsCommand).de(de_ListTaxRegistrationsCommand).build() {
1425
- static {
1426
- __name(this, "ListTaxRegistrationsCommand");
1427
- }
789
+ const de_PutTaxRegistrationCommand = async (output, context) => {
790
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
791
+ return de_CommandError(output, context);
792
+ }
793
+ const contents = smithyClient.map({
794
+ $metadata: deserializeMetadata(output),
795
+ });
796
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
797
+ const doc = smithyClient.take(data, {
798
+ status: smithyClient.expectString,
799
+ });
800
+ Object.assign(contents, doc);
801
+ return contents;
1428
802
  };
1429
-
1430
- // src/commands/PutSupplementalTaxRegistrationCommand.ts
1431
-
1432
-
1433
-
1434
- var PutSupplementalTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1435
- return [
1436
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1437
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1438
- ];
1439
- }).s("TaxSettings", "PutSupplementalTaxRegistration", {}).n("TaxSettingsClient", "PutSupplementalTaxRegistrationCommand").f(PutSupplementalTaxRegistrationRequestFilterSensitiveLog, void 0).ser(se_PutSupplementalTaxRegistrationCommand).de(de_PutSupplementalTaxRegistrationCommand).build() {
1440
- static {
1441
- __name(this, "PutSupplementalTaxRegistrationCommand");
1442
- }
803
+ const de_CommandError = async (output, context) => {
804
+ const parsedOutput = {
805
+ ...output,
806
+ body: await core$1.parseJsonErrorBody(output.body, context),
807
+ };
808
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
809
+ switch (errorCode) {
810
+ case "ConflictException":
811
+ case "com.amazonaws.taxsettings#ConflictException":
812
+ throw await de_ConflictExceptionRes(parsedOutput);
813
+ case "InternalServerException":
814
+ case "com.amazonaws.taxsettings#InternalServerException":
815
+ throw await de_InternalServerExceptionRes(parsedOutput);
816
+ case "ValidationException":
817
+ case "com.amazonaws.taxsettings#ValidationException":
818
+ throw await de_ValidationExceptionRes(parsedOutput);
819
+ case "ResourceNotFoundException":
820
+ case "com.amazonaws.taxsettings#ResourceNotFoundException":
821
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
822
+ case "AccessDeniedException":
823
+ case "com.amazonaws.taxsettings#AccessDeniedException":
824
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
825
+ case "AttachmentUploadException":
826
+ case "com.amazonaws.taxsettings#AttachmentUploadException":
827
+ throw await de_AttachmentUploadExceptionRes(parsedOutput);
828
+ case "CaseCreationLimitExceededException":
829
+ case "com.amazonaws.taxsettings#CaseCreationLimitExceededException":
830
+ throw await de_CaseCreationLimitExceededExceptionRes(parsedOutput);
831
+ default:
832
+ const parsedBody = parsedOutput.body;
833
+ return throwDefaultError({
834
+ output,
835
+ parsedBody,
836
+ errorCode,
837
+ });
838
+ }
1443
839
  };
1444
-
1445
- // src/commands/PutTaxExemptionCommand.ts
1446
-
1447
-
1448
-
1449
- var PutTaxExemptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1450
- return [
1451
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1452
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1453
- ];
1454
- }).s("TaxSettings", "PutTaxExemption", {}).n("TaxSettingsClient", "PutTaxExemptionCommand").f(void 0, void 0).ser(se_PutTaxExemptionCommand).de(de_PutTaxExemptionCommand).build() {
1455
- static {
1456
- __name(this, "PutTaxExemptionCommand");
1457
- }
840
+ const throwDefaultError = smithyClient.withBaseException(TaxSettingsServiceException);
841
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
842
+ const contents = smithyClient.map({});
843
+ const data = parsedOutput.body;
844
+ const doc = smithyClient.take(data, {
845
+ message: smithyClient.expectString,
846
+ });
847
+ Object.assign(contents, doc);
848
+ const exception = new AccessDeniedException({
849
+ $metadata: deserializeMetadata(parsedOutput),
850
+ ...contents,
851
+ });
852
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1458
853
  };
1459
-
1460
- // src/commands/PutTaxInheritanceCommand.ts
1461
-
1462
-
1463
-
1464
- var PutTaxInheritanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1465
- return [
1466
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1467
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1468
- ];
1469
- }).s("TaxSettings", "PutTaxInheritance", {}).n("TaxSettingsClient", "PutTaxInheritanceCommand").f(void 0, void 0).ser(se_PutTaxInheritanceCommand).de(de_PutTaxInheritanceCommand).build() {
1470
- static {
1471
- __name(this, "PutTaxInheritanceCommand");
1472
- }
854
+ const de_AttachmentUploadExceptionRes = async (parsedOutput, context) => {
855
+ const contents = smithyClient.map({});
856
+ const data = parsedOutput.body;
857
+ const doc = smithyClient.take(data, {
858
+ message: smithyClient.expectString,
859
+ });
860
+ Object.assign(contents, doc);
861
+ const exception = new AttachmentUploadException({
862
+ $metadata: deserializeMetadata(parsedOutput),
863
+ ...contents,
864
+ });
865
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1473
866
  };
1474
-
1475
- // src/commands/PutTaxRegistrationCommand.ts
1476
-
1477
-
1478
-
1479
- var PutTaxRegistrationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1480
- return [
1481
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1482
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1483
- ];
1484
- }).s("TaxSettings", "PutTaxRegistration", {}).n("TaxSettingsClient", "PutTaxRegistrationCommand").f(PutTaxRegistrationRequestFilterSensitiveLog, void 0).ser(se_PutTaxRegistrationCommand).de(de_PutTaxRegistrationCommand).build() {
1485
- static {
1486
- __name(this, "PutTaxRegistrationCommand");
1487
- }
867
+ const de_CaseCreationLimitExceededExceptionRes = async (parsedOutput, context) => {
868
+ const contents = smithyClient.map({});
869
+ const data = parsedOutput.body;
870
+ const doc = smithyClient.take(data, {
871
+ message: smithyClient.expectString,
872
+ });
873
+ Object.assign(contents, doc);
874
+ const exception = new CaseCreationLimitExceededException({
875
+ $metadata: deserializeMetadata(parsedOutput),
876
+ ...contents,
877
+ });
878
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1488
879
  };
880
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
881
+ const contents = smithyClient.map({});
882
+ const data = parsedOutput.body;
883
+ const doc = smithyClient.take(data, {
884
+ errorCode: smithyClient.expectString,
885
+ message: smithyClient.expectString,
886
+ });
887
+ Object.assign(contents, doc);
888
+ const exception = new ConflictException({
889
+ $metadata: deserializeMetadata(parsedOutput),
890
+ ...contents,
891
+ });
892
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
893
+ };
894
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
895
+ const contents = smithyClient.map({});
896
+ const data = parsedOutput.body;
897
+ const doc = smithyClient.take(data, {
898
+ errorCode: smithyClient.expectString,
899
+ message: smithyClient.expectString,
900
+ });
901
+ Object.assign(contents, doc);
902
+ const exception = new InternalServerException({
903
+ $metadata: deserializeMetadata(parsedOutput),
904
+ ...contents,
905
+ });
906
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
907
+ };
908
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
909
+ const contents = smithyClient.map({});
910
+ const data = parsedOutput.body;
911
+ const doc = smithyClient.take(data, {
912
+ errorCode: smithyClient.expectString,
913
+ message: smithyClient.expectString,
914
+ });
915
+ Object.assign(contents, doc);
916
+ const exception = new ResourceNotFoundException({
917
+ $metadata: deserializeMetadata(parsedOutput),
918
+ ...contents,
919
+ });
920
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
921
+ };
922
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
923
+ const contents = smithyClient.map({});
924
+ const data = parsedOutput.body;
925
+ const doc = smithyClient.take(data, {
926
+ errorCode: smithyClient.expectString,
927
+ fieldList: smithyClient._json,
928
+ message: smithyClient.expectString,
929
+ });
930
+ Object.assign(contents, doc);
931
+ const exception = new ValidationException({
932
+ $metadata: deserializeMetadata(parsedOutput),
933
+ ...contents,
934
+ });
935
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
936
+ };
937
+ const se_ExemptionCertificate = (input, context) => {
938
+ return smithyClient.take(input, {
939
+ documentFile: context.base64Encoder,
940
+ documentName: [],
941
+ });
942
+ };
943
+ const se_TaxRegistrationDocFile = (input, context) => {
944
+ return smithyClient.take(input, {
945
+ fileContent: context.base64Encoder,
946
+ fileName: [],
947
+ });
948
+ };
949
+ const se_TaxRegistrationDocument = (input, context) => {
950
+ return smithyClient.take(input, {
951
+ file: (_) => se_TaxRegistrationDocFile(_, context),
952
+ s3Location: smithyClient._json,
953
+ });
954
+ };
955
+ const se_TaxRegistrationDocuments = (input, context) => {
956
+ return input
957
+ .filter((e) => e != null)
958
+ .map((entry) => {
959
+ return se_TaxRegistrationDocument(entry, context);
960
+ });
961
+ };
962
+ const se_TaxRegistrationEntry = (input, context) => {
963
+ return smithyClient.take(input, {
964
+ additionalTaxInformation: smithyClient._json,
965
+ certifiedEmailId: [],
966
+ legalAddress: smithyClient._json,
967
+ legalName: [],
968
+ registrationId: [],
969
+ registrationType: [],
970
+ sector: [],
971
+ verificationDetails: (_) => se_VerificationDetails(_, context),
972
+ });
973
+ };
974
+ const se_VerificationDetails = (input, context) => {
975
+ return smithyClient.take(input, {
976
+ dateOfBirth: [],
977
+ taxRegistrationDocuments: (_) => se_TaxRegistrationDocuments(_, context),
978
+ });
979
+ };
980
+ const de_TaxExemption = (output, context) => {
981
+ return smithyClient.take(output, {
982
+ authority: smithyClient._json,
983
+ effectiveDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
984
+ expirationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
985
+ status: smithyClient.expectString,
986
+ systemEffectiveDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
987
+ taxExemptionType: smithyClient._json,
988
+ });
989
+ };
990
+ const de_TaxExemptionDetails = (output, context) => {
991
+ return smithyClient.take(output, {
992
+ heritageObtainedDetails: smithyClient.expectBoolean,
993
+ heritageObtainedParentEntity: smithyClient.expectString,
994
+ heritageObtainedReason: smithyClient.expectString,
995
+ taxExemptions: (_) => de_TaxExemptions(_),
996
+ });
997
+ };
998
+ const de_TaxExemptionDetailsMap = (output, context) => {
999
+ return Object.entries(output).reduce((acc, [key, value]) => {
1000
+ if (value === null) {
1001
+ return acc;
1002
+ }
1003
+ acc[key] = de_TaxExemptionDetails(value);
1004
+ return acc;
1005
+ }, {});
1006
+ };
1007
+ const de_TaxExemptions = (output, context) => {
1008
+ const retVal = (output || [])
1009
+ .filter((e) => e != null)
1010
+ .map((entry) => {
1011
+ return de_TaxExemption(entry);
1012
+ });
1013
+ return retVal;
1014
+ };
1015
+ const deserializeMetadata = (output) => ({
1016
+ httpStatusCode: output.statusCode,
1017
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1018
+ extendedRequestId: output.headers["x-amz-id-2"],
1019
+ cfId: output.headers["x-amz-cf-id"],
1020
+ });
1489
1021
 
1490
- // src/TaxSettings.ts
1491
- var commands = {
1492
- BatchDeleteTaxRegistrationCommand,
1493
- BatchGetTaxExemptionsCommand,
1494
- BatchPutTaxRegistrationCommand,
1495
- DeleteSupplementalTaxRegistrationCommand,
1496
- DeleteTaxRegistrationCommand,
1497
- GetTaxExemptionTypesCommand,
1498
- GetTaxInheritanceCommand,
1499
- GetTaxRegistrationCommand,
1500
- GetTaxRegistrationDocumentCommand,
1501
- ListSupplementalTaxRegistrationsCommand,
1502
- ListTaxExemptionsCommand,
1503
- ListTaxRegistrationsCommand,
1504
- PutSupplementalTaxRegistrationCommand,
1505
- PutTaxExemptionCommand,
1506
- PutTaxInheritanceCommand,
1507
- PutTaxRegistrationCommand
1508
- };
1509
- var TaxSettings = class extends TaxSettingsClient {
1510
- static {
1511
- __name(this, "TaxSettings");
1512
- }
1513
- };
1514
- (0, import_smithy_client.createAggregatedClient)(commands, TaxSettings);
1515
-
1516
- // src/pagination/ListSupplementalTaxRegistrationsPaginator.ts
1517
-
1518
- var paginateListSupplementalTaxRegistrations = (0, import_core.createPaginator)(TaxSettingsClient, ListSupplementalTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1519
-
1520
- // src/pagination/ListTaxExemptionsPaginator.ts
1022
+ class BatchDeleteTaxRegistrationCommand extends smithyClient.Command
1023
+ .classBuilder()
1024
+ .ep(commonParams)
1025
+ .m(function (Command, cs, config, o) {
1026
+ return [
1027
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1028
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1029
+ ];
1030
+ })
1031
+ .s("TaxSettings", "BatchDeleteTaxRegistration", {})
1032
+ .n("TaxSettingsClient", "BatchDeleteTaxRegistrationCommand")
1033
+ .f(void 0, BatchDeleteTaxRegistrationResponseFilterSensitiveLog)
1034
+ .ser(se_BatchDeleteTaxRegistrationCommand)
1035
+ .de(de_BatchDeleteTaxRegistrationCommand)
1036
+ .build() {
1037
+ }
1038
+
1039
+ class BatchGetTaxExemptionsCommand extends smithyClient.Command
1040
+ .classBuilder()
1041
+ .ep(commonParams)
1042
+ .m(function (Command, cs, config, o) {
1043
+ return [
1044
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1045
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1046
+ ];
1047
+ })
1048
+ .s("TaxSettings", "BatchGetTaxExemptions", {})
1049
+ .n("TaxSettingsClient", "BatchGetTaxExemptionsCommand")
1050
+ .f(void 0, void 0)
1051
+ .ser(se_BatchGetTaxExemptionsCommand)
1052
+ .de(de_BatchGetTaxExemptionsCommand)
1053
+ .build() {
1054
+ }
1055
+
1056
+ class BatchPutTaxRegistrationCommand extends smithyClient.Command
1057
+ .classBuilder()
1058
+ .ep(commonParams)
1059
+ .m(function (Command, cs, config, o) {
1060
+ return [
1061
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1062
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1063
+ ];
1064
+ })
1065
+ .s("TaxSettings", "BatchPutTaxRegistration", {})
1066
+ .n("TaxSettingsClient", "BatchPutTaxRegistrationCommand")
1067
+ .f(BatchPutTaxRegistrationRequestFilterSensitiveLog, BatchPutTaxRegistrationResponseFilterSensitiveLog)
1068
+ .ser(se_BatchPutTaxRegistrationCommand)
1069
+ .de(de_BatchPutTaxRegistrationCommand)
1070
+ .build() {
1071
+ }
1072
+
1073
+ class DeleteSupplementalTaxRegistrationCommand extends smithyClient.Command
1074
+ .classBuilder()
1075
+ .ep(commonParams)
1076
+ .m(function (Command, cs, config, o) {
1077
+ return [
1078
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1079
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1080
+ ];
1081
+ })
1082
+ .s("TaxSettings", "DeleteSupplementalTaxRegistration", {})
1083
+ .n("TaxSettingsClient", "DeleteSupplementalTaxRegistrationCommand")
1084
+ .f(void 0, void 0)
1085
+ .ser(se_DeleteSupplementalTaxRegistrationCommand)
1086
+ .de(de_DeleteSupplementalTaxRegistrationCommand)
1087
+ .build() {
1088
+ }
1089
+
1090
+ class DeleteTaxRegistrationCommand extends smithyClient.Command
1091
+ .classBuilder()
1092
+ .ep(commonParams)
1093
+ .m(function (Command, cs, config, o) {
1094
+ return [
1095
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1096
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1097
+ ];
1098
+ })
1099
+ .s("TaxSettings", "DeleteTaxRegistration", {})
1100
+ .n("TaxSettingsClient", "DeleteTaxRegistrationCommand")
1101
+ .f(void 0, void 0)
1102
+ .ser(se_DeleteTaxRegistrationCommand)
1103
+ .de(de_DeleteTaxRegistrationCommand)
1104
+ .build() {
1105
+ }
1106
+
1107
+ class GetTaxExemptionTypesCommand extends smithyClient.Command
1108
+ .classBuilder()
1109
+ .ep(commonParams)
1110
+ .m(function (Command, cs, config, o) {
1111
+ return [
1112
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1113
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1114
+ ];
1115
+ })
1116
+ .s("TaxSettings", "GetTaxExemptionTypes", {})
1117
+ .n("TaxSettingsClient", "GetTaxExemptionTypesCommand")
1118
+ .f(void 0, void 0)
1119
+ .ser(se_GetTaxExemptionTypesCommand)
1120
+ .de(de_GetTaxExemptionTypesCommand)
1121
+ .build() {
1122
+ }
1123
+
1124
+ class GetTaxInheritanceCommand extends smithyClient.Command
1125
+ .classBuilder()
1126
+ .ep(commonParams)
1127
+ .m(function (Command, cs, config, o) {
1128
+ return [
1129
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1130
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1131
+ ];
1132
+ })
1133
+ .s("TaxSettings", "GetTaxInheritance", {})
1134
+ .n("TaxSettingsClient", "GetTaxInheritanceCommand")
1135
+ .f(void 0, void 0)
1136
+ .ser(se_GetTaxInheritanceCommand)
1137
+ .de(de_GetTaxInheritanceCommand)
1138
+ .build() {
1139
+ }
1140
+
1141
+ class GetTaxRegistrationCommand extends smithyClient.Command
1142
+ .classBuilder()
1143
+ .ep(commonParams)
1144
+ .m(function (Command, cs, config, o) {
1145
+ return [
1146
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1147
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1148
+ ];
1149
+ })
1150
+ .s("TaxSettings", "GetTaxRegistration", {})
1151
+ .n("TaxSettingsClient", "GetTaxRegistrationCommand")
1152
+ .f(void 0, GetTaxRegistrationResponseFilterSensitiveLog)
1153
+ .ser(se_GetTaxRegistrationCommand)
1154
+ .de(de_GetTaxRegistrationCommand)
1155
+ .build() {
1156
+ }
1157
+
1158
+ class GetTaxRegistrationDocumentCommand extends smithyClient.Command
1159
+ .classBuilder()
1160
+ .ep(commonParams)
1161
+ .m(function (Command, cs, config, o) {
1162
+ return [
1163
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1164
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1165
+ ];
1166
+ })
1167
+ .s("TaxSettings", "GetTaxRegistrationDocument", {})
1168
+ .n("TaxSettingsClient", "GetTaxRegistrationDocumentCommand")
1169
+ .f(void 0, void 0)
1170
+ .ser(se_GetTaxRegistrationDocumentCommand)
1171
+ .de(de_GetTaxRegistrationDocumentCommand)
1172
+ .build() {
1173
+ }
1174
+
1175
+ class ListSupplementalTaxRegistrationsCommand extends smithyClient.Command
1176
+ .classBuilder()
1177
+ .ep(commonParams)
1178
+ .m(function (Command, cs, config, o) {
1179
+ return [
1180
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1181
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1182
+ ];
1183
+ })
1184
+ .s("TaxSettings", "ListSupplementalTaxRegistrations", {})
1185
+ .n("TaxSettingsClient", "ListSupplementalTaxRegistrationsCommand")
1186
+ .f(void 0, ListSupplementalTaxRegistrationsResponseFilterSensitiveLog)
1187
+ .ser(se_ListSupplementalTaxRegistrationsCommand)
1188
+ .de(de_ListSupplementalTaxRegistrationsCommand)
1189
+ .build() {
1190
+ }
1191
+
1192
+ class ListTaxExemptionsCommand extends smithyClient.Command
1193
+ .classBuilder()
1194
+ .ep(commonParams)
1195
+ .m(function (Command, cs, config, o) {
1196
+ return [
1197
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1198
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1199
+ ];
1200
+ })
1201
+ .s("TaxSettings", "ListTaxExemptions", {})
1202
+ .n("TaxSettingsClient", "ListTaxExemptionsCommand")
1203
+ .f(void 0, void 0)
1204
+ .ser(se_ListTaxExemptionsCommand)
1205
+ .de(de_ListTaxExemptionsCommand)
1206
+ .build() {
1207
+ }
1208
+
1209
+ class ListTaxRegistrationsCommand extends smithyClient.Command
1210
+ .classBuilder()
1211
+ .ep(commonParams)
1212
+ .m(function (Command, cs, config, o) {
1213
+ return [
1214
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1215
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1216
+ ];
1217
+ })
1218
+ .s("TaxSettings", "ListTaxRegistrations", {})
1219
+ .n("TaxSettingsClient", "ListTaxRegistrationsCommand")
1220
+ .f(void 0, ListTaxRegistrationsResponseFilterSensitiveLog)
1221
+ .ser(se_ListTaxRegistrationsCommand)
1222
+ .de(de_ListTaxRegistrationsCommand)
1223
+ .build() {
1224
+ }
1225
+
1226
+ class PutSupplementalTaxRegistrationCommand extends smithyClient.Command
1227
+ .classBuilder()
1228
+ .ep(commonParams)
1229
+ .m(function (Command, cs, config, o) {
1230
+ return [
1231
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1232
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1233
+ ];
1234
+ })
1235
+ .s("TaxSettings", "PutSupplementalTaxRegistration", {})
1236
+ .n("TaxSettingsClient", "PutSupplementalTaxRegistrationCommand")
1237
+ .f(PutSupplementalTaxRegistrationRequestFilterSensitiveLog, void 0)
1238
+ .ser(se_PutSupplementalTaxRegistrationCommand)
1239
+ .de(de_PutSupplementalTaxRegistrationCommand)
1240
+ .build() {
1241
+ }
1242
+
1243
+ class PutTaxExemptionCommand extends smithyClient.Command
1244
+ .classBuilder()
1245
+ .ep(commonParams)
1246
+ .m(function (Command, cs, config, o) {
1247
+ return [
1248
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1249
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1250
+ ];
1251
+ })
1252
+ .s("TaxSettings", "PutTaxExemption", {})
1253
+ .n("TaxSettingsClient", "PutTaxExemptionCommand")
1254
+ .f(void 0, void 0)
1255
+ .ser(se_PutTaxExemptionCommand)
1256
+ .de(de_PutTaxExemptionCommand)
1257
+ .build() {
1258
+ }
1259
+
1260
+ class PutTaxInheritanceCommand extends smithyClient.Command
1261
+ .classBuilder()
1262
+ .ep(commonParams)
1263
+ .m(function (Command, cs, config, o) {
1264
+ return [
1265
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1266
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1267
+ ];
1268
+ })
1269
+ .s("TaxSettings", "PutTaxInheritance", {})
1270
+ .n("TaxSettingsClient", "PutTaxInheritanceCommand")
1271
+ .f(void 0, void 0)
1272
+ .ser(se_PutTaxInheritanceCommand)
1273
+ .de(de_PutTaxInheritanceCommand)
1274
+ .build() {
1275
+ }
1276
+
1277
+ class PutTaxRegistrationCommand extends smithyClient.Command
1278
+ .classBuilder()
1279
+ .ep(commonParams)
1280
+ .m(function (Command, cs, config, o) {
1281
+ return [
1282
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1283
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1284
+ ];
1285
+ })
1286
+ .s("TaxSettings", "PutTaxRegistration", {})
1287
+ .n("TaxSettingsClient", "PutTaxRegistrationCommand")
1288
+ .f(PutTaxRegistrationRequestFilterSensitiveLog, void 0)
1289
+ .ser(se_PutTaxRegistrationCommand)
1290
+ .de(de_PutTaxRegistrationCommand)
1291
+ .build() {
1292
+ }
1293
+
1294
+ const commands = {
1295
+ BatchDeleteTaxRegistrationCommand,
1296
+ BatchGetTaxExemptionsCommand,
1297
+ BatchPutTaxRegistrationCommand,
1298
+ DeleteSupplementalTaxRegistrationCommand,
1299
+ DeleteTaxRegistrationCommand,
1300
+ GetTaxExemptionTypesCommand,
1301
+ GetTaxInheritanceCommand,
1302
+ GetTaxRegistrationCommand,
1303
+ GetTaxRegistrationDocumentCommand,
1304
+ ListSupplementalTaxRegistrationsCommand,
1305
+ ListTaxExemptionsCommand,
1306
+ ListTaxRegistrationsCommand,
1307
+ PutSupplementalTaxRegistrationCommand,
1308
+ PutTaxExemptionCommand,
1309
+ PutTaxInheritanceCommand,
1310
+ PutTaxRegistrationCommand,
1311
+ };
1312
+ class TaxSettings extends TaxSettingsClient {
1313
+ }
1314
+ smithyClient.createAggregatedClient(commands, TaxSettings);
1521
1315
 
1522
- var paginateListTaxExemptions = (0, import_core.createPaginator)(TaxSettingsClient, ListTaxExemptionsCommand, "nextToken", "nextToken", "maxResults");
1316
+ const paginateListSupplementalTaxRegistrations = core.createPaginator(TaxSettingsClient, ListSupplementalTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1523
1317
 
1524
- // src/pagination/ListTaxRegistrationsPaginator.ts
1318
+ const paginateListTaxExemptions = core.createPaginator(TaxSettingsClient, ListTaxExemptionsCommand, "nextToken", "nextToken", "maxResults");
1525
1319
 
1526
- var paginateListTaxRegistrations = (0, import_core.createPaginator)(TaxSettingsClient, ListTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1527
- // Annotate the CommonJS export names for ESM import in node:
1320
+ const paginateListTaxRegistrations = core.createPaginator(TaxSettingsClient, ListTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1528
1321
 
1529
- 0 && (module.exports = {
1530
- TaxSettingsServiceException,
1531
- __Client,
1532
- TaxSettingsClient,
1533
- TaxSettings,
1534
- $Command,
1535
- BatchDeleteTaxRegistrationCommand,
1536
- BatchGetTaxExemptionsCommand,
1537
- BatchPutTaxRegistrationCommand,
1538
- DeleteSupplementalTaxRegistrationCommand,
1539
- DeleteTaxRegistrationCommand,
1540
- GetTaxExemptionTypesCommand,
1541
- GetTaxInheritanceCommand,
1542
- GetTaxRegistrationCommand,
1543
- GetTaxRegistrationDocumentCommand,
1544
- ListSupplementalTaxRegistrationsCommand,
1545
- ListTaxExemptionsCommand,
1546
- ListTaxRegistrationsCommand,
1547
- PutSupplementalTaxRegistrationCommand,
1548
- PutTaxExemptionCommand,
1549
- PutTaxInheritanceCommand,
1550
- PutTaxRegistrationCommand,
1551
- paginateListSupplementalTaxRegistrations,
1552
- paginateListTaxExemptions,
1553
- paginateListTaxRegistrations,
1554
- AccessDeniedException,
1555
- AddressRoleType,
1556
- PersonType,
1557
- IndonesiaTaxRegistrationNumberType,
1558
- IsraelCustomerType,
1559
- IsraelDealerType,
1560
- MalaysiaServiceTaxCode,
1561
- TaxRegistrationNumberType,
1562
- SaudiArabiaTaxRegistrationNumberType,
1563
- RegistrationType,
1564
- Industries,
1565
- UkraineTrnType,
1566
- UzbekistanTaxRegistrationNumberType,
1567
- TaxRegistrationType,
1568
- Sector,
1569
- TaxRegistrationStatus,
1570
- AttachmentUploadException,
1571
- ConflictException,
1572
- InternalServerException,
1573
- ValidationExceptionErrorCode,
1574
- ValidationException,
1575
- EntityExemptionAccountStatus,
1576
- ResourceNotFoundException,
1577
- CaseCreationLimitExceededException,
1578
- HeritageStatus,
1579
- SupplementalTaxRegistrationType,
1580
- AccountMetaDataFilterSensitiveLog,
1581
- TaxRegistrationWithJurisdictionFilterSensitiveLog,
1582
- AccountDetailsFilterSensitiveLog,
1583
- BatchDeleteTaxRegistrationErrorFilterSensitiveLog,
1584
- BatchDeleteTaxRegistrationResponseFilterSensitiveLog,
1585
- TaxRegistrationEntryFilterSensitiveLog,
1586
- BatchPutTaxRegistrationRequestFilterSensitiveLog,
1587
- BatchPutTaxRegistrationErrorFilterSensitiveLog,
1588
- BatchPutTaxRegistrationResponseFilterSensitiveLog,
1589
- TaxRegistrationFilterSensitiveLog,
1590
- GetTaxRegistrationResponseFilterSensitiveLog,
1591
- SupplementalTaxRegistrationFilterSensitiveLog,
1592
- ListSupplementalTaxRegistrationsResponseFilterSensitiveLog,
1593
- ListTaxRegistrationsResponseFilterSensitiveLog,
1594
- SupplementalTaxRegistrationEntryFilterSensitiveLog,
1595
- PutSupplementalTaxRegistrationRequestFilterSensitiveLog,
1596
- PutTaxRegistrationRequestFilterSensitiveLog
1322
+ Object.defineProperty(exports, "$Command", {
1323
+ enumerable: true,
1324
+ get: function () { return smithyClient.Command; }
1597
1325
  });
1598
-
1326
+ Object.defineProperty(exports, "__Client", {
1327
+ enumerable: true,
1328
+ get: function () { return smithyClient.Client; }
1329
+ });
1330
+ exports.AccessDeniedException = AccessDeniedException;
1331
+ exports.AccountDetailsFilterSensitiveLog = AccountDetailsFilterSensitiveLog;
1332
+ exports.AccountMetaDataFilterSensitiveLog = AccountMetaDataFilterSensitiveLog;
1333
+ exports.AddressRoleType = AddressRoleType;
1334
+ exports.AttachmentUploadException = AttachmentUploadException;
1335
+ exports.BatchDeleteTaxRegistrationCommand = BatchDeleteTaxRegistrationCommand;
1336
+ exports.BatchDeleteTaxRegistrationErrorFilterSensitiveLog = BatchDeleteTaxRegistrationErrorFilterSensitiveLog;
1337
+ exports.BatchDeleteTaxRegistrationResponseFilterSensitiveLog = BatchDeleteTaxRegistrationResponseFilterSensitiveLog;
1338
+ exports.BatchGetTaxExemptionsCommand = BatchGetTaxExemptionsCommand;
1339
+ exports.BatchPutTaxRegistrationCommand = BatchPutTaxRegistrationCommand;
1340
+ exports.BatchPutTaxRegistrationErrorFilterSensitiveLog = BatchPutTaxRegistrationErrorFilterSensitiveLog;
1341
+ exports.BatchPutTaxRegistrationRequestFilterSensitiveLog = BatchPutTaxRegistrationRequestFilterSensitiveLog;
1342
+ exports.BatchPutTaxRegistrationResponseFilterSensitiveLog = BatchPutTaxRegistrationResponseFilterSensitiveLog;
1343
+ exports.CaseCreationLimitExceededException = CaseCreationLimitExceededException;
1344
+ exports.ConflictException = ConflictException;
1345
+ exports.DeleteSupplementalTaxRegistrationCommand = DeleteSupplementalTaxRegistrationCommand;
1346
+ exports.DeleteTaxRegistrationCommand = DeleteTaxRegistrationCommand;
1347
+ exports.EntityExemptionAccountStatus = EntityExemptionAccountStatus;
1348
+ exports.GetTaxExemptionTypesCommand = GetTaxExemptionTypesCommand;
1349
+ exports.GetTaxInheritanceCommand = GetTaxInheritanceCommand;
1350
+ exports.GetTaxRegistrationCommand = GetTaxRegistrationCommand;
1351
+ exports.GetTaxRegistrationDocumentCommand = GetTaxRegistrationDocumentCommand;
1352
+ exports.GetTaxRegistrationResponseFilterSensitiveLog = GetTaxRegistrationResponseFilterSensitiveLog;
1353
+ exports.HeritageStatus = HeritageStatus;
1354
+ exports.IndonesiaTaxRegistrationNumberType = IndonesiaTaxRegistrationNumberType;
1355
+ exports.Industries = Industries;
1356
+ exports.InternalServerException = InternalServerException;
1357
+ exports.IsraelCustomerType = IsraelCustomerType;
1358
+ exports.IsraelDealerType = IsraelDealerType;
1359
+ exports.ListSupplementalTaxRegistrationsCommand = ListSupplementalTaxRegistrationsCommand;
1360
+ exports.ListSupplementalTaxRegistrationsResponseFilterSensitiveLog = ListSupplementalTaxRegistrationsResponseFilterSensitiveLog;
1361
+ exports.ListTaxExemptionsCommand = ListTaxExemptionsCommand;
1362
+ exports.ListTaxRegistrationsCommand = ListTaxRegistrationsCommand;
1363
+ exports.ListTaxRegistrationsResponseFilterSensitiveLog = ListTaxRegistrationsResponseFilterSensitiveLog;
1364
+ exports.MalaysiaServiceTaxCode = MalaysiaServiceTaxCode;
1365
+ exports.PersonType = PersonType;
1366
+ exports.PutSupplementalTaxRegistrationCommand = PutSupplementalTaxRegistrationCommand;
1367
+ exports.PutSupplementalTaxRegistrationRequestFilterSensitiveLog = PutSupplementalTaxRegistrationRequestFilterSensitiveLog;
1368
+ exports.PutTaxExemptionCommand = PutTaxExemptionCommand;
1369
+ exports.PutTaxInheritanceCommand = PutTaxInheritanceCommand;
1370
+ exports.PutTaxRegistrationCommand = PutTaxRegistrationCommand;
1371
+ exports.PutTaxRegistrationRequestFilterSensitiveLog = PutTaxRegistrationRequestFilterSensitiveLog;
1372
+ exports.RegistrationType = RegistrationType;
1373
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1374
+ exports.SaudiArabiaTaxRegistrationNumberType = SaudiArabiaTaxRegistrationNumberType;
1375
+ exports.Sector = Sector;
1376
+ exports.SupplementalTaxRegistrationEntryFilterSensitiveLog = SupplementalTaxRegistrationEntryFilterSensitiveLog;
1377
+ exports.SupplementalTaxRegistrationFilterSensitiveLog = SupplementalTaxRegistrationFilterSensitiveLog;
1378
+ exports.SupplementalTaxRegistrationType = SupplementalTaxRegistrationType;
1379
+ exports.TaxRegistrationEntryFilterSensitiveLog = TaxRegistrationEntryFilterSensitiveLog;
1380
+ exports.TaxRegistrationFilterSensitiveLog = TaxRegistrationFilterSensitiveLog;
1381
+ exports.TaxRegistrationNumberType = TaxRegistrationNumberType;
1382
+ exports.TaxRegistrationStatus = TaxRegistrationStatus;
1383
+ exports.TaxRegistrationType = TaxRegistrationType;
1384
+ exports.TaxRegistrationWithJurisdictionFilterSensitiveLog = TaxRegistrationWithJurisdictionFilterSensitiveLog;
1385
+ exports.TaxSettings = TaxSettings;
1386
+ exports.TaxSettingsClient = TaxSettingsClient;
1387
+ exports.TaxSettingsServiceException = TaxSettingsServiceException;
1388
+ exports.UkraineTrnType = UkraineTrnType;
1389
+ exports.UzbekistanTaxRegistrationNumberType = UzbekistanTaxRegistrationNumberType;
1390
+ exports.ValidationException = ValidationException;
1391
+ exports.ValidationExceptionErrorCode = ValidationExceptionErrorCode;
1392
+ exports.paginateListSupplementalTaxRegistrations = paginateListSupplementalTaxRegistrations;
1393
+ exports.paginateListTaxExemptions = paginateListTaxExemptions;
1394
+ exports.paginateListTaxRegistrations = paginateListTaxRegistrations;