Skip to content

Commit 455cc11

Browse files
mmallis87root
andauthored
Version 3.17.0-v2.1-21.4.02.00 release (#225)
Co-authored-by: root <[email protected]>
1 parent a70e40c commit 455cc11

26 files changed

+4507
-62
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.17.0] - eSignature API v2.1-21.4.02.00 - 2022-02-11
5+
### Changed
6+
- Added support for version v2.1-21.4.02.00 of the DocuSign ESignature API.
7+
- Updated the SDK release version.
8+
49
## [v3.17.0-RC1] - eSignature API v2.1-21.4.01.00 - 2022-01-07
510
### Changed
611
- Added support for version v2.1-21.4.01.00 of the DocuSign ESignature API.

pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@
3030
<artifactId>maven-surefire-plugin</artifactId>
3131
<version>3.0.0-M3</version>
3232
<configuration>
33+
<runOrder>alphabetical</runOrder>
3334
<argLine>-Xms512m -Xmx1500m</argLine>
3435
<parallel>methods</parallel>
3536
<useUnlimitedThreads>true</useUnlimitedThreads>
36-
<forkMode>pertest</forkMode>
37+
<forkCount>1</forkCount>
38+
<reuseForks>false</reuseForks>
39+
<threadCount>1</threadCount>
40+
<perCoreThreadCount>false</perCoreThreadCount>
3741
<includes>
3842
<include>**/*Tests.java</include>
3943
</includes>
@@ -141,7 +145,7 @@
141145
<serverId>ossrh</serverId>
142146
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
143147
<autoReleaseAfterClose>true</autoReleaseAfterClose>
144-
</configuration>
148+
</configuration>
145149
</plugin>
146150

147151
<plugin>

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,68 @@ public BulkSendingListSummaries getBulkSendLists(String accountId) throws ApiExc
813813
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
814814
}
815815

816+
/**
817+
* Initiate a specific bulk send batch action.
818+
*
819+
* @param accountId The external account number (int) or account ID Guid. (required)
820+
* @param bulkSendBatchId (required)
821+
* @param bulkAction (required)
822+
* @param bulkSendBatchActionRequest (optional)
823+
* @return BulkSendBatchStatus
824+
* @throws ApiException if fails to make API call
825+
*/
826+
public BulkSendBatchStatus updateBulkSendBatchAction(String accountId, String bulkSendBatchId, String bulkAction, BulkSendBatchActionRequest bulkSendBatchActionRequest) throws ApiException {
827+
Object localVarPostBody = bulkSendBatchActionRequest;
828+
829+
// verify the required parameter 'accountId' is set
830+
if (accountId == null) {
831+
throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateBulkSendBatchAction");
832+
}
833+
834+
// verify the required parameter 'bulkSendBatchId' is set
835+
if (bulkSendBatchId == null) {
836+
throw new ApiException(400, "Missing the required parameter 'bulkSendBatchId' when calling updateBulkSendBatchAction");
837+
}
838+
839+
// verify the required parameter 'bulkAction' is set
840+
if (bulkAction == null) {
841+
throw new ApiException(400, "Missing the required parameter 'bulkAction' when calling updateBulkSendBatchAction");
842+
}
843+
844+
// create path and map variables
845+
String localVarPath = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/{bulkAction}"
846+
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
847+
.replaceAll("\\{" + "bulkSendBatchId" + "\\}", apiClient.escapeString(bulkSendBatchId.toString()))
848+
.replaceAll("\\{" + "bulkAction" + "\\}", apiClient.escapeString(bulkAction.toString()));
849+
850+
// query params
851+
java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
852+
java.util.List<Pair> localVarCollectionQueryParams = new java.util.ArrayList<Pair>();
853+
java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
854+
java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
855+
856+
857+
858+
859+
860+
861+
862+
final String[] localVarAccepts = {
863+
"application/json"
864+
};
865+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
866+
867+
final String[] localVarContentTypes = {
868+
869+
};
870+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
871+
872+
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
873+
874+
GenericType<BulkSendBatchStatus> localVarReturnType = new GenericType<BulkSendBatchStatus>() {};
875+
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
876+
}
877+
816878
/**
817879
* Put/Update a specific bulk send batch status.
818880
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public ApiClient() {
9494
this.dateFormat = new RFC3339DateFormat();
9595

9696
// Set default User-Agent.
97-
setUserAgent("Swagger-Codegen/3.17.0-RC1/java");
97+
setUserAgent("Swagger-Codegen/3.17.0/java");
9898

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

src/main/java/com/docusign/esign/client/auth/JWTUtils.java

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static String generateJWTAssertionFromByteArray(
8282
}
8383
return builder.sign(algorithm);
8484
}
85-
85+
8686
/**
8787
* Helper method to create a JWT token for the JWT flow.
8888
*
@@ -97,13 +97,41 @@ public static String generateJWTAssertionFromByteArray(
9797
* @throws JWTCreationException if not able to create a JWT token from the input parameters
9898
* @throws IOException if there is an issue with either the public or private file
9999
*/
100+
public static String generateJWTAssertion(
101+
String publicKeyFilename,
102+
String privateKeyFilename,
103+
String oAuthBasePath,
104+
String clientId,
105+
String userId,
106+
long expiresIn)
107+
throws JWTCreationException, IOException {
108+
return generateJWTAssertion(publicKeyFilename, privateKeyFilename, oAuthBasePath, clientId, userId, expiresIn, "signature");
109+
}
110+
111+
/**
112+
* Helper method to create a JWT token for the JWT flow.
113+
*
114+
* @param publicKeyFilename the filename of the RSA public key
115+
* @param privateKeyFilename the filename of the RSA private key
116+
* @param oAuthBasePath DocuSign OAuth base path (account-d.docusign.com for the developer sandbox
117+
* and account.docusign.com for the production platform)
118+
* @param clientId DocuSign OAuth Client Id (AKA Integrator Key)
119+
* @param userId DocuSign user Id to be impersonated (This is a UUID)
120+
* @param expiresIn number of seconds remaining before the JWT assertion is considered as invalid
121+
* @param scopes space-separated string that represents the list of scopes to grant to the OAuth
122+
* token.
123+
* @return a fresh JWT token
124+
* @throws JWTCreationException if not able to create a JWT token from the input parameters
125+
* @throws IOException if there is an issue with either the public or private file
126+
*/
100127
public static String generateJWTAssertion(
101128
String publicKeyFilename,
102129
String privateKeyFilename,
103130
String oAuthBasePath,
104131
String clientId,
105132
String userId,
106-
long expiresIn)
133+
long expiresIn,
134+
String scopes)
107135
throws JWTCreationException, IOException {
108136
String token = null;
109137
if (expiresIn <= 0L) {
@@ -134,7 +162,7 @@ public static String generateJWTAssertion(
134162
.withAudience(oAuthBasePath)
135163
.withNotBefore(new Date(now))
136164
.withExpiresAt(new Date(now + expiresIn * 1000))
137-
.withClaim("scope", "signature")
165+
.withClaim("scope", scopes)
138166
.sign(algorithm);
139167
} catch (JWTCreationException e) {
140168
throw e;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,10 +2908,10 @@ public AccountSettingsInformation allowDelayedRouting(String allowDelayedRouting
29082908
}
29092909

29102910
/**
2911-
* .
2911+
* \"true\" if the account has permission to use the delayed routing feature to insert delays before routing an envelope to a recipient, \"false\" otherwise..
29122912
* @return allowDelayedRouting
29132913
**/
2914-
@ApiModelProperty(value = "")
2914+
@ApiModelProperty(value = "\"true\" if the account has permission to use the delayed routing feature to insert delays before routing an envelope to a recipient, \"false\" otherwise.")
29152915
public String getAllowDelayedRouting() {
29162916
return allowDelayedRouting;
29172917
}
@@ -5446,10 +5446,10 @@ public AccountSettingsInformation allowScheduledSending(String allowScheduledSen
54465446
}
54475447

54485448
/**
5449-
* .
5449+
* \"true\" if the account has permission to use the scheduled sending feature to send envelopes at a specified datetime in the future, \"false\" otherwise..
54505450
* @return allowScheduledSending
54515451
**/
5452-
@ApiModelProperty(value = "")
5452+
@ApiModelProperty(value = "\"true\" if the account has permission to use the scheduled sending feature to send envelopes at a specified datetime in the future, \"false\" otherwise.")
54535453
public String getAllowScheduledSending() {
54545454
return allowScheduledSending;
54555455
}

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

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public class Agent {
9090
@JsonProperty("emailNotification")
9191
private RecipientEmailNotification emailNotification = null;
9292

93+
@JsonProperty("emailRecipientPostSigningURL")
94+
private String emailRecipientPostSigningURL = null;
95+
9396
@JsonProperty("embeddedRecipientStartURL")
9497
private String embeddedRecipientStartURL = null;
9598

@@ -823,6 +826,33 @@ public void setEmailNotification(RecipientEmailNotification emailNotification) {
823826
}
824827

825828

829+
/**
830+
* emailRecipientPostSigningURL.
831+
*
832+
* @return Agent
833+
**/
834+
public Agent emailRecipientPostSigningURL(String emailRecipientPostSigningURL) {
835+
this.emailRecipientPostSigningURL = emailRecipientPostSigningURL;
836+
return this;
837+
}
838+
839+
/**
840+
* .
841+
* @return emailRecipientPostSigningURL
842+
**/
843+
@ApiModelProperty(value = "")
844+
public String getEmailRecipientPostSigningURL() {
845+
return emailRecipientPostSigningURL;
846+
}
847+
848+
/**
849+
* setEmailRecipientPostSigningURL.
850+
**/
851+
public void setEmailRecipientPostSigningURL(String emailRecipientPostSigningURL) {
852+
this.emailRecipientPostSigningURL = emailRecipientPostSigningURL;
853+
}
854+
855+
826856
/**
827857
* embeddedRecipientStartURL.
828858
*
@@ -2299,6 +2329,7 @@ public boolean equals(java.lang.Object o) {
22992329
Objects.equals(this.email, agent.email) &&
23002330
Objects.equals(this.emailMetadata, agent.emailMetadata) &&
23012331
Objects.equals(this.emailNotification, agent.emailNotification) &&
2332+
Objects.equals(this.emailRecipientPostSigningURL, agent.emailRecipientPostSigningURL) &&
23022333
Objects.equals(this.embeddedRecipientStartURL, agent.embeddedRecipientStartURL) &&
23032334
Objects.equals(this.errorDetails, agent.errorDetails) &&
23042335
Objects.equals(this.excludedDocuments, agent.excludedDocuments) &&
@@ -2357,7 +2388,7 @@ public boolean equals(java.lang.Object o) {
23572388
*/
23582389
@Override
23592390
public int hashCode() {
2360-
return Objects.hash(accessCode, accessCodeMetadata, addAccessCodeToEmail, additionalNotifications, allowSystemOverrideForLockedRecipient, autoRespondedReason, clientUserId, completedCount, customFields, declinedDateTime, declinedReason, deliveredDateTime, deliveryMethod, deliveryMethodMetadata, designatorId, designatorIdGuid, documentVisibility, email, emailMetadata, emailNotification, embeddedRecipientStartURL, errorDetails, excludedDocuments, faxNumber, faxNumberMetadata, firstName, firstNameMetadata, fullName, fullNameMetadata, idCheckConfigurationName, idCheckConfigurationNameMetadata, idCheckInformationInput, identityVerification, inheritEmailNotificationConfiguration, lastName, lastNameMetadata, lockedRecipientPhoneAuthEditable, lockedRecipientSmsEditable, name, nameMetadata, note, noteMetadata, phoneAuthentication, phoneNumber, recipientAttachments, recipientAuthenticationStatus, recipientFeatureMetadata, recipientId, recipientIdGuid, recipientType, recipientTypeMetadata, requireIdLookup, requireIdLookupMetadata, roleName, routingOrder, routingOrderMetadata, sentDateTime, signedDateTime, signingGroupId, signingGroupIdMetadata, signingGroupName, signingGroupUsers, smsAuthentication, socialAuthentications, status, statusCode, suppressEmails, templateLocked, templateRequired, totalTabCount, userId);
2391+
return Objects.hash(accessCode, accessCodeMetadata, addAccessCodeToEmail, additionalNotifications, allowSystemOverrideForLockedRecipient, autoRespondedReason, clientUserId, completedCount, customFields, declinedDateTime, declinedReason, deliveredDateTime, deliveryMethod, deliveryMethodMetadata, designatorId, designatorIdGuid, documentVisibility, email, emailMetadata, emailNotification, emailRecipientPostSigningURL, embeddedRecipientStartURL, errorDetails, excludedDocuments, faxNumber, faxNumberMetadata, firstName, firstNameMetadata, fullName, fullNameMetadata, idCheckConfigurationName, idCheckConfigurationNameMetadata, idCheckInformationInput, identityVerification, inheritEmailNotificationConfiguration, lastName, lastNameMetadata, lockedRecipientPhoneAuthEditable, lockedRecipientSmsEditable, name, nameMetadata, note, noteMetadata, phoneAuthentication, phoneNumber, recipientAttachments, recipientAuthenticationStatus, recipientFeatureMetadata, recipientId, recipientIdGuid, recipientType, recipientTypeMetadata, requireIdLookup, requireIdLookupMetadata, roleName, routingOrder, routingOrderMetadata, sentDateTime, signedDateTime, signingGroupId, signingGroupIdMetadata, signingGroupName, signingGroupUsers, smsAuthentication, socialAuthentications, status, statusCode, suppressEmails, templateLocked, templateRequired, totalTabCount, userId);
23612392
}
23622393

23632394

@@ -2389,6 +2420,7 @@ public String toString() {
23892420
sb.append(" email: ").append(toIndentedString(email)).append("\n");
23902421
sb.append(" emailMetadata: ").append(toIndentedString(emailMetadata)).append("\n");
23912422
sb.append(" emailNotification: ").append(toIndentedString(emailNotification)).append("\n");
2423+
sb.append(" emailRecipientPostSigningURL: ").append(toIndentedString(emailRecipientPostSigningURL)).append("\n");
23922424
sb.append(" embeddedRecipientStartURL: ").append(toIndentedString(embeddedRecipientStartURL)).append("\n");
23932425
sb.append(" errorDetails: ").append(toIndentedString(errorDetails)).append("\n");
23942426
sb.append(" excludedDocuments: ").append(toIndentedString(excludedDocuments)).append("\n");

0 commit comments

Comments
 (0)