Skip to content

Commit

Permalink
feat(client-taxsettings): Release Tax Inheritance APIs, Tax Exemption…
Browse files Browse the repository at this point in the history
… APIs, and functionality update for some existing Tax Registration APIs
  • Loading branch information
awstools committed Nov 19, 2024
1 parent 844a1da commit da73fe5
Show file tree
Hide file tree
Showing 18 changed files with 2,718 additions and 66 deletions.
62 changes: 55 additions & 7 deletions clients/client-taxsettings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ using your favorite package manager:

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

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

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

### Usage
Expand All @@ -62,7 +62,7 @@ const client = new TaxSettingsClient({ region: "REGION" });
const params = {
/** input parameters */
};
const command = new ListTaxRegistrationsCommand(params);
const command = new ListTaxExemptionsCommand(params);
```

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

// async/await.
try {
const data = await client.listTaxRegistrations(params);
const data = await client.listTaxExemptions(params);
// process data.
} catch (error) {
// error handling.
}

// Promises.
client
.listTaxRegistrations(params)
.listTaxExemptions(params)
.then((data) => {
// process data.
})
Expand All @@ -158,7 +158,7 @@ client
});

// callbacks.
client.listTaxRegistrations(params, (err, data) => {
client.listTaxExemptions(params, (err, data) => {
// process err and data.
});
```
Expand Down Expand Up @@ -221,6 +221,14 @@ BatchDeleteTaxRegistration

[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/)

</details>
<details>
<summary>
BatchGetTaxExemptions
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -245,6 +253,22 @@ DeleteTaxRegistration

[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/)

</details>
<details>
<summary>
GetTaxExemptionTypes
</summary>

[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/)

</details>
<details>
<summary>
GetTaxInheritance
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -269,6 +293,14 @@ ListSupplementalTaxRegistrations

[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/)

</details>
<details>
<summary>
ListTaxExemptions
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -285,6 +317,22 @@ PutSupplementalTaxRegistration

[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/)

</details>
<details>
<summary>
PutTaxExemption
</summary>

[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/)

</details>
<details>
<summary>
PutTaxInheritance
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
139 changes: 139 additions & 0 deletions clients/client-taxsettings/src/TaxSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
BatchDeleteTaxRegistrationCommandInput,
BatchDeleteTaxRegistrationCommandOutput,
} from "./commands/BatchDeleteTaxRegistrationCommand";
import {
BatchGetTaxExemptionsCommand,
BatchGetTaxExemptionsCommandInput,
BatchGetTaxExemptionsCommandOutput,
} from "./commands/BatchGetTaxExemptionsCommand";
import {
BatchPutTaxRegistrationCommand,
BatchPutTaxRegistrationCommandInput,
Expand All @@ -22,6 +27,16 @@ import {
DeleteTaxRegistrationCommandInput,
DeleteTaxRegistrationCommandOutput,
} from "./commands/DeleteTaxRegistrationCommand";
import {
GetTaxExemptionTypesCommand,
GetTaxExemptionTypesCommandInput,
GetTaxExemptionTypesCommandOutput,
} from "./commands/GetTaxExemptionTypesCommand";
import {
GetTaxInheritanceCommand,
GetTaxInheritanceCommandInput,
GetTaxInheritanceCommandOutput,
} from "./commands/GetTaxInheritanceCommand";
import {
GetTaxRegistrationCommand,
GetTaxRegistrationCommandInput,
Expand All @@ -37,6 +52,11 @@ import {
ListSupplementalTaxRegistrationsCommandInput,
ListSupplementalTaxRegistrationsCommandOutput,
} from "./commands/ListSupplementalTaxRegistrationsCommand";
import {
ListTaxExemptionsCommand,
ListTaxExemptionsCommandInput,
ListTaxExemptionsCommandOutput,
} from "./commands/ListTaxExemptionsCommand";
import {
ListTaxRegistrationsCommand,
ListTaxRegistrationsCommandInput,
Expand All @@ -47,6 +67,16 @@ import {
PutSupplementalTaxRegistrationCommandInput,
PutSupplementalTaxRegistrationCommandOutput,
} from "./commands/PutSupplementalTaxRegistrationCommand";
import {
PutTaxExemptionCommand,
PutTaxExemptionCommandInput,
PutTaxExemptionCommandOutput,
} from "./commands/PutTaxExemptionCommand";
import {
PutTaxInheritanceCommand,
PutTaxInheritanceCommandInput,
PutTaxInheritanceCommandOutput,
} from "./commands/PutTaxInheritanceCommand";
import {
PutTaxRegistrationCommand,
PutTaxRegistrationCommandInput,
Expand All @@ -56,14 +86,20 @@ import { TaxSettingsClient, TaxSettingsClientConfig } from "./TaxSettingsClient"

const commands = {
BatchDeleteTaxRegistrationCommand,
BatchGetTaxExemptionsCommand,
BatchPutTaxRegistrationCommand,
DeleteSupplementalTaxRegistrationCommand,
DeleteTaxRegistrationCommand,
GetTaxExemptionTypesCommand,
GetTaxInheritanceCommand,
GetTaxRegistrationCommand,
GetTaxRegistrationDocumentCommand,
ListSupplementalTaxRegistrationsCommand,
ListTaxExemptionsCommand,
ListTaxRegistrationsCommand,
PutSupplementalTaxRegistrationCommand,
PutTaxExemptionCommand,
PutTaxInheritanceCommand,
PutTaxRegistrationCommand,
};

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

/**
* @see {@link BatchGetTaxExemptionsCommand}
*/
batchGetTaxExemptions(
args: BatchGetTaxExemptionsCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchGetTaxExemptionsCommandOutput>;
batchGetTaxExemptions(
args: BatchGetTaxExemptionsCommandInput,
cb: (err: any, data?: BatchGetTaxExemptionsCommandOutput) => void
): void;
batchGetTaxExemptions(
args: BatchGetTaxExemptionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchGetTaxExemptionsCommandOutput) => void
): void;

/**
* @see {@link BatchPutTaxRegistrationCommand}
*/
Expand Down Expand Up @@ -137,6 +190,42 @@ export interface TaxSettings {
cb: (err: any, data?: DeleteTaxRegistrationCommandOutput) => void
): void;

/**
* @see {@link GetTaxExemptionTypesCommand}
*/
getTaxExemptionTypes(): Promise<GetTaxExemptionTypesCommandOutput>;
getTaxExemptionTypes(
args: GetTaxExemptionTypesCommandInput,
options?: __HttpHandlerOptions
): Promise<GetTaxExemptionTypesCommandOutput>;
getTaxExemptionTypes(
args: GetTaxExemptionTypesCommandInput,
cb: (err: any, data?: GetTaxExemptionTypesCommandOutput) => void
): void;
getTaxExemptionTypes(
args: GetTaxExemptionTypesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetTaxExemptionTypesCommandOutput) => void
): void;

/**
* @see {@link GetTaxInheritanceCommand}
*/
getTaxInheritance(): Promise<GetTaxInheritanceCommandOutput>;
getTaxInheritance(
args: GetTaxInheritanceCommandInput,
options?: __HttpHandlerOptions
): Promise<GetTaxInheritanceCommandOutput>;
getTaxInheritance(
args: GetTaxInheritanceCommandInput,
cb: (err: any, data?: GetTaxInheritanceCommandOutput) => void
): void;
getTaxInheritance(
args: GetTaxInheritanceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetTaxInheritanceCommandOutput) => void
): void;

/**
* @see {@link GetTaxRegistrationCommand}
*/
Expand Down Expand Up @@ -190,6 +279,24 @@ export interface TaxSettings {
cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void
): void;

/**
* @see {@link ListTaxExemptionsCommand}
*/
listTaxExemptions(): Promise<ListTaxExemptionsCommandOutput>;
listTaxExemptions(
args: ListTaxExemptionsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListTaxExemptionsCommandOutput>;
listTaxExemptions(
args: ListTaxExemptionsCommandInput,
cb: (err: any, data?: ListTaxExemptionsCommandOutput) => void
): void;
listTaxExemptions(
args: ListTaxExemptionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListTaxExemptionsCommandOutput) => void
): void;

/**
* @see {@link ListTaxRegistrationsCommand}
*/
Expand Down Expand Up @@ -225,6 +332,38 @@ export interface TaxSettings {
cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void
): void;

/**
* @see {@link PutTaxExemptionCommand}
*/
putTaxExemption(
args: PutTaxExemptionCommandInput,
options?: __HttpHandlerOptions
): Promise<PutTaxExemptionCommandOutput>;
putTaxExemption(args: PutTaxExemptionCommandInput, cb: (err: any, data?: PutTaxExemptionCommandOutput) => void): void;
putTaxExemption(
args: PutTaxExemptionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutTaxExemptionCommandOutput) => void
): void;

/**
* @see {@link PutTaxInheritanceCommand}
*/
putTaxInheritance(): Promise<PutTaxInheritanceCommandOutput>;
putTaxInheritance(
args: PutTaxInheritanceCommandInput,
options?: __HttpHandlerOptions
): Promise<PutTaxInheritanceCommandOutput>;
putTaxInheritance(
args: PutTaxInheritanceCommandInput,
cb: (err: any, data?: PutTaxInheritanceCommandOutput) => void
): void;
putTaxInheritance(
args: PutTaxInheritanceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutTaxInheritanceCommandOutput) => void
): void;

/**
* @see {@link PutTaxRegistrationCommand}
*/
Expand Down
Loading

0 comments on commit da73fe5

Please sign in to comment.