diff --git a/CHANGELOG.md b/CHANGELOG.md
index a12d2ee8..374d0c5a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
# DocuSign Java Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
+## [v6.9.0] - eSignature API v2.1-26.3.01.02 - 2026-09-30
+### Changed
+- Added support for version v2.1-26.3.01.02 of the DocuSign ESignature API.
+- Updated the SDK release version.
+
## [v6.8.0] - eSignature API v2.1-25.4.01.00 - 2026-08-17
### Changed
diff --git a/README.md b/README.md
index f59227ed..cd75dee6 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ This client SDK is provided as open source, which enables you to customize its f
com.docusign
docusign-esign-java
- 6.8.0
+ 6.9.0
```
8. If your project is still open, restart Eclipse.
diff --git a/pom.xml b/pom.xml
index 1d1f5eaf..1e8a4124 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
docusign-esign-java
jar
docusign-esign-java
- 6.8.0
+ 6.9.0
https://developers.docusign.com
The official Docusign eSignature JAVA client is based on version 2.1 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.
diff --git a/src/main/java/com/docusign/esign/api/AccountsApi.java b/src/main/java/com/docusign/esign/api/AccountsApi.java
index 06d23364..2210b3ae 100644
--- a/src/main/java/com/docusign/esign/api/AccountsApi.java
+++ b/src/main/java/com/docusign/esign/api/AccountsApi.java
@@ -598,7 +598,7 @@ public ApiResponse createUserAuthorizationWithHttpInfo(Strin
}
/**
- * Creates ot updates user authorizations.
+ * Creates or updates user authorizations.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
@@ -612,7 +612,7 @@ public UserAuthorizationsResponse createUserAuthorizations(String accountId, Str
}
/**
- * Creates ot updates user authorizations
+ * Creates or updates user authorizations
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
@@ -1516,7 +1516,7 @@ public ApiResponse deleteUserAuthorizationWithHttpInfo(String accountId,
}
/**
- * Creates ot updates user authorizations.
+ * Deletes user authorizations.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
@@ -1530,7 +1530,7 @@ public UserAuthorizationsDeleteResponse deleteUserAuthorizations(String accountI
}
/**
- * Creates ot updates user authorizations
+ * Deletes user authorizations
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
@@ -2211,6 +2211,8 @@ public class GetAgentUserAuthorizationsOptions
private String includeClosedUsers = null;
private String permissions = null;
private String startPosition = null;
+ private String taskSource = null;
+ private String taskType = null;
private String userNameSubstring = null;
/**
@@ -2309,6 +2311,38 @@ public String getStartPosition() {
return this.startPosition;
}
+ /**
+ * setTaskSource method.
+ */
+ public void setTaskSource(String taskSource) {
+ this.taskSource = taskSource;
+ }
+
+ /**
+ * getTaskSource method.
+ *
+ * @return String
+ */
+ public String getTaskSource() {
+ return this.taskSource;
+ }
+
+ /**
+ * setTaskType method.
+ */
+ public void setTaskType(String taskType) {
+ this.taskType = taskType;
+ }
+
+ /**
+ * getTaskType method.
+ *
+ * @return String
+ */
+ public String getTaskType() {
+ return this.taskType;
+ }
+
/**
* setUserNameSubstring method.
*/
@@ -2396,6 +2430,10 @@ public ApiResponse getAgentUserAuthorizationsWithHttpInfo(S
localVarQueryParams.addAll(apiClient.parameterToPair("permissions", options.permissions));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("start_position", options.startPosition));
+ }if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("task_source", options.taskSource));
+ }if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("task_type", options.taskType));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("user_name_substring", options.userNameSubstring));
}
@@ -3704,6 +3742,8 @@ public class GetPrincipalUserAuthorizationsOptions
private String includeClosedUsers = null;
private String permissions = null;
private String startPosition = null;
+ private String taskSource = null;
+ private String taskType = null;
private String userNameSubstring = null;
/**
@@ -3802,6 +3842,38 @@ public String getStartPosition() {
return this.startPosition;
}
+ /**
+ * setTaskSource method.
+ */
+ public void setTaskSource(String taskSource) {
+ this.taskSource = taskSource;
+ }
+
+ /**
+ * getTaskSource method.
+ *
+ * @return String
+ */
+ public String getTaskSource() {
+ return this.taskSource;
+ }
+
+ /**
+ * setTaskType method.
+ */
+ public void setTaskType(String taskType) {
+ this.taskType = taskType;
+ }
+
+ /**
+ * getTaskType method.
+ *
+ * @return String
+ */
+ public String getTaskType() {
+ return this.taskType;
+ }
+
/**
* setUserNameSubstring method.
*/
@@ -3889,6 +3961,10 @@ public ApiResponse getPrincipalUserAuthorizationsWithHttpIn
localVarQueryParams.addAll(apiClient.parameterToPair("permissions", options.permissions));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("start_position", options.startPosition));
+ }if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("task_source", options.taskSource));
+ }if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("task_type", options.taskType));
}if (options != null) {
localVarQueryParams.addAll(apiClient.parameterToPair("user_name_substring", options.userNameSubstring));
}
@@ -4506,108 +4582,6 @@ public ApiResponse listPermissionsWithHttpInfo(St
PermissionProfileInformation localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
- ///
- /// Gets recipient names associated with an email address. Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
- ///
-
- /**
- * ListRecipientNamesByEmailOptions Class.
- *
- **/
- public class ListRecipientNamesByEmailOptions
- {
- private String email = null;
-
- /**
- * setEmail method.
- */
- public void setEmail(String email) {
- this.email = email;
- }
-
- /**
- * getEmail method.
- *
- * @return String
- */
- public String getEmail() {
- return this.email;
- }
- }
-
- /**
- * Gets recipient names associated with an email address..
- * Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
- * @param accountId The external account number (int) or account ID Guid. (required)
- * @return RecipientNamesResponse
- */
- public RecipientNamesResponse listRecipientNamesByEmail(String accountId) throws ApiException {
- return listRecipientNamesByEmail(accountId, null);
- }
-
- /**
- * Gets recipient names associated with an email address..
- * Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
- * @param accountId The external account number (int) or account ID Guid. (required)
- * @param options for modifying the method behavior.
- * @return RecipientNamesResponse
- * @throws ApiException if fails to make API call
- */
- public RecipientNamesResponse listRecipientNamesByEmail(String accountId, AccountsApi.ListRecipientNamesByEmailOptions options) throws ApiException {
- ApiResponse localVarResponse = listRecipientNamesByEmailWithHttpInfo(accountId, options);
- return localVarResponse.getData();
- }
-
- /**
- * Gets recipient names associated with an email address.
- * Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
- * @param accountId The external account number (int) or account ID Guid. (required)
- * @param options for modifying the method behavior.
- * @return RecipientNamesResponse
- * @throws ApiException if fails to make API call
- */
- public ApiResponse listRecipientNamesByEmailWithHttpInfo(String accountId, AccountsApi.ListRecipientNamesByEmailOptions options) throws ApiException {
- Object localVarPostBody = "{}";
-
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling listRecipientNamesByEmail");
- }
-
- // create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/recipient_names"
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
-
- // query params
- java.util.List localVarQueryParams = new java.util.ArrayList();
- java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
- java.util.Map localVarHeaderParams = new java.util.HashMap();
- java.util.Map localVarFormParams = new java.util.HashMap();
-
- if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPair("email", options.email));
- }
-
-
-
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { "docusignAccessCode" };
-
- GenericType localVarReturnType = new GenericType() {};
- RecipientNamesResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
- }
/**
* Gets account settings information..
diff --git a/src/main/java/com/docusign/esign/api/ConnectApi.java b/src/main/java/com/docusign/esign/api/ConnectApi.java
index c0a56977..8e429745 100644
--- a/src/main/java/com/docusign/esign/api/ConnectApi.java
+++ b/src/main/java/com/docusign/esign/api/ConnectApi.java
@@ -178,6 +178,62 @@ public ApiResponse createConnectOAuthConfigWithHttpInfo(Str
return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
+ /**
+ * Generates a new connect HMAC Secret..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void createConnectSecret(String accountId) throws ApiException {
+ createConnectSecretWithHttpInfo(accountId);
+ }
+
+ /**
+ * Generates a new connect HMAC Secret.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createConnectSecretWithHttpInfo(String accountId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createConnectSecret");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/connect/secret"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), null);
+ }
+
/**
* Deletes the specified connect configuration..
* Deletes the specified DocuSign Connect configuration. ###### Note: Connect must be enabled for your account to use this function.
@@ -282,6 +338,70 @@ public ApiResponse deleteConnectOAuthConfigWithHttpInfo(String accountId
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), null);
+ }
+
+ /**
+ * Delete the connect HMAC Secret for AccountID.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param keyId (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void deleteConnectSecret(String accountId, String keyId) throws ApiException {
+ deleteConnectSecretWithHttpInfo(accountId, keyId);
+ }
+
+ /**
+ * Delete the connect HMAC Secret for AccountID
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param keyId (required)
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse deleteConnectSecretWithHttpInfo(String accountId, String keyId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteConnectSecret");
+ }
+
+ // verify the required parameter 'keyId' is set
+ if (keyId == null) {
+ throw new ApiException(400, "Missing the required parameter 'keyId' when calling deleteConnectSecret");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/connect/secret/{keyId}"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "keyId" + "\\}", apiClient.escapeString(keyId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
final String[] localVarAccepts = {
"application/json"
};
@@ -881,6 +1001,62 @@ public ApiResponse getConnectOAuthConfigWithHttpInfo(String
ConnectOAuthConfig localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
+
+ /**
+ * Get the connect HMAC Secrets for AccountID.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void getConnectSecret(String accountId) throws ApiException {
+ getConnectSecretWithHttpInfo(accountId);
+ }
+
+ /**
+ * Get the connect HMAC Secrets for AccountID
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getConnectSecretWithHttpInfo(String accountId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling getConnectSecret");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/connect/secret"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), null);
+ }
///
/// Get the specified Connect log entry. Retrieves the specified Connect log entry for your account. ###### Note: The `enableLog` setting in the Connect configuration must be set to true to enable logging. If logging is not enabled, then no log entries are recorded.
///
diff --git a/src/main/java/com/docusign/esign/api/EnvelopesApi.java b/src/main/java/com/docusign/esign/api/EnvelopesApi.java
index 7cf39d5c..39c28d19 100644
--- a/src/main/java/com/docusign/esign/api/EnvelopesApi.java
+++ b/src/main/java/com/docusign/esign/api/EnvelopesApi.java
@@ -291,6 +291,68 @@ public ApiResponse applyTemplateToDocumentWithHttpInfo(St
return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
+ /**
+ * Add metadata in the form of GenAndSend to existing envelopes in docusign..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeGenAndSend (optional)
+ * @return EnvelopeArchiveSummary
+ * @throws ApiException if fails to make API call
+ */
+ public EnvelopeArchiveSummary createArchiveMetadataEnvelopes(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ ApiResponse localVarResponse = createArchiveMetadataEnvelopesWithHttpInfo(accountId, envelopeGenAndSend);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Add metadata in the form of GenAndSend to existing envelopes in docusign.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeGenAndSend (optional)
+ * @return EnvelopeArchiveSummary
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createArchiveMetadataEnvelopesWithHttpInfo(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ Object localVarPostBody = envelopeGenAndSend;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createArchiveMetadataEnvelopes");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/archive_metadata"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ EnvelopeArchiveSummary localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+
/**
* Initiate a new ChunkedUpload..
* This method initiates a new chunked upload with the first part of the content.
@@ -1453,37 +1515,45 @@ public ApiResponse createEnvelopeWorkflowStepDefinitionWithHttpIn
}
/**
- * Submits a batch of historical envelopes for republish to an adhoc config..
+ * Creates new envelopes shares.
*
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param connectHistoricalEnvelopeRepublish (optional)
- * @return EnvelopePublishTransaction
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param envelopesSharesRequest (optional)
+ * @return EnvelopesSharesResponse
* @throws ApiException if fails to make API call
*/
- public EnvelopePublishTransaction createHistoricalEnvelopePublishTransaction(String accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish) throws ApiException {
- ApiResponse localVarResponse = createHistoricalEnvelopePublishTransactionWithHttpInfo(accountId, connectHistoricalEnvelopeRepublish);
+ public EnvelopesSharesResponse createEnvelopesShares(String accountId, String envelopeId, EnvelopesSharesRequest envelopesSharesRequest) throws ApiException {
+ ApiResponse localVarResponse = createEnvelopesSharesWithHttpInfo(accountId, envelopeId, envelopesSharesRequest);
return localVarResponse.getData();
}
/**
- * Submits a batch of historical envelopes for republish to an adhoc config.
+ * Creates new envelopes shares
*
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param connectHistoricalEnvelopeRepublish (optional)
- * @return EnvelopePublishTransaction
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param envelopesSharesRequest (optional)
+ * @return EnvelopesSharesResponse
* @throws ApiException if fails to make API call
*/
- public ApiResponse createHistoricalEnvelopePublishTransactionWithHttpInfo(String accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish) throws ApiException {
- Object localVarPostBody = connectHistoricalEnvelopeRepublish;
+ public ApiResponse createEnvelopesSharesWithHttpInfo(String accountId, String envelopeId, EnvelopesSharesRequest envelopesSharesRequest) throws ApiException {
+ Object localVarPostBody = envelopesSharesRequest;
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling createHistoricalEnvelopePublishTransaction");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createEnvelopesShares");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createEnvelopesShares");
}
// create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/connect/envelopes/publish/historical"
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/shares"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -1509,51 +1579,43 @@ public ApiResponse createHistoricalEnvelopePublishT
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- EnvelopePublishTransaction localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ GenericType localVarReturnType = new GenericType() {};
+ EnvelopesSharesResponse localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
/**
- * Lock an envelope..
- * Locks the specified envelope, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the envelope. ###### Note: Users must have envelope locking capability enabled to use this function (userSetting `canLockEnvelopes` must be set to true for the user).
+ * Generates the document using DocuSign Spring CM template then returns the html content of the document..
+ *
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param lockRequest (optional)
- * @return LockInformation
+ * @param envelopeGenAndSend (optional)
+ * @return byte[]
* @throws ApiException if fails to make API call
*/
- public LockInformation createLock(String accountId, String envelopeId, LockRequest lockRequest) throws ApiException {
- ApiResponse localVarResponse = createLockWithHttpInfo(accountId, envelopeId, lockRequest);
+ public byte[] createGenAndArchiveEnvelopes(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ ApiResponse localVarResponse = createGenAndArchiveEnvelopesWithHttpInfo(accountId, envelopeGenAndSend);
return localVarResponse.getData();
}
/**
- * Lock an envelope.
- * Locks the specified envelope, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the envelope. ###### Note: Users must have envelope locking capability enabled to use this function (userSetting `canLockEnvelopes` must be set to true for the user).
+ * Generates the document using DocuSign Spring CM template then returns the html content of the document.
+ *
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param lockRequest (optional)
- * @return LockInformation
+ * @param envelopeGenAndSend (optional)
+ * @return byte[]
* @throws ApiException if fails to make API call
*/
- public ApiResponse createLockWithHttpInfo(String accountId, String envelopeId, LockRequest lockRequest) throws ApiException {
- Object localVarPostBody = lockRequest;
+ public ApiResponse createGenAndArchiveEnvelopesWithHttpInfo(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ Object localVarPostBody = envelopeGenAndSend;
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling createLock");
- }
-
- // verify the required parameter 'envelopeId' is set
- if (envelopeId == null) {
- throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createLock");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createGenAndArchiveEnvelopes");
}
// create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/lock"
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
- .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/generate_and_archive"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -1568,7 +1630,7 @@ public ApiResponse createLockWithHttpInfo(String accountId, St
final String[] localVarAccepts = {
- "application/json"
+ "text/plain"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
@@ -1579,93 +1641,43 @@ public ApiResponse createLockWithHttpInfo(String accountId, St
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- LockInformation localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
- }
- ///
- /// Adds one or more recipients to an envelope. Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
- ///
-
- /**
- * CreateRecipientOptions Class.
- *
- **/
- public class CreateRecipientOptions
- {
- private String resendEnvelope = null;
-
- /**
- * setResendEnvelope method.
- */
- public void setResendEnvelope(String resendEnvelope) {
- this.resendEnvelope = resendEnvelope;
- }
-
- /**
- * getResendEnvelope method.
- *
- * @return String
- */
- public String getResendEnvelope() {
- return this.resendEnvelope;
- }
- }
-
- /**
- * Adds one or more recipients to an envelope..
- * Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
- * @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipients (optional)
- * @return Recipients
- */
- public Recipients createRecipient(String accountId, String envelopeId, Recipients recipients) throws ApiException {
- return createRecipient(accountId, envelopeId, recipients, null);
+ GenericType localVarReturnType = new GenericType() {};
+ byte[] localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
/**
- * Adds one or more recipients to an envelope..
- * Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
+ * Generates the document using DocuSign Spring CM template then returns the content of the document based on the return document type..
+ *
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipients (optional)
- * @param options for modifying the method behavior.
- * @return Recipients
+ * @param envelopeGenAndSend (optional)
+ * @return byte[]
* @throws ApiException if fails to make API call
*/
- public Recipients createRecipient(String accountId, String envelopeId, Recipients recipients, EnvelopesApi.CreateRecipientOptions options) throws ApiException {
- ApiResponse localVarResponse = createRecipientWithHttpInfo(accountId, envelopeId, recipients, options);
+ public byte[] createGenAndConvertEnvelopes(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ ApiResponse localVarResponse = createGenAndConvertEnvelopesWithHttpInfo(accountId, envelopeGenAndSend);
return localVarResponse.getData();
}
/**
- * Adds one or more recipients to an envelope.
- * Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
+ * Generates the document using DocuSign Spring CM template then returns the content of the document based on the return document type.
+ *
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipients (optional)
- * @param options for modifying the method behavior.
- * @return Recipients
+ * @param envelopeGenAndSend (optional)
+ * @return byte[]
* @throws ApiException if fails to make API call
*/
- public ApiResponse createRecipientWithHttpInfo(String accountId, String envelopeId, Recipients recipients, EnvelopesApi.CreateRecipientOptions options) throws ApiException {
- Object localVarPostBody = recipients;
+ public ApiResponse createGenAndConvertEnvelopesWithHttpInfo(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ Object localVarPostBody = envelopeGenAndSend;
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipient");
- }
-
- // verify the required parameter 'envelopeId' is set
- if (envelopeId == null) {
- throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createRecipient");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createGenAndConvertEnvelopes");
}
// create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients"
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
- .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/generate_and_convert"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -1673,16 +1685,14 @@ public ApiResponse createRecipientWithHttpInfo(String accountId, St
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
- if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPair("resend_envelope", options.resendEnvelope));
- }
+
final String[] localVarAccepts = {
- "application/json"
+ "text/plain"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
@@ -1693,57 +1703,43 @@ public ApiResponse createRecipientWithHttpInfo(String accountId, St
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- Recipients localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ GenericType localVarReturnType = new GenericType() {};
+ byte[] localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
/**
- * Provides a link to access the Identity manual review related to a recipient..
- * This method returns the URL of the page that allows a sender to [manually review](https://support.docusign.com/en/guides/ndse-user-guide-send-documents-with-id-verification) the ID of a recipient.
+ * Generates multiple document using DocuSign Spring CM template then returns the content of the document based on the return document type..
+ *
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipientId The ID of the recipient being accessed. (required)
- * @return ViewUrl
+ * @param envelopeGenAndSend (optional)
+ * @return GeneratedDocumentsResult
* @throws ApiException if fails to make API call
*/
- public ViewUrl createRecipientManualReviewView(String accountId, String envelopeId, String recipientId) throws ApiException {
- ApiResponse localVarResponse = createRecipientManualReviewViewWithHttpInfo(accountId, envelopeId, recipientId);
+ public GeneratedDocumentsResult createGenAndConvertMultiEnvelopes(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ ApiResponse localVarResponse = createGenAndConvertMultiEnvelopesWithHttpInfo(accountId, envelopeGenAndSend);
return localVarResponse.getData();
}
/**
- * Provides a link to access the Identity manual review related to a recipient.
- * This method returns the URL of the page that allows a sender to [manually review](https://support.docusign.com/en/guides/ndse-user-guide-send-documents-with-id-verification) the ID of a recipient.
+ * Generates multiple document using DocuSign Spring CM template then returns the content of the document based on the return document type.
+ *
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipientId The ID of the recipient being accessed. (required)
- * @return ViewUrl
+ * @param envelopeGenAndSend (optional)
+ * @return GeneratedDocumentsResult
* @throws ApiException if fails to make API call
*/
- public ApiResponse createRecipientManualReviewViewWithHttpInfo(String accountId, String envelopeId, String recipientId) throws ApiException {
- Object localVarPostBody = "{}";
+ public ApiResponse createGenAndConvertMultiEnvelopesWithHttpInfo(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ Object localVarPostBody = envelopeGenAndSend;
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipientManualReviewView");
- }
-
- // verify the required parameter 'envelopeId' is set
- if (envelopeId == null) {
- throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createRecipientManualReviewView");
- }
-
- // verify the required parameter 'recipientId' is set
- if (recipientId == null) {
- throw new ApiException(400, "Missing the required parameter 'recipientId' when calling createRecipientManualReviewView");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createGenAndConvertMultiEnvelopes");
}
// create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/views/identity_manual_review"
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
- .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
- .replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/generate_and_convert_multi"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -1769,57 +1765,43 @@ public ApiResponse createRecipientManualReviewViewWithHttpInfo(String
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- ViewUrl localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ GenericType localVarReturnType = new GenericType() {};
+ GeneratedDocumentsResult localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
/**
- * Returns a link to access to the identity events stored in the proof service related to this recipient..
+ * Generates the documents for an envelope using DocuSign Spring CM then creates the envelope..
*
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipientId The ID of the recipient being accessed. (required)
- * @return IdEvidenceViewLink
+ * @param envelopeGenAndSend (optional)
+ * @return EnvelopeSummary
* @throws ApiException if fails to make API call
*/
- public IdEvidenceViewLink createRecipientProofFileLink(String accountId, String envelopeId, String recipientId) throws ApiException {
- ApiResponse localVarResponse = createRecipientProofFileLinkWithHttpInfo(accountId, envelopeId, recipientId);
+ public EnvelopeSummary createGenAndSendEnvelopes(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ ApiResponse localVarResponse = createGenAndSendEnvelopesWithHttpInfo(accountId, envelopeGenAndSend);
return localVarResponse.getData();
}
/**
- * Returns a link to access to the identity events stored in the proof service related to this recipient.
+ * Generates the documents for an envelope using DocuSign Spring CM then creates the envelope.
*
* @param accountId The external account number (int) or account ID Guid. (required)
- * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
- * @param recipientId The ID of the recipient being accessed. (required)
- * @return IdEvidenceViewLink
+ * @param envelopeGenAndSend (optional)
+ * @return EnvelopeSummary
* @throws ApiException if fails to make API call
*/
- public ApiResponse createRecipientProofFileLinkWithHttpInfo(String accountId, String envelopeId, String recipientId) throws ApiException {
- Object localVarPostBody = "{}";
+ public ApiResponse createGenAndSendEnvelopesWithHttpInfo(String accountId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ Object localVarPostBody = envelopeGenAndSend;
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipientProofFileLink");
- }
-
- // verify the required parameter 'envelopeId' is set
- if (envelopeId == null) {
- throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createRecipientProofFileLink");
- }
-
- // verify the required parameter 'recipientId' is set
- if (recipientId == null) {
- throw new ApiException(400, "Missing the required parameter 'recipientId' when calling createRecipientProofFileLink");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createGenAndSendEnvelopes");
}
// create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof"
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
- .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
- .replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/generate_and_send"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -1845,9 +1827,477 @@ public ApiResponse createRecipientProofFileLinkWithHttpInfo
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- IdEvidenceViewLink localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ GenericType localVarReturnType = new GenericType() {};
+ EnvelopeSummary localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+
+ /**
+ * Submits a batch of historical envelopes for republish to an adhoc config..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param connectHistoricalEnvelopeRepublish (optional)
+ * @return EnvelopePublishTransaction
+ * @throws ApiException if fails to make API call
+ */
+ public EnvelopePublishTransaction createHistoricalEnvelopePublishTransaction(String accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish) throws ApiException {
+ ApiResponse localVarResponse = createHistoricalEnvelopePublishTransactionWithHttpInfo(accountId, connectHistoricalEnvelopeRepublish);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Submits a batch of historical envelopes for republish to an adhoc config.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param connectHistoricalEnvelopeRepublish (optional)
+ * @return EnvelopePublishTransaction
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createHistoricalEnvelopePublishTransactionWithHttpInfo(String accountId, ConnectHistoricalEnvelopeRepublish connectHistoricalEnvelopeRepublish) throws ApiException {
+ Object localVarPostBody = connectHistoricalEnvelopeRepublish;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createHistoricalEnvelopePublishTransaction");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/connect/envelopes/publish/historical"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ EnvelopePublishTransaction localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+
+ /**
+ * Add metadata in the form of GenAndSend to existing envelopes in docusign..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param envelopeGenAndSend (optional)
+ * @return EnvelopeSummary
+ * @throws ApiException if fails to make API call
+ */
+ public EnvelopeSummary createLinkMetadataEnvelopes(String accountId, String envelopeId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ ApiResponse localVarResponse = createLinkMetadataEnvelopesWithHttpInfo(accountId, envelopeId, envelopeGenAndSend);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Add metadata in the form of GenAndSend to existing envelopes in docusign.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param envelopeGenAndSend (optional)
+ * @return EnvelopeSummary
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createLinkMetadataEnvelopesWithHttpInfo(String accountId, String envelopeId, EnvelopeGenAndSend envelopeGenAndSend) throws ApiException {
+ Object localVarPostBody = envelopeGenAndSend;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createLinkMetadataEnvelopes");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createLinkMetadataEnvelopes");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/archive_metadata"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ EnvelopeSummary localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+
+ /**
+ * Lock an envelope..
+ * Locks the specified envelope, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the envelope. ###### Note: Users must have envelope locking capability enabled to use this function (userSetting `canLockEnvelopes` must be set to true for the user).
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param lockRequest (optional)
+ * @return LockInformation
+ * @throws ApiException if fails to make API call
+ */
+ public LockInformation createLock(String accountId, String envelopeId, LockRequest lockRequest) throws ApiException {
+ ApiResponse localVarResponse = createLockWithHttpInfo(accountId, envelopeId, lockRequest);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Lock an envelope.
+ * Locks the specified envelope, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the envelope. ###### Note: Users must have envelope locking capability enabled to use this function (userSetting `canLockEnvelopes` must be set to true for the user).
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param lockRequest (optional)
+ * @return LockInformation
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createLockWithHttpInfo(String accountId, String envelopeId, LockRequest lockRequest) throws ApiException {
+ Object localVarPostBody = lockRequest;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createLock");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createLock");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/lock"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ LockInformation localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+ ///
+ /// Adds one or more recipients to an envelope. Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
+ ///
+
+ /**
+ * CreateRecipientOptions Class.
+ *
+ **/
+ public class CreateRecipientOptions
+ {
+ private String resendEnvelope = null;
+
+ /**
+ * setResendEnvelope method.
+ */
+ public void setResendEnvelope(String resendEnvelope) {
+ this.resendEnvelope = resendEnvelope;
+ }
+
+ /**
+ * getResendEnvelope method.
+ *
+ * @return String
+ */
+ public String getResendEnvelope() {
+ return this.resendEnvelope;
+ }
+ }
+
+ /**
+ * Adds one or more recipients to an envelope..
+ * Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipients (optional)
+ * @return Recipients
+ */
+ public Recipients createRecipient(String accountId, String envelopeId, Recipients recipients) throws ApiException {
+ return createRecipient(accountId, envelopeId, recipients, null);
+ }
+
+ /**
+ * Adds one or more recipients to an envelope..
+ * Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipients (optional)
+ * @param options for modifying the method behavior.
+ * @return Recipients
+ * @throws ApiException if fails to make API call
+ */
+ public Recipients createRecipient(String accountId, String envelopeId, Recipients recipients, EnvelopesApi.CreateRecipientOptions options) throws ApiException {
+ ApiResponse localVarResponse = createRecipientWithHttpInfo(accountId, envelopeId, recipients, options);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Adds one or more recipients to an envelope.
+ * Adds one or more recipients to an envelope. For an in process envelope, one that has been sent and has not been completed or voided, an email is sent to a new recipient when they are reached in the routing order. If the new recipient's routing order is before or the same as the envelope's next recipient, an email is only sent if the optional `resend_envelope` query string is set to **true**.
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipients (optional)
+ * @param options for modifying the method behavior.
+ * @return Recipients
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createRecipientWithHttpInfo(String accountId, String envelopeId, Recipients recipients, EnvelopesApi.CreateRecipientOptions options) throws ApiException {
+ Object localVarPostBody = recipients;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipient");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createRecipient");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+ if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("resend_envelope", options.resendEnvelope));
+ }
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ Recipients localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+
+ /**
+ * Provides a link to access the Identity manual review related to a recipient..
+ * This method returns the URL of the page that allows a sender to [manually review](https://support.docusign.com/en/guides/ndse-user-guide-send-documents-with-id-verification) the ID of a recipient.
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipientId The ID of the recipient being accessed. (required)
+ * @return ViewUrl
+ * @throws ApiException if fails to make API call
+ */
+ public ViewUrl createRecipientManualReviewView(String accountId, String envelopeId, String recipientId) throws ApiException {
+ ApiResponse localVarResponse = createRecipientManualReviewViewWithHttpInfo(accountId, envelopeId, recipientId);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Provides a link to access the Identity manual review related to a recipient.
+ * This method returns the URL of the page that allows a sender to [manually review](https://support.docusign.com/en/guides/ndse-user-guide-send-documents-with-id-verification) the ID of a recipient.
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipientId The ID of the recipient being accessed. (required)
+ * @return ViewUrl
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createRecipientManualReviewViewWithHttpInfo(String accountId, String envelopeId, String recipientId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipientManualReviewView");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createRecipientManualReviewView");
+ }
+
+ // verify the required parameter 'recipientId' is set
+ if (recipientId == null) {
+ throw new ApiException(400, "Missing the required parameter 'recipientId' when calling createRecipientManualReviewView");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/views/identity_manual_review"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
+ .replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ ViewUrl localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
+ }
+
+ /**
+ * Returns a link to access to the identity events stored in the proof service related to this recipient..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipientId The ID of the recipient being accessed. (required)
+ * @return IdEvidenceViewLink
+ * @throws ApiException if fails to make API call
+ */
+ public IdEvidenceViewLink createRecipientProofFileLink(String accountId, String envelopeId, String recipientId) throws ApiException {
+ ApiResponse localVarResponse = createRecipientProofFileLinkWithHttpInfo(accountId, envelopeId, recipientId);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Returns a link to access to the identity events stored in the proof service related to this recipient.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param recipientId The ID of the recipient being accessed. (required)
+ * @return IdEvidenceViewLink
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createRecipientProofFileLinkWithHttpInfo(String accountId, String envelopeId, String recipientId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipientProofFileLink");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling createRecipientProofFileLink");
+ }
+
+ // verify the required parameter 'recipientId' is set
+ if (recipientId == null) {
+ throw new ApiException(400, "Missing the required parameter 'recipientId' when calling createRecipientProofFileLink");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
+ .replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ IdEvidenceViewLink localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
}
///
/// Returns a resource token to get access to the identity events stored in the proof service related to this recipient. Creates a resource token for a sender. This token allows a sender to return identification data for a recipient using the [ID Evidence API](/docs/idevidence-api/).
@@ -3270,19 +3720,157 @@ public ApiResponse deleteEnvelopeWorkflowStepDefinitionWithHttpInfo(Stri
// verify the required parameter 'envelopeId' is set
if (envelopeId == null) {
- throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling deleteEnvelopeWorkflowStepDefinition");
- }
-
- // verify the required parameter 'workflowStepId' is set
- if (workflowStepId == null) {
- throw new ApiException(400, "Missing the required parameter 'workflowStepId' when calling deleteEnvelopeWorkflowStepDefinition");
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling deleteEnvelopeWorkflowStepDefinition");
+ }
+
+ // verify the required parameter 'workflowStepId' is set
+ if (workflowStepId == null) {
+ throw new ApiException(400, "Missing the required parameter 'workflowStepId' when calling deleteEnvelopeWorkflowStepDefinition");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/workflow/steps/{workflowStepId}"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
+ .replaceAll("\\{" + "workflowStepId" + "\\}", apiClient.escapeString(workflowStepId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), null);
+ }
+
+ /**
+ * Deletes a single envelope share.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param shareId (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void deleteEnvelopesShare(String accountId, String envelopeId, String shareId) throws ApiException {
+ deleteEnvelopesShareWithHttpInfo(accountId, envelopeId, shareId);
+ }
+
+ /**
+ * Deletes a single envelope share
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param shareId (required)
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse deleteEnvelopesShareWithHttpInfo(String accountId, String envelopeId, String shareId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteEnvelopesShare");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling deleteEnvelopesShare");
+ }
+
+ // verify the required parameter 'shareId' is set
+ if (shareId == null) {
+ throw new ApiException(400, "Missing the required parameter 'shareId' when calling deleteEnvelopesShare");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/shares/{shareId}"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
+ .replaceAll("\\{" + "shareId" + "\\}", apiClient.escapeString(shareId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap();
+
+
+
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), null);
+ }
+
+ /**
+ * Deletes existing envelopes shares.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param envelopesSharesRequest (optional)
+ * @throws ApiException if fails to make API call
+ */
+ public void deleteEnvelopesShares(String accountId, String envelopeId, EnvelopesSharesRequest envelopesSharesRequest) throws ApiException {
+ deleteEnvelopesSharesWithHttpInfo(accountId, envelopeId, envelopesSharesRequest);
+ }
+
+ /**
+ * Deletes existing envelopes shares
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
+ * @param envelopesSharesRequest (optional)
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse deleteEnvelopesSharesWithHttpInfo(String accountId, String envelopeId, EnvelopesSharesRequest envelopesSharesRequest) throws ApiException {
+ Object localVarPostBody = envelopesSharesRequest;
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteEnvelopesShares");
+ }
+
+ // verify the required parameter 'envelopeId' is set
+ if (envelopeId == null) {
+ throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling deleteEnvelopesShares");
}
// create path and map variables
- String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/workflow/steps/{workflowStepId}"
+ String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/shares"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
- .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
- .replaceAll("\\{" + "workflowStepId" + "\\}", apiClient.escapeString(workflowStepId.toString()));
+ .replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -3956,6 +4544,74 @@ public ApiResponse deleteTemplatesFromDocumentWithHttpInfo(String accoun
return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(), null);
}
+ /**
+ * Return generated html document from archive..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param documentId The ID of the document being accessed. (required)
+ * @return byte[]
+ * @throws ApiException if fails to make API call
+ */
+ public byte[] getArchiveDocument(String accountId, String documentId) throws ApiException {
+ ApiResponse localVarResponse = getArchiveDocumentWithHttpInfo(accountId, documentId);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Return generated html document from archive.
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param documentId The ID of the document being accessed. (required)
+ * @return byte[]
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getArchiveDocumentWithHttpInfo(String accountId, String documentId) throws ApiException {
+ Object localVarPostBody = "{}";
+
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling getArchiveDocument");
+ }
+
+ // verify the required parameter 'documentId' is set
+ if (documentId == null) {
+ throw new ApiException(400, "Missing the required parameter 'documentId' when calling getArchiveDocument");
+ }
+
+ // create path and map variables
+ String localVarPath = "/v2.1/accounts/{accountId}/archivedocuments/{documentId}"
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
+ .replaceAll("\\{" + "documentId" + "\\}", apiClient.escapeString(documentId.toString()));
+
+ // query params
+ java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
+ java.util.Map localVarHeaderParams = new java.util.HashMap();
+ java.util.Map localVarFormParams = new java.util.HashMap