Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [v2.1.0] - WebForms API v1.1.0-1.0.6 - 2025-09-09
### Changed
- Added support for version v1.1.0-1.0.6 of the DocuSign WebForms API.
- Updated the SDK release version.

## [v2.0.0] - WebForms API v1.1.0-1.0.4 - 2024-11-20
### Changed
- Added support for version v1.1.0-1.0.4 of the DocuSign WebForms API.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This client SDK is provided as open source, which enables you to customize its f
<dependency>
<groupId>com.docusign</groupId>
<artifactId>docusign-webforms-java</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
</dependency>
```
8. If your project is still open, restart Eclipse.
Expand Down
24 changes: 12 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>docusign-webforms-java</artifactId>
<packaging>jar</packaging>
<name>docusign-webforms-java</name>
<version>2.0.0</version>
<version>2.1.0</version>
<url>https://developers.docusign.com</url>
<description>The Docusign NuGet package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-webforms-csharp-client repository.</description>

Expand All @@ -15,12 +15,12 @@

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<id>central</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>ossrh2</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>central</id>
<url>https://central.sonatype.com/repository/maven-releases/</url>
</repository>
</distributionManagement>

Expand Down Expand Up @@ -230,7 +230,7 @@
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>10.0.2</version>
<version>12.1.1</version>
<configuration>
<failBuildOnCVSS>8</failBuildOnCVSS>
</configuration>
Expand Down Expand Up @@ -309,13 +309,13 @@
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
</plugins>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/docusign/webforms/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public ApiClient() {
String javaVersion = System.getProperty("java.version");

// Set default User-Agent.
setUserAgent("Swagger-Codegen/1.1.0/2.0.0/Java/" + javaVersion);
setUserAgent("Swagger-Codegen/1.1.0/2.1.0/Java/" + javaVersion);

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import java.util.Objects;
import java.util.Arrays;
import com.docusign.webforms.model.AuthenticationMethod;
import com.docusign.webforms.model.WebFormValues;
import com.docusign.webforms.model.CreateInstanceRequestBodyRecipients;
import com.docusign.webforms.model.SendOption;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
Expand All @@ -20,7 +21,7 @@ public class CreateInstanceRequestBody implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("formValues")
private WebFormValues formValues = null;
private java.util.Map<String, Object> formValues = null;

@JsonProperty("clientUserId")
private String clientUserId = null;
Expand All @@ -43,6 +44,15 @@ public class CreateInstanceRequestBody implements Serializable {
@JsonProperty("expirationOffset")
private Integer expirationOffset = null;

@JsonProperty("sendOption")
private SendOption sendOption = null;

@JsonProperty("brandId")
private String brandId = null;

@JsonProperty("recipients")
private java.util.List<CreateInstanceRequestBodyRecipients> recipients = null;

@JsonProperty("tags")
private java.util.List<String> tags = null;

Expand All @@ -52,24 +62,37 @@ public class CreateInstanceRequestBody implements Serializable {
*
* @return CreateInstanceRequestBody
**/
public CreateInstanceRequestBody formValues(WebFormValues formValues) {
public CreateInstanceRequestBody formValues(java.util.Map<String, Object> formValues) {
this.formValues = formValues;
return this;
}

/**
* Get formValues.
* putFormValuesItem.
*
* @return CreateInstanceRequestBody
**/
public CreateInstanceRequestBody putFormValuesItem(String key, Object formValuesItem) {
if (this.formValues == null) {
this.formValues = new java.util.HashMap<>();
}
this.formValues.put(key, formValuesItem);
return this;
}

/**
* Key-value pairs (where key is the component name and value is the form value) used to create a form instance. For key of type TextBox, Email, Date, Select and RadioButtonGroup the value is of string type. For key of type Number, the value is of number type. For key of type of CheckboxGroup, the value is of type array of string..
* @return formValues
**/
@Schema(description = "")
public WebFormValues getFormValues() {
@Schema(example = "{\"Textbox_Name\":\"First Last\",\"Email_primary\":\"example@example.com\",\"Date_birth\":\"2020-01-01\",\"Number_age\":52,\"Select_state\":\"California\",\"Radio_Gender\":\"Female\",\"Checkbox_hobbies\":[\"singing\",\"dancing\"],\"ID_card_attachment\":{\"documentName\":\"id_card.pdf\"}}", description = "Key-value pairs (where key is the component name and value is the form value) used to create a form instance. For key of type TextBox, Email, Date, Select and RadioButtonGroup the value is of string type. For key of type Number, the value is of number type. For key of type of CheckboxGroup, the value is of type array of string.")
public java.util.Map<String, Object> getFormValues() {
return formValues;
}

/**
* setFormValues.
**/
public void setFormValues(WebFormValues formValues) {
public void setFormValues(java.util.Map<String, Object> formValues) {
this.formValues = formValues;
}

Expand All @@ -88,7 +111,7 @@ public CreateInstanceRequestBody clientUserId(String clientUserId) {
* Get clientUserId.
* @return clientUserId
**/
@Schema(required = true, description = "")
@Schema(description = "")
public String getClientUserId() {
return clientUserId;
}
Expand Down Expand Up @@ -263,6 +286,100 @@ public void setExpirationOffset(Integer expirationOffset) {
}


/**
* sendOption.
*
* @return CreateInstanceRequestBody
**/
public CreateInstanceRequestBody sendOption(SendOption sendOption) {
this.sendOption = sendOption;
return this;
}

/**
* Get sendOption.
* @return sendOption
**/
@Schema(description = "")
public SendOption getSendOption() {
return sendOption;
}

/**
* setSendOption.
**/
public void setSendOption(SendOption sendOption) {
this.sendOption = sendOption;
}


/**
* brandId.
*
* @return CreateInstanceRequestBody
**/
public CreateInstanceRequestBody brandId(String brandId) {
this.brandId = brandId;
return this;
}

/**
* Get brandId.
* @return brandId
**/
@Schema(description = "")
public String getBrandId() {
return brandId;
}

/**
* setBrandId.
**/
public void setBrandId(String brandId) {
this.brandId = brandId;
}


/**
* recipients.
*
* @return CreateInstanceRequestBody
**/
public CreateInstanceRequestBody recipients(java.util.List<CreateInstanceRequestBodyRecipients> recipients) {
this.recipients = recipients;
return this;
}

/**
* addRecipientsItem.
*
* @return CreateInstanceRequestBody
**/
public CreateInstanceRequestBody addRecipientsItem(CreateInstanceRequestBodyRecipients recipientsItem) {
if (this.recipients == null) {
this.recipients = new java.util.ArrayList<>();
}
this.recipients.add(recipientsItem);
return this;
}

/**
* The recipients who will receive the form in email.
* @return recipients
**/
@Schema(description = "The recipients who will receive the form in email")
public java.util.List<CreateInstanceRequestBodyRecipients> getRecipients() {
return recipients;
}

/**
* setRecipients.
**/
public void setRecipients(java.util.List<CreateInstanceRequestBodyRecipients> recipients) {
this.recipients = recipients;
}


/**
* tags.
*
Expand Down Expand Up @@ -325,6 +442,9 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.securityDomain, createInstanceRequestBody.securityDomain) &&
Objects.equals(this.returnUrl, createInstanceRequestBody.returnUrl) &&
Objects.equals(this.expirationOffset, createInstanceRequestBody.expirationOffset) &&
Objects.equals(this.sendOption, createInstanceRequestBody.sendOption) &&
Objects.equals(this.brandId, createInstanceRequestBody.brandId) &&
Objects.equals(this.recipients, createInstanceRequestBody.recipients) &&
Objects.equals(this.tags, createInstanceRequestBody.tags);
}

Expand All @@ -333,7 +453,7 @@ public boolean equals(java.lang.Object o) {
*/
@Override
public int hashCode() {
return Objects.hash(formValues, clientUserId, authenticationInstant, authenticationMethod, assertionId, securityDomain, returnUrl, expirationOffset, tags);
return Objects.hash(formValues, clientUserId, authenticationInstant, authenticationMethod, assertionId, securityDomain, returnUrl, expirationOffset, sendOption, brandId, recipients, tags);
}


Expand All @@ -353,6 +473,9 @@ public String toString() {
sb.append(" securityDomain: ").append(toIndentedString(securityDomain)).append("\n");
sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
sb.append(" expirationOffset: ").append(toIndentedString(expirationOffset)).append("\n");
sb.append(" sendOption: ").append(toIndentedString(sendOption)).append("\n");
sb.append(" brandId: ").append(toIndentedString(brandId)).append("\n");
sb.append(" recipients: ").append(toIndentedString(recipients)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Loading