Skip to content

Commit 06d99ac

Browse files
Merge pull request #257 from avadev/25.1.0
Update for 25.1.0
2 parents 830b87a + 81c945b commit 06d99ac

19 files changed

+1237
-102
lines changed

GlobalAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
// Revision
3131
//
3232

33-
[assembly: AssemblyVersion("24.12.0")]
34-
[assembly: AssemblyFileVersion("24.12.0")]
33+
[assembly: AssemblyVersion("25.1.0")]
34+
[assembly: AssemblyFileVersion("25.1.0")]

src/AvaTaxApi.cs

+414-50
Large diffs are not rendered by default.

src/Avalara.AvaTax.RestClient.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>Avalara.AvaTax</id>
55

6-
<version>24.12.0</version>
6+
<version>25.1.0</version>
77

88
<title>Avalara AvaTax SDK</title>
99
<description>Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services.</description>

src/IAvaTaxClient.cs

+304-48
Large diffs are not rendered by default.

src/enums/ErrorCodeId.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ public enum ErrorCodeId
979979
/// <summary>
980980
///
981981
/// </summary>
982-
UserAlreadyExist = 613,
982+
UserAlreadyExists = 613,
983983

984984
/// <summary>
985985
///
@@ -1972,6 +1972,11 @@ public enum ErrorCodeId
19721972
/// </summary>
19731973
InvalidField = 3010,
19741974

1975+
/// <summary>
1976+
///
1977+
/// </summary>
1978+
DuplicatePatchOperation = 3011,
1979+
19751980
/// <summary>
19761981
/// Avalara Gateway errors:
19771982
/// </summary>

src/models/ClassificationModel.cs

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ namespace Avalara.AvaTax.RestClient
2222
/// </summary>
2323
public class ClassificationModel
2424
{
25+
/// <summary>
26+
/// The unique ID of the classification.
27+
/// </summary>
28+
public Int64? id { get; set; }
29+
2530
/// <summary>
2631
/// The product code of an item in a given system.
2732
/// </summary>
@@ -32,6 +37,11 @@ public class ClassificationModel
3237
/// </summary>
3338
public String systemCode { get; set; }
3439

40+
/// <summary>
41+
/// The country where the product belongs.
42+
/// </summary>
43+
public String country { get; set; }
44+
3545
/// <summary>
3646
/// If there is an premium classification justification present for this classification
3747
/// </summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
/*
6+
* AvaTax API Client Library
7+
*
8+
* (c) 2004-2023 Avalara, Inc.
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*
13+
* @author Jonathan Wenger <jonathan.wenger@avalara.com>
14+
* @author Sachin Baijal <sachin.baijal@avalara.com>
15+
* Swagger name: AvaTaxClient
16+
*/
17+
18+
namespace Avalara.AvaTax.RestClient
19+
{
20+
/// <summary>
21+
/// Failed HS code classification model.
22+
/// </summary>
23+
public class FailedHSCodeClassificationModel
24+
{
25+
/// <summary>
26+
/// The failed item ID.
27+
/// </summary>
28+
public Int64? itemId { get; set; }
29+
30+
/// <summary>
31+
/// A list of errors, if any.
32+
/// </summary>
33+
public List<HSCodeClassificationError> errors { get; set; }
34+
35+
36+
/// <summary>
37+
/// Convert this object to a JSON string of itself
38+
/// </summary>
39+
/// <returns>A JSON string of this object</returns>
40+
public override string ToString()
41+
{
42+
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
43+
}
44+
}
45+
}
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
/*
6+
* AvaTax API Client Library
7+
*
8+
* (c) 2004-2023 Avalara, Inc.
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*
13+
* @author Jonathan Wenger <jonathan.wenger@avalara.com>
14+
* @author Sachin Baijal <sachin.baijal@avalara.com>
15+
* Swagger name: AvaTaxClient
16+
*/
17+
18+
namespace Avalara.AvaTax.RestClient
19+
{
20+
/// <summary>
21+
/// The HS code classification error model.
22+
/// </summary>
23+
public class HSCodeClassificationError
24+
{
25+
/// <summary>
26+
/// The error code.
27+
/// </summary>
28+
public String code { get; set; }
29+
30+
/// <summary>
31+
/// The error message
32+
/// </summary>
33+
public String message { get; set; }
34+
35+
/// <summary>
36+
/// Target is source where failure is happened.
37+
/// </summary>
38+
public String target { get; set; }
39+
40+
/// <summary>
41+
/// The fault code
42+
/// </summary>
43+
public String faultCode { get; set; }
44+
45+
46+
/// <summary>
47+
/// Convert this object to a JSON string of itself
48+
/// </summary>
49+
/// <returns>A JSON string of this object</returns>
50+
public override string ToString()
51+
{
52+
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
53+
}
54+
}
55+
}

src/models/ItemClassificationInputModel.cs

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public class ItemClassificationInputModel
3232
/// </summary>
3333
public String systemCode { get; set; }
3434

35+
/// <summary>
36+
/// The country associated with the product.
37+
/// </summary>
38+
public String country { get; set; }
39+
3540

3641
/// <summary>
3742
/// Convert this object to a JSON string of itself

src/models/ItemClassificationOutputModel.cs

+10
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,21 @@ public class ItemClassificationOutputModel
4747
/// </summary>
4848
public String systemCode { get; set; }
4949

50+
/// <summary>
51+
/// A unique code representing this item.
52+
/// </summary>
53+
public String country { get; set; }
54+
5055
/// <summary>
5156
/// If there is an premium classification justification present for this classification
5257
/// </summary>
5358
public Boolean? isPremium { get; set; }
5459

60+
/// <summary>
61+
/// This represents the type of classification event.
62+
/// </summary>
63+
public String classificationEvent { get; set; }
64+
5565

5666
/// <summary>
5767
/// Convert this object to a JSON string of itself
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
/*
6+
* AvaTax API Client Library
7+
*
8+
* (c) 2004-2023 Avalara, Inc.
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*
13+
* @author Jonathan Wenger <jonathan.wenger@avalara.com>
14+
* @author Sachin Baijal <sachin.baijal@avalara.com>
15+
* Swagger name: AvaTaxClient
16+
*/
17+
18+
namespace Avalara.AvaTax.RestClient
19+
{
20+
/// <summary>
21+
/// Input model of the HS code classification.
22+
/// </summary>
23+
public class ItemHSCodeClassificationInputModel
24+
{
25+
/// <summary>
26+
/// The unique item ID.
27+
/// </summary>
28+
public Int64 itemId { get; set; }
29+
30+
/// <summary>
31+
/// Country of destination for this HS code classification.
32+
/// </summary>
33+
public List<String> countryOfDestinations { get; set; }
34+
35+
/// <summary>
36+
/// Used for checking the premium classification status.
37+
/// </summary>
38+
public Boolean? isPremiumClassification { get; set; }
39+
40+
/// <summary>
41+
/// A field for checking whether this is a reclassification.
42+
/// </summary>
43+
public Boolean? isReclassification { get; set; }
44+
45+
/// <summary>
46+
/// Whether this item classification is disputed.
47+
/// </summary>
48+
public Boolean? isDisputed { get; set; }
49+
50+
/// <summary>
51+
/// Whether this item classification is a priority classification.
52+
/// </summary>
53+
public Boolean? isPriority { get; set; }
54+
55+
/// <summary>
56+
/// the item is exported to other countries.
57+
/// </summary>
58+
public Boolean? isExport { get; set; }
59+
60+
/// <summary>
61+
/// IsExportControl flag to identify cross border classification
62+
/// </summary>
63+
public Boolean? isExportControl { get; set; }
64+
65+
/// <summary>
66+
/// Instructions related to this item classification.
67+
/// </summary>
68+
public String instructions { get; set; }
69+
70+
/// <summary>
71+
/// The language used in this item classification.
72+
/// </summary>
73+
public String language { get; set; }
74+
75+
76+
/// <summary>
77+
/// Convert this object to a JSON string of itself
78+
/// </summary>
79+
/// <returns>A JSON string of this object</returns>
80+
public override string ToString()
81+
{
82+
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
83+
}
84+
}
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
/*
6+
* AvaTax API Client Library
7+
*
8+
* (c) 2004-2023 Avalara, Inc.
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*
13+
* @author Jonathan Wenger <jonathan.wenger@avalara.com>
14+
* @author Sachin Baijal <sachin.baijal@avalara.com>
15+
* Swagger name: AvaTaxClient
16+
*/
17+
18+
namespace Avalara.AvaTax.RestClient
19+
{
20+
/// <summary>
21+
/// The output model for an HS code classification.
22+
/// </summary>
23+
public class ItemHSCodeClassificationOutputModel
24+
{
25+
/// <summary>
26+
/// The total items requested for classification.
27+
/// </summary>
28+
public Int32? total { get; set; }
29+
30+
/// <summary>
31+
/// A list of failed HS code classifications.
32+
/// </summary>
33+
public List<FailedHSCodeClassificationModel> failed { get; set; }
34+
35+
36+
/// <summary>
37+
/// Convert this object to a JSON string of itself
38+
/// </summary>
39+
/// <returns>A JSON string of this object</returns>
40+
public override string ToString()
41+
{
42+
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
/*
6+
* AvaTax API Client Library
7+
*
8+
* (c) 2004-2023 Avalara, Inc.
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*
13+
* @author Jonathan Wenger <jonathan.wenger@avalara.com>
14+
* @author Sachin Baijal <sachin.baijal@avalara.com>
15+
* Swagger name: AvaTaxClient
16+
*/
17+
18+
namespace Avalara.AvaTax.RestClient
19+
{
20+
/// <summary>
21+
/// ItemHsCodeClassificationStatusInputModel
22+
/// </summary>
23+
public class ItemHSCodeClassificationStatusInputModel
24+
{
25+
/// <summary>
26+
/// The Country for which the item is getting classified
27+
/// </summary>
28+
public String country { get; set; }
29+
30+
/// <summary>
31+
/// Status of the HS Code classification
32+
/// </summary>
33+
public String status { get; set; }
34+
35+
/// <summary>
36+
/// The description for the HS Code classification created/updated
37+
/// </summary>
38+
public String details { get; set; }
39+
40+
41+
/// <summary>
42+
/// Convert this object to a JSON string of itself
43+
/// </summary>
44+
/// <returns>A JSON string of this object</returns>
45+
public override string ToString()
46+
{
47+
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)