Skip to content

Commit 9df3a59

Browse files
eleanorharrisrootdbbrahmbhatt
authored
Version 3.22.0 release (#250)
* Version 3.22.0-v2.1-22.3.01.00 release * Update .travis.yml Co-authored-by: root <[email protected]> Co-authored-by: Dhaval Brahmbhatt <[email protected]>
1 parent 26a0649 commit 9df3a59

22 files changed

+1643
-77
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ script: mvn 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

27-
cache:
28-
directories:
29-
- $HOME/.m2

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+
## [v3.22.0] - eSignature API v2.1-22.3.01.00 - 2022-12-06
5+
### Changed
6+
- Added support for version v2.1-22.3.01.00 of the DocuSign ESignature API.
7+
- Updated the SDK release version.
8+
49
## [v3.21.0] - eSignature API v2.1-22.3.00.00 - 2022-08-30
510
### Changed
611
- Added support for version v2.1-1.2.7 of the DocuSign ESignature API.

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ dependencies {
130130
compile "org.glassfish.jersey.core:jersey-client:$jersey_version"
131131
compile "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
132132
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
133+
compile group: "org.glassfish.jersey.inject", name: "jersey-hk2", version: "2.26"
133134
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
134135
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
135136
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"

pom.xml

Lines changed: 15 additions & 30 deletions
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.21.0</version>
8+
<version>3.22.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,29 +240,6 @@
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-
</configuration>
263-
</execution>
264-
</executions>
265-
</plugin>
266243
<plugin>
267244
<groupId>org.apache.maven.plugins</groupId>
268245
<artifactId>maven-gpg-plugin</artifactId>
@@ -319,10 +296,11 @@
319296
<artifactId>jersey-media-json-jackson</artifactId>
320297
<version>${jersey-version}</version>
321298
</dependency>
299+
<!-- Pinned because other libraries rely on this lib and jerset is not backwards compatible now -->
322300
<dependency>
323301
<groupId>org.glassfish.jersey.inject</groupId>
324302
<artifactId>jersey-hk2</artifactId>
325-
<version>${jersey-version}</version>
303+
<version>2.26</version>
326304
</dependency>
327305
<!-- JSON processing: jackson -->
328306
<dependency>
@@ -340,11 +318,6 @@
340318
<artifactId>jackson-databind</artifactId>
341319
<version>${jackson-version}</version>
342320
</dependency>
343-
<dependency>
344-
<groupId>com.fasterxml.jackson.jaxrs</groupId>
345-
<artifactId>jackson-jaxrs-json-provider</artifactId>
346-
<version>${jackson-version}</version>
347-
</dependency>
348321
<dependency>
349322
<groupId>org.apache.oltu.oauth2</groupId>
350323
<artifactId>org.apache.oltu.oauth2.client</artifactId>
@@ -384,6 +357,18 @@
384357
<version>2.2</version>
385358
<scope>compile</scope>
386359
</dependency>
360+
<dependency>
361+
<groupId>jakarta.ws.rs</groupId>
362+
<artifactId>jakarta.ws.rs-api</artifactId>
363+
<version>2.1.6</version>
364+
<scope>compile</scope>
365+
</dependency>
366+
<dependency>
367+
<groupId>org.glassfish.jersey.core</groupId>
368+
<artifactId>jersey-common</artifactId>
369+
<version>2.29.1</version>
370+
<scope>compile</scope>
371+
</dependency>
387372
</dependencies>
388373
<properties>
389374
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

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

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

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

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4316,7 +4316,7 @@ public String getLangCode2() {
43164316
* @param accountId The external account number (int) or account ID Guid. (required)
43174317
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43184318
* @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), 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)
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)
43204320
* @return ConsumerDisclosure
43214321
*/
43224322
public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelopeId, String recipientId, String langCode) throws ApiException {
@@ -4329,7 +4329,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
43294329
* @param accountId The external account number (int) or account ID Guid. (required)
43304330
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43314331
* @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), 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)
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)
43334333
* @param options for modifying the method behavior.
43344334
* @return ConsumerDisclosure
43354335
* @throws ApiException if fails to make API call
@@ -4345,7 +4345,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
43454345
* @param accountId The external account number (int) or account ID Guid. (required)
43464346
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43474347
* @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), 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)
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)
43494349
* @param options for modifying the method behavior.
43504350
* @return ConsumerDisclosure
43514351
* @throws ApiException if fails to make API call
@@ -7443,6 +7443,7 @@ public ApiResponse<DocumentFieldsInformation > listDocumentFieldsWithHttpInfo(St
74437443
public class ListDocumentsOptions
74447444
{
74457445
private String documentsByUserid = null;
7446+
private String includeDocgenFormfields = null;
74467447
private String includeDocumentSize = null;
74477448
private String includeMetadata = null;
74487449
private String includeTabs = null;
@@ -7465,6 +7466,22 @@ public String getDocumentsByUserid() {
74657466
return this.documentsByUserid;
74667467
}
74677468

7469+
/**
7470+
* setIncludeDocgenFormfields method.
7471+
*/
7472+
public void setIncludeDocgenFormfields(String includeDocgenFormfields) {
7473+
this.includeDocgenFormfields = includeDocgenFormfields;
7474+
}
7475+
7476+
/**
7477+
* getIncludeDocgenFormfields method.
7478+
*
7479+
* @return String
7480+
*/
7481+
public String getIncludeDocgenFormfields() {
7482+
return this.includeDocgenFormfields;
7483+
}
7484+
74687485
/**
74697486
* setIncludeDocumentSize method.
74707487
*/
@@ -7606,6 +7623,8 @@ public ApiResponse<EnvelopeDocumentsResult > listDocumentsWithHttpInfo(String ac
76067623

76077624
if (options != null) {
76087625
localVarQueryParams.addAll(apiClient.parameterToPair("documents_by_userid", options.documentsByUserid));
7626+
}if (options != null) {
7627+
localVarQueryParams.addAll(apiClient.parameterToPair("include_docgen_formfields", options.includeDocgenFormfields));
76097628
}if (options != null) {
76107629
localVarQueryParams.addAll(apiClient.parameterToPair("include_document_size", options.includeDocumentSize));
76117630
}if (options != null) {

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import java.security.SecureRandom;
4242
import java.security.cert.CertificateException;
4343
import java.security.cert.X509Certificate;
44+
import java.security.NoSuchAlgorithmException;
4445
import java.text.DateFormat;
4546
import java.util.*;
4647
import java.util.Map.Entry;
@@ -95,7 +96,7 @@ public ApiClient() {
9596
String javaVersion = System.getProperty("java.version");
9697

9798
// Set default User-Agent.
98-
setUserAgent("/SDK/3.21.0/Java/");
99+
setUserAgent("/SDK/3.22.0/Java/");
99100

100101
// Setup authentications (key: authentication name, value: authentication).
101102
authentications = new HashMap<String, Authentication>();
@@ -1635,11 +1636,16 @@ protected Client buildHttpClient(boolean debugging) {
16351636
}
16361637
performAdditionalClientConfiguration(clientConfig);
16371638

1638-
// Force TLS v1.2
1639+
// Check for required TLS v1.2
16391640
try {
1640-
System.setProperty("https.protocols", "TLSv1.2");
1641+
String[] supportedProtocols = SSLContext.getDefault().createSSLEngine().getEnabledProtocols();
1642+
if (!Arrays.asList(supportedProtocols).contains("TLSv1.2")) {
1643+
throw new SecurityException("Docusign Java SDK requires TLSv1.2 Protocol");
1644+
}
16411645
} catch (SecurityException se) {
1642-
System.err.println("failed to set https.protocols property");
1646+
System.err.println(se.getMessage());
1647+
} catch (NoSuchAlgorithmException nsae) {
1648+
System.err.println(nsae.getMessage());
16431649
}
16441650

16451651
// Setup the SSLContext object to use for HTTPS connections to the API

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public class AccountIdentityVerificationWorkflow {
3636
@JsonProperty("workflowId")
3737
private String workflowId = null;
3838

39+
@JsonProperty("workflowLabel")
40+
private String workflowLabel = null;
41+
3942
@JsonProperty("workflowResourceKey")
4043
private String workflowResourceKey = null;
4144

@@ -228,6 +231,33 @@ public void setWorkflowId(String workflowId) {
228231
}
229232

230233

234+
/**
235+
* workflowLabel.
236+
*
237+
* @return AccountIdentityVerificationWorkflow
238+
**/
239+
public AccountIdentityVerificationWorkflow workflowLabel(String workflowLabel) {
240+
this.workflowLabel = workflowLabel;
241+
return this;
242+
}
243+
244+
/**
245+
* .
246+
* @return workflowLabel
247+
**/
248+
@ApiModelProperty(value = "")
249+
public String getWorkflowLabel() {
250+
return workflowLabel;
251+
}
252+
253+
/**
254+
* setWorkflowLabel.
255+
**/
256+
public void setWorkflowLabel(String workflowLabel) {
257+
this.workflowLabel = workflowLabel;
258+
}
259+
260+
231261
/**
232262
* workflowResourceKey.
233263
*
@@ -275,6 +305,7 @@ public boolean equals(java.lang.Object o) {
275305
Objects.equals(this.signatureProvider, accountIdentityVerificationWorkflow.signatureProvider) &&
276306
Objects.equals(this.steps, accountIdentityVerificationWorkflow.steps) &&
277307
Objects.equals(this.workflowId, accountIdentityVerificationWorkflow.workflowId) &&
308+
Objects.equals(this.workflowLabel, accountIdentityVerificationWorkflow.workflowLabel) &&
278309
Objects.equals(this.workflowResourceKey, accountIdentityVerificationWorkflow.workflowResourceKey);
279310
}
280311

@@ -283,7 +314,7 @@ public boolean equals(java.lang.Object o) {
283314
*/
284315
@Override
285316
public int hashCode() {
286-
return Objects.hash(defaultDescription, defaultName, inputOptions, signatureProvider, steps, workflowId, workflowResourceKey);
317+
return Objects.hash(defaultDescription, defaultName, inputOptions, signatureProvider, steps, workflowId, workflowLabel, workflowResourceKey);
287318
}
288319

289320

@@ -301,6 +332,7 @@ public String toString() {
301332
sb.append(" signatureProvider: ").append(toIndentedString(signatureProvider)).append("\n");
302333
sb.append(" steps: ").append(toIndentedString(steps)).append("\n");
303334
sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n");
335+
sb.append(" workflowLabel: ").append(toIndentedString(workflowLabel)).append("\n");
304336
sb.append(" workflowResourceKey: ").append(toIndentedString(workflowResourceKey)).append("\n");
305337
sb.append("}");
306338
return sb.toString();

0 commit comments

Comments
 (0)