Skip to content

Commit a35f8e8

Browse files
Uzbekistan Launch on TaxSettings Page
1 parent d96bdee commit a35f8e8

File tree

12 files changed

+430
-0
lines changed

12 files changed

+430
-0
lines changed

generator/ServiceModels/taxsettings/taxsettings-2018-05-10.api.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@
331331
"spainAdditionalInfo":{"shape":"SpainAdditionalInfo"},
332332
"turkeyAdditionalInfo":{"shape":"TurkeyAdditionalInfo"},
333333
"ukraineAdditionalInfo":{"shape":"UkraineAdditionalInfo"},
334+
"uzbekistanAdditionalInfo":{"shape":"UzbekistanAdditionalInfo"},
334335
"vietnamAdditionalInfo":{"shape":"VietnamAdditionalInfo"}
335336
}
336337
},
@@ -355,6 +356,7 @@
355356
"spainAdditionalInfo":{"shape":"SpainAdditionalInfo"},
356357
"turkeyAdditionalInfo":{"shape":"TurkeyAdditionalInfo"},
357358
"ukraineAdditionalInfo":{"shape":"UkraineAdditionalInfo"},
359+
"uzbekistanAdditionalInfo":{"shape":"UzbekistanAdditionalInfo"},
358360
"vietnamAdditionalInfo":{"shape":"VietnamAdditionalInfo"}
359361
}
360362
},
@@ -1548,6 +1550,20 @@
15481550
"min":1,
15491551
"pattern":"^https.*\\S.*$"
15501552
},
1553+
"UzbekistanAdditionalInfo":{
1554+
"type":"structure",
1555+
"members":{
1556+
"taxRegistrationNumberType":{"shape":"UzbekistanTaxRegistrationNumberType"},
1557+
"vatRegistrationNumber":{"shape":"VatRegistrationNumber"}
1558+
}
1559+
},
1560+
"UzbekistanTaxRegistrationNumberType":{
1561+
"type":"string",
1562+
"enum":[
1563+
"Business",
1564+
"Individual"
1565+
]
1566+
},
15511567
"ValidationException":{
15521568
"type":"structure",
15531569
"required":[
@@ -1586,6 +1602,10 @@
15861602
"type":"list",
15871603
"member":{"shape":"ValidationExceptionField"}
15881604
},
1605+
"VatRegistrationNumber":{
1606+
"type":"string",
1607+
"pattern":"^[0-9]{12}$"
1608+
},
15891609
"VerificationDetails":{
15901610
"type":"structure",
15911611
"members":{

generator/ServiceModels/taxsettings/taxsettings-2018-05-10.docs.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,19 @@
11271127
"GetTaxRegistrationDocumentResponse$presignedS3Url": "<p>The Amazon S3 presigned URL of the tax registration document. </p>"
11281128
}
11291129
},
1130+
"UzbekistanAdditionalInfo": {
1131+
"base": "<p> Additional tax information to specify for a TRN in Uzbekistan. </p>",
1132+
"refs": {
1133+
"AdditionalInfoRequest$uzbekistanAdditionalInfo": "<p> Additional tax information to specify for a TRN in Uzbekistan. </p>",
1134+
"AdditionalInfoResponse$uzbekistanAdditionalInfo": "<p> Additional tax information associated with your TRN in Uzbekistan. </p>"
1135+
}
1136+
},
1137+
"UzbekistanTaxRegistrationNumberType": {
1138+
"base": null,
1139+
"refs": {
1140+
"UzbekistanAdditionalInfo$taxRegistrationNumberType": "<p> The tax registration number type. The tax registration number type valid values are <code>Business</code> and <code>Individual</code>. </p>"
1141+
}
1142+
},
11301143
"ValidationException": {
11311144
"base": "<p>The exception when the input doesn't pass validation for at least one of the input parameters. </p>",
11321145
"refs": {
@@ -1150,6 +1163,12 @@
11501163
"ValidationException$fieldList": "<p>400</p>"
11511164
}
11521165
},
1166+
"VatRegistrationNumber": {
1167+
"base": null,
1168+
"refs": {
1169+
"UzbekistanAdditionalInfo$vatRegistrationNumber": "<p> The unique 12-digit number issued to identify VAT-registered identities in Uzbekistan. </p>"
1170+
}
1171+
},
11531172
"VerificationDetails": {
11541173
"base": "<p>Required information to verify your TRN.</p>",
11551174
"refs": {

generator/ServiceModels/taxsettings/taxsettings-2018-05-10.normal.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@
422422
"shape":"UkraineAdditionalInfo",
423423
"documentation":"<p> Additional tax information associated with your TRN in Ukraine. </p>"
424424
},
425+
"uzbekistanAdditionalInfo":{
426+
"shape":"UzbekistanAdditionalInfo",
427+
"documentation":"<p> Additional tax information to specify for a TRN in Uzbekistan. </p>"
428+
},
425429
"vietnamAdditionalInfo":{
426430
"shape":"VietnamAdditionalInfo",
427431
"documentation":"<p>Additional tax information to specify for a TRN in Vietnam. </p>"
@@ -504,6 +508,10 @@
504508
"shape":"UkraineAdditionalInfo",
505509
"documentation":"<p> Additional tax information associated with your TRN in Ukraine. </p>"
506510
},
511+
"uzbekistanAdditionalInfo":{
512+
"shape":"UzbekistanAdditionalInfo",
513+
"documentation":"<p> Additional tax information associated with your TRN in Uzbekistan. </p>"
514+
},
507515
"vietnamAdditionalInfo":{
508516
"shape":"VietnamAdditionalInfo",
509517
"documentation":"<p>Additional tax information to specify for a TRN in Vietnam. </p>"
@@ -2218,6 +2226,27 @@
22182226
"min":1,
22192227
"pattern":"^https.*\\S.*$"
22202228
},
2229+
"UzbekistanAdditionalInfo":{
2230+
"type":"structure",
2231+
"members":{
2232+
"taxRegistrationNumberType":{
2233+
"shape":"UzbekistanTaxRegistrationNumberType",
2234+
"documentation":"<p> The tax registration number type. The tax registration number type valid values are <code>Business</code> and <code>Individual</code>. </p>"
2235+
},
2236+
"vatRegistrationNumber":{
2237+
"shape":"VatRegistrationNumber",
2238+
"documentation":"<p> The unique 12-digit number issued to identify VAT-registered identities in Uzbekistan. </p>"
2239+
}
2240+
},
2241+
"documentation":"<p> Additional tax information to specify for a TRN in Uzbekistan. </p>"
2242+
},
2243+
"UzbekistanTaxRegistrationNumberType":{
2244+
"type":"string",
2245+
"enum":[
2246+
"Business",
2247+
"Individual"
2248+
]
2249+
},
22212250
"ValidationException":{
22222251
"type":"structure",
22232252
"required":[
@@ -2267,6 +2296,10 @@
22672296
"type":"list",
22682297
"member":{"shape":"ValidationExceptionField"}
22692298
},
2299+
"VatRegistrationNumber":{
2300+
"type":"string",
2301+
"pattern":"^[0-9]{12}$"
2302+
},
22702303
"VerificationDetails":{
22712304
"type":"structure",
22722305
"members":{

sdk/code-analysis/ServiceAnalysis/TaxSettings/Generated/PropertyValueRules.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@
513513
<property>Amazon.TaxSettings.Model.TurkeyAdditionalInfo.TaxOffice</property>
514514
<pattern>^[\s\S]*$</pattern>
515515
</property-value-rule>
516+
<property-value-rule>
517+
<property>Amazon.TaxSettings.Model.UzbekistanAdditionalInfo.VatRegistrationNumber</property>
518+
<pattern>^[0-9]{12}$</pattern>
519+
</property-value-rule>
516520
<property-value-rule>
517521
<property>Amazon.TaxSettings.Model.ValidationExceptionField.Name</property>
518522
<pattern>^(?!\s*$)[\s\S]+$</pattern>

sdk/src/Services/TaxSettings/Generated/Model/AdditionalInfoRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public partial class AdditionalInfoRequest
6565
private SpainAdditionalInfo _spainAdditionalInfo;
6666
private TurkeyAdditionalInfo _turkeyAdditionalInfo;
6767
private UkraineAdditionalInfo _ukraineAdditionalInfo;
68+
private UzbekistanAdditionalInfo _uzbekistanAdditionalInfo;
6869
private VietnamAdditionalInfo _vietnamAdditionalInfo;
6970

7071
/// <summary>
@@ -355,6 +356,24 @@ internal bool IsSetUkraineAdditionalInfo()
355356
return this._ukraineAdditionalInfo != null;
356357
}
357358

359+
/// <summary>
360+
/// Gets and sets the property UzbekistanAdditionalInfo.
361+
/// <para>
362+
/// Additional tax information to specify for a TRN in Uzbekistan.
363+
/// </para>
364+
/// </summary>
365+
public UzbekistanAdditionalInfo UzbekistanAdditionalInfo
366+
{
367+
get { return this._uzbekistanAdditionalInfo; }
368+
set { this._uzbekistanAdditionalInfo = value; }
369+
}
370+
371+
// Check to see if UzbekistanAdditionalInfo property is set
372+
internal bool IsSetUzbekistanAdditionalInfo()
373+
{
374+
return this._uzbekistanAdditionalInfo != null;
375+
}
376+
358377
/// <summary>
359378
/// Gets and sets the property VietnamAdditionalInfo.
360379
/// <para>

sdk/src/Services/TaxSettings/Generated/Model/AdditionalInfoResponse.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public partial class AdditionalInfoResponse
5454
private SpainAdditionalInfo _spainAdditionalInfo;
5555
private TurkeyAdditionalInfo _turkeyAdditionalInfo;
5656
private UkraineAdditionalInfo _ukraineAdditionalInfo;
57+
private UzbekistanAdditionalInfo _uzbekistanAdditionalInfo;
5758
private VietnamAdditionalInfo _vietnamAdditionalInfo;
5859

5960
/// <summary>
@@ -382,6 +383,24 @@ internal bool IsSetUkraineAdditionalInfo()
382383
return this._ukraineAdditionalInfo != null;
383384
}
384385

386+
/// <summary>
387+
/// Gets and sets the property UzbekistanAdditionalInfo.
388+
/// <para>
389+
/// Additional tax information associated with your TRN in Uzbekistan.
390+
/// </para>
391+
/// </summary>
392+
public UzbekistanAdditionalInfo UzbekistanAdditionalInfo
393+
{
394+
get { return this._uzbekistanAdditionalInfo; }
395+
set { this._uzbekistanAdditionalInfo = value; }
396+
}
397+
398+
// Check to see if UzbekistanAdditionalInfo property is set
399+
internal bool IsSetUzbekistanAdditionalInfo()
400+
{
401+
return this._uzbekistanAdditionalInfo != null;
402+
}
403+
385404
/// <summary>
386405
/// Gets and sets the property VietnamAdditionalInfo.
387406
/// <para>

sdk/src/Services/TaxSettings/Generated/Model/Internal/MarshallTransformations/AdditionalInfoRequestMarshaller.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,17 @@ public void Marshall(AdditionalInfoRequest requestObject, JsonMarshallerContext
224224
context.Writer.WriteObjectEnd();
225225
}
226226

227+
if(requestObject.IsSetUzbekistanAdditionalInfo())
228+
{
229+
context.Writer.WritePropertyName("uzbekistanAdditionalInfo");
230+
context.Writer.WriteObjectStart();
231+
232+
var marshaller = UzbekistanAdditionalInfoMarshaller.Instance;
233+
marshaller.Marshall(requestObject.UzbekistanAdditionalInfo, context);
234+
235+
context.Writer.WriteObjectEnd();
236+
}
237+
227238
if(requestObject.IsSetVietnamAdditionalInfo())
228239
{
229240
context.Writer.WritePropertyName("vietnamAdditionalInfo");

sdk/src/Services/TaxSettings/Generated/Model/Internal/MarshallTransformations/AdditionalInfoResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ public AdditionalInfoResponse Unmarshall(JsonUnmarshallerContext context)
174174
unmarshalledObject.UkraineAdditionalInfo = unmarshaller.Unmarshall(context);
175175
continue;
176176
}
177+
if (context.TestExpression("uzbekistanAdditionalInfo", targetDepth))
178+
{
179+
var unmarshaller = UzbekistanAdditionalInfoUnmarshaller.Instance;
180+
unmarshalledObject.UzbekistanAdditionalInfo = unmarshaller.Unmarshall(context);
181+
continue;
182+
}
177183
if (context.TestExpression("vietnamAdditionalInfo", targetDepth))
178184
{
179185
var unmarshaller = VietnamAdditionalInfoUnmarshaller.Instance;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the taxsettings-2018-05-10.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Globalization;
22+
using System.IO;
23+
using System.Text;
24+
using System.Xml.Serialization;
25+
26+
using Amazon.TaxSettings.Model;
27+
using Amazon.Runtime;
28+
using Amazon.Runtime.Internal;
29+
using Amazon.Runtime.Internal.Transform;
30+
using Amazon.Runtime.Internal.Util;
31+
using ThirdParty.Json.LitJson;
32+
33+
#pragma warning disable CS0612,CS0618
34+
namespace Amazon.TaxSettings.Model.Internal.MarshallTransformations
35+
{
36+
/// <summary>
37+
/// UzbekistanAdditionalInfo Marshaller
38+
/// </summary>
39+
public class UzbekistanAdditionalInfoMarshaller : IRequestMarshaller<UzbekistanAdditionalInfo, JsonMarshallerContext>
40+
{
41+
/// <summary>
42+
/// Unmarshaller the response from the service to the response class.
43+
/// </summary>
44+
/// <param name="requestObject"></param>
45+
/// <param name="context"></param>
46+
/// <returns></returns>
47+
public void Marshall(UzbekistanAdditionalInfo requestObject, JsonMarshallerContext context)
48+
{
49+
if(requestObject == null)
50+
return;
51+
if(requestObject.IsSetTaxRegistrationNumberType())
52+
{
53+
context.Writer.WritePropertyName("taxRegistrationNumberType");
54+
context.Writer.Write(requestObject.TaxRegistrationNumberType);
55+
}
56+
57+
if(requestObject.IsSetVatRegistrationNumber())
58+
{
59+
context.Writer.WritePropertyName("vatRegistrationNumber");
60+
context.Writer.Write(requestObject.VatRegistrationNumber);
61+
}
62+
63+
}
64+
65+
/// <summary>
66+
/// Singleton Marshaller.
67+
/// </summary>
68+
public readonly static UzbekistanAdditionalInfoMarshaller Instance = new UzbekistanAdditionalInfoMarshaller();
69+
70+
}
71+
}

0 commit comments

Comments
 (0)