Skip to content

Commit d2bda97

Browse files
authored
Merge pull request #87 from docusign/2.7.0
Version 2.7.0 of DocuSign Java SDK
2 parents de10ecf + b7126e8 commit d2bda97

37 files changed

+4946
-234
lines changed

CHANGELOG.md

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

4-
## [2.6.2] - eSignature API v18.1.02 - 7/3/2018
4+
## [v2.7.0] - eSignature API v18.3.00 - 2018-09-27
5+
### Deprecated
6+
- The ConfigureJwtAuthorizationFlowByKey method is now deprecated. Please use the RequestJWTUserToken method instead, which improves security by accepting the private key as a byte array or stream. (DCM-2763)
7+
### Changed
8+
- The base path for OAuth authentication is now a property of the ApiClient object.
9+
### Added
10+
- Added a new method, RequestJWTUserToken. This method is passed a user's client id, user id, requested scopes, and their private key in byte array format, performs JWT authentication for the specified user, and returns an access token. (DCM-2763)
11+
- Added a new method, RequestJWTApplicationToken. This is a reserved method that is only enabled by partners and resellers, which obtains an access token that makes requests on behalf of an application rather than a user. It is passed a user's client id, requested scopes, and a private key in byte array format, then returns an access token. (DCM-2763)
12+
- SetOauthBasePath, which can be used to set the OAuth base path for your ApiClient.  (DCM-2731)
13+
14+
## [v2.6.2] - eSignature API v18.1.02 - 2018-07-03
515
### Fixed
6-
* Fixed a problem that could cause the getUserInfo method to generate an exception when returning information about a user who was part of an organization. The method now returns same set of organization data as the [oauth/userinfo](https://developers.docusign.com/esign-rest-api/guides/authentication/user-info-endpoints) API endpoint method.
16+
- Fixed a problem that could cause the getUserInfo method to generate an exception when returning information about a user who was part of an organization. The method now returns same set of organization data as the [oauth/userinfo](https://developers.docusign.com/esign-rest-api/guides/authentication/user-info-endpoints) API endpoint method.
717

818
## [2.6.1] - 2018-06-06
919
### Security
@@ -112,4 +122,3 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
112122

113123
### Fixed
114124
- Several broken links in the README documentation.
115-

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can sign up for a free [developer sandbox](https://developers.docusign.com/)
88
Requirements
99
============
1010

11-
Java 1.7 or later.
11+
Java 1.7 or later.
1212

1313
Installation
1414
============
@@ -21,7 +21,7 @@ Add this dependency to your project's POM:
2121
<dependency>
2222
<groupId>com.docusign</groupId>
2323
<artifactId>docusign-esign-java</artifactId>
24-
<version>2.6.2</version>
24+
<version>2.7.0</version>
2525
</dependency>
2626
```
2727

@@ -30,7 +30,7 @@ Add this dependency to your project's POM:
3030
Add this dependency to your project's build file:
3131

3232
```groovy
33-
compile "com.docusign:docusign-esign-java:2.6.2"
33+
compile "com.docusign:docusign-esign-java:2.7.0"
3434
```
3535

3636
#### Dependencies
@@ -73,8 +73,8 @@ android {
7373

7474
This client is available through the following Java package managers:
7575

76-
- [Nexus Repository Manager](https://oss.sonatype.org/#nexus-search;quick~docusign-esign-java) (oss.sonatype.org). You can search for com.docusign or docusign-esign-java. The current version is 2.6.2.
77-
- [JFrog Bintray](https://bintray.com/dsdevcenter/maven/docusign-esign-java) (bintray.com). You can search for com.docusign or docusign-esign-java. The current version is 2.6.2.
76+
- [Nexus Repository Manager](https://oss.sonatype.org/#nexus-search;quick~docusign-esign-java) (oss.sonatype.org). You can search for com.docusign or docusign-esign-java. The current version is 2.7.0.
77+
- [JFrog Bintray](https://bintray.com/dsdevcenter/maven/docusign-esign-java) (bintray.com). You can search for com.docusign or docusign-esign-java. The current version is 2.7.0.
7878

7979

8080
Usage

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.6.2'
5+
version = '2.7.0'
66

77
buildscript {
88
repositories {

pom.xml

Lines changed: 1 addition & 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>2.6.2</version>
8+
<version>2.7.0</version>
99
<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>
1010
<url>https://www.docusign.com/developer-center</url>
1111

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.docusign.esign.client.Configuration;
88
import com.docusign.esign.client.Pair;
99

10+
import com.docusign.esign.model.AccountIdentityVerificationResponse;
1011
import com.docusign.esign.model.AccountInformation;
1112
import com.docusign.esign.model.AccountPasswordRules;
1213
import com.docusign.esign.model.AccountSettingsInformation;
@@ -779,6 +780,49 @@ public void deletePermissionProfile(String accountId, String permissionProfileId
779780

780781
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
781782
}
783+
784+
/**
785+
* Get the list of identity verification options for an account
786+
*
787+
* @param accountId The external account number (int) or account ID Guid. (required)
788+
* @return AccountIdentityVerificationResponse
789+
* @throws ApiException if fails to make API call
790+
*/
791+
public AccountIdentityVerificationResponse getAccountIdentityVerification(String accountId) throws ApiException {
792+
Object localVarPostBody = null;
793+
794+
// verify the required parameter 'accountId' is set
795+
if (accountId == null) {
796+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountIdentityVerification");
797+
}
798+
799+
// create path and map variables
800+
String localVarPath = "/v2/accounts/{accountId}/identity_verification".replaceAll("\\{format\\}","json")
801+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
802+
803+
// query params
804+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
805+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
806+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
807+
808+
809+
810+
811+
final String[] localVarAccepts = {
812+
"application/json"
813+
};
814+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
815+
816+
final String[] localVarContentTypes = {
817+
818+
};
819+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
820+
821+
String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
822+
823+
GenericType<AccountIdentityVerificationResponse> localVarReturnType = new GenericType<AccountIdentityVerificationResponse>() {};
824+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
825+
}
782826
/// <summary>
783827
/// Retrieves the account information for the specified account. Retrieves the account information for the specified account. **Response** The &#x60;canUpgrade&#x60; property contains is a Boolean that indicates whether the account can be upgraded through the API.
784828
/// </summary>

0 commit comments

Comments
 (0)