Skip to content

Commit

Permalink
Version 4.4.0-v2.1-23.3.00.01 release (#268)
Browse files Browse the repository at this point in the history
Co-authored-by: root <[email protected]>
  • Loading branch information
eleanorharris and root authored Sep 12, 2023
1 parent 19ed06d commit 527ae6b
Show file tree
Hide file tree
Showing 20 changed files with 1,798 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jdk:
- oraclejdk12
- oraclejdk13

script: mvn clean test
script: mvn -X clean test

after_failure: "cat /home/travis/build/docusign/docusign-java-client/target/surefire-reports/SdkUnitTests.txt && cat /home/travis/build/docusign/docusign-java-client/target/surefire-reports/TEST-SdkUnitTests.xml"

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# DocuSign Java Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.

## [v4.4.0] - eSignature API v2.1-23.3.00.01 - 2023-08-30
### Changed
- Added support for version v2.1-23.3.00.01 of the DocuSign ESignature API.
- Updated the SDK release version.

## [v4.3.0] - eSignature API v2.1-23.2.00.00 - 2023-05-15
### Changed
- Added support for version v2.1-23.2.00.00 of the DocuSign ESignature API.
Expand Down
3 changes: 2 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>4.3.0</version>
<version>4.4.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 @@ -329,6 +329,7 @@
<artifactId>jersey-media-json-jackson</artifactId>
<version>${jersey-version}</version>
</dependency>
<!-- Pinned because other libraries rely on this lib and jersey is not backwards compatible now -->
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
Expand Down
110 changes: 97 additions & 13 deletions src/main/java/com/docusign/esign/api/AccountsApi.java

Large diffs are not rendered by default.

41 changes: 32 additions & 9 deletions src/main/java/com/docusign/esign/api/EnvelopesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -3926,10 +3926,12 @@ public ApiResponse<Object> deleteTemplatesFromDocumentWithHttpInfo(String accoun
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param attachmentId (required)
* @return byte[]
* @throws ApiException if fails to make API call
*/
public void getAttachment(String accountId, String envelopeId, String attachmentId) throws ApiException {
getAttachmentWithHttpInfo(accountId, envelopeId, attachmentId);
public byte[] getAttachment(String accountId, String envelopeId, String attachmentId) throws ApiException {
ApiResponse<byte[]> localVarResponse = getAttachmentWithHttpInfo(accountId, envelopeId, attachmentId);
return localVarResponse.getData();
}

/**
Expand All @@ -3938,9 +3940,10 @@ public void getAttachment(String accountId, String envelopeId, String attachment
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param attachmentId (required)
* @return byte[]
* @throws ApiException if fails to make API call
*/
public ApiResponse<Object> getAttachmentWithHttpInfo(String accountId, String envelopeId, String attachmentId) throws ApiException {
public ApiResponse<byte[] > getAttachmentWithHttpInfo(String accountId, String envelopeId, String attachmentId) throws ApiException {
Object localVarPostBody = "{}";

// verify the required parameter 'accountId' is set
Expand Down Expand Up @@ -3977,7 +3980,7 @@ public ApiResponse<Object> getAttachmentWithHttpInfo(String accountId, String en


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

Expand All @@ -3988,8 +3991,9 @@ public ApiResponse<Object> getAttachmentWithHttpInfo(String accountId, String en

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

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

/**
Expand Down Expand Up @@ -4316,7 +4320,7 @@ public String getLangCode2() {
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param recipientId The ID of the recipient being accessed. (required)
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
* @return ConsumerDisclosure
*/
public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelopeId, String recipientId, String langCode) throws ApiException {
Expand All @@ -4329,7 +4333,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param recipientId The ID of the recipient being accessed. (required)
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
* @param options for modifying the method behavior.
* @return ConsumerDisclosure
* @throws ApiException if fails to make API call
Expand All @@ -4345,7 +4349,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
* @param accountId The external account number (int) or account ID Guid. (required)
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
* @param recipientId The ID of the recipient being accessed. (required)
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
* @param options for modifying the method behavior.
* @return ConsumerDisclosure
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -8239,6 +8243,7 @@ public class ListStatusChangesOptions
private String powerformids = null;
private String queryBudget = null;
private String requesterDateFormat = null;
private String searchMode = null;
private String searchText = null;
private String startPosition = null;
private String status = null;
Expand Down Expand Up @@ -8600,6 +8605,22 @@ public String getRequesterDateFormat() {
return this.requesterDateFormat;
}

/**
* setSearchMode method.
*/
public void setSearchMode(String searchMode) {
this.searchMode = searchMode;
}

/**
* getSearchMode method.
*
* @return String
*/
public String getSearchMode() {
return this.searchMode;
}

/**
* setSearchText method.
*/
Expand Down Expand Up @@ -8822,6 +8843,8 @@ public ApiResponse<EnvelopesInformation > listStatusChangesWithHttpInfo(String a
localVarQueryParams.addAll(apiClient.parameterToPair("query_budget", options.queryBudget));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("requester_date_format", options.requesterDateFormat));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("search_mode", options.searchMode));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("search_text", options.searchText));
}if (options != null) {
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/docusign/esign/api/TemplatesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,7 @@ public ApiResponse<EnvelopeTemplate > getWithHttpInfo(String accountId, String t
public class GetDocumentOptions
{
private String encrypt = null;
private String fileType = null;
private String showChanges = null;

/**
Expand All @@ -1783,6 +1784,22 @@ public String getEncrypt() {
return this.encrypt;
}

/**
* setFileType method.
*/
public void setFileType(String fileType) {
this.fileType = fileType;
}

/**
* getFileType method.
*
* @return String
*/
public String getFileType() {
return this.fileType;
}

/**
* setShowChanges method.
*/
Expand Down Expand Up @@ -1869,6 +1886,8 @@ public ApiResponse<byte[] > getDocumentWithHttpInfo(String accountId, String tem

if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("encrypt", options.encrypt));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("file_type", options.fileType));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("show_changes", options.showChanges));
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/docusign/esign/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public ApiClient() {
String javaVersion = System.getProperty("java.version");

// Set default User-Agent.
setUserAgent("/SDK/4.3.0/Java/");
setUserAgent("/SDK/4.4.0/Java/");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public class AccountIdentityVerificationWorkflow {
@JsonProperty("inputOptions")
private java.util.List<AccountIdentityInputOption> inputOptions = null;

@JsonProperty("isDisabled")
private String isDisabled = null;

@JsonProperty("ownerType")
private String ownerType = null;

@JsonProperty("signatureProvider")
private AccountSignatureProvider signatureProvider = null;

Expand Down Expand Up @@ -136,6 +142,60 @@ public void setInputOptions(java.util.List<AccountIdentityInputOption> inputOpti
}


/**
* isDisabled.
*
* @return AccountIdentityVerificationWorkflow
**/
public AccountIdentityVerificationWorkflow isDisabled(String isDisabled) {
this.isDisabled = isDisabled;
return this;
}

/**
* .
* @return isDisabled
**/
@Schema(description = "")
public String getIsDisabled() {
return isDisabled;
}

/**
* setIsDisabled.
**/
public void setIsDisabled(String isDisabled) {
this.isDisabled = isDisabled;
}


/**
* ownerType.
*
* @return AccountIdentityVerificationWorkflow
**/
public AccountIdentityVerificationWorkflow ownerType(String ownerType) {
this.ownerType = ownerType;
return this;
}

/**
* .
* @return ownerType
**/
@Schema(description = "")
public String getOwnerType() {
return ownerType;
}

/**
* setOwnerType.
**/
public void setOwnerType(String ownerType) {
this.ownerType = ownerType;
}


/**
* signatureProvider.
*
Expand Down Expand Up @@ -301,6 +361,8 @@ public boolean equals(java.lang.Object o) {
return Objects.equals(this.defaultDescription, accountIdentityVerificationWorkflow.defaultDescription) &&
Objects.equals(this.defaultName, accountIdentityVerificationWorkflow.defaultName) &&
Objects.equals(this.inputOptions, accountIdentityVerificationWorkflow.inputOptions) &&
Objects.equals(this.isDisabled, accountIdentityVerificationWorkflow.isDisabled) &&
Objects.equals(this.ownerType, accountIdentityVerificationWorkflow.ownerType) &&
Objects.equals(this.signatureProvider, accountIdentityVerificationWorkflow.signatureProvider) &&
Objects.equals(this.steps, accountIdentityVerificationWorkflow.steps) &&
Objects.equals(this.workflowId, accountIdentityVerificationWorkflow.workflowId) &&
Expand All @@ -313,7 +375,7 @@ public boolean equals(java.lang.Object o) {
*/
@Override
public int hashCode() {
return Objects.hash(defaultDescription, defaultName, inputOptions, signatureProvider, steps, workflowId, workflowLabel, workflowResourceKey);
return Objects.hash(defaultDescription, defaultName, inputOptions, isDisabled, ownerType, signatureProvider, steps, workflowId, workflowLabel, workflowResourceKey);
}


Expand All @@ -328,6 +390,8 @@ public String toString() {
sb.append(" defaultDescription: ").append(toIndentedString(defaultDescription)).append("\n");
sb.append(" defaultName: ").append(toIndentedString(defaultName)).append("\n");
sb.append(" inputOptions: ").append(toIndentedString(inputOptions)).append("\n");
sb.append(" isDisabled: ").append(toIndentedString(isDisabled)).append("\n");
sb.append(" ownerType: ").append(toIndentedString(ownerType)).append("\n");
sb.append(" signatureProvider: ").append(toIndentedString(signatureProvider)).append("\n");
sb.append(" steps: ").append(toIndentedString(steps)).append("\n");
sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n");
Expand Down
Loading

0 comments on commit 527ae6b

Please sign in to comment.