Skip to content

Commit a480b7d

Browse files
sebastianmgwozdzroot
andauthored
Version 3.23.0 release (#256)
* Version 3.23.0-v2.1-22.4.02.00 release * Update .travis.yml --------- Co-authored-by: root <[email protected]>
1 parent 9df3a59 commit a480b7d

30 files changed

+5392
-255
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# DocuSign Java Client Changelog
22
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
33

4+
## [v3.23.0] - eSignature API v2.1-22.4.02.00 - 2023-02-09
5+
### Changed
6+
- Added support for version v2.1-22.4.02.00 of the DocuSign ESignature API.
7+
- Updated the SDK release version.
8+
- Bundled external dependencies into an uber jar.
9+
410
## [v3.22.0] - eSignature API v2.1-22.3.01.00 - 2022-12-06
511
### Changed
612
- Added support for version v2.1-22.3.01.00 of the DocuSign ESignature API.

pom.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>docusign-esign-java</artifactId>
66
<packaging>jar</packaging>
77
<name>docusign-esign-java</name>
8-
<version>3.22.0</version>
8+
<version>3.23.0</version>
99
<url>https://developers.docusign.com</url>
1010
<description>The official DocuSign eSignature JAVA client is based on version 2 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.</description>
1111

@@ -240,6 +240,39 @@
240240
</execution>
241241
</executions>
242242
</plugin>
243+
<plugin>
244+
<groupId>org.apache.maven.plugins</groupId>
245+
<artifactId>maven-shade-plugin</artifactId>
246+
<version>3.3.0</version>
247+
<executions>
248+
<execution>
249+
<phase>package</phase>
250+
<goals>
251+
<goal>shade</goal>
252+
</goals>
253+
<configuration>
254+
<shadedArtifactAttached>true</shadedArtifactAttached>
255+
<shadedClassifierName>shaded</shadedClassifierName>
256+
<artifactSet>
257+
<excludes>
258+
<exclude>junit:junit:jar:</exclude>
259+
<exclude>org.hamcrest:hamcrest-core:jar</exclude>
260+
</excludes>
261+
</artifactSet>
262+
<filters>
263+
<filter>
264+
<artifact>*:*</artifact>
265+
<excludes>
266+
<exclude>META-INF/*.SF</exclude>
267+
<exclude>META-INF/*.DSA</exclude>
268+
<exclude>META-INF/*.RSA</exclude>
269+
</excludes>
270+
</filter>
271+
</filters>
272+
</configuration>
273+
</execution>
274+
</executions>
275+
</plugin>
243276
<plugin>
244277
<groupId>org.apache.maven.plugins</groupId>
245278
<artifactId>maven-gpg-plugin</artifactId>

src/main/java/com/docusign/esign/api/ConnectApi.java

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,68 @@ public ApiResponse<ConnectCustomConfiguration > updateConfigurationWithHttpInfo(
17531753
return new ApiResponse<ConnectCustomConfiguration>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
17541754
}
17551755

1756+
/**
1757+
* Updates the existing Connect OAuth Config for the account..
1758+
*
1759+
* @param accountId The external account number (int) or account ID Guid. (required)
1760+
* @param connectOAuthConfig (optional)
1761+
* @return ConnectOAuthConfig
1762+
* @throws ApiException if fails to make API call
1763+
*/
1764+
public ConnectOAuthConfig updateConnectOAuthConfig(String accountId, ConnectOAuthConfig connectOAuthConfig) throws ApiException {
1765+
ApiResponse<ConnectOAuthConfig> localVarResponse = updateConnectOAuthConfigWithHttpInfo(accountId, connectOAuthConfig);
1766+
return localVarResponse.getData();
1767+
}
1768+
1769+
/**
1770+
* Updates the existing Connect OAuth Config for the account.
1771+
*
1772+
* @param accountId The external account number (int) or account ID Guid. (required)
1773+
* @param connectOAuthConfig (optional)
1774+
* @return ConnectOAuthConfig
1775+
* @throws ApiException if fails to make API call
1776+
*/
1777+
public ApiResponse<ConnectOAuthConfig > updateConnectOAuthConfigWithHttpInfo(String accountId, ConnectOAuthConfig connectOAuthConfig) throws ApiException {
1778+
Object localVarPostBody = connectOAuthConfig;
1779+
1780+
// verify the required parameter 'accountId' is set
1781+
if (accountId == null) {
1782+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateConnectOAuthConfig");
1783+
}
1784+
1785+
// create path and map variables
1786+
String localVarPath = "/v2.1/accounts/{accountId}/connect/oauth"
1787+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
1788+
1789+
// query params
1790+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
1791+
java.util.List<Pair> localVarCollectionQueryParams = new java.util.ArrayList<Pair>();
1792+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
1793+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
1794+
1795+
1796+
1797+
1798+
1799+
1800+
1801+
final String[] localVarAccepts = {
1802+
"application/json"
1803+
};
1804+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1805+
1806+
final String[] localVarContentTypes = {
1807+
1808+
};
1809+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1810+
1811+
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
1812+
1813+
GenericType<ConnectOAuthConfig> localVarReturnType = new GenericType<ConnectOAuthConfig>() {};
1814+
ConnectOAuthConfig localVarResponse = apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
1815+
return new ApiResponse<ConnectOAuthConfig>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
1816+
}
1817+
17561818
/**
17571819
* Reserved.
17581820
* Reserved:

src/main/java/com/docusign/esign/api/EnvelopesApi.java

Lines changed: 12 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -9791,11 +9791,12 @@ public ApiResponse<CustomFields > updateCustomFieldsWithHttpInfo(String accountI
97919791
* @param accountId The external account number (int) or account ID Guid. (required)
97929792
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
97939793
* @param documentId The ID of the document being accessed. (required)
9794+
* @param documentFileBytes Updated document content. (required)
97949795
* @return EnvelopeDocument
97959796
* @throws ApiException if fails to make API call
97969797
*/
9797-
public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId) throws ApiException {
9798-
ApiResponse<EnvelopeDocument> localVarResponse = updateDocumentWithHttpInfo(accountId, envelopeId, documentId);
9798+
public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId, byte[] documentFileBytes) throws ApiException {
9799+
ApiResponse<EnvelopeDocument> localVarResponse = updateDocumentWithHttpInfo(accountId, envelopeId, documentId, documentFileBytes);
97999800
return localVarResponse.getData();
98009801
}
98019802

@@ -9805,11 +9806,12 @@ public EnvelopeDocument updateDocument(String accountId, String envelopeId, Stri
98059806
* @param accountId The external account number (int) or account ID Guid. (required)
98069807
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
98079808
* @param documentId The ID of the document being accessed. (required)
9809+
* @param documentFileBytes Updated document content. (required)
98089810
* @return EnvelopeDocument
98099811
* @throws ApiException if fails to make API call
98109812
*/
9811-
public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountId, String envelopeId, String documentId) throws ApiException {
9812-
Object localVarPostBody = "{}";
9813+
public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountId, String envelopeId, String documentId, byte[] documentFileBytes) throws ApiException {
9814+
Object localVarPostBody = documentFileBytes;
98139815

98149816
// verify the required parameter 'accountId' is set
98159817
if (accountId == null) {
@@ -9826,6 +9828,11 @@ public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountI
98269828
throw new ApiException(400, "Missing the required parameter 'documentId' when calling updateDocument");
98279829
}
98289830

9831+
// verify the required parameter 'documentFileBytes' is set
9832+
if (documentFileBytes == null) {
9833+
throw new ApiException(400, "Missing the required parameter 'documentFileBytes' when calling updateDocument");
9834+
}
9835+
98299836
// create path and map variables
98309837
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}"
98319838
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
@@ -9850,7 +9857,7 @@ public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountI
98509857
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
98519858

98529859
final String[] localVarContentTypes = {
9853-
9860+
"application/pdf"
98549861
};
98559862
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
98569863

@@ -11169,84 +11176,6 @@ public ApiResponse<DocumentVisibilityList > updateRecipientsDocumentVisibilityWi
1116911176
return new ApiResponse<DocumentVisibilityList>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
1117011177
}
1117111178

11172-
/**
11173-
* Retrieves a PDF document from the envelope with no CoC..
11174-
*
11175-
* @param accountId The external account number (int) or account ID Guid. (required)
11176-
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
11177-
* @param regenDocumentId (required)
11178-
* @param document (optional)
11179-
* @return byte[]
11180-
* @throws ApiException if fails to make API call
11181-
*/
11182-
public byte[] updateRegenDocument(String accountId, String envelopeId, String regenDocumentId, Document document) throws ApiException {
11183-
ApiResponse<byte[]> localVarResponse = updateRegenDocumentWithHttpInfo(accountId, envelopeId, regenDocumentId, document);
11184-
return localVarResponse.getData();
11185-
}
11186-
11187-
/**
11188-
* Retrieves a PDF document from the envelope with no CoC.
11189-
*
11190-
* @param accountId The external account number (int) or account ID Guid. (required)
11191-
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
11192-
* @param regenDocumentId (required)
11193-
* @param document (optional)
11194-
* @return byte[]
11195-
* @throws ApiException if fails to make API call
11196-
*/
11197-
public ApiResponse<byte[] > updateRegenDocumentWithHttpInfo(String accountId, String envelopeId, String regenDocumentId, Document document) throws ApiException {
11198-
Object localVarPostBody = document;
11199-
11200-
// verify the required parameter 'accountId' is set
11201-
if (accountId == null) {
11202-
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateRegenDocument");
11203-
}
11204-
11205-
// verify the required parameter 'envelopeId' is set
11206-
if (envelopeId == null) {
11207-
throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling updateRegenDocument");
11208-
}
11209-
11210-
// verify the required parameter 'regenDocumentId' is set
11211-
if (regenDocumentId == null) {
11212-
throw new ApiException(400, "Missing the required parameter 'regenDocumentId' when calling updateRegenDocument");
11213-
}
11214-
11215-
// create path and map variables
11216-
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{regenDocumentId}/regen"
11217-
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
11218-
.replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
11219-
.replaceAll("\\{" + "regenDocumentId" + "\\}", apiClient.escapeString(regenDocumentId.toString()));
11220-
11221-
// query params
11222-
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
11223-
java.util.List<Pair> localVarCollectionQueryParams = new java.util.ArrayList<Pair>();
11224-
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
11225-
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
11226-
11227-
11228-
11229-
11230-
11231-
11232-
11233-
final String[] localVarAccepts = {
11234-
"application/pdf"
11235-
};
11236-
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
11237-
11238-
final String[] localVarContentTypes = {
11239-
11240-
};
11241-
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
11242-
11243-
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
11244-
11245-
GenericType<byte[]> localVarReturnType = new GenericType<byte[]>() {};
11246-
byte[] localVarResponse = apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
11247-
return new ApiResponse<byte[]>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
11248-
}
11249-
1125011179
/**
1125111180
* Updates the tabs for a recipient. .
1125211181
* Updates one or more tabs for a recipient in a draft envelope.

src/main/java/com/docusign/esign/api/FoldersApi.java

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,30 @@ public void setApiClient(ApiClient apiClient) {
6363
**/
6464
public class CallListOptions
6565
{
66+
private String count = null;
6667
private String include = null;
6768
private String includeItems = null;
6869
private String startPosition = null;
70+
private String subFolderDepth = null;
6971
private String template = null;
7072
private String userFilter = null;
7173

74+
/**
75+
* setCount method.
76+
*/
77+
public void setCount(String count) {
78+
this.count = count;
79+
}
80+
81+
/**
82+
* getCount method.
83+
*
84+
* @return String
85+
*/
86+
public String getCount() {
87+
return this.count;
88+
}
89+
7290
/**
7391
* setInclude method.
7492
*/
@@ -117,6 +135,22 @@ public String getStartPosition() {
117135
return this.startPosition;
118136
}
119137

138+
/**
139+
* setSubFolderDepth method.
140+
*/
141+
public void setSubFolderDepth(String subFolderDepth) {
142+
this.subFolderDepth = subFolderDepth;
143+
}
144+
145+
/**
146+
* getSubFolderDepth method.
147+
*
148+
* @return String
149+
*/
150+
public String getSubFolderDepth() {
151+
return this.subFolderDepth;
152+
}
153+
120154
/**
121155
* setTemplate method.
122156
*/
@@ -200,11 +234,15 @@ public ApiResponse<FoldersResponse > callListWithHttpInfo(String accountId, Fold
200234
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
201235

202236
if (options != null) {
237+
localVarQueryParams.addAll(apiClient.parameterToPair("count", options.count));
238+
}if (options != null) {
203239
localVarQueryParams.addAll(apiClient.parameterToPair("include", options.include));
204240
}if (options != null) {
205241
localVarQueryParams.addAll(apiClient.parameterToPair("include_items", options.includeItems));
206242
}if (options != null) {
207243
localVarQueryParams.addAll(apiClient.parameterToPair("start_position", options.startPosition));
244+
}if (options != null) {
245+
localVarQueryParams.addAll(apiClient.parameterToPair("sub_folder_depth", options.subFolderDepth));
208246
}if (options != null) {
209247
localVarQueryParams.addAll(apiClient.parameterToPair("template", options.template));
210248
}if (options != null) {

0 commit comments

Comments
 (0)