Skip to content

Commit 04d61b8

Browse files
authored
Merge pull request #113 from docusign/3.0.0-RC1
Version 3.0.0-RC1 (contains breaking changes for some users)
2 parents ba18f58 + 2991ce3 commit 04d61b8

File tree

498 files changed

+71753
-2114
lines changed

Some content is hidden

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

498 files changed

+71753
-2114
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+
## [v3.0.0-RC1] - eSignature API v2.1-19.1.02 - 2019-06-07
5+
### Changed
6+
- The SDK now supports version v2.1-19.1.02 of the DocuSign eSignature API.
7+
- SDK Release Version updated.
8+
49
## [v2.10.1] - Jackson library patch - 2019-05-23
510
### Security
611
- [CVE-2019-12086](https://nvd.nist.gov/vuln/detail/CVE-2019-12086).

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
[![Build status][travis-image]][travis-url]
44
[![Maven Central status][maven-image]][maven-url]
55

6+
<p><h3>&#x26A0;&#xFE0F; The current release is <code>the first version to use <a href=“https://developers.docusign.com/esign-rest-api“>eSignature API v2.1</a></code>. The GA version will be released soon.</h3></p><p><h3>All previous releases use eSignature API v2 and they no longer will be actively maintained.</p>
7+
68
## Requirements
79

810
- Java 1.7+
@@ -34,7 +36,7 @@ Note: DocuSign uses **Eclipse** with **Maven** for testing purposes.
3436
<dependency>
3537
<groupId>com.docusign</groupId>
3638
<artifactId>docusign-esign-java</artifactId>
37-
<version>2.10.1</version>
39+
<version>3.0.0-RC1</version>
3840
</dependency>
3941
```
4042

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>docusign-esign-java</artifactId>
55
<packaging>jar</packaging>
66
<name>docusign-esign-java</name>
7-
<version>2.10.1</version>
7+
<version>3.0.0-RC1</version>
88
<description>The official DocuSign eSignature JAVA client is based on version 2 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.</description>
99
<url>https://www.docusign.com/developer-center</url>
1010

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

Lines changed: 152 additions & 52 deletions
Large diffs are not rendered by default.

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public BillingPlanResponse getBillingPlan(String billingPlanId) throws ApiExcept
6262
}
6363

6464
// create path and map variables
65-
String localVarPath = "/v2/billing_plans/{billingPlanId}".replaceAll("\\{format\\}","json")
65+
String localVarPath = "/v2.1/billing_plans/{billingPlanId}".replaceAll("\\{format\\}","json")
6666
.replaceAll("\\{" + "billingPlanId" + "\\}", apiClient.escapeString(billingPlanId.toString()));
6767

6868
// query params
@@ -105,7 +105,7 @@ public CreditCardInformation getCreditCardInfo(String accountId) throws ApiExcep
105105
}
106106

107107
// create path and map variables
108-
String localVarPath = "/v2/accounts/{accountId}/billing_plan/credit_card".replaceAll("\\{format\\}","json")
108+
String localVarPath = "/v2.1/accounts/{accountId}/billing_plan/credit_card".replaceAll("\\{format\\}","json")
109109
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
110110

111111
// query params
@@ -154,7 +154,7 @@ public BillingInvoice getInvoice(String accountId, String invoiceId) throws ApiE
154154
}
155155

156156
// create path and map variables
157-
String localVarPath = "/v2/accounts/{accountId}/billing_invoices/{invoiceId}".replaceAll("\\{format\\}","json")
157+
String localVarPath = "/v2.1/accounts/{accountId}/billing_invoices/{invoiceId}".replaceAll("\\{format\\}","json")
158158
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
159159
.replaceAll("\\{" + "invoiceId" + "\\}", apiClient.escapeString(invoiceId.toString()));
160160

@@ -204,7 +204,7 @@ public BillingPaymentItem getPayment(String accountId, String paymentId) throws
204204
}
205205

206206
// create path and map variables
207-
String localVarPath = "/v2/accounts/{accountId}/billing_payments/{paymentId}".replaceAll("\\{format\\}","json")
207+
String localVarPath = "/v2.1/accounts/{accountId}/billing_payments/{paymentId}".replaceAll("\\{format\\}","json")
208208
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
209209
.replaceAll("\\{" + "paymentId" + "\\}", apiClient.escapeString(paymentId.toString()));
210210

@@ -298,7 +298,7 @@ public AccountBillingPlanResponse getPlan(String accountId, BillingApi.GetPlanOp
298298
}
299299

300300
// create path and map variables
301-
String localVarPath = "/v2/accounts/{accountId}/billing_plan".replaceAll("\\{format\\}","json")
301+
String localVarPath = "/v2.1/accounts/{accountId}/billing_plan".replaceAll("\\{format\\}","json")
302302
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
303303

304304
// query params
@@ -339,7 +339,7 @@ public BillingPlansResponse listBillingPlans() throws ApiException {
339339
Object localVarPostBody = "{}";
340340

341341
// create path and map variables
342-
String localVarPath = "/v2/billing_plans".replaceAll("\\{format\\}","json");
342+
String localVarPath = "/v2.1/billing_plans".replaceAll("\\{format\\}","json");
343343

344344
// query params
345345
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
@@ -420,7 +420,7 @@ public BillingInvoicesResponse listInvoices(String accountId, BillingApi.ListInv
420420
}
421421

422422
// create path and map variables
423-
String localVarPath = "/v2/accounts/{accountId}/billing_invoices".replaceAll("\\{format\\}","json")
423+
String localVarPath = "/v2.1/accounts/{accountId}/billing_invoices".replaceAll("\\{format\\}","json")
424424
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
425425

426426
// query params
@@ -466,7 +466,7 @@ public BillingInvoicesSummary listInvoicesPastDue(String accountId) throws ApiEx
466466
}
467467

468468
// create path and map variables
469-
String localVarPath = "/v2/accounts/{accountId}/billing_invoices_past_due".replaceAll("\\{format\\}","json")
469+
String localVarPath = "/v2.1/accounts/{accountId}/billing_invoices_past_due".replaceAll("\\{format\\}","json")
470470
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
471471

472472
// query params
@@ -548,7 +548,7 @@ public BillingPaymentsResponse listPayments(String accountId, BillingApi.ListPay
548548
}
549549

550550
// create path and map variables
551-
String localVarPath = "/v2/accounts/{accountId}/billing_payments".replaceAll("\\{format\\}","json")
551+
String localVarPath = "/v2.1/accounts/{accountId}/billing_payments".replaceAll("\\{format\\}","json")
552552
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
553553

554554
// query params
@@ -595,7 +595,7 @@ public BillingPaymentResponse makePayment(String accountId, BillingPaymentReques
595595
}
596596

597597
// create path and map variables
598-
String localVarPath = "/v2/accounts/{accountId}/billing_payments".replaceAll("\\{format\\}","json")
598+
String localVarPath = "/v2.1/accounts/{accountId}/billing_payments".replaceAll("\\{format\\}","json")
599599
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
600600

601601
// query params
@@ -638,7 +638,7 @@ public void purchaseEnvelopes(String accountId, PurchasedEnvelopesInformation pu
638638
}
639639

640640
// create path and map variables
641-
String localVarPath = "/v2/accounts/{accountId}/billing_plan/purchased_envelopes".replaceAll("\\{format\\}","json")
641+
String localVarPath = "/v2.1/accounts/{accountId}/billing_plan/purchased_envelopes".replaceAll("\\{format\\}","json")
642642
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
643643

644644
// query params
@@ -711,7 +711,7 @@ public BillingPlanUpdateResponse updatePlan(String accountId, BillingPlanInforma
711711
}
712712

713713
// create path and map variables
714-
String localVarPath = "/v2/accounts/{accountId}/billing_plan".replaceAll("\\{format\\}","json")
714+
String localVarPath = "/v2.1/accounts/{accountId}/billing_plan".replaceAll("\\{format\\}","json")
715715
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
716716

717717
// query params

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public BulkRecipientsUpdateResponse deleteRecipients(String accountId, String en
6666
}
6767

6868
// create path and map variables
69-
String localVarPath = "/v2/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients".replaceAll("\\{format\\}","json")
69+
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients".replaceAll("\\{format\\}","json")
7070
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
7171
.replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
7272
.replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
@@ -113,7 +113,7 @@ public String getCount() {
113113
return this.count;
114114
}
115115
/*
116-
* Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include&#x3D;”failed,queued”) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent – This only returns entries with a sent status.
116+
* Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include&#x3D;\&quot;failed,queued\&quot;) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent - This only returns entries with a sent status.
117117
*/
118118
public void setInclude(String include) {
119119
this.include = include;
@@ -168,7 +168,7 @@ public BulkEnvelopeStatus get(String accountId, String batchId, BulkEnvelopesApi
168168
}
169169

170170
// create path and map variables
171-
String localVarPath = "/v2/accounts/{accountId}/bulk_envelopes/{batchId}".replaceAll("\\{format\\}","json")
171+
String localVarPath = "/v2.1/accounts/{accountId}/bulk_envelopes/{batchId}".replaceAll("\\{format\\}","json")
172172
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
173173
.replaceAll("\\{" + "batchId" + "\\}", apiClient.escapeString(batchId.toString()));
174174

@@ -269,7 +269,7 @@ public BulkRecipientsResponse getRecipients(String accountId, String envelopeId,
269269
}
270270

271271
// create path and map variables
272-
String localVarPath = "/v2/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients".replaceAll("\\{format\\}","json")
272+
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients".replaceAll("\\{format\\}","json")
273273
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
274274
.replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
275275
.replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));
@@ -367,7 +367,7 @@ public BulkEnvelopesResponse list(String accountId, BulkEnvelopesApi.ListOptions
367367
}
368368

369369
// create path and map variables
370-
String localVarPath = "/v2/accounts/{accountId}/bulk_envelopes".replaceAll("\\{format\\}","json")
370+
String localVarPath = "/v2.1/accounts/{accountId}/bulk_envelopes".replaceAll("\\{format\\}","json")
371371
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
372372

373373
// query params
@@ -427,7 +427,7 @@ public BulkRecipientsSummaryResponse updateRecipients(String accountId, String e
427427
}
428428

429429
// create path and map variables
430-
String localVarPath = "/v2/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients".replaceAll("\\{format\\}","json")
430+
String localVarPath = "/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/bulk_recipients".replaceAll("\\{format\\}","json")
431431
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
432432
.replaceAll("\\{" + "envelopeId" + "\\}", apiClient.escapeString(envelopeId.toString()))
433433
.replaceAll("\\{" + "recipientId" + "\\}", apiClient.escapeString(recipientId.toString()));

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public CloudStorageProviders createProvider(String accountId, String userId, Clo
5757
}
5858

5959
// create path and map variables
60-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage".replaceAll("\\{format\\}","json")
60+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage".replaceAll("\\{format\\}","json")
6161
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
6262
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()));
6363

@@ -113,7 +113,7 @@ public CloudStorageProviders deleteProvider(String accountId, String userId, Str
113113
}
114114

115115
// create path and map variables
116-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}".replaceAll("\\{format\\}","json")
116+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}".replaceAll("\\{format\\}","json")
117117
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
118118
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()))
119119
.replaceAll("\\{" + "serviceId" + "\\}", apiClient.escapeString(serviceId.toString()));
@@ -165,7 +165,7 @@ public CloudStorageProviders deleteProviders(String accountId, String userId, Cl
165165
}
166166

167167
// create path and map variables
168-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage".replaceAll("\\{format\\}","json")
168+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage".replaceAll("\\{format\\}","json")
169169
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
170170
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()));
171171

@@ -251,7 +251,7 @@ public CloudStorageProviders getProvider(String accountId, String userId, String
251251
}
252252

253253
// create path and map variables
254-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}".replaceAll("\\{format\\}","json")
254+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}".replaceAll("\\{format\\}","json")
255255
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
256256
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()))
257257
.replaceAll("\\{" + "serviceId" + "\\}", apiClient.escapeString(serviceId.toString()));
@@ -287,6 +287,7 @@ public CloudStorageProviders getProvider(String accountId, String userId, String
287287
public class ListOptions
288288
{
289289
private String cloudStorageFolderPath = null;
290+
private String cloudStorageFolderidPlain = null;
290291
private String count = null;
291292
private String order = null;
292293
private String orderBy = null;
@@ -302,6 +303,16 @@ public void setCloudStorageFolderPath(String cloudStorageFolderPath) {
302303
public String getCloudStorageFolderPath() {
303304
return this.cloudStorageFolderPath;
304305
}
306+
/*
307+
*
308+
*/
309+
public void setCloudStorageFolderidPlain(String cloudStorageFolderidPlain) {
310+
this.cloudStorageFolderidPlain = cloudStorageFolderidPlain;
311+
}
312+
313+
public String getCloudStorageFolderidPlain() {
314+
return this.cloudStorageFolderidPlain;
315+
}
305316
/*
306317
* An optional value that sets how many items are included in the response. The default setting for this is 25.
307318
*/
@@ -402,7 +413,7 @@ public ExternalFolder list(String accountId, String userId, String serviceId, St
402413
}
403414

404415
// create path and map variables
405-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}/folders/{folderId}".replaceAll("\\{format\\}","json")
416+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}/folders/{folderId}".replaceAll("\\{format\\}","json")
406417
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
407418
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()))
408419
.replaceAll("\\{" + "serviceId" + "\\}", apiClient.escapeString(serviceId.toString()))
@@ -415,6 +426,7 @@ public ExternalFolder list(String accountId, String userId, String serviceId, St
415426

416427
if (options != null) {
417428
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cloud_storage_folder_path", options.cloudStorageFolderPath));
429+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "cloud_storage_folderid_plain", options.cloudStorageFolderidPlain));
418430
localVarQueryParams.addAll(apiClient.parameterToPairs("", "count", options.count));
419431
localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", options.order));
420432
localVarQueryParams.addAll(apiClient.parameterToPairs("", "order_by", options.orderBy));
@@ -552,7 +564,7 @@ public ExternalFolder listFolders(String accountId, String userId, String servic
552564
}
553565

554566
// create path and map variables
555-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}/folders".replaceAll("\\{format\\}","json")
567+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage/{serviceId}/folders".replaceAll("\\{format\\}","json")
556568
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
557569
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()))
558570
.replaceAll("\\{" + "serviceId" + "\\}", apiClient.escapeString(serviceId.toString()));
@@ -639,7 +651,7 @@ public CloudStorageProviders listProviders(String accountId, String userId, Clou
639651
}
640652

641653
// create path and map variables
642-
String localVarPath = "/v2/accounts/{accountId}/users/{userId}/cloud_storage".replaceAll("\\{format\\}","json")
654+
String localVarPath = "/v2.1/accounts/{accountId}/users/{userId}/cloud_storage".replaceAll("\\{format\\}","json")
643655
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
644656
.replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString()));
645657

0 commit comments

Comments
 (0)