Skip to content

Commit ff74907

Browse files
author
awstools
committed
feat(client-taxsettings): PutTaxRegistration API changes for Egypt, Greece, Vietnam countries
1 parent 027515e commit ff74907

File tree

11 files changed

+324
-18
lines changed

11 files changed

+324
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface BatchGetTaxExemptionsCommandInput extends BatchGetTaxExemptions
2828
export interface BatchGetTaxExemptionsCommandOutput extends BatchGetTaxExemptionsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Get the active tax exemptions for a given list of accounts.
31+
* <p>Get the active tax exemptions for a given list of accounts. The IAM action is <code>tax:GetExemptions</code>.
3232
* </p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,19 @@ export interface BatchPutTaxRegistrationCommandOutput extends BatchPutTaxRegistr
301301
* saudiArabiaAdditionalInfo: { // SaudiArabiaAdditionalInfo
302302
* taxRegistrationNumberType: "TaxRegistrationNumber" || "TaxIdentificationNumber" || "CommercialRegistrationNumber",
303303
* },
304+
* vietnamAdditionalInfo: { // VietnamAdditionalInfo
305+
* enterpriseIdentificationNumber: "STRING_VALUE",
306+
* electronicTransactionCodeNumber: "STRING_VALUE",
307+
* paymentVoucherNumber: "STRING_VALUE",
308+
* paymentVoucherNumberDate: "STRING_VALUE",
309+
* },
310+
* egyptAdditionalInfo: { // EgyptAdditionalInfo
311+
* uniqueIdentificationNumber: "STRING_VALUE",
312+
* uniqueIdentificationNumberExpirationDate: "STRING_VALUE",
313+
* },
314+
* greeceAdditionalInfo: { // GreeceAdditionalInfo
315+
* contractingAuthorityCode: "STRING_VALUE",
316+
* },
304317
* },
305318
* verificationDetails: { // VerificationDetails
306319
* dateOfBirth: "STRING_VALUE",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface GetTaxExemptionTypesCommandInput extends GetTaxExemptionTypesRe
2828
export interface GetTaxExemptionTypesCommandOutput extends GetTaxExemptionTypesResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Get supported tax exemption types.
31+
* <p>Get supported tax exemption types. The IAM action is <code>tax:GetExemptions</code>.
3232
* </p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,19 @@ export interface GetTaxRegistrationCommandOutput extends GetTaxRegistrationRespo
125125
* // indiaAdditionalInfo: { // IndiaAdditionalInfo
126126
* // pan: "STRING_VALUE",
127127
* // },
128+
* // vietnamAdditionalInfo: { // VietnamAdditionalInfo
129+
* // enterpriseIdentificationNumber: "STRING_VALUE",
130+
* // electronicTransactionCodeNumber: "STRING_VALUE",
131+
* // paymentVoucherNumber: "STRING_VALUE",
132+
* // paymentVoucherNumberDate: "STRING_VALUE",
133+
* // },
134+
* // egyptAdditionalInfo: { // EgyptAdditionalInfo
135+
* // uniqueIdentificationNumber: "STRING_VALUE",
136+
* // uniqueIdentificationNumberExpirationDate: "STRING_VALUE",
137+
* // },
138+
* // greeceAdditionalInfo: { // GreeceAdditionalInfo
139+
* // contractingAuthorityCode: "STRING_VALUE",
140+
* // },
128141
* // },
129142
* // legalAddress: { // Address
130143
* // addressLine1: "STRING_VALUE", // required

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export interface ListTaxExemptionsCommandInput extends ListTaxExemptionsRequest
2828
export interface ListTaxExemptionsCommandOutput extends ListTaxExemptionsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Retrieves the tax exemption of accounts listed in a consolidated billing family.
32-
* </p>
31+
* <p>Retrieves the tax exemption of accounts listed in a consolidated billing family. The IAM action is <code>tax:GetExemptions</code>.</p>
3332
* @example
3433
* Use a bare-bones client and the command you need to make an API call.
3534
* ```javascript

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,19 @@ export interface ListTaxRegistrationsCommandOutput extends ListTaxRegistrationsR
131131
* // indiaAdditionalInfo: { // IndiaAdditionalInfo
132132
* // pan: "STRING_VALUE",
133133
* // },
134+
* // vietnamAdditionalInfo: { // VietnamAdditionalInfo
135+
* // enterpriseIdentificationNumber: "STRING_VALUE",
136+
* // electronicTransactionCodeNumber: "STRING_VALUE",
137+
* // paymentVoucherNumber: "STRING_VALUE",
138+
* // paymentVoucherNumberDate: "STRING_VALUE",
139+
* // },
140+
* // egyptAdditionalInfo: { // EgyptAdditionalInfo
141+
* // uniqueIdentificationNumber: "STRING_VALUE",
142+
* // uniqueIdentificationNumberExpirationDate: "STRING_VALUE",
143+
* // },
144+
* // greeceAdditionalInfo: { // GreeceAdditionalInfo
145+
* // contractingAuthorityCode: "STRING_VALUE",
146+
* // },
134147
* // },
135148
* // jurisdiction: { // Jurisdiction
136149
* // stateOrRegion: "STRING_VALUE",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface PutTaxExemptionCommandInput extends PutTaxExemptionRequest {}
2828
export interface PutTaxExemptionCommandOutput extends PutTaxExemptionResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Adds the tax exemption for a single account or all accounts listed in a consolidated billing family.
31+
* <p>Adds the tax exemption for a single account or all accounts listed in a consolidated billing family. The IAM action is <code>tax:UpdateExemptions</code>.
3232
* </p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.
@@ -65,15 +65,15 @@ export interface PutTaxExemptionCommandOutput extends PutTaxExemptionResponse, _
6565
* @see {@link TaxSettingsClientResolvedConfig | config} for TaxSettingsClient's `config` shape.
6666
*
6767
* @throws {@link AccessDeniedException} (client fault)
68-
* <p>The access is denied for the Amazon Web Services Support API.
68+
* <p>The access is denied for the Amazon Web ServicesSupport API.
6969
* </p>
7070
*
7171
* @throws {@link AttachmentUploadException} (client fault)
72-
* <p>Failed to upload the tax exemption document to Amazon Web Services Support case.
72+
* <p>Failed to upload the tax exemption document to Amazon Web ServicesSupport case.
7373
* </p>
7474
*
7575
* @throws {@link CaseCreationLimitExceededException} (client fault)
76-
* <p>You've exceeded the Amazon Web Services Support case creation limit for your account.
76+
* <p>You've exceeded the Amazon Web ServicesSupport case creation limit for your account.
7777
* </p>
7878
*
7979
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,19 @@ export interface PutTaxRegistrationCommandOutput extends PutTaxRegistrationRespo
297297
* saudiArabiaAdditionalInfo: { // SaudiArabiaAdditionalInfo
298298
* taxRegistrationNumberType: "TaxRegistrationNumber" || "TaxIdentificationNumber" || "CommercialRegistrationNumber",
299299
* },
300+
* vietnamAdditionalInfo: { // VietnamAdditionalInfo
301+
* enterpriseIdentificationNumber: "STRING_VALUE",
302+
* electronicTransactionCodeNumber: "STRING_VALUE",
303+
* paymentVoucherNumber: "STRING_VALUE",
304+
* paymentVoucherNumberDate: "STRING_VALUE",
305+
* },
306+
* egyptAdditionalInfo: { // EgyptAdditionalInfo
307+
* uniqueIdentificationNumber: "STRING_VALUE",
308+
* uniqueIdentificationNumberExpirationDate: "STRING_VALUE",
309+
* },
310+
* greeceAdditionalInfo: { // GreeceAdditionalInfo
311+
* contractingAuthorityCode: "STRING_VALUE",
312+
* },
300313
* },
301314
* verificationDetails: { // VerificationDetails
302315
* dateOfBirth: "STRING_VALUE",

clients/client-taxsettings/src/models/models_0.ts

Lines changed: 105 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "
44
import { TaxSettingsServiceException as __BaseException } from "./TaxSettingsServiceException";
55

66
/**
7-
* <p>The access is denied for the Amazon Web Services Support API.
7+
* <p>The access is denied for the Amazon Web ServicesSupport API.
88
* </p>
99
* @public
1010
*/
@@ -263,6 +263,24 @@ export interface CanadaAdditionalInfo {
263263
isResellerAccount?: boolean | undefined;
264264
}
265265

266+
/**
267+
* <p>Additional tax information to specify for a TRN in Egypt.</p>
268+
* @public
269+
*/
270+
export interface EgyptAdditionalInfo {
271+
/**
272+
* <p>The unique identification number provided by the Egypt Tax Authority.</p>
273+
* @public
274+
*/
275+
uniqueIdentificationNumber?: string | undefined;
276+
277+
/**
278+
* <p>The expiration date of the unique identification number provided by the Egypt Tax Authority.</p>
279+
* @public
280+
*/
281+
uniqueIdentificationNumberExpirationDate?: string | undefined;
282+
}
283+
266284
/**
267285
* <p> Additional tax information associated with your TRN in Estonia.</p>
268286
* @public
@@ -307,6 +325,19 @@ export interface GeorgiaAdditionalInfo {
307325
personType: PersonType | undefined;
308326
}
309327

328+
/**
329+
* <p>Additional tax information to specify for a TRN in Greece.
330+
* </p>
331+
* @public
332+
*/
333+
export interface GreeceAdditionalInfo {
334+
/**
335+
* <p>The code of contracting authority for e-invoicing.</p>
336+
* @public
337+
*/
338+
contractingAuthorityCode?: string | undefined;
339+
}
340+
310341
/**
311342
* <p>
312343
* Additional tax information in India.
@@ -688,6 +719,36 @@ export interface UkraineAdditionalInfo {
688719
ukraineTrnType: UkraineTrnType | undefined;
689720
}
690721

722+
/**
723+
* <p>Additional tax information to specify for a TRN in Vietnam.</p>
724+
* @public
725+
*/
726+
export interface VietnamAdditionalInfo {
727+
/**
728+
* <p>The enterprise identification number for tax registration.</p>
729+
* @public
730+
*/
731+
enterpriseIdentificationNumber?: string | undefined;
732+
733+
/**
734+
* <p>The electronic transaction code number on the tax return document.</p>
735+
* @public
736+
*/
737+
electronicTransactionCodeNumber?: string | undefined;
738+
739+
/**
740+
* <p>The payment voucher number on the tax return payment document.</p>
741+
* @public
742+
*/
743+
paymentVoucherNumber?: string | undefined;
744+
745+
/**
746+
* <p>The date on the tax return payment document.</p>
747+
* @public
748+
*/
749+
paymentVoucherNumberDate?: string | undefined;
750+
}
751+
691752
/**
692753
* <p> Additional tax information associated with your TRN. The Tax Settings API returns
693754
* country-specific information in the response when any additional information is present with
@@ -804,6 +865,27 @@ export interface AdditionalInfoResponse {
804865
* @public
805866
*/
806867
indiaAdditionalInfo?: IndiaAdditionalInfo | undefined;
868+
869+
/**
870+
* <p>Additional tax information to specify for a TRN in Vietnam.
871+
* </p>
872+
* @public
873+
*/
874+
vietnamAdditionalInfo?: VietnamAdditionalInfo | undefined;
875+
876+
/**
877+
* <p>Additional tax information to specify for a TRN in Egypt.
878+
* </p>
879+
* @public
880+
*/
881+
egyptAdditionalInfo?: EgyptAdditionalInfo | undefined;
882+
883+
/**
884+
* <p>Additional tax information to specify for a TRN in Greece.
885+
* </p>
886+
* @public
887+
*/
888+
greeceAdditionalInfo?: GreeceAdditionalInfo | undefined;
807889
}
808890

809891
/**
@@ -1082,10 +1164,30 @@ export interface AdditionalInfoRequest {
10821164
* @public
10831165
*/
10841166
saudiArabiaAdditionalInfo?: SaudiArabiaAdditionalInfo | undefined;
1167+
1168+
/**
1169+
* <p>Additional tax information to specify for a TRN in Vietnam.
1170+
* </p>
1171+
* @public
1172+
*/
1173+
vietnamAdditionalInfo?: VietnamAdditionalInfo | undefined;
1174+
1175+
/**
1176+
* <p>Additional tax information to specify for a TRN in Egypt.
1177+
* </p>
1178+
* @public
1179+
*/
1180+
egyptAdditionalInfo?: EgyptAdditionalInfo | undefined;
1181+
1182+
/**
1183+
* <p>Additional tax information to specify for a TRN in Greece.</p>
1184+
* @public
1185+
*/
1186+
greeceAdditionalInfo?: GreeceAdditionalInfo | undefined;
10851187
}
10861188

10871189
/**
1088-
* <p>Failed to upload the tax exemption document to Amazon Web Services Support case.
1190+
* <p>Failed to upload the tax exemption document to Amazon Web ServicesSupport case.
10891191
* </p>
10901192
* @public
10911193
*/
@@ -1700,7 +1802,7 @@ export interface BatchPutTaxRegistrationResponse {
17001802
}
17011803

17021804
/**
1703-
* <p>You've exceeded the Amazon Web Services Support case creation limit for your account.
1805+
* <p>You've exceeded the Amazon Web ServicesSupport case creation limit for your account.
17041806
* </p>
17051807
* @public
17061808
*/

clients/client-taxsettings/src/protocols/Aws_restJson1.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ import {
7878
CaseCreationLimitExceededException,
7979
ConflictException,
8080
DestinationS3Location,
81+
EgyptAdditionalInfo,
8182
EstoniaAdditionalInfo,
8283
ExemptionCertificate,
8384
GeorgiaAdditionalInfo,
85+
GreeceAdditionalInfo,
8486
InternalServerException,
8587
IsraelAdditionalInfo,
8688
ItalyAdditionalInfo,
@@ -105,6 +107,7 @@ import {
105107
UkraineAdditionalInfo,
106108
ValidationException,
107109
VerificationDetails,
110+
VietnamAdditionalInfo,
108111
} from "../models/models_0";
109112
import { TaxSettingsServiceException as __BaseException } from "../models/TaxSettingsServiceException";
110113

@@ -979,6 +982,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
979982

980983
// se_DestinationS3Location omitted.
981984

985+
// se_EgyptAdditionalInfo omitted.
986+
982987
// se_EstoniaAdditionalInfo omitted.
983988

984989
/**
@@ -993,6 +998,8 @@ const se_ExemptionCertificate = (input: ExemptionCertificate, context: __SerdeCo
993998

994999
// se_GeorgiaAdditionalInfo omitted.
9951000

1001+
// se_GreeceAdditionalInfo omitted.
1002+
9961003
// se_IsraelAdditionalInfo omitted.
9971004

9981005
// se_ItalyAdditionalInfo omitted.
@@ -1080,6 +1087,8 @@ const se_VerificationDetails = (input: VerificationDetails, context: __SerdeCont
10801087
});
10811088
};
10821089

1090+
// se_VietnamAdditionalInfo omitted.
1091+
10831092
// de_AccountDetails omitted.
10841093

10851094
// de_AccountDetailsList omitted.
@@ -1110,10 +1119,14 @@ const se_VerificationDetails = (input: VerificationDetails, context: __SerdeCont
11101119

11111120
// de_CanadaAdditionalInfo omitted.
11121121

1122+
// de_EgyptAdditionalInfo omitted.
1123+
11131124
// de_EstoniaAdditionalInfo omitted.
11141125

11151126
// de_GeorgiaAdditionalInfo omitted.
11161127

1128+
// de_GreeceAdditionalInfo omitted.
1129+
11171130
// de_IndiaAdditionalInfo omitted.
11181131

11191132
// de_IsraelAdditionalInfo omitted.
@@ -1215,6 +1228,8 @@ const de_TaxExemptions = (output: any, context: __SerdeContext): TaxExemption[]
12151228

12161229
// de_ValidationExceptionFieldList omitted.
12171230

1231+
// de_VietnamAdditionalInfo omitted.
1232+
12181233
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
12191234
httpStatusCode: output.statusCode,
12201235
requestId:

0 commit comments

Comments
 (0)