Skip to content

Commit edb10e2

Browse files
committed
Version 2.13.0-RC1
## [v2.13.0-RC1] - eSignature API v2-19.4.01 - 2019-12-26 ### Changed - The SDK now supports version 19.4.01 of the DocuSign eSignature v2 API. - SDK Release Version updated.
1 parent e6f3b7f commit edb10e2

24 files changed

+982
-187
lines changed

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+
## [v2.13.0-RC1] - eSignature API v2-19.4.01 - 2019-12-26
5+
### Changed
6+
- The SDK now supports version 19.4.01 of the DocuSign eSignature v2 API.
7+
- SDK Release Version updated.
8+
49
## [v2.12.0] - eSignature API v2-19.2.02 - 2019-10-08
510
### Changed
611
- The SDK now supports version 19.2.02 of the DocuSign eSignature v2 API.

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.12.0</version>
37+
<version>2.13.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.12.0'
5+
version = '2.13.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>2.12.0</version>
7+
<version>2.13.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: 81 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.docusign.esign.model.AccountIdentityVerificationResponse;
1111
import com.docusign.esign.model.AccountInformation;
1212
import com.docusign.esign.model.AccountPasswordRules;
13+
import com.docusign.esign.model.AccountSeals;
1314
import com.docusign.esign.model.AccountSettingsInformation;
1415
import com.docusign.esign.model.AccountSharedAccess;
1516
import com.docusign.esign.model.AccountSignatureProviders;
@@ -685,15 +686,44 @@ public void deleteENoteConfiguration(String accountId) throws ApiException {
685686

686687
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
687688
}
689+
/// <summary>
690+
/// Deletes a permissions profile within the specified account.
691+
/// </summary>
692+
public class DeletePermissionProfileOptions
693+
{
694+
private String moveUsersTo = null;
695+
/*
696+
*
697+
*/
698+
public void setMoveUsersTo(String moveUsersTo) {
699+
this.moveUsersTo = moveUsersTo;
700+
}
701+
702+
public String getMoveUsersTo() {
703+
return this.moveUsersTo;
704+
}
705+
}
706+
707+
/**
708+
* Deletes a permissions profile within the specified account.
709+
*
710+
* @param accountId The external account number (int) or account ID Guid. (required)
711+
* @param permissionProfileId (required)
712+
* @return void
713+
*/
714+
public void deletePermissionProfile(String accountId, String permissionProfileId) throws ApiException {
715+
deletePermissionProfile(accountId, permissionProfileId, null);
716+
}
688717

689718
/**
690719
* Deletes a permissions profile within the specified account.
691720
*
692721
* @param accountId The external account number (int) or account ID Guid. (required)
693722
* @param permissionProfileId (required)
723+
* @param options for modifying the method behavior.
694724
* @throws ApiException if fails to make API call
695725
*/
696-
public void deletePermissionProfile(String accountId, String permissionProfileId) throws ApiException {
726+
public void deletePermissionProfile(String accountId, String permissionProfileId, AccountsApi.DeletePermissionProfileOptions options) throws ApiException {
697727
Object localVarPostBody = "{}";
698728

699729
// verify the required parameter 'accountId' is set
@@ -716,7 +746,9 @@ public void deletePermissionProfile(String accountId, String permissionProfileId
716746
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
717747
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
718748

719-
749+
if (options != null) {
750+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "move_users_to", options.moveUsersTo));
751+
}
720752

721753

722754
final String[] localVarAccepts = {
@@ -1363,7 +1395,7 @@ public void getBrandResourcesByContentType(String accountId, String brandId, Str
13631395
* Gets the Electronic Record and Signature Disclosure.
13641396
* Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, for the requested envelope recipient. This might be different than the current account disclosure depending on account settings, such as branding, and when the account disclosure was last updated. An optional query string can be included to return the language for the disclosure.
13651397
* @param accountId The external account number (int) or account ID Guid. (required)
1366-
* @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), 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)
1398+
* @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)
13671399
* @return ConsumerDisclosure
13681400
* @throws ApiException if fails to make API call
13691401
*/
@@ -1415,7 +1447,7 @@ public class GetConsumerDisclosureDefaultOptions
14151447
{
14161448
private String langCode = null;
14171449
/*
1418-
* Specifies the language used in the response. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), 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 &#x60;browser&#x60; to automatically detect the browser language being used by the viewer and display the disclosure in that language.
1450+
* Specifies 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 &#x60;browser&#x60; to automatically detect the browser language being used by the viewer and display the disclosure in that language.
14191451
*/
14201452
public void setLangCode(String langCode) {
14211453
this.langCode = langCode;
@@ -1721,6 +1753,49 @@ public ProvisioningInformation getProvisioning() throws ApiException {
17211753
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
17221754
}
17231755

1756+
/**
1757+
* Returns Account available seals for specified account.
1758+
*
1759+
* @param accountId The external account number (int) or account ID Guid. (required)
1760+
* @return AccountSeals
1761+
* @throws ApiException if fails to make API call
1762+
*/
1763+
public AccountSeals getSealProviders(String accountId) throws ApiException {
1764+
Object localVarPostBody = "{}";
1765+
1766+
// verify the required parameter 'accountId' is set
1767+
if (accountId == null) {
1768+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getSealProviders");
1769+
}
1770+
1771+
// create path and map variables
1772+
String localVarPath = "/v2/accounts/{accountId}/seals".replaceAll("\\{format\\}","json")
1773+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
1774+
1775+
// query params
1776+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
1777+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
1778+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
1779+
1780+
1781+
1782+
1783+
final String[] localVarAccepts = {
1784+
"application/json"
1785+
};
1786+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1787+
1788+
final String[] localVarContentTypes = {
1789+
1790+
};
1791+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1792+
1793+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
1794+
1795+
GenericType<AccountSeals> localVarReturnType = new GenericType<AccountSeals>() {};
1796+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
1797+
}
1798+
17241799
/**
17251800
* Gets list of supported languages for recipient language setting.
17261801
*
@@ -2646,7 +2721,7 @@ public String getIncludeMetadata() {
26462721
* Update Consumer Disclosure.
26472722
*
26482723
* @param accountId The external account number (int) or account ID Guid. (required)
2649-
* @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), 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)
2724+
* @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)
26502725
* @param consumerDisclosure (optional)
26512726
* @return ConsumerDisclosure
26522727
*/
@@ -2658,7 +2733,7 @@ public ConsumerDisclosure updateConsumerDisclosure(String accountId, String lang
26582733
* Update Consumer Disclosure.
26592734
*
26602735
* @param accountId The external account number (int) or account ID Guid. (required)
2661-
* @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), 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)
2736+
* @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)
26622737
* @param consumerDisclosure (optional)
26632738
* @param options for modifying the method behavior.
26642739
* @return ConsumerDisclosure

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

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -274,42 +274,13 @@ 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-
/// <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-
/**
277+
/**
296278
* Revokes an authorization token.
297279
* Revokes an OAuth2 authorization server token. After the revocation is complete, a caller must re-authenticate to restore access.
298280
* @throws ApiException if fails to make API call
299281
*/
300282
public void revokeOAuthToken() throws ApiException {
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;
283+
Object localVarPostBody = "{}";
313284

314285
// create path and map variables
315286
String localVarPath = "/v2/oauth2/revoke".replaceAll("\\{format\\}","json");
@@ -319,18 +290,16 @@ public void revokeOAuthToken(AuthenticationApi.RevokeOAuthTokenOptions options)
319290
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
320291
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
321292

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

327296
final String[] localVarAccepts = {
328297
"application/json"
329298
};
330299
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
331300

332301
final String[] localVarContentTypes = {
333-
"application/x-www-form-urlencoded"
302+
334303
};
335304
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
336305

0 commit comments

Comments
 (0)