@aws-sdk/client-taxsettings 3.693.0 → 3.699.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 (55) hide show
  1. package/README.md +55 -7
  2. package/dist-cjs/TaxSettings.js +12 -0
  3. package/dist-cjs/commands/BatchGetTaxExemptionsCommand.js +26 -0
  4. package/dist-cjs/commands/GetTaxExemptionTypesCommand.js +26 -0
  5. package/dist-cjs/commands/GetTaxInheritanceCommand.js +26 -0
  6. package/dist-cjs/commands/ListTaxExemptionsCommand.js +26 -0
  7. package/dist-cjs/commands/PutTaxExemptionCommand.js +26 -0
  8. package/dist-cjs/commands/PutTaxInheritanceCommand.js +26 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/models/models_0.js +50 -1
  11. package/dist-cjs/pagination/ListTaxExemptionsPaginator.js +7 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +296 -3
  14. package/dist-es/TaxSettings.js +12 -0
  15. package/dist-es/commands/BatchGetTaxExemptionsCommand.js +22 -0
  16. package/dist-es/commands/GetTaxExemptionTypesCommand.js +22 -0
  17. package/dist-es/commands/GetTaxInheritanceCommand.js +22 -0
  18. package/dist-es/commands/ListTaxExemptionsCommand.js +22 -0
  19. package/dist-es/commands/PutTaxExemptionCommand.js +22 -0
  20. package/dist-es/commands/PutTaxInheritanceCommand.js +22 -0
  21. package/dist-es/commands/index.js +6 -0
  22. package/dist-es/models/models_0.js +46 -0
  23. package/dist-es/pagination/ListTaxExemptionsPaginator.js +4 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +285 -4
  26. package/dist-types/TaxSettings.d.ts +46 -0
  27. package/dist-types/TaxSettingsClient.d.ts +8 -2
  28. package/dist-types/commands/BatchGetTaxExemptionsCommand.d.ts +115 -0
  29. package/dist-types/commands/BatchPutTaxRegistrationCommand.d.ts +4 -0
  30. package/dist-types/commands/GetTaxExemptionTypesCommand.d.ts +91 -0
  31. package/dist-types/commands/GetTaxInheritanceCommand.d.ts +80 -0
  32. package/dist-types/commands/GetTaxRegistrationDocumentCommand.d.ts +1 -0
  33. package/dist-types/commands/ListTaxExemptionsCommand.d.ts +112 -0
  34. package/dist-types/commands/PutTaxExemptionCommand.d.ts +105 -0
  35. package/dist-types/commands/PutTaxInheritanceCommand.d.ts +83 -0
  36. package/dist-types/commands/PutTaxRegistrationCommand.d.ts +4 -0
  37. package/dist-types/commands/index.d.ts +6 -0
  38. package/dist-types/models/models_0.d.ts +404 -19
  39. package/dist-types/pagination/ListTaxExemptionsPaginator.d.ts +7 -0
  40. package/dist-types/pagination/index.d.ts +1 -0
  41. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  42. package/dist-types/ts3.4/TaxSettings.d.ts +106 -0
  43. package/dist-types/ts3.4/TaxSettingsClient.d.ts +36 -0
  44. package/dist-types/ts3.4/commands/BatchGetTaxExemptionsCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/GetTaxExemptionTypesCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/GetTaxInheritanceCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/ListTaxExemptionsCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/PutTaxExemptionCommand.d.ts +50 -0
  49. package/dist-types/ts3.4/commands/PutTaxInheritanceCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +117 -10
  52. package/dist-types/ts3.4/pagination/ListTaxExemptionsPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  55. package/package.json +35 -35
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListSupplementalTaxRegistrationsPaginator";
3
+ export * from "./ListTaxExemptionsPaginator";
3
4
  export * from "./ListTaxRegistrationsPaginator";
@@ -1,7 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { AccessDeniedException, AttachmentUploadException, CaseCreationLimitExceededException, ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
5
  import { TaxSettingsServiceException as __BaseException } from "../models/TaxSettingsServiceException";
6
6
  export const se_BatchDeleteTaxRegistrationCommand = async (input, context) => {
7
7
  const b = rb(input, context);
@@ -16,6 +16,19 @@ export const se_BatchDeleteTaxRegistrationCommand = async (input, context) => {
16
16
  b.m("POST").h(headers).b(body);
17
17
  return b.build();
18
18
  };
19
+ export const se_BatchGetTaxExemptionsCommand = async (input, context) => {
20
+ const b = rb(input, context);
21
+ const headers = {
22
+ "content-type": "application/json",
23
+ };
24
+ b.bp("/BatchGetTaxExemptions");
25
+ let body;
26
+ body = JSON.stringify(take(input, {
27
+ accountIds: (_) => _json(_),
28
+ }));
29
+ b.m("POST").h(headers).b(body);
30
+ return b.build();
31
+ };
19
32
  export const se_BatchPutTaxRegistrationCommand = async (input, context) => {
20
33
  const b = rb(input, context);
21
34
  const headers = {
@@ -25,7 +38,7 @@ export const se_BatchPutTaxRegistrationCommand = async (input, context) => {
25
38
  let body;
26
39
  body = JSON.stringify(take(input, {
27
40
  accountIds: (_) => _json(_),
28
- taxRegistrationEntry: (_) => _json(_),
41
+ taxRegistrationEntry: (_) => se_TaxRegistrationEntry(_, context),
29
42
  }));
30
43
  b.m("POST").h(headers).b(body);
31
44
  return b.build();
@@ -56,6 +69,22 @@ export const se_DeleteTaxRegistrationCommand = async (input, context) => {
56
69
  b.m("POST").h(headers).b(body);
57
70
  return b.build();
58
71
  };
72
+ export const se_GetTaxExemptionTypesCommand = async (input, context) => {
73
+ const b = rb(input, context);
74
+ const headers = {};
75
+ b.bp("/GetTaxExemptionTypes");
76
+ let body;
77
+ b.m("POST").h(headers).b(body);
78
+ return b.build();
79
+ };
80
+ export const se_GetTaxInheritanceCommand = async (input, context) => {
81
+ const b = rb(input, context);
82
+ const headers = {};
83
+ b.bp("/GetTaxInheritance");
84
+ let body;
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
87
+ };
59
88
  export const se_GetTaxRegistrationCommand = async (input, context) => {
60
89
  const b = rb(input, context);
61
90
  const headers = {
@@ -97,6 +126,20 @@ export const se_ListSupplementalTaxRegistrationsCommand = async (input, context)
97
126
  b.m("POST").h(headers).b(body);
98
127
  return b.build();
99
128
  };
129
+ export const se_ListTaxExemptionsCommand = async (input, context) => {
130
+ const b = rb(input, context);
131
+ const headers = {
132
+ "content-type": "application/json",
133
+ };
134
+ b.bp("/ListTaxExemptions");
135
+ let body;
136
+ body = JSON.stringify(take(input, {
137
+ maxResults: [],
138
+ nextToken: [],
139
+ }));
140
+ b.m("POST").h(headers).b(body);
141
+ return b.build();
142
+ };
100
143
  export const se_ListTaxRegistrationsCommand = async (input, context) => {
101
144
  const b = rb(input, context);
102
145
  const headers = {
@@ -124,6 +167,35 @@ export const se_PutSupplementalTaxRegistrationCommand = async (input, context) =
124
167
  b.m("POST").h(headers).b(body);
125
168
  return b.build();
126
169
  };
170
+ export const se_PutTaxExemptionCommand = async (input, context) => {
171
+ const b = rb(input, context);
172
+ const headers = {
173
+ "content-type": "application/json",
174
+ };
175
+ b.bp("/PutTaxExemption");
176
+ let body;
177
+ body = JSON.stringify(take(input, {
178
+ accountIds: (_) => _json(_),
179
+ authority: (_) => _json(_),
180
+ exemptionCertificate: (_) => se_ExemptionCertificate(_, context),
181
+ exemptionType: [],
182
+ }));
183
+ b.m("POST").h(headers).b(body);
184
+ return b.build();
185
+ };
186
+ export const se_PutTaxInheritanceCommand = async (input, context) => {
187
+ const b = rb(input, context);
188
+ const headers = {
189
+ "content-type": "application/json",
190
+ };
191
+ b.bp("/PutTaxInheritance");
192
+ let body;
193
+ body = JSON.stringify(take(input, {
194
+ heritageStatus: [],
195
+ }));
196
+ b.m("POST").h(headers).b(body);
197
+ return b.build();
198
+ };
127
199
  export const se_PutTaxRegistrationCommand = async (input, context) => {
128
200
  const b = rb(input, context);
129
201
  const headers = {
@@ -133,7 +205,7 @@ export const se_PutTaxRegistrationCommand = async (input, context) => {
133
205
  let body;
134
206
  body = JSON.stringify(take(input, {
135
207
  accountId: [],
136
- taxRegistrationEntry: (_) => _json(_),
208
+ taxRegistrationEntry: (_) => se_TaxRegistrationEntry(_, context),
137
209
  }));
138
210
  b.m("POST").h(headers).b(body);
139
211
  return b.build();
@@ -152,6 +224,21 @@ export const de_BatchDeleteTaxRegistrationCommand = async (output, context) => {
152
224
  Object.assign(contents, doc);
153
225
  return contents;
154
226
  };
227
+ export const de_BatchGetTaxExemptionsCommand = async (output, context) => {
228
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
229
+ return de_CommandError(output, context);
230
+ }
231
+ const contents = map({
232
+ $metadata: deserializeMetadata(output),
233
+ });
234
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
235
+ const doc = take(data, {
236
+ failedAccounts: _json,
237
+ taxExemptionDetailsMap: (_) => de_TaxExemptionDetailsMap(_, context),
238
+ });
239
+ Object.assign(contents, doc);
240
+ return contents;
241
+ };
155
242
  export const de_BatchPutTaxRegistrationCommand = async (output, context) => {
156
243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
157
244
  return de_CommandError(output, context);
@@ -187,6 +274,34 @@ export const de_DeleteTaxRegistrationCommand = async (output, context) => {
187
274
  await collectBody(output.body, context);
188
275
  return contents;
189
276
  };
277
+ export const de_GetTaxExemptionTypesCommand = async (output, context) => {
278
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
279
+ return de_CommandError(output, context);
280
+ }
281
+ const contents = map({
282
+ $metadata: deserializeMetadata(output),
283
+ });
284
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
285
+ const doc = take(data, {
286
+ taxExemptionTypes: _json,
287
+ });
288
+ Object.assign(contents, doc);
289
+ return contents;
290
+ };
291
+ export const de_GetTaxInheritanceCommand = async (output, context) => {
292
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
293
+ return de_CommandError(output, context);
294
+ }
295
+ const contents = map({
296
+ $metadata: deserializeMetadata(output),
297
+ });
298
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
299
+ const doc = take(data, {
300
+ heritageStatus: __expectString,
301
+ });
302
+ Object.assign(contents, doc);
303
+ return contents;
304
+ };
190
305
  export const de_GetTaxRegistrationCommand = async (output, context) => {
191
306
  if (output.statusCode !== 200 && output.statusCode >= 300) {
192
307
  return de_CommandError(output, context);
@@ -211,6 +326,7 @@ export const de_GetTaxRegistrationDocumentCommand = async (output, context) => {
211
326
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
212
327
  const doc = take(data, {
213
328
  destinationFilePath: __expectString,
329
+ presignedS3Url: __expectString,
214
330
  });
215
331
  Object.assign(contents, doc);
216
332
  return contents;
@@ -230,6 +346,21 @@ export const de_ListSupplementalTaxRegistrationsCommand = async (output, context
230
346
  Object.assign(contents, doc);
231
347
  return contents;
232
348
  };
349
+ export const de_ListTaxExemptionsCommand = async (output, context) => {
350
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
351
+ return de_CommandError(output, context);
352
+ }
353
+ const contents = map({
354
+ $metadata: deserializeMetadata(output),
355
+ });
356
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
357
+ const doc = take(data, {
358
+ nextToken: __expectString,
359
+ taxExemptionDetailsMap: (_) => de_TaxExemptionDetailsMap(_, context),
360
+ });
361
+ Object.assign(contents, doc);
362
+ return contents;
363
+ };
233
364
  export const de_ListTaxRegistrationsCommand = async (output, context) => {
234
365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
235
366
  return de_CommandError(output, context);
@@ -260,6 +391,30 @@ export const de_PutSupplementalTaxRegistrationCommand = async (output, context)
260
391
  Object.assign(contents, doc);
261
392
  return contents;
262
393
  };
394
+ export const de_PutTaxExemptionCommand = async (output, context) => {
395
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
396
+ return de_CommandError(output, context);
397
+ }
398
+ const contents = map({
399
+ $metadata: deserializeMetadata(output),
400
+ });
401
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
402
+ const doc = take(data, {
403
+ caseId: __expectString,
404
+ });
405
+ Object.assign(contents, doc);
406
+ return contents;
407
+ };
408
+ export const de_PutTaxInheritanceCommand = async (output, context) => {
409
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
410
+ return de_CommandError(output, context);
411
+ }
412
+ const contents = map({
413
+ $metadata: deserializeMetadata(output),
414
+ });
415
+ await collectBody(output.body, context);
416
+ return contents;
417
+ };
263
418
  export const de_PutTaxRegistrationCommand = async (output, context) => {
264
419
  if (output.statusCode !== 200 && output.statusCode >= 300) {
265
420
  return de_CommandError(output, context);
@@ -293,6 +448,15 @@ const de_CommandError = async (output, context) => {
293
448
  case "ResourceNotFoundException":
294
449
  case "com.amazonaws.taxsettings#ResourceNotFoundException":
295
450
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
451
+ case "AccessDeniedException":
452
+ case "com.amazonaws.taxsettings#AccessDeniedException":
453
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
454
+ case "AttachmentUploadException":
455
+ case "com.amazonaws.taxsettings#AttachmentUploadException":
456
+ throw await de_AttachmentUploadExceptionRes(parsedOutput, context);
457
+ case "CaseCreationLimitExceededException":
458
+ case "com.amazonaws.taxsettings#CaseCreationLimitExceededException":
459
+ throw await de_CaseCreationLimitExceededExceptionRes(parsedOutput, context);
296
460
  default:
297
461
  const parsedBody = parsedOutput.body;
298
462
  return throwDefaultError({
@@ -303,6 +467,45 @@ const de_CommandError = async (output, context) => {
303
467
  }
304
468
  };
305
469
  const throwDefaultError = withBaseException(__BaseException);
470
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
471
+ const contents = map({});
472
+ const data = parsedOutput.body;
473
+ const doc = take(data, {
474
+ message: __expectString,
475
+ });
476
+ Object.assign(contents, doc);
477
+ const exception = new AccessDeniedException({
478
+ $metadata: deserializeMetadata(parsedOutput),
479
+ ...contents,
480
+ });
481
+ return __decorateServiceException(exception, parsedOutput.body);
482
+ };
483
+ const de_AttachmentUploadExceptionRes = async (parsedOutput, context) => {
484
+ const contents = map({});
485
+ const data = parsedOutput.body;
486
+ const doc = take(data, {
487
+ message: __expectString,
488
+ });
489
+ Object.assign(contents, doc);
490
+ const exception = new AttachmentUploadException({
491
+ $metadata: deserializeMetadata(parsedOutput),
492
+ ...contents,
493
+ });
494
+ return __decorateServiceException(exception, parsedOutput.body);
495
+ };
496
+ const de_CaseCreationLimitExceededExceptionRes = async (parsedOutput, context) => {
497
+ const contents = map({});
498
+ const data = parsedOutput.body;
499
+ const doc = take(data, {
500
+ message: __expectString,
501
+ });
502
+ Object.assign(contents, doc);
503
+ const exception = new CaseCreationLimitExceededException({
504
+ $metadata: deserializeMetadata(parsedOutput),
505
+ ...contents,
506
+ });
507
+ return __decorateServiceException(exception, parsedOutput.body);
508
+ };
306
509
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
307
510
  const contents = map({});
308
511
  const data = parsedOutput.body;
@@ -360,6 +563,84 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
360
563
  });
361
564
  return __decorateServiceException(exception, parsedOutput.body);
362
565
  };
566
+ const se_ExemptionCertificate = (input, context) => {
567
+ return take(input, {
568
+ documentFile: context.base64Encoder,
569
+ documentName: [],
570
+ });
571
+ };
572
+ const se_TaxRegistrationDocFile = (input, context) => {
573
+ return take(input, {
574
+ fileContent: context.base64Encoder,
575
+ fileName: [],
576
+ });
577
+ };
578
+ const se_TaxRegistrationDocument = (input, context) => {
579
+ return take(input, {
580
+ file: (_) => se_TaxRegistrationDocFile(_, context),
581
+ s3Location: _json,
582
+ });
583
+ };
584
+ const se_TaxRegistrationDocuments = (input, context) => {
585
+ return input
586
+ .filter((e) => e != null)
587
+ .map((entry) => {
588
+ return se_TaxRegistrationDocument(entry, context);
589
+ });
590
+ };
591
+ const se_TaxRegistrationEntry = (input, context) => {
592
+ return take(input, {
593
+ additionalTaxInformation: _json,
594
+ certifiedEmailId: [],
595
+ legalAddress: _json,
596
+ legalName: [],
597
+ registrationId: [],
598
+ registrationType: [],
599
+ sector: [],
600
+ verificationDetails: (_) => se_VerificationDetails(_, context),
601
+ });
602
+ };
603
+ const se_VerificationDetails = (input, context) => {
604
+ return take(input, {
605
+ dateOfBirth: [],
606
+ taxRegistrationDocuments: (_) => se_TaxRegistrationDocuments(_, context),
607
+ });
608
+ };
609
+ const de_TaxExemption = (output, context) => {
610
+ return take(output, {
611
+ authority: _json,
612
+ effectiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
613
+ expirationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
614
+ status: __expectString,
615
+ systemEffectiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
616
+ taxExemptionType: _json,
617
+ });
618
+ };
619
+ const de_TaxExemptionDetails = (output, context) => {
620
+ return take(output, {
621
+ heritageObtainedDetails: __expectBoolean,
622
+ heritageObtainedParentEntity: __expectString,
623
+ heritageObtainedReason: __expectString,
624
+ taxExemptions: (_) => de_TaxExemptions(_, context),
625
+ });
626
+ };
627
+ const de_TaxExemptionDetailsMap = (output, context) => {
628
+ return Object.entries(output).reduce((acc, [key, value]) => {
629
+ if (value === null) {
630
+ return acc;
631
+ }
632
+ acc[key] = de_TaxExemptionDetails(value, context);
633
+ return acc;
634
+ }, {});
635
+ };
636
+ const de_TaxExemptions = (output, context) => {
637
+ const retVal = (output || [])
638
+ .filter((e) => e != null)
639
+ .map((entry) => {
640
+ return de_TaxExemption(entry, context);
641
+ });
642
+ return retVal;
643
+ };
363
644
  const deserializeMetadata = (output) => ({
364
645
  httpStatusCode: output.statusCode,
365
646
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1,13 +1,19 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BatchDeleteTaxRegistrationCommandInput, BatchDeleteTaxRegistrationCommandOutput } from "./commands/BatchDeleteTaxRegistrationCommand";
3
+ import { BatchGetTaxExemptionsCommandInput, BatchGetTaxExemptionsCommandOutput } from "./commands/BatchGetTaxExemptionsCommand";
3
4
  import { BatchPutTaxRegistrationCommandInput, BatchPutTaxRegistrationCommandOutput } from "./commands/BatchPutTaxRegistrationCommand";
4
5
  import { DeleteSupplementalTaxRegistrationCommandInput, DeleteSupplementalTaxRegistrationCommandOutput } from "./commands/DeleteSupplementalTaxRegistrationCommand";
5
6
  import { DeleteTaxRegistrationCommandInput, DeleteTaxRegistrationCommandOutput } from "./commands/DeleteTaxRegistrationCommand";
7
+ import { GetTaxExemptionTypesCommandInput, GetTaxExemptionTypesCommandOutput } from "./commands/GetTaxExemptionTypesCommand";
8
+ import { GetTaxInheritanceCommandInput, GetTaxInheritanceCommandOutput } from "./commands/GetTaxInheritanceCommand";
6
9
  import { GetTaxRegistrationCommandInput, GetTaxRegistrationCommandOutput } from "./commands/GetTaxRegistrationCommand";
7
10
  import { GetTaxRegistrationDocumentCommandInput, GetTaxRegistrationDocumentCommandOutput } from "./commands/GetTaxRegistrationDocumentCommand";
8
11
  import { ListSupplementalTaxRegistrationsCommandInput, ListSupplementalTaxRegistrationsCommandOutput } from "./commands/ListSupplementalTaxRegistrationsCommand";
12
+ import { ListTaxExemptionsCommandInput, ListTaxExemptionsCommandOutput } from "./commands/ListTaxExemptionsCommand";
9
13
  import { ListTaxRegistrationsCommandInput, ListTaxRegistrationsCommandOutput } from "./commands/ListTaxRegistrationsCommand";
10
14
  import { PutSupplementalTaxRegistrationCommandInput, PutSupplementalTaxRegistrationCommandOutput } from "./commands/PutSupplementalTaxRegistrationCommand";
15
+ import { PutTaxExemptionCommandInput, PutTaxExemptionCommandOutput } from "./commands/PutTaxExemptionCommand";
16
+ import { PutTaxInheritanceCommandInput, PutTaxInheritanceCommandOutput } from "./commands/PutTaxInheritanceCommand";
11
17
  import { PutTaxRegistrationCommandInput, PutTaxRegistrationCommandOutput } from "./commands/PutTaxRegistrationCommand";
12
18
  import { TaxSettingsClient } from "./TaxSettingsClient";
13
19
  export interface TaxSettings {
@@ -17,6 +23,12 @@ export interface TaxSettings {
17
23
  batchDeleteTaxRegistration(args: BatchDeleteTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteTaxRegistrationCommandOutput>;
18
24
  batchDeleteTaxRegistration(args: BatchDeleteTaxRegistrationCommandInput, cb: (err: any, data?: BatchDeleteTaxRegistrationCommandOutput) => void): void;
19
25
  batchDeleteTaxRegistration(args: BatchDeleteTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteTaxRegistrationCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link BatchGetTaxExemptionsCommand}
28
+ */
29
+ batchGetTaxExemptions(args: BatchGetTaxExemptionsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetTaxExemptionsCommandOutput>;
30
+ batchGetTaxExemptions(args: BatchGetTaxExemptionsCommandInput, cb: (err: any, data?: BatchGetTaxExemptionsCommandOutput) => void): void;
31
+ batchGetTaxExemptions(args: BatchGetTaxExemptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetTaxExemptionsCommandOutput) => void): void;
20
32
  /**
21
33
  * @see {@link BatchPutTaxRegistrationCommand}
22
34
  */
@@ -36,6 +48,20 @@ export interface TaxSettings {
36
48
  deleteTaxRegistration(args: DeleteTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTaxRegistrationCommandOutput>;
37
49
  deleteTaxRegistration(args: DeleteTaxRegistrationCommandInput, cb: (err: any, data?: DeleteTaxRegistrationCommandOutput) => void): void;
38
50
  deleteTaxRegistration(args: DeleteTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTaxRegistrationCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link GetTaxExemptionTypesCommand}
53
+ */
54
+ getTaxExemptionTypes(): Promise<GetTaxExemptionTypesCommandOutput>;
55
+ getTaxExemptionTypes(args: GetTaxExemptionTypesCommandInput, options?: __HttpHandlerOptions): Promise<GetTaxExemptionTypesCommandOutput>;
56
+ getTaxExemptionTypes(args: GetTaxExemptionTypesCommandInput, cb: (err: any, data?: GetTaxExemptionTypesCommandOutput) => void): void;
57
+ getTaxExemptionTypes(args: GetTaxExemptionTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTaxExemptionTypesCommandOutput) => void): void;
58
+ /**
59
+ * @see {@link GetTaxInheritanceCommand}
60
+ */
61
+ getTaxInheritance(): Promise<GetTaxInheritanceCommandOutput>;
62
+ getTaxInheritance(args: GetTaxInheritanceCommandInput, options?: __HttpHandlerOptions): Promise<GetTaxInheritanceCommandOutput>;
63
+ getTaxInheritance(args: GetTaxInheritanceCommandInput, cb: (err: any, data?: GetTaxInheritanceCommandOutput) => void): void;
64
+ getTaxInheritance(args: GetTaxInheritanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTaxInheritanceCommandOutput) => void): void;
39
65
  /**
40
66
  * @see {@link GetTaxRegistrationCommand}
41
67
  */
@@ -56,6 +82,13 @@ export interface TaxSettings {
56
82
  listSupplementalTaxRegistrations(args: ListSupplementalTaxRegistrationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSupplementalTaxRegistrationsCommandOutput>;
57
83
  listSupplementalTaxRegistrations(args: ListSupplementalTaxRegistrationsCommandInput, cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void): void;
58
84
  listSupplementalTaxRegistrations(args: ListSupplementalTaxRegistrationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void): void;
85
+ /**
86
+ * @see {@link ListTaxExemptionsCommand}
87
+ */
88
+ listTaxExemptions(): Promise<ListTaxExemptionsCommandOutput>;
89
+ listTaxExemptions(args: ListTaxExemptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListTaxExemptionsCommandOutput>;
90
+ listTaxExemptions(args: ListTaxExemptionsCommandInput, cb: (err: any, data?: ListTaxExemptionsCommandOutput) => void): void;
91
+ listTaxExemptions(args: ListTaxExemptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTaxExemptionsCommandOutput) => void): void;
59
92
  /**
60
93
  * @see {@link ListTaxRegistrationsCommand}
61
94
  */
@@ -69,6 +102,19 @@ export interface TaxSettings {
69
102
  putSupplementalTaxRegistration(args: PutSupplementalTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<PutSupplementalTaxRegistrationCommandOutput>;
70
103
  putSupplementalTaxRegistration(args: PutSupplementalTaxRegistrationCommandInput, cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void): void;
71
104
  putSupplementalTaxRegistration(args: PutSupplementalTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link PutTaxExemptionCommand}
107
+ */
108
+ putTaxExemption(args: PutTaxExemptionCommandInput, options?: __HttpHandlerOptions): Promise<PutTaxExemptionCommandOutput>;
109
+ putTaxExemption(args: PutTaxExemptionCommandInput, cb: (err: any, data?: PutTaxExemptionCommandOutput) => void): void;
110
+ putTaxExemption(args: PutTaxExemptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutTaxExemptionCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link PutTaxInheritanceCommand}
113
+ */
114
+ putTaxInheritance(): Promise<PutTaxInheritanceCommandOutput>;
115
+ putTaxInheritance(args: PutTaxInheritanceCommandInput, options?: __HttpHandlerOptions): Promise<PutTaxInheritanceCommandOutput>;
116
+ putTaxInheritance(args: PutTaxInheritanceCommandInput, cb: (err: any, data?: PutTaxInheritanceCommandOutput) => void): void;
117
+ putTaxInheritance(args: PutTaxInheritanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutTaxInheritanceCommandOutput) => void): void;
72
118
  /**
73
119
  * @see {@link PutTaxRegistrationCommand}
74
120
  */
@@ -8,14 +8,20 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { BatchDeleteTaxRegistrationCommandInput, BatchDeleteTaxRegistrationCommandOutput } from "./commands/BatchDeleteTaxRegistrationCommand";
11
+ import { BatchGetTaxExemptionsCommandInput, BatchGetTaxExemptionsCommandOutput } from "./commands/BatchGetTaxExemptionsCommand";
11
12
  import { BatchPutTaxRegistrationCommandInput, BatchPutTaxRegistrationCommandOutput } from "./commands/BatchPutTaxRegistrationCommand";
12
13
  import { DeleteSupplementalTaxRegistrationCommandInput, DeleteSupplementalTaxRegistrationCommandOutput } from "./commands/DeleteSupplementalTaxRegistrationCommand";
13
14
  import { DeleteTaxRegistrationCommandInput, DeleteTaxRegistrationCommandOutput } from "./commands/DeleteTaxRegistrationCommand";
15
+ import { GetTaxExemptionTypesCommandInput, GetTaxExemptionTypesCommandOutput } from "./commands/GetTaxExemptionTypesCommand";
16
+ import { GetTaxInheritanceCommandInput, GetTaxInheritanceCommandOutput } from "./commands/GetTaxInheritanceCommand";
14
17
  import { GetTaxRegistrationCommandInput, GetTaxRegistrationCommandOutput } from "./commands/GetTaxRegistrationCommand";
15
18
  import { GetTaxRegistrationDocumentCommandInput, GetTaxRegistrationDocumentCommandOutput } from "./commands/GetTaxRegistrationDocumentCommand";
16
19
  import { ListSupplementalTaxRegistrationsCommandInput, ListSupplementalTaxRegistrationsCommandOutput } from "./commands/ListSupplementalTaxRegistrationsCommand";
20
+ import { ListTaxExemptionsCommandInput, ListTaxExemptionsCommandOutput } from "./commands/ListTaxExemptionsCommand";
17
21
  import { ListTaxRegistrationsCommandInput, ListTaxRegistrationsCommandOutput } from "./commands/ListTaxRegistrationsCommand";
18
22
  import { PutSupplementalTaxRegistrationCommandInput, PutSupplementalTaxRegistrationCommandOutput } from "./commands/PutSupplementalTaxRegistrationCommand";
23
+ import { PutTaxExemptionCommandInput, PutTaxExemptionCommandOutput } from "./commands/PutTaxExemptionCommand";
24
+ import { PutTaxInheritanceCommandInput, PutTaxInheritanceCommandOutput } from "./commands/PutTaxInheritanceCommand";
19
25
  import { PutTaxRegistrationCommandInput, PutTaxRegistrationCommandOutput } from "./commands/PutTaxRegistrationCommand";
20
26
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
21
27
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -23,11 +29,11 @@ export { __Client };
23
29
  /**
24
30
  * @public
25
31
  */
26
- export type ServiceInputTypes = BatchDeleteTaxRegistrationCommandInput | BatchPutTaxRegistrationCommandInput | DeleteSupplementalTaxRegistrationCommandInput | DeleteTaxRegistrationCommandInput | GetTaxRegistrationCommandInput | GetTaxRegistrationDocumentCommandInput | ListSupplementalTaxRegistrationsCommandInput | ListTaxRegistrationsCommandInput | PutSupplementalTaxRegistrationCommandInput | PutTaxRegistrationCommandInput;
32
+ export type ServiceInputTypes = BatchDeleteTaxRegistrationCommandInput | BatchGetTaxExemptionsCommandInput | BatchPutTaxRegistrationCommandInput | DeleteSupplementalTaxRegistrationCommandInput | DeleteTaxRegistrationCommandInput | GetTaxExemptionTypesCommandInput | GetTaxInheritanceCommandInput | GetTaxRegistrationCommandInput | GetTaxRegistrationDocumentCommandInput | ListSupplementalTaxRegistrationsCommandInput | ListTaxExemptionsCommandInput | ListTaxRegistrationsCommandInput | PutSupplementalTaxRegistrationCommandInput | PutTaxExemptionCommandInput | PutTaxInheritanceCommandInput | PutTaxRegistrationCommandInput;
27
33
  /**
28
34
  * @public
29
35
  */
30
- export type ServiceOutputTypes = BatchDeleteTaxRegistrationCommandOutput | BatchPutTaxRegistrationCommandOutput | DeleteSupplementalTaxRegistrationCommandOutput | DeleteTaxRegistrationCommandOutput | GetTaxRegistrationCommandOutput | GetTaxRegistrationDocumentCommandOutput | ListSupplementalTaxRegistrationsCommandOutput | ListTaxRegistrationsCommandOutput | PutSupplementalTaxRegistrationCommandOutput | PutTaxRegistrationCommandOutput;
36
+ export type ServiceOutputTypes = BatchDeleteTaxRegistrationCommandOutput | BatchGetTaxExemptionsCommandOutput | BatchPutTaxRegistrationCommandOutput | DeleteSupplementalTaxRegistrationCommandOutput | DeleteTaxRegistrationCommandOutput | GetTaxExemptionTypesCommandOutput | GetTaxInheritanceCommandOutput | GetTaxRegistrationCommandOutput | GetTaxRegistrationDocumentCommandOutput | ListSupplementalTaxRegistrationsCommandOutput | ListTaxExemptionsCommandOutput | ListTaxRegistrationsCommandOutput | PutSupplementalTaxRegistrationCommandOutput | PutTaxExemptionCommandOutput | PutTaxInheritanceCommandOutput | PutTaxRegistrationCommandOutput;
31
37
  /**
32
38
  * @public
33
39
  */
@@ -0,0 +1,115 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchGetTaxExemptionsRequest, BatchGetTaxExemptionsResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TaxSettingsClientResolvedConfig } from "../TaxSettingsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchGetTaxExemptionsCommand}.
14
+ */
15
+ export interface BatchGetTaxExemptionsCommandInput extends BatchGetTaxExemptionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchGetTaxExemptionsCommand}.
21
+ */
22
+ export interface BatchGetTaxExemptionsCommandOutput extends BatchGetTaxExemptionsResponse, __MetadataBearer {
23
+ }
24
+ declare const BatchGetTaxExemptionsCommand_base: {
25
+ new (input: BatchGetTaxExemptionsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetTaxExemptionsCommandInput, BatchGetTaxExemptionsCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: BatchGetTaxExemptionsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetTaxExemptionsCommandInput, BatchGetTaxExemptionsCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Get the active tax exemptions for a given list of accounts.
31
+ * </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { TaxSettingsClient, BatchGetTaxExemptionsCommand } from "@aws-sdk/client-taxsettings"; // ES Modules import
36
+ * // const { TaxSettingsClient, BatchGetTaxExemptionsCommand } = require("@aws-sdk/client-taxsettings"); // CommonJS import
37
+ * const client = new TaxSettingsClient(config);
38
+ * const input = { // BatchGetTaxExemptionsRequest
39
+ * accountIds: [ // AccountIds // required
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new BatchGetTaxExemptionsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // BatchGetTaxExemptionsResponse
46
+ * // taxExemptionDetailsMap: { // TaxExemptionDetailsMap
47
+ * // "<keys>": { // TaxExemptionDetails
48
+ * // taxExemptions: [ // TaxExemptions
49
+ * // { // TaxExemption
50
+ * // authority: { // Authority
51
+ * // country: "STRING_VALUE", // required
52
+ * // state: "STRING_VALUE",
53
+ * // },
54
+ * // taxExemptionType: { // TaxExemptionType
55
+ * // displayName: "STRING_VALUE",
56
+ * // description: "STRING_VALUE",
57
+ * // applicableJurisdictions: [ // Authorities
58
+ * // {
59
+ * // country: "STRING_VALUE", // required
60
+ * // state: "STRING_VALUE",
61
+ * // },
62
+ * // ],
63
+ * // },
64
+ * // effectiveDate: new Date("TIMESTAMP"),
65
+ * // expirationDate: new Date("TIMESTAMP"),
66
+ * // systemEffectiveDate: new Date("TIMESTAMP"),
67
+ * // status: "None" || "Valid" || "Expired" || "Pending",
68
+ * // },
69
+ * // ],
70
+ * // heritageObtainedDetails: true || false,
71
+ * // heritageObtainedParentEntity: "STRING_VALUE",
72
+ * // heritageObtainedReason: "STRING_VALUE",
73
+ * // },
74
+ * // },
75
+ * // failedAccounts: [ // AccountIds
76
+ * // "STRING_VALUE",
77
+ * // ],
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param BatchGetTaxExemptionsCommandInput - {@link BatchGetTaxExemptionsCommandInput}
83
+ * @returns {@link BatchGetTaxExemptionsCommandOutput}
84
+ * @see {@link BatchGetTaxExemptionsCommandInput} for command's `input` shape.
85
+ * @see {@link BatchGetTaxExemptionsCommandOutput} for command's `response` shape.
86
+ * @see {@link TaxSettingsClientResolvedConfig | config} for TaxSettingsClient's `config` shape.
87
+ *
88
+ * @throws {@link InternalServerException} (server fault)
89
+ * <p>The exception thrown when an unexpected error occurs when processing a request.</p>
90
+ *
91
+ * @throws {@link ResourceNotFoundException} (client fault)
92
+ * <p>The exception thrown when the input doesn't have a resource associated to it.</p>
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * <p>The exception when the input doesn't pass validation for at least one of the input
96
+ * parameters. </p>
97
+ *
98
+ * @throws {@link TaxSettingsServiceException}
99
+ * <p>Base exception class for all service exceptions from TaxSettings service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class BatchGetTaxExemptionsCommand extends BatchGetTaxExemptionsCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: BatchGetTaxExemptionsRequest;
108
+ output: BatchGetTaxExemptionsResponse;
109
+ };
110
+ sdk: {
111
+ input: BatchGetTaxExemptionsCommandInput;
112
+ output: BatchGetTaxExemptionsCommandOutput;
113
+ };
114
+ };
115
+ }
@@ -304,6 +304,10 @@ declare const BatchPutTaxRegistrationCommand_base: {
304
304
  * bucket: "STRING_VALUE", // required
305
305
  * key: "STRING_VALUE", // required
306
306
  * },
307
+ * file: { // TaxRegistrationDocFile
308
+ * fileName: "STRING_VALUE", // required
309
+ * fileContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
310
+ * },
307
311
  * },
308
312
  * ],
309
313
  * },