(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -1070,6 +1259,7 @@ public SendW9FormEmailRequest getSendW9FormEmailRequest() {
200 | The updated W9/W4/W8 form | - |
400 | Bad request (e.g., invalid sort key) | - |
401 | Authentication failed | - |
+ 404 | W9/W4/W8 form not found | - |
*/
public okhttp3.Call updateW9FormCall(UpdateW9FormRequest requestParameters, final ApiCallback _callback) throws ApiException {
@@ -1118,7 +1308,7 @@ public okhttp3.Call updateW9FormCall(UpdateW9FormRequest requestParameters, fina
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1164,6 +1354,7 @@ private okhttp3.Call updateW9FormValidateBeforeCall(UpdateW9FormRequest requestP
200 | The updated W9/W4/W8 form | - |
400 | Bad request (e.g., invalid sort key) | - |
401 | Authentication failed | - |
+ 404 | W9/W4/W8 form not found | - |
*/
public IW9FormDataModelsOneOf updateW9Form(UpdateW9FormRequest requestParameters) throws ApiException {
@@ -1183,6 +1374,7 @@ public IW9FormDataModelsOneOf updateW9Form(UpdateW9FormRequest requestParameters
200 | The updated W9/W4/W8 form | - |
400 | Bad request (e.g., invalid sort key) | - |
401 | Authentication failed | - |
+ 404 | W9/W4/W8 form not found | - |
*/
public ApiResponse updateW9FormWithHttpInfo(UpdateW9FormRequest requestParameters) throws ApiException {
@@ -1204,6 +1396,7 @@ public ApiResponse updateW9FormWithHttpInfo(UpdateW9Form
200 | The updated W9/W4/W8 form | - |
400 | Bad request (e.g., invalid sort key) | - |
401 | Authentication failed | - |
+ 404 | W9/W4/W8 form not found | - |
*/
public okhttp3.Call updateW9FormAsync(UpdateW9FormRequest requestParameters, final ApiCallback _callback) throws ApiException {
@@ -1317,7 +1510,7 @@ public okhttp3.Call uploadW9FilesCall(UploadW9FilesRequest requestParameters, fi
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1452,7 +1645,7 @@ public UploadW9FilesRequest getUploadW9FilesRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java
index d96c3b6..0f84317 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java
@@ -36,8 +36,8 @@
import java.util.*;
+import Avalara.SDK.model.A1099.V2.CreateIssuerRequest;
import Avalara.SDK.model.A1099.V2.ErrorResponse;
-import Avalara.SDK.model.A1099.V2.IssuerCommand;
import Avalara.SDK.model.A1099.V2.IssuerResponse;
import Avalara.SDK.model.A1099.V2.PaginatedQueryResultModelIssuerResponse;
@@ -109,7 +109,7 @@ public okhttp3.Call createIssuerCall(CreateIssuerRequest requestParameters, fina
basePath = null;
}
- Object localVarPostBody = requestParameters.getIssuerCommand();
+ Object localVarPostBody = requestParameters.getCreateIssuerRequest();
// create path and map variables
String localVarPath = "/1099/issuers";
@@ -136,7 +136,7 @@ public okhttp3.Call createIssuerCall(CreateIssuerRequest requestParameters, fina
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -232,13 +232,13 @@ public okhttp3.Call createIssuerAsync(CreateIssuerRequest requestParameters, fin
* @param avalaraVersion API version
* @param xCorrelationId Unique correlation Id in a GUID format (optional)
* @param xAvalaraClient Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional)
- * @param issuerCommand The issuer to create (optional)
+ * @param createIssuerRequest The issuer to create (optional)
*/
public class CreateIssuerRequest {
private String avalaraVersion;
private String xCorrelationId;
private String xAvalaraClient;
- private IssuerCommand issuerCommand;
+ private CreateIssuerRequest createIssuerRequest;
public CreateIssuerRequest () {
}
@@ -249,8 +249,8 @@ public CreateIssuerRequest () {
public void setXCorrelationId(String xCorrelationId) { this.xCorrelationId = xCorrelationId; }
public String getXAvalaraClient() { return xAvalaraClient; }
public void setXAvalaraClient(String xAvalaraClient) { this.xAvalaraClient = xAvalaraClient; }
- public IssuerCommand getIssuerCommand() { return issuerCommand; }
- public void setIssuerCommand(IssuerCommand issuerCommand) { this.issuerCommand = issuerCommand; }
+ public CreateIssuerRequest getCreateIssuerRequest() { return createIssuerRequest; }
+ public void setCreateIssuerRequest(CreateIssuerRequest createIssuerRequest) { this.createIssuerRequest = createIssuerRequest; }
}
/**
@@ -321,7 +321,7 @@ public okhttp3.Call deleteIssuerCall(DeleteIssuerRequest requestParameters, fina
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -507,7 +507,7 @@ public okhttp3.Call getIssuerCall(GetIssuerRequest requestParameters, final ApiC
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -722,7 +722,7 @@ public okhttp3.Call getIssuersCall(GetIssuersRequest requestParameters, final Ap
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -906,7 +906,7 @@ public okhttp3.Call updateIssuerCall(UpdateIssuerRequest requestParameters, fina
basePath = null;
}
- Object localVarPostBody = requestParameters.getIssuerCommand();
+ Object localVarPostBody = requestParameters.getCreateIssuerRequest();
// create path and map variables
String localVarPath = "/1099/issuers/{id}"
@@ -934,7 +934,7 @@ public okhttp3.Call updateIssuerCall(UpdateIssuerRequest requestParameters, fina
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1035,14 +1035,14 @@ public okhttp3.Call updateIssuerAsync(UpdateIssuerRequest requestParameters, fin
* @param avalaraVersion API version
* @param xCorrelationId Unique correlation Id in a GUID format (optional)
* @param xAvalaraClient Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional)
- * @param issuerCommand The issuer to update (optional)
+ * @param createIssuerRequest The issuer to update (optional)
*/
public class UpdateIssuerRequest {
private String id;
private String avalaraVersion;
private String xCorrelationId;
private String xAvalaraClient;
- private IssuerCommand issuerCommand;
+ private CreateIssuerRequest createIssuerRequest;
public UpdateIssuerRequest () {
}
@@ -1055,8 +1055,8 @@ public UpdateIssuerRequest () {
public void setXCorrelationId(String xCorrelationId) { this.xCorrelationId = xCorrelationId; }
public String getXAvalaraClient() { return xAvalaraClient; }
public void setXAvalaraClient(String xAvalaraClient) { this.xAvalaraClient = xAvalaraClient; }
- public IssuerCommand getIssuerCommand() { return issuerCommand; }
- public void setIssuerCommand(IssuerCommand issuerCommand) { this.issuerCommand = issuerCommand; }
+ public CreateIssuerRequest getCreateIssuerRequest() { return createIssuerRequest; }
+ public void setCreateIssuerRequest(CreateIssuerRequest createIssuerRequest) { this.createIssuerRequest = createIssuerRequest; }
}
/**
@@ -1069,7 +1069,7 @@ public UpdateIssuerRequest getUpdateIssuerRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/Jobs1099Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java
similarity index 93%
rename from src/main/java/Avalara/SDK/api/A1099/V2/Jobs1099Api.java
rename to src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java
index 2d09c2a..063d99d 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/Jobs1099Api.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java
@@ -37,7 +37,7 @@
import Avalara.SDK.model.A1099.V2.ErrorResponse;
-import Avalara.SDK.model.A1099.V2.JobResult;
+import Avalara.SDK.model.A1099.V2.JobResponse;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -45,12 +45,12 @@
import java.util.List;
import java.util.Map;
-public class Jobs1099Api {
+public class JobsApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
- public Jobs1099Api(ApiClient apiClient) {
+ public JobsApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
SetConfiguration(apiClient);
}
@@ -112,7 +112,7 @@ public okhttp3.Call getJobCall(GetJobRequest requestParameters, final ApiCallbac
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/1099/jobs/{id}"
+ String localVarPath = "/jobs/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(requestParameters.id.toString()));
List localVarQueryParams = new ArrayList();
@@ -137,7 +137,7 @@ public okhttp3.Call getJobCall(GetJobRequest requestParameters, final ApiCallbac
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -175,7 +175,7 @@ private okhttp3.Call getJobValidateBeforeCall(GetJobRequest requestParameters, f
* Retrieves information about the job
* Retrieves information about the job
* @param requestOptions Object which represents the options available for a given API/request
- * @return JobResult
+ * @return JobResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -187,8 +187,8 @@ private okhttp3.Call getJobValidateBeforeCall(GetJobRequest requestParameters, f
401 | Unauthorized | - |
*/
- public JobResult getJob(GetJobRequest requestParameters) throws ApiException {
- ApiResponse localVarResp = getJobWithHttpInfo(requestParameters);
+ public JobResponse getJob(GetJobRequest requestParameters) throws ApiException {
+ ApiResponse localVarResp = getJobWithHttpInfo(requestParameters);
return localVarResp.getData();
}
@@ -196,7 +196,7 @@ public JobResult getJob(GetJobRequest requestParameters) throws ApiException {
* Retrieves information about the job
* Retrieves information about the job
* @param requestOptions Object which represents the options available for a given API/request
- * @return ApiResponse<JobResult>
+ * @return ApiResponse<JobResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -208,9 +208,9 @@ public JobResult getJob(GetJobRequest requestParameters) throws ApiException {
401 | Unauthorized | - |
*/
- public ApiResponse getJobWithHttpInfo(GetJobRequest requestParameters) throws ApiException {
+ public ApiResponse getJobWithHttpInfo(GetJobRequest requestParameters) throws ApiException {
okhttp3.Call localVarCall = getJobValidateBeforeCall(requestParameters, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -231,10 +231,10 @@ public ApiResponse getJobWithHttpInfo(GetJobRequest requestParameters
401 | Unauthorized | - |
*/
- public okhttp3.Call getJobAsync(GetJobRequest requestParameters, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getJobAsync(GetJobRequest requestParameters, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getJobValidateBeforeCall(requestParameters, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -275,7 +275,7 @@ public GetJobRequest getGetJobRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java
index 73a00e4..bf1883f 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java
@@ -152,7 +152,7 @@ public okhttp3.Call getDataInputFieldsCall(GetDataInputFieldsRequest requestPara
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -294,7 +294,7 @@ public GetDataInputFieldsRequest getGetDataInputFieldsRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java
index 531d0e6..2100ede 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java
@@ -149,7 +149,7 @@ public okhttp3.Call downloadDocumentCall(DownloadDocumentRequest requestParamete
"application/pdf", "application/xml", "application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -346,7 +346,7 @@ public okhttp3.Call fetchDocumentsCall(FetchDocumentsRequest requestParameters,
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -563,7 +563,7 @@ public okhttp3.Call getDocumentListCall(GetDocumentListRequest requestParameters
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -772,7 +772,7 @@ public okhttp3.Call getDocumentStatusCall(GetDocumentStatusRequest requestParame
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -965,7 +965,7 @@ public okhttp3.Call submitDocumentCall(SubmitDocumentRequest requestParameters,
"application/json", "text/xml"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1105,7 +1105,7 @@ public SubmitDocumentRequest getSubmitDocumentRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java
index d133bde..1e8659e 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java
@@ -149,7 +149,7 @@ public okhttp3.Call submitInteropDocumentCall(SubmitInteropDocumentRequest reque
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -300,7 +300,7 @@ public SubmitInteropDocumentRequest getSubmitInteropDocumentRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java
index ead2247..4672dfd 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java
@@ -146,7 +146,7 @@ public okhttp3.Call getMandateDataInputFieldsCall(GetMandateDataInputFieldsReque
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -376,7 +376,7 @@ public okhttp3.Call getMandatesCall(GetMandatesRequest requestParameters, final
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -521,7 +521,7 @@ public GetMandatesRequest getGetMandatesRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java
index af363c5..25a1e9c 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java
@@ -138,7 +138,7 @@ public okhttp3.Call createWebhookSubscriptionCall(CreateWebhookSubscriptionReque
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -332,7 +332,7 @@ public okhttp3.Call deleteWebhookSubscriptionCall(DeleteWebhookSubscriptionReque
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -522,7 +522,7 @@ public okhttp3.Call getWebhookSubscriptionCall(GetWebhookSubscriptionRequest req
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -731,7 +731,7 @@ public okhttp3.Call listWebhookSubscriptionsCall(ListWebhookSubscriptionsRequest
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -873,7 +873,7 @@ public ListWebhookSubscriptionsRequest getListWebhookSubscriptionsRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java
index 984fd9c..b5e2c83 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java
@@ -146,7 +146,7 @@ public okhttp3.Call taxIdentifierSchemaByCountryCall(TaxIdentifierSchemaByCountr
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -348,7 +348,7 @@ public okhttp3.Call validateTaxIdentifierCall(ValidateTaxIdentifierRequest reque
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -489,7 +489,7 @@ public ValidateTaxIdentifierRequest getValidateTaxIdentifierRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java
index 4074d60..1609bdd 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java
@@ -157,7 +157,7 @@ public okhttp3.Call batchSearchParticipantsCall(BatchSearchParticipantsRequest r
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -373,7 +373,7 @@ public okhttp3.Call createTradingPartnerCall(CreateTradingPartnerRequest request
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -575,7 +575,7 @@ public okhttp3.Call createTradingPartnersBatchCall(CreateTradingPartnersBatchReq
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -779,7 +779,7 @@ public okhttp3.Call deleteTradingPartnerCall(DeleteTradingPartnerRequest request
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -973,7 +973,7 @@ public okhttp3.Call downloadBatchSearchReportCall(DownloadBatchSearchReportReque
"text/csv", "application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1171,7 +1171,7 @@ public okhttp3.Call getBatchSearchDetailCall(GetBatchSearchDetailRequest request
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1388,7 +1388,7 @@ public okhttp3.Call listBatchSearchesCall(ListBatchSearchesRequest requestParame
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1620,7 +1620,7 @@ public okhttp3.Call searchParticipantsCall(SearchParticipantsRequest requestPara
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1840,7 +1840,7 @@ public okhttp3.Call updateTradingPartnerCall(UpdateTradingPartnerRequest request
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
+ if (localVarAccept != null && !localVarHeaderParams.containsKey("Accept")) {
localVarHeaderParams.put("Accept", localVarAccept);
}
@@ -1993,7 +1993,7 @@ public UpdateTradingPartnerRequest getUpdateTradingPartnerRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("25.8.2");
+ this.localVarApiClient.setSdkVersion("25.8.3");
}
}
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Attribute.java b/src/main/java/Avalara/SDK/model/A1099/V2/Attribute.java
deleted file mode 100644
index 7f0117f..0000000
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Attribute.java
+++ /dev/null
@@ -1,663 +0,0 @@
-/*
- * AvaTax Software Development Kit for Java (JRE)
- *
- * (c) 2004-2025 Avalara, Inc.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Avalara 1099 & W-9 API Definition
- *
- * ## 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
- *
- * @author Sachin Baijal
- * @author Jonathan Wenger
- * @copyright 2004-2025 Avalara, Inc.
- * @license https://www.apache.org/licenses/LICENSE-2.0
- * @link https://github.com/avadev/Avalara-SDK-Java
- */
-
-package Avalara.SDK.model.A1099.V2;
-
-import java.util.Objects;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-import java.util.Arrays;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.TypeAdapterFactory;
-import com.google.gson.reflect.TypeToken;
-import com.google.gson.TypeAdapter;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-
-import java.lang.reflect.Type;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import Avalara.SDK.JSON;
-
-/**
- * Attribute
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class Attribute {
- public static final String SERIALIZED_NAME_DRY_RUN = "dryRun";
- @SerializedName(SERIALIZED_NAME_DRY_RUN)
- private Boolean dryRun;
-
- public static final String SERIALIZED_NAME_UPSERT = "upsert";
- @SerializedName(SERIALIZED_NAME_UPSERT)
- private Boolean upsert;
-
- /**
- * Gets or Sets status
- */
- @JsonAdapter(StatusEnum.Adapter.class)
- public enum StatusEnum {
- IN_PROGRESS("InProgress"),
-
- SUCCESS("Success"),
-
- FAILED("Failed");
-
- private String value;
-
- StatusEnum(String value) {
- this.value = value;
- }
-
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-
- public static StatusEnum fromValue(String value) {
- for (StatusEnum b : StatusEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
- }
-
- public static class Adapter extends TypeAdapter {
- @Override
- public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
- jsonWriter.value(enumeration.getValue());
- }
-
- @Override
- public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
- return StatusEnum.fromValue(value);
- }
- }
-
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- String value = jsonElement.getAsString();
- StatusEnum.fromValue(value);
- }
- }
-
- public static final String SERIALIZED_NAME_STATUS = "status";
- @SerializedName(SERIALIZED_NAME_STATUS)
- private StatusEnum status;
-
- public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage";
- @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE)
- private String errorMessage;
-
- public static final String SERIALIZED_NAME_TOTAL_PROCESSED = "totalProcessed";
- @SerializedName(SERIALIZED_NAME_TOTAL_PROCESSED)
- private Integer totalProcessed;
-
- public static final String SERIALIZED_NAME_TOTAL_ROWS = "totalRows";
- @SerializedName(SERIALIZED_NAME_TOTAL_ROWS)
- private Integer totalRows;
-
- public static final String SERIALIZED_NAME_UPDATED_VALID = "updatedValid";
- @SerializedName(SERIALIZED_NAME_UPDATED_VALID)
- private Integer updatedValid;
-
- public static final String SERIALIZED_NAME_UPDATED_NO_EMAIL = "updatedNoEmail";
- @SerializedName(SERIALIZED_NAME_UPDATED_NO_EMAIL)
- private Integer updatedNoEmail;
-
- public static final String SERIALIZED_NAME_UPDATED_INVALID = "updatedInvalid";
- @SerializedName(SERIALIZED_NAME_UPDATED_INVALID)
- private Integer updatedInvalid;
-
- public static final String SERIALIZED_NAME_SKIPPED_DUPLICATE = "skippedDuplicate";
- @SerializedName(SERIALIZED_NAME_SKIPPED_DUPLICATE)
- private Integer skippedDuplicate;
-
- public static final String SERIALIZED_NAME_SKIPPED_INVALID = "skippedInvalid";
- @SerializedName(SERIALIZED_NAME_SKIPPED_INVALID)
- private Integer skippedInvalid;
-
- public static final String SERIALIZED_NAME_SKIPPED_MULTIPLE_MATCHES = "skippedMultipleMatches";
- @SerializedName(SERIALIZED_NAME_SKIPPED_MULTIPLE_MATCHES)
- private Integer skippedMultipleMatches;
-
- public static final String SERIALIZED_NAME_NOT_FOUND = "notFound";
- @SerializedName(SERIALIZED_NAME_NOT_FOUND)
- private Integer notFound;
-
- public static final String SERIALIZED_NAME_CREATED_INVALID = "createdInvalid";
- @SerializedName(SERIALIZED_NAME_CREATED_INVALID)
- private Integer createdInvalid;
-
- public static final String SERIALIZED_NAME_CREATED_NO_EMAIL = "createdNoEmail";
- @SerializedName(SERIALIZED_NAME_CREATED_NO_EMAIL)
- private Integer createdNoEmail;
-
- public static final String SERIALIZED_NAME_CREATED_VALID = "createdValid";
- @SerializedName(SERIALIZED_NAME_CREATED_VALID)
- private Integer createdValid;
-
- public Attribute() {
- }
-
- public Attribute dryRun(Boolean dryRun) {
- this.dryRun = dryRun;
- return this;
- }
-
- /**
- * Get dryRun
- * @return dryRun
- */
- @javax.annotation.Nullable
- public Boolean getDryRun() {
- return dryRun;
- }
-
- public void setDryRun(Boolean dryRun) {
- this.dryRun = dryRun;
- }
-
-
- public Attribute upsert(Boolean upsert) {
- this.upsert = upsert;
- return this;
- }
-
- /**
- * Get upsert
- * @return upsert
- */
- @javax.annotation.Nullable
- public Boolean getUpsert() {
- return upsert;
- }
-
- public void setUpsert(Boolean upsert) {
- this.upsert = upsert;
- }
-
-
- public Attribute status(StatusEnum status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get status
- * @return status
- */
- @javax.annotation.Nullable
- public StatusEnum getStatus() {
- return status;
- }
-
- public void setStatus(StatusEnum status) {
- this.status = status;
- }
-
-
- public Attribute errorMessage(String errorMessage) {
- this.errorMessage = errorMessage;
- return this;
- }
-
- /**
- * Get errorMessage
- * @return errorMessage
- */
- @javax.annotation.Nullable
- public String getErrorMessage() {
- return errorMessage;
- }
-
- public void setErrorMessage(String errorMessage) {
- this.errorMessage = errorMessage;
- }
-
-
- public Attribute totalProcessed(Integer totalProcessed) {
- this.totalProcessed = totalProcessed;
- return this;
- }
-
- /**
- * Get totalProcessed
- * @return totalProcessed
- */
- @javax.annotation.Nullable
- public Integer getTotalProcessed() {
- return totalProcessed;
- }
-
- public void setTotalProcessed(Integer totalProcessed) {
- this.totalProcessed = totalProcessed;
- }
-
-
- public Attribute totalRows(Integer totalRows) {
- this.totalRows = totalRows;
- return this;
- }
-
- /**
- * Get totalRows
- * @return totalRows
- */
- @javax.annotation.Nullable
- public Integer getTotalRows() {
- return totalRows;
- }
-
- public void setTotalRows(Integer totalRows) {
- this.totalRows = totalRows;
- }
-
-
- public Attribute updatedValid(Integer updatedValid) {
- this.updatedValid = updatedValid;
- return this;
- }
-
- /**
- * Get updatedValid
- * @return updatedValid
- */
- @javax.annotation.Nullable
- public Integer getUpdatedValid() {
- return updatedValid;
- }
-
- public void setUpdatedValid(Integer updatedValid) {
- this.updatedValid = updatedValid;
- }
-
-
- public Attribute updatedNoEmail(Integer updatedNoEmail) {
- this.updatedNoEmail = updatedNoEmail;
- return this;
- }
-
- /**
- * Get updatedNoEmail
- * @return updatedNoEmail
- */
- @javax.annotation.Nullable
- public Integer getUpdatedNoEmail() {
- return updatedNoEmail;
- }
-
- public void setUpdatedNoEmail(Integer updatedNoEmail) {
- this.updatedNoEmail = updatedNoEmail;
- }
-
-
- public Attribute updatedInvalid(Integer updatedInvalid) {
- this.updatedInvalid = updatedInvalid;
- return this;
- }
-
- /**
- * Get updatedInvalid
- * @return updatedInvalid
- */
- @javax.annotation.Nullable
- public Integer getUpdatedInvalid() {
- return updatedInvalid;
- }
-
- public void setUpdatedInvalid(Integer updatedInvalid) {
- this.updatedInvalid = updatedInvalid;
- }
-
-
- public Attribute skippedDuplicate(Integer skippedDuplicate) {
- this.skippedDuplicate = skippedDuplicate;
- return this;
- }
-
- /**
- * Get skippedDuplicate
- * @return skippedDuplicate
- */
- @javax.annotation.Nullable
- public Integer getSkippedDuplicate() {
- return skippedDuplicate;
- }
-
- public void setSkippedDuplicate(Integer skippedDuplicate) {
- this.skippedDuplicate = skippedDuplicate;
- }
-
-
- public Attribute skippedInvalid(Integer skippedInvalid) {
- this.skippedInvalid = skippedInvalid;
- return this;
- }
-
- /**
- * Get skippedInvalid
- * @return skippedInvalid
- */
- @javax.annotation.Nullable
- public Integer getSkippedInvalid() {
- return skippedInvalid;
- }
-
- public void setSkippedInvalid(Integer skippedInvalid) {
- this.skippedInvalid = skippedInvalid;
- }
-
-
- public Attribute skippedMultipleMatches(Integer skippedMultipleMatches) {
- this.skippedMultipleMatches = skippedMultipleMatches;
- return this;
- }
-
- /**
- * Get skippedMultipleMatches
- * @return skippedMultipleMatches
- */
- @javax.annotation.Nullable
- public Integer getSkippedMultipleMatches() {
- return skippedMultipleMatches;
- }
-
- public void setSkippedMultipleMatches(Integer skippedMultipleMatches) {
- this.skippedMultipleMatches = skippedMultipleMatches;
- }
-
-
- public Attribute notFound(Integer notFound) {
- this.notFound = notFound;
- return this;
- }
-
- /**
- * Get notFound
- * @return notFound
- */
- @javax.annotation.Nullable
- public Integer getNotFound() {
- return notFound;
- }
-
- public void setNotFound(Integer notFound) {
- this.notFound = notFound;
- }
-
-
- public Attribute createdInvalid(Integer createdInvalid) {
- this.createdInvalid = createdInvalid;
- return this;
- }
-
- /**
- * Get createdInvalid
- * @return createdInvalid
- */
- @javax.annotation.Nullable
- public Integer getCreatedInvalid() {
- return createdInvalid;
- }
-
- public void setCreatedInvalid(Integer createdInvalid) {
- this.createdInvalid = createdInvalid;
- }
-
-
- public Attribute createdNoEmail(Integer createdNoEmail) {
- this.createdNoEmail = createdNoEmail;
- return this;
- }
-
- /**
- * Get createdNoEmail
- * @return createdNoEmail
- */
- @javax.annotation.Nullable
- public Integer getCreatedNoEmail() {
- return createdNoEmail;
- }
-
- public void setCreatedNoEmail(Integer createdNoEmail) {
- this.createdNoEmail = createdNoEmail;
- }
-
-
- public Attribute createdValid(Integer createdValid) {
- this.createdValid = createdValid;
- return this;
- }
-
- /**
- * Get createdValid
- * @return createdValid
- */
- @javax.annotation.Nullable
- public Integer getCreatedValid() {
- return createdValid;
- }
-
- public void setCreatedValid(Integer createdValid) {
- this.createdValid = createdValid;
- }
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Attribute attribute = (Attribute) o;
- return Objects.equals(this.dryRun, attribute.dryRun) &&
- Objects.equals(this.upsert, attribute.upsert) &&
- Objects.equals(this.status, attribute.status) &&
- Objects.equals(this.errorMessage, attribute.errorMessage) &&
- Objects.equals(this.totalProcessed, attribute.totalProcessed) &&
- Objects.equals(this.totalRows, attribute.totalRows) &&
- Objects.equals(this.updatedValid, attribute.updatedValid) &&
- Objects.equals(this.updatedNoEmail, attribute.updatedNoEmail) &&
- Objects.equals(this.updatedInvalid, attribute.updatedInvalid) &&
- Objects.equals(this.skippedDuplicate, attribute.skippedDuplicate) &&
- Objects.equals(this.skippedInvalid, attribute.skippedInvalid) &&
- Objects.equals(this.skippedMultipleMatches, attribute.skippedMultipleMatches) &&
- Objects.equals(this.notFound, attribute.notFound) &&
- Objects.equals(this.createdInvalid, attribute.createdInvalid) &&
- Objects.equals(this.createdNoEmail, attribute.createdNoEmail) &&
- Objects.equals(this.createdValid, attribute.createdValid);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(dryRun, upsert, status, errorMessage, totalProcessed, totalRows, updatedValid, updatedNoEmail, updatedInvalid, skippedDuplicate, skippedInvalid, skippedMultipleMatches, notFound, createdInvalid, createdNoEmail, createdValid);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Attribute {\n");
- sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n");
- sb.append(" upsert: ").append(toIndentedString(upsert)).append("\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
- sb.append(" totalProcessed: ").append(toIndentedString(totalProcessed)).append("\n");
- sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n");
- sb.append(" updatedValid: ").append(toIndentedString(updatedValid)).append("\n");
- sb.append(" updatedNoEmail: ").append(toIndentedString(updatedNoEmail)).append("\n");
- sb.append(" updatedInvalid: ").append(toIndentedString(updatedInvalid)).append("\n");
- sb.append(" skippedDuplicate: ").append(toIndentedString(skippedDuplicate)).append("\n");
- sb.append(" skippedInvalid: ").append(toIndentedString(skippedInvalid)).append("\n");
- sb.append(" skippedMultipleMatches: ").append(toIndentedString(skippedMultipleMatches)).append("\n");
- sb.append(" notFound: ").append(toIndentedString(notFound)).append("\n");
- sb.append(" createdInvalid: ").append(toIndentedString(createdInvalid)).append("\n");
- sb.append(" createdNoEmail: ").append(toIndentedString(createdNoEmail)).append("\n");
- sb.append(" createdValid: ").append(toIndentedString(createdValid)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-
- public static HashSet openapiFields;
- public static HashSet openapiRequiredFields;
-
- static {
- // a set of all properties/fields (JSON key names)
- openapiFields = new HashSet();
- openapiFields.add("dryRun");
- openapiFields.add("upsert");
- openapiFields.add("status");
- openapiFields.add("errorMessage");
- openapiFields.add("totalProcessed");
- openapiFields.add("totalRows");
- openapiFields.add("updatedValid");
- openapiFields.add("updatedNoEmail");
- openapiFields.add("updatedInvalid");
- openapiFields.add("skippedDuplicate");
- openapiFields.add("skippedInvalid");
- openapiFields.add("skippedMultipleMatches");
- openapiFields.add("notFound");
- openapiFields.add("createdInvalid");
- openapiFields.add("createdNoEmail");
- openapiFields.add("createdValid");
-
- // a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet();
- }
-
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to Attribute
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString()));
- }
- }
-
- Set> entries = jsonElement.getAsJsonObject().entrySet();
- // check to see if the JSON string contains additional fields
- for (Map.Entry entry : entries) {
- if (!Attribute.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString()));
- }
- // validate the optional field `status`
- if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) {
- StatusEnum.validateJsonElement(jsonObj.get("status"));
- }
- if ((jsonObj.get("errorMessage") != null && !jsonObj.get("errorMessage").isJsonNull()) && !jsonObj.get("errorMessage").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!Attribute.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'Attribute' and its subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(Attribute.class));
-
- return (TypeAdapter) new TypeAdapter() {
- @Override
- public void write(JsonWriter out, Attribute value) throws IOException {
- JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public Attribute read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
-
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of Attribute given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of Attribute
- * @throws IOException if the JSON string is invalid with respect to Attribute
- */
- public static Attribute fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, Attribute.class);
- }
-
- /**
- * Convert an instance of Attribute to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
-
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/BaseCompanyModel.java b/src/main/java/Avalara/SDK/model/A1099/V2/BaseCompanyModel.java
deleted file mode 100644
index f1c6e8d..0000000
--- a/src/main/java/Avalara/SDK/model/A1099/V2/BaseCompanyModel.java
+++ /dev/null
@@ -1,659 +0,0 @@
-/*
- * AvaTax Software Development Kit for Java (JRE)
- *
- * (c) 2004-2025 Avalara, Inc.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Avalara 1099 & W-9 API Definition
- *
- * ## 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
- *
- * @author Sachin Baijal
- * @author Jonathan Wenger
- * @copyright 2004-2025 Avalara, Inc.
- * @license https://www.apache.org/licenses/LICENSE-2.0
- * @link https://github.com/avadev/Avalara-SDK-Java
- */
-
-package Avalara.SDK.model.A1099.V2;
-
-import java.util.Objects;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-import java.util.Arrays;
-import org.openapitools.jackson.nullable.JsonNullable;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.TypeAdapterFactory;
-import com.google.gson.reflect.TypeToken;
-import com.google.gson.TypeAdapter;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-
-import java.lang.reflect.Type;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import Avalara.SDK.JSON;
-
-/**
- * BaseCompanyModel
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class BaseCompanyModel {
- public static final String SERIALIZED_NAME_NAME = "name";
- @SerializedName(SERIALIZED_NAME_NAME)
- private String name;
-
- public static final String SERIALIZED_NAME_EMAIL = "email";
- @SerializedName(SERIALIZED_NAME_EMAIL)
- private String email;
-
- public static final String SERIALIZED_NAME_ADDRESS = "address";
- @SerializedName(SERIALIZED_NAME_ADDRESS)
- private String address;
-
- public static final String SERIALIZED_NAME_CITY = "city";
- @SerializedName(SERIALIZED_NAME_CITY)
- private String city;
-
- public static final String SERIALIZED_NAME_STATE = "state";
- @SerializedName(SERIALIZED_NAME_STATE)
- private String state;
-
- public static final String SERIALIZED_NAME_ZIP = "zip";
- @SerializedName(SERIALIZED_NAME_ZIP)
- private String zip;
-
- public static final String SERIALIZED_NAME_TELEPHONE = "telephone";
- @SerializedName(SERIALIZED_NAME_TELEPHONE)
- private String telephone;
-
- public static final String SERIALIZED_NAME_TIN = "tin";
- @SerializedName(SERIALIZED_NAME_TIN)
- private String tin;
-
- public static final String SERIALIZED_NAME_DBA_NAME = "dbaName";
- @SerializedName(SERIALIZED_NAME_DBA_NAME)
- private String dbaName;
-
- public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
- @SerializedName(SERIALIZED_NAME_REFERENCE_ID)
- private String referenceId;
-
- public static final String SERIALIZED_NAME_DO_TIN_MATCH = "doTinMatch";
- @SerializedName(SERIALIZED_NAME_DO_TIN_MATCH)
- private Boolean doTinMatch;
-
- public static final String SERIALIZED_NAME_GROUP_NAME = "groupName";
- @SerializedName(SERIALIZED_NAME_GROUP_NAME)
- private String groupName;
-
- public static final String SERIALIZED_NAME_FOREIGN_PROVINCE = "foreignProvince";
- @SerializedName(SERIALIZED_NAME_FOREIGN_PROVINCE)
- private String foreignProvince;
-
- public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
- @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
- private String countryCode;
-
- public static final String SERIALIZED_NAME_RESEND_REQUESTS = "resendRequests";
- @SerializedName(SERIALIZED_NAME_RESEND_REQUESTS)
- private Boolean resendRequests;
-
- public static final String SERIALIZED_NAME_RESEND_INTERVAL_DAYS = "resendIntervalDays";
- @SerializedName(SERIALIZED_NAME_RESEND_INTERVAL_DAYS)
- private Integer resendIntervalDays;
-
- public static final String SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS = "maxReminderAttempts";
- @SerializedName(SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS)
- private Integer maxReminderAttempts;
-
- public BaseCompanyModel() {
- }
-
- public BaseCompanyModel name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- */
- @javax.annotation.Nullable
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
-
- public BaseCompanyModel email(String email) {
- this.email = email;
- return this;
- }
-
- /**
- * Get email
- * @return email
- */
- @javax.annotation.Nullable
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
-
- public BaseCompanyModel address(String address) {
- this.address = address;
- return this;
- }
-
- /**
- * Get address
- * @return address
- */
- @javax.annotation.Nullable
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
-
- public BaseCompanyModel city(String city) {
- this.city = city;
- return this;
- }
-
- /**
- * Get city
- * @return city
- */
- @javax.annotation.Nullable
- public String getCity() {
- return city;
- }
-
- public void setCity(String city) {
- this.city = city;
- }
-
-
- public BaseCompanyModel state(String state) {
- this.state = state;
- return this;
- }
-
- /**
- * Get state
- * @return state
- */
- @javax.annotation.Nullable
- public String getState() {
- return state;
- }
-
- public void setState(String state) {
- this.state = state;
- }
-
-
- public BaseCompanyModel zip(String zip) {
- this.zip = zip;
- return this;
- }
-
- /**
- * Get zip
- * @return zip
- */
- @javax.annotation.Nullable
- public String getZip() {
- return zip;
- }
-
- public void setZip(String zip) {
- this.zip = zip;
- }
-
-
- public BaseCompanyModel telephone(String telephone) {
- this.telephone = telephone;
- return this;
- }
-
- /**
- * Get telephone
- * @return telephone
- */
- @javax.annotation.Nullable
- public String getTelephone() {
- return telephone;
- }
-
- public void setTelephone(String telephone) {
- this.telephone = telephone;
- }
-
-
- public BaseCompanyModel tin(String tin) {
- this.tin = tin;
- return this;
- }
-
- /**
- * Get tin
- * @return tin
- */
- @javax.annotation.Nullable
- public String getTin() {
- return tin;
- }
-
- public void setTin(String tin) {
- this.tin = tin;
- }
-
-
- public BaseCompanyModel dbaName(String dbaName) {
- this.dbaName = dbaName;
- return this;
- }
-
- /**
- * Get dbaName
- * @return dbaName
- */
- @javax.annotation.Nullable
- public String getDbaName() {
- return dbaName;
- }
-
- public void setDbaName(String dbaName) {
- this.dbaName = dbaName;
- }
-
-
- public BaseCompanyModel referenceId(String referenceId) {
- this.referenceId = referenceId;
- return this;
- }
-
- /**
- * Get referenceId
- * @return referenceId
- */
- @javax.annotation.Nullable
- public String getReferenceId() {
- return referenceId;
- }
-
- public void setReferenceId(String referenceId) {
- this.referenceId = referenceId;
- }
-
-
- public BaseCompanyModel doTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
- return this;
- }
-
- /**
- * Get doTinMatch
- * @return doTinMatch
- */
- @javax.annotation.Nullable
- public Boolean getDoTinMatch() {
- return doTinMatch;
- }
-
- public void setDoTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
- }
-
-
- public BaseCompanyModel groupName(String groupName) {
- this.groupName = groupName;
- return this;
- }
-
- /**
- * Get groupName
- * @return groupName
- */
- @javax.annotation.Nullable
- public String getGroupName() {
- return groupName;
- }
-
- public void setGroupName(String groupName) {
- this.groupName = groupName;
- }
-
-
- public BaseCompanyModel foreignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
- return this;
- }
-
- /**
- * Get foreignProvince
- * @return foreignProvince
- */
- @javax.annotation.Nullable
- public String getForeignProvince() {
- return foreignProvince;
- }
-
- public void setForeignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
- }
-
-
- public BaseCompanyModel countryCode(String countryCode) {
- this.countryCode = countryCode;
- return this;
- }
-
- /**
- * Get countryCode
- * @return countryCode
- */
- @javax.annotation.Nullable
- public String getCountryCode() {
- return countryCode;
- }
-
- public void setCountryCode(String countryCode) {
- this.countryCode = countryCode;
- }
-
-
- public BaseCompanyModel resendRequests(Boolean resendRequests) {
- this.resendRequests = resendRequests;
- return this;
- }
-
- /**
- * Get resendRequests
- * @return resendRequests
- */
- @javax.annotation.Nullable
- public Boolean getResendRequests() {
- return resendRequests;
- }
-
- public void setResendRequests(Boolean resendRequests) {
- this.resendRequests = resendRequests;
- }
-
-
- public BaseCompanyModel resendIntervalDays(Integer resendIntervalDays) {
- this.resendIntervalDays = resendIntervalDays;
- return this;
- }
-
- /**
- * Get resendIntervalDays
- * @return resendIntervalDays
- */
- @javax.annotation.Nullable
- public Integer getResendIntervalDays() {
- return resendIntervalDays;
- }
-
- public void setResendIntervalDays(Integer resendIntervalDays) {
- this.resendIntervalDays = resendIntervalDays;
- }
-
-
- public BaseCompanyModel maxReminderAttempts(Integer maxReminderAttempts) {
- this.maxReminderAttempts = maxReminderAttempts;
- return this;
- }
-
- /**
- * Get maxReminderAttempts
- * @return maxReminderAttempts
- */
- @javax.annotation.Nullable
- public Integer getMaxReminderAttempts() {
- return maxReminderAttempts;
- }
-
- public void setMaxReminderAttempts(Integer maxReminderAttempts) {
- this.maxReminderAttempts = maxReminderAttempts;
- }
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BaseCompanyModel baseCompanyModel = (BaseCompanyModel) o;
- return Objects.equals(this.name, baseCompanyModel.name) &&
- Objects.equals(this.email, baseCompanyModel.email) &&
- Objects.equals(this.address, baseCompanyModel.address) &&
- Objects.equals(this.city, baseCompanyModel.city) &&
- Objects.equals(this.state, baseCompanyModel.state) &&
- Objects.equals(this.zip, baseCompanyModel.zip) &&
- Objects.equals(this.telephone, baseCompanyModel.telephone) &&
- Objects.equals(this.tin, baseCompanyModel.tin) &&
- Objects.equals(this.dbaName, baseCompanyModel.dbaName) &&
- Objects.equals(this.referenceId, baseCompanyModel.referenceId) &&
- Objects.equals(this.doTinMatch, baseCompanyModel.doTinMatch) &&
- Objects.equals(this.groupName, baseCompanyModel.groupName) &&
- Objects.equals(this.foreignProvince, baseCompanyModel.foreignProvince) &&
- Objects.equals(this.countryCode, baseCompanyModel.countryCode) &&
- Objects.equals(this.resendRequests, baseCompanyModel.resendRequests) &&
- Objects.equals(this.resendIntervalDays, baseCompanyModel.resendIntervalDays) &&
- Objects.equals(this.maxReminderAttempts, baseCompanyModel.maxReminderAttempts);
- }
-
- private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
- return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, email, address, city, state, zip, telephone, tin, dbaName, referenceId, doTinMatch, groupName, foreignProvince, countryCode, resendRequests, resendIntervalDays, maxReminderAttempts);
- }
-
- private static int hashCodeNullable(JsonNullable a) {
- if (a == null) {
- return 1;
- }
- return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BaseCompanyModel {\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" address: ").append(toIndentedString(address)).append("\n");
- sb.append(" city: ").append(toIndentedString(city)).append("\n");
- sb.append(" state: ").append(toIndentedString(state)).append("\n");
- sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
- sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
- sb.append(" tin: ").append(toIndentedString(tin)).append("\n");
- sb.append(" dbaName: ").append(toIndentedString(dbaName)).append("\n");
- sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
- sb.append(" doTinMatch: ").append(toIndentedString(doTinMatch)).append("\n");
- sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
- sb.append(" foreignProvince: ").append(toIndentedString(foreignProvince)).append("\n");
- sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
- sb.append(" resendRequests: ").append(toIndentedString(resendRequests)).append("\n");
- sb.append(" resendIntervalDays: ").append(toIndentedString(resendIntervalDays)).append("\n");
- sb.append(" maxReminderAttempts: ").append(toIndentedString(maxReminderAttempts)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-
- public static HashSet openapiFields;
- public static HashSet openapiRequiredFields;
-
- static {
- // a set of all properties/fields (JSON key names)
- openapiFields = new HashSet();
-
- // a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet();
- }
-
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to BaseCompanyModel
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!BaseCompanyModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in BaseCompanyModel is not found in the empty JSON string", BaseCompanyModel.openapiRequiredFields.toString()));
- }
- }
-
- Set> entries = jsonElement.getAsJsonObject().entrySet();
- // check to see if the JSON string contains additional fields
- for (Map.Entry entry : entries) {
- if (!BaseCompanyModel.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BaseCompanyModel` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
- }
- if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
- }
- if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString()));
- }
- if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
- }
- if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
- }
- if ((jsonObj.get("zip") != null && !jsonObj.get("zip").isJsonNull()) && !jsonObj.get("zip").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `zip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zip").toString()));
- }
- if ((jsonObj.get("telephone") != null && !jsonObj.get("telephone").isJsonNull()) && !jsonObj.get("telephone").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `telephone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("telephone").toString()));
- }
- if ((jsonObj.get("tin") != null && !jsonObj.get("tin").isJsonNull()) && !jsonObj.get("tin").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `tin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tin").toString()));
- }
- if ((jsonObj.get("dbaName") != null && !jsonObj.get("dbaName").isJsonNull()) && !jsonObj.get("dbaName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `dbaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dbaName").toString()));
- }
- if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
- }
- if ((jsonObj.get("groupName") != null && !jsonObj.get("groupName").isJsonNull()) && !jsonObj.get("groupName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `groupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupName").toString()));
- }
- if ((jsonObj.get("foreignProvince") != null && !jsonObj.get("foreignProvince").isJsonNull()) && !jsonObj.get("foreignProvince").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `foreignProvince` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignProvince").toString()));
- }
- if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!BaseCompanyModel.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'BaseCompanyModel' and its subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(BaseCompanyModel.class));
-
- return (TypeAdapter) new TypeAdapter() {
- @Override
- public void write(JsonWriter out, BaseCompanyModel value) throws IOException {
- JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public BaseCompanyModel read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
-
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of BaseCompanyModel given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of BaseCompanyModel
- * @throws IOException if the JSON string is invalid with respect to BaseCompanyModel
- */
- public static BaseCompanyModel fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, BaseCompanyModel.class);
- }
-
- /**
- * Convert an instance of BaseCompanyModel to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
-
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/BaseFormListRequest.java b/src/main/java/Avalara/SDK/model/A1099/V2/BaseFormListRequest.java
deleted file mode 100644
index a5296db..0000000
--- a/src/main/java/Avalara/SDK/model/A1099/V2/BaseFormListRequest.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * AvaTax Software Development Kit for Java (JRE)
- *
- * (c) 2004-2025 Avalara, Inc.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Avalara 1099 & W-9 API Definition
- *
- * ## 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
- *
- * @author Sachin Baijal
- * @author Jonathan Wenger
- * @copyright 2004-2025 Avalara, Inc.
- * @license https://www.apache.org/licenses/LICENSE-2.0
- * @link https://github.com/avadev/Avalara-SDK-Java
- */
-
-package Avalara.SDK.model.A1099.V2;
-
-import java.util.Objects;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-import java.util.Arrays;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.TypeAdapterFactory;
-import com.google.gson.reflect.TypeToken;
-import com.google.gson.TypeAdapter;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-
-import java.lang.reflect.Type;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import Avalara.SDK.JSON;
-
-/**
- * BaseFormListRequest
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class BaseFormListRequest {
- public static final String SERIALIZED_NAME_FORM_TYPE = "formType";
- @SerializedName(SERIALIZED_NAME_FORM_TYPE)
- private String formType;
-
- public BaseFormListRequest() {
- }
-
- public BaseFormListRequest formType(String formType) {
- this.formType = formType;
- return this;
- }
-
- /**
- * Get formType
- * @return formType
- */
- @javax.annotation.Nullable
- public String getFormType() {
- return formType;
- }
-
- public void setFormType(String formType) {
- this.formType = formType;
- }
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BaseFormListRequest baseFormListRequest = (BaseFormListRequest) o;
- return Objects.equals(this.formType, baseFormListRequest.formType);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(formType);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BaseFormListRequest {\n");
- sb.append(" formType: ").append(toIndentedString(formType)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-
- public static HashSet openapiFields;
- public static HashSet openapiRequiredFields;
-
- static {
- // a set of all properties/fields (JSON key names)
- openapiFields = new HashSet();
- openapiFields.add("formType");
-
- // a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet();
- }
-
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to BaseFormListRequest
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!BaseFormListRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in BaseFormListRequest is not found in the empty JSON string", BaseFormListRequest.openapiRequiredFields.toString()));
- }
- }
-
- Set> entries = jsonElement.getAsJsonObject().entrySet();
- // check to see if the JSON string contains additional fields
- for (Map.Entry entry : entries) {
- if (!BaseFormListRequest.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `BaseFormListRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("formType") != null && !jsonObj.get("formType").isJsonNull()) && !jsonObj.get("formType").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `formType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("formType").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!BaseFormListRequest.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'BaseFormListRequest' and its subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(BaseFormListRequest.class));
-
- return (TypeAdapter) new TypeAdapter() {
- @Override
- public void write(JsonWriter out, BaseFormListRequest value) throws IOException {
- JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public BaseFormListRequest read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
-
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of BaseFormListRequest given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of BaseFormListRequest
- * @throws IOException if the JSON string is invalid with respect to BaseFormListRequest
- */
- public static BaseFormListRequest fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, BaseFormListRequest.class);
- }
-
- /**
- * Convert an instance of BaseFormListRequest to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
-
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/BulkUpsert1099FormsRequest.java b/src/main/java/Avalara/SDK/model/A1099/V2/BulkUpsert1099FormsRequest.java
deleted file mode 100644
index ecdea7c..0000000
--- a/src/main/java/Avalara/SDK/model/A1099/V2/BulkUpsert1099FormsRequest.java
+++ /dev/null
@@ -1,591 +0,0 @@
-/*
- * AvaTax Software Development Kit for Java (JRE)
- *
- * (c) 2004-2025 Avalara, Inc.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Avalara 1099 & W-9 API Definition
- *
- * ## 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
- *
- * @author Sachin Baijal
- * @author Jonathan Wenger
- * @copyright 2004-2025 Avalara, Inc.
- * @license https://www.apache.org/licenses/LICENSE-2.0
- * @link https://github.com/avadev/Avalara-SDK-Java
- */
-
-package Avalara.SDK.model.A1099.V2;
-
-import java.util.Objects;
-import Avalara.SDK.model.A1099.V2.Form1042SList;
-import Avalara.SDK.model.A1099.V2.Form1095BList;
-import Avalara.SDK.model.A1099.V2.Form1095CList;
-import Avalara.SDK.model.A1099.V2.Form1099DivList;
-import Avalara.SDK.model.A1099.V2.Form1099IntList;
-import Avalara.SDK.model.A1099.V2.Form1099KList;
-import Avalara.SDK.model.A1099.V2.Form1099MiscList;
-import Avalara.SDK.model.A1099.V2.Form1099NecList;
-import Avalara.SDK.model.A1099.V2.Form1099RList;
-import Avalara.SDK.model.A1099.V2.Form1099RListItem;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-
-
-import java.io.IOException;
-import java.lang.reflect.Type;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonParseException;
-import com.google.gson.TypeAdapter;
-import com.google.gson.TypeAdapterFactory;
-import com.google.gson.reflect.TypeToken;
-import com.google.gson.JsonPrimitive;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonSerializationContext;
-import com.google.gson.JsonSerializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonParseException;
-
-import Avalara.SDK.JSON;
-
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class BulkUpsert1099FormsRequest extends AbstractOpenApiSchema {
- private static final Logger log = Logger.getLogger(BulkUpsert1099FormsRequest.class.getName());
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!BulkUpsert1099FormsRequest.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'BulkUpsert1099FormsRequest' and its subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter adapterForm1042SList = gson.getDelegateAdapter(this, TypeToken.get(Form1042SList.class));
- final TypeAdapter adapterForm1095BList = gson.getDelegateAdapter(this, TypeToken.get(Form1095BList.class));
- final TypeAdapter adapterForm1095CList = gson.getDelegateAdapter(this, TypeToken.get(Form1095CList.class));
- final TypeAdapter adapterForm1099DivList = gson.getDelegateAdapter(this, TypeToken.get(Form1099DivList.class));
- final TypeAdapter adapterForm1099IntList = gson.getDelegateAdapter(this, TypeToken.get(Form1099IntList.class));
- final TypeAdapter adapterForm1099KList = gson.getDelegateAdapter(this, TypeToken.get(Form1099KList.class));
- final TypeAdapter adapterForm1099MiscList = gson.getDelegateAdapter(this, TypeToken.get(Form1099MiscList.class));
- final TypeAdapter adapterForm1099NecList = gson.getDelegateAdapter(this, TypeToken.get(Form1099NecList.class));
- final TypeAdapter adapterForm1099RList = gson.getDelegateAdapter(this, TypeToken.get(Form1099RList.class));
-
- return (TypeAdapter) new TypeAdapter() {
- @Override
- public void write(JsonWriter out, BulkUpsert1099FormsRequest value) throws IOException {
- if (value == null || value.getActualInstance() == null) {
- elementAdapter.write(out, null);
- return;
- }
-
- // check if the actual instance is of the type `Form1042SList`
- if (value.getActualInstance() instanceof Form1042SList) {
- JsonElement element = adapterForm1042SList.toJsonTree((Form1042SList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1095BList`
- if (value.getActualInstance() instanceof Form1095BList) {
- JsonElement element = adapterForm1095BList.toJsonTree((Form1095BList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1095CList`
- if (value.getActualInstance() instanceof Form1095CList) {
- JsonElement element = adapterForm1095CList.toJsonTree((Form1095CList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1099DivList`
- if (value.getActualInstance() instanceof Form1099DivList) {
- JsonElement element = adapterForm1099DivList.toJsonTree((Form1099DivList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1099IntList`
- if (value.getActualInstance() instanceof Form1099IntList) {
- JsonElement element = adapterForm1099IntList.toJsonTree((Form1099IntList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1099KList`
- if (value.getActualInstance() instanceof Form1099KList) {
- JsonElement element = adapterForm1099KList.toJsonTree((Form1099KList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1099MiscList`
- if (value.getActualInstance() instanceof Form1099MiscList) {
- JsonElement element = adapterForm1099MiscList.toJsonTree((Form1099MiscList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1099NecList`
- if (value.getActualInstance() instanceof Form1099NecList) {
- JsonElement element = adapterForm1099NecList.toJsonTree((Form1099NecList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- // check if the actual instance is of the type `Form1099RList`
- if (value.getActualInstance() instanceof Form1099RList) {
- JsonElement element = adapterForm1099RList.toJsonTree((Form1099RList)value.getActualInstance());
- elementAdapter.write(out, element);
- return;
- }
- throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099IntList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList");
- }
-
- @Override
- public BulkUpsert1099FormsRequest read(JsonReader in) throws IOException {
- Object deserialized = null;
- JsonElement jsonElement = elementAdapter.read(in);
-
- int match = 0;
- ArrayList errorMessages = new ArrayList<>();
- TypeAdapter actualAdapter = elementAdapter;
-
- // deserialize Form1042SList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1042SList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1042SList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1042SList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1042SList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1042SList'", e);
- }
- // deserialize Form1095BList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1095BList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1095BList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1095BList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1095BList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1095BList'", e);
- }
- // deserialize Form1095CList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1095CList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1095CList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1095CList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1095CList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1095CList'", e);
- }
- // deserialize Form1099DivList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1099DivList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1099DivList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1099DivList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1099DivList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1099DivList'", e);
- }
- // deserialize Form1099IntList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1099IntList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1099IntList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1099IntList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1099IntList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1099IntList'", e);
- }
- // deserialize Form1099KList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1099KList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1099KList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1099KList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1099KList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1099KList'", e);
- }
- // deserialize Form1099MiscList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1099MiscList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1099MiscList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1099MiscList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1099MiscList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1099MiscList'", e);
- }
- // deserialize Form1099NecList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1099NecList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1099NecList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1099NecList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1099NecList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1099NecList'", e);
- }
- // deserialize Form1099RList
- try {
- // validate the JSON object to see if any exception is thrown
- Form1099RList.validateJsonElement(jsonElement);
- actualAdapter = adapterForm1099RList;
- match++;
- log.log(Level.FINER, "Input data matches schema 'Form1099RList'");
- } catch (Exception e) {
- // deserialization failed, continue
- errorMessages.add(String.format("Deserialization for Form1099RList failed with `%s`.", e.getMessage()));
- log.log(Level.FINER, "Input data does not match schema 'Form1099RList'", e);
- }
-
- if (match == 1) {
- BulkUpsert1099FormsRequest ret = new BulkUpsert1099FormsRequest();
- ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement));
- return ret;
- }
-
- throw new IOException(String.format("Failed deserialization for BulkUpsert1099FormsRequest: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString()));
- }
- }.nullSafe();
- }
- }
-
- // store a list of schema names defined in oneOf
- public static final Map> schemas = new HashMap>();
-
- public BulkUpsert1099FormsRequest() {
- super("oneOf", Boolean.FALSE);
- }
-
- public BulkUpsert1099FormsRequest(Object o) {
- super("oneOf", Boolean.FALSE);
- setActualInstance(o);
- }
-
- static {
- schemas.put("Form1042SList", Form1042SList.class);
- schemas.put("Form1095BList", Form1095BList.class);
- schemas.put("Form1095CList", Form1095CList.class);
- schemas.put("Form1099DivList", Form1099DivList.class);
- schemas.put("Form1099IntList", Form1099IntList.class);
- schemas.put("Form1099KList", Form1099KList.class);
- schemas.put("Form1099MiscList", Form1099MiscList.class);
- schemas.put("Form1099NecList", Form1099NecList.class);
- schemas.put("Form1099RList", Form1099RList.class);
- }
-
- @Override
- public Map> getSchemas() {
- return BulkUpsert1099FormsRequest.schemas;
- }
-
- /**
- * Set the instance that matches the oneOf child schema, check
- * the instance parameter is valid against the oneOf child schemas:
- * Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099IntList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList
- *
- * It could be an instance of the 'oneOf' schemas.
- */
- @Override
- public void setActualInstance(Object instance) {
- if (instance instanceof Form1042SList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1095BList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1095CList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1099DivList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1099IntList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1099KList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1099MiscList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1099NecList) {
- super.setActualInstance(instance);
- return;
- }
-
- if (instance instanceof Form1099RList) {
- super.setActualInstance(instance);
- return;
- }
-
- throw new RuntimeException("Invalid instance type. Must be Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099IntList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList");
- }
-
- /**
- * Get the actual instance, which can be the following:
- * Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099IntList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList
- *
- * @return The actual instance (Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099IntList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList)
- */
- @SuppressWarnings("unchecked")
- @Override
- public Object getActualInstance() {
- return super.getActualInstance();
- }
-
- /**
- * Get the actual instance of `Form1042SList`. If the actual instance is not `Form1042SList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1042SList`
- * @throws ClassCastException if the instance is not `Form1042SList`
- */
- public Form1042SList getForm1042SList() throws ClassCastException {
- return (Form1042SList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1095BList`. If the actual instance is not `Form1095BList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1095BList`
- * @throws ClassCastException if the instance is not `Form1095BList`
- */
- public Form1095BList getForm1095BList() throws ClassCastException {
- return (Form1095BList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1095CList`. If the actual instance is not `Form1095CList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1095CList`
- * @throws ClassCastException if the instance is not `Form1095CList`
- */
- public Form1095CList getForm1095CList() throws ClassCastException {
- return (Form1095CList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1099DivList`. If the actual instance is not `Form1099DivList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1099DivList`
- * @throws ClassCastException if the instance is not `Form1099DivList`
- */
- public Form1099DivList getForm1099DivList() throws ClassCastException {
- return (Form1099DivList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1099IntList`. If the actual instance is not `Form1099IntList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1099IntList`
- * @throws ClassCastException if the instance is not `Form1099IntList`
- */
- public Form1099IntList getForm1099IntList() throws ClassCastException {
- return (Form1099IntList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1099KList`. If the actual instance is not `Form1099KList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1099KList`
- * @throws ClassCastException if the instance is not `Form1099KList`
- */
- public Form1099KList getForm1099KList() throws ClassCastException {
- return (Form1099KList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1099MiscList`. If the actual instance is not `Form1099MiscList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1099MiscList`
- * @throws ClassCastException if the instance is not `Form1099MiscList`
- */
- public Form1099MiscList getForm1099MiscList() throws ClassCastException {
- return (Form1099MiscList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1099NecList`. If the actual instance is not `Form1099NecList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1099NecList`
- * @throws ClassCastException if the instance is not `Form1099NecList`
- */
- public Form1099NecList getForm1099NecList() throws ClassCastException {
- return (Form1099NecList)super.getActualInstance();
- }
- /**
- * Get the actual instance of `Form1099RList`. If the actual instance is not `Form1099RList`,
- * the ClassCastException will be thrown.
- *
- * @return The actual instance of `Form1099RList`
- * @throws ClassCastException if the instance is not `Form1099RList`
- */
- public Form1099RList getForm1099RList() throws ClassCastException {
- return (Form1099RList)super.getActualInstance();
- }
-
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to BulkUpsert1099FormsRequest
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- // validate oneOf schemas one by one
- int validCount = 0;
- ArrayList errorMessages = new ArrayList<>();
- // validate the json string with Form1042SList
- try {
- Form1042SList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1042SList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1095BList
- try {
- Form1095BList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1095BList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1095CList
- try {
- Form1095CList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1095CList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1099DivList
- try {
- Form1099DivList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1099DivList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1099IntList
- try {
- Form1099IntList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1099IntList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1099KList
- try {
- Form1099KList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1099KList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1099MiscList
- try {
- Form1099MiscList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1099MiscList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1099NecList
- try {
- Form1099NecList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1099NecList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- // validate the json string with Form1099RList
- try {
- Form1099RList.validateJsonElement(jsonElement);
- validCount++;
- } catch (Exception e) {
- errorMessages.add(String.format("Deserialization for Form1099RList failed with `%s`.", e.getMessage()));
- // continue to the next one
- }
- if (validCount != 1) {
- throw new IOException(String.format("The JSON string is invalid for BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099IntList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString()));
- }
- }
-
- /**
- * Create an instance of BulkUpsert1099FormsRequest given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of BulkUpsert1099FormsRequest
- * @throws IOException if the JSON string is invalid with respect to BulkUpsert1099FormsRequest
- */
- public static BulkUpsert1099FormsRequest fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, BulkUpsert1099FormsRequest.class);
- }
-
- /**
- * Convert an instance of BulkUpsert1099FormsRequest to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
-
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyCreateUpdateRequestModel.java b/src/main/java/Avalara/SDK/model/A1099/V2/CompanyCreateUpdateRequestModel.java
index 2f28f64..686ea5f 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyCreateUpdateRequestModel.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/CompanyCreateUpdateRequestModel.java
@@ -62,6 +62,10 @@ public class CompanyCreateUpdateRequestModel {
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
+ public static final String SERIALIZED_NAME_DBA_NAME = "dbaName";
+ @SerializedName(SERIALIZED_NAME_DBA_NAME)
+ private String dbaName;
+
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
private String email;
@@ -90,10 +94,6 @@ public class CompanyCreateUpdateRequestModel {
@SerializedName(SERIALIZED_NAME_TIN)
private String tin;
- public static final String SERIALIZED_NAME_DBA_NAME = "dbaName";
- @SerializedName(SERIALIZED_NAME_DBA_NAME)
- private String dbaName;
-
public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
@SerializedName(SERIALIZED_NAME_REFERENCE_ID)
private String referenceId;
@@ -135,7 +135,7 @@ public CompanyCreateUpdateRequestModel name(String name) {
}
/**
- * Get name
+ * Legal name. Not the DBA name.
* @return name
*/
@javax.annotation.Nullable
@@ -148,13 +148,32 @@ public void setName(String name) {
}
+ public CompanyCreateUpdateRequestModel dbaName(String dbaName) {
+ this.dbaName = dbaName;
+ return this;
+ }
+
+ /**
+ * Doing Business As (DBA) name or continuation of a long legal name.
+ * @return dbaName
+ */
+ @javax.annotation.Nullable
+ public String getDbaName() {
+ return dbaName;
+ }
+
+ public void setDbaName(String dbaName) {
+ this.dbaName = dbaName;
+ }
+
+
public CompanyCreateUpdateRequestModel email(String email) {
this.email = email;
return this;
}
/**
- * Get email
+ * Contact email address. For inquiries by vendors/employees.
* @return email
*/
@javax.annotation.Nullable
@@ -173,7 +192,7 @@ public CompanyCreateUpdateRequestModel address(String address) {
}
/**
- * Get address
+ * Address.
* @return address
*/
@javax.annotation.Nullable
@@ -192,7 +211,7 @@ public CompanyCreateUpdateRequestModel city(String city) {
}
/**
- * Get city
+ * City.
* @return city
*/
@javax.annotation.Nullable
@@ -211,7 +230,7 @@ public CompanyCreateUpdateRequestModel state(String state) {
}
/**
- * Get state
+ * Two-letter US state or Canadian province code (required for US/CA addresses).
* @return state
*/
@javax.annotation.Nullable
@@ -230,7 +249,7 @@ public CompanyCreateUpdateRequestModel zip(String zip) {
}
/**
- * Get zip
+ * ZIP/postal code.
* @return zip
*/
@javax.annotation.Nullable
@@ -249,7 +268,7 @@ public CompanyCreateUpdateRequestModel telephone(String telephone) {
}
/**
- * Get telephone
+ * Contact phone number (must contain at least 10 digits, max 15 characters).
* @return telephone
*/
@javax.annotation.Nullable
@@ -268,7 +287,7 @@ public CompanyCreateUpdateRequestModel tin(String tin) {
}
/**
- * Get tin
+ * Federal Tax Identification Number (TIN). EIN/Tax ID (required for US companies).
* @return tin
*/
@javax.annotation.Nullable
@@ -281,32 +300,13 @@ public void setTin(String tin) {
}
- public CompanyCreateUpdateRequestModel dbaName(String dbaName) {
- this.dbaName = dbaName;
- return this;
- }
-
- /**
- * Get dbaName
- * @return dbaName
- */
- @javax.annotation.Nullable
- public String getDbaName() {
- return dbaName;
- }
-
- public void setDbaName(String dbaName) {
- this.dbaName = dbaName;
- }
-
-
public CompanyCreateUpdateRequestModel referenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
/**
- * Get referenceId
+ * Internal reference ID. Never shown to any agency or recipient.
* @return referenceId
*/
@javax.annotation.Nullable
@@ -325,7 +325,7 @@ public CompanyCreateUpdateRequestModel doTinMatch(Boolean doTinMatch) {
}
/**
- * Get doTinMatch
+ * Indicates whether the company authorizes IRS TIN matching.
* @return doTinMatch
*/
@javax.annotation.Nullable
@@ -344,7 +344,7 @@ public CompanyCreateUpdateRequestModel groupName(String groupName) {
}
/**
- * Get groupName
+ * Group name for organizing companies (creates or finds group by name).
* @return groupName
*/
@javax.annotation.Nullable
@@ -363,7 +363,7 @@ public CompanyCreateUpdateRequestModel foreignProvince(String foreignProvince) {
}
/**
- * Get foreignProvince
+ * Province or region for non-US/CA addresses.
* @return foreignProvince
*/
@javax.annotation.Nullable
@@ -382,7 +382,7 @@ public CompanyCreateUpdateRequestModel countryCode(String countryCode) {
}
/**
- * Get countryCode
+ * Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
* @return countryCode
*/
@javax.annotation.Nullable
@@ -401,7 +401,7 @@ public CompanyCreateUpdateRequestModel resendRequests(Boolean resendRequests) {
}
/**
- * Get resendRequests
+ * Boolean to enable automatic reminder emails (default: false).
* @return resendRequests
*/
@javax.annotation.Nullable
@@ -420,7 +420,7 @@ public CompanyCreateUpdateRequestModel resendIntervalDays(Integer resendInterval
}
/**
- * Get resendIntervalDays
+ * Days between reminder emails (7-365, required if resendRequests is true).
* @return resendIntervalDays
*/
@javax.annotation.Nullable
@@ -439,7 +439,7 @@ public CompanyCreateUpdateRequestModel maxReminderAttempts(Integer maxReminderAt
}
/**
- * Get maxReminderAttempts
+ * Maximum number of reminder attempts (1-52, required if resendRequests is true).
* @return maxReminderAttempts
*/
@javax.annotation.Nullable
@@ -463,6 +463,7 @@ public boolean equals(Object o) {
}
CompanyCreateUpdateRequestModel companyCreateUpdateRequestModel = (CompanyCreateUpdateRequestModel) o;
return Objects.equals(this.name, companyCreateUpdateRequestModel.name) &&
+ Objects.equals(this.dbaName, companyCreateUpdateRequestModel.dbaName) &&
Objects.equals(this.email, companyCreateUpdateRequestModel.email) &&
Objects.equals(this.address, companyCreateUpdateRequestModel.address) &&
Objects.equals(this.city, companyCreateUpdateRequestModel.city) &&
@@ -470,7 +471,6 @@ public boolean equals(Object o) {
Objects.equals(this.zip, companyCreateUpdateRequestModel.zip) &&
Objects.equals(this.telephone, companyCreateUpdateRequestModel.telephone) &&
Objects.equals(this.tin, companyCreateUpdateRequestModel.tin) &&
- Objects.equals(this.dbaName, companyCreateUpdateRequestModel.dbaName) &&
Objects.equals(this.referenceId, companyCreateUpdateRequestModel.referenceId) &&
Objects.equals(this.doTinMatch, companyCreateUpdateRequestModel.doTinMatch) &&
Objects.equals(this.groupName, companyCreateUpdateRequestModel.groupName) &&
@@ -487,7 +487,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(name, email, address, city, state, zip, telephone, tin, dbaName, referenceId, doTinMatch, groupName, foreignProvince, countryCode, resendRequests, resendIntervalDays, maxReminderAttempts);
+ return Objects.hash(name, dbaName, email, address, city, state, zip, telephone, tin, referenceId, doTinMatch, groupName, foreignProvince, countryCode, resendRequests, resendIntervalDays, maxReminderAttempts);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -502,6 +502,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CompanyCreateUpdateRequestModel {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" dbaName: ").append(toIndentedString(dbaName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
@@ -509,7 +510,6 @@ public String toString() {
sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
sb.append(" tin: ").append(toIndentedString(tin)).append("\n");
- sb.append(" dbaName: ").append(toIndentedString(dbaName)).append("\n");
sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
sb.append(" doTinMatch: ").append(toIndentedString(doTinMatch)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
@@ -541,6 +541,7 @@ private String toIndentedString(Object o) {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet();
openapiFields.add("name");
+ openapiFields.add("dbaName");
openapiFields.add("email");
openapiFields.add("address");
openapiFields.add("city");
@@ -548,7 +549,6 @@ private String toIndentedString(Object o) {
openapiFields.add("zip");
openapiFields.add("telephone");
openapiFields.add("tin");
- openapiFields.add("dbaName");
openapiFields.add("referenceId");
openapiFields.add("doTinMatch");
openapiFields.add("groupName");
@@ -560,6 +560,14 @@ private String toIndentedString(Object o) {
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
+ openapiRequiredFields.add("name");
+ openapiRequiredFields.add("email");
+ openapiRequiredFields.add("address");
+ openapiRequiredFields.add("city");
+ openapiRequiredFields.add("zip");
+ openapiRequiredFields.add("telephone");
+ openapiRequiredFields.add("tin");
+ openapiRequiredFields.add("countryCode");
}
/**
@@ -582,10 +590,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CompanyCreateUpdateRequestModel` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : CompanyCreateUpdateRequestModel.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString()));
+ }
+ }
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
}
+ if ((jsonObj.get("dbaName") != null && !jsonObj.get("dbaName").isJsonNull()) && !jsonObj.get("dbaName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `dbaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dbaName").toString()));
+ }
if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
}
@@ -607,9 +625,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("tin") != null && !jsonObj.get("tin").isJsonNull()) && !jsonObj.get("tin").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `tin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tin").toString()));
}
- if ((jsonObj.get("dbaName") != null && !jsonObj.get("dbaName").isJsonNull()) && !jsonObj.get("dbaName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `dbaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dbaName").toString()));
- }
if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
}
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyModel.java b/src/main/java/Avalara/SDK/model/A1099/V2/CompanyModel.java
deleted file mode 100644
index 02dded8..0000000
--- a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyModel.java
+++ /dev/null
@@ -1,805 +0,0 @@
-/*
- * AvaTax Software Development Kit for Java (JRE)
- *
- * (c) 2004-2025 Avalara, Inc.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Avalara 1099 & W-9 API Definition
- *
- * ## 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
- *
- * @author Sachin Baijal
- * @author Jonathan Wenger
- * @copyright 2004-2025 Avalara, Inc.
- * @license https://www.apache.org/licenses/LICENSE-2.0
- * @link https://github.com/avadev/Avalara-SDK-Java
- */
-
-package Avalara.SDK.model.A1099.V2;
-
-import java.util.Objects;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.openapitools.jackson.nullable.JsonNullable;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.TypeAdapterFactory;
-import com.google.gson.reflect.TypeToken;
-import com.google.gson.TypeAdapter;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-
-import java.lang.reflect.Type;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import Avalara.SDK.JSON;
-
-/**
- * CompanyModel
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class CompanyModel {
- public static final String SERIALIZED_NAME_ID = "id";
- @SerializedName(SERIALIZED_NAME_ID)
- private String id;
-
- public static final String SERIALIZED_NAME_USER_ID = "userId";
- @SerializedName(SERIALIZED_NAME_USER_ID)
- private Long userId;
-
- public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId";
- @SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
- private Long accountId;
-
- public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
- @SerializedName(SERIALIZED_NAME_CREATED_AT)
- private OffsetDateTime createdAt;
-
- public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
- @SerializedName(SERIALIZED_NAME_UPDATED_AT)
- private OffsetDateTime updatedAt;
-
- public static final String SERIALIZED_NAME_NAME = "name";
- @SerializedName(SERIALIZED_NAME_NAME)
- private String name;
-
- public static final String SERIALIZED_NAME_EMAIL = "email";
- @SerializedName(SERIALIZED_NAME_EMAIL)
- private String email;
-
- public static final String SERIALIZED_NAME_ADDRESS = "address";
- @SerializedName(SERIALIZED_NAME_ADDRESS)
- private String address;
-
- public static final String SERIALIZED_NAME_CITY = "city";
- @SerializedName(SERIALIZED_NAME_CITY)
- private String city;
-
- public static final String SERIALIZED_NAME_STATE = "state";
- @SerializedName(SERIALIZED_NAME_STATE)
- private String state;
-
- public static final String SERIALIZED_NAME_ZIP = "zip";
- @SerializedName(SERIALIZED_NAME_ZIP)
- private String zip;
-
- public static final String SERIALIZED_NAME_TELEPHONE = "telephone";
- @SerializedName(SERIALIZED_NAME_TELEPHONE)
- private String telephone;
-
- public static final String SERIALIZED_NAME_TIN = "tin";
- @SerializedName(SERIALIZED_NAME_TIN)
- private String tin;
-
- public static final String SERIALIZED_NAME_DBA_NAME = "dbaName";
- @SerializedName(SERIALIZED_NAME_DBA_NAME)
- private String dbaName;
-
- public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
- @SerializedName(SERIALIZED_NAME_REFERENCE_ID)
- private String referenceId;
-
- public static final String SERIALIZED_NAME_DO_TIN_MATCH = "doTinMatch";
- @SerializedName(SERIALIZED_NAME_DO_TIN_MATCH)
- private Boolean doTinMatch;
-
- public static final String SERIALIZED_NAME_GROUP_NAME = "groupName";
- @SerializedName(SERIALIZED_NAME_GROUP_NAME)
- private String groupName;
-
- public static final String SERIALIZED_NAME_FOREIGN_PROVINCE = "foreignProvince";
- @SerializedName(SERIALIZED_NAME_FOREIGN_PROVINCE)
- private String foreignProvince;
-
- public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
- @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
- private String countryCode;
-
- public static final String SERIALIZED_NAME_RESEND_REQUESTS = "resendRequests";
- @SerializedName(SERIALIZED_NAME_RESEND_REQUESTS)
- private Boolean resendRequests;
-
- public static final String SERIALIZED_NAME_RESEND_INTERVAL_DAYS = "resendIntervalDays";
- @SerializedName(SERIALIZED_NAME_RESEND_INTERVAL_DAYS)
- private Integer resendIntervalDays;
-
- public static final String SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS = "maxReminderAttempts";
- @SerializedName(SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS)
- private Integer maxReminderAttempts;
-
- public CompanyModel() {
- }
-
- public CompanyModel id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Company ID
- * @return id
- */
- @javax.annotation.Nullable
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
-
- public CompanyModel userId(Long userId) {
- this.userId = userId;
- return this;
- }
-
- /**
- * User ID associated with the company
- * @return userId
- */
- @javax.annotation.Nullable
- public Long getUserId() {
- return userId;
- }
-
- public void setUserId(Long userId) {
- this.userId = userId;
- }
-
-
- public CompanyModel accountId(Long accountId) {
- this.accountId = accountId;
- return this;
- }
-
- /**
- * Account ID associated with the company
- * @return accountId
- */
- @javax.annotation.Nullable
- public Long getAccountId() {
- return accountId;
- }
-
- public void setAccountId(Long accountId) {
- this.accountId = accountId;
- }
-
-
- public CompanyModel createdAt(OffsetDateTime createdAt) {
- this.createdAt = createdAt;
- return this;
- }
-
- /**
- * Record creation timestamp
- * @return createdAt
- */
- @javax.annotation.Nullable
- public OffsetDateTime getCreatedAt() {
- return createdAt;
- }
-
- public void setCreatedAt(OffsetDateTime createdAt) {
- this.createdAt = createdAt;
- }
-
-
- public CompanyModel updatedAt(OffsetDateTime updatedAt) {
- this.updatedAt = updatedAt;
- return this;
- }
-
- /**
- * Record last update timestamp
- * @return updatedAt
- */
- @javax.annotation.Nullable
- public OffsetDateTime getUpdatedAt() {
- return updatedAt;
- }
-
- public void setUpdatedAt(OffsetDateTime updatedAt) {
- this.updatedAt = updatedAt;
- }
-
-
- public CompanyModel name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- */
- @javax.annotation.Nullable
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
-
- public CompanyModel email(String email) {
- this.email = email;
- return this;
- }
-
- /**
- * Get email
- * @return email
- */
- @javax.annotation.Nullable
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
-
- public CompanyModel address(String address) {
- this.address = address;
- return this;
- }
-
- /**
- * Get address
- * @return address
- */
- @javax.annotation.Nullable
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
-
- public CompanyModel city(String city) {
- this.city = city;
- return this;
- }
-
- /**
- * Get city
- * @return city
- */
- @javax.annotation.Nullable
- public String getCity() {
- return city;
- }
-
- public void setCity(String city) {
- this.city = city;
- }
-
-
- public CompanyModel state(String state) {
- this.state = state;
- return this;
- }
-
- /**
- * Get state
- * @return state
- */
- @javax.annotation.Nullable
- public String getState() {
- return state;
- }
-
- public void setState(String state) {
- this.state = state;
- }
-
-
- public CompanyModel zip(String zip) {
- this.zip = zip;
- return this;
- }
-
- /**
- * Get zip
- * @return zip
- */
- @javax.annotation.Nullable
- public String getZip() {
- return zip;
- }
-
- public void setZip(String zip) {
- this.zip = zip;
- }
-
-
- public CompanyModel telephone(String telephone) {
- this.telephone = telephone;
- return this;
- }
-
- /**
- * Get telephone
- * @return telephone
- */
- @javax.annotation.Nullable
- public String getTelephone() {
- return telephone;
- }
-
- public void setTelephone(String telephone) {
- this.telephone = telephone;
- }
-
-
- public CompanyModel tin(String tin) {
- this.tin = tin;
- return this;
- }
-
- /**
- * Get tin
- * @return tin
- */
- @javax.annotation.Nullable
- public String getTin() {
- return tin;
- }
-
- public void setTin(String tin) {
- this.tin = tin;
- }
-
-
- public CompanyModel dbaName(String dbaName) {
- this.dbaName = dbaName;
- return this;
- }
-
- /**
- * Get dbaName
- * @return dbaName
- */
- @javax.annotation.Nullable
- public String getDbaName() {
- return dbaName;
- }
-
- public void setDbaName(String dbaName) {
- this.dbaName = dbaName;
- }
-
-
- public CompanyModel referenceId(String referenceId) {
- this.referenceId = referenceId;
- return this;
- }
-
- /**
- * Get referenceId
- * @return referenceId
- */
- @javax.annotation.Nullable
- public String getReferenceId() {
- return referenceId;
- }
-
- public void setReferenceId(String referenceId) {
- this.referenceId = referenceId;
- }
-
-
- public CompanyModel doTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
- return this;
- }
-
- /**
- * Get doTinMatch
- * @return doTinMatch
- */
- @javax.annotation.Nullable
- public Boolean getDoTinMatch() {
- return doTinMatch;
- }
-
- public void setDoTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
- }
-
-
- public CompanyModel groupName(String groupName) {
- this.groupName = groupName;
- return this;
- }
-
- /**
- * Get groupName
- * @return groupName
- */
- @javax.annotation.Nullable
- public String getGroupName() {
- return groupName;
- }
-
- public void setGroupName(String groupName) {
- this.groupName = groupName;
- }
-
-
- public CompanyModel foreignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
- return this;
- }
-
- /**
- * Get foreignProvince
- * @return foreignProvince
- */
- @javax.annotation.Nullable
- public String getForeignProvince() {
- return foreignProvince;
- }
-
- public void setForeignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
- }
-
-
- public CompanyModel countryCode(String countryCode) {
- this.countryCode = countryCode;
- return this;
- }
-
- /**
- * Get countryCode
- * @return countryCode
- */
- @javax.annotation.Nullable
- public String getCountryCode() {
- return countryCode;
- }
-
- public void setCountryCode(String countryCode) {
- this.countryCode = countryCode;
- }
-
-
- public CompanyModel resendRequests(Boolean resendRequests) {
- this.resendRequests = resendRequests;
- return this;
- }
-
- /**
- * Get resendRequests
- * @return resendRequests
- */
- @javax.annotation.Nullable
- public Boolean getResendRequests() {
- return resendRequests;
- }
-
- public void setResendRequests(Boolean resendRequests) {
- this.resendRequests = resendRequests;
- }
-
-
- public CompanyModel resendIntervalDays(Integer resendIntervalDays) {
- this.resendIntervalDays = resendIntervalDays;
- return this;
- }
-
- /**
- * Get resendIntervalDays
- * @return resendIntervalDays
- */
- @javax.annotation.Nullable
- public Integer getResendIntervalDays() {
- return resendIntervalDays;
- }
-
- public void setResendIntervalDays(Integer resendIntervalDays) {
- this.resendIntervalDays = resendIntervalDays;
- }
-
-
- public CompanyModel maxReminderAttempts(Integer maxReminderAttempts) {
- this.maxReminderAttempts = maxReminderAttempts;
- return this;
- }
-
- /**
- * Get maxReminderAttempts
- * @return maxReminderAttempts
- */
- @javax.annotation.Nullable
- public Integer getMaxReminderAttempts() {
- return maxReminderAttempts;
- }
-
- public void setMaxReminderAttempts(Integer maxReminderAttempts) {
- this.maxReminderAttempts = maxReminderAttempts;
- }
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CompanyModel companyModel = (CompanyModel) o;
- return Objects.equals(this.id, companyModel.id) &&
- Objects.equals(this.userId, companyModel.userId) &&
- Objects.equals(this.accountId, companyModel.accountId) &&
- Objects.equals(this.createdAt, companyModel.createdAt) &&
- Objects.equals(this.updatedAt, companyModel.updatedAt) &&
- Objects.equals(this.name, companyModel.name) &&
- Objects.equals(this.email, companyModel.email) &&
- Objects.equals(this.address, companyModel.address) &&
- Objects.equals(this.city, companyModel.city) &&
- Objects.equals(this.state, companyModel.state) &&
- Objects.equals(this.zip, companyModel.zip) &&
- Objects.equals(this.telephone, companyModel.telephone) &&
- Objects.equals(this.tin, companyModel.tin) &&
- Objects.equals(this.dbaName, companyModel.dbaName) &&
- Objects.equals(this.referenceId, companyModel.referenceId) &&
- Objects.equals(this.doTinMatch, companyModel.doTinMatch) &&
- Objects.equals(this.groupName, companyModel.groupName) &&
- Objects.equals(this.foreignProvince, companyModel.foreignProvince) &&
- Objects.equals(this.countryCode, companyModel.countryCode) &&
- Objects.equals(this.resendRequests, companyModel.resendRequests) &&
- Objects.equals(this.resendIntervalDays, companyModel.resendIntervalDays) &&
- Objects.equals(this.maxReminderAttempts, companyModel.maxReminderAttempts);
- }
-
- private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
- return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, userId, accountId, createdAt, updatedAt, name, email, address, city, state, zip, telephone, tin, dbaName, referenceId, doTinMatch, groupName, foreignProvince, countryCode, resendRequests, resendIntervalDays, maxReminderAttempts);
- }
-
- private static int hashCodeNullable(JsonNullable a) {
- if (a == null) {
- return 1;
- }
- return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CompanyModel {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
- sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
- sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
- sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" address: ").append(toIndentedString(address)).append("\n");
- sb.append(" city: ").append(toIndentedString(city)).append("\n");
- sb.append(" state: ").append(toIndentedString(state)).append("\n");
- sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
- sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
- sb.append(" tin: ").append(toIndentedString(tin)).append("\n");
- sb.append(" dbaName: ").append(toIndentedString(dbaName)).append("\n");
- sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
- sb.append(" doTinMatch: ").append(toIndentedString(doTinMatch)).append("\n");
- sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
- sb.append(" foreignProvince: ").append(toIndentedString(foreignProvince)).append("\n");
- sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
- sb.append(" resendRequests: ").append(toIndentedString(resendRequests)).append("\n");
- sb.append(" resendIntervalDays: ").append(toIndentedString(resendIntervalDays)).append("\n");
- sb.append(" maxReminderAttempts: ").append(toIndentedString(maxReminderAttempts)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-
- public static HashSet openapiFields;
- public static HashSet openapiRequiredFields;
-
- static {
- // a set of all properties/fields (JSON key names)
- openapiFields = new HashSet();
- openapiFields.add("name");
- openapiFields.add("email");
- openapiFields.add("address");
- openapiFields.add("city");
- openapiFields.add("state");
- openapiFields.add("zip");
- openapiFields.add("telephone");
- openapiFields.add("tin");
- openapiFields.add("dbaName");
- openapiFields.add("referenceId");
- openapiFields.add("doTinMatch");
- openapiFields.add("groupName");
- openapiFields.add("foreignProvince");
- openapiFields.add("countryCode");
- openapiFields.add("resendRequests");
- openapiFields.add("resendIntervalDays");
- openapiFields.add("maxReminderAttempts");
-
- // a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet();
- }
-
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CompanyModel
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!CompanyModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyModel is not found in the empty JSON string", CompanyModel.openapiRequiredFields.toString()));
- }
- }
-
- Set> entries = jsonElement.getAsJsonObject().entrySet();
- // check to see if the JSON string contains additional fields
- for (Map.Entry entry : entries) {
- if (!CompanyModel.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CompanyModel` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
- }
- if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
- }
- if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
- }
- if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString()));
- }
- if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
- }
- if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
- }
- if ((jsonObj.get("zip") != null && !jsonObj.get("zip").isJsonNull()) && !jsonObj.get("zip").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `zip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zip").toString()));
- }
- if ((jsonObj.get("telephone") != null && !jsonObj.get("telephone").isJsonNull()) && !jsonObj.get("telephone").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `telephone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("telephone").toString()));
- }
- if ((jsonObj.get("tin") != null && !jsonObj.get("tin").isJsonNull()) && !jsonObj.get("tin").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `tin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tin").toString()));
- }
- if ((jsonObj.get("dbaName") != null && !jsonObj.get("dbaName").isJsonNull()) && !jsonObj.get("dbaName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `dbaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dbaName").toString()));
- }
- if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
- }
- if ((jsonObj.get("groupName") != null && !jsonObj.get("groupName").isJsonNull()) && !jsonObj.get("groupName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `groupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupName").toString()));
- }
- if ((jsonObj.get("foreignProvince") != null && !jsonObj.get("foreignProvince").isJsonNull()) && !jsonObj.get("foreignProvince").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `foreignProvince` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignProvince").toString()));
- }
- if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!CompanyModel.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'CompanyModel' and its subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(CompanyModel.class));
-
- return (TypeAdapter) new TypeAdapter() {
- @Override
- public void write(JsonWriter out, CompanyModel value) throws IOException {
- JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public CompanyModel read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
-
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of CompanyModel given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CompanyModel
- * @throws IOException if the JSON string is invalid with respect to CompanyModel
- */
- public static CompanyModel fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, CompanyModel.class);
- }
-
- /**
- * Convert an instance of CompanyModel to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
-
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponse.java b/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponse.java
index fe54e4e..6d5c0ca 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponse.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponse.java
@@ -63,13 +63,13 @@ public class CompanyResponse {
@SerializedName(SERIALIZED_NAME_ID)
private String id;
- public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
- @SerializedName(SERIALIZED_NAME_REFERENCE_ID)
- private String referenceId;
+ public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
+ @SerializedName(SERIALIZED_NAME_CREATED_AT)
+ private OffsetDateTime createdAt;
- public static final String SERIALIZED_NAME_GROUP_NAME = "groupName";
- @SerializedName(SERIALIZED_NAME_GROUP_NAME)
- private String groupName;
+ public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
+ @SerializedName(SERIALIZED_NAME_UPDATED_AT)
+ private OffsetDateTime updatedAt;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@@ -79,6 +79,10 @@ public class CompanyResponse {
@SerializedName(SERIALIZED_NAME_DBA_NAME)
private String dbaName;
+ public static final String SERIALIZED_NAME_EMAIL = "email";
+ @SerializedName(SERIALIZED_NAME_EMAIL)
+ private String email;
+
public static final String SERIALIZED_NAME_ADDRESS = "address";
@SerializedName(SERIALIZED_NAME_ADDRESS)
private String address;
@@ -91,22 +95,10 @@ public class CompanyResponse {
@SerializedName(SERIALIZED_NAME_STATE)
private String state;
- public static final String SERIALIZED_NAME_FOREIGN_PROVINCE = "foreignProvince";
- @SerializedName(SERIALIZED_NAME_FOREIGN_PROVINCE)
- private String foreignProvince;
-
public static final String SERIALIZED_NAME_ZIP = "zip";
@SerializedName(SERIALIZED_NAME_ZIP)
private String zip;
- public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
- @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
- private String countryCode;
-
- public static final String SERIALIZED_NAME_EMAIL = "email";
- @SerializedName(SERIALIZED_NAME_EMAIL)
- private String email;
-
public static final String SERIALIZED_NAME_TELEPHONE = "telephone";
@SerializedName(SERIALIZED_NAME_TELEPHONE)
private String telephone;
@@ -115,10 +107,26 @@ public class CompanyResponse {
@SerializedName(SERIALIZED_NAME_TIN)
private String tin;
+ public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
+ @SerializedName(SERIALIZED_NAME_REFERENCE_ID)
+ private String referenceId;
+
public static final String SERIALIZED_NAME_DO_TIN_MATCH = "doTinMatch";
@SerializedName(SERIALIZED_NAME_DO_TIN_MATCH)
private Boolean doTinMatch;
+ public static final String SERIALIZED_NAME_GROUP_NAME = "groupName";
+ @SerializedName(SERIALIZED_NAME_GROUP_NAME)
+ private String groupName;
+
+ public static final String SERIALIZED_NAME_FOREIGN_PROVINCE = "foreignProvince";
+ @SerializedName(SERIALIZED_NAME_FOREIGN_PROVINCE)
+ private String foreignProvince;
+
+ public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
+ @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
+ private String countryCode;
+
public static final String SERIALIZED_NAME_RESEND_REQUESTS = "resendRequests";
@SerializedName(SERIALIZED_NAME_RESEND_REQUESTS)
private Boolean resendRequests;
@@ -131,14 +139,6 @@ public class CompanyResponse {
@SerializedName(SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS)
private Integer maxReminderAttempts;
- public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
- @SerializedName(SERIALIZED_NAME_CREATED_AT)
- private OffsetDateTime createdAt;
-
- public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
- @SerializedName(SERIALIZED_NAME_UPDATED_AT)
- private OffsetDateTime updatedAt;
-
public CompanyResponse() {
}
@@ -148,7 +148,7 @@ public CompanyResponse id(String id) {
}
/**
- * Get id
+ * Unique identifier set when the record is created.
* @return id
*/
@javax.annotation.Nullable
@@ -161,41 +161,41 @@ public void setId(String id) {
}
- public CompanyResponse referenceId(String referenceId) {
- this.referenceId = referenceId;
+ public CompanyResponse createdAt(OffsetDateTime createdAt) {
+ this.createdAt = createdAt;
return this;
}
/**
- * Get referenceId
- * @return referenceId
+ * Date time when the record was created.
+ * @return createdAt
*/
@javax.annotation.Nullable
- public String getReferenceId() {
- return referenceId;
+ public OffsetDateTime getCreatedAt() {
+ return createdAt;
}
- public void setReferenceId(String referenceId) {
- this.referenceId = referenceId;
+ public void setCreatedAt(OffsetDateTime createdAt) {
+ this.createdAt = createdAt;
}
- public CompanyResponse groupName(String groupName) {
- this.groupName = groupName;
+ public CompanyResponse updatedAt(OffsetDateTime updatedAt) {
+ this.updatedAt = updatedAt;
return this;
}
/**
- * Get groupName
- * @return groupName
+ * Date time when the record was last updated.
+ * @return updatedAt
*/
@javax.annotation.Nullable
- public String getGroupName() {
- return groupName;
+ public OffsetDateTime getUpdatedAt() {
+ return updatedAt;
}
- public void setGroupName(String groupName) {
- this.groupName = groupName;
+ public void setUpdatedAt(OffsetDateTime updatedAt) {
+ this.updatedAt = updatedAt;
}
@@ -205,7 +205,7 @@ public CompanyResponse name(String name) {
}
/**
- * Get name
+ * Legal name. Not the DBA name.
* @return name
*/
@javax.annotation.Nullable
@@ -224,7 +224,7 @@ public CompanyResponse dbaName(String dbaName) {
}
/**
- * Get dbaName
+ * Doing Business As (DBA) name or continuation of a long legal name.
* @return dbaName
*/
@javax.annotation.Nullable
@@ -237,13 +237,32 @@ public void setDbaName(String dbaName) {
}
+ public CompanyResponse email(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * Contact email address. For inquiries by vendors/employees.
+ * @return email
+ */
+ @javax.annotation.Nullable
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+
public CompanyResponse address(String address) {
this.address = address;
return this;
}
/**
- * Get address
+ * Address.
* @return address
*/
@javax.annotation.Nullable
@@ -262,7 +281,7 @@ public CompanyResponse city(String city) {
}
/**
- * Get city
+ * City.
* @return city
*/
@javax.annotation.Nullable
@@ -281,7 +300,7 @@ public CompanyResponse state(String state) {
}
/**
- * Get state
+ * Two-letter US state or Canadian province code (required for US/CA addresses).
* @return state
*/
@javax.annotation.Nullable
@@ -294,136 +313,155 @@ public void setState(String state) {
}
- public CompanyResponse foreignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
+ public CompanyResponse zip(String zip) {
+ this.zip = zip;
return this;
}
/**
- * Get foreignProvince
- * @return foreignProvince
+ * ZIP/postal code.
+ * @return zip
*/
@javax.annotation.Nullable
- public String getForeignProvince() {
- return foreignProvince;
+ public String getZip() {
+ return zip;
}
- public void setForeignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
+ public void setZip(String zip) {
+ this.zip = zip;
}
- public CompanyResponse zip(String zip) {
- this.zip = zip;
+ public CompanyResponse telephone(String telephone) {
+ this.telephone = telephone;
return this;
}
/**
- * Get zip
- * @return zip
+ * Contact phone number (must contain at least 10 digits, max 15 characters).
+ * @return telephone
*/
@javax.annotation.Nullable
- public String getZip() {
- return zip;
+ public String getTelephone() {
+ return telephone;
}
- public void setZip(String zip) {
- this.zip = zip;
+ public void setTelephone(String telephone) {
+ this.telephone = telephone;
}
- public CompanyResponse countryCode(String countryCode) {
- this.countryCode = countryCode;
+ public CompanyResponse tin(String tin) {
+ this.tin = tin;
return this;
}
/**
- * Get countryCode
- * @return countryCode
+ * Federal Tax Identification Number (TIN). EIN/Tax ID (required for US companies).
+ * @return tin
*/
@javax.annotation.Nullable
- public String getCountryCode() {
- return countryCode;
+ public String getTin() {
+ return tin;
}
- public void setCountryCode(String countryCode) {
- this.countryCode = countryCode;
+ public void setTin(String tin) {
+ this.tin = tin;
}
- public CompanyResponse email(String email) {
- this.email = email;
+ public CompanyResponse referenceId(String referenceId) {
+ this.referenceId = referenceId;
return this;
}
/**
- * Get email
- * @return email
+ * Internal reference ID. Never shown to any agency or recipient.
+ * @return referenceId
*/
@javax.annotation.Nullable
- public String getEmail() {
- return email;
+ public String getReferenceId() {
+ return referenceId;
}
- public void setEmail(String email) {
- this.email = email;
+ public void setReferenceId(String referenceId) {
+ this.referenceId = referenceId;
}
- public CompanyResponse telephone(String telephone) {
- this.telephone = telephone;
+ public CompanyResponse doTinMatch(Boolean doTinMatch) {
+ this.doTinMatch = doTinMatch;
return this;
}
/**
- * Get telephone
- * @return telephone
+ * Indicates whether the company authorizes IRS TIN matching.
+ * @return doTinMatch
*/
@javax.annotation.Nullable
- public String getTelephone() {
- return telephone;
+ public Boolean getDoTinMatch() {
+ return doTinMatch;
}
- public void setTelephone(String telephone) {
- this.telephone = telephone;
+ public void setDoTinMatch(Boolean doTinMatch) {
+ this.doTinMatch = doTinMatch;
}
- public CompanyResponse tin(String tin) {
- this.tin = tin;
+ public CompanyResponse groupName(String groupName) {
+ this.groupName = groupName;
return this;
}
/**
- * Get tin
- * @return tin
+ * Group name for organizing companies (creates or finds group by name).
+ * @return groupName
*/
@javax.annotation.Nullable
- public String getTin() {
- return tin;
+ public String getGroupName() {
+ return groupName;
}
- public void setTin(String tin) {
- this.tin = tin;
+ public void setGroupName(String groupName) {
+ this.groupName = groupName;
}
- public CompanyResponse doTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
+ public CompanyResponse foreignProvince(String foreignProvince) {
+ this.foreignProvince = foreignProvince;
return this;
}
/**
- * Get doTinMatch
- * @return doTinMatch
+ * Province or region for non-US/CA addresses.
+ * @return foreignProvince
*/
@javax.annotation.Nullable
- public Boolean getDoTinMatch() {
- return doTinMatch;
+ public String getForeignProvince() {
+ return foreignProvince;
}
- public void setDoTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
+ public void setForeignProvince(String foreignProvince) {
+ this.foreignProvince = foreignProvince;
+ }
+
+
+ public CompanyResponse countryCode(String countryCode) {
+ this.countryCode = countryCode;
+ return this;
+ }
+
+ /**
+ * Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
+ * @return countryCode
+ */
+ @javax.annotation.Nullable
+ public String getCountryCode() {
+ return countryCode;
+ }
+
+ public void setCountryCode(String countryCode) {
+ this.countryCode = countryCode;
}
@@ -433,7 +471,7 @@ public CompanyResponse resendRequests(Boolean resendRequests) {
}
/**
- * Get resendRequests
+ * Boolean to enable automatic reminder emails (default: false).
* @return resendRequests
*/
@javax.annotation.Nullable
@@ -452,7 +490,7 @@ public CompanyResponse resendIntervalDays(Integer resendIntervalDays) {
}
/**
- * Get resendIntervalDays
+ * Days between reminder emails (7-365, required if resendRequests is true).
* @return resendIntervalDays
*/
@javax.annotation.Nullable
@@ -471,7 +509,7 @@ public CompanyResponse maxReminderAttempts(Integer maxReminderAttempts) {
}
/**
- * Get maxReminderAttempts
+ * Maximum number of reminder attempts (1-52, required if resendRequests is true).
* @return maxReminderAttempts
*/
@javax.annotation.Nullable
@@ -484,44 +522,6 @@ public void setMaxReminderAttempts(Integer maxReminderAttempts) {
}
- public CompanyResponse createdAt(OffsetDateTime createdAt) {
- this.createdAt = createdAt;
- return this;
- }
-
- /**
- * Get createdAt
- * @return createdAt
- */
- @javax.annotation.Nullable
- public OffsetDateTime getCreatedAt() {
- return createdAt;
- }
-
- public void setCreatedAt(OffsetDateTime createdAt) {
- this.createdAt = createdAt;
- }
-
-
- public CompanyResponse updatedAt(OffsetDateTime updatedAt) {
- this.updatedAt = updatedAt;
- return this;
- }
-
- /**
- * Get updatedAt
- * @return updatedAt
- */
- @javax.annotation.Nullable
- public OffsetDateTime getUpdatedAt() {
- return updatedAt;
- }
-
- public void setUpdatedAt(OffsetDateTime updatedAt) {
- this.updatedAt = updatedAt;
- }
-
-
@Override
public boolean equals(Object o) {
@@ -533,25 +533,25 @@ public boolean equals(Object o) {
}
CompanyResponse companyResponse = (CompanyResponse) o;
return Objects.equals(this.id, companyResponse.id) &&
- Objects.equals(this.referenceId, companyResponse.referenceId) &&
- Objects.equals(this.groupName, companyResponse.groupName) &&
+ Objects.equals(this.createdAt, companyResponse.createdAt) &&
+ Objects.equals(this.updatedAt, companyResponse.updatedAt) &&
Objects.equals(this.name, companyResponse.name) &&
Objects.equals(this.dbaName, companyResponse.dbaName) &&
+ Objects.equals(this.email, companyResponse.email) &&
Objects.equals(this.address, companyResponse.address) &&
Objects.equals(this.city, companyResponse.city) &&
Objects.equals(this.state, companyResponse.state) &&
- Objects.equals(this.foreignProvince, companyResponse.foreignProvince) &&
Objects.equals(this.zip, companyResponse.zip) &&
- Objects.equals(this.countryCode, companyResponse.countryCode) &&
- Objects.equals(this.email, companyResponse.email) &&
Objects.equals(this.telephone, companyResponse.telephone) &&
Objects.equals(this.tin, companyResponse.tin) &&
+ Objects.equals(this.referenceId, companyResponse.referenceId) &&
Objects.equals(this.doTinMatch, companyResponse.doTinMatch) &&
+ Objects.equals(this.groupName, companyResponse.groupName) &&
+ Objects.equals(this.foreignProvince, companyResponse.foreignProvince) &&
+ Objects.equals(this.countryCode, companyResponse.countryCode) &&
Objects.equals(this.resendRequests, companyResponse.resendRequests) &&
Objects.equals(this.resendIntervalDays, companyResponse.resendIntervalDays) &&
- Objects.equals(this.maxReminderAttempts, companyResponse.maxReminderAttempts) &&
- Objects.equals(this.createdAt, companyResponse.createdAt) &&
- Objects.equals(this.updatedAt, companyResponse.updatedAt);
+ Objects.equals(this.maxReminderAttempts, companyResponse.maxReminderAttempts);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -560,7 +560,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(id, referenceId, groupName, name, dbaName, address, city, state, foreignProvince, zip, countryCode, email, telephone, tin, doTinMatch, resendRequests, resendIntervalDays, maxReminderAttempts, createdAt, updatedAt);
+ return Objects.hash(id, createdAt, updatedAt, name, dbaName, email, address, city, state, zip, telephone, tin, referenceId, doTinMatch, groupName, foreignProvince, countryCode, resendRequests, resendIntervalDays, maxReminderAttempts);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -575,25 +575,25 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CompanyResponse {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
- sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" dbaName: ").append(toIndentedString(dbaName)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
- sb.append(" foreignProvince: ").append(toIndentedString(foreignProvince)).append("\n");
sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
- sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
- sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
sb.append(" tin: ").append(toIndentedString(tin)).append("\n");
+ sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
sb.append(" doTinMatch: ").append(toIndentedString(doTinMatch)).append("\n");
+ sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
+ sb.append(" foreignProvince: ").append(toIndentedString(foreignProvince)).append("\n");
+ sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
sb.append(" resendRequests: ").append(toIndentedString(resendRequests)).append("\n");
sb.append(" resendIntervalDays: ").append(toIndentedString(resendIntervalDays)).append("\n");
sb.append(" maxReminderAttempts: ").append(toIndentedString(maxReminderAttempts)).append("\n");
- sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
- sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -616,9 +616,34 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet();
+ openapiFields.add("name");
+ openapiFields.add("dbaName");
+ openapiFields.add("email");
+ openapiFields.add("address");
+ openapiFields.add("city");
+ openapiFields.add("state");
+ openapiFields.add("zip");
+ openapiFields.add("telephone");
+ openapiFields.add("tin");
+ openapiFields.add("referenceId");
+ openapiFields.add("doTinMatch");
+ openapiFields.add("groupName");
+ openapiFields.add("foreignProvince");
+ openapiFields.add("countryCode");
+ openapiFields.add("resendRequests");
+ openapiFields.add("resendIntervalDays");
+ openapiFields.add("maxReminderAttempts");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
+ openapiRequiredFields.add("name");
+ openapiRequiredFields.add("email");
+ openapiRequiredFields.add("address");
+ openapiRequiredFields.add("city");
+ openapiRequiredFields.add("zip");
+ openapiRequiredFields.add("telephone");
+ openapiRequiredFields.add("tin");
+ openapiRequiredFields.add("countryCode");
}
/**
@@ -641,22 +666,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CompanyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : CompanyResponse.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString()));
+ }
+ }
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
}
- if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
- }
- if ((jsonObj.get("groupName") != null && !jsonObj.get("groupName").isJsonNull()) && !jsonObj.get("groupName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `groupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupName").toString()));
- }
if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
}
if ((jsonObj.get("dbaName") != null && !jsonObj.get("dbaName").isJsonNull()) && !jsonObj.get("dbaName").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `dbaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dbaName").toString()));
}
+ if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
+ }
if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString()));
}
@@ -666,24 +695,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
}
- if ((jsonObj.get("foreignProvince") != null && !jsonObj.get("foreignProvince").isJsonNull()) && !jsonObj.get("foreignProvince").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `foreignProvince` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignProvince").toString()));
- }
if ((jsonObj.get("zip") != null && !jsonObj.get("zip").isJsonNull()) && !jsonObj.get("zip").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `zip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zip").toString()));
}
- if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
- }
- if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
- }
if ((jsonObj.get("telephone") != null && !jsonObj.get("telephone").isJsonNull()) && !jsonObj.get("telephone").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `telephone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("telephone").toString()));
}
if ((jsonObj.get("tin") != null && !jsonObj.get("tin").isJsonNull()) && !jsonObj.get("tin").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `tin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tin").toString()));
}
+ if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
+ }
+ if ((jsonObj.get("groupName") != null && !jsonObj.get("groupName").isJsonNull()) && !jsonObj.get("groupName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `groupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupName").toString()));
+ }
+ if ((jsonObj.get("foreignProvince") != null && !jsonObj.get("foreignProvince").isJsonNull()) && !jsonObj.get("foreignProvince").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `foreignProvince` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignProvince").toString()));
+ }
+ if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponseModel.java b/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponseModel.java
deleted file mode 100644
index b03cd41..0000000
--- a/src/main/java/Avalara/SDK/model/A1099/V2/CompanyResponseModel.java
+++ /dev/null
@@ -1,755 +0,0 @@
-/*
- * AvaTax Software Development Kit for Java (JRE)
- *
- * (c) 2004-2025 Avalara, Inc.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Avalara 1099 & W-9 API Definition
- *
- * ## 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
- *
- * @author Sachin Baijal
- * @author Jonathan Wenger
- * @copyright 2004-2025 Avalara, Inc.
- * @license https://www.apache.org/licenses/LICENSE-2.0
- * @link https://github.com/avadev/Avalara-SDK-Java
- */
-
-package Avalara.SDK.model.A1099.V2;
-
-import java.util.Objects;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.openapitools.jackson.nullable.JsonNullable;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonDeserializationContext;
-import com.google.gson.JsonDeserializer;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.TypeAdapterFactory;
-import com.google.gson.reflect.TypeToken;
-import com.google.gson.TypeAdapter;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import java.io.IOException;
-
-import java.lang.reflect.Type;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import Avalara.SDK.JSON;
-
-/**
- * CompanyResponseModel
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class CompanyResponseModel {
- public static final String SERIALIZED_NAME_ID = "id";
- @SerializedName(SERIALIZED_NAME_ID)
- private String id;
-
- public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
- @SerializedName(SERIALIZED_NAME_CREATED_AT)
- private OffsetDateTime createdAt;
-
- public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
- @SerializedName(SERIALIZED_NAME_UPDATED_AT)
- private OffsetDateTime updatedAt;
-
- public static final String SERIALIZED_NAME_NAME = "name";
- @SerializedName(SERIALIZED_NAME_NAME)
- private String name;
-
- public static final String SERIALIZED_NAME_EMAIL = "email";
- @SerializedName(SERIALIZED_NAME_EMAIL)
- private String email;
-
- public static final String SERIALIZED_NAME_ADDRESS = "address";
- @SerializedName(SERIALIZED_NAME_ADDRESS)
- private String address;
-
- public static final String SERIALIZED_NAME_CITY = "city";
- @SerializedName(SERIALIZED_NAME_CITY)
- private String city;
-
- public static final String SERIALIZED_NAME_STATE = "state";
- @SerializedName(SERIALIZED_NAME_STATE)
- private String state;
-
- public static final String SERIALIZED_NAME_ZIP = "zip";
- @SerializedName(SERIALIZED_NAME_ZIP)
- private String zip;
-
- public static final String SERIALIZED_NAME_TELEPHONE = "telephone";
- @SerializedName(SERIALIZED_NAME_TELEPHONE)
- private String telephone;
-
- public static final String SERIALIZED_NAME_TIN = "tin";
- @SerializedName(SERIALIZED_NAME_TIN)
- private String tin;
-
- public static final String SERIALIZED_NAME_DBA_NAME = "dbaName";
- @SerializedName(SERIALIZED_NAME_DBA_NAME)
- private String dbaName;
-
- public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
- @SerializedName(SERIALIZED_NAME_REFERENCE_ID)
- private String referenceId;
-
- public static final String SERIALIZED_NAME_DO_TIN_MATCH = "doTinMatch";
- @SerializedName(SERIALIZED_NAME_DO_TIN_MATCH)
- private Boolean doTinMatch;
-
- public static final String SERIALIZED_NAME_GROUP_NAME = "groupName";
- @SerializedName(SERIALIZED_NAME_GROUP_NAME)
- private String groupName;
-
- public static final String SERIALIZED_NAME_FOREIGN_PROVINCE = "foreignProvince";
- @SerializedName(SERIALIZED_NAME_FOREIGN_PROVINCE)
- private String foreignProvince;
-
- public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
- @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
- private String countryCode;
-
- public static final String SERIALIZED_NAME_RESEND_REQUESTS = "resendRequests";
- @SerializedName(SERIALIZED_NAME_RESEND_REQUESTS)
- private Boolean resendRequests;
-
- public static final String SERIALIZED_NAME_RESEND_INTERVAL_DAYS = "resendIntervalDays";
- @SerializedName(SERIALIZED_NAME_RESEND_INTERVAL_DAYS)
- private Integer resendIntervalDays;
-
- public static final String SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS = "maxReminderAttempts";
- @SerializedName(SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS)
- private Integer maxReminderAttempts;
-
- public CompanyResponseModel() {
- }
-
- public CompanyResponseModel id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- * @return id
- */
- @javax.annotation.Nullable
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
-
- public CompanyResponseModel createdAt(OffsetDateTime createdAt) {
- this.createdAt = createdAt;
- return this;
- }
-
- /**
- * Get createdAt
- * @return createdAt
- */
- @javax.annotation.Nullable
- public OffsetDateTime getCreatedAt() {
- return createdAt;
- }
-
- public void setCreatedAt(OffsetDateTime createdAt) {
- this.createdAt = createdAt;
- }
-
-
- public CompanyResponseModel updatedAt(OffsetDateTime updatedAt) {
- this.updatedAt = updatedAt;
- return this;
- }
-
- /**
- * Get updatedAt
- * @return updatedAt
- */
- @javax.annotation.Nullable
- public OffsetDateTime getUpdatedAt() {
- return updatedAt;
- }
-
- public void setUpdatedAt(OffsetDateTime updatedAt) {
- this.updatedAt = updatedAt;
- }
-
-
- public CompanyResponseModel name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get name
- * @return name
- */
- @javax.annotation.Nullable
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
-
- public CompanyResponseModel email(String email) {
- this.email = email;
- return this;
- }
-
- /**
- * Get email
- * @return email
- */
- @javax.annotation.Nullable
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
-
- public CompanyResponseModel address(String address) {
- this.address = address;
- return this;
- }
-
- /**
- * Get address
- * @return address
- */
- @javax.annotation.Nullable
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
-
- public CompanyResponseModel city(String city) {
- this.city = city;
- return this;
- }
-
- /**
- * Get city
- * @return city
- */
- @javax.annotation.Nullable
- public String getCity() {
- return city;
- }
-
- public void setCity(String city) {
- this.city = city;
- }
-
-
- public CompanyResponseModel state(String state) {
- this.state = state;
- return this;
- }
-
- /**
- * Get state
- * @return state
- */
- @javax.annotation.Nullable
- public String getState() {
- return state;
- }
-
- public void setState(String state) {
- this.state = state;
- }
-
-
- public CompanyResponseModel zip(String zip) {
- this.zip = zip;
- return this;
- }
-
- /**
- * Get zip
- * @return zip
- */
- @javax.annotation.Nullable
- public String getZip() {
- return zip;
- }
-
- public void setZip(String zip) {
- this.zip = zip;
- }
-
-
- public CompanyResponseModel telephone(String telephone) {
- this.telephone = telephone;
- return this;
- }
-
- /**
- * Get telephone
- * @return telephone
- */
- @javax.annotation.Nullable
- public String getTelephone() {
- return telephone;
- }
-
- public void setTelephone(String telephone) {
- this.telephone = telephone;
- }
-
-
- public CompanyResponseModel tin(String tin) {
- this.tin = tin;
- return this;
- }
-
- /**
- * Get tin
- * @return tin
- */
- @javax.annotation.Nullable
- public String getTin() {
- return tin;
- }
-
- public void setTin(String tin) {
- this.tin = tin;
- }
-
-
- public CompanyResponseModel dbaName(String dbaName) {
- this.dbaName = dbaName;
- return this;
- }
-
- /**
- * Get dbaName
- * @return dbaName
- */
- @javax.annotation.Nullable
- public String getDbaName() {
- return dbaName;
- }
-
- public void setDbaName(String dbaName) {
- this.dbaName = dbaName;
- }
-
-
- public CompanyResponseModel referenceId(String referenceId) {
- this.referenceId = referenceId;
- return this;
- }
-
- /**
- * Get referenceId
- * @return referenceId
- */
- @javax.annotation.Nullable
- public String getReferenceId() {
- return referenceId;
- }
-
- public void setReferenceId(String referenceId) {
- this.referenceId = referenceId;
- }
-
-
- public CompanyResponseModel doTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
- return this;
- }
-
- /**
- * Get doTinMatch
- * @return doTinMatch
- */
- @javax.annotation.Nullable
- public Boolean getDoTinMatch() {
- return doTinMatch;
- }
-
- public void setDoTinMatch(Boolean doTinMatch) {
- this.doTinMatch = doTinMatch;
- }
-
-
- public CompanyResponseModel groupName(String groupName) {
- this.groupName = groupName;
- return this;
- }
-
- /**
- * Get groupName
- * @return groupName
- */
- @javax.annotation.Nullable
- public String getGroupName() {
- return groupName;
- }
-
- public void setGroupName(String groupName) {
- this.groupName = groupName;
- }
-
-
- public CompanyResponseModel foreignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
- return this;
- }
-
- /**
- * Get foreignProvince
- * @return foreignProvince
- */
- @javax.annotation.Nullable
- public String getForeignProvince() {
- return foreignProvince;
- }
-
- public void setForeignProvince(String foreignProvince) {
- this.foreignProvince = foreignProvince;
- }
-
-
- public CompanyResponseModel countryCode(String countryCode) {
- this.countryCode = countryCode;
- return this;
- }
-
- /**
- * Get countryCode
- * @return countryCode
- */
- @javax.annotation.Nullable
- public String getCountryCode() {
- return countryCode;
- }
-
- public void setCountryCode(String countryCode) {
- this.countryCode = countryCode;
- }
-
-
- public CompanyResponseModel resendRequests(Boolean resendRequests) {
- this.resendRequests = resendRequests;
- return this;
- }
-
- /**
- * Get resendRequests
- * @return resendRequests
- */
- @javax.annotation.Nullable
- public Boolean getResendRequests() {
- return resendRequests;
- }
-
- public void setResendRequests(Boolean resendRequests) {
- this.resendRequests = resendRequests;
- }
-
-
- public CompanyResponseModel resendIntervalDays(Integer resendIntervalDays) {
- this.resendIntervalDays = resendIntervalDays;
- return this;
- }
-
- /**
- * Get resendIntervalDays
- * @return resendIntervalDays
- */
- @javax.annotation.Nullable
- public Integer getResendIntervalDays() {
- return resendIntervalDays;
- }
-
- public void setResendIntervalDays(Integer resendIntervalDays) {
- this.resendIntervalDays = resendIntervalDays;
- }
-
-
- public CompanyResponseModel maxReminderAttempts(Integer maxReminderAttempts) {
- this.maxReminderAttempts = maxReminderAttempts;
- return this;
- }
-
- /**
- * Get maxReminderAttempts
- * @return maxReminderAttempts
- */
- @javax.annotation.Nullable
- public Integer getMaxReminderAttempts() {
- return maxReminderAttempts;
- }
-
- public void setMaxReminderAttempts(Integer maxReminderAttempts) {
- this.maxReminderAttempts = maxReminderAttempts;
- }
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CompanyResponseModel companyResponseModel = (CompanyResponseModel) o;
- return Objects.equals(this.id, companyResponseModel.id) &&
- Objects.equals(this.createdAt, companyResponseModel.createdAt) &&
- Objects.equals(this.updatedAt, companyResponseModel.updatedAt) &&
- Objects.equals(this.name, companyResponseModel.name) &&
- Objects.equals(this.email, companyResponseModel.email) &&
- Objects.equals(this.address, companyResponseModel.address) &&
- Objects.equals(this.city, companyResponseModel.city) &&
- Objects.equals(this.state, companyResponseModel.state) &&
- Objects.equals(this.zip, companyResponseModel.zip) &&
- Objects.equals(this.telephone, companyResponseModel.telephone) &&
- Objects.equals(this.tin, companyResponseModel.tin) &&
- Objects.equals(this.dbaName, companyResponseModel.dbaName) &&
- Objects.equals(this.referenceId, companyResponseModel.referenceId) &&
- Objects.equals(this.doTinMatch, companyResponseModel.doTinMatch) &&
- Objects.equals(this.groupName, companyResponseModel.groupName) &&
- Objects.equals(this.foreignProvince, companyResponseModel.foreignProvince) &&
- Objects.equals(this.countryCode, companyResponseModel.countryCode) &&
- Objects.equals(this.resendRequests, companyResponseModel.resendRequests) &&
- Objects.equals(this.resendIntervalDays, companyResponseModel.resendIntervalDays) &&
- Objects.equals(this.maxReminderAttempts, companyResponseModel.maxReminderAttempts);
- }
-
- private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
- return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, createdAt, updatedAt, name, email, address, city, state, zip, telephone, tin, dbaName, referenceId, doTinMatch, groupName, foreignProvince, countryCode, resendRequests, resendIntervalDays, maxReminderAttempts);
- }
-
- private static int hashCodeNullable(JsonNullable a) {
- if (a == null) {
- return 1;
- }
- return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CompanyResponseModel {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
- sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" address: ").append(toIndentedString(address)).append("\n");
- sb.append(" city: ").append(toIndentedString(city)).append("\n");
- sb.append(" state: ").append(toIndentedString(state)).append("\n");
- sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
- sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
- sb.append(" tin: ").append(toIndentedString(tin)).append("\n");
- sb.append(" dbaName: ").append(toIndentedString(dbaName)).append("\n");
- sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
- sb.append(" doTinMatch: ").append(toIndentedString(doTinMatch)).append("\n");
- sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
- sb.append(" foreignProvince: ").append(toIndentedString(foreignProvince)).append("\n");
- sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
- sb.append(" resendRequests: ").append(toIndentedString(resendRequests)).append("\n");
- sb.append(" resendIntervalDays: ").append(toIndentedString(resendIntervalDays)).append("\n");
- sb.append(" maxReminderAttempts: ").append(toIndentedString(maxReminderAttempts)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-
- public static HashSet openapiFields;
- public static HashSet openapiRequiredFields;
-
- static {
- // a set of all properties/fields (JSON key names)
- openapiFields = new HashSet();
- openapiFields.add("name");
- openapiFields.add("email");
- openapiFields.add("address");
- openapiFields.add("city");
- openapiFields.add("state");
- openapiFields.add("zip");
- openapiFields.add("telephone");
- openapiFields.add("tin");
- openapiFields.add("dbaName");
- openapiFields.add("referenceId");
- openapiFields.add("doTinMatch");
- openapiFields.add("groupName");
- openapiFields.add("foreignProvince");
- openapiFields.add("countryCode");
- openapiFields.add("resendRequests");
- openapiFields.add("resendIntervalDays");
- openapiFields.add("maxReminderAttempts");
-
- // a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet();
- }
-
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CompanyResponseModel
- */
- public static void validateJsonElement(JsonElement jsonElement) throws IOException {
- if (jsonElement == null) {
- if (!CompanyResponseModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in CompanyResponseModel is not found in the empty JSON string", CompanyResponseModel.openapiRequiredFields.toString()));
- }
- }
-
- Set> entries = jsonElement.getAsJsonObject().entrySet();
- // check to see if the JSON string contains additional fields
- for (Map.Entry entry : entries) {
- if (!CompanyResponseModel.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CompanyResponseModel` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
- }
- }
- JsonObject jsonObj = jsonElement.getAsJsonObject();
- if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
- }
- if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
- }
- if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
- }
- if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString()));
- }
- if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
- }
- if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
- }
- if ((jsonObj.get("zip") != null && !jsonObj.get("zip").isJsonNull()) && !jsonObj.get("zip").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `zip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zip").toString()));
- }
- if ((jsonObj.get("telephone") != null && !jsonObj.get("telephone").isJsonNull()) && !jsonObj.get("telephone").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `telephone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("telephone").toString()));
- }
- if ((jsonObj.get("tin") != null && !jsonObj.get("tin").isJsonNull()) && !jsonObj.get("tin").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `tin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tin").toString()));
- }
- if ((jsonObj.get("dbaName") != null && !jsonObj.get("dbaName").isJsonNull()) && !jsonObj.get("dbaName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `dbaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dbaName").toString()));
- }
- if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
- }
- if ((jsonObj.get("groupName") != null && !jsonObj.get("groupName").isJsonNull()) && !jsonObj.get("groupName").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `groupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("groupName").toString()));
- }
- if ((jsonObj.get("foreignProvince") != null && !jsonObj.get("foreignProvince").isJsonNull()) && !jsonObj.get("foreignProvince").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `foreignProvince` to be a primitive type in the JSON string but got `%s`", jsonObj.get("foreignProvince").toString()));
- }
- if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
- }
- }
-
- public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
- @SuppressWarnings("unchecked")
- @Override
- public TypeAdapter create(Gson gson, TypeToken type) {
- if (!CompanyResponseModel.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'CompanyResponseModel' and its subtypes
- }
- final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(CompanyResponseModel.class));
-
- return (TypeAdapter) new TypeAdapter() {
- @Override
- public void write(JsonWriter out, CompanyResponseModel value) throws IOException {
- JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
- elementAdapter.write(out, obj);
- }
-
- @Override
- public CompanyResponseModel read(JsonReader in) throws IOException {
- JsonElement jsonElement = elementAdapter.read(in);
- validateJsonElement(jsonElement);
- return thisAdapter.fromJsonTree(jsonElement);
- }
-
- }.nullSafe();
- }
- }
-
- /**
- * Create an instance of CompanyResponseModel given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CompanyResponseModel
- * @throws IOException if the JSON string is invalid with respect to CompanyResponseModel
- */
- public static CompanyResponseModel fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, CompanyResponseModel.class);
- }
-
- /**
- * Convert an instance of CompanyResponseModel to an JSON string
- *
- * @return JSON string
- */
- public String toJson() {
- return JSON.getGson().toJson(this);
- }
-}
-
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/CoveredIndividualRequest.java b/src/main/java/Avalara/SDK/model/A1099/V2/CoveredIndividual.java
similarity index 76%
rename from src/main/java/Avalara/SDK/model/A1099/V2/CoveredIndividualRequest.java
rename to src/main/java/Avalara/SDK/model/A1099/V2/CoveredIndividual.java
index adc8c8e..c645bf3 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/CoveredIndividualRequest.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/CoveredIndividual.java
@@ -26,7 +26,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.time.OffsetDateTime;
+import java.time.LocalDate;
import java.util.Arrays;
import org.openapitools.jackson.nullable.JsonNullable;
@@ -55,10 +55,14 @@
import Avalara.SDK.JSON;
/**
- * CoveredIndividualRequest
+ * Covered individual information for health coverage forms
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
-public class CoveredIndividualRequest {
+public class CoveredIndividual {
+ public static final String SERIALIZED_NAME_ID = "id";
+ @SerializedName(SERIALIZED_NAME_ID)
+ private String id;
+
public static final String SERIALIZED_NAME_FIRST_NAME = "firstName";
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
private String firstName;
@@ -81,7 +85,7 @@ public class CoveredIndividualRequest {
public static final String SERIALIZED_NAME_BIRTH_DATE = "birthDate";
@SerializedName(SERIALIZED_NAME_BIRTH_DATE)
- private OffsetDateTime birthDate;
+ private LocalDate birthDate;
public static final String SERIALIZED_NAME_COVERED_ALL_MONTHS = "coveredAllMonths";
@SerializedName(SERIALIZED_NAME_COVERED_ALL_MONTHS)
@@ -135,10 +139,28 @@ public class CoveredIndividualRequest {
@SerializedName(SERIALIZED_NAME_COVERED_DECEMBER)
private Boolean coveredDecember;
- public CoveredIndividualRequest() {
+ public CoveredIndividual() {
+ }
+
+ public CoveredIndividual(
+ String id
+ ) {
+ this();
+ this.id = id;
+ }
+
+ /**
+ * Covered individual's ID
+ * @return id
+ */
+ @javax.annotation.Nullable
+ public String getId() {
+ return id;
}
- public CoveredIndividualRequest firstName(String firstName) {
+
+
+ public CoveredIndividual firstName(String firstName) {
this.firstName = firstName;
return this;
}
@@ -157,7 +179,7 @@ public void setFirstName(String firstName) {
}
- public CoveredIndividualRequest middleName(String middleName) {
+ public CoveredIndividual middleName(String middleName) {
this.middleName = middleName;
return this;
}
@@ -176,7 +198,7 @@ public void setMiddleName(String middleName) {
}
- public CoveredIndividualRequest lastName(String lastName) {
+ public CoveredIndividual lastName(String lastName) {
this.lastName = lastName;
return this;
}
@@ -195,7 +217,7 @@ public void setLastName(String lastName) {
}
- public CoveredIndividualRequest nameSuffix(String nameSuffix) {
+ public CoveredIndividual nameSuffix(String nameSuffix) {
this.nameSuffix = nameSuffix;
return this;
}
@@ -214,13 +236,13 @@ public void setNameSuffix(String nameSuffix) {
}
- public CoveredIndividualRequest tin(String tin) {
+ public CoveredIndividual tin(String tin) {
this.tin = tin;
return this;
}
/**
- * Covered individual's TIN (SSN or ITIN)
+ * Covered individual's Federal Tax Identification Number (TIN).. SSN or ITIN. Required unless unavailable.
* @return tin
*/
@javax.annotation.Nullable
@@ -233,26 +255,26 @@ public void setTin(String tin) {
}
- public CoveredIndividualRequest birthDate(OffsetDateTime birthDate) {
+ public CoveredIndividual birthDate(LocalDate birthDate) {
this.birthDate = birthDate;
return this;
}
/**
- * Covered individual's date of birth
+ * Covered individual's date of birth - Required when SSN is missing.
* @return birthDate
*/
@javax.annotation.Nullable
- public OffsetDateTime getBirthDate() {
+ public LocalDate getBirthDate() {
return birthDate;
}
- public void setBirthDate(OffsetDateTime birthDate) {
+ public void setBirthDate(LocalDate birthDate) {
this.birthDate = birthDate;
}
- public CoveredIndividualRequest coveredAllMonths(Boolean coveredAllMonths) {
+ public CoveredIndividual coveredAllMonths(Boolean coveredAllMonths) {
this.coveredAllMonths = coveredAllMonths;
return this;
}
@@ -271,7 +293,7 @@ public void setCoveredAllMonths(Boolean coveredAllMonths) {
}
- public CoveredIndividualRequest coveredJanuary(Boolean coveredJanuary) {
+ public CoveredIndividual coveredJanuary(Boolean coveredJanuary) {
this.coveredJanuary = coveredJanuary;
return this;
}
@@ -290,7 +312,7 @@ public void setCoveredJanuary(Boolean coveredJanuary) {
}
- public CoveredIndividualRequest coveredFebruary(Boolean coveredFebruary) {
+ public CoveredIndividual coveredFebruary(Boolean coveredFebruary) {
this.coveredFebruary = coveredFebruary;
return this;
}
@@ -309,7 +331,7 @@ public void setCoveredFebruary(Boolean coveredFebruary) {
}
- public CoveredIndividualRequest coveredMarch(Boolean coveredMarch) {
+ public CoveredIndividual coveredMarch(Boolean coveredMarch) {
this.coveredMarch = coveredMarch;
return this;
}
@@ -328,7 +350,7 @@ public void setCoveredMarch(Boolean coveredMarch) {
}
- public CoveredIndividualRequest coveredApril(Boolean coveredApril) {
+ public CoveredIndividual coveredApril(Boolean coveredApril) {
this.coveredApril = coveredApril;
return this;
}
@@ -347,7 +369,7 @@ public void setCoveredApril(Boolean coveredApril) {
}
- public CoveredIndividualRequest coveredMay(Boolean coveredMay) {
+ public CoveredIndividual coveredMay(Boolean coveredMay) {
this.coveredMay = coveredMay;
return this;
}
@@ -366,7 +388,7 @@ public void setCoveredMay(Boolean coveredMay) {
}
- public CoveredIndividualRequest coveredJune(Boolean coveredJune) {
+ public CoveredIndividual coveredJune(Boolean coveredJune) {
this.coveredJune = coveredJune;
return this;
}
@@ -385,7 +407,7 @@ public void setCoveredJune(Boolean coveredJune) {
}
- public CoveredIndividualRequest coveredJuly(Boolean coveredJuly) {
+ public CoveredIndividual coveredJuly(Boolean coveredJuly) {
this.coveredJuly = coveredJuly;
return this;
}
@@ -404,7 +426,7 @@ public void setCoveredJuly(Boolean coveredJuly) {
}
- public CoveredIndividualRequest coveredAugust(Boolean coveredAugust) {
+ public CoveredIndividual coveredAugust(Boolean coveredAugust) {
this.coveredAugust = coveredAugust;
return this;
}
@@ -423,7 +445,7 @@ public void setCoveredAugust(Boolean coveredAugust) {
}
- public CoveredIndividualRequest coveredSeptember(Boolean coveredSeptember) {
+ public CoveredIndividual coveredSeptember(Boolean coveredSeptember) {
this.coveredSeptember = coveredSeptember;
return this;
}
@@ -442,7 +464,7 @@ public void setCoveredSeptember(Boolean coveredSeptember) {
}
- public CoveredIndividualRequest coveredOctober(Boolean coveredOctober) {
+ public CoveredIndividual coveredOctober(Boolean coveredOctober) {
this.coveredOctober = coveredOctober;
return this;
}
@@ -461,7 +483,7 @@ public void setCoveredOctober(Boolean coveredOctober) {
}
- public CoveredIndividualRequest coveredNovember(Boolean coveredNovember) {
+ public CoveredIndividual coveredNovember(Boolean coveredNovember) {
this.coveredNovember = coveredNovember;
return this;
}
@@ -480,7 +502,7 @@ public void setCoveredNovember(Boolean coveredNovember) {
}
- public CoveredIndividualRequest coveredDecember(Boolean coveredDecember) {
+ public CoveredIndividual coveredDecember(Boolean coveredDecember) {
this.coveredDecember = coveredDecember;
return this;
}
@@ -508,26 +530,27 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- CoveredIndividualRequest coveredIndividualRequest = (CoveredIndividualRequest) o;
- return Objects.equals(this.firstName, coveredIndividualRequest.firstName) &&
- Objects.equals(this.middleName, coveredIndividualRequest.middleName) &&
- Objects.equals(this.lastName, coveredIndividualRequest.lastName) &&
- Objects.equals(this.nameSuffix, coveredIndividualRequest.nameSuffix) &&
- Objects.equals(this.tin, coveredIndividualRequest.tin) &&
- Objects.equals(this.birthDate, coveredIndividualRequest.birthDate) &&
- Objects.equals(this.coveredAllMonths, coveredIndividualRequest.coveredAllMonths) &&
- Objects.equals(this.coveredJanuary, coveredIndividualRequest.coveredJanuary) &&
- Objects.equals(this.coveredFebruary, coveredIndividualRequest.coveredFebruary) &&
- Objects.equals(this.coveredMarch, coveredIndividualRequest.coveredMarch) &&
- Objects.equals(this.coveredApril, coveredIndividualRequest.coveredApril) &&
- Objects.equals(this.coveredMay, coveredIndividualRequest.coveredMay) &&
- Objects.equals(this.coveredJune, coveredIndividualRequest.coveredJune) &&
- Objects.equals(this.coveredJuly, coveredIndividualRequest.coveredJuly) &&
- Objects.equals(this.coveredAugust, coveredIndividualRequest.coveredAugust) &&
- Objects.equals(this.coveredSeptember, coveredIndividualRequest.coveredSeptember) &&
- Objects.equals(this.coveredOctober, coveredIndividualRequest.coveredOctober) &&
- Objects.equals(this.coveredNovember, coveredIndividualRequest.coveredNovember) &&
- Objects.equals(this.coveredDecember, coveredIndividualRequest.coveredDecember);
+ CoveredIndividual coveredIndividual = (CoveredIndividual) o;
+ return Objects.equals(this.id, coveredIndividual.id) &&
+ Objects.equals(this.firstName, coveredIndividual.firstName) &&
+ Objects.equals(this.middleName, coveredIndividual.middleName) &&
+ Objects.equals(this.lastName, coveredIndividual.lastName) &&
+ Objects.equals(this.nameSuffix, coveredIndividual.nameSuffix) &&
+ Objects.equals(this.tin, coveredIndividual.tin) &&
+ Objects.equals(this.birthDate, coveredIndividual.birthDate) &&
+ Objects.equals(this.coveredAllMonths, coveredIndividual.coveredAllMonths) &&
+ Objects.equals(this.coveredJanuary, coveredIndividual.coveredJanuary) &&
+ Objects.equals(this.coveredFebruary, coveredIndividual.coveredFebruary) &&
+ Objects.equals(this.coveredMarch, coveredIndividual.coveredMarch) &&
+ Objects.equals(this.coveredApril, coveredIndividual.coveredApril) &&
+ Objects.equals(this.coveredMay, coveredIndividual.coveredMay) &&
+ Objects.equals(this.coveredJune, coveredIndividual.coveredJune) &&
+ Objects.equals(this.coveredJuly, coveredIndividual.coveredJuly) &&
+ Objects.equals(this.coveredAugust, coveredIndividual.coveredAugust) &&
+ Objects.equals(this.coveredSeptember, coveredIndividual.coveredSeptember) &&
+ Objects.equals(this.coveredOctober, coveredIndividual.coveredOctober) &&
+ Objects.equals(this.coveredNovember, coveredIndividual.coveredNovember) &&
+ Objects.equals(this.coveredDecember, coveredIndividual.coveredDecember);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
@@ -536,7 +559,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(firstName, middleName, lastName, nameSuffix, tin, birthDate, coveredAllMonths, coveredJanuary, coveredFebruary, coveredMarch, coveredApril, coveredMay, coveredJune, coveredJuly, coveredAugust, coveredSeptember, coveredOctober, coveredNovember, coveredDecember);
+ return Objects.hash(id, firstName, middleName, lastName, nameSuffix, tin, birthDate, coveredAllMonths, coveredJanuary, coveredFebruary, coveredMarch, coveredApril, coveredMay, coveredJune, coveredJuly, coveredAugust, coveredSeptember, coveredOctober, coveredNovember, coveredDecember);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -549,7 +572,8 @@ private static int hashCodeNullable(JsonNullable a) {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class CoveredIndividualRequest {\n");
+ sb.append("class CoveredIndividual {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" middleName: ").append(toIndentedString(middleName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
@@ -591,6 +615,7 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet();
+ openapiFields.add("id");
openapiFields.add("firstName");
openapiFields.add("middleName");
openapiFields.add("lastName");
@@ -613,29 +638,41 @@ private String toIndentedString(Object o) {
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
+ openapiRequiredFields.add("firstName");
+ openapiRequiredFields.add("lastName");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CoveredIndividualRequest
+ * @throws IOException if the JSON Element is invalid with respect to CoveredIndividual
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
- if (!CoveredIndividualRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in CoveredIndividualRequest is not found in the empty JSON string", CoveredIndividualRequest.openapiRequiredFields.toString()));
+ if (!CoveredIndividual.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in CoveredIndividual is not found in the empty JSON string", CoveredIndividual.openapiRequiredFields.toString()));
}
}
Set