-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update java SDK with avalaraVersioning scheme
- Loading branch information
Jonathan Wenger
committed
Jan 3, 2025
1 parent
d04ead0
commit 28ed073
Showing
47 changed files
with
184 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* AvaTax Software Development Kit for Java (JRE) | ||
* | ||
* (c) 2004-2022 Avalara, Inc. | ||
* (c) 2004-2025 Avalara, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -12,10 +12,9 @@ | |
* | ||
* @author Sachin Baijal <[email protected]> | ||
* @author Jonathan Wenger <[email protected]> | ||
* @copyright 2004-2022 Avalara, Inc. | ||
* @copyright 2004-2025 Avalara, Inc. | ||
* @license https://www.apache.org/licenses/LICENSE-2.0 | ||
* @version | ||
* @link https://github.com/avadev/AvaTax-REST-V3-JRE-SDK | ||
* @link https://github.com/avadev/Avalara-SDK-Java | ||
*/ | ||
|
||
package Avalara.SDK.api.EInvoicing.V1; | ||
|
@@ -114,17 +113,14 @@ public okhttp3.Call getDataInputFieldsCall(GetDataInputFieldsRequest requestPara | |
Object localVarPostBody = null; | ||
|
||
// create path and map variables | ||
String localVarPath = "/data-input-fields"; | ||
String localVarPath = "/einvoicing/data-input-fields"; | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); | ||
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); | ||
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.get$filter() != null) { | ||
localVarQueryParams.addAll(localVarApiClient.parameterToPair("$filter", requestParameters.get$filter())); | ||
} | ||
|
@@ -273,7 +269,7 @@ public class GetDataInputFieldsRequest { | |
public GetDataInputFieldsRequest () { | ||
} | ||
|
||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public String getXAvalaraClient() { return xAvalaraClient; } | ||
public void setXAvalaraClient(String xAvalaraClient) { this.xAvalaraClient = xAvalaraClient; } | ||
|
@@ -299,7 +295,7 @@ public GetDataInputFieldsRequest getGetDataInputFieldsRequest() { | |
|
||
private void SetConfiguration(ApiClient client) { | ||
if (client == null) throw new MissingFormatArgumentException("client"); | ||
this.localVarApiClient.setSdkVersion(""); | ||
this.localVarApiClient.setSdkVersion("24.12.1"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* AvaTax Software Development Kit for Java (JRE) | ||
* | ||
* (c) 2004-2022 Avalara, Inc. | ||
* (c) 2004-2025 Avalara, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -12,10 +12,9 @@ | |
* | ||
* @author Sachin Baijal <[email protected]> | ||
* @author Jonathan Wenger <[email protected]> | ||
* @copyright 2004-2022 Avalara, Inc. | ||
* @copyright 2004-2025 Avalara, Inc. | ||
* @license https://www.apache.org/licenses/LICENSE-2.0 | ||
* @version | ||
* @link https://github.com/avadev/AvaTax-REST-V3-JRE-SDK | ||
* @link https://github.com/avadev/Avalara-SDK-Java | ||
*/ | ||
|
||
package Avalara.SDK.api.EInvoicing.V1; | ||
|
@@ -126,7 +125,7 @@ public okhttp3.Call downloadDocumentCall(DownloadDocumentRequest requestParamete | |
Object localVarPostBody = null; | ||
|
||
// create path and map variables | ||
String localVarPath = "/documents/{documentId}/$download" | ||
String localVarPath = "/einvoicing/documents/{documentId}/$download" | ||
.replaceAll("\\{" + "documentId" + "\\}", localVarApiClient.escapeString(requestParameters.documentId.toString())); | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
|
@@ -135,9 +134,6 @@ public okhttp3.Call downloadDocumentCall(DownloadDocumentRequest requestParamete | |
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.getAvalaraVersion() != null) { | ||
localVarHeaderParams.put("avalara-version", localVarApiClient.parameterToString(requestParameters.getAvalaraVersion())); | ||
} | ||
|
@@ -277,7 +273,7 @@ public class DownloadDocumentRequest { | |
public DownloadDocumentRequest () { | ||
} | ||
|
||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public String getAccept() { return accept; } | ||
public void setAccept(String accept) { this.accept = accept; } | ||
|
@@ -331,17 +327,14 @@ public okhttp3.Call fetchDocumentsCall(FetchDocumentsRequest requestParameters, | |
Object localVarPostBody = requestParameters.getDocumentFetchRequest(); | ||
|
||
// create path and map variables | ||
String localVarPath = "/documents/$fetch"; | ||
String localVarPath = "/einvoicing/documents/$fetch"; | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); | ||
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); | ||
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.getAvalaraVersion() != null) { | ||
localVarHeaderParams.put("avalara-version", localVarApiClient.parameterToString(requestParameters.getAvalaraVersion())); | ||
} | ||
|
@@ -467,7 +460,7 @@ public class FetchDocumentsRequest { | |
public FetchDocumentsRequest () { | ||
} | ||
|
||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public DocumentFetchRequest getDocumentFetchRequest() { return documentFetchRequest; } | ||
public void setDocumentFetchRequest(DocumentFetchRequest documentFetchRequest) { this.documentFetchRequest = documentFetchRequest; } | ||
|
@@ -519,17 +512,14 @@ public okhttp3.Call getDocumentListCall(GetDocumentListRequest requestParameters | |
Object localVarPostBody = null; | ||
|
||
// create path and map variables | ||
String localVarPath = "/documents"; | ||
String localVarPath = "/einvoicing/documents"; | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); | ||
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); | ||
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.getStartDate() != null) { | ||
localVarQueryParams.addAll(localVarApiClient.parameterToPair("startDate", requestParameters.getStartDate())); | ||
} | ||
|
@@ -696,7 +686,7 @@ public class GetDocumentListRequest { | |
public GetDocumentListRequest () { | ||
} | ||
|
||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public String getXAvalaraClient() { return xAvalaraClient; } | ||
public void setXAvalaraClient(String xAvalaraClient) { this.xAvalaraClient = xAvalaraClient; } | ||
|
@@ -762,7 +752,7 @@ public okhttp3.Call getDocumentStatusCall(GetDocumentStatusRequest requestParame | |
Object localVarPostBody = null; | ||
|
||
// create path and map variables | ||
String localVarPath = "/documents/{documentId}/status" | ||
String localVarPath = "/einvoicing/documents/{documentId}/status" | ||
.replaceAll("\\{" + "documentId" + "\\}", localVarApiClient.escapeString(requestParameters.documentId.toString())); | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
|
@@ -771,9 +761,6 @@ public okhttp3.Call getDocumentStatusCall(GetDocumentStatusRequest requestParame | |
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.getAvalaraVersion() != null) { | ||
localVarHeaderParams.put("avalara-version", localVarApiClient.parameterToString(requestParameters.getAvalaraVersion())); | ||
} | ||
|
@@ -899,7 +886,7 @@ public class GetDocumentStatusRequest { | |
public GetDocumentStatusRequest () { | ||
} | ||
|
||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public String getDocumentId() { return documentId; } | ||
public void setDocumentId(String documentId) { this.documentId = documentId; } | ||
|
@@ -951,17 +938,14 @@ public okhttp3.Call submitDocumentCall(SubmitDocumentRequest requestParameters, | |
Object localVarPostBody = null; | ||
|
||
// create path and map variables | ||
String localVarPath = "/documents"; | ||
String localVarPath = "/einvoicing/documents"; | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); | ||
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); | ||
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.getMetadata() != null) { | ||
localVarFormParams.put("metadata", requestParameters.getMetadata()); | ||
} | ||
|
@@ -1102,7 +1086,7 @@ public class SubmitDocumentRequest { | |
public SubmitDocumentRequest () { | ||
} | ||
|
||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public SubmitDocumentMetadata getMetadata() { return metadata; } | ||
public void setMetadata(SubmitDocumentMetadata metadata) { this.metadata = metadata; } | ||
|
@@ -1122,7 +1106,7 @@ public SubmitDocumentRequest getSubmitDocumentRequest() { | |
|
||
private void SetConfiguration(ApiClient client) { | ||
if (client == null) throw new MissingFormatArgumentException("client"); | ||
this.localVarApiClient.setSdkVersion(""); | ||
this.localVarApiClient.setSdkVersion("24.12.1"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* AvaTax Software Development Kit for Java (JRE) | ||
* | ||
* (c) 2004-2022 Avalara, Inc. | ||
* (c) 2004-2025 Avalara, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -12,10 +12,9 @@ | |
* | ||
* @author Sachin Baijal <[email protected]> | ||
* @author Jonathan Wenger <[email protected]> | ||
* @copyright 2004-2022 Avalara, Inc. | ||
* @copyright 2004-2025 Avalara, Inc. | ||
* @license https://www.apache.org/licenses/LICENSE-2.0 | ||
* @version | ||
* @link https://github.com/avadev/AvaTax-REST-V3-JRE-SDK | ||
* @link https://github.com/avadev/Avalara-SDK-Java | ||
*/ | ||
|
||
package Avalara.SDK.api.EInvoicing.V1; | ||
|
@@ -114,17 +113,14 @@ public okhttp3.Call submitInteropDocumentCall(SubmitInteropDocumentRequest reque | |
Object localVarPostBody = null; | ||
|
||
// create path and map variables | ||
String localVarPath = "/interop/documents"; | ||
String localVarPath = "/einvoicing/interop/documents"; | ||
|
||
List<Pair> localVarQueryParams = new ArrayList<Pair>(); | ||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); | ||
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); | ||
Map<String, String> localVarCookieParams = new HashMap<String, String>(); | ||
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); | ||
|
||
// Set avalara-version header from swagger.json version number | ||
localVarHeaderParams.put("avalara-version", "1.2"); | ||
|
||
if (requestParameters.getFileName() != null) { | ||
localVarFormParams.put("fileName", requestParameters.getFileName()); | ||
} | ||
|
@@ -284,7 +280,7 @@ public SubmitInteropDocumentRequest () { | |
public void setDocumentType(String documentType) { this.documentType = documentType; } | ||
public String getInterchangeType() { return interchangeType; } | ||
public void setInterchangeType(String interchangeType) { this.interchangeType = interchangeType; } | ||
public String getAvalaraVersion() { return avalaraVersion; } | ||
public String getAvalaraVersion() { return (avalaraVersion != null) ? avalaraVersion : "1.2"; } | ||
public void setAvalaraVersion(String avalaraVersion) { this.avalaraVersion = avalaraVersion; } | ||
public String getXAvalaraClient() { return xAvalaraClient; } | ||
public void setXAvalaraClient(String xAvalaraClient) { this.xAvalaraClient = xAvalaraClient; } | ||
|
@@ -304,7 +300,7 @@ public SubmitInteropDocumentRequest getSubmitInteropDocumentRequest() { | |
|
||
private void SetConfiguration(ApiClient client) { | ||
if (client == null) throw new MissingFormatArgumentException("client"); | ||
this.localVarApiClient.setSdkVersion(""); | ||
this.localVarApiClient.setSdkVersion("24.12.1"); | ||
} | ||
} | ||
|
Oops, something went wrong.