Skip to content

Commit 23a1507

Browse files
author
awstools
committed
feat(client-taxsettings): Add support for supplemental tax registrations via these new APIs: PutSupplementalTaxRegistration, ListSupplementalTaxRegistrations, and DeleteSupplementalTaxRegistration.
1 parent 3fc175f commit 23a1507

16 files changed

+1336
-49
lines changed

clients/client-taxsettings/README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the console.</p>
2121

2222
## Installing
2323

24-
To install the this package, simply type add or install @aws-sdk/client-taxsettings
24+
To install this package, simply type add or install @aws-sdk/client-taxsettings
2525
using your favorite package manager:
2626

2727
- `npm install @aws-sdk/client-taxsettings`
@@ -229,6 +229,14 @@ BatchPutTaxRegistration
229229

230230
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/BatchPutTaxRegistrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/BatchPutTaxRegistrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/BatchPutTaxRegistrationCommandOutput/)
231231

232+
</details>
233+
<details>
234+
<summary>
235+
DeleteSupplementalTaxRegistration
236+
</summary>
237+
238+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/DeleteSupplementalTaxRegistrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/DeleteSupplementalTaxRegistrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/DeleteSupplementalTaxRegistrationCommandOutput/)
239+
232240
</details>
233241
<details>
234242
<summary>
@@ -253,6 +261,14 @@ GetTaxRegistrationDocument
253261

254262
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/GetTaxRegistrationDocumentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/GetTaxRegistrationDocumentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/GetTaxRegistrationDocumentCommandOutput/)
255263

264+
</details>
265+
<details>
266+
<summary>
267+
ListSupplementalTaxRegistrations
268+
</summary>
269+
270+
[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/)
271+
256272
</details>
257273
<details>
258274
<summary>
@@ -261,6 +277,14 @@ ListTaxRegistrations
261277

262278
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/taxsettings/command/ListTaxRegistrationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/ListTaxRegistrationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-taxsettings/Interface/ListTaxRegistrationsCommandOutput/)
263279

280+
</details>
281+
<details>
282+
<summary>
283+
PutSupplementalTaxRegistration
284+
</summary>
285+
286+
[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/)
287+
264288
</details>
265289
<details>
266290
<summary>

clients/client-taxsettings/src/TaxSettings.ts

+70
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ import {
1212
BatchPutTaxRegistrationCommandInput,
1313
BatchPutTaxRegistrationCommandOutput,
1414
} from "./commands/BatchPutTaxRegistrationCommand";
15+
import {
16+
DeleteSupplementalTaxRegistrationCommand,
17+
DeleteSupplementalTaxRegistrationCommandInput,
18+
DeleteSupplementalTaxRegistrationCommandOutput,
19+
} from "./commands/DeleteSupplementalTaxRegistrationCommand";
1520
import {
1621
DeleteTaxRegistrationCommand,
1722
DeleteTaxRegistrationCommandInput,
@@ -27,11 +32,21 @@ import {
2732
GetTaxRegistrationDocumentCommandInput,
2833
GetTaxRegistrationDocumentCommandOutput,
2934
} from "./commands/GetTaxRegistrationDocumentCommand";
35+
import {
36+
ListSupplementalTaxRegistrationsCommand,
37+
ListSupplementalTaxRegistrationsCommandInput,
38+
ListSupplementalTaxRegistrationsCommandOutput,
39+
} from "./commands/ListSupplementalTaxRegistrationsCommand";
3040
import {
3141
ListTaxRegistrationsCommand,
3242
ListTaxRegistrationsCommandInput,
3343
ListTaxRegistrationsCommandOutput,
3444
} from "./commands/ListTaxRegistrationsCommand";
45+
import {
46+
PutSupplementalTaxRegistrationCommand,
47+
PutSupplementalTaxRegistrationCommandInput,
48+
PutSupplementalTaxRegistrationCommandOutput,
49+
} from "./commands/PutSupplementalTaxRegistrationCommand";
3550
import {
3651
PutTaxRegistrationCommand,
3752
PutTaxRegistrationCommandInput,
@@ -42,10 +57,13 @@ import { TaxSettingsClient, TaxSettingsClientConfig } from "./TaxSettingsClient"
4257
const commands = {
4358
BatchDeleteTaxRegistrationCommand,
4459
BatchPutTaxRegistrationCommand,
60+
DeleteSupplementalTaxRegistrationCommand,
4561
DeleteTaxRegistrationCommand,
4662
GetTaxRegistrationCommand,
4763
GetTaxRegistrationDocumentCommand,
64+
ListSupplementalTaxRegistrationsCommand,
4865
ListTaxRegistrationsCommand,
66+
PutSupplementalTaxRegistrationCommand,
4967
PutTaxRegistrationCommand,
5068
};
5169

@@ -84,6 +102,23 @@ export interface TaxSettings {
84102
cb: (err: any, data?: BatchPutTaxRegistrationCommandOutput) => void
85103
): void;
86104

105+
/**
106+
* @see {@link DeleteSupplementalTaxRegistrationCommand}
107+
*/
108+
deleteSupplementalTaxRegistration(
109+
args: DeleteSupplementalTaxRegistrationCommandInput,
110+
options?: __HttpHandlerOptions
111+
): Promise<DeleteSupplementalTaxRegistrationCommandOutput>;
112+
deleteSupplementalTaxRegistration(
113+
args: DeleteSupplementalTaxRegistrationCommandInput,
114+
cb: (err: any, data?: DeleteSupplementalTaxRegistrationCommandOutput) => void
115+
): void;
116+
deleteSupplementalTaxRegistration(
117+
args: DeleteSupplementalTaxRegistrationCommandInput,
118+
options: __HttpHandlerOptions,
119+
cb: (err: any, data?: DeleteSupplementalTaxRegistrationCommandOutput) => void
120+
): void;
121+
87122
/**
88123
* @see {@link DeleteTaxRegistrationCommand}
89124
*/
@@ -137,6 +172,24 @@ export interface TaxSettings {
137172
cb: (err: any, data?: GetTaxRegistrationDocumentCommandOutput) => void
138173
): void;
139174

175+
/**
176+
* @see {@link ListSupplementalTaxRegistrationsCommand}
177+
*/
178+
listSupplementalTaxRegistrations(): Promise<ListSupplementalTaxRegistrationsCommandOutput>;
179+
listSupplementalTaxRegistrations(
180+
args: ListSupplementalTaxRegistrationsCommandInput,
181+
options?: __HttpHandlerOptions
182+
): Promise<ListSupplementalTaxRegistrationsCommandOutput>;
183+
listSupplementalTaxRegistrations(
184+
args: ListSupplementalTaxRegistrationsCommandInput,
185+
cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void
186+
): void;
187+
listSupplementalTaxRegistrations(
188+
args: ListSupplementalTaxRegistrationsCommandInput,
189+
options: __HttpHandlerOptions,
190+
cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void
191+
): void;
192+
140193
/**
141194
* @see {@link ListTaxRegistrationsCommand}
142195
*/
@@ -155,6 +208,23 @@ export interface TaxSettings {
155208
cb: (err: any, data?: ListTaxRegistrationsCommandOutput) => void
156209
): void;
157210

211+
/**
212+
* @see {@link PutSupplementalTaxRegistrationCommand}
213+
*/
214+
putSupplementalTaxRegistration(
215+
args: PutSupplementalTaxRegistrationCommandInput,
216+
options?: __HttpHandlerOptions
217+
): Promise<PutSupplementalTaxRegistrationCommandOutput>;
218+
putSupplementalTaxRegistration(
219+
args: PutSupplementalTaxRegistrationCommandInput,
220+
cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void
221+
): void;
222+
putSupplementalTaxRegistration(
223+
args: PutSupplementalTaxRegistrationCommandInput,
224+
options: __HttpHandlerOptions,
225+
cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void
226+
): void;
227+
158228
/**
159229
* @see {@link PutTaxRegistrationCommand}
160230
*/

clients/client-taxsettings/src/TaxSettingsClient.ts

+18
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ import {
6161
BatchPutTaxRegistrationCommandInput,
6262
BatchPutTaxRegistrationCommandOutput,
6363
} from "./commands/BatchPutTaxRegistrationCommand";
64+
import {
65+
DeleteSupplementalTaxRegistrationCommandInput,
66+
DeleteSupplementalTaxRegistrationCommandOutput,
67+
} from "./commands/DeleteSupplementalTaxRegistrationCommand";
6468
import {
6569
DeleteTaxRegistrationCommandInput,
6670
DeleteTaxRegistrationCommandOutput,
@@ -70,10 +74,18 @@ import {
7074
GetTaxRegistrationDocumentCommandInput,
7175
GetTaxRegistrationDocumentCommandOutput,
7276
} from "./commands/GetTaxRegistrationDocumentCommand";
77+
import {
78+
ListSupplementalTaxRegistrationsCommandInput,
79+
ListSupplementalTaxRegistrationsCommandOutput,
80+
} from "./commands/ListSupplementalTaxRegistrationsCommand";
7381
import {
7482
ListTaxRegistrationsCommandInput,
7583
ListTaxRegistrationsCommandOutput,
7684
} from "./commands/ListTaxRegistrationsCommand";
85+
import {
86+
PutSupplementalTaxRegistrationCommandInput,
87+
PutSupplementalTaxRegistrationCommandOutput,
88+
} from "./commands/PutSupplementalTaxRegistrationCommand";
7789
import { PutTaxRegistrationCommandInput, PutTaxRegistrationCommandOutput } from "./commands/PutTaxRegistrationCommand";
7890
import {
7991
ClientInputEndpointParameters,
@@ -92,10 +104,13 @@ export { __Client };
92104
export type ServiceInputTypes =
93105
| BatchDeleteTaxRegistrationCommandInput
94106
| BatchPutTaxRegistrationCommandInput
107+
| DeleteSupplementalTaxRegistrationCommandInput
95108
| DeleteTaxRegistrationCommandInput
96109
| GetTaxRegistrationCommandInput
97110
| GetTaxRegistrationDocumentCommandInput
111+
| ListSupplementalTaxRegistrationsCommandInput
98112
| ListTaxRegistrationsCommandInput
113+
| PutSupplementalTaxRegistrationCommandInput
99114
| PutTaxRegistrationCommandInput;
100115

101116
/**
@@ -104,10 +119,13 @@ export type ServiceInputTypes =
104119
export type ServiceOutputTypes =
105120
| BatchDeleteTaxRegistrationCommandOutput
106121
| BatchPutTaxRegistrationCommandOutput
122+
| DeleteSupplementalTaxRegistrationCommandOutput
107123
| DeleteTaxRegistrationCommandOutput
108124
| GetTaxRegistrationCommandOutput
109125
| GetTaxRegistrationDocumentCommandOutput
126+
| ListSupplementalTaxRegistrationsCommandOutput
110127
| ListTaxRegistrationsCommandOutput
128+
| PutSupplementalTaxRegistrationCommandOutput
111129
| PutTaxRegistrationCommandOutput;
112130

113131
/**

clients/client-taxsettings/src/commands/BatchPutTaxRegistrationCommand.ts

+17-14
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,27 @@ export interface BatchPutTaxRegistrationCommandOutput extends BatchPutTaxRegistr
8585
* </p>
8686
* <ul>
8787
* <li>
88-
* <p>If you use this operation to set a tax registration number (TRN) in Malaysia, only
89-
* resellers with a valid sales and service tax (SST) number are required to provide tax
90-
* registration information.</p>
88+
* <p>The sector valid values are <code>Business</code> and <code>Individual</code>.</p>
9189
* </li>
9290
* <li>
93-
* <p>By using this API operation to set a TRN in Malaysia, Amazon Web Services will regard you as
94-
* self-declaring that you're an authorized business reseller registered with the Royal
95-
* Malaysia Customs Department (RMCD) and have a valid SST number.</p>
91+
* <p>
92+
* <code>RegistrationType</code> valid values are <code>NRIC</code> for individual, and TIN and sales and service tax (SST) for Business.</p>
9693
* </li>
9794
* <li>
98-
* <p>Amazon Web Services reserves the right to seek additional information and/or take other actions to
99-
* support your self-declaration as appropriate.</p>
95+
* <p>For individual, you can specify the <code>taxInformationNumber</code> in <code>MalaysiaAdditionalInfo</code> with NRIC type, and a valid <code>MyKad</code> or NRIC number.</p>
96+
* </li>
97+
* <li>
98+
* <p>For business, you must specify a <code>businessRegistrationNumber</code> in <code>MalaysiaAdditionalInfo</code> with a TIN type and tax identification number.</p>
10099
* </li>
101100
* <li>
102-
* <p>If you're not a reseller of Amazon Web Services, we don't recommend that you use
103-
* this operation to set the TRN in Malaysia.</p>
101+
* <p>For business resellers, you must specify a <code>businessRegistrationNumber</code> and <code>taxInformationNumber</code> in <code>MalaysiaAdditionalInfo</code> with a sales and service tax (SST) type and a valid SST number.</p>
104102
* </li>
105103
* <li>
106-
* <p>Only use this API operation to upload the TRNs for accounts through which you're
107-
* reselling Amazon Web Services.</p>
104+
* <p>For business resellers with service codes, you must specify <code>businessRegistrationNumber</code>, <code>taxInformationNumber</code>, and distinct <code>serviceTaxCodes</code> in <code>MalaysiaAdditionalInfo</code> with a SST type and valid sales and service tax (SST) number. By using this API operation, Amazon Web Services registers your self-declaration that you’re an authorized business reseller registered with the Royal Malaysia Customs Department (RMCD), and have a valid SST number.</p>
105+
* </li>
106+
* <li>
107+
* <p>Amazon Web Services reserves the right to seek additional information and/or take other actions to
108+
* support your self-declaration as appropriate.</p>
108109
* </li>
109110
* <li>
110111
* <p>Amazon Web Services is currently registered under the following service tax codes. You must include
@@ -227,7 +228,7 @@ export interface BatchPutTaxRegistrationCommandOutput extends BatchPutTaxRegistr
227228
* ],
228229
* taxRegistrationEntry: { // TaxRegistrationEntry
229230
* registrationId: "STRING_VALUE", // required
230-
* registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST", // required
231+
* registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST" || "TIN" || "NRIC", // required
231232
* legalName: "STRING_VALUE",
232233
* legalAddress: { // Address
233234
* addressLine1: "STRING_VALUE", // required
@@ -242,9 +243,11 @@ export interface BatchPutTaxRegistrationCommandOutput extends BatchPutTaxRegistr
242243
* sector: "Business" || "Individual" || "Government",
243244
* additionalTaxInformation: { // AdditionalInfoRequest
244245
* malaysiaAdditionalInfo: { // MalaysiaAdditionalInfo
245-
* serviceTaxCodes: [ // MalaysiaServiceTaxCodesList // required
246+
* serviceTaxCodes: [ // MalaysiaServiceTaxCodesList
246247
* "Consultancy" || "Digital Service And Electronic Medium" || "IT Services" || "Training Or Coaching",
247248
* ],
249+
* taxInformationNumber: "STRING_VALUE",
250+
* businessRegistrationNumber: "STRING_VALUE",
248251
* },
249252
* israelAdditionalInfo: { // IsraelAdditionalInfo
250253
* dealerType: "Authorized" || "Non-authorized", // required

0 commit comments

Comments
 (0)