Skip to content

Commit f7124f2

Browse files
Indonesia SOR Tax Registration Launch
1 parent 85a904b commit f7124f2

20 files changed

+1347
-4
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@
320320
"estoniaAdditionalInfo":{"shape":"EstoniaAdditionalInfo"},
321321
"georgiaAdditionalInfo":{"shape":"GeorgiaAdditionalInfo"},
322322
"greeceAdditionalInfo":{"shape":"GreeceAdditionalInfo"},
323+
"indonesiaAdditionalInfo":{"shape":"IndonesiaAdditionalInfo"},
323324
"israelAdditionalInfo":{"shape":"IsraelAdditionalInfo"},
324325
"italyAdditionalInfo":{"shape":"ItalyAdditionalInfo"},
325326
"kenyaAdditionalInfo":{"shape":"KenyaAdditionalInfo"},
@@ -345,6 +346,7 @@
345346
"georgiaAdditionalInfo":{"shape":"GeorgiaAdditionalInfo"},
346347
"greeceAdditionalInfo":{"shape":"GreeceAdditionalInfo"},
347348
"indiaAdditionalInfo":{"shape":"IndiaAdditionalInfo"},
349+
"indonesiaAdditionalInfo":{"shape":"IndonesiaAdditionalInfo"},
348350
"israelAdditionalInfo":{"shape":"IsraelAdditionalInfo"},
349351
"italyAdditionalInfo":{"shape":"ItalyAdditionalInfo"},
350352
"kenyaAdditionalInfo":{"shape":"KenyaAdditionalInfo"},
@@ -647,6 +649,10 @@
647649
"type":"string",
648650
"pattern":"^(\\d{4}-(0[0-9]|1[0-2])-([0-2][0-9]|3[0-1]))$"
649651
},
652+
"DecisionNumber":{
653+
"type":"string",
654+
"pattern":"^([a-zA-Z0-9/.\\-]{0,200})$"
655+
},
650656
"DeleteSupplementalTaxRegistrationRequest":{
651657
"type":"structure",
652658
"required":["authorityId"],
@@ -854,6 +860,23 @@
854860
"type":"string",
855861
"pattern":"^([0-9]{10})$"
856862
},
863+
"IndonesiaAdditionalInfo":{
864+
"type":"structure",
865+
"members":{
866+
"decisionNumber":{"shape":"DecisionNumber"},
867+
"ppnExceptionDesignationCode":{"shape":"PpnExceptionDesignationCode"},
868+
"taxRegistrationNumberType":{"shape":"IndonesiaTaxRegistrationNumberType"}
869+
}
870+
},
871+
"IndonesiaTaxRegistrationNumberType":{
872+
"type":"string",
873+
"enum":[
874+
"NIK",
875+
"PassportNumber",
876+
"NPWP",
877+
"NITKU"
878+
]
879+
},
857880
"Industries":{
858881
"type":"string",
859882
"enum":[
@@ -1068,6 +1091,10 @@
10681091
"min":1,
10691092
"pattern":"^(?!\\s*$)[\\s\\S]+$"
10701093
},
1094+
"PpnExceptionDesignationCode":{
1095+
"type":"string",
1096+
"pattern":"^(01|02|03|07|08)$"
1097+
},
10711098
"PutSupplementalTaxRegistrationRequest":{
10721099
"type":"structure",
10731100
"required":["taxRegistrationEntry"],

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

Lines changed: 27 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 45 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,14 @@
290290
<property>Amazon.TaxSettings.Model.IndiaAdditionalInfo.Pan</property>
291291
<pattern>^[A-Z]{5}[0-9]{4}[A-Z]{1}$</pattern>
292292
</property-value-rule>
293+
<property-value-rule>
294+
<property>Amazon.TaxSettings.Model.IndonesiaAdditionalInfo.DecisionNumber</property>
295+
<pattern>^([a-zA-Z0-9/.\-]{0,200})$</pattern>
296+
</property-value-rule>
297+
<property-value-rule>
298+
<property>Amazon.TaxSettings.Model.IndonesiaAdditionalInfo.PpnExceptionDesignationCode</property>
299+
<pattern>^(01|02|03|07|08)$</pattern>
300+
</property-value-rule>
293301
<property-value-rule>
294302
<property>Amazon.TaxSettings.Model.InternalServerException.ErrorCode</property>
295303
<min>0</min>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public partial class AdditionalInfoRequest
5454
private EstoniaAdditionalInfo _estoniaAdditionalInfo;
5555
private GeorgiaAdditionalInfo _georgiaAdditionalInfo;
5656
private GreeceAdditionalInfo _greeceAdditionalInfo;
57+
private IndonesiaAdditionalInfo _indonesiaAdditionalInfo;
5758
private IsraelAdditionalInfo _israelAdditionalInfo;
5859
private ItalyAdditionalInfo _italyAdditionalInfo;
5960
private KenyaAdditionalInfo _kenyaAdditionalInfo;
@@ -158,6 +159,24 @@ internal bool IsSetGreeceAdditionalInfo()
158159
return this._greeceAdditionalInfo != null;
159160
}
160161

162+
/// <summary>
163+
/// Gets and sets the property IndonesiaAdditionalInfo.
164+
/// <para>
165+
///
166+
/// </para>
167+
/// </summary>
168+
public IndonesiaAdditionalInfo IndonesiaAdditionalInfo
169+
{
170+
get { return this._indonesiaAdditionalInfo; }
171+
set { this._indonesiaAdditionalInfo = value; }
172+
}
173+
174+
// Check to see if IndonesiaAdditionalInfo property is set
175+
internal bool IsSetIndonesiaAdditionalInfo()
176+
{
177+
return this._indonesiaAdditionalInfo != null;
178+
}
179+
161180
/// <summary>
162181
/// Gets and sets the property IsraelAdditionalInfo.
163182
/// <para>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public partial class AdditionalInfoResponse
4343
private GeorgiaAdditionalInfo _georgiaAdditionalInfo;
4444
private GreeceAdditionalInfo _greeceAdditionalInfo;
4545
private IndiaAdditionalInfo _indiaAdditionalInfo;
46+
private IndonesiaAdditionalInfo _indonesiaAdditionalInfo;
4647
private IsraelAdditionalInfo _israelAdditionalInfo;
4748
private ItalyAdditionalInfo _italyAdditionalInfo;
4849
private KenyaAdditionalInfo _kenyaAdditionalInfo;
@@ -185,6 +186,24 @@ internal bool IsSetIndiaAdditionalInfo()
185186
return this._indiaAdditionalInfo != null;
186187
}
187188

189+
/// <summary>
190+
/// Gets and sets the property IndonesiaAdditionalInfo.
191+
/// <para>
192+
/// Additional tax information associated with your TRN in Indonesia.
193+
/// </para>
194+
/// </summary>
195+
public IndonesiaAdditionalInfo IndonesiaAdditionalInfo
196+
{
197+
get { return this._indonesiaAdditionalInfo; }
198+
set { this._indonesiaAdditionalInfo = value; }
199+
}
200+
201+
// Check to see if IndonesiaAdditionalInfo property is set
202+
internal bool IsSetIndonesiaAdditionalInfo()
203+
{
204+
return this._indonesiaAdditionalInfo != null;
205+
}
206+
188207
/// <summary>
189208
/// Gets and sets the property IsraelAdditionalInfo.
190209
/// <para>

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,53 @@ namespace Amazon.TaxSettings.Model
7474
/// </para>
7575
/// </li> </ul>
7676
/// <para>
77+
/// <b>Indonesia</b>
78+
/// </para>
79+
/// <ul> <li>
80+
/// <para>
81+
/// <c>PutTaxRegistration</c>: The use of this operation to submit tax information is
82+
/// subject to the <a href="http://aws.amazon.com/service-terms/">Amazon Web Services
83+
/// service terms</a>. By submitting, you’re providing consent for Amazon Web Services
84+
/// to validate NIK, NPWP, and NITKU data, provided by you with the Directorate General
85+
/// of Taxes of Indonesia in accordance with the Minister of Finance Regulation (PMK)
86+
/// Number 112/PMK.03/2022.
87+
/// </para>
88+
/// </li> <li>
89+
/// <para>
90+
/// <c>BatchPutTaxRegistration</c>: The use of this operation to submit tax information
91+
/// is subject to the <a href="http://aws.amazon.com/service-terms/">Amazon Web Services
92+
/// service terms</a>. By submitting, you’re providing consent for Amazon Web Services
93+
/// to validate NIK, NPWP, and NITKU data, provided by you with the Directorate General
94+
/// of Taxes of Indonesia in accordance with the Minister of Finance Regulation (PMK)
95+
/// Number 112/PMK.03/2022, through our third-party partner PT Achilles Advanced Management
96+
/// (OnlinePajak).
97+
/// </para>
98+
/// </li> <li>
99+
/// <para>
100+
/// You must specify the <c>taxRegistrationNumberType</c> in the <c>indonesiaAdditionalInfo</c>
101+
/// field of the <c>additionalTaxInformation</c> object.
102+
/// </para>
103+
/// </li> <li>
104+
/// <para>
105+
/// If you specify <c>decisionNumber</c>, you must specify the <c>ppnExceptionDesignationCode</c>
106+
/// in the <c>indonesiaAdditionalInfo</c> field of the <c>additionalTaxInformation</c>
107+
/// object. If the <c>taxRegistrationNumberType</c> is set to NPWP or NITKU, valid values
108+
/// for <c>ppnExceptionDesignationCode</c> are either <c>01</c>, <c>02</c>, <c>03</c>,
109+
/// <c>07</c>, or <c>08</c>.
110+
/// </para>
111+
///
112+
/// <para>
113+
/// For other <c>taxRegistrationNumberType</c> values, <c>ppnExceptionDesignationCode</c>
114+
/// must be either <c>01</c>, <c>07</c>, or <c>08</c>.
115+
/// </para>
116+
/// </li> <li>
117+
/// <para>
118+
/// If <c>ppnExceptionDesignationCode</c> is <c>07</c>, you must specify the <c>decisionNumber</c>
119+
/// in the <c>indonesiaAdditionalInfo</c> field of the <c>additionalTaxInformation</c>
120+
/// object.
121+
/// </para>
122+
/// </li> </ul>
123+
/// <para>
77124
/// <b>Kenya</b>
78125
/// </para>
79126
/// <ul> <li>
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.TaxSettings.Model
31+
{
32+
/// <summary>
33+
/// Additional tax information associated with your TRN in Indonesia.
34+
/// </summary>
35+
public partial class IndonesiaAdditionalInfo
36+
{
37+
private string _decisionNumber;
38+
private string _ppnExceptionDesignationCode;
39+
private IndonesiaTaxRegistrationNumberType _taxRegistrationNumberType;
40+
41+
/// <summary>
42+
/// Gets and sets the property DecisionNumber.
43+
/// <para>
44+
/// VAT-exempt customers have a Directorate General of Taxation (DGT) exemption letter
45+
/// or certificate (Surat Keterangan Bebas) decision number. Non-collected VAT have a
46+
/// DGT letter or certificate (Surat Keterangan Tidak Dipungut).
47+
/// </para>
48+
/// </summary>
49+
public string DecisionNumber
50+
{
51+
get { return this._decisionNumber; }
52+
set { this._decisionNumber = value; }
53+
}
54+
55+
// Check to see if DecisionNumber property is set
56+
internal bool IsSetDecisionNumber()
57+
{
58+
return this._decisionNumber != null;
59+
}
60+
61+
/// <summary>
62+
/// Gets and sets the property PpnExceptionDesignationCode.
63+
/// <para>
64+
/// Exception code if you are designated by Directorate General of Taxation (DGT) as a
65+
/// VAT collector, non-collected VAT, or VAT-exempt customer.
66+
/// </para>
67+
/// </summary>
68+
public string PpnExceptionDesignationCode
69+
{
70+
get { return this._ppnExceptionDesignationCode; }
71+
set { this._ppnExceptionDesignationCode = value; }
72+
}
73+
74+
// Check to see if PpnExceptionDesignationCode property is set
75+
internal bool IsSetPpnExceptionDesignationCode()
76+
{
77+
return this._ppnExceptionDesignationCode != null;
78+
}
79+
80+
/// <summary>
81+
/// Gets and sets the property TaxRegistrationNumberType.
82+
/// <para>
83+
/// The tax registration number type.
84+
/// </para>
85+
/// </summary>
86+
public IndonesiaTaxRegistrationNumberType TaxRegistrationNumberType
87+
{
88+
get { return this._taxRegistrationNumberType; }
89+
set { this._taxRegistrationNumberType = value; }
90+
}
91+
92+
// Check to see if TaxRegistrationNumberType property is set
93+
internal bool IsSetTaxRegistrationNumberType()
94+
{
95+
return this._taxRegistrationNumberType != null;
96+
}
97+
98+
}
99+
}

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

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

106+
if(requestObject.IsSetIndonesiaAdditionalInfo())
107+
{
108+
context.Writer.WritePropertyName("indonesiaAdditionalInfo");
109+
context.Writer.WriteObjectStart();
110+
111+
var marshaller = IndonesiaAdditionalInfoMarshaller.Instance;
112+
marshaller.Marshall(requestObject.IndonesiaAdditionalInfo, context);
113+
114+
context.Writer.WriteObjectEnd();
115+
}
116+
106117
if(requestObject.IsSetIsraelAdditionalInfo())
107118
{
108119
context.Writer.WritePropertyName("israelAdditionalInfo");

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ public AdditionalInfoResponse Unmarshall(JsonUnmarshallerContext context)
108108
unmarshalledObject.IndiaAdditionalInfo = unmarshaller.Unmarshall(context);
109109
continue;
110110
}
111+
if (context.TestExpression("indonesiaAdditionalInfo", targetDepth))
112+
{
113+
var unmarshaller = IndonesiaAdditionalInfoUnmarshaller.Instance;
114+
unmarshalledObject.IndonesiaAdditionalInfo = unmarshaller.Unmarshall(context);
115+
continue;
116+
}
111117
if (context.TestExpression("israelAdditionalInfo", targetDepth))
112118
{
113119
var unmarshaller = IsraelAdditionalInfoUnmarshaller.Instance;

0 commit comments

Comments
 (0)