Skip to content

Commit 9a798e5

Browse files
author
Majid Mallis
committed
Java SDK release of the latest API version
1 parent 064966e commit 9a798e5

File tree

853 files changed

+16675
-6045
lines changed

Some content is hidden

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

853 files changed

+16675
-6045
lines changed

README.md

100755100644
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# DocuSign Java Client
1+
# DocuSign Java Client
22

33
You can sign up for a free [developer sandbox](https://www.docusign.com/developer-center).
44

55
Requirements
66
============
77

8-
Java 1.7 or later.
8+
Java 1.6 or later.
99

1010
Installation
1111
============
@@ -18,7 +18,7 @@ Add this dependency to your project's POM:
1818
<dependency>
1919
<groupId>com.docusign</groupId>
2020
<artifactId>docusign-esign-java</artifactId>
21-
<version>2.0.1</version>
21+
<version>2.0.2</version>
2222
</dependency>
2323
```
2424

@@ -27,7 +27,7 @@ Add this dependency to your project's POM:
2727
Add this dependency to your project's build file:
2828

2929
```groovy
30-
compile "com.docusign:docusign-esign-java:2.0.1"
30+
compile "com.docusign:docusign-esign-java:2.0.2"
3131
```
3232

3333
#### Note for Android Developers
@@ -53,14 +53,14 @@ android {
5353

5454
This client is available through the following Java package managers:
5555

56-
- [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.0.1.
57-
- [JFrog Bintray](https://bintray.com/search?query=docusign-esign-java) (bintray.com). You can search for com.docusign or docusign-esign-java. The current version is 2.0.1.
56+
- [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.0.2.
57+
- [JFrog Bintray](https://bintray.com/search?query=docusign-esign-java) (bintray.com). You can search for com.docusign or docusign-esign-java. The current version is 2.0.2.
5858

5959
### Others
6060

6161
Or you can manually download and add the following JARs to your project:
6262

63-
* The [docusign-esign-java-2.0.1](/target/docusign-esign-java-2.0.1.jar) JAR.
63+
* The [docusign-esign-java-2.0.2](/target/docusign-esign-java-2.0.2.jar) JAR.
6464
* The [Dependency JARs](/target/lib) in /lib folder.
6565

6666

@@ -116,20 +116,20 @@ public class DocuSignExample {
116116
tRole.setRoleName("[ROLE_NAME]");
117117
tRole.setName("[SIGNER_NAME]");
118118
tRole.setEmail("[SIGNER_EMAIL]");
119-
119+
120120
// create a list of template roles and add our newly created role
121121
List<TemplateRole> templateRolesList = new ArrayList<TemplateRole>();
122122
templateRolesList.add(tRole);
123-
123+
124124
// assign template role(s) to the envelope
125125
envDef.setTemplateRoles(templateRolesList);
126126

127127
// send the envelope by setting |status| to "sent". To save as a draft set to "created"
128128
envDef.setStatus("sent");
129-
129+
130130
// instantiate a new EnvelopesApi object
131131
EnvelopesApi envelopesApi = new EnvelopesApi();
132-
132+
133133
// call the createEnvelope() API
134134
EnvelopeSummary envelopeSummary = envelopesApi.createEnvelope(accountId, envDef);
135135
}
@@ -163,4 +163,4 @@ The DocuSign Java Client is licensed under the following [License](LICENSE).
163163
Notes
164164
=======
165165

166-
This version of the client library does not implement all of the DocuSign REST API methods. The current client omits methods in the Accounts, Billing, Cloud Storage, Connect, Groups (Branding), and Templates (Bulk Recipients) categories. The client's methods support the core set of use cases that most integrations will encounter. For a complete list of omitted endpoints, see [Omitted Endpoints](./omitted_endpoints.md).
166+
This version of the client library does not implement all of the DocuSign REST API methods. The current client omits methods in the Accounts, Billing, Cloud Storage, Connect, Groups (Branding), and Templates (Bulk Recipients) categories. The client's methods support the core set of use cases that most integrations will encounter. For a complete list of omitted endpoints, see [Omitted Endpoints](./omitted_endpoints.md).

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.0.1'
5+
version = '2.0.2'
66

77
buildscript {
88
repositories {

omitted_endpoints.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The following endpoints are not currently included in the client libraries.
4545
| DELETE | {vx}/accounts/{accountId}/connect/failures/{failureId} |
4646
| GET | {vx}/accounts/{accountId}/connect/{connectId} |
4747
| DELETE | {vx}/accounts/{accountId}/connect/{connectId} |
48+
| GET | {vx}/accounts/{accountId}/connect/{connectId}/users |
4849
| GET | {vx}/accounts/{accountId}/connect |
4950
| PUT | {vx}/accounts/{accountId}/connect |
5051
| POST | {vx}/accounts/{accountId}/connect |

pom.xml

Lines changed: 1 addition & 6 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>2.0.1</version>
8+
<version>2.0.2</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

@@ -191,11 +191,6 @@
191191
<artifactId>swagger-annotations</artifactId>
192192
<version>${swagger-annotations-version}</version>
193193
</dependency>
194-
<dependency>
195-
<groupId>javax.annotation</groupId>
196-
<artifactId>jsr250-api</artifactId>
197-
<version>1.0</version>
198-
</dependency>
199194

200195
<!-- HTTP client: jersey-client -->
201196
<dependency>

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

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,36 @@ public void setApiClient(ApiClient apiClient) {
3939
public class LoginOptions
4040
{
4141

42+
private String loginSettings = null;
43+
44+
private String embedAccountIdGuid = null;
45+
4246
private String apiPassword = null;
4347

4448
private String includeAccountIdGuid = null;
4549

46-
private String loginSettings = null;
4750

51+
/*
52+
* Determines whether login settings are returned in the response.\n\nValid Values:\n\n* all - All the login settings are returned. \n* none - no login settings are returned.
53+
*/
54+
public void setLoginSettings(String loginSettings) {
55+
this.loginSettings = loginSettings;
56+
}
57+
58+
public String getLoginSettings() {
59+
return this.loginSettings;
60+
}
61+
62+
/*
63+
*
64+
*/
65+
public void setEmbedAccountIdGuid(String embedAccountIdGuid) {
66+
this.embedAccountIdGuid = embedAccountIdGuid;
67+
}
68+
69+
public String getEmbedAccountIdGuid() {
70+
return this.embedAccountIdGuid;
71+
}
4872

4973
/*
5074
* When set to **true**, shows the account API password in the response.
@@ -68,17 +92,6 @@ public String getIncludeAccountIdGuid() {
6892
return this.includeAccountIdGuid;
6993
}
7094

71-
/*
72-
* Determines whether login settings are returned in the response.\n\nValid Values:\n\n* all - All the login settings are returned. \n* none - no login settings are returned.
73-
*/
74-
public void setLoginSettings(String loginSettings) {
75-
this.loginSettings = loginSettings;
76-
}
77-
78-
public String getLoginSettings() {
79-
return this.loginSettings;
80-
}
81-
8295
}
8396

8497
/**
@@ -112,12 +125,14 @@ public LoginInformation login(AuthenticationApi.LoginOptions options) throws Api
112125

113126
if (options != null) {
114127

128+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "login_settings", options.loginSettings));
129+
130+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "embed_account_id_guid", options.embedAccountIdGuid));
131+
115132
localVarQueryParams.addAll(apiClient.parameterToPairs("", "api_password", options.apiPassword));
116133

117134
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_account_id_guid", options.includeAccountIdGuid));
118135

119-
localVarQueryParams.addAll(apiClient.parameterToPairs("", "login_settings", options.loginSettings));
120-
121136
}
122137

123138

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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.ViewUrl;
11+
import com.docusign.esign.model.ErrorDetails;
12+
import com.docusign.esign.model.ReturnUrlRequest;
13+
14+
15+
public class DefaultApi {
16+
private ApiClient apiClient;
17+
18+
public DefaultApi() {
19+
this(Configuration.getDefaultApiClient());
20+
}
21+
22+
public DefaultApi(ApiClient apiClient) {
23+
this.apiClient = apiClient;
24+
}
25+
26+
public ApiClient getApiClient() {
27+
return apiClient;
28+
}
29+
30+
public void setApiClient(ApiClient apiClient) {
31+
this.apiClient = apiClient;
32+
}
33+
34+
35+
36+
37+
38+
/**
39+
* Provides a URL to start an edit view of the Template UI
40+
*
41+
* @param accountId The external account number (int) or account ID Guid.
42+
* @param templateId The ID of the template being accessed.
43+
44+
* DefaultApi.TemplateEditViewOptions Options for modifying the method behavior.
45+
* @return ViewUrl
46+
* @throws ApiException if fails to make API call
47+
*/
48+
public ViewUrl templateEditView(String accountId, String templateId, ReturnUrlRequest returnUrlRequest) throws ApiException {
49+
Object localVarPostBody = returnUrlRequest;
50+
51+
// verify the required parameter 'accountId' is set
52+
if (accountId == null) {
53+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling templateEditView");
54+
}
55+
56+
// verify the required parameter 'templateId' is set
57+
if (templateId == null) {
58+
throw new ApiException(400, "Missing the required parameter 'templateId' when calling templateEditView");
59+
}
60+
61+
// create path and map variables
62+
String localVarPath = "/v2/accounts/{accountId}/templates/{templateId}/views/edit".replaceAll("\\{format\\}","json")
63+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
64+
.replaceAll("\\{" + "templateId" + "\\}", apiClient.escapeString(templateId.toString()));
65+
66+
// query params
67+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
68+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
69+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
70+
71+
72+
73+
74+
75+
76+
77+
final String[] localVarAccepts = {
78+
"application/json"
79+
};
80+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
81+
82+
final String[] localVarContentTypes = {
83+
84+
};
85+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
86+
87+
String[] localVarAuthNames = new String[] { };
88+
89+
90+
GenericType<ViewUrl> localVarReturnType = new GenericType<ViewUrl>() {};
91+
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
92+
93+
}
94+
95+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public ApiRequestLogsResult listRequestLogs(DiagnosticsApi.ListRequestLogsOption
356356

357357
/**
358358
* Enables or disables API request logging for troubleshooting.
359-
* Enables or disables API request logging for troubleshooting.\n\nWhen enabled (`apiRequestLogging` is set to true), REST API requests and responses for the user are added to a log. A log can have up to 50 requests/responses and the current number of log entries can be determined by getting the settings. Logging is automatically disabled when the log limit of 50 is reached.\n\nYou can call [ML:GetRequestLog] or [ML:GetRequestLogs] to download the log files (individually or as a zip file). Call [ML:DeleteRequestLogs] to clear the log by deleting current entries.\n\nPrivate information, such as passwords and integrator key information, which is normally located in the call header is omitted from the request/response log.\n\n#### Note: API request logging only captures requests from the authenticated user. Any call that does not authenticate the user and resolve a userId isn&#39;t logged. Meaning that login_information, NewAccounts, or other distributor-credential calls are not logged.\n
359+
* Enables or disables API request logging for troubleshooting.\n\nWhen enabled (`apiRequestLogging` is set to true), REST API requests and responses for the user are added to a log. A log can have up to 50 requests/responses and the current number of log entries can be determined by getting the settings. Logging is automatically disabled when the log limit of 50 is reached.\n\nYou can call [ML:GetRequestLog] or [ML:GetRequestLogs] to download the log files (individually or as a zip file). Call [ML:DeleteRequestLogs] to clear the log by deleting current entries.\n\nPrivate information, such as passwords and integrator key information, which is normally located in the call header is omitted from the request/response log.\n\n###### Note: API request logging only captures requests from the authenticated user. Any call that does not authenticate the user and resolve a userId isn&#39;t logged. Meaning that login_information, NewAccounts, or other distributor-credential calls are not logged.\n
360360
361361
* DiagnosticsApi.UpdateRequestLogSettingsOptions Options for modifying the method behavior.
362362
* @return DiagnosticsSettingsInformation

0 commit comments

Comments
 (0)