@aws-sdk/client-taxsettings 3.682.0 → 3.686.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 (44) hide show
  1. package/README.md +25 -1
  2. package/dist-cjs/TaxSettings.js +6 -0
  3. package/dist-cjs/commands/DeleteSupplementalTaxRegistrationCommand.js +26 -0
  4. package/dist-cjs/commands/ListSupplementalTaxRegistrationsCommand.js +27 -0
  5. package/dist-cjs/commands/PutSupplementalTaxRegistrationCommand.js +27 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +24 -1
  8. package/dist-cjs/pagination/ListSupplementalTaxRegistrationsPaginator.js +7 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +87 -1
  11. package/dist-es/TaxSettings.js +6 -0
  12. package/dist-es/commands/DeleteSupplementalTaxRegistrationCommand.js +22 -0
  13. package/dist-es/commands/ListSupplementalTaxRegistrationsCommand.js +23 -0
  14. package/dist-es/commands/PutSupplementalTaxRegistrationCommand.js +23 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +19 -0
  17. package/dist-es/pagination/ListSupplementalTaxRegistrationsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +80 -0
  20. package/dist-types/TaxSettings.d.ts +22 -0
  21. package/dist-types/TaxSettingsClient.d.ts +5 -2
  22. package/dist-types/commands/BatchPutTaxRegistrationCommand.d.ts +17 -14
  23. package/dist-types/commands/DeleteSupplementalTaxRegistrationCommand.d.ts +84 -0
  24. package/dist-types/commands/GetTaxRegistrationCommand.d.ts +4 -2
  25. package/dist-types/commands/ListSupplementalTaxRegistrationsCommand.d.ts +103 -0
  26. package/dist-types/commands/ListTaxRegistrationsCommand.d.ts +4 -2
  27. package/dist-types/commands/PutSupplementalTaxRegistrationCommand.d.ts +98 -0
  28. package/dist-types/commands/PutTaxRegistrationCommand.d.ts +17 -14
  29. package/dist-types/commands/index.d.ts +3 -0
  30. package/dist-types/models/models_0.d.ts +223 -9
  31. package/dist-types/pagination/ListSupplementalTaxRegistrationsPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +1 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  34. package/dist-types/ts3.4/TaxSettings.d.ts +58 -0
  35. package/dist-types/ts3.4/TaxSettingsClient.d.ts +18 -0
  36. package/dist-types/ts3.4/commands/DeleteSupplementalTaxRegistrationCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/ListSupplementalTaxRegistrationsCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/PutSupplementalTaxRegistrationCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +58 -4
  41. package/dist-types/ts3.4/pagination/ListSupplementalTaxRegistrationsPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  44. package/package.json +35 -35
@@ -30,6 +30,19 @@ export const se_BatchPutTaxRegistrationCommand = async (input, context) => {
30
30
  b.m("POST").h(headers).b(body);
31
31
  return b.build();
32
32
  };
33
+ export const se_DeleteSupplementalTaxRegistrationCommand = async (input, context) => {
34
+ const b = rb(input, context);
35
+ const headers = {
36
+ "content-type": "application/json",
37
+ };
38
+ b.bp("/DeleteSupplementalTaxRegistration");
39
+ let body;
40
+ body = JSON.stringify(take(input, {
41
+ authorityId: [],
42
+ }));
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
45
+ };
33
46
  export const se_DeleteTaxRegistrationCommand = async (input, context) => {
34
47
  const b = rb(input, context);
35
48
  const headers = {
@@ -70,6 +83,20 @@ export const se_GetTaxRegistrationDocumentCommand = async (input, context) => {
70
83
  b.m("POST").h(headers).b(body);
71
84
  return b.build();
72
85
  };
86
+ export const se_ListSupplementalTaxRegistrationsCommand = async (input, context) => {
87
+ const b = rb(input, context);
88
+ const headers = {
89
+ "content-type": "application/json",
90
+ };
91
+ b.bp("/ListSupplementalTaxRegistrations");
92
+ let body;
93
+ body = JSON.stringify(take(input, {
94
+ maxResults: [],
95
+ nextToken: [],
96
+ }));
97
+ b.m("POST").h(headers).b(body);
98
+ return b.build();
99
+ };
73
100
  export const se_ListTaxRegistrationsCommand = async (input, context) => {
74
101
  const b = rb(input, context);
75
102
  const headers = {
@@ -84,6 +111,19 @@ export const se_ListTaxRegistrationsCommand = async (input, context) => {
84
111
  b.m("POST").h(headers).b(body);
85
112
  return b.build();
86
113
  };
114
+ export const se_PutSupplementalTaxRegistrationCommand = async (input, context) => {
115
+ const b = rb(input, context);
116
+ const headers = {
117
+ "content-type": "application/json",
118
+ };
119
+ b.bp("/PutSupplementalTaxRegistration");
120
+ let body;
121
+ body = JSON.stringify(take(input, {
122
+ taxRegistrationEntry: (_) => _json(_),
123
+ }));
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
126
+ };
87
127
  export const se_PutTaxRegistrationCommand = async (input, context) => {
88
128
  const b = rb(input, context);
89
129
  const headers = {
@@ -127,6 +167,16 @@ export const de_BatchPutTaxRegistrationCommand = async (output, context) => {
127
167
  Object.assign(contents, doc);
128
168
  return contents;
129
169
  };
170
+ export const de_DeleteSupplementalTaxRegistrationCommand = async (output, context) => {
171
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
172
+ return de_CommandError(output, context);
173
+ }
174
+ const contents = map({
175
+ $metadata: deserializeMetadata(output),
176
+ });
177
+ await collectBody(output.body, context);
178
+ return contents;
179
+ };
130
180
  export const de_DeleteTaxRegistrationCommand = async (output, context) => {
131
181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
132
182
  return de_CommandError(output, context);
@@ -165,6 +215,21 @@ export const de_GetTaxRegistrationDocumentCommand = async (output, context) => {
165
215
  Object.assign(contents, doc);
166
216
  return contents;
167
217
  };
218
+ export const de_ListSupplementalTaxRegistrationsCommand = async (output, context) => {
219
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
220
+ return de_CommandError(output, context);
221
+ }
222
+ const contents = map({
223
+ $metadata: deserializeMetadata(output),
224
+ });
225
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
226
+ const doc = take(data, {
227
+ nextToken: __expectString,
228
+ taxRegistrations: _json,
229
+ });
230
+ Object.assign(contents, doc);
231
+ return contents;
232
+ };
168
233
  export const de_ListTaxRegistrationsCommand = async (output, context) => {
169
234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
170
235
  return de_CommandError(output, context);
@@ -180,6 +245,21 @@ export const de_ListTaxRegistrationsCommand = async (output, context) => {
180
245
  Object.assign(contents, doc);
181
246
  return contents;
182
247
  };
248
+ export const de_PutSupplementalTaxRegistrationCommand = async (output, context) => {
249
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
250
+ return de_CommandError(output, context);
251
+ }
252
+ const contents = map({
253
+ $metadata: deserializeMetadata(output),
254
+ });
255
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
256
+ const doc = take(data, {
257
+ authorityId: __expectString,
258
+ status: __expectString,
259
+ });
260
+ Object.assign(contents, doc);
261
+ return contents;
262
+ };
183
263
  export const de_PutTaxRegistrationCommand = async (output, context) => {
184
264
  if (output.statusCode !== 200 && output.statusCode >= 300) {
185
265
  return de_CommandError(output, context);
@@ -1,10 +1,13 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BatchDeleteTaxRegistrationCommandInput, BatchDeleteTaxRegistrationCommandOutput } from "./commands/BatchDeleteTaxRegistrationCommand";
3
3
  import { BatchPutTaxRegistrationCommandInput, BatchPutTaxRegistrationCommandOutput } from "./commands/BatchPutTaxRegistrationCommand";
4
+ import { DeleteSupplementalTaxRegistrationCommandInput, DeleteSupplementalTaxRegistrationCommandOutput } from "./commands/DeleteSupplementalTaxRegistrationCommand";
4
5
  import { DeleteTaxRegistrationCommandInput, DeleteTaxRegistrationCommandOutput } from "./commands/DeleteTaxRegistrationCommand";
5
6
  import { GetTaxRegistrationCommandInput, GetTaxRegistrationCommandOutput } from "./commands/GetTaxRegistrationCommand";
6
7
  import { GetTaxRegistrationDocumentCommandInput, GetTaxRegistrationDocumentCommandOutput } from "./commands/GetTaxRegistrationDocumentCommand";
8
+ import { ListSupplementalTaxRegistrationsCommandInput, ListSupplementalTaxRegistrationsCommandOutput } from "./commands/ListSupplementalTaxRegistrationsCommand";
7
9
  import { ListTaxRegistrationsCommandInput, ListTaxRegistrationsCommandOutput } from "./commands/ListTaxRegistrationsCommand";
10
+ import { PutSupplementalTaxRegistrationCommandInput, PutSupplementalTaxRegistrationCommandOutput } from "./commands/PutSupplementalTaxRegistrationCommand";
8
11
  import { PutTaxRegistrationCommandInput, PutTaxRegistrationCommandOutput } from "./commands/PutTaxRegistrationCommand";
9
12
  import { TaxSettingsClient } from "./TaxSettingsClient";
10
13
  export interface TaxSettings {
@@ -20,6 +23,12 @@ export interface TaxSettings {
20
23
  batchPutTaxRegistration(args: BatchPutTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutTaxRegistrationCommandOutput>;
21
24
  batchPutTaxRegistration(args: BatchPutTaxRegistrationCommandInput, cb: (err: any, data?: BatchPutTaxRegistrationCommandOutput) => void): void;
22
25
  batchPutTaxRegistration(args: BatchPutTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutTaxRegistrationCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link DeleteSupplementalTaxRegistrationCommand}
28
+ */
29
+ deleteSupplementalTaxRegistration(args: DeleteSupplementalTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSupplementalTaxRegistrationCommandOutput>;
30
+ deleteSupplementalTaxRegistration(args: DeleteSupplementalTaxRegistrationCommandInput, cb: (err: any, data?: DeleteSupplementalTaxRegistrationCommandOutput) => void): void;
31
+ deleteSupplementalTaxRegistration(args: DeleteSupplementalTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSupplementalTaxRegistrationCommandOutput) => void): void;
23
32
  /**
24
33
  * @see {@link DeleteTaxRegistrationCommand}
25
34
  */
@@ -40,6 +49,13 @@ export interface TaxSettings {
40
49
  getTaxRegistrationDocument(args: GetTaxRegistrationDocumentCommandInput, options?: __HttpHandlerOptions): Promise<GetTaxRegistrationDocumentCommandOutput>;
41
50
  getTaxRegistrationDocument(args: GetTaxRegistrationDocumentCommandInput, cb: (err: any, data?: GetTaxRegistrationDocumentCommandOutput) => void): void;
42
51
  getTaxRegistrationDocument(args: GetTaxRegistrationDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTaxRegistrationDocumentCommandOutput) => void): void;
52
+ /**
53
+ * @see {@link ListSupplementalTaxRegistrationsCommand}
54
+ */
55
+ listSupplementalTaxRegistrations(): Promise<ListSupplementalTaxRegistrationsCommandOutput>;
56
+ listSupplementalTaxRegistrations(args: ListSupplementalTaxRegistrationsCommandInput, options?: __HttpHandlerOptions): Promise<ListSupplementalTaxRegistrationsCommandOutput>;
57
+ listSupplementalTaxRegistrations(args: ListSupplementalTaxRegistrationsCommandInput, cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void): void;
58
+ listSupplementalTaxRegistrations(args: ListSupplementalTaxRegistrationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSupplementalTaxRegistrationsCommandOutput) => void): void;
43
59
  /**
44
60
  * @see {@link ListTaxRegistrationsCommand}
45
61
  */
@@ -47,6 +63,12 @@ export interface TaxSettings {
47
63
  listTaxRegistrations(args: ListTaxRegistrationsCommandInput, options?: __HttpHandlerOptions): Promise<ListTaxRegistrationsCommandOutput>;
48
64
  listTaxRegistrations(args: ListTaxRegistrationsCommandInput, cb: (err: any, data?: ListTaxRegistrationsCommandOutput) => void): void;
49
65
  listTaxRegistrations(args: ListTaxRegistrationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTaxRegistrationsCommandOutput) => void): void;
66
+ /**
67
+ * @see {@link PutSupplementalTaxRegistrationCommand}
68
+ */
69
+ putSupplementalTaxRegistration(args: PutSupplementalTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<PutSupplementalTaxRegistrationCommandOutput>;
70
+ putSupplementalTaxRegistration(args: PutSupplementalTaxRegistrationCommandInput, cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void): void;
71
+ putSupplementalTaxRegistration(args: PutSupplementalTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSupplementalTaxRegistrationCommandOutput) => void): void;
50
72
  /**
51
73
  * @see {@link PutTaxRegistrationCommand}
52
74
  */
@@ -9,10 +9,13 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { BatchDeleteTaxRegistrationCommandInput, BatchDeleteTaxRegistrationCommandOutput } from "./commands/BatchDeleteTaxRegistrationCommand";
11
11
  import { BatchPutTaxRegistrationCommandInput, BatchPutTaxRegistrationCommandOutput } from "./commands/BatchPutTaxRegistrationCommand";
12
+ import { DeleteSupplementalTaxRegistrationCommandInput, DeleteSupplementalTaxRegistrationCommandOutput } from "./commands/DeleteSupplementalTaxRegistrationCommand";
12
13
  import { DeleteTaxRegistrationCommandInput, DeleteTaxRegistrationCommandOutput } from "./commands/DeleteTaxRegistrationCommand";
13
14
  import { GetTaxRegistrationCommandInput, GetTaxRegistrationCommandOutput } from "./commands/GetTaxRegistrationCommand";
14
15
  import { GetTaxRegistrationDocumentCommandInput, GetTaxRegistrationDocumentCommandOutput } from "./commands/GetTaxRegistrationDocumentCommand";
16
+ import { ListSupplementalTaxRegistrationsCommandInput, ListSupplementalTaxRegistrationsCommandOutput } from "./commands/ListSupplementalTaxRegistrationsCommand";
15
17
  import { ListTaxRegistrationsCommandInput, ListTaxRegistrationsCommandOutput } from "./commands/ListTaxRegistrationsCommand";
18
+ import { PutSupplementalTaxRegistrationCommandInput, PutSupplementalTaxRegistrationCommandOutput } from "./commands/PutSupplementalTaxRegistrationCommand";
16
19
  import { PutTaxRegistrationCommandInput, PutTaxRegistrationCommandOutput } from "./commands/PutTaxRegistrationCommand";
17
20
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
18
21
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -20,11 +23,11 @@ export { __Client };
20
23
  /**
21
24
  * @public
22
25
  */
23
- export type ServiceInputTypes = BatchDeleteTaxRegistrationCommandInput | BatchPutTaxRegistrationCommandInput | DeleteTaxRegistrationCommandInput | GetTaxRegistrationCommandInput | GetTaxRegistrationDocumentCommandInput | ListTaxRegistrationsCommandInput | PutTaxRegistrationCommandInput;
26
+ export type ServiceInputTypes = BatchDeleteTaxRegistrationCommandInput | BatchPutTaxRegistrationCommandInput | DeleteSupplementalTaxRegistrationCommandInput | DeleteTaxRegistrationCommandInput | GetTaxRegistrationCommandInput | GetTaxRegistrationDocumentCommandInput | ListSupplementalTaxRegistrationsCommandInput | ListTaxRegistrationsCommandInput | PutSupplementalTaxRegistrationCommandInput | PutTaxRegistrationCommandInput;
24
27
  /**
25
28
  * @public
26
29
  */
27
- export type ServiceOutputTypes = BatchDeleteTaxRegistrationCommandOutput | BatchPutTaxRegistrationCommandOutput | DeleteTaxRegistrationCommandOutput | GetTaxRegistrationCommandOutput | GetTaxRegistrationDocumentCommandOutput | ListTaxRegistrationsCommandOutput | PutTaxRegistrationCommandOutput;
30
+ export type ServiceOutputTypes = BatchDeleteTaxRegistrationCommandOutput | BatchPutTaxRegistrationCommandOutput | DeleteSupplementalTaxRegistrationCommandOutput | DeleteTaxRegistrationCommandOutput | GetTaxRegistrationCommandOutput | GetTaxRegistrationDocumentCommandOutput | ListSupplementalTaxRegistrationsCommandOutput | ListTaxRegistrationsCommandOutput | PutSupplementalTaxRegistrationCommandOutput | PutTaxRegistrationCommandOutput;
28
31
  /**
29
32
  * @public
30
33
  */
@@ -79,26 +79,27 @@ declare const BatchPutTaxRegistrationCommand_base: {
79
79
  * </p>
80
80
  * <ul>
81
81
  * <li>
82
- * <p>If you use this operation to set a tax registration number (TRN) in Malaysia, only
83
- * resellers with a valid sales and service tax (SST) number are required to provide tax
84
- * registration information.</p>
82
+ * <p>The sector valid values are <code>Business</code> and <code>Individual</code>.</p>
85
83
  * </li>
86
84
  * <li>
87
- * <p>By using this API operation to set a TRN in Malaysia, Amazon Web Services will regard you as
88
- * self-declaring that you're an authorized business reseller registered with the Royal
89
- * Malaysia Customs Department (RMCD) and have a valid SST number.</p>
85
+ * <p>
86
+ * <code>RegistrationType</code> valid values are <code>NRIC</code> for individual, and TIN and sales and service tax (SST) for Business.</p>
90
87
  * </li>
91
88
  * <li>
92
- * <p>Amazon Web Services reserves the right to seek additional information and/or take other actions to
93
- * support your self-declaration as appropriate.</p>
89
+ * <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>
90
+ * </li>
91
+ * <li>
92
+ * <p>For business, you must specify a <code>businessRegistrationNumber</code> in <code>MalaysiaAdditionalInfo</code> with a TIN type and tax identification number.</p>
94
93
  * </li>
95
94
  * <li>
96
- * <p>If you're not a reseller of Amazon Web Services, we don't recommend that you use
97
- * this operation to set the TRN in Malaysia.</p>
95
+ * <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>
98
96
  * </li>
99
97
  * <li>
100
- * <p>Only use this API operation to upload the TRNs for accounts through which you're
101
- * reselling Amazon Web Services.</p>
98
+ * <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>
99
+ * </li>
100
+ * <li>
101
+ * <p>Amazon Web Services reserves the right to seek additional information and/or take other actions to
102
+ * support your self-declaration as appropriate.</p>
102
103
  * </li>
103
104
  * <li>
104
105
  * <p>Amazon Web Services is currently registered under the following service tax codes. You must include
@@ -221,7 +222,7 @@ declare const BatchPutTaxRegistrationCommand_base: {
221
222
  * ],
222
223
  * taxRegistrationEntry: { // TaxRegistrationEntry
223
224
  * registrationId: "STRING_VALUE", // required
224
- * registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST", // required
225
+ * registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST" || "TIN" || "NRIC", // required
225
226
  * legalName: "STRING_VALUE",
226
227
  * legalAddress: { // Address
227
228
  * addressLine1: "STRING_VALUE", // required
@@ -236,9 +237,11 @@ declare const BatchPutTaxRegistrationCommand_base: {
236
237
  * sector: "Business" || "Individual" || "Government",
237
238
  * additionalTaxInformation: { // AdditionalInfoRequest
238
239
  * malaysiaAdditionalInfo: { // MalaysiaAdditionalInfo
239
- * serviceTaxCodes: [ // MalaysiaServiceTaxCodesList // required
240
+ * serviceTaxCodes: [ // MalaysiaServiceTaxCodesList
240
241
  * "Consultancy" || "Digital Service And Electronic Medium" || "IT Services" || "Training Or Coaching",
241
242
  * ],
243
+ * taxInformationNumber: "STRING_VALUE",
244
+ * businessRegistrationNumber: "STRING_VALUE",
242
245
  * },
243
246
  * israelAdditionalInfo: { // IsraelAdditionalInfo
244
247
  * dealerType: "Authorized" || "Non-authorized", // required
@@ -0,0 +1,84 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteSupplementalTaxRegistrationRequest, DeleteSupplementalTaxRegistrationResponse } 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 DeleteSupplementalTaxRegistrationCommand}.
14
+ */
15
+ export interface DeleteSupplementalTaxRegistrationCommandInput extends DeleteSupplementalTaxRegistrationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteSupplementalTaxRegistrationCommand}.
21
+ */
22
+ export interface DeleteSupplementalTaxRegistrationCommandOutput extends DeleteSupplementalTaxRegistrationResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteSupplementalTaxRegistrationCommand_base: {
25
+ new (input: DeleteSupplementalTaxRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSupplementalTaxRegistrationCommandInput, DeleteSupplementalTaxRegistrationCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteSupplementalTaxRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSupplementalTaxRegistrationCommandInput, DeleteSupplementalTaxRegistrationCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Deletes a supplemental tax registration for a single account.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { TaxSettingsClient, DeleteSupplementalTaxRegistrationCommand } from "@aws-sdk/client-taxsettings"; // ES Modules import
37
+ * // const { TaxSettingsClient, DeleteSupplementalTaxRegistrationCommand } = require("@aws-sdk/client-taxsettings"); // CommonJS import
38
+ * const client = new TaxSettingsClient(config);
39
+ * const input = { // DeleteSupplementalTaxRegistrationRequest
40
+ * authorityId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteSupplementalTaxRegistrationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteSupplementalTaxRegistrationCommandInput - {@link DeleteSupplementalTaxRegistrationCommandInput}
49
+ * @returns {@link DeleteSupplementalTaxRegistrationCommandOutput}
50
+ * @see {@link DeleteSupplementalTaxRegistrationCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteSupplementalTaxRegistrationCommandOutput} for command's `response` shape.
52
+ * @see {@link TaxSettingsClientResolvedConfig | config} for TaxSettingsClient's `config` shape.
53
+ *
54
+ * @throws {@link ConflictException} (client fault)
55
+ * <p>The exception when the input is creating conflict with the given state.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>The exception thrown when an unexpected error occurs when processing a request.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The exception thrown when the input doesn't have a resource associated to it.</p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>The exception when the input doesn't pass validation for at least one of the input
65
+ * parameters. </p>
66
+ *
67
+ * @throws {@link TaxSettingsServiceException}
68
+ * <p>Base exception class for all service exceptions from TaxSettings service.</p>
69
+ *
70
+ * @public
71
+ */
72
+ export declare class DeleteSupplementalTaxRegistrationCommand extends DeleteSupplementalTaxRegistrationCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: DeleteSupplementalTaxRegistrationRequest;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: DeleteSupplementalTaxRegistrationCommandInput;
81
+ output: DeleteSupplementalTaxRegistrationCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -42,7 +42,7 @@ declare const GetTaxRegistrationCommand_base: {
42
42
  * // { // GetTaxRegistrationResponse
43
43
  * // taxRegistration: { // TaxRegistration
44
44
  * // registrationId: "STRING_VALUE", // required
45
- * // registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST", // required
45
+ * // registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST" || "TIN" || "NRIC", // required
46
46
  * // legalName: "STRING_VALUE", // required
47
47
  * // status: "Verified" || "Pending" || "Deleted" || "Rejected", // required
48
48
  * // sector: "Business" || "Individual" || "Government",
@@ -55,9 +55,11 @@ declare const GetTaxRegistrationCommand_base: {
55
55
  * // certifiedEmailId: "STRING_VALUE",
56
56
  * // additionalTaxInformation: { // AdditionalInfoResponse
57
57
  * // malaysiaAdditionalInfo: { // MalaysiaAdditionalInfo
58
- * // serviceTaxCodes: [ // MalaysiaServiceTaxCodesList // required
58
+ * // serviceTaxCodes: [ // MalaysiaServiceTaxCodesList
59
59
  * // "Consultancy" || "Digital Service And Electronic Medium" || "IT Services" || "Training Or Coaching",
60
60
  * // ],
61
+ * // taxInformationNumber: "STRING_VALUE",
62
+ * // businessRegistrationNumber: "STRING_VALUE",
61
63
  * // },
62
64
  * // israelAdditionalInfo: { // IsraelAdditionalInfo
63
65
  * // dealerType: "Authorized" || "Non-authorized", // required
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListSupplementalTaxRegistrationsRequest, ListSupplementalTaxRegistrationsResponse } 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 ListSupplementalTaxRegistrationsCommand}.
14
+ */
15
+ export interface ListSupplementalTaxRegistrationsCommandInput extends ListSupplementalTaxRegistrationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListSupplementalTaxRegistrationsCommand}.
21
+ */
22
+ export interface ListSupplementalTaxRegistrationsCommandOutput extends ListSupplementalTaxRegistrationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListSupplementalTaxRegistrationsCommand_base: {
25
+ new (input: ListSupplementalTaxRegistrationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSupplementalTaxRegistrationsCommandInput, ListSupplementalTaxRegistrationsCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListSupplementalTaxRegistrationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSupplementalTaxRegistrationsCommandInput, ListSupplementalTaxRegistrationsCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Retrieves supplemental tax registrations for a single account.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { TaxSettingsClient, ListSupplementalTaxRegistrationsCommand } from "@aws-sdk/client-taxsettings"; // ES Modules import
37
+ * // const { TaxSettingsClient, ListSupplementalTaxRegistrationsCommand } = require("@aws-sdk/client-taxsettings"); // CommonJS import
38
+ * const client = new TaxSettingsClient(config);
39
+ * const input = { // ListSupplementalTaxRegistrationsRequest
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListSupplementalTaxRegistrationsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListSupplementalTaxRegistrationsResponse
46
+ * // taxRegistrations: [ // SupplementalTaxRegistrationList // required
47
+ * // { // SupplementalTaxRegistration
48
+ * // registrationId: "STRING_VALUE", // required
49
+ * // registrationType: "VAT", // required
50
+ * // legalName: "STRING_VALUE", // required
51
+ * // address: { // Address
52
+ * // addressLine1: "STRING_VALUE", // required
53
+ * // addressLine2: "STRING_VALUE",
54
+ * // addressLine3: "STRING_VALUE",
55
+ * // districtOrCounty: "STRING_VALUE",
56
+ * // city: "STRING_VALUE", // required
57
+ * // stateOrRegion: "STRING_VALUE",
58
+ * // postalCode: "STRING_VALUE", // required
59
+ * // countryCode: "STRING_VALUE", // required
60
+ * // },
61
+ * // authorityId: "STRING_VALUE", // required
62
+ * // status: "Verified" || "Pending" || "Deleted" || "Rejected", // required
63
+ * // },
64
+ * // ],
65
+ * // nextToken: "STRING_VALUE",
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param ListSupplementalTaxRegistrationsCommandInput - {@link ListSupplementalTaxRegistrationsCommandInput}
71
+ * @returns {@link ListSupplementalTaxRegistrationsCommandOutput}
72
+ * @see {@link ListSupplementalTaxRegistrationsCommandInput} for command's `input` shape.
73
+ * @see {@link ListSupplementalTaxRegistrationsCommandOutput} for command's `response` shape.
74
+ * @see {@link TaxSettingsClientResolvedConfig | config} for TaxSettingsClient's `config` shape.
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>The exception thrown when an unexpected error occurs when processing a request.</p>
78
+ *
79
+ * @throws {@link ResourceNotFoundException} (client fault)
80
+ * <p>The exception thrown when the input doesn't have a resource associated to it.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The exception when the input doesn't pass validation for at least one of the input
84
+ * parameters. </p>
85
+ *
86
+ * @throws {@link TaxSettingsServiceException}
87
+ * <p>Base exception class for all service exceptions from TaxSettings service.</p>
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListSupplementalTaxRegistrationsCommand extends ListSupplementalTaxRegistrationsCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListSupplementalTaxRegistrationsRequest;
96
+ output: ListSupplementalTaxRegistrationsResponse;
97
+ };
98
+ sdk: {
99
+ input: ListSupplementalTaxRegistrationsCommandInput;
100
+ output: ListSupplementalTaxRegistrationsCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -48,7 +48,7 @@ declare const ListTaxRegistrationsCommand_base: {
48
48
  * // accountId: "STRING_VALUE",
49
49
  * // taxRegistration: { // TaxRegistrationWithJurisdiction
50
50
  * // registrationId: "STRING_VALUE", // required
51
- * // registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST", // required
51
+ * // registrationType: "VAT" || "GST" || "CPF" || "CNPJ" || "SST" || "TIN" || "NRIC", // required
52
52
  * // legalName: "STRING_VALUE", // required
53
53
  * // status: "Verified" || "Pending" || "Deleted" || "Rejected", // required
54
54
  * // sector: "Business" || "Individual" || "Government",
@@ -61,9 +61,11 @@ declare const ListTaxRegistrationsCommand_base: {
61
61
  * // certifiedEmailId: "STRING_VALUE",
62
62
  * // additionalTaxInformation: { // AdditionalInfoResponse
63
63
  * // malaysiaAdditionalInfo: { // MalaysiaAdditionalInfo
64
- * // serviceTaxCodes: [ // MalaysiaServiceTaxCodesList // required
64
+ * // serviceTaxCodes: [ // MalaysiaServiceTaxCodesList
65
65
  * // "Consultancy" || "Digital Service And Electronic Medium" || "IT Services" || "Training Or Coaching",
66
66
  * // ],
67
+ * // taxInformationNumber: "STRING_VALUE",
68
+ * // businessRegistrationNumber: "STRING_VALUE",
67
69
  * // },
68
70
  * // israelAdditionalInfo: { // IsraelAdditionalInfo
69
71
  * // dealerType: "Authorized" || "Non-authorized", // required
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { PutSupplementalTaxRegistrationRequest, PutSupplementalTaxRegistrationResponse } 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 PutSupplementalTaxRegistrationCommand}.
14
+ */
15
+ export interface PutSupplementalTaxRegistrationCommandInput extends PutSupplementalTaxRegistrationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutSupplementalTaxRegistrationCommand}.
21
+ */
22
+ export interface PutSupplementalTaxRegistrationCommandOutput extends PutSupplementalTaxRegistrationResponse, __MetadataBearer {
23
+ }
24
+ declare const PutSupplementalTaxRegistrationCommand_base: {
25
+ new (input: PutSupplementalTaxRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl<PutSupplementalTaxRegistrationCommandInput, PutSupplementalTaxRegistrationCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutSupplementalTaxRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl<PutSupplementalTaxRegistrationCommandInput, PutSupplementalTaxRegistrationCommandOutput, TaxSettingsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Stores supplemental tax registration for a single account.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { TaxSettingsClient, PutSupplementalTaxRegistrationCommand } from "@aws-sdk/client-taxsettings"; // ES Modules import
37
+ * // const { TaxSettingsClient, PutSupplementalTaxRegistrationCommand } = require("@aws-sdk/client-taxsettings"); // CommonJS import
38
+ * const client = new TaxSettingsClient(config);
39
+ * const input = { // PutSupplementalTaxRegistrationRequest
40
+ * taxRegistrationEntry: { // SupplementalTaxRegistrationEntry
41
+ * registrationId: "STRING_VALUE", // required
42
+ * registrationType: "VAT", // required
43
+ * legalName: "STRING_VALUE", // required
44
+ * address: { // Address
45
+ * addressLine1: "STRING_VALUE", // required
46
+ * addressLine2: "STRING_VALUE",
47
+ * addressLine3: "STRING_VALUE",
48
+ * districtOrCounty: "STRING_VALUE",
49
+ * city: "STRING_VALUE", // required
50
+ * stateOrRegion: "STRING_VALUE",
51
+ * postalCode: "STRING_VALUE", // required
52
+ * countryCode: "STRING_VALUE", // required
53
+ * },
54
+ * },
55
+ * };
56
+ * const command = new PutSupplementalTaxRegistrationCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // PutSupplementalTaxRegistrationResponse
59
+ * // authorityId: "STRING_VALUE", // required
60
+ * // status: "Verified" || "Pending" || "Deleted" || "Rejected", // required
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param PutSupplementalTaxRegistrationCommandInput - {@link PutSupplementalTaxRegistrationCommandInput}
66
+ * @returns {@link PutSupplementalTaxRegistrationCommandOutput}
67
+ * @see {@link PutSupplementalTaxRegistrationCommandInput} for command's `input` shape.
68
+ * @see {@link PutSupplementalTaxRegistrationCommandOutput} for command's `response` shape.
69
+ * @see {@link TaxSettingsClientResolvedConfig | config} for TaxSettingsClient's `config` shape.
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>The exception when the input is creating conflict with the given state.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>The exception thrown when an unexpected error occurs when processing a request.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The exception when the input doesn't pass validation for at least one of the input
79
+ * parameters. </p>
80
+ *
81
+ * @throws {@link TaxSettingsServiceException}
82
+ * <p>Base exception class for all service exceptions from TaxSettings service.</p>
83
+ *
84
+ * @public
85
+ */
86
+ export declare class PutSupplementalTaxRegistrationCommand extends PutSupplementalTaxRegistrationCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: PutSupplementalTaxRegistrationRequest;
91
+ output: PutSupplementalTaxRegistrationResponse;
92
+ };
93
+ sdk: {
94
+ input: PutSupplementalTaxRegistrationCommandInput;
95
+ output: PutSupplementalTaxRegistrationCommandOutput;
96
+ };
97
+ };
98
+ }