Skip to content

Commit

Permalink
Merge pull request #169 from avadev/24.11.2
Browse files Browse the repository at this point in the history
Update for 24.11.2
  • Loading branch information
svc-developer authored Nov 12, 2024
2 parents 1e97a2f + baae16b commit ad8843a
Show file tree
Hide file tree
Showing 12 changed files with 1,334 additions and 928 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name := """avatax-rest-v2-api-java"""

organization := "net.avalara.avatax"

version := "24.10.0"
version := "24.11.2"

scalaVersion := "2.11.12"

Expand Down
1,676 changes: 838 additions & 838 deletions src/main/java/net/avalara/avatax/rest/client/AvaTaxClient.java

Large diffs are not rendered by default.

107 changes: 106 additions & 1 deletion src/main/java/net/avalara/avatax/rest/client/enums/ErrorCodeId.java
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,16 @@ public enum ErrorCodeId {
*/
TooManyItemIdsInTaxCodeClassificationRequest(1742),

/**
*
*/
InvalidProductCodeLength(1743),

/**
*
*/
InvalidProductCodeFormat(1744),

/**
* SendSales API errors
*/
Expand Down Expand Up @@ -1925,7 +1935,102 @@ public enum ErrorCodeId {
/**
* Occurs when user reconciliation happens and unable to create user at AvaTax
*/
UserReconciliationError(3004);
UserReconciliationError(3004),

/**
* Occurs when a patch operation is attempted on a field that is not allowed to be patched
*/
InvalidHttpPatchRequest(3005),

/**
* Occurs when a patch operation other than 'given' operation is performed for the fields
*/
UnsupportedPatchOperationError(3006),

/**
* Occurs when system code and country code does not have active mapping.
*/
SystemCodeAndCountryCodeMismatch(3007),

/**
* Occurs when multiple entries for system code and country code exists.
*/
DuplicateSystemAndCountryForItem(3008),

/**
* Avalara Gateway errors:
*/
NotFound(4001),

/**
*
*/
Unexpected(4002),

/**
*
*/
NoHostFound(4003),

/**
*
*/
UnexpectedAuth(4004),

/**
*
*/
SiteSelectionFailed(4006),

/**
*
*/
DropDefaultUsername(4007),

/**
*
*/
DropDefaultNotMigrated(4008),

/**
*
*/
DropBearerAuth(4009),

/**
*
*/
SiteSelectionError(4010),

/**
*
*/
RateLimitExceeded(4011),

/**
*
*/
NoHealthySite(4012),

/**
*
*/
ClientDisconnected(4013),

/**
*
*/
ServiceDisconnected(4014),

/**
*
*/
ServiceTimeout(4015),

/**
* Error string from the service unknown
*/
UnexpectedError(-1);

private int value;
private static HashMap map = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ public enum ReportSource {
/**
* returns api
*/
RETURNSAPI(2);
RETURNSAPI(2),

/**
* tax region and tax type
*/
TAXREGION(3);

private int value;
private static HashMap map = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package net.avalara.avatax.rest.client.enums;
import java.util.HashMap;

/*
* AvaTax Software Development Kit for Java JRE based environments
*
* (c) 2004-2018 Avalara, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Dustin Welden <dustin.welden@avalara.com>
* @copyright 2004-2018 Avalara, Inc.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @link https://github.com/avadev/AvaTax-REST-V2-JRE-SDK
* Swagger name: AvaTaxClient
*/

/**
* Defines returns liability type.
*/
public enum ReturnsLiabilityType {
/**
* all
*/
ALL(0),

/**
* original
*/
ORIGINAL(1),

/**
* amend
*/
AMENDED(2);

private int value;
private static HashMap map = new HashMap<>();

private ReturnsLiabilityType(int value) {
this.value = value;
}

static {
for (ReturnsLiabilityType enumName : ReturnsLiabilityType.values()) {
map.put(enumName.value, enumName);
}
}

public static ReturnsLiabilityType valueOf(int intValue) {
return (ReturnsLiabilityType) map.get(intValue);
}

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package net.avalara.avatax.rest.client.enums;
import java.util.HashMap;

/*
* AvaTax Software Development Kit for Java JRE based environments
*
* (c) 2004-2018 Avalara, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Dustin Welden <dustin.welden@avalara.com>
* @copyright 2004-2018 Avalara, Inc.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @link https://github.com/avadev/AvaTax-REST-V2-JRE-SDK
* Swagger name: AvaTaxClient
*/

/**
* Defines returns report type.
*/
public enum ReturnsReportType {
/**
* liability summary return detail hospitality
*/
LIABILITYSUMMARYRETURNDETAILHOSPITALITY(0),

/**
* liability summary return detail
*/
LIABILITYSUMMARYRETURNDETAIL(1),

/**
* liability carry over credit
*/
LIABILITYCARRYOVERCREDIT(2);

private int value;
private static HashMap map = new HashMap<>();

private ReturnsReportType(int value) {
this.value = value;
}

static {
for (ReturnsReportType enumName : ReturnsReportType.values()) {
map.put(enumName.value, enumName);
}
}

public static ReturnsReportType valueOf(int intValue) {
return (ReturnsReportType) map.get(intValue);
}

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,86 +150,6 @@ public void setEmailId(String value) {
this.emailId = value;
}

private String createdOn;

/**
* Getter for createdOn
*
* Domain control verification creation date
*/
public String getCreatedOn() {
return this.createdOn;
}

/**
* Setter for createdOn
*
* Domain control verification creation date
*/
public void setCreatedOn(String value) {
this.createdOn = value;
}

private String createdBy;

/**
* Getter for createdBy
*
* Domain control verification created by
*/
public String getCreatedBy() {
return this.createdBy;
}

/**
* Setter for createdBy
*
* Domain control verification created by
*/
public void setCreatedBy(String value) {
this.createdBy = value;
}

private String updatedOn;

/**
* Getter for updatedOn
*
* Domain control verification update date
*/
public String getUpdatedOn() {
return this.updatedOn;
}

/**
* Setter for updatedOn
*
* Domain control verification update date
*/
public void setUpdatedOn(String value) {
this.updatedOn = value;
}

private String updatedBy;

/**
* Getter for updatedBy
*
* Domain control verification update by
*/
public String getUpdatedBy() {
return this.updatedBy;
}

/**
* Setter for updatedBy
*
* Domain control verification update by
*/
public void setUpdatedBy(String value) {
this.updatedBy = value;
}

/**
* Returns a JSON string representation of DcvViewModel
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,26 @@ public void setReportSource(ReportSource value) {
this.reportSource = value;
}

private LiabilityParametersModel liabilityParameters;

/**
* Getter for liabilityParameters
*
*
*/
public LiabilityParametersModel getLiabilityParameters() {
return this.liabilityParameters;
}

/**
* Setter for liabilityParameters
*
*
*/
public void setLiabilityParameters(LiabilityParametersModel value) {
this.liabilityParameters = value;
}

private Compression compression;

/**
Expand Down
Loading

0 comments on commit ad8843a

Please sign in to comment.