Skip to content

Commit

Permalink
Version 3.23.0 release (#256)
Browse files Browse the repository at this point in the history
* Version 3.23.0-v2.1-22.4.02.00 release

* Update .travis.yml

---------

Co-authored-by: root <root@devcenteradmin.docusigntest.com>
  • Loading branch information
sebastianmgwozdz and root committed Feb 9, 2023
1 parent 9df3a59 commit a480b7d
Show file tree
Hide file tree
Showing 30 changed files with 5,392 additions and 255 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# DocuSign Java Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.

## [v3.23.0] - eSignature API v2.1-22.4.02.00 - 2023-02-09
### Changed
- Added support for version v2.1-22.4.02.00 of the DocuSign ESignature API.
- Updated the SDK release version.
- Bundled external dependencies into an uber jar.

## [v3.22.0] - eSignature API v2.1-22.3.01.00 - 2022-12-06
### Changed
- Added support for version v2.1-22.3.01.00 of the DocuSign ESignature API.
Expand Down
35 changes: 34 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>docusign-esign-java</artifactId>
<packaging>jar</packaging>
<name>docusign-esign-java</name>
<version>3.22.0</version>
<version>3.23.0</version>
<url>https://developers.docusign.com</url>
<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>

Expand Down Expand Up @@ -240,6 +240,39 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<excludes>
<exclude>junit:junit:jar:</exclude>
<exclude>org.hamcrest:hamcrest-core:jar</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down
62 changes: 62 additions & 0 deletions src/main/java/com/docusign/esign/api/ConnectApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -1753,6 +1753,68 @@ public ApiResponse<ConnectCustomConfiguration > updateConfigurationWithHttpInfo(
return new ApiResponse<ConnectCustomConfiguration>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}

/**
* Updates the existing Connect OAuth Config for the account..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param connectOAuthConfig (optional)
* @return ConnectOAuthConfig
* @throws ApiException if fails to make API call
*/
public ConnectOAuthConfig updateConnectOAuthConfig(String accountId, ConnectOAuthConfig connectOAuthConfig) throws ApiException {
ApiResponse<ConnectOAuthConfig> localVarResponse = updateConnectOAuthConfigWithHttpInfo(accountId, connectOAuthConfig);
return localVarResponse.getData();
}

/**
* Updates the existing Connect OAuth Config for the account.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param connectOAuthConfig (optional)
* @return ConnectOAuthConfig
* @throws ApiException if fails to make API call
*/
public ApiResponse<ConnectOAuthConfig > updateConnectOAuthConfigWithHttpInfo(String accountId, ConnectOAuthConfig connectOAuthConfig) throws ApiException {
Object localVarPostBody = connectOAuthConfig;

// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateConnectOAuthConfig");
}

// create path and map variables
String localVarPath = "/v2.1/accounts/{accountId}/connect/oauth"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));

// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.List<Pair> localVarCollectionQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();







final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

final String[] localVarContentTypes = {

};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

String[] localVarAuthNames = new String[] { "docusignAccessCode" };

GenericType<ConnectOAuthConfig> localVarReturnType = new GenericType<ConnectOAuthConfig>() {};
ConnectOAuthConfig localVarResponse = apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
return new ApiResponse<ConnectOAuthConfig>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}

/**
* Reserved.
* Reserved:
Expand Down
95 changes: 12 additions & 83 deletions src/main/java/com/docusign/esign/api/EnvelopesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -9791,11 +9791,12 @@ public ApiResponse<CustomFields > updateCustomFieldsWithHttpInfo(String accountI
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param documentId The ID of the document being accessed. (required)
* @param documentFileBytes Updated document content. (required)
* @return EnvelopeDocument
* @throws ApiException if fails to make API call
*/
public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId) throws ApiException {
ApiResponse<EnvelopeDocument> localVarResponse = updateDocumentWithHttpInfo(accountId, envelopeId, documentId);
public EnvelopeDocument updateDocument(String accountId, String envelopeId, String documentId, byte[] documentFileBytes) throws ApiException {
ApiResponse<EnvelopeDocument> localVarResponse = updateDocumentWithHttpInfo(accountId, envelopeId, documentId, documentFileBytes);
return localVarResponse.getData();
}

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

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

// verify the required parameter 'documentFileBytes' is set
if (documentFileBytes == null) {
throw new ApiException(400, "Missing the required parameter 'documentFileBytes' when calling updateDocument");
}

// create path and map variables
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
Expand All @@ -9850,7 +9857,7 @@ public ApiResponse<EnvelopeDocument > updateDocumentWithHttpInfo(String accountI
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

final String[] localVarContentTypes = {

"application/pdf"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

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

/**
* Retrieves a PDF document from the envelope with no CoC..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param regenDocumentId (required)
* @param document (optional)
* @return byte[]
* @throws ApiException if fails to make API call
*/
public byte[] updateRegenDocument(String accountId, String envelopeId, String regenDocumentId, Document document) throws ApiException {
ApiResponse<byte[]> localVarResponse = updateRegenDocumentWithHttpInfo(accountId, envelopeId, regenDocumentId, document);
return localVarResponse.getData();
}

/**
* Retrieves a PDF document from the envelope with no CoC.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param regenDocumentId (required)
* @param document (optional)
* @return byte[]
* @throws ApiException if fails to make API call
*/
public ApiResponse<byte[] > updateRegenDocumentWithHttpInfo(String accountId, String envelopeId, String regenDocumentId, Document document) throws ApiException {
Object localVarPostBody = document;

// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateRegenDocument");
}

// verify the required parameter 'envelopeId' is set
if (envelopeId == null) {
throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling updateRegenDocument");
}

// verify the required parameter 'regenDocumentId' is set
if (regenDocumentId == null) {
throw new ApiException(400, "Missing the required parameter 'regenDocumentId' when calling updateRegenDocument");
}

// create path and map variables
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{regenDocumentId}/regen"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
.replaceAll("\\{" + "regenDocumentId" + "\\}", apiClient.escapeString(regenDocumentId.toString()));

// query params
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
java.util.List<Pair> localVarCollectionQueryParams = new java.util.ArrayList<Pair>();
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();







final String[] localVarAccepts = {
"application/pdf"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

final String[] localVarContentTypes = {

};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

String[] localVarAuthNames = new String[] { "docusignAccessCode" };

GenericType<byte[]> localVarReturnType = new GenericType<byte[]>() {};
byte[] localVarResponse = apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
return new ApiResponse<byte[]>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}

/**
* Updates the tabs for a recipient. .
* Updates one or more tabs for a recipient in a draft envelope.
Expand Down
38 changes: 38 additions & 0 deletions src/main/java/com/docusign/esign/api/FoldersApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,30 @@ public void setApiClient(ApiClient apiClient) {
**/
public class CallListOptions
{
private String count = null;
private String include = null;
private String includeItems = null;
private String startPosition = null;
private String subFolderDepth = null;
private String template = null;
private String userFilter = null;

/**
* setCount method.
*/
public void setCount(String count) {
this.count = count;
}

/**
* getCount method.
*
* @return String
*/
public String getCount() {
return this.count;
}

/**
* setInclude method.
*/
Expand Down Expand Up @@ -117,6 +135,22 @@ public String getStartPosition() {
return this.startPosition;
}

/**
* setSubFolderDepth method.
*/
public void setSubFolderDepth(String subFolderDepth) {
this.subFolderDepth = subFolderDepth;
}

/**
* getSubFolderDepth method.
*
* @return String
*/
public String getSubFolderDepth() {
return this.subFolderDepth;
}

/**
* setTemplate method.
*/
Expand Down Expand Up @@ -200,11 +234,15 @@ public ApiResponse<FoldersResponse > callListWithHttpInfo(String accountId, Fold
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();

if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("count", options.count));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("include", options.include));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("include_items", options.includeItems));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("start_position", options.startPosition));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("sub_folder_depth", options.subFolderDepth));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("template", options.template));
}if (options != null) {
Expand Down

0 comments on commit a480b7d

Please sign in to comment.