Skip to content

Commit da73fe5

Browse files
author
awstools
committed
feat(client-taxsettings): Release Tax Inheritance APIs, Tax Exemption APIs, and functionality update for some existing Tax Registration APIs
1 parent 844a1da commit da73fe5

18 files changed

+2718
-66
lines changed

clients/client-taxsettings/README.md

+55-7
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ using your favorite package manager:
3434

3535
The AWS SDK is modulized by clients and commands.
3636
To send a request, you only need to import the `TaxSettingsClient` and
37-
the commands you need, for example `ListTaxRegistrationsCommand`:
37+
the commands you need, for example `ListTaxExemptionsCommand`:
3838

3939
```js
4040
// ES5 example
41-
const { TaxSettingsClient, ListTaxRegistrationsCommand } = require("@aws-sdk/client-taxsettings");
41+
const { TaxSettingsClient, ListTaxExemptionsCommand } = require("@aws-sdk/client-taxsettings");
4242
```
4343

4444
```ts
4545
// ES6+ example
46-
import { TaxSettingsClient, ListTaxRegistrationsCommand } from "@aws-sdk/client-taxsettings";
46+
import { TaxSettingsClient, ListTaxExemptionsCommand } from "@aws-sdk/client-taxsettings";
4747
```
4848

4949
### Usage
@@ -62,7 +62,7 @@ const client = new TaxSettingsClient({ region: "REGION" });
6262
const params = {
6363
/** input parameters */
6464
};
65-
const command = new ListTaxRegistrationsCommand(params);
65+
const command = new ListTaxExemptionsCommand(params);
6666
```
6767

6868
#### Async/await
@@ -141,15 +141,15 @@ const client = new AWS.TaxSettings({ region: "REGION" });
141141

142142
// async/await.
143143
try {
144-
const data = await client.listTaxRegistrations(params);
144+
const data = await client.listTaxExemptions(params);
145145
// process data.
146146
} catch (error) {
147147
// error handling.
148148
}
149149

150150
// Promises.
151151
client
152-
.listTaxRegistrations(params)
152+
.listTaxExemptions(params)
153153
.then((data) => {
154154
// process data.
155155
})
@@ -158,7 +158,7 @@ client
158158
});
159159

160160
// callbacks.
161-
client.listTaxRegistrations(params, (err, data) => {
161+
client.listTaxExemptions(params, (err, data) => {
162162
// process err and data.
163163
});
164164
```
@@ -221,6 +221,14 @@ BatchDeleteTaxRegistration
221221

222222
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/BatchDeleteTaxRegistrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/BatchDeleteTaxRegistrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/BatchDeleteTaxRegistrationCommandOutput/)
223223

224+
</details>
225+
<details>
226+
<summary>
227+
BatchGetTaxExemptions
228+
</summary>
229+
230+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/BatchGetTaxExemptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/BatchGetTaxExemptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/BatchGetTaxExemptionsCommandOutput/)
231+
224232
</details>
225233
<details>
226234
<summary>
@@ -245,6 +253,22 @@ DeleteTaxRegistration
245253

246254
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/DeleteTaxRegistrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/DeleteTaxRegistrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/DeleteTaxRegistrationCommandOutput/)
247255

256+
</details>
257+
<details>
258+
<summary>
259+
GetTaxExemptionTypes
260+
</summary>
261+
262+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/GetTaxExemptionTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/GetTaxExemptionTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/GetTaxExemptionTypesCommandOutput/)
263+
264+
</details>
265+
<details>
266+
<summary>
267+
GetTaxInheritance
268+
</summary>
269+
270+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/GetTaxInheritanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/GetTaxInheritanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/GetTaxInheritanceCommandOutput/)
271+
248272
</details>
249273
<details>
250274
<summary>
@@ -269,6 +293,14 @@ ListSupplementalTaxRegistrations
269293

270294
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/ListSupplementalTaxRegistrationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/ListSupplementalTaxRegistrationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/ListSupplementalTaxRegistrationsCommandOutput/)
271295

296+
</details>
297+
<details>
298+
<summary>
299+
ListTaxExemptions
300+
</summary>
301+
302+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/ListTaxExemptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/ListTaxExemptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/ListTaxExemptionsCommandOutput/)
303+
272304
</details>
273305
<details>
274306
<summary>
@@ -285,6 +317,22 @@ PutSupplementalTaxRegistration
285317

286318
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/PutSupplementalTaxRegistrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/PutSupplementalTaxRegistrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/PutSupplementalTaxRegistrationCommandOutput/)
287319

320+
</details>
321+
<details>
322+
<summary>
323+
PutTaxExemption
324+
</summary>
325+
326+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/PutTaxExemptionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/PutTaxExemptionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/PutTaxExemptionCommandOutput/)
327+
328+
</details>
329+
<details>
330+
<summary>
331+
PutTaxInheritance
332+
</summary>
333+
334+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/PutTaxInheritanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/PutTaxInheritanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/PutTaxInheritanceCommandOutput/)
335+
288336
</details>
289337
<details>
290338
<summary>

clients/client-taxsettings/src/TaxSettings.ts

+139
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import {
77
BatchDeleteTaxRegistrationCommandInput,
88
BatchDeleteTaxRegistrationCommandOutput,
99
} from "./commands/BatchDeleteTaxRegistrationCommand";
10+
import {
11+
BatchGetTaxExemptionsCommand,
12+
BatchGetTaxExemptionsCommandInput,
13+
BatchGetTaxExemptionsCommandOutput,
14+
} from "./commands/BatchGetTaxExemptionsCommand";
1015
import {
1116
BatchPutTaxRegistrationCommand,
1217
BatchPutTaxRegistrationCommandInput,
@@ -22,6 +27,16 @@ import {
2227
DeleteTaxRegistrationCommandInput,
2328
DeleteTaxRegistrationCommandOutput,
2429
} from "./commands/DeleteTaxRegistrationCommand";
30+
import {
31+
GetTaxExemptionTypesCommand,
32+
GetTaxExemptionTypesCommandInput,
33+
GetTaxExemptionTypesCommandOutput,
34+
} from "./commands/GetTaxExemptionTypesCommand";
35+
import {
36+
GetTaxInheritanceCommand,
37+
GetTaxInheritanceCommandInput,
38+
GetTaxInheritanceCommandOutput,
39+
} from "./commands/GetTaxInheritanceCommand";
2540
import {
2641
GetTaxRegistrationCommand,
2742
GetTaxRegistrationCommandInput,
@@ -37,6 +52,11 @@ import {
3752
ListSupplementalTaxRegistrationsCommandInput,
3853
ListSupplementalTaxRegistrationsCommandOutput,
3954
} from "./commands/ListSupplementalTaxRegistrationsCommand";
55+
import {
56+
ListTaxExemptionsCommand,
57+
ListTaxExemptionsCommandInput,
58+
ListTaxExemptionsCommandOutput,
59+
} from "./commands/ListTaxExemptionsCommand";
4060
import {
4161
ListTaxRegistrationsCommand,
4262
ListTaxRegistrationsCommandInput,
@@ -47,6 +67,16 @@ import {
4767
PutSupplementalTaxRegistrationCommandInput,
4868
PutSupplementalTaxRegistrationCommandOutput,
4969
} from "./commands/PutSupplementalTaxRegistrationCommand";
70+
import {
71+
PutTaxExemptionCommand,
72+
PutTaxExemptionCommandInput,
73+
PutTaxExemptionCommandOutput,
74+
} from "./commands/PutTaxExemptionCommand";
75+
import {
76+
PutTaxInheritanceCommand,
77+
PutTaxInheritanceCommandInput,
78+
PutTaxInheritanceCommandOutput,
79+
} from "./commands/PutTaxInheritanceCommand";
5080
import {
5181
PutTaxRegistrationCommand,
5282
PutTaxRegistrationCommandInput,
@@ -56,14 +86,20 @@ import { TaxSettingsClient, TaxSettingsClientConfig } from "./TaxSettingsClient"
5686

5787
const commands = {
5888
BatchDeleteTaxRegistrationCommand,
89+
BatchGetTaxExemptionsCommand,
5990
BatchPutTaxRegistrationCommand,
6091
DeleteSupplementalTaxRegistrationCommand,
6192
DeleteTaxRegistrationCommand,
93+
GetTaxExemptionTypesCommand,
94+
GetTaxInheritanceCommand,
6295
GetTaxRegistrationCommand,
6396
GetTaxRegistrationDocumentCommand,
6497
ListSupplementalTaxRegistrationsCommand,
98+
ListTaxExemptionsCommand,
6599
ListTaxRegistrationsCommand,
66100
PutSupplementalTaxRegistrationCommand,
101+
PutTaxExemptionCommand,
102+
PutTaxInheritanceCommand,
67103
PutTaxRegistrationCommand,
68104
};
69105

@@ -85,6 +121,23 @@ export interface TaxSettings {
85121
cb: (err: any, data?: BatchDeleteTaxRegistrationCommandOutput) => void
86122
): void;
87123

124+
/**
125+
* @see {@link BatchGetTaxExemptionsCommand}
126+
*/
127+
batchGetTaxExemptions(
128+
args: BatchGetTaxExemptionsCommandInput,
129+
options?: __HttpHandlerOptions
130+
): Promise<BatchGetTaxExemptionsCommandOutput>;
131+
batchGetTaxExemptions(
132+
args: BatchGetTaxExemptionsCommandInput,
133+
cb: (err: any, data?: BatchGetTaxExemptionsCommandOutput) => void
134+
): void;
135+
batchGetTaxExemptions(
136+
args: BatchGetTaxExemptionsCommandInput,
137+
options: __HttpHandlerOptions,
138+
cb: (err: any, data?: BatchGetTaxExemptionsCommandOutput) => void
139+
): void;
140+
88141
/**
89142
* @see {@link BatchPutTaxRegistrationCommand}
90143
*/
@@ -137,6 +190,42 @@ export interface TaxSettings {
137190
cb: (err: any, data?: DeleteTaxRegistrationCommandOutput) => void
138191
): void;
139192

193+
/**
194+
* @see {@link GetTaxExemptionTypesCommand}
195+
*/
196+
getTaxExemptionTypes(): Promise<GetTaxExemptionTypesCommandOutput>;
197+
getTaxExemptionTypes(
198+
args: GetTaxExemptionTypesCommandInput,
199+
options?: __HttpHandlerOptions
200+
): Promise<GetTaxExemptionTypesCommandOutput>;
201+
getTaxExemptionTypes(
202+
args: GetTaxExemptionTypesCommandInput,
203+
cb: (err: any, data?: GetTaxExemptionTypesCommandOutput) => void
204+
): void;
205+
getTaxExemptionTypes(
206+
args: GetTaxExemptionTypesCommandInput,
207+
options: __HttpHandlerOptions,
208+
cb: (err: any, data?: GetTaxExemptionTypesCommandOutput) => void
209+
): void;
210+
211+
/**
212+
* @see {@link GetTaxInheritanceCommand}
213+
*/
214+
getTaxInheritance(): Promise<GetTaxInheritanceCommandOutput>;
215+
getTaxInheritance(
216+
args: GetTaxInheritanceCommandInput,
217+
options?: __HttpHandlerOptions
218+
): Promise<GetTaxInheritanceCommandOutput>;
219+
getTaxInheritance(
220+
args: GetTaxInheritanceCommandInput,
221+
cb: (err: any, data?: GetTaxInheritanceCommandOutput) => void
222+
): void;
223+
getTaxInheritance(
224+
args: GetTaxInheritanceCommandInput,
225+
options: __HttpHandlerOptions,
226+
cb: (err: any, data?: GetTaxInheritanceCommandOutput) => void
227+
): void;
228+
140229
/**
141230
* @see {@link GetTaxRegistrationCommand}
142231
*/
@@ -190,6 +279,24 @@ export interface TaxSettings {
190279
cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void
191280
): void;
192281

282+
/**
283+
* @see {@link ListTaxExemptionsCommand}
284+
*/
285+
listTaxExemptions(): Promise<ListTaxExemptionsCommandOutput>;
286+
listTaxExemptions(
287+
args: ListTaxExemptionsCommandInput,
288+
options?: __HttpHandlerOptions
289+
): Promise<ListTaxExemptionsCommandOutput>;
290+
listTaxExemptions(
291+
args: ListTaxExemptionsCommandInput,
292+
cb: (err: any, data?: ListTaxExemptionsCommandOutput) => void
293+
): void;
294+
listTaxExemptions(
295+
args: ListTaxExemptionsCommandInput,
296+
options: __HttpHandlerOptions,
297+
cb: (err: any, data?: ListTaxExemptionsCommandOutput) => void
298+
): void;
299+
193300
/**
194301
* @see {@link ListTaxRegistrationsCommand}
195302
*/
@@ -225,6 +332,38 @@ export interface TaxSettings {
225332
cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void
226333
): void;
227334

335+
/**
336+
* @see {@link PutTaxExemptionCommand}
337+
*/
338+
putTaxExemption(
339+
args: PutTaxExemptionCommandInput,
340+
options?: __HttpHandlerOptions
341+
): Promise<PutTaxExemptionCommandOutput>;
342+
putTaxExemption(args: PutTaxExemptionCommandInput, cb: (err: any, data?: PutTaxExemptionCommandOutput) => void): void;
343+
putTaxExemption(
344+
args: PutTaxExemptionCommandInput,
345+
options: __HttpHandlerOptions,
346+
cb: (err: any, data?: PutTaxExemptionCommandOutput) => void
347+
): void;
348+
349+
/**
350+
* @see {@link PutTaxInheritanceCommand}
351+
*/
352+
putTaxInheritance(): Promise<PutTaxInheritanceCommandOutput>;
353+
putTaxInheritance(
354+
args: PutTaxInheritanceCommandInput,
355+
options?: __HttpHandlerOptions
356+
): Promise<PutTaxInheritanceCommandOutput>;
357+
putTaxInheritance(
358+
args: PutTaxInheritanceCommandInput,
359+
cb: (err: any, data?: PutTaxInheritanceCommandOutput) => void
360+
): void;
361+
putTaxInheritance(
362+
args: PutTaxInheritanceCommandInput,
363+
options: __HttpHandlerOptions,
364+
cb: (err: any, data?: PutTaxInheritanceCommandOutput) => void
365+
): void;
366+
228367
/**
229368
* @see {@link PutTaxRegistrationCommand}
230369
*/

0 commit comments

Comments
 (0)