Skip to content

Commit baf8ca5

Browse files
asif-docusignroot
andauthored
Version 5.0.0-RC1-v2.1-24.1.01.00 release (#278)
Co-authored-by: root <root@devcenteradmin.docusigntest.com>
1 parent 3ee55a3 commit baf8ca5

23 files changed

+3008
-219
lines changed

CHANGELOG.md

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

4+
## [v5.0.0-RC1] - eSignature API v2.1-24.1.01.00 - 2024-05-02
5+
### Changed
6+
- Added support for version v2.1-24.1.01.00 of the DocuSign ESignature API.
7+
- Updated the SDK release version.
8+
49
## [v4.6.0] - eSignature API v2.1-23.4.02.00 - 2024-04-30
510
### BREAKING CHANGES
611
- Modified the default basePath to `DEMO_REST_BASEPATH`.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>docusign-esign-java</artifactId>
66
<packaging>jar</packaging>
77
<name>docusign-esign-java</name>
8-
<version>4.6.0</version>
8+
<version>5.0.0-RC1</version>
99
<url>https://developers.docusign.com</url>
1010
<description>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.</description>
1111

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

Lines changed: 60 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -794,12 +794,12 @@ public ApiResponse<Tabs > createDocumentTabsWithHttpInfo(String accountId, Strin
794794
* Returns a URL that allows you to embed the edit view of the DocuSign UI in your applications. This is a one-time use login token that allows the user to be placed into the DocuSign editing view. Upon sending completion, the user is returned to the return URL provided by the API application. Important: iFrames should not be used for embedded operations on mobile devices due to screen space issues. For iOS devices DocuSign recommends using a WebView.
795795
* @param accountId The external account number (int) or account ID Guid. (required)
796796
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
797-
* @param returnUrlRequest (optional)
797+
* @param envelopeViewRequest (optional)
798798
* @return ViewUrl
799799
* @throws ApiException if fails to make API call
800800
*/
801-
public ViewUrl createEditView(String accountId, String envelopeId, ReturnUrlRequest returnUrlRequest) throws ApiException {
802-
ApiResponse<ViewUrl> localVarResponse = createEditViewWithHttpInfo(accountId, envelopeId, returnUrlRequest);
801+
public ViewUrl createEditView(String accountId, String envelopeId, EnvelopeViewRequest envelopeViewRequest) throws ApiException {
802+
ApiResponse<ViewUrl> localVarResponse = createEditViewWithHttpInfo(accountId, envelopeId, envelopeViewRequest);
803803
return localVarResponse.getData();
804804
}
805805

@@ -808,12 +808,12 @@ public ViewUrl createEditView(String accountId, String envelopeId, ReturnUrlRequ
808808
* Returns a URL that allows you to embed the edit view of the DocuSign UI in your applications. This is a one-time use login token that allows the user to be placed into the DocuSign editing view. Upon sending completion, the user is returned to the return URL provided by the API application. Important: iFrames should not be used for embedded operations on mobile devices due to screen space issues. For iOS devices DocuSign recommends using a WebView.
809809
* @param accountId The external account number (int) or account ID Guid. (required)
810810
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
811-
* @param returnUrlRequest (optional)
811+
* @param envelopeViewRequest (optional)
812812
* @return ViewUrl
813813
* @throws ApiException if fails to make API call
814814
*/
815-
public ApiResponse<ViewUrl > createEditViewWithHttpInfo(String accountId, String envelopeId, ReturnUrlRequest returnUrlRequest) throws ApiException {
816-
Object localVarPostBody = returnUrlRequest;
815+
public ApiResponse<ViewUrl > createEditViewWithHttpInfo(String accountId, String envelopeId, EnvelopeViewRequest envelopeViewRequest) throws ApiException {
816+
Object localVarPostBody = envelopeViewRequest;
817817

818818
// verify the required parameter 'accountId' is set
819819
if (accountId == null) {
@@ -1849,40 +1849,75 @@ public ApiResponse<IdEvidenceViewLink > createRecipientProofFileLinkWithHttpInfo
18491849
IdEvidenceViewLink localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
18501850
return new ApiResponse<IdEvidenceViewLink>(apiClient.getStatusCode(), apiClient.getResponseHeaders(), localVarResponse);
18511851
}
1852+
/// <summary>
1853+
/// 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/).
1854+
/// </summary>
1855+
1856+
/**
1857+
* CreateRecipientProofFileResourceTokenOptions Class.
1858+
*
1859+
**/
1860+
public class CreateRecipientProofFileResourceTokenOptions
1861+
{
1862+
private String tokenScopes = null;
1863+
1864+
/**
1865+
* setTokenScopes method.
1866+
*/
1867+
public void setTokenScopes(String tokenScopes) {
1868+
this.tokenScopes = tokenScopes;
1869+
}
1870+
1871+
/**
1872+
* getTokenScopes method.
1873+
*
1874+
* @return String
1875+
*/
1876+
public String getTokenScopes() {
1877+
return this.tokenScopes;
1878+
}
1879+
}
1880+
1881+
/**
1882+
* Returns a resource token to get access to the identity events stored in the proof service related to this recipient..
1883+
* 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/).
1884+
* @param accountId The external account number (int) or account ID Guid. (required)
1885+
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
1886+
* @param recipientId The ID of the recipient being accessed. (required)
1887+
* @return IdEvidenceResourceToken
1888+
*/
1889+
public IdEvidenceResourceToken createRecipientProofFileResourceToken(String accountId, String envelopeId, String recipientId) throws ApiException {
1890+
return createRecipientProofFileResourceToken(accountId, envelopeId, recipientId, null);
1891+
}
18521892

18531893
/**
18541894
* Returns a resource token to get access to the identity events stored in the proof service related to this recipient..
18551895
* 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/).
1856-
* @param tokenScopes (required)
18571896
* @param accountId The external account number (int) or account ID Guid. (required)
18581897
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
18591898
* @param recipientId The ID of the recipient being accessed. (required)
1899+
* @param options for modifying the method behavior.
18601900
* @return IdEvidenceResourceToken
18611901
* @throws ApiException if fails to make API call
18621902
*/
1863-
public IdEvidenceResourceToken createRecipientProofFileResourceToken(String tokenScopes, String accountId, String envelopeId, String recipientId) throws ApiException {
1864-
ApiResponse<IdEvidenceResourceToken> localVarResponse = createRecipientProofFileResourceTokenWithHttpInfo(tokenScopes, accountId, envelopeId, recipientId);
1903+
public IdEvidenceResourceToken createRecipientProofFileResourceToken(String accountId, String envelopeId, String recipientId, EnvelopesApi.CreateRecipientProofFileResourceTokenOptions options) throws ApiException {
1904+
ApiResponse<IdEvidenceResourceToken> localVarResponse = createRecipientProofFileResourceTokenWithHttpInfo(accountId, envelopeId, recipientId, options);
18651905
return localVarResponse.getData();
18661906
}
18671907

18681908
/**
18691909
* Returns a resource token to get access to the identity events stored in the proof service related to this recipient.
18701910
* 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/).
1871-
* @param tokenScopes (required)
18721911
* @param accountId The external account number (int) or account ID Guid. (required)
18731912
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
18741913
* @param recipientId The ID of the recipient being accessed. (required)
1914+
* @param options for modifying the method behavior.
18751915
* @return IdEvidenceResourceToken
18761916
* @throws ApiException if fails to make API call
18771917
*/
1878-
public ApiResponse<IdEvidenceResourceToken > createRecipientProofFileResourceTokenWithHttpInfo(String tokenScopes, String accountId, String envelopeId, String recipientId) throws ApiException {
1918+
public ApiResponse<IdEvidenceResourceToken > createRecipientProofFileResourceTokenWithHttpInfo(String accountId, String envelopeId, String recipientId, EnvelopesApi.CreateRecipientProofFileResourceTokenOptions options) throws ApiException {
18791919
Object localVarPostBody = "{}";
18801920

1881-
// verify the required parameter 'tokenScopes' is set
1882-
if (tokenScopes == null) {
1883-
throw new ApiException(400, "Missing the required parameter 'tokenScopes' when calling createRecipientProofFileResourceToken");
1884-
}
1885-
18861921
// verify the required parameter 'accountId' is set
18871922
if (accountId == null) {
18881923
throw new ApiException(400, "Missing the required parameter 'accountId' when calling createRecipientProofFileResourceToken");
@@ -1900,7 +1935,6 @@ public ApiResponse<IdEvidenceResourceToken > createRecipientProofFileResourceTok
19001935

19011936
// create path and map variables
19021937
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/identity_proof_token"
1903-
.replaceAll("\\{" + "token_scopes" + "\\}", apiClient.escapeString(tokenScopes.toString()))
19041938
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
19051939
.replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
19061940
.replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
@@ -1911,7 +1945,9 @@ public ApiResponse<IdEvidenceResourceToken > createRecipientProofFileResourceTok
19111945
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
19121946
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
19131947

1914-
1948+
if (options != null) {
1949+
localVarQueryParams.addAll(apiClient.parameterToPair("token_scopes", options.tokenScopes));
1950+
}
19151951

19161952

19171953

@@ -2079,12 +2115,12 @@ public ApiResponse<DocumentHtmlDefinitions > createResponsiveHtmlPreviewWithHttp
20792115
* Returns a URL that allows you to embed the sender view of the DocuSign UI in your applications. This is a one-time use login token that allows the user to be placed into the DocuSign sending view. Upon sending completion, the user is returned to the return URL provided by the API application. Important: iFrames should not be used for embedded operations on mobile devices due to screen space issues. For iOS devices DocuSign recommends using a WebView.
20802116
* @param accountId The external account number (int) or account ID Guid. (required)
20812117
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
2082-
* @param returnUrlRequest (optional)
2118+
* @param envelopeViewRequest (optional)
20832119
* @return ViewUrl
20842120
* @throws ApiException if fails to make API call
20852121
*/
2086-
public ViewUrl createSenderView(String accountId, String envelopeId, ReturnUrlRequest returnUrlRequest) throws ApiException {
2087-
ApiResponse<ViewUrl> localVarResponse = createSenderViewWithHttpInfo(accountId, envelopeId, returnUrlRequest);
2122+
public ViewUrl createSenderView(String accountId, String envelopeId, EnvelopeViewRequest envelopeViewRequest) throws ApiException {
2123+
ApiResponse<ViewUrl> localVarResponse = createSenderViewWithHttpInfo(accountId, envelopeId, envelopeViewRequest);
20882124
return localVarResponse.getData();
20892125
}
20902126

@@ -2093,12 +2129,12 @@ public ViewUrl createSenderView(String accountId, String envelopeId, ReturnUrlRe
20932129
* Returns a URL that allows you to embed the sender view of the DocuSign UI in your applications. This is a one-time use login token that allows the user to be placed into the DocuSign sending view. Upon sending completion, the user is returned to the return URL provided by the API application. Important: iFrames should not be used for embedded operations on mobile devices due to screen space issues. For iOS devices DocuSign recommends using a WebView.
20942130
* @param accountId The external account number (int) or account ID Guid. (required)
20952131
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
2096-
* @param returnUrlRequest (optional)
2132+
* @param envelopeViewRequest (optional)
20972133
* @return ViewUrl
20982134
* @throws ApiException if fails to make API call
20992135
*/
2100-
public ApiResponse<ViewUrl > createSenderViewWithHttpInfo(String accountId, String envelopeId, ReturnUrlRequest returnUrlRequest) throws ApiException {
2101-
Object localVarPostBody = returnUrlRequest;
2136+
public ApiResponse<ViewUrl > createSenderViewWithHttpInfo(String accountId, String envelopeId, EnvelopeViewRequest envelopeViewRequest) throws ApiException {
2137+
Object localVarPostBody = envelopeViewRequest;
21022138

21032139
// verify the required parameter 'accountId' is set
21042140
if (accountId == null) {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ public ApiResponse<DocumentFieldsInformation > createDocumentFieldsWithHttpInfo(
207207
* This method returns a URL for starting an edit view of a template that uses the DocuSign Template UI.
208208
* @param accountId The external account number (int) or account ID Guid. (required)
209209
* @param templateId The ID of the template being accessed. (required)
210-
* @param returnUrlRequest (optional)
210+
* @param templateViewRequest (optional)
211211
* @return ViewUrl
212212
* @throws ApiException if fails to make API call
213213
*/
214-
public ViewUrl createEditView(String accountId, String templateId, ReturnUrlRequest returnUrlRequest) throws ApiException {
215-
ApiResponse<ViewUrl> localVarResponse = createEditViewWithHttpInfo(accountId, templateId, returnUrlRequest);
214+
public ViewUrl createEditView(String accountId, String templateId, TemplateViewRequest templateViewRequest) throws ApiException {
215+
ApiResponse<ViewUrl> localVarResponse = createEditViewWithHttpInfo(accountId, templateId, templateViewRequest);
216216
return localVarResponse.getData();
217217
}
218218

@@ -221,12 +221,12 @@ public ViewUrl createEditView(String accountId, String templateId, ReturnUrlRequ
221221
* This method returns a URL for starting an edit view of a template that uses the DocuSign Template UI.
222222
* @param accountId The external account number (int) or account ID Guid. (required)
223223
* @param templateId The ID of the template being accessed. (required)
224-
* @param returnUrlRequest (optional)
224+
* @param templateViewRequest (optional)
225225
* @return ViewUrl
226226
* @throws ApiException if fails to make API call
227227
*/
228-
public ApiResponse<ViewUrl > createEditViewWithHttpInfo(String accountId, String templateId, ReturnUrlRequest returnUrlRequest) throws ApiException {
229-
Object localVarPostBody = returnUrlRequest;
228+
public ApiResponse<ViewUrl > createEditViewWithHttpInfo(String accountId, String templateId, TemplateViewRequest templateViewRequest) throws ApiException {
229+
Object localVarPostBody = templateViewRequest;
230230

231231
// verify the required parameter 'accountId' is set
232232
if (accountId == null) {

src/main/java/com/docusign/esign/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public ApiClient() {
9696
String javaVersion = System.getProperty("java.version");
9797

9898
// Set default User-Agent.
99-
setUserAgent("Swagger-Codegen/v2.1/4.6.0/Java/" + javaVersion);
99+
setUserAgent("Swagger-Codegen/v2.1/5.0.0-RC1/Java/" + javaVersion);
100100

101101
// Setup authentications (key: authentication name, value: authentication).
102102
authentications = new HashMap<String, Authentication>();

0 commit comments

Comments
 (0)