Skip to content

Commit 527ae6b

Browse files
eleanorharrisroot
andauthored
Version 4.4.0-v2.1-23.3.00.01 release (#268)
Co-authored-by: root <[email protected]>
1 parent 19ed06d commit 527ae6b

20 files changed

+1798
-98
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jdk:
2020
- oraclejdk12
2121
- oraclejdk13
2222

23-
script: mvn clean test
23+
script: mvn -X clean test
2424

2525
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"
2626

CHANGELOG.md

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

4+
## [v4.4.0] - eSignature API v2.1-23.3.00.01 - 2023-08-30
5+
### Changed
6+
- Added support for version v2.1-23.3.00.01 of the DocuSign ESignature API.
7+
- Updated the SDK release version.
8+
49
## [v4.3.0] - eSignature API v2.1-23.2.00.00 - 2023-05-15
510
### Changed
611
- Added support for version v2.1-23.2.00.00 of the DocuSign ESignature API.

pom.xml

Lines changed: 2 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>4.3.0</version>
8+
<version>4.4.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

@@ -329,6 +329,7 @@
329329
<artifactId>jersey-media-json-jackson</artifactId>
330330
<version>${jersey-version}</version>
331331
</dependency>
332+
<!-- Pinned because other libraries rely on this lib and jersey is not backwards compatible now -->
332333
<dependency>
333334
<groupId>org.glassfish.jersey.inject</groupId>
334335
<artifactId>jersey-hk2</artifactId>

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

Lines changed: 97 additions & 13 deletions
Large diffs are not rendered by default.

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

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3926,10 +3926,12 @@ public ApiResponse<Object> deleteTemplatesFromDocumentWithHttpInfo(String accoun
39263926
* @param accountId The external account number (int) or account ID Guid. (required)
39273927
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
39283928
* @param attachmentId (required)
3929+
* @return byte[]
39293930
* @throws ApiException if fails to make API call
39303931
*/
3931-
public void getAttachment(String accountId, String envelopeId, String attachmentId) throws ApiException {
3932-
getAttachmentWithHttpInfo(accountId, envelopeId, attachmentId);
3932+
public byte[] getAttachment(String accountId, String envelopeId, String attachmentId) throws ApiException {
3933+
ApiResponse<byte[]> localVarResponse = getAttachmentWithHttpInfo(accountId, envelopeId, attachmentId);
3934+
return localVarResponse.getData();
39333935
}
39343936

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

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

39783981

39793982
final String[] localVarAccepts = {
3980-
"application/json"
3983+
"application/octet-stream"
39813984
};
39823985
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
39833986

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

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

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

39953999
/**
@@ -4316,7 +4320,7 @@ public String getLangCode2() {
43164320
* @param accountId The external account number (int) or account ID Guid. (required)
43174321
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43184322
* @param recipientId The ID of the recipient being accessed. (required)
4319-
* @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)
4323+
* @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)
43204324
* @return ConsumerDisclosure
43214325
*/
43224326
public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelopeId, String recipientId, String langCode) throws ApiException {
@@ -4329,7 +4333,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
43294333
* @param accountId The external account number (int) or account ID Guid. (required)
43304334
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43314335
* @param recipientId The ID of the recipient being accessed. (required)
4332-
* @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)
4336+
* @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)
43334337
* @param options for modifying the method behavior.
43344338
* @return ConsumerDisclosure
43354339
* @throws ApiException if fails to make API call
@@ -4345,7 +4349,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
43454349
* @param accountId The external account number (int) or account ID Guid. (required)
43464350
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43474351
* @param recipientId The ID of the recipient being accessed. (required)
4348-
* @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)
4352+
* @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)
43494353
* @param options for modifying the method behavior.
43504354
* @return ConsumerDisclosure
43514355
* @throws ApiException if fails to make API call
@@ -8239,6 +8243,7 @@ public class ListStatusChangesOptions
82398243
private String powerformids = null;
82408244
private String queryBudget = null;
82418245
private String requesterDateFormat = null;
8246+
private String searchMode = null;
82428247
private String searchText = null;
82438248
private String startPosition = null;
82448249
private String status = null;
@@ -8600,6 +8605,22 @@ public String getRequesterDateFormat() {
86008605
return this.requesterDateFormat;
86018606
}
86028607

8608+
/**
8609+
* setSearchMode method.
8610+
*/
8611+
public void setSearchMode(String searchMode) {
8612+
this.searchMode = searchMode;
8613+
}
8614+
8615+
/**
8616+
* getSearchMode method.
8617+
*
8618+
* @return String
8619+
*/
8620+
public String getSearchMode() {
8621+
return this.searchMode;
8622+
}
8623+
86038624
/**
86048625
* setSearchText method.
86058626
*/
@@ -8822,6 +8843,8 @@ public ApiResponse<EnvelopesInformation > listStatusChangesWithHttpInfo(String a
88228843
localVarQueryParams.addAll(apiClient.parameterToPair("query_budget", options.queryBudget));
88238844
}if (options != null) {
88248845
localVarQueryParams.addAll(apiClient.parameterToPair("requester_date_format", options.requesterDateFormat));
8846+
}if (options != null) {
8847+
localVarQueryParams.addAll(apiClient.parameterToPair("search_mode", options.searchMode));
88258848
}if (options != null) {
88268849
localVarQueryParams.addAll(apiClient.parameterToPair("search_text", options.searchText));
88278850
}if (options != null) {

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@ public ApiResponse<EnvelopeTemplate > getWithHttpInfo(String accountId, String t
17651765
public class GetDocumentOptions
17661766
{
17671767
private String encrypt = null;
1768+
private String fileType = null;
17681769
private String showChanges = null;
17691770

17701771
/**
@@ -1783,6 +1784,22 @@ public String getEncrypt() {
17831784
return this.encrypt;
17841785
}
17851786

1787+
/**
1788+
* setFileType method.
1789+
*/
1790+
public void setFileType(String fileType) {
1791+
this.fileType = fileType;
1792+
}
1793+
1794+
/**
1795+
* getFileType method.
1796+
*
1797+
* @return String
1798+
*/
1799+
public String getFileType() {
1800+
return this.fileType;
1801+
}
1802+
17861803
/**
17871804
* setShowChanges method.
17881805
*/
@@ -1869,6 +1886,8 @@ public ApiResponse<byte[] > getDocumentWithHttpInfo(String accountId, String tem
18691886

18701887
if (options != null) {
18711888
localVarQueryParams.addAll(apiClient.parameterToPair("encrypt", options.encrypt));
1889+
}if (options != null) {
1890+
localVarQueryParams.addAll(apiClient.parameterToPair("file_type", options.fileType));
18721891
}if (options != null) {
18731892
localVarQueryParams.addAll(apiClient.parameterToPair("show_changes", options.showChanges));
18741893
}

src/main/java/com/docusign/esign/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public ApiClient() {
9696
String javaVersion = System.getProperty("java.version");
9797

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

101101
// Setup authentications (key: authentication name, value: authentication).
102102
authentications = new HashMap<String, Authentication>();

src/main/java/com/docusign/esign/model/AccountIdentityVerificationWorkflow.java

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ public class AccountIdentityVerificationWorkflow {
2626
@JsonProperty("inputOptions")
2727
private java.util.List<AccountIdentityInputOption> inputOptions = null;
2828

29+
@JsonProperty("isDisabled")
30+
private String isDisabled = null;
31+
32+
@JsonProperty("ownerType")
33+
private String ownerType = null;
34+
2935
@JsonProperty("signatureProvider")
3036
private AccountSignatureProvider signatureProvider = null;
3137

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

138144

145+
/**
146+
* isDisabled.
147+
*
148+
* @return AccountIdentityVerificationWorkflow
149+
**/
150+
public AccountIdentityVerificationWorkflow isDisabled(String isDisabled) {
151+
this.isDisabled = isDisabled;
152+
return this;
153+
}
154+
155+
/**
156+
* .
157+
* @return isDisabled
158+
**/
159+
@Schema(description = "")
160+
public String getIsDisabled() {
161+
return isDisabled;
162+
}
163+
164+
/**
165+
* setIsDisabled.
166+
**/
167+
public void setIsDisabled(String isDisabled) {
168+
this.isDisabled = isDisabled;
169+
}
170+
171+
172+
/**
173+
* ownerType.
174+
*
175+
* @return AccountIdentityVerificationWorkflow
176+
**/
177+
public AccountIdentityVerificationWorkflow ownerType(String ownerType) {
178+
this.ownerType = ownerType;
179+
return this;
180+
}
181+
182+
/**
183+
* .
184+
* @return ownerType
185+
**/
186+
@Schema(description = "")
187+
public String getOwnerType() {
188+
return ownerType;
189+
}
190+
191+
/**
192+
* setOwnerType.
193+
**/
194+
public void setOwnerType(String ownerType) {
195+
this.ownerType = ownerType;
196+
}
197+
198+
139199
/**
140200
* signatureProvider.
141201
*
@@ -301,6 +361,8 @@ public boolean equals(java.lang.Object o) {
301361
return Objects.equals(this.defaultDescription, accountIdentityVerificationWorkflow.defaultDescription) &&
302362
Objects.equals(this.defaultName, accountIdentityVerificationWorkflow.defaultName) &&
303363
Objects.equals(this.inputOptions, accountIdentityVerificationWorkflow.inputOptions) &&
364+
Objects.equals(this.isDisabled, accountIdentityVerificationWorkflow.isDisabled) &&
365+
Objects.equals(this.ownerType, accountIdentityVerificationWorkflow.ownerType) &&
304366
Objects.equals(this.signatureProvider, accountIdentityVerificationWorkflow.signatureProvider) &&
305367
Objects.equals(this.steps, accountIdentityVerificationWorkflow.steps) &&
306368
Objects.equals(this.workflowId, accountIdentityVerificationWorkflow.workflowId) &&
@@ -313,7 +375,7 @@ public boolean equals(java.lang.Object o) {
313375
*/
314376
@Override
315377
public int hashCode() {
316-
return Objects.hash(defaultDescription, defaultName, inputOptions, signatureProvider, steps, workflowId, workflowLabel, workflowResourceKey);
378+
return Objects.hash(defaultDescription, defaultName, inputOptions, isDisabled, ownerType, signatureProvider, steps, workflowId, workflowLabel, workflowResourceKey);
317379
}
318380

319381

@@ -328,6 +390,8 @@ public String toString() {
328390
sb.append(" defaultDescription: ").append(toIndentedString(defaultDescription)).append("\n");
329391
sb.append(" defaultName: ").append(toIndentedString(defaultName)).append("\n");
330392
sb.append(" inputOptions: ").append(toIndentedString(inputOptions)).append("\n");
393+
sb.append(" isDisabled: ").append(toIndentedString(isDisabled)).append("\n");
394+
sb.append(" ownerType: ").append(toIndentedString(ownerType)).append("\n");
331395
sb.append(" signatureProvider: ").append(toIndentedString(signatureProvider)).append("\n");
332396
sb.append(" steps: ").append(toIndentedString(steps)).append("\n");
333397
sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n");

0 commit comments

Comments
 (0)