Skip to content

Commit 443f16f

Browse files
authored
RC of version 3.2.0 (#120)
* RC of version 3.2.0 +### Changed - The SDK now supports version 19.2.02 of the DocuSign eSignature v2.1 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) * Update CHANGELOG.md
1 parent e5ea6db commit 443f16f

File tree

331 files changed

+9637
-272
lines changed

Some content is hidden

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

331 files changed

+9637
-272
lines changed

CHANGELOG.md

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

4+
## [v3.2.0-RC1] - eSignature API v2.1-19.2.02 - 2019-08-29
5+
### Changed
6+
- The SDK now supports version 19.2.02 of the DocuSign eSignature v2.1 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
## [v3.1.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.
715

816
## [v3.0.1] - eSignature API v2.1-19.1.02 - 2019-06-25
917
### BREAKING
10-
- The SDK now supports version v2.1-19.1.02 of the DocuSign eSignature API.
18+
- The SDK now supports version v2.1-19.1.02 of the DocuSign eSignature v2.1 API.
1119
- SDK Release Version updated.
1220
### Removed
1321
- Removed hardcoded test config values from the test cases. Now getting test config values from the environment variables.
1422

1523
## [v3.0.0-RC1] - eSignature API v2.1-19.1.02 - 2019-06-07
1624
### BREAKING
17-
- The SDK now supports version v2.1-19.1.02 of the DocuSign eSignature API.
25+
- The SDK now supports version v2.1-19.1.02 of the DocuSign eSignature v2.1 API.
1826
- SDK Release Version updated.
1927

2028
## [v2.10.1] - Jackson library patch - 2019-05-23
@@ -23,39 +31,39 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
2331

2432
## [v2.10.0] - eSignature API v19.1.02 - 2019-05-16
2533
### Changed
26-
* The SDK now supports version 19.1.02 of the DocuSign eSignature API.
27-
* SDK Release Version updated.
34+
- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
35+
- SDK Release Version updated.
2836
### Added
29-
* 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)
30-
* Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
31-
* Added a new *tabGroupLabels* field to all Tabs models
32-
* Added a new *Witnesses* field to all Recipients models
33-
* Implemented models for Smart Sections feature
34-
* Implemented initial support of HMAC for DocuSign Connect
37+
- 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)
38+
- Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
39+
- Added a new *tabGroupLabels* field to all Tabs models
40+
- Added a new *Witnesses* field to all Recipients models
41+
- Implemented models for Smart Sections feature
42+
- Implemented initial support of HMAC for DocuSign Connect
3543
### Fixed
36-
* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
37-
* A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
38-
* Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
44+
- A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
45+
- A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
46+
- Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
3947

4048
## [v2.10.0-RC2] - eSignature API v19.1.02 - 2019-05-09
4149
### Fixed
42-
* A regression bug where the ApiClient authentications member field was locked and prevented writing to it.
50+
- A regression bug where the ApiClient authentications member field was locked and prevented writing to it.
4351

4452
## [v2.10.0-RC1] - eSignature API v19.1.02 - 2019-05-03
4553
### Changed
46-
* The SDK now supports version 19.1.02 of the DocuSign eSignature API.
47-
* SDK Release Version updated.
54+
- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
55+
- SDK Release Version updated.
4856
### Added
49-
* 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)
50-
* Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
51-
* Added a new *tabGroupLabels* field to all Tabs models
52-
* Added a new *Witnesses* field to all Recipients models
53-
* Implemented models for Smart Sections feature
54-
* Implemented initial support of HMAC for DocuSign Connect
57+
- 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)
58+
- Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
59+
- Added a new *tabGroupLabels* field to all Tabs models
60+
- Added a new *Witnesses* field to all Recipients models
61+
- Implemented models for Smart Sections feature
62+
- Implemented initial support of HMAC for DocuSign Connect
5563
### Fixed
56-
* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
57-
* A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
58-
* Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
64+
- A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
65+
- A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
66+
- Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
5967

6068
## [v2.9.0] - eSignature API v18.4.02 - 2019-02-27
6169
### 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>3.1.0</version>
37+
<version>3.2.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 = '3.1.0'
5+
version = '3.2.0-RC1'
66

77
buildscript {
88
repositories {

pom.xml

Lines changed: 1 addition & 1 deletion
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>3.1.0</version>
7+
<version>3.2.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

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

Lines changed: 223 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
import com.docusign.esign.model.CustomField;
2525
import com.docusign.esign.model.CustomFields;
2626
import com.docusign.esign.model.ENoteConfiguration;
27+
import com.docusign.esign.model.EnvelopePurgeConfiguration;
2728
import com.docusign.esign.model.ErrorDetails;
29+
import com.docusign.esign.model.FavoriteTemplatesInfo;
2830
import com.docusign.esign.model.FileTypeList;
2931
import com.docusign.esign.model.NewAccountDefinition;
3032
import com.docusign.esign.model.NewAccountSummary;
@@ -1526,6 +1528,92 @@ public ENoteConfiguration getENoteConfiguration(String accountId) throws ApiExce
15261528
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
15271529
}
15281530

1531+
/**
1532+
* Select envelope purge configuration.
1533+
*
1534+
* @param accountId The external account number (int) or account ID Guid. (required)
1535+
* @return EnvelopePurgeConfiguration
1536+
* @throws ApiException if fails to make API call
1537+
*/
1538+
public EnvelopePurgeConfiguration getEnvelopePurgeConfiguration(String accountId) throws ApiException {
1539+
Object localVarPostBody = "{}";
1540+
1541+
// verify the required parameter 'accountId' is set
1542+
if (accountId == null) {
1543+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getEnvelopePurgeConfiguration");
1544+
}
1545+
1546+
// create path and map variables
1547+
String localVarPath = "/v2.1/accounts/{accountId}/settings/envelope_purge_configuration".replaceAll("\\{format\\}","json")
1548+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
1549+
1550+
// query params
1551+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
1552+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
1553+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
1554+
1555+
1556+
1557+
1558+
final String[] localVarAccepts = {
1559+
"application/json"
1560+
};
1561+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1562+
1563+
final String[] localVarContentTypes = {
1564+
1565+
};
1566+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1567+
1568+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
1569+
1570+
GenericType<EnvelopePurgeConfiguration> localVarReturnType = new GenericType<EnvelopePurgeConfiguration>() {};
1571+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
1572+
}
1573+
1574+
/**
1575+
* Retrieves the list of favorited templates for this caller
1576+
*
1577+
* @param accountId The external account number (int) or account ID Guid. (required)
1578+
* @return FavoriteTemplatesInfo
1579+
* @throws ApiException if fails to make API call
1580+
*/
1581+
public FavoriteTemplatesInfo getFavoriteTemplates(String accountId) throws ApiException {
1582+
Object localVarPostBody = "{}";
1583+
1584+
// verify the required parameter 'accountId' is set
1585+
if (accountId == null) {
1586+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getFavoriteTemplates");
1587+
}
1588+
1589+
// create path and map variables
1590+
String localVarPath = "/v2.1/accounts/{accountId}/favorite_templates".replaceAll("\\{format\\}","json")
1591+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
1592+
1593+
// query params
1594+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
1595+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
1596+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
1597+
1598+
1599+
1600+
1601+
final String[] localVarAccepts = {
1602+
"application/json"
1603+
};
1604+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1605+
1606+
final String[] localVarContentTypes = {
1607+
1608+
};
1609+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1610+
1611+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
1612+
1613+
GenericType<FavoriteTemplatesInfo> localVarReturnType = new GenericType<FavoriteTemplatesInfo>() {};
1614+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
1615+
}
1616+
15291617
/**
15301618
* Returns default user level settings for a specified account
15311619
*
@@ -2455,6 +2543,50 @@ public FileTypeList listUnsupportedFileTypes(String accountId) throws ApiExcepti
24552543
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
24562544
}
24572545

2546+
/**
2547+
* Unfavorite a template
2548+
*
2549+
* @param accountId The external account number (int) or account ID Guid. (required)
2550+
* @param favoriteTemplatesInfo (optional)
2551+
* @return FavoriteTemplatesInfo
2552+
* @throws ApiException if fails to make API call
2553+
*/
2554+
public FavoriteTemplatesInfo unFavoriteTemplate(String accountId, FavoriteTemplatesInfo favoriteTemplatesInfo) throws ApiException {
2555+
Object localVarPostBody = favoriteTemplatesInfo;
2556+
2557+
// verify the required parameter 'accountId' is set
2558+
if (accountId == null) {
2559+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling unFavoriteTemplate");
2560+
}
2561+
2562+
// create path and map variables
2563+
String localVarPath = "/v2.1/accounts/{accountId}/favorite_templates".replaceAll("\\{format\\}","json")
2564+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
2565+
2566+
// query params
2567+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
2568+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
2569+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
2570+
2571+
2572+
2573+
2574+
final String[] localVarAccepts = {
2575+
"application/json"
2576+
};
2577+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
2578+
2579+
final String[] localVarContentTypes = {
2580+
2581+
};
2582+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
2583+
2584+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
2585+
2586+
GenericType<FavoriteTemplatesInfo> localVarReturnType = new GenericType<FavoriteTemplatesInfo>() {};
2587+
return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
2588+
}
2589+
24582590
/**
24592591
* Modifies tab settings for specified account
24602592
*
@@ -2553,9 +2685,9 @@ public Brand updateBrand(String accountId, String brandId, Brand brand) throws A
25532685
/**
25542686
* Put one branding logo.
25552687
*
2556-
* @param accountId The external account number (int) or account ID Guid. (required)
2557-
* @param brandId The unique identifier of a brand. (required)
2558-
* @param logoType One of **Primary**, **Secondary** or **Email**. (required)
2688+
* @param accountId The external account number (int) or account ID GUID. (required)
2689+
* @param brandId The id of the brand. (required)
2690+
* @param logoType The type of logo. Valid values are: - &#x60;primary&#x60; - &#x60;secondary&#x60; - &#x60;email&#x60; (required)
25592691
* @param logoFileBytes Brand logo binary Stream. Supported formats: JPG, GIF, PNG. Maximum file size: 300 KB. Recommended dimensions: 296 x 76 pixels (larger images will be resized). Changes may take up to one hour to display in all places (required)
25602692
* @throws ApiException if fails to make API call
25612693
*/
@@ -2879,6 +3011,94 @@ public ENoteConfiguration updateENoteConfiguration(String accountId, ENoteConfig
28793011
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
28803012
}
28813013

3014+
/**
3015+
* Updates envelope purge configuration.
3016+
*
3017+
* @param accountId The external account number (int) or account ID Guid. (required)
3018+
* @param envelopePurgeConfiguration (optional)
3019+
* @return EnvelopePurgeConfiguration
3020+
* @throws ApiException if fails to make API call
3021+
*/
3022+
public EnvelopePurgeConfiguration updateEnvelopePurgeConfiguration(String accountId, EnvelopePurgeConfiguration envelopePurgeConfiguration) throws ApiException {
3023+
Object localVarPostBody = envelopePurgeConfiguration;
3024+
3025+
// verify the required parameter 'accountId' is set
3026+
if (accountId == null) {
3027+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateEnvelopePurgeConfiguration");
3028+
}
3029+
3030+
// create path and map variables
3031+
String localVarPath = "/v2.1/accounts/{accountId}/settings/envelope_purge_configuration".replaceAll("\\{format\\}","json")
3032+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
3033+
3034+
// query params
3035+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
3036+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
3037+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
3038+
3039+
3040+
3041+
3042+
final String[] localVarAccepts = {
3043+
"application/json"
3044+
};
3045+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
3046+
3047+
final String[] localVarContentTypes = {
3048+
3049+
};
3050+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
3051+
3052+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
3053+
3054+
GenericType<EnvelopePurgeConfiguration> localVarReturnType = new GenericType<EnvelopePurgeConfiguration>() {};
3055+
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
3056+
}
3057+
3058+
/**
3059+
* Favorites a template
3060+
*
3061+
* @param accountId The external account number (int) or account ID Guid. (required)
3062+
* @param favoriteTemplatesInfo (optional)
3063+
* @return FavoriteTemplatesInfo
3064+
* @throws ApiException if fails to make API call
3065+
*/
3066+
public FavoriteTemplatesInfo updateFavoriteTemplate(String accountId, FavoriteTemplatesInfo favoriteTemplatesInfo) throws ApiException {
3067+
Object localVarPostBody = favoriteTemplatesInfo;
3068+
3069+
// verify the required parameter 'accountId' is set
3070+
if (accountId == null) {
3071+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateFavoriteTemplate");
3072+
}
3073+
3074+
// create path and map variables
3075+
String localVarPath = "/v2.1/accounts/{accountId}/favorite_templates".replaceAll("\\{format\\}","json")
3076+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
3077+
3078+
// query params
3079+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
3080+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
3081+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
3082+
3083+
3084+
3085+
3086+
final String[] localVarAccepts = {
3087+
"application/json"
3088+
};
3089+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
3090+
3091+
final String[] localVarContentTypes = {
3092+
3093+
};
3094+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
3095+
3096+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
3097+
3098+
GenericType<FavoriteTemplatesInfo> localVarReturnType = new GenericType<FavoriteTemplatesInfo>() {};
3099+
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
3100+
}
3101+
28823102
/**
28833103
* Updates default user level settings for a specified account
28843104
*

0 commit comments

Comments
 (0)