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

dependencies {
implementation "com.dropbox.sign:dropbox-sign:2.5.0"
implementation "com.dropbox.sign:dropbox-sign:2.6.0"
}
```

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

Then manually install the following JARs:

- `target/dropbox-sign-2.5.0.jar`
- `target/dropbox-sign-2.6.0.jar`
- `target/lib/*.jar`

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

- API version: `3.0.0`
- Package version: `2.5.0`
- Package version: `2.6.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 @@
2.5.0
2.6.0
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ apply plugin: 'signing'

group = 'com.dropbox.sign'
archivesBaseName = 'dropbox-sign'
version = '2.5.0'
version = '2.6.0'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

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 := "2.5.0",
version := "2.6.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
Compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 2 additions & 2 deletions docs/OAuthTokenRefreshRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
|------------ | ------------- | ------------- | -------------|
| `grantType`<sup>*_required_</sup> | ```String``` | When refreshing an existing token use `refresh_token`. | |
| `refreshToken`<sup>*_required_</sup> | ```String``` | The token provided when you got the expired access token. | |
| `clientId` | ```String``` | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | |
| `clientSecret` | ```String``` | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the &quot;Client Credentials Required&quot; setting is enabled for token refresh; optional if disabled. | |
| `clientId` | ```String``` | The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | |
| `clientSecret` | ```String``` | The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | |



1 change: 1 addition & 0 deletions docs/ReportCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
---- | -----
| USER_ACTIVITY | &quot;user_activity&quot; |
| DOCUMENT_STATUS | &quot;document_status&quot; |
| SMS_ACTIVITY | &quot;sms_activity&quot; |



1 change: 1 addition & 0 deletions docs/ReportResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Contains information about the report request.
---- | -----
| USER_ACTIVITY | &quot;user_activity&quot; |
| DOCUMENT_STATUS | &quot;document_status&quot; |
| SMS_ACTIVITY | &quot;sms_activity&quot; |



2 changes: 2 additions & 0 deletions docs/TemplateResponseDocumentFormFieldText.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This class extends `TemplateResponseDocumentFormFieldBase`
| `originalFontSize` | ```Integer``` | Original font size used in this form field&#39;s text. | |
| `fontFamily` | ```String``` | Font family used in this form field&#39;s text. | |
| `validationType` | [```ValidationTypeEnum```](#ValidationTypeEnum) | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | |
| `validationCustomRegex` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | |
| `validationCustomRegexFormatLabel` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | |
| `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. | |


Expand Down
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=2.5.0
VERSION_NAME=2.6.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 @@ -18,7 +18,7 @@ additionalProperties:
groupId: com.dropbox.sign
artifactId: dropbox-sign
artifactName: Dropbox Sign Java SDK
artifactVersion: "2.5.0"
artifactVersion: "2.6.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
18 changes: 14 additions & 4 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7797,7 +7797,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
minItems: 1
name:
description: 'The name you want to assign to the ApiApp.'
Expand All @@ -7823,7 +7823,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
name:
description: 'The name you want to assign to the ApiApp.'
type: string
Expand Down Expand Up @@ -8112,10 +8112,10 @@ components:
description: 'The token provided when you got the expired access token.'
type: string
client_id:
description: 'The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
description: 'The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.'
type: string
client_secret:
description: 'The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.'
description: 'The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.'
type: string
type: object
ReportCreateRequest:
Expand All @@ -8135,6 +8135,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
maxItems: 2
minItems: 1
start_date:
Expand Down Expand Up @@ -11964,6 +11965,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
Expand Down Expand Up @@ -13130,6 +13132,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
validation_custom_regex:
description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
type: string
nullable: true
validation_custom_regex_format_label:
description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.'
type: string
nullable: true
group:
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
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>2.5.0</version>
<version>2.6.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 @@ -159,7 +159,7 @@ public ApiClient(Map<String, Authentication> authMap) {
this.dateFormat = new RFC3339DateFormat();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2.5.0/java");
setUserAgent("OpenAPI-Generator/2.6.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 @@ -15,7 +15,7 @@

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0")
public class Configuration {
public static final String VERSION = "2.5.0";
public static final String VERSION = "2.6.0";

private static volatile ApiClient defaultApiClient = new ApiClient();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public OAuthTokenRefreshRequest clientId(@jakarta.annotation.Nullable String cli
}

/**
* The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled.
* The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.
* @return clientId
*/
@jakarta.annotation.Nullable
Expand All @@ -156,7 +156,7 @@ public OAuthTokenRefreshRequest clientSecret(@jakarta.annotation.Nullable String
}

/**
* The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \&quot;Client Credentials Required\&quot; setting is enabled for token refresh; optional if disabled.
* The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.
* @return clientSecret
*/
@jakarta.annotation.Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public class ReportCreateRequest {
public enum ReportTypeEnum {
USER_ACTIVITY(String.valueOf("user_activity")),

DOCUMENT_STATUS(String.valueOf("document_status"));
DOCUMENT_STATUS(String.valueOf("document_status")),

SMS_ACTIVITY(String.valueOf("sms_activity"));

private String value;

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/dropbox/sign/model/ReportResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public class ReportResponse {
public enum ReportTypeEnum {
USER_ACTIVITY(String.valueOf("user_activity")),

DOCUMENT_STATUS(String.valueOf("document_status"));
DOCUMENT_STATUS(String.valueOf("document_status")),

SMS_ACTIVITY(String.valueOf("sms_activity"));

private String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_ORIGINAL_FONT_SIZE,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_FONT_FAMILY,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_TYPE,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL,
TemplateResponseDocumentFormFieldText.JSON_PROPERTY_GROUP
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0")
Expand Down Expand Up @@ -129,6 +131,14 @@ public static ValidationTypeEnum fromValue(String value) {
@jakarta.annotation.Nullable
private ValidationTypeEnum validationType;

public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX = "validation_custom_regex";
@jakarta.annotation.Nullable
private String validationCustomRegex;

public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL = "validation_custom_regex_format_label";
@jakarta.annotation.Nullable
private String validationCustomRegexFormatLabel;

public static final String JSON_PROPERTY_GROUP = "group";
@jakarta.annotation.Nullable
private String group;
Expand Down Expand Up @@ -301,6 +311,56 @@ public void setValidationType(@jakarta.annotation.Nullable ValidationTypeEnum va
}


public TemplateResponseDocumentFormFieldText validationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) {
this.validationCustomRegex = validationCustomRegex;
return this;
}

/**
* When &#x60;validation_type&#x60; is set to &#x60;custom_regex&#x60;, this specifies the custom regular expression pattern that will be used to validate the text field.
* @return validationCustomRegex
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getValidationCustomRegex() {
return validationCustomRegex;
}


@JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValidationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) {
this.validationCustomRegex = validationCustomRegex;
}


public TemplateResponseDocumentFormFieldText validationCustomRegexFormatLabel(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) {
this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
return this;
}

/**
* When &#x60;validation_type&#x60; is set to &#x60;custom_regex&#x60;, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.
* @return validationCustomRegexFormatLabel
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getValidationCustomRegexFormatLabel() {
return validationCustomRegexFormatLabel;
}


@JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValidationCustomRegexFormatLabel(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) {
this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel;
}


public TemplateResponseDocumentFormFieldText group(@jakarta.annotation.Nullable String group) {
this.group = group;
return this;
Expand Down Expand Up @@ -344,13 +404,15 @@ public boolean equals(Object o) {
Objects.equals(this.originalFontSize, templateResponseDocumentFormFieldText.originalFontSize) &&
Objects.equals(this.fontFamily, templateResponseDocumentFormFieldText.fontFamily) &&
Objects.equals(this.validationType, templateResponseDocumentFormFieldText.validationType) &&
Objects.equals(this.validationCustomRegex, templateResponseDocumentFormFieldText.validationCustomRegex) &&
Objects.equals(this.validationCustomRegexFormatLabel, templateResponseDocumentFormFieldText.validationCustomRegexFormatLabel) &&
Objects.equals(this.group, templateResponseDocumentFormFieldText.group) &&
super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(type, avgTextLength, isMultiline, originalFontSize, fontFamily, validationType, group, super.hashCode());
return Objects.hash(type, avgTextLength, isMultiline, originalFontSize, fontFamily, validationType, validationCustomRegex, validationCustomRegexFormatLabel, group, super.hashCode());
}

@Override
Expand All @@ -364,6 +426,8 @@ public String toString() {
sb.append(" originalFontSize: ").append(toIndentedString(originalFontSize)).append("\n");
sb.append(" fontFamily: ").append(toIndentedString(fontFamily)).append("\n");
sb.append(" validationType: ").append(toIndentedString(validationType)).append("\n");
sb.append(" validationCustomRegex: ").append(toIndentedString(validationCustomRegex)).append("\n");
sb.append(" validationCustomRegexFormatLabel: ").append(toIndentedString(validationCustomRegexFormatLabel)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append("}");
return sb.toString();
Expand Down Expand Up @@ -488,6 +552,44 @@ public Map<String, Object> createFormData() throws ApiException {
map.put("validation_type", JSON.getDefault().getMapper().writeValueAsString(validationType));
}
}
if (validationCustomRegex != null) {
if (isFileTypeOrListOfFiles(validationCustomRegex)) {
fileTypeFound = true;
}

if (validationCustomRegex.getClass().equals(java.io.File.class) ||
validationCustomRegex.getClass().equals(Integer.class) ||
validationCustomRegex.getClass().equals(String.class) ||
validationCustomRegex.getClass().isEnum()) {
map.put("validation_custom_regex", validationCustomRegex);
} else if (isListOfFile(validationCustomRegex)) {
for(int i = 0; i< getListSize(validationCustomRegex); i++) {
map.put("validation_custom_regex[" + i + "]", getFromList(validationCustomRegex, i));
}
}
else {
map.put("validation_custom_regex", JSON.getDefault().getMapper().writeValueAsString(validationCustomRegex));
}
}
if (validationCustomRegexFormatLabel != null) {
if (isFileTypeOrListOfFiles(validationCustomRegexFormatLabel)) {
fileTypeFound = true;
}

if (validationCustomRegexFormatLabel.getClass().equals(java.io.File.class) ||
validationCustomRegexFormatLabel.getClass().equals(Integer.class) ||
validationCustomRegexFormatLabel.getClass().equals(String.class) ||
validationCustomRegexFormatLabel.getClass().isEnum()) {
map.put("validation_custom_regex_format_label", validationCustomRegexFormatLabel);
} else if (isListOfFile(validationCustomRegexFormatLabel)) {
for(int i = 0; i< getListSize(validationCustomRegexFormatLabel); i++) {
map.put("validation_custom_regex_format_label[" + i + "]", getFromList(validationCustomRegexFormatLabel, i));
}
}
else {
map.put("validation_custom_regex_format_label", JSON.getDefault().getMapper().writeValueAsString(validationCustomRegexFormatLabel));
}
}
if (group != null) {
if (isFileTypeOrListOfFiles(group)) {
fileTypeFound = true;
Expand Down
Loading