Skip to content

Commit

Permalink
Merge pull request #159 from avadev/24.4.2
Browse files Browse the repository at this point in the history
Update for 24.4.2
  • Loading branch information
svc-developer authored Apr 23, 2024
2 parents cdb0958 + 358a606 commit 23a8e0d
Show file tree
Hide file tree
Showing 30 changed files with 3,408 additions and 1,103 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.2.0"
version := "24.4.2"

scalaVersion := "2.11.12"

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

Large diffs are not rendered by default.

145 changes: 145 additions & 0 deletions src/main/java/net/avalara/avatax/rest/client/enums/APStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
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 <[email protected]>
* @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
*/

/**
* /// The user can set some tolerance or threshold limits inorder to take appropriate actions when
* their transactions are above or below certain threshold limits.
* Account Payable (AP) status code indicates an action that needs to be taken when the tolerance/threshold falls between certain range.
*/
public enum APStatus {
/**
*
*/
PayAsBilledMatch(0),

/**
*
*/
ShortPayItemsAccrueMatch(1),

/**
*
*/
MarkForReviewMatch(2),

/**
*
*/
RejectMatch(3),

/**
*
*/
PayAsBilledNoAccrual(4),

/**
*
*/
PayAsBilledAccrueUndercharge(5),

/**
*
*/
ShortPayItemsAccrueUndercharge(6),

/**
*
*/
MarkForReviewUndercharge(7),

/**
*
*/
RejectUndercharge(8),

/**
*
*/
PayAsBilledOvercharge(9),

/**
*
*/
ShortPayAvalaraCalculated(10),

/**
*
*/
ShortPayItemsAccrueOvercharge(11),

/**
*
*/
MarkForReviewOvercharge(12),

/**
*
*/
RejectOvercharge(13),

/**
*
*/
AmountThresholdNotMet(14),

/**
*
*/
CostCenterExempted(15),

/**
*
*/
ItemExempted(16),

/**
*
*/
TrustedVendor(17),

/**
*
*/
AccruedByVendor(18),

/**
*
*/
Ignored(19);

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

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

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

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

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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 <[email protected]>
* @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
*/

/**
* AP Config Tolerance Type
*/
public enum ApConfigToleranceType {
/**
* RealTime
*/
RealTime(0),

/**
* Batch
*/
Batch(1);

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

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

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

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

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
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 <[email protected]>
* @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
*/

/**
*
*/
public enum BulkImportStatus {
/**
*
*/
None(0),

/**
*
*/
Success(1),

/**
*
*/
Created(2),

/**
*
*/
Updated(4),

/**
*
*/
NotImported(8),

/**
*
*/
Ignored(16),

/**
*
*/
Error(32),

/**
*
*/
ValidationFailed(64),

/**
*
*/
PartialSuccess(128),

/**
*
*/
Invalid(256);

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

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

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

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

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,11 @@ public enum ErrorCodeId {
*/
InvalidValueError(1739),

/**
*
*/
ItemDualWriteParameterValueMismatchError(1740),

/**
* SendSales API errors
*/
Expand Down Expand Up @@ -1721,6 +1726,11 @@ public enum ErrorCodeId {
*/
CannotCreateNestedObjects(2402),

/**
*
*/
InvalidUsername(2403),

/**
* User's SubjectId not updated by DB query
*/
Expand Down
Loading

0 comments on commit 23a8e0d

Please sign in to comment.