Skip to content

Commit 25f9965

Browse files
committed
RC of version 2.12.0
### Changed - The SDK now supports version 19.2.02 of the DocuSign eSignature v2 API. - SDK Release Version updated. ## Fixed - Issue [`#55`](#55): Unable to revoke OAuth token. (DCM-2926) - requestJWTUserToken does not give error response in exception. (DCM-3410)
1 parent 2432343 commit 25f9965

File tree

162 files changed

+13341
-139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+13341
-139
lines changed

CHANGELOG.md

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

4+
## [v2.12.0-RC1] - eSignature API v2-19.2.02 - 2019-08-29
5+
### Changed
6+
- The SDK now supports version 19.2.02 of the DocuSign eSignature v2 API.
7+
- SDK Release Version updated.
8+
## Fixed
9+
- Issue [`#55`](https://github.com/docusign/docusign-java-client/issues/55): Unable to revoke OAuth token. (DCM-2926)
10+
- requestJWTUserToken does not give error response in exception. (DCM-3410)
11+
412
## [v2.11.0] Full support of the Bulk Send API - 2019-06-26
513
## Fixed
614
- Issue [`#98`](https://github.com/docusign/docusign-java-client/issues/98): 411 Error thrown from BulkEnvelopesAPI updateRecipients call.
@@ -13,39 +21,39 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
1321

1422
## [v2.10.0] - eSignature API v19.1.02 - 2019-05-16
1523
### Changed
16-
* The SDK now supports version 19.1.02 of the DocuSign eSignature API.
17-
* SDK Release Version updated.
24+
- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
25+
- SDK Release Version updated.
1826
### Added
19-
* Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
20-
* Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
21-
* Added a new *tabGroupLabels* field to all Tabs models
22-
* Added a new *Witnesses* field to all Recipients models
23-
* Implemented models for Smart Sections feature
24-
* Implemented initial support of HMAC for DocuSign Connect
27+
- Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
28+
- Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
29+
- Added a new *tabGroupLabels* field to all Tabs models
30+
- Added a new *Witnesses* field to all Recipients models
31+
- Implemented models for Smart Sections feature
32+
- Implemented initial support of HMAC for DocuSign Connect
2533
### Fixed
26-
* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
27-
* A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
28-
* Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
34+
- A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
35+
- A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
36+
- Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
2937

3038
## [v2.10.0-RC2] - eSignature API v19.1.02 - 2019-05-09
3139
### Fixed
32-
* A regression bug where the ApiClient authentications member field was locked and prevented writing to it.
40+
- A regression bug where the ApiClient authentications member field was locked and prevented writing to it.
3341

3442
## [v2.10.0-RC1] - eSignature API v19.1.02 - 2019-05-03
3543
### Changed
36-
* The SDK now supports version 19.1.02 of the DocuSign eSignature API.
37-
* SDK Release Version updated.
44+
- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
45+
- SDK Release Version updated.
3846
### Added
39-
* Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
40-
* Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
41-
* Added a new *tabGroupLabels* field to all Tabs models
42-
* Added a new *Witnesses* field to all Recipients models
43-
* Implemented models for Smart Sections feature
44-
* Implemented initial support of HMAC for DocuSign Connect
47+
- Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
48+
- Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
49+
- Added a new *tabGroupLabels* field to all Tabs models
50+
- Added a new *Witnesses* field to all Recipients models
51+
- Implemented models for Smart Sections feature
52+
- Implemented initial support of HMAC for DocuSign Connect
4553
### Fixed
46-
* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
47-
* A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
48-
* Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
54+
- A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
55+
- A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
56+
- Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
4957

5058
## [v2.9.0] - eSignature API v18.4.02 - 2019-02-27
5159
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Note: DocuSign uses **Eclipse** with **Maven** for testing purposes.
3434
<dependency>
3535
<groupId>com.docusign</groupId>
3636
<artifactId>docusign-esign-java</artifactId>
37-
<version>2.11.0</version>
37+
<version>v2.12.0-RC1</version>
3838
</dependency>
3939
```
4040

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.docusign'
5-
version = '2.11.0'
5+
version = 'v2.12.0-RC1'
66

77
buildscript {
88
repositories {

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>docusign-esign-java</artifactId>
55
<packaging>jar</packaging>
66
<name>docusign-esign-java</name>
7-
<version>2.11.0</version>
7+
<version>v2.12.0-RC1</version>
88
<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>
99
<url>https://www.docusign.com/developer-center</url>
1010

@@ -283,7 +283,7 @@
283283
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
284284
<swagger-annotations-version>1.5.8</swagger-annotations-version>
285285
<jersey-version>1.19.1</jersey-version>
286-
<jackson-version>2.9.9</jackson-version>
286+
<jackson-version>2.10.0.pr1</jackson-version>
287287
<jodatime-version>2.9.3</jodatime-version>
288288
<maven-plugin-version>1.0.0</maven-plugin-version>
289289
<junit-version>4.12</junit-version>

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

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,42 @@ public LoginInformation login(AuthenticationApi.LoginOptions options) throws Api
274274
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
275275
}
276276

277-
/**
277+
/// <summary>
278+
/// Options object including the token to be revoked
279+
/// </summary>
280+
public class RevokeOAuthTokenOptions
281+
{
282+
private String token = null;
283+
/*
284+
* The token to be revoked.
285+
*/
286+
public void setToken(String token) {
287+
this.token = token;
288+
}
289+
290+
public String getToken() {
291+
return this.token;
292+
}
293+
}
294+
295+
/**
278296
* Revokes an authorization token.
279297
* Revokes an OAuth2 authorization server token. After the revocation is complete, a caller must re-authenticate to restore access.
280298
* @throws ApiException if fails to make API call
281299
*/
282300
public void revokeOAuthToken() throws ApiException {
283-
Object localVarPostBody = "{}";
301+
revokeOAuthToken(null);
302+
}
303+
304+
305+
/**
306+
* Revokes an authorization token.
307+
* Revokes an OAuth2 authorization server token. After the revocation is complete, a caller must re-authenticate to restore access.
308+
* @param options for modifying the method behavior.
309+
* @throws ApiException if fails to make API call
310+
*/
311+
public void revokeOAuthToken(AuthenticationApi.RevokeOAuthTokenOptions options) throws ApiException {
312+
Object localVarPostBody = null;
284313

285314
// create path and map variables
286315
String localVarPath = "/v2/oauth2/revoke".replaceAll("\\{format\\}","json");
@@ -290,16 +319,18 @@ public void revokeOAuthToken() throws ApiException {
290319
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
291320
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
292321

293-
294-
322+
if (options != null) {
323+
localVarFormParams.put("token", options.token);
324+
}
325+
295326

296327
final String[] localVarAccepts = {
297328
"application/json"
298329
};
299330
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
300331

301332
final String[] localVarContentTypes = {
302-
333+
"application/x-www-form-urlencoded"
303334
};
304335
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
305336

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -401,22 +401,22 @@ public BulkEnvelopesResponse list(String accountId, BulkEnvelopesApi.ListOptions
401401
* Adds or replaces envelope bulk recipients.
402402
* Updates the bulk recipients in a draft envelope using a file upload. The Content-Type supported for uploading a bulk recipient file is CSV (text/csv). The REST API does not support modifying individual rows or values in the bulk recipients file. It only allows the entire file to be added or replaced with a new file.
403403
* @param accountId The external account number (int) or account ID Guid. (required)
404-
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
405-
* @param recipientId The ID of the recipient being accessed. (required)
404+
* @param envelopeId The envelope&#39;s GUID. Eg 93be49ab-afa0-4adf-933c-f752070d71ec (required)
405+
* @param recipientId The &#x60;recipientId&#x60; used when the envelope or template was created. (required)
406406
* @param bulkRecipientsRequest (required)
407407
* @return BulkRecipientsSummaryResponse
408408
* @throws ApiException if fails to make API call
409409
*/
410410
public BulkRecipientsSummaryResponse updateRecipients(String accountId, String envelopeId, String recipientId, byte[] bulkRecipientsRequest) throws ApiException {
411411
Object localVarPostBody = bulkRecipientsRequest;
412-
413-
// verify the required parameter 'bulkRecipientsRequest' is set
414-
if (bulkRecipientsRequest == null) {
412+
413+
// verify the required parameter 'bulkRecipientsRequest' is set
414+
if (bulkRecipientsRequest == null) {
415415
throw new ApiException(400, "Missing the required parameter 'bulkRecipientsRequest' when calling updateRecipients");
416-
}
417-
418-
// verify the required parameter 'accountId' is set
419-
if (accountId == null) {
416+
}
417+
418+
// verify the required parameter 'accountId' is set
419+
if (accountId == null) {
420420
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateRecipients");
421421
}
422422

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
package com.docusign.esign.api;
2+
3+
import com.sun.jersey.api.client.GenericType;
4+
5+
import com.docusign.esign.client.ApiException;
6+
import com.docusign.esign.client.ApiClient;
7+
import com.docusign.esign.client.Configuration;
8+
import com.docusign.esign.client.Pair;
9+
10+
import com.docusign.esign.model.EnvelopePurgeConfiguration;
11+
import com.docusign.esign.model.ErrorDetails;
12+
13+
14+
15+
16+
public class EnvelopePurgeConfigurationApi {
17+
private ApiClient apiClient;
18+
19+
public EnvelopePurgeConfigurationApi() {
20+
this(Configuration.getDefaultApiClient());
21+
}
22+
23+
public EnvelopePurgeConfigurationApi(ApiClient apiClient) {
24+
this.apiClient = apiClient;
25+
}
26+
27+
public ApiClient getApiClient() {
28+
return apiClient;
29+
}
30+
31+
public void setApiClient(ApiClient apiClient) {
32+
this.apiClient = apiClient;
33+
}
34+
35+
36+
/**
37+
* Select envelope purge configuration.
38+
*
39+
* @param accountId The external account number (int) or account ID Guid. (required)
40+
* @return EnvelopePurgeConfiguration
41+
* @throws ApiException if fails to make API call
42+
*/
43+
public EnvelopePurgeConfiguration getEnvelopePurgeConfiguration(String accountId) throws ApiException {
44+
Object localVarPostBody = "{}";
45+
46+
// verify the required parameter 'accountId' is set
47+
if (accountId == null) {
48+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getEnvelopePurgeConfiguration");
49+
}
50+
51+
// create path and map variables
52+
String localVarPath = "/v2.1/accounts/{accountId}/settings/envelope_purge_configuration".replaceAll("\\{format\\}","json")
53+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
54+
55+
// query params
56+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
57+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
58+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
59+
60+
61+
62+
63+
final String[] localVarAccepts = {
64+
"application/json"
65+
};
66+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
67+
68+
final String[] localVarContentTypes = {
69+
70+
};
71+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
72+
73+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
74+
75+
GenericType<EnvelopePurgeConfiguration> localVarReturnType = new GenericType<EnvelopePurgeConfiguration>() {};
76+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
77+
}
78+
79+
/**
80+
* Updates envelope purge configuration.
81+
*
82+
* @param accountId The external account number (int) or account ID Guid. (required)
83+
* @param envelopePurgeConfiguration (optional)
84+
* @return EnvelopePurgeConfiguration
85+
* @throws ApiException if fails to make API call
86+
*/
87+
public EnvelopePurgeConfiguration updateEnvelopePurgeConfiguration(String accountId, EnvelopePurgeConfiguration envelopePurgeConfiguration) throws ApiException {
88+
Object localVarPostBody = envelopePurgeConfiguration;
89+
90+
// verify the required parameter 'accountId' is set
91+
if (accountId == null) {
92+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateEnvelopePurgeConfiguration");
93+
}
94+
95+
// create path and map variables
96+
String localVarPath = "/v2.1/accounts/{accountId}/settings/envelope_purge_configuration".replaceAll("\\{format\\}","json")
97+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
98+
99+
// query params
100+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
101+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
102+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
103+
104+
105+
106+
107+
final String[] localVarAccepts = {
108+
"application/json"
109+
};
110+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
111+
112+
final String[] localVarContentTypes = {
113+
114+
};
115+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
116+
117+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
118+
119+
GenericType<EnvelopePurgeConfiguration> localVarReturnType = new GenericType<EnvelopePurgeConfiguration>() {};
120+
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
121+
}
122+
}

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

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

0 commit comments

Comments
 (0)