Skip to content

Commit

Permalink
Merge pull request #125 from avadev/22.5.0
Browse files Browse the repository at this point in the history
Update for 22.5.0
  • Loading branch information
svc-developer authored May 26, 2022
2 parents d86fb5b + 63a075f commit 56bc442
Show file tree
Hide file tree
Showing 13 changed files with 1,220 additions and 1,051 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 := "22.3.0"
version := "22.5.0"

scalaVersion := "2.11.12"

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,11 @@ public enum ErrorCodeId {
*/
InvalidParameter(1734),

/**
*
*/
InvalidSystemCode(1735),

/**
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ public enum FilingStatusId {
/**
*
*/
ApprovedToFileOnBehalf(16);
ApprovedToFileOnBehalf(16),

/**
*
*/
FiledByCustomer(17);

private int value;
private static HashMap map = new HashMap<>();
Expand Down
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
*/

/**
*
*/
public enum ReportSource {
/**
*
*/
SNOWFLAKE(0),

/**
*
*/
MONGODB(1);

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

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

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

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

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ public void setIsOfAge(Boolean value) {
this.isOfAge = value;
}

private ArrayList<AgeVerifyResult> failureCodes;
private ArrayList<AgeVerifyFailureCode> failureCodes;

/**
* Getter for failureCodes
*
* A list of failure codes describing why a *false* age determination was made.
*/
public ArrayList<AgeVerifyResult> getFailureCodes() {
public ArrayList<AgeVerifyFailureCode> getFailureCodes() {
return this.failureCodes;
}

Expand All @@ -66,7 +66,7 @@ public ArrayList<AgeVerifyResult> getFailureCodes() {
*
* A list of failure codes describing why a *false* age determination was made.
*/
public void setFailureCodes(ArrayList<AgeVerifyResult> value) {
public void setFailureCodes(ArrayList<AgeVerifyFailureCode> value) {
this.failureCodes = value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,46 @@ public void setNotClassified(Integer value) {
this.notClassified = value;
}

private Integer failed;

/**
* Getter for failed
*
* The number of items which are failed because of some error
*/
public Integer getFailed() {
return this.failed;
}

/**
* Setter for failed
*
* The number of items which are failed because of some error
*/
public void setFailed(Integer value) {
this.failed = value;
}

private Integer notFound;

/**
* Getter for notFound
*
* The number of items which are not found as they may be deleted
*/
public Integer getNotFound() {
return this.notFound;
}

/**
* Setter for notFound
*
* The number of items which are not found as they may be deleted
*/
public void setNotFound(Integer value) {
this.notFound = value;
}

/**
* Returns a JSON string representation of ClassificationDetailsModel
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,26 @@ public void setTaxSubType(String value) {
this.taxSubType = value;
}

private ReportSource reportSource;

/**
* Getter for reportSource
*
* Defines report source.
*/
public ReportSource getReportSource() {
return this.reportSource;
}

/**
* Setter for reportSource
*
* Defines report source.
*/
public void setReportSource(ReportSource value) {
this.reportSource = value;
}

/**
* Returns a JSON string representation of ExportDocumentLineModel
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,46 +90,6 @@ public void setSummary(String value) {
this.summary = value;
}

private Integer accountId;

/**
* Getter for accountId
*
* The account ID that owns this item.
*/
public Integer getAccountId() {
return this.accountId;
}

/**
* Setter for accountId
*
* The account ID that owns this item.
*/
public void setAccountId(Integer value) {
this.accountId = value;
}

private Integer companyId;

/**
* Getter for companyId
*
* The unique ID of the company that owns this item.
*/
public Integer getCompanyId() {
return this.companyId;
}

/**
* Setter for companyId
*
* The unique ID of the company that owns this item.
*/
public void setCompanyId(Integer value) {
this.companyId = value;
}

private String taxCode;

/**
Expand Down Expand Up @@ -210,26 +170,6 @@ public void setCategory(String value) {
this.category = value;
}

private ArrayList<String> productCategories;

/**
* Getter for productCategories
*
* The AvaTax category to identify the product.
*/
public ArrayList<String> getProductCategories() {
return this.productCategories;
}

/**
* Setter for productCategories
*
* The AvaTax category to identify the product.
*/
public void setProductCategories(ArrayList<String> value) {
this.productCategories = value;
}

private String source;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
package net.avalara.avatax.rest.client.models;

import net.avalara.avatax.rest.client.enums.*;
import net.avalara.avatax.rest.client.serializer.JsonSerializer;

import java.lang.Override;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
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
*/

/**
* Represents a premium classification associated with an item's HS code for a system code.
*/
public class ItemPremiumClassificationInputModel {


private String hsCode;

/**
* Getter for hsCode
*
* The HsCode for which this premium classification is being created.
*/
public String getHsCode() {
return this.hsCode;
}

/**
* Setter for hsCode
*
* The HsCode for which this premium classification is being created.
*/
public void setHsCode(String value) {
this.hsCode = value;
}

private String justification;

/**
* Getter for justification
*
* Justification why this HsCode is attached to this item.
*/
public String getJustification() {
return this.justification;
}

/**
* Setter for justification
*
* Justification why this HsCode is attached to this item.
*/
public void setJustification(String value) {
this.justification = value;
}

/**
* Returns a JSON string representation of ItemPremiumClassificationInputModel
*/
@Override
public String toString() {
return JsonSerializer.SerializeObject(this);
}
}
Loading

0 comments on commit 56bc442

Please sign in to comment.