Skip to content
Open
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.dropbox.sign</groupId>
<artifactId>dropbox-sign</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -71,7 +71,7 @@ Add this dependency to your project's build file:
}

dependencies {
implementation "com.dropbox.sign:dropbox-sign:1.12.0"
implementation "com.dropbox.sign:dropbox-sign:1.13.0"
}
```

Expand All @@ -85,7 +85,7 @@ mvn clean package

Then manually install the following JARs:

- `target/dropbox-sign-1.12.0.jar`
- `target/dropbox-sign-1.13.0.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -477,7 +477,7 @@ apisupport@hellosign.com
This Java package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `3.0.0`
- Package version: `1.12.0`
- Package version: `1.13.0`
- Build package: `org.openapitools.codegen.languages.JavaClientCodegen`


Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.0
1.13.0
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'com.dropbox.sign'
version = '1.12.0'
version = '1.13.0'

base {
archivesName.set('dropbox-sign')
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.dropbox.sign",
name := "dropbox-sign",
version := "1.12.0",
version := "1.13.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
Compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/TemplateResponseDocumentFormFieldDropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This class extends `TemplateResponseDocumentFormFieldBase`
|------------ | ------------- | ------------- | -------------|
| `type`<sup>*_required_</sup> | ```String``` | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | |
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
| `options` | ```List<String>``` | The options available for this dropdown form field. | |



2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#target = android
GROUP=com.dropbox.sign
POM_ARTIFACT_ID=dropbox-sign
VERSION_NAME=1.12.0
VERSION_NAME=1.13.0

POM_NAME=Dropbox Sign Java SDK
POM_DESCRIPTION=Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds!
Expand Down
2 changes: 1 addition & 1 deletion openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ additionalProperties:
groupId: com.dropbox.sign
artifactId: dropbox-sign
artifactName: Dropbox Sign Java SDK
artifactVersion: "1.12.0"
artifactVersion: "1.13.0"
artifactUrl: https://github.com/hellosign/dropbox-sign-java
artifactDescription: Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds!
scmConnection: scm:git:git://github.com/hellosign/dropbox-sign-java.git
Expand Down
5 changes: 5 additions & 0 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13104,6 +13104,11 @@ components:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
nullable: true
options:
description: 'The options available for this dropdown form field.'
type: array
items:
type: string
type: object
TemplateResponseDocumentFormFieldHyperlink:
description: 'This class extends `TemplateResponseDocumentFormFieldBase`'
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>dropbox-sign</artifactId>
<packaging>jar</packaging>
<name>dropbox-sign</name>
<version>1.12.0</version>
<version>1.13.0</version>
<url>https://github.com/hellosign/dropbox-sign-java</url>
<description>Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds!</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dropbox/sign/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public ApiClient(Map<String, Authentication> authMap) {
this.dateFormat = new RFC3339DateFormat();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/1.12.0/java");
setUserAgent("OpenAPI-Generator/1.13.0/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<>();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dropbox/sign/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.12.0")
public class Configuration {
public static final String VERSION = "1.12.0";
public static final String VERSION = "1.13.0";

private static volatile ApiClient defaultApiClient = new ApiClient();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/** This class extends &#x60;TemplateResponseDocumentFormFieldBase&#x60; */
@JsonPropertyOrder({
TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_TYPE,
TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP
TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP,
TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_OPTIONS
})
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
Expand All @@ -48,6 +51,9 @@ public class TemplateResponseDocumentFormFieldDropdown
public static final String JSON_PROPERTY_GROUP = "group";
@javax.annotation.Nullable private String group;

public static final String JSON_PROPERTY_OPTIONS = "options";
@javax.annotation.Nullable private List<String> options = null;

public TemplateResponseDocumentFormFieldDropdown() {}

/**
Expand Down Expand Up @@ -122,6 +128,37 @@ public void setGroup(@javax.annotation.Nullable String group) {
this.group = group;
}

public TemplateResponseDocumentFormFieldDropdown options(
@javax.annotation.Nullable List<String> options) {
this.options = options;
return this;
}

public TemplateResponseDocumentFormFieldDropdown addOptionsItem(String optionsItem) {
if (this.options == null) {
this.options = new ArrayList<>();
}
this.options.add(optionsItem);
return this;
}

/**
* The options available for this dropdown form field.
*
* @return options
*/
@javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getOptions() {
return options;
}

@JsonProperty(JSON_PROPERTY_OPTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOptions(@javax.annotation.Nullable List<String> options) {
this.options = options;
}

/** Return true if this TemplateResponseDocumentFormFieldDropdown object is equal to o. */
@Override
public boolean equals(Object o) {
Expand All @@ -135,12 +172,13 @@ public boolean equals(Object o) {
(TemplateResponseDocumentFormFieldDropdown) o;
return Objects.equals(this.type, templateResponseDocumentFormFieldDropdown.type)
&& Objects.equals(this.group, templateResponseDocumentFormFieldDropdown.group)
&& Objects.equals(this.options, templateResponseDocumentFormFieldDropdown.options)
&& super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(type, group, super.hashCode());
return Objects.hash(type, group, options, super.hashCode());
}

@Override
Expand All @@ -150,6 +188,7 @@ public String toString() {
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -195,6 +234,24 @@ public Map<String, Object> createFormData() throws ApiException {
map.put("group", JSON.getDefault().getMapper().writeValueAsString(group));
}
}
if (options != null) {
if (isFileTypeOrListOfFiles(options)) {
fileTypeFound = true;
}

if (options.getClass().equals(java.io.File.class)
|| options.getClass().equals(Integer.class)
|| options.getClass().equals(String.class)
|| options.getClass().isEnum()) {
map.put("options", options);
} else if (isListOfFile(options)) {
for (int i = 0; i < getListSize(options); i++) {
map.put("options[" + i + "]", getFromList(options, i));
}
} else {
map.put("options", JSON.getDefault().getMapper().writeValueAsString(options));
}
}
} catch (Exception e) {
throw new ApiException(e);
}
Expand Down
Loading