Skip to content

Commit ae42660

Browse files
Merge pull request #173 from avadev/25.1.0
Update for 25.1.0
2 parents 351f39f + 65f1626 commit ae42660

17 files changed

+2419
-832
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := """avatax-rest-v2-api-java"""
22

33
organization := "net.avalara.avatax"
44

5-
version := "24.12.0"
5+
version := "25.1.0"
66

77
scalaVersion := "2.11.12"
88

src/main/java/net/avalara/avatax/rest/client/AvaTaxClient.java

Lines changed: 1172 additions & 830 deletions
Large diffs are not rendered by default.

src/main/java/net/avalara/avatax/rest/client/enums/ErrorCodeId.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ public enum ErrorCodeId {
979979
/**
980980
*
981981
*/
982-
UserAlreadyExist(613),
982+
UserAlreadyExists(613),
983983

984984
/**
985985
*
@@ -1972,6 +1972,11 @@ public enum ErrorCodeId {
19721972
*/
19731973
InvalidField(3010),
19741974

1975+
/**
1976+
*
1977+
*/
1978+
DuplicatePatchOperation(3011),
1979+
19751980
/**
19761981
* Avalara Gateway errors:
19771982
*/

src/main/java/net/avalara/avatax/rest/client/models/ClassificationModel.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,26 @@
3030
public class ClassificationModel {
3131

3232

33+
private Long id;
34+
35+
/**
36+
* Getter for id
37+
*
38+
* The unique ID of the classification.
39+
*/
40+
public Long getId() {
41+
return this.id;
42+
}
43+
44+
/**
45+
* Setter for id
46+
*
47+
* The unique ID of the classification.
48+
*/
49+
public void setId(Long value) {
50+
this.id = value;
51+
}
52+
3353
private String productCode;
3454

3555
/**
@@ -70,6 +90,26 @@ public void setSystemCode(String value) {
7090
this.systemCode = value;
7191
}
7292

93+
private String country;
94+
95+
/**
96+
* Getter for country
97+
*
98+
* The country where the product belongs.
99+
*/
100+
public String getCountry() {
101+
return this.country;
102+
}
103+
104+
/**
105+
* Setter for country
106+
*
107+
* The country where the product belongs.
108+
*/
109+
public void setCountry(String value) {
110+
this.country = value;
111+
}
112+
73113
private Boolean isPremium;
74114

75115
/**
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
package net.avalara.avatax.rest.client.models;
2+
3+
import net.avalara.avatax.rest.client.enums.*;
4+
import net.avalara.avatax.rest.client.serializer.JsonSerializer;
5+
6+
import java.lang.Override;
7+
import java.math.BigDecimal;
8+
import java.util.ArrayList;
9+
import java.util.Date;
10+
import java.util.HashMap;
11+
12+
/*
13+
* AvaTax Software Development Kit for Java JRE based environments
14+
*
15+
* (c) 2004-2018 Avalara, Inc.
16+
*
17+
* For the full copyright and license information, please view the LICENSE
18+
* file that was distributed with this source code.
19+
*
20+
* @author Dustin Welden <[email protected]>
21+
* @copyright 2004-2018 Avalara, Inc.
22+
* @license https://www.apache.org/licenses/LICENSE-2.0
23+
* @link https://github.com/avadev/AvaTax-REST-V2-JRE-SDK
24+
* Swagger name: AvaTaxClient
25+
*/
26+
27+
/**
28+
* Failed HS code classification model.
29+
*/
30+
public class FailedHSCodeClassificationModel {
31+
32+
33+
private Long itemId;
34+
35+
/**
36+
* Getter for itemId
37+
*
38+
* The failed item ID.
39+
*/
40+
public Long getItemId() {
41+
return this.itemId;
42+
}
43+
44+
/**
45+
* Setter for itemId
46+
*
47+
* The failed item ID.
48+
*/
49+
public void setItemId(Long value) {
50+
this.itemId = value;
51+
}
52+
53+
private ArrayList<HSCodeClassificationError> errors;
54+
55+
/**
56+
* Getter for errors
57+
*
58+
* A list of errors, if any.
59+
*/
60+
public ArrayList<HSCodeClassificationError> getErrors() {
61+
return this.errors;
62+
}
63+
64+
/**
65+
* Setter for errors
66+
*
67+
* A list of errors, if any.
68+
*/
69+
public void setErrors(ArrayList<HSCodeClassificationError> value) {
70+
this.errors = value;
71+
}
72+
73+
/**
74+
* Returns a JSON string representation of FailedHSCodeClassificationModel
75+
*/
76+
@Override
77+
public String toString() {
78+
return JsonSerializer.SerializeObject(this);
79+
}
80+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
package net.avalara.avatax.rest.client.models;
2+
3+
import net.avalara.avatax.rest.client.enums.*;
4+
import net.avalara.avatax.rest.client.serializer.JsonSerializer;
5+
6+
import java.lang.Override;
7+
import java.math.BigDecimal;
8+
import java.util.ArrayList;
9+
import java.util.Date;
10+
import java.util.HashMap;
11+
12+
/*
13+
* AvaTax Software Development Kit for Java JRE based environments
14+
*
15+
* (c) 2004-2018 Avalara, Inc.
16+
*
17+
* For the full copyright and license information, please view the LICENSE
18+
* file that was distributed with this source code.
19+
*
20+
* @author Dustin Welden <[email protected]>
21+
* @copyright 2004-2018 Avalara, Inc.
22+
* @license https://www.apache.org/licenses/LICENSE-2.0
23+
* @link https://github.com/avadev/AvaTax-REST-V2-JRE-SDK
24+
* Swagger name: AvaTaxClient
25+
*/
26+
27+
/**
28+
* The HS code classification error model.
29+
*/
30+
public class HSCodeClassificationError {
31+
32+
33+
private String code;
34+
35+
/**
36+
* Getter for code
37+
*
38+
* The error code.
39+
*/
40+
public String getCode() {
41+
return this.code;
42+
}
43+
44+
/**
45+
* Setter for code
46+
*
47+
* The error code.
48+
*/
49+
public void setCode(String value) {
50+
this.code = value;
51+
}
52+
53+
private String message;
54+
55+
/**
56+
* Getter for message
57+
*
58+
* The error message
59+
*/
60+
public String getMessage() {
61+
return this.message;
62+
}
63+
64+
/**
65+
* Setter for message
66+
*
67+
* The error message
68+
*/
69+
public void setMessage(String value) {
70+
this.message = value;
71+
}
72+
73+
private String target;
74+
75+
/**
76+
* Getter for target
77+
*
78+
* Target is source where failure is happened.
79+
*/
80+
public String getTarget() {
81+
return this.target;
82+
}
83+
84+
/**
85+
* Setter for target
86+
*
87+
* Target is source where failure is happened.
88+
*/
89+
public void setTarget(String value) {
90+
this.target = value;
91+
}
92+
93+
private String faultCode;
94+
95+
/**
96+
* Getter for faultCode
97+
*
98+
* The fault code
99+
*/
100+
public String getFaultCode() {
101+
return this.faultCode;
102+
}
103+
104+
/**
105+
* Setter for faultCode
106+
*
107+
* The fault code
108+
*/
109+
public void setFaultCode(String value) {
110+
this.faultCode = value;
111+
}
112+
113+
/**
114+
* Returns a JSON string representation of HSCodeClassificationError
115+
*/
116+
@Override
117+
public String toString() {
118+
return JsonSerializer.SerializeObject(this);
119+
}
120+
}

src/main/java/net/avalara/avatax/rest/client/models/ItemClassificationInputModel.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,26 @@ public void setSystemCode(String value) {
7070
this.systemCode = value;
7171
}
7272

73+
private String country;
74+
75+
/**
76+
* Getter for country
77+
*
78+
* The country associated with the product.
79+
*/
80+
public String getCountry() {
81+
return this.country;
82+
}
83+
84+
/**
85+
* Setter for country
86+
*
87+
* The country associated with the product.
88+
*/
89+
public void setCountry(String value) {
90+
this.country = value;
91+
}
92+
7393
/**
7494
* Returns a JSON string representation of ItemClassificationInputModel
7595
*/

src/main/java/net/avalara/avatax/rest/client/models/ItemClassificationOutputModel.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,26 @@ public void setSystemCode(String value) {
130130
this.systemCode = value;
131131
}
132132

133+
private String country;
134+
135+
/**
136+
* Getter for country
137+
*
138+
* A unique code representing this item.
139+
*/
140+
public String getCountry() {
141+
return this.country;
142+
}
143+
144+
/**
145+
* Setter for country
146+
*
147+
* A unique code representing this item.
148+
*/
149+
public void setCountry(String value) {
150+
this.country = value;
151+
}
152+
133153
private Boolean isPremium;
134154

135155
/**
@@ -150,6 +170,26 @@ public void setIsPremium(Boolean value) {
150170
this.isPremium = value;
151171
}
152172

173+
private String classificationEvent;
174+
175+
/**
176+
* Getter for classificationEvent
177+
*
178+
* This represents the type of classification event.
179+
*/
180+
public String getClassificationEvent() {
181+
return this.classificationEvent;
182+
}
183+
184+
/**
185+
* Setter for classificationEvent
186+
*
187+
* This represents the type of classification event.
188+
*/
189+
public void setClassificationEvent(String value) {
190+
this.classificationEvent = value;
191+
}
192+
153193
/**
154194
* Returns a JSON string representation of ItemClassificationOutputModel
155195
*/

0 commit comments

Comments
 (0)