@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.
- package/README.md +55 -7
- package/dist-cjs/TaxSettings.js +12 -0
- package/dist-cjs/commands/BatchGetTaxExemptionsCommand.js +26 -0
- package/dist-cjs/commands/GetTaxExemptionTypesCommand.js +26 -0
- package/dist-cjs/commands/GetTaxInheritanceCommand.js +26 -0
- package/dist-cjs/commands/ListTaxExemptionsCommand.js +26 -0
- package/dist-cjs/commands/PutTaxExemptionCommand.js +26 -0
- package/dist-cjs/commands/PutTaxInheritanceCommand.js +26 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +50 -1
- package/dist-cjs/pagination/ListTaxExemptionsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +296 -3
- package/dist-es/TaxSettings.js +12 -0
- package/dist-es/commands/BatchGetTaxExemptionsCommand.js +22 -0
- package/dist-es/commands/GetTaxExemptionTypesCommand.js +22 -0
- package/dist-es/commands/GetTaxInheritanceCommand.js +22 -0
- package/dist-es/commands/ListTaxExemptionsCommand.js +22 -0
- package/dist-es/commands/PutTaxExemptionCommand.js +22 -0
- package/dist-es/commands/PutTaxInheritanceCommand.js +22 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +46 -0
- package/dist-es/pagination/ListTaxExemptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +285 -4
- package/dist-types/TaxSettings.d.ts +46 -0
- package/dist-types/TaxSettingsClient.d.ts +8 -2
- package/dist-types/commands/BatchGetTaxExemptionsCommand.d.ts +115 -0
- package/dist-types/commands/BatchPutTaxRegistrationCommand.d.ts +4 -0
- package/dist-types/commands/GetTaxExemptionTypesCommand.d.ts +91 -0
- package/dist-types/commands/GetTaxInheritanceCommand.d.ts +80 -0
- package/dist-types/commands/GetTaxRegistrationDocumentCommand.d.ts +1 -0
- package/dist-types/commands/ListTaxExemptionsCommand.d.ts +112 -0
- package/dist-types/commands/PutTaxExemptionCommand.d.ts +105 -0
- package/dist-types/commands/PutTaxInheritanceCommand.d.ts +83 -0
- package/dist-types/commands/PutTaxRegistrationCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +404 -19
- package/dist-types/pagination/ListTaxExemptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/TaxSettings.d.ts +106 -0
- package/dist-types/ts3.4/TaxSettingsClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/BatchGetTaxExemptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTaxExemptionTypesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTaxInheritanceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTaxExemptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutTaxExemptionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/PutTaxInheritanceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +117 -10
- package/dist-types/ts3.4/pagination/ListTaxExemptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +35 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_PutTaxRegistrationCommand = exports.de_PutSupplementalTaxRegistrationCommand = exports.de_ListTaxRegistrationsCommand = exports.de_ListSupplementalTaxRegistrationsCommand = exports.de_GetTaxRegistrationDocumentCommand = exports.de_GetTaxRegistrationCommand = exports.de_DeleteTaxRegistrationCommand = exports.de_DeleteSupplementalTaxRegistrationCommand = exports.de_BatchPutTaxRegistrationCommand = exports.de_BatchDeleteTaxRegistrationCommand = exports.se_PutTaxRegistrationCommand = exports.se_PutSupplementalTaxRegistrationCommand = exports.se_ListTaxRegistrationsCommand = exports.se_ListSupplementalTaxRegistrationsCommand = exports.se_GetTaxRegistrationDocumentCommand = exports.se_GetTaxRegistrationCommand = exports.se_DeleteTaxRegistrationCommand = exports.se_DeleteSupplementalTaxRegistrationCommand = exports.se_BatchPutTaxRegistrationCommand = exports.se_BatchDeleteTaxRegistrationCommand = void 0;
|
|
3
|
+
exports.de_PutTaxRegistrationCommand = exports.de_PutTaxInheritanceCommand = exports.de_PutTaxExemptionCommand = exports.de_PutSupplementalTaxRegistrationCommand = exports.de_ListTaxRegistrationsCommand = exports.de_ListTaxExemptionsCommand = exports.de_ListSupplementalTaxRegistrationsCommand = exports.de_GetTaxRegistrationDocumentCommand = exports.de_GetTaxRegistrationCommand = exports.de_GetTaxInheritanceCommand = exports.de_GetTaxExemptionTypesCommand = exports.de_DeleteTaxRegistrationCommand = exports.de_DeleteSupplementalTaxRegistrationCommand = exports.de_BatchPutTaxRegistrationCommand = exports.de_BatchGetTaxExemptionsCommand = exports.de_BatchDeleteTaxRegistrationCommand = exports.se_PutTaxRegistrationCommand = exports.se_PutTaxInheritanceCommand = exports.se_PutTaxExemptionCommand = exports.se_PutSupplementalTaxRegistrationCommand = exports.se_ListTaxRegistrationsCommand = exports.se_ListTaxExemptionsCommand = exports.se_ListSupplementalTaxRegistrationsCommand = exports.se_GetTaxRegistrationDocumentCommand = exports.se_GetTaxRegistrationCommand = exports.se_GetTaxInheritanceCommand = exports.se_GetTaxExemptionTypesCommand = exports.se_DeleteTaxRegistrationCommand = exports.se_DeleteSupplementalTaxRegistrationCommand = exports.se_BatchPutTaxRegistrationCommand = exports.se_BatchGetTaxExemptionsCommand = exports.se_BatchDeleteTaxRegistrationCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
5
|
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -20,6 +20,20 @@ const se_BatchDeleteTaxRegistrationCommand = async (input, context) => {
|
|
|
20
20
|
return b.build();
|
|
21
21
|
};
|
|
22
22
|
exports.se_BatchDeleteTaxRegistrationCommand = se_BatchDeleteTaxRegistrationCommand;
|
|
23
|
+
const se_BatchGetTaxExemptionsCommand = async (input, context) => {
|
|
24
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/json",
|
|
27
|
+
};
|
|
28
|
+
b.bp("/BatchGetTaxExemptions");
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
31
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
32
|
+
}));
|
|
33
|
+
b.m("POST").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
35
|
+
};
|
|
36
|
+
exports.se_BatchGetTaxExemptionsCommand = se_BatchGetTaxExemptionsCommand;
|
|
23
37
|
const se_BatchPutTaxRegistrationCommand = async (input, context) => {
|
|
24
38
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
25
39
|
const headers = {
|
|
@@ -29,7 +43,7 @@ const se_BatchPutTaxRegistrationCommand = async (input, context) => {
|
|
|
29
43
|
let body;
|
|
30
44
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
31
45
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
32
|
-
taxRegistrationEntry: (_) => (
|
|
46
|
+
taxRegistrationEntry: (_) => se_TaxRegistrationEntry(_, context),
|
|
33
47
|
}));
|
|
34
48
|
b.m("POST").h(headers).b(body);
|
|
35
49
|
return b.build();
|
|
@@ -63,6 +77,24 @@ const se_DeleteTaxRegistrationCommand = async (input, context) => {
|
|
|
63
77
|
return b.build();
|
|
64
78
|
};
|
|
65
79
|
exports.se_DeleteTaxRegistrationCommand = se_DeleteTaxRegistrationCommand;
|
|
80
|
+
const se_GetTaxExemptionTypesCommand = async (input, context) => {
|
|
81
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
82
|
+
const headers = {};
|
|
83
|
+
b.bp("/GetTaxExemptionTypes");
|
|
84
|
+
let body;
|
|
85
|
+
b.m("POST").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
87
|
+
};
|
|
88
|
+
exports.se_GetTaxExemptionTypesCommand = se_GetTaxExemptionTypesCommand;
|
|
89
|
+
const se_GetTaxInheritanceCommand = async (input, context) => {
|
|
90
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
91
|
+
const headers = {};
|
|
92
|
+
b.bp("/GetTaxInheritance");
|
|
93
|
+
let body;
|
|
94
|
+
b.m("POST").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
96
|
+
};
|
|
97
|
+
exports.se_GetTaxInheritanceCommand = se_GetTaxInheritanceCommand;
|
|
66
98
|
const se_GetTaxRegistrationCommand = async (input, context) => {
|
|
67
99
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
68
100
|
const headers = {
|
|
@@ -107,6 +139,21 @@ const se_ListSupplementalTaxRegistrationsCommand = async (input, context) => {
|
|
|
107
139
|
return b.build();
|
|
108
140
|
};
|
|
109
141
|
exports.se_ListSupplementalTaxRegistrationsCommand = se_ListSupplementalTaxRegistrationsCommand;
|
|
142
|
+
const se_ListTaxExemptionsCommand = async (input, context) => {
|
|
143
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
144
|
+
const headers = {
|
|
145
|
+
"content-type": "application/json",
|
|
146
|
+
};
|
|
147
|
+
b.bp("/ListTaxExemptions");
|
|
148
|
+
let body;
|
|
149
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
150
|
+
maxResults: [],
|
|
151
|
+
nextToken: [],
|
|
152
|
+
}));
|
|
153
|
+
b.m("POST").h(headers).b(body);
|
|
154
|
+
return b.build();
|
|
155
|
+
};
|
|
156
|
+
exports.se_ListTaxExemptionsCommand = se_ListTaxExemptionsCommand;
|
|
110
157
|
const se_ListTaxRegistrationsCommand = async (input, context) => {
|
|
111
158
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
112
159
|
const headers = {
|
|
@@ -136,6 +183,37 @@ const se_PutSupplementalTaxRegistrationCommand = async (input, context) => {
|
|
|
136
183
|
return b.build();
|
|
137
184
|
};
|
|
138
185
|
exports.se_PutSupplementalTaxRegistrationCommand = se_PutSupplementalTaxRegistrationCommand;
|
|
186
|
+
const se_PutTaxExemptionCommand = async (input, context) => {
|
|
187
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
188
|
+
const headers = {
|
|
189
|
+
"content-type": "application/json",
|
|
190
|
+
};
|
|
191
|
+
b.bp("/PutTaxExemption");
|
|
192
|
+
let body;
|
|
193
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
194
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
195
|
+
authority: (_) => (0, smithy_client_1._json)(_),
|
|
196
|
+
exemptionCertificate: (_) => se_ExemptionCertificate(_, context),
|
|
197
|
+
exemptionType: [],
|
|
198
|
+
}));
|
|
199
|
+
b.m("POST").h(headers).b(body);
|
|
200
|
+
return b.build();
|
|
201
|
+
};
|
|
202
|
+
exports.se_PutTaxExemptionCommand = se_PutTaxExemptionCommand;
|
|
203
|
+
const se_PutTaxInheritanceCommand = async (input, context) => {
|
|
204
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
205
|
+
const headers = {
|
|
206
|
+
"content-type": "application/json",
|
|
207
|
+
};
|
|
208
|
+
b.bp("/PutTaxInheritance");
|
|
209
|
+
let body;
|
|
210
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
211
|
+
heritageStatus: [],
|
|
212
|
+
}));
|
|
213
|
+
b.m("POST").h(headers).b(body);
|
|
214
|
+
return b.build();
|
|
215
|
+
};
|
|
216
|
+
exports.se_PutTaxInheritanceCommand = se_PutTaxInheritanceCommand;
|
|
139
217
|
const se_PutTaxRegistrationCommand = async (input, context) => {
|
|
140
218
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
141
219
|
const headers = {
|
|
@@ -145,7 +223,7 @@ const se_PutTaxRegistrationCommand = async (input, context) => {
|
|
|
145
223
|
let body;
|
|
146
224
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
147
225
|
accountId: [],
|
|
148
|
-
taxRegistrationEntry: (_) => (
|
|
226
|
+
taxRegistrationEntry: (_) => se_TaxRegistrationEntry(_, context),
|
|
149
227
|
}));
|
|
150
228
|
b.m("POST").h(headers).b(body);
|
|
151
229
|
return b.build();
|
|
@@ -166,6 +244,22 @@ const de_BatchDeleteTaxRegistrationCommand = async (output, context) => {
|
|
|
166
244
|
return contents;
|
|
167
245
|
};
|
|
168
246
|
exports.de_BatchDeleteTaxRegistrationCommand = de_BatchDeleteTaxRegistrationCommand;
|
|
247
|
+
const de_BatchGetTaxExemptionsCommand = async (output, context) => {
|
|
248
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
+
return de_CommandError(output, context);
|
|
250
|
+
}
|
|
251
|
+
const contents = (0, smithy_client_1.map)({
|
|
252
|
+
$metadata: deserializeMetadata(output),
|
|
253
|
+
});
|
|
254
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
255
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
256
|
+
failedAccounts: smithy_client_1._json,
|
|
257
|
+
taxExemptionDetailsMap: (_) => de_TaxExemptionDetailsMap(_, context),
|
|
258
|
+
});
|
|
259
|
+
Object.assign(contents, doc);
|
|
260
|
+
return contents;
|
|
261
|
+
};
|
|
262
|
+
exports.de_BatchGetTaxExemptionsCommand = de_BatchGetTaxExemptionsCommand;
|
|
169
263
|
const de_BatchPutTaxRegistrationCommand = async (output, context) => {
|
|
170
264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
171
265
|
return de_CommandError(output, context);
|
|
@@ -204,6 +298,36 @@ const de_DeleteTaxRegistrationCommand = async (output, context) => {
|
|
|
204
298
|
return contents;
|
|
205
299
|
};
|
|
206
300
|
exports.de_DeleteTaxRegistrationCommand = de_DeleteTaxRegistrationCommand;
|
|
301
|
+
const de_GetTaxExemptionTypesCommand = async (output, context) => {
|
|
302
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
|
+
return de_CommandError(output, context);
|
|
304
|
+
}
|
|
305
|
+
const contents = (0, smithy_client_1.map)({
|
|
306
|
+
$metadata: deserializeMetadata(output),
|
|
307
|
+
});
|
|
308
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
309
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
310
|
+
taxExemptionTypes: smithy_client_1._json,
|
|
311
|
+
});
|
|
312
|
+
Object.assign(contents, doc);
|
|
313
|
+
return contents;
|
|
314
|
+
};
|
|
315
|
+
exports.de_GetTaxExemptionTypesCommand = de_GetTaxExemptionTypesCommand;
|
|
316
|
+
const de_GetTaxInheritanceCommand = async (output, context) => {
|
|
317
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
|
+
return de_CommandError(output, context);
|
|
319
|
+
}
|
|
320
|
+
const contents = (0, smithy_client_1.map)({
|
|
321
|
+
$metadata: deserializeMetadata(output),
|
|
322
|
+
});
|
|
323
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
324
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
325
|
+
heritageStatus: smithy_client_1.expectString,
|
|
326
|
+
});
|
|
327
|
+
Object.assign(contents, doc);
|
|
328
|
+
return contents;
|
|
329
|
+
};
|
|
330
|
+
exports.de_GetTaxInheritanceCommand = de_GetTaxInheritanceCommand;
|
|
207
331
|
const de_GetTaxRegistrationCommand = async (output, context) => {
|
|
208
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
209
333
|
return de_CommandError(output, context);
|
|
@@ -229,6 +353,7 @@ const de_GetTaxRegistrationDocumentCommand = async (output, context) => {
|
|
|
229
353
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
230
354
|
const doc = (0, smithy_client_1.take)(data, {
|
|
231
355
|
destinationFilePath: smithy_client_1.expectString,
|
|
356
|
+
presignedS3Url: smithy_client_1.expectString,
|
|
232
357
|
});
|
|
233
358
|
Object.assign(contents, doc);
|
|
234
359
|
return contents;
|
|
@@ -250,6 +375,22 @@ const de_ListSupplementalTaxRegistrationsCommand = async (output, context) => {
|
|
|
250
375
|
return contents;
|
|
251
376
|
};
|
|
252
377
|
exports.de_ListSupplementalTaxRegistrationsCommand = de_ListSupplementalTaxRegistrationsCommand;
|
|
378
|
+
const de_ListTaxExemptionsCommand = async (output, context) => {
|
|
379
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
|
+
return de_CommandError(output, context);
|
|
381
|
+
}
|
|
382
|
+
const contents = (0, smithy_client_1.map)({
|
|
383
|
+
$metadata: deserializeMetadata(output),
|
|
384
|
+
});
|
|
385
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
386
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
387
|
+
nextToken: smithy_client_1.expectString,
|
|
388
|
+
taxExemptionDetailsMap: (_) => de_TaxExemptionDetailsMap(_, context),
|
|
389
|
+
});
|
|
390
|
+
Object.assign(contents, doc);
|
|
391
|
+
return contents;
|
|
392
|
+
};
|
|
393
|
+
exports.de_ListTaxExemptionsCommand = de_ListTaxExemptionsCommand;
|
|
253
394
|
const de_ListTaxRegistrationsCommand = async (output, context) => {
|
|
254
395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
255
396
|
return de_CommandError(output, context);
|
|
@@ -282,6 +423,32 @@ const de_PutSupplementalTaxRegistrationCommand = async (output, context) => {
|
|
|
282
423
|
return contents;
|
|
283
424
|
};
|
|
284
425
|
exports.de_PutSupplementalTaxRegistrationCommand = de_PutSupplementalTaxRegistrationCommand;
|
|
426
|
+
const de_PutTaxExemptionCommand = async (output, context) => {
|
|
427
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
+
return de_CommandError(output, context);
|
|
429
|
+
}
|
|
430
|
+
const contents = (0, smithy_client_1.map)({
|
|
431
|
+
$metadata: deserializeMetadata(output),
|
|
432
|
+
});
|
|
433
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
434
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
435
|
+
caseId: smithy_client_1.expectString,
|
|
436
|
+
});
|
|
437
|
+
Object.assign(contents, doc);
|
|
438
|
+
return contents;
|
|
439
|
+
};
|
|
440
|
+
exports.de_PutTaxExemptionCommand = de_PutTaxExemptionCommand;
|
|
441
|
+
const de_PutTaxInheritanceCommand = async (output, context) => {
|
|
442
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
+
return de_CommandError(output, context);
|
|
444
|
+
}
|
|
445
|
+
const contents = (0, smithy_client_1.map)({
|
|
446
|
+
$metadata: deserializeMetadata(output),
|
|
447
|
+
});
|
|
448
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
449
|
+
return contents;
|
|
450
|
+
};
|
|
451
|
+
exports.de_PutTaxInheritanceCommand = de_PutTaxInheritanceCommand;
|
|
285
452
|
const de_PutTaxRegistrationCommand = async (output, context) => {
|
|
286
453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
287
454
|
return de_CommandError(output, context);
|
|
@@ -316,6 +483,15 @@ const de_CommandError = async (output, context) => {
|
|
|
316
483
|
case "ResourceNotFoundException":
|
|
317
484
|
case "com.amazonaws.taxsettings#ResourceNotFoundException":
|
|
318
485
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
486
|
+
case "AccessDeniedException":
|
|
487
|
+
case "com.amazonaws.taxsettings#AccessDeniedException":
|
|
488
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
489
|
+
case "AttachmentUploadException":
|
|
490
|
+
case "com.amazonaws.taxsettings#AttachmentUploadException":
|
|
491
|
+
throw await de_AttachmentUploadExceptionRes(parsedOutput, context);
|
|
492
|
+
case "CaseCreationLimitExceededException":
|
|
493
|
+
case "com.amazonaws.taxsettings#CaseCreationLimitExceededException":
|
|
494
|
+
throw await de_CaseCreationLimitExceededExceptionRes(parsedOutput, context);
|
|
319
495
|
default:
|
|
320
496
|
const parsedBody = parsedOutput.body;
|
|
321
497
|
return throwDefaultError({
|
|
@@ -326,6 +502,45 @@ const de_CommandError = async (output, context) => {
|
|
|
326
502
|
}
|
|
327
503
|
};
|
|
328
504
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(TaxSettingsServiceException_1.TaxSettingsServiceException);
|
|
505
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
506
|
+
const contents = (0, smithy_client_1.map)({});
|
|
507
|
+
const data = parsedOutput.body;
|
|
508
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
509
|
+
message: smithy_client_1.expectString,
|
|
510
|
+
});
|
|
511
|
+
Object.assign(contents, doc);
|
|
512
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
513
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
514
|
+
...contents,
|
|
515
|
+
});
|
|
516
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
517
|
+
};
|
|
518
|
+
const de_AttachmentUploadExceptionRes = async (parsedOutput, context) => {
|
|
519
|
+
const contents = (0, smithy_client_1.map)({});
|
|
520
|
+
const data = parsedOutput.body;
|
|
521
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
522
|
+
message: smithy_client_1.expectString,
|
|
523
|
+
});
|
|
524
|
+
Object.assign(contents, doc);
|
|
525
|
+
const exception = new models_0_1.AttachmentUploadException({
|
|
526
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
527
|
+
...contents,
|
|
528
|
+
});
|
|
529
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
530
|
+
};
|
|
531
|
+
const de_CaseCreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
532
|
+
const contents = (0, smithy_client_1.map)({});
|
|
533
|
+
const data = parsedOutput.body;
|
|
534
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
535
|
+
message: smithy_client_1.expectString,
|
|
536
|
+
});
|
|
537
|
+
Object.assign(contents, doc);
|
|
538
|
+
const exception = new models_0_1.CaseCreationLimitExceededException({
|
|
539
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
540
|
+
...contents,
|
|
541
|
+
});
|
|
542
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
543
|
+
};
|
|
329
544
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
330
545
|
const contents = (0, smithy_client_1.map)({});
|
|
331
546
|
const data = parsedOutput.body;
|
|
@@ -383,6 +598,84 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
383
598
|
});
|
|
384
599
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
385
600
|
};
|
|
601
|
+
const se_ExemptionCertificate = (input, context) => {
|
|
602
|
+
return (0, smithy_client_1.take)(input, {
|
|
603
|
+
documentFile: context.base64Encoder,
|
|
604
|
+
documentName: [],
|
|
605
|
+
});
|
|
606
|
+
};
|
|
607
|
+
const se_TaxRegistrationDocFile = (input, context) => {
|
|
608
|
+
return (0, smithy_client_1.take)(input, {
|
|
609
|
+
fileContent: context.base64Encoder,
|
|
610
|
+
fileName: [],
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
const se_TaxRegistrationDocument = (input, context) => {
|
|
614
|
+
return (0, smithy_client_1.take)(input, {
|
|
615
|
+
file: (_) => se_TaxRegistrationDocFile(_, context),
|
|
616
|
+
s3Location: smithy_client_1._json,
|
|
617
|
+
});
|
|
618
|
+
};
|
|
619
|
+
const se_TaxRegistrationDocuments = (input, context) => {
|
|
620
|
+
return input
|
|
621
|
+
.filter((e) => e != null)
|
|
622
|
+
.map((entry) => {
|
|
623
|
+
return se_TaxRegistrationDocument(entry, context);
|
|
624
|
+
});
|
|
625
|
+
};
|
|
626
|
+
const se_TaxRegistrationEntry = (input, context) => {
|
|
627
|
+
return (0, smithy_client_1.take)(input, {
|
|
628
|
+
additionalTaxInformation: smithy_client_1._json,
|
|
629
|
+
certifiedEmailId: [],
|
|
630
|
+
legalAddress: smithy_client_1._json,
|
|
631
|
+
legalName: [],
|
|
632
|
+
registrationId: [],
|
|
633
|
+
registrationType: [],
|
|
634
|
+
sector: [],
|
|
635
|
+
verificationDetails: (_) => se_VerificationDetails(_, context),
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
const se_VerificationDetails = (input, context) => {
|
|
639
|
+
return (0, smithy_client_1.take)(input, {
|
|
640
|
+
dateOfBirth: [],
|
|
641
|
+
taxRegistrationDocuments: (_) => se_TaxRegistrationDocuments(_, context),
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
const de_TaxExemption = (output, context) => {
|
|
645
|
+
return (0, smithy_client_1.take)(output, {
|
|
646
|
+
authority: smithy_client_1._json,
|
|
647
|
+
effectiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
648
|
+
expirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
649
|
+
status: smithy_client_1.expectString,
|
|
650
|
+
systemEffectiveDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
651
|
+
taxExemptionType: smithy_client_1._json,
|
|
652
|
+
});
|
|
653
|
+
};
|
|
654
|
+
const de_TaxExemptionDetails = (output, context) => {
|
|
655
|
+
return (0, smithy_client_1.take)(output, {
|
|
656
|
+
heritageObtainedDetails: smithy_client_1.expectBoolean,
|
|
657
|
+
heritageObtainedParentEntity: smithy_client_1.expectString,
|
|
658
|
+
heritageObtainedReason: smithy_client_1.expectString,
|
|
659
|
+
taxExemptions: (_) => de_TaxExemptions(_, context),
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
const de_TaxExemptionDetailsMap = (output, context) => {
|
|
663
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
664
|
+
if (value === null) {
|
|
665
|
+
return acc;
|
|
666
|
+
}
|
|
667
|
+
acc[key] = de_TaxExemptionDetails(value, context);
|
|
668
|
+
return acc;
|
|
669
|
+
}, {});
|
|
670
|
+
};
|
|
671
|
+
const de_TaxExemptions = (output, context) => {
|
|
672
|
+
const retVal = (output || [])
|
|
673
|
+
.filter((e) => e != null)
|
|
674
|
+
.map((entry) => {
|
|
675
|
+
return de_TaxExemption(entry, context);
|
|
676
|
+
});
|
|
677
|
+
return retVal;
|
|
678
|
+
};
|
|
386
679
|
const deserializeMetadata = (output) => ({
|
|
387
680
|
httpStatusCode: output.statusCode,
|
|
388
681
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/TaxSettings.js
CHANGED
|
@@ -1,25 +1,37 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BatchDeleteTaxRegistrationCommand, } from "./commands/BatchDeleteTaxRegistrationCommand";
|
|
3
|
+
import { BatchGetTaxExemptionsCommand, } from "./commands/BatchGetTaxExemptionsCommand";
|
|
3
4
|
import { BatchPutTaxRegistrationCommand, } from "./commands/BatchPutTaxRegistrationCommand";
|
|
4
5
|
import { DeleteSupplementalTaxRegistrationCommand, } from "./commands/DeleteSupplementalTaxRegistrationCommand";
|
|
5
6
|
import { DeleteTaxRegistrationCommand, } from "./commands/DeleteTaxRegistrationCommand";
|
|
7
|
+
import { GetTaxExemptionTypesCommand, } from "./commands/GetTaxExemptionTypesCommand";
|
|
8
|
+
import { GetTaxInheritanceCommand, } from "./commands/GetTaxInheritanceCommand";
|
|
6
9
|
import { GetTaxRegistrationCommand, } from "./commands/GetTaxRegistrationCommand";
|
|
7
10
|
import { GetTaxRegistrationDocumentCommand, } from "./commands/GetTaxRegistrationDocumentCommand";
|
|
8
11
|
import { ListSupplementalTaxRegistrationsCommand, } from "./commands/ListSupplementalTaxRegistrationsCommand";
|
|
12
|
+
import { ListTaxExemptionsCommand, } from "./commands/ListTaxExemptionsCommand";
|
|
9
13
|
import { ListTaxRegistrationsCommand, } from "./commands/ListTaxRegistrationsCommand";
|
|
10
14
|
import { PutSupplementalTaxRegistrationCommand, } from "./commands/PutSupplementalTaxRegistrationCommand";
|
|
15
|
+
import { PutTaxExemptionCommand, } from "./commands/PutTaxExemptionCommand";
|
|
16
|
+
import { PutTaxInheritanceCommand, } from "./commands/PutTaxInheritanceCommand";
|
|
11
17
|
import { PutTaxRegistrationCommand, } from "./commands/PutTaxRegistrationCommand";
|
|
12
18
|
import { TaxSettingsClient } from "./TaxSettingsClient";
|
|
13
19
|
const commands = {
|
|
14
20
|
BatchDeleteTaxRegistrationCommand,
|
|
21
|
+
BatchGetTaxExemptionsCommand,
|
|
15
22
|
BatchPutTaxRegistrationCommand,
|
|
16
23
|
DeleteSupplementalTaxRegistrationCommand,
|
|
17
24
|
DeleteTaxRegistrationCommand,
|
|
25
|
+
GetTaxExemptionTypesCommand,
|
|
26
|
+
GetTaxInheritanceCommand,
|
|
18
27
|
GetTaxRegistrationCommand,
|
|
19
28
|
GetTaxRegistrationDocumentCommand,
|
|
20
29
|
ListSupplementalTaxRegistrationsCommand,
|
|
30
|
+
ListTaxExemptionsCommand,
|
|
21
31
|
ListTaxRegistrationsCommand,
|
|
22
32
|
PutSupplementalTaxRegistrationCommand,
|
|
33
|
+
PutTaxExemptionCommand,
|
|
34
|
+
PutTaxInheritanceCommand,
|
|
23
35
|
PutTaxRegistrationCommand,
|
|
24
36
|
};
|
|
25
37
|
export class TaxSettings extends TaxSettingsClient {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchGetTaxExemptionsCommand, se_BatchGetTaxExemptionsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchGetTaxExemptionsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("TaxSettings", "BatchGetTaxExemptions", {})
|
|
17
|
+
.n("TaxSettingsClient", "BatchGetTaxExemptionsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchGetTaxExemptionsCommand)
|
|
20
|
+
.de(de_BatchGetTaxExemptionsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetTaxExemptionTypesCommand, se_GetTaxExemptionTypesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetTaxExemptionTypesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("TaxSettings", "GetTaxExemptionTypes", {})
|
|
17
|
+
.n("TaxSettingsClient", "GetTaxExemptionTypesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetTaxExemptionTypesCommand)
|
|
20
|
+
.de(de_GetTaxExemptionTypesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetTaxInheritanceCommand, se_GetTaxInheritanceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetTaxInheritanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("TaxSettings", "GetTaxInheritance", {})
|
|
17
|
+
.n("TaxSettingsClient", "GetTaxInheritanceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetTaxInheritanceCommand)
|
|
20
|
+
.de(de_GetTaxInheritanceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListTaxExemptionsCommand, se_ListTaxExemptionsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListTaxExemptionsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("TaxSettings", "ListTaxExemptions", {})
|
|
17
|
+
.n("TaxSettingsClient", "ListTaxExemptionsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListTaxExemptionsCommand)
|
|
20
|
+
.de(de_ListTaxExemptionsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutTaxExemptionCommand, se_PutTaxExemptionCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutTaxExemptionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("TaxSettings", "PutTaxExemption", {})
|
|
17
|
+
.n("TaxSettingsClient", "PutTaxExemptionCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_PutTaxExemptionCommand)
|
|
20
|
+
.de(de_PutTaxExemptionCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutTaxInheritanceCommand, se_PutTaxInheritanceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutTaxInheritanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("TaxSettings", "PutTaxInheritance", {})
|
|
17
|
+
.n("TaxSettingsClient", "PutTaxInheritanceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_PutTaxInheritanceCommand)
|
|
20
|
+
.de(de_PutTaxInheritanceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export * from "./BatchDeleteTaxRegistrationCommand";
|
|
2
|
+
export * from "./BatchGetTaxExemptionsCommand";
|
|
2
3
|
export * from "./BatchPutTaxRegistrationCommand";
|
|
3
4
|
export * from "./DeleteSupplementalTaxRegistrationCommand";
|
|
4
5
|
export * from "./DeleteTaxRegistrationCommand";
|
|
6
|
+
export * from "./GetTaxExemptionTypesCommand";
|
|
7
|
+
export * from "./GetTaxInheritanceCommand";
|
|
5
8
|
export * from "./GetTaxRegistrationCommand";
|
|
6
9
|
export * from "./GetTaxRegistrationDocumentCommand";
|
|
7
10
|
export * from "./ListSupplementalTaxRegistrationsCommand";
|
|
11
|
+
export * from "./ListTaxExemptionsCommand";
|
|
8
12
|
export * from "./ListTaxRegistrationsCommand";
|
|
9
13
|
export * from "./PutSupplementalTaxRegistrationCommand";
|
|
14
|
+
export * from "./PutTaxExemptionCommand";
|
|
15
|
+
export * from "./PutTaxInheritanceCommand";
|
|
10
16
|
export * from "./PutTaxRegistrationCommand";
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { TaxSettingsServiceException as __BaseException } from "./TaxSettingsServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
3
15
|
export const AddressRoleType = {
|
|
4
16
|
BILLING_ADDRESS: "BillingAddress",
|
|
5
17
|
CONTACT_ADDRESS: "ContactAddress",
|
|
@@ -69,6 +81,18 @@ export const TaxRegistrationStatus = {
|
|
|
69
81
|
REJECTED: "Rejected",
|
|
70
82
|
VERIFIED: "Verified",
|
|
71
83
|
};
|
|
84
|
+
export class AttachmentUploadException extends __BaseException {
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "AttachmentUploadException",
|
|
88
|
+
$fault: "client",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
this.name = "AttachmentUploadException";
|
|
92
|
+
this.$fault = "client";
|
|
93
|
+
Object.setPrototypeOf(this, AttachmentUploadException.prototype);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
72
96
|
export class ConflictException extends __BaseException {
|
|
73
97
|
constructor(opts) {
|
|
74
98
|
super({
|
|
@@ -116,6 +140,12 @@ export class ValidationException extends __BaseException {
|
|
|
116
140
|
this.fieldList = opts.fieldList;
|
|
117
141
|
}
|
|
118
142
|
}
|
|
143
|
+
export const EntityExemptionAccountStatus = {
|
|
144
|
+
Expired: "Expired",
|
|
145
|
+
None: "None",
|
|
146
|
+
Pending: "Pending",
|
|
147
|
+
Valid: "Valid",
|
|
148
|
+
};
|
|
119
149
|
export class ResourceNotFoundException extends __BaseException {
|
|
120
150
|
constructor(opts) {
|
|
121
151
|
super({
|
|
@@ -129,6 +159,22 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
129
159
|
this.errorCode = opts.errorCode;
|
|
130
160
|
}
|
|
131
161
|
}
|
|
162
|
+
export class CaseCreationLimitExceededException extends __BaseException {
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "CaseCreationLimitExceededException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
this.name = "CaseCreationLimitExceededException";
|
|
170
|
+
this.$fault = "client";
|
|
171
|
+
Object.setPrototypeOf(this, CaseCreationLimitExceededException.prototype);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
export const HeritageStatus = {
|
|
175
|
+
OptIn: "OptIn",
|
|
176
|
+
OptOut: "OptOut",
|
|
177
|
+
};
|
|
132
178
|
export const SupplementalTaxRegistrationType = {
|
|
133
179
|
VAT: "VAT",
|
|
134
180
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListTaxExemptionsCommand, } from "../commands/ListTaxExemptionsCommand";
|
|
3
|
+
import { TaxSettingsClient } from "../TaxSettingsClient";
|
|
4
|
+
export const paginateListTaxExemptions = createPaginator(TaxSettingsClient, ListTaxExemptionsCommand, "nextToken", "nextToken", "maxResults");
|