Skip to content

Commit 9d1ef76

Browse files
authored
Version 2.17.0-BETA release (#159)
* Version 2.17.0-BETA-v2-20.2.02.02 release
1 parent ba9c813 commit 9d1ef76

File tree

11 files changed

+202
-50
lines changed

11 files changed

+202
-50
lines changed

CHANGELOG.md

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

4+
## [2.17.0-BETA] - Jersey2 with support of DELETE request body - 2020-08-11
5+
### Changed
6+
- Upgraded the HTTP client from Jersey1 to Jersey 2. This resulted in a non-breaking change but the dependency list has largely been changed. (DCM-3324)
7+
- Added support for request body in all DELETE methods. (DCM-4454)
8+
- Added support for version v2-20.2.02 of the DocuSign eSignature API.
9+
- Updated the SDK release version.
10+
411
## [2.16.0-BETA] - Upgrade to Jersey2 - 2020-07-02
512
### Changed
613
- Upgraded the HTTP client from Jersey1 to Jersey 2. This resulted in a non-breaking change but the dependency list has largely been changed. (DCM-3324)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Compatibility
1212

13-
- Java 1.7+
13+
- Java 1.9+
1414

1515
## Note
1616

@@ -34,7 +34,7 @@ Note: DocuSign uses **Eclipse** with **Maven** for testing purposes.
3434
<dependency>
3535
<groupId>com.docusign</groupId>
3636
<artifactId>docusign-esign-java</artifactId>
37-
<version>2.16.0-BETA</version>
37+
<version>2.17.0-BETA</version>
3838
</dependency>
3939
```
4040

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.docusign'
5-
version = '2.16.0-BETA'
5+
version = '2.17.0-BETA'
66

77
buildscript {
88
repositories {

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.16.0-BETA</version>
7+
<version>2.17.0-BETA</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://developers.docusign.com</url>
1010

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ public BulkRecipientsResponse getRecipients(String accountId, String envelopeId,
314314
public class ListOptions
315315
{
316316
private String count = null;
317-
private String include = null;
318317
private String startPosition = null;
319318
/*
320319
* The number of results to return. This can be 1 to 20.
@@ -326,16 +325,6 @@ public void setCount(String count) {
326325
public String getCount() {
327326
return this.count;
328327
}
329-
/*
330-
*
331-
*/
332-
public void setInclude(String include) {
333-
this.include = include;
334-
}
335-
336-
public String getInclude() {
337-
return this.include;
338-
}
339328
/*
340329
* The position of the bulk envelope items in the response. This is used for repeated calls, when the number of bulk envelopes returned is too large for one return. The default value is 0.
341330
*/
@@ -386,8 +375,6 @@ public BulkEnvelopesResponse list(String accountId, BulkEnvelopesApi.ListOptions
386375

387376
if (options != null) {
388377
localVarQueryParams.addAll(apiClient.parameterToPair("count", options.count));
389-
}if (options != null) {
390-
localVarQueryParams.addAll(apiClient.parameterToPair("include", options.include));
391378
}if (options != null) {
392379
localVarQueryParams.addAll(apiClient.parameterToPair("start_position", options.startPosition));
393380
}

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public ApiClient() {
8787
this.dateFormat = new RFC3339DateFormat();
8888

8989
// Set default User-Agent.
90-
setUserAgent("Swagger-Codegen/2.16.0-BETA/java");
90+
setUserAgent("Swagger-Codegen/2.17.0-BETA/java");
9191

9292
// Setup authentications (key: authentication name, value: authentication).
9393
authentications = new HashMap<String, Authentication>();
@@ -1345,7 +1345,7 @@ public <T> T invokeAPI(String path, String method, List<Pair> queryParams, List<
13451345
}
13461346
}
13471347

1348-
Entity<?> entity = serialize(body, formParams, contentType);
1348+
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
13491349

13501350
Response response = null;
13511351
String message = "error";
@@ -1359,7 +1359,7 @@ public <T> T invokeAPI(String path, String method, List<Pair> queryParams, List<
13591359
} else if ("PUT".equals(method)) {
13601360
response = invocationBuilder.put(entity);
13611361
} else if ("DELETE".equals(method)) {
1362-
response = invocationBuilder.delete();
1362+
response = invocationBuilder.method("DELETE", entity);
13631363
} else if ("PATCH".equals(method)) {
13641364
response = invocationBuilder.method("PATCH", entity);
13651365
} else if ("HEAD".equals(method)) {
@@ -1512,11 +1512,16 @@ protected Client buildHttpClient(boolean debugging) {
15121512
clientConfig.register(json);
15131513
clientConfig.register(JacksonFeature.class);
15141514
clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
1515+
// turn off compliance validation to be able to send payloads with DELETE calls
1516+
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
15151517
if (debugging) {
15161518
clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
15171519
clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
15181520
// Set logger to ALL
15191521
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
1522+
} else {
1523+
// suppress warnings for payloads with DELETE calls:
1524+
java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
15201525
}
15211526
performAdditionalClientConfiguration(clientConfig);
15221527

src/main/java/com/docusign/esign/model/NewUser.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public class NewUser {
2626
@JsonProperty("errorDetails")
2727
private ErrorDetails errorDetails = null;
2828

29+
@JsonProperty("membershipId")
30+
private String membershipId = null;
31+
2932
@JsonProperty("permissionProfileId")
3033
private String permissionProfileId = null;
3134

@@ -116,6 +119,24 @@ public void setErrorDetails(ErrorDetails errorDetails) {
116119
this.errorDetails = errorDetails;
117120
}
118121

122+
public NewUser membershipId(String membershipId) {
123+
this.membershipId = membershipId;
124+
return this;
125+
}
126+
127+
/**
128+
*
129+
* @return membershipId
130+
**/
131+
@ApiModelProperty(value = "")
132+
public String getMembershipId() {
133+
return membershipId;
134+
}
135+
136+
public void setMembershipId(String membershipId) {
137+
this.membershipId = membershipId;
138+
}
139+
119140
public NewUser permissionProfileId(String permissionProfileId) {
120141
this.permissionProfileId = permissionProfileId;
121142
return this;
@@ -238,6 +259,7 @@ public boolean equals(java.lang.Object o) {
238259
Objects.equals(this.createdDateTime, newUser.createdDateTime) &&
239260
Objects.equals(this.email, newUser.email) &&
240261
Objects.equals(this.errorDetails, newUser.errorDetails) &&
262+
Objects.equals(this.membershipId, newUser.membershipId) &&
241263
Objects.equals(this.permissionProfileId, newUser.permissionProfileId) &&
242264
Objects.equals(this.permissionProfileName, newUser.permissionProfileName) &&
243265
Objects.equals(this.uri, newUser.uri) &&
@@ -248,7 +270,7 @@ public boolean equals(java.lang.Object o) {
248270

249271
@Override
250272
public int hashCode() {
251-
return Objects.hash(apiPassword, createdDateTime, email, errorDetails, permissionProfileId, permissionProfileName, uri, userId, userName, userStatus);
273+
return Objects.hash(apiPassword, createdDateTime, email, errorDetails, membershipId, permissionProfileId, permissionProfileName, uri, userId, userName, userStatus);
252274
}
253275

254276

@@ -261,6 +283,7 @@ public String toString() {
261283
sb.append(" createdDateTime: ").append(toIndentedString(createdDateTime)).append("\n");
262284
sb.append(" email: ").append(toIndentedString(email)).append("\n");
263285
sb.append(" errorDetails: ").append(toIndentedString(errorDetails)).append("\n");
286+
sb.append(" membershipId: ").append(toIndentedString(membershipId)).append("\n");
264287
sb.append(" permissionProfileId: ").append(toIndentedString(permissionProfileId)).append("\n");
265288
sb.append(" permissionProfileName: ").append(toIndentedString(permissionProfileName)).append("\n");
266289
sb.append(" uri: ").append(toIndentedString(uri)).append("\n");

src/main/java/com/docusign/esign/model/SenderEmailNotifications.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public class SenderEmailNotifications {
3131
@JsonProperty("offlineSigningFailed")
3232
private String offlineSigningFailed = null;
3333

34+
@JsonProperty("powerformResponsesLimitNotificationEmail")
35+
private String powerformResponsesLimitNotificationEmail = null;
36+
3437
@JsonProperty("recipientViewed")
3538
private String recipientViewed = null;
3639

@@ -148,6 +151,24 @@ public void setOfflineSigningFailed(String offlineSigningFailed) {
148151
this.offlineSigningFailed = offlineSigningFailed;
149152
}
150153

154+
public SenderEmailNotifications powerformResponsesLimitNotificationEmail(String powerformResponsesLimitNotificationEmail) {
155+
this.powerformResponsesLimitNotificationEmail = powerformResponsesLimitNotificationEmail;
156+
return this;
157+
}
158+
159+
/**
160+
*
161+
* @return powerformResponsesLimitNotificationEmail
162+
**/
163+
@ApiModelProperty(value = "")
164+
public String getPowerformResponsesLimitNotificationEmail() {
165+
return powerformResponsesLimitNotificationEmail;
166+
}
167+
168+
public void setPowerformResponsesLimitNotificationEmail(String powerformResponsesLimitNotificationEmail) {
169+
this.powerformResponsesLimitNotificationEmail = powerformResponsesLimitNotificationEmail;
170+
}
171+
151172
public SenderEmailNotifications recipientViewed(String recipientViewed) {
152173
this.recipientViewed = recipientViewed;
153174
return this;
@@ -218,14 +239,15 @@ public boolean equals(java.lang.Object o) {
218239
Objects.equals(this.deliveryFailed, senderEmailNotifications.deliveryFailed) &&
219240
Objects.equals(this.envelopeComplete, senderEmailNotifications.envelopeComplete) &&
220241
Objects.equals(this.offlineSigningFailed, senderEmailNotifications.offlineSigningFailed) &&
242+
Objects.equals(this.powerformResponsesLimitNotificationEmail, senderEmailNotifications.powerformResponsesLimitNotificationEmail) &&
221243
Objects.equals(this.recipientViewed, senderEmailNotifications.recipientViewed) &&
222244
Objects.equals(this.senderEnvelopeDeclined, senderEmailNotifications.senderEnvelopeDeclined) &&
223245
Objects.equals(this.withdrawnConsent, senderEmailNotifications.withdrawnConsent);
224246
}
225247

226248
@Override
227249
public int hashCode() {
228-
return Objects.hash(changedSigner, commentsOnlyPrivateAndMention, commentsReceiveAll, deliveryFailed, envelopeComplete, offlineSigningFailed, recipientViewed, senderEnvelopeDeclined, withdrawnConsent);
250+
return Objects.hash(changedSigner, commentsOnlyPrivateAndMention, commentsReceiveAll, deliveryFailed, envelopeComplete, offlineSigningFailed, powerformResponsesLimitNotificationEmail, recipientViewed, senderEnvelopeDeclined, withdrawnConsent);
229251
}
230252

231253

@@ -240,6 +262,7 @@ public String toString() {
240262
sb.append(" deliveryFailed: ").append(toIndentedString(deliveryFailed)).append("\n");
241263
sb.append(" envelopeComplete: ").append(toIndentedString(envelopeComplete)).append("\n");
242264
sb.append(" offlineSigningFailed: ").append(toIndentedString(offlineSigningFailed)).append("\n");
265+
sb.append(" powerformResponsesLimitNotificationEmail: ").append(toIndentedString(powerformResponsesLimitNotificationEmail)).append("\n");
243266
sb.append(" recipientViewed: ").append(toIndentedString(recipientViewed)).append("\n");
244267
sb.append(" senderEnvelopeDeclined: ").append(toIndentedString(senderEnvelopeDeclined)).append("\n");
245268
sb.append(" withdrawnConsent: ").append(toIndentedString(withdrawnConsent)).append("\n");

src/main/java/com/docusign/esign/model/TabMetadata.java

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,15 @@ public class TabMetadata {
117117
@JsonProperty("paymentItemName")
118118
private String paymentItemName = null;
119119

120+
@JsonProperty("requireAll")
121+
private String requireAll = null;
122+
120123
@JsonProperty("required")
121124
private String required = null;
122125

126+
@JsonProperty("requireInitialOnSharedChange")
127+
private String requireInitialOnSharedChange = null;
128+
123129
@JsonProperty("scaleValue")
124130
private String scaleValue = null;
125131

@@ -773,6 +779,24 @@ public void setPaymentItemName(String paymentItemName) {
773779
this.paymentItemName = paymentItemName;
774780
}
775781

782+
public TabMetadata requireAll(String requireAll) {
783+
this.requireAll = requireAll;
784+
return this;
785+
}
786+
787+
/**
788+
* When set to **true** and shared is true, information must be entered in this field to complete the envelope.
789+
* @return requireAll
790+
**/
791+
@ApiModelProperty(value = "When set to **true** and shared is true, information must be entered in this field to complete the envelope. ")
792+
public String getRequireAll() {
793+
return requireAll;
794+
}
795+
796+
public void setRequireAll(String requireAll) {
797+
this.requireAll = requireAll;
798+
}
799+
776800
public TabMetadata required(String required) {
777801
this.required = required;
778802
return this;
@@ -791,6 +815,24 @@ public void setRequired(String required) {
791815
this.required = required;
792816
}
793817

818+
public TabMetadata requireInitialOnSharedChange(String requireInitialOnSharedChange) {
819+
this.requireInitialOnSharedChange = requireInitialOnSharedChange;
820+
return this;
821+
}
822+
823+
/**
824+
* Optional element for field markup. When set to **true**, the signer is required to initial when they modify a shared field.
825+
* @return requireInitialOnSharedChange
826+
**/
827+
@ApiModelProperty(value = "Optional element for field markup. When set to **true**, the signer is required to initial when they modify a shared field.")
828+
public String getRequireInitialOnSharedChange() {
829+
return requireInitialOnSharedChange;
830+
}
831+
832+
public void setRequireInitialOnSharedChange(String requireInitialOnSharedChange) {
833+
this.requireInitialOnSharedChange = requireInitialOnSharedChange;
834+
}
835+
794836
public TabMetadata scaleValue(String scaleValue) {
795837
this.scaleValue = scaleValue;
796838
return this;
@@ -1033,7 +1075,9 @@ public boolean equals(java.lang.Object o) {
10331075
Objects.equals(this.paymentItemCode, tabMetadata.paymentItemCode) &&
10341076
Objects.equals(this.paymentItemDescription, tabMetadata.paymentItemDescription) &&
10351077
Objects.equals(this.paymentItemName, tabMetadata.paymentItemName) &&
1078+
Objects.equals(this.requireAll, tabMetadata.requireAll) &&
10361079
Objects.equals(this.required, tabMetadata.required) &&
1080+
Objects.equals(this.requireInitialOnSharedChange, tabMetadata.requireInitialOnSharedChange) &&
10371081
Objects.equals(this.scaleValue, tabMetadata.scaleValue) &&
10381082
Objects.equals(this.selected, tabMetadata.selected) &&
10391083
Objects.equals(this.shared, tabMetadata.shared) &&
@@ -1049,7 +1093,7 @@ public boolean equals(java.lang.Object o) {
10491093

10501094
@Override
10511095
public int hashCode() {
1052-
return Objects.hash(anchor, anchorCaseSensitive, anchorHorizontalAlignment, anchorIgnoreIfNotPresent, anchorMatchWholeWord, anchorUnits, anchorXOffset, anchorYOffset, bold, collaborative, concealValueOnDocument, createdByDisplayName, createdByUserId, customTabId, disableAutoSize, editable, font, fontColor, fontSize, height, includedInEmail, initialValue, italic, items, lastModified, lastModifiedByDisplayName, lastModifiedByUserId, locked, maximumLength, mergeField, name, paymentItemCode, paymentItemDescription, paymentItemName, required, scaleValue, selected, shared, stampType, stampTypeMetadata, tabLabel, type, underline, validationMessage, validationPattern, width);
1096+
return Objects.hash(anchor, anchorCaseSensitive, anchorHorizontalAlignment, anchorIgnoreIfNotPresent, anchorMatchWholeWord, anchorUnits, anchorXOffset, anchorYOffset, bold, collaborative, concealValueOnDocument, createdByDisplayName, createdByUserId, customTabId, disableAutoSize, editable, font, fontColor, fontSize, height, includedInEmail, initialValue, italic, items, lastModified, lastModifiedByDisplayName, lastModifiedByUserId, locked, maximumLength, mergeField, name, paymentItemCode, paymentItemDescription, paymentItemName, requireAll, required, requireInitialOnSharedChange, scaleValue, selected, shared, stampType, stampTypeMetadata, tabLabel, type, underline, validationMessage, validationPattern, width);
10531097
}
10541098

10551099

@@ -1092,7 +1136,9 @@ public String toString() {
10921136
sb.append(" paymentItemCode: ").append(toIndentedString(paymentItemCode)).append("\n");
10931137
sb.append(" paymentItemDescription: ").append(toIndentedString(paymentItemDescription)).append("\n");
10941138
sb.append(" paymentItemName: ").append(toIndentedString(paymentItemName)).append("\n");
1139+
sb.append(" requireAll: ").append(toIndentedString(requireAll)).append("\n");
10951140
sb.append(" required: ").append(toIndentedString(required)).append("\n");
1141+
sb.append(" requireInitialOnSharedChange: ").append(toIndentedString(requireInitialOnSharedChange)).append("\n");
10961142
sb.append(" scaleValue: ").append(toIndentedString(scaleValue)).append("\n");
10971143
sb.append(" selected: ").append(toIndentedString(selected)).append("\n");
10981144
sb.append(" shared: ").append(toIndentedString(shared)).append("\n");

0 commit comments

Comments
 (0)