From 08d86814cae63d6018058fc2a3c5a6d29667dc54 Mon Sep 17 00:00:00 2001 From: mchatlas Date: Thu, 3 Sep 2026 14:31:37 +0200 Subject: [PATCH 1/2] Release 1.13.0 --- .../close-and-release-repository.yml | 6 +- .github/workflows/github-actions.yml | 19 ++--- README.md | 8 +- VERSION | 2 +- build.gradle | 84 ++++++++++++++++--- build.sbt | 2 +- docs/SignatureRequestCreateEmbeddedRequest.md | 1 - docs/SignatureRequestEditEmbeddedRequest.md | 1 - docs/SignatureRequestEditRequest.md | 1 - docs/SignatureRequestSendRequest.md | 1 - docs/TemplateCreateEmbeddedDraftRequest.md | 1 - docs/TemplateCreateRequest.md | 1 - ...mplateResponseDocumentFormFieldDropdown.md | 1 + docs/UnclaimedDraftCreateEmbeddedRequest.md | 1 - docs/UnclaimedDraftCreateRequest.md | 1 - gradle.properties | 2 +- openapi-config.yaml | 2 +- openapi-sdk.yaml | 37 ++------ pom.xml | 2 +- src/main/java/com/dropbox/sign/ApiClient.java | 2 +- .../java/com/dropbox/sign/Configuration.java | 2 +- ...SignatureRequestCreateEmbeddedRequest.java | 61 -------------- .../SignatureRequestEditEmbeddedRequest.java | 61 -------------- .../model/SignatureRequestEditRequest.java | 61 -------------- .../model/SignatureRequestSendRequest.java | 61 -------------- .../TemplateCreateEmbeddedDraftRequest.java | 67 +-------------- .../sign/model/TemplateCreateRequest.java | 67 +-------------- ...lateResponseDocumentFormFieldDropdown.java | 61 +++++++++++++- .../UnclaimedDraftCreateEmbeddedRequest.java | 61 -------------- .../model/UnclaimedDraftCreateRequest.java | 61 -------------- .../libraries/jersey2/build.gradle.mustache | 79 +++++++++++++---- 31 files changed, 228 insertions(+), 589 deletions(-) diff --git a/.github/workflows/close-and-release-repository.yml b/.github/workflows/close-and-release-repository.yml index 8f07b7e..4aed1f0 100644 --- a/.github/workflows/close-and-release-repository.yml +++ b/.github/workflows/close-and-release-repository.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: repository: - description: 'Manually trigger release in case of timeout from previous publishing' + description: 'Manually trigger gradle closeAndReleaseRepository task in case of timeout from previous publishing' jobs: closeAndReleaseRepository: @@ -20,9 +20,7 @@ jobs: java-version: 11 - name: Publish Release to Maven Central - run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace + run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel --repository ${{ inputs.repository }} env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} - ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} - ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 8a5616e..913f790 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -47,26 +47,23 @@ jobs: distribution: 'zulu' java-version: 11 - - name: Retrieve version - run: echo "PACKAGE_VERSION=$(cat VERSION)" >> $GITHUB_ENV - - - name: Publish to Maven Central - run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace - if: "!endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')" + - name: Upload Artifacts + run: ./gradlew publishToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} - - name: Publish Snapshot - run: ./gradlew publishToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace - if: "endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')" + - name: Retrieve version + run: echo "PACKAGE_VERSION=$(cat VERSION)" >> $GITHUB_ENV + + - name: Publish Release to Maven Central + run: ./gradlew releaseRepository --no-daemon --no-parallel + if: "!endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} - ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} - ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} # This job runs on merging to "v1" branch # Creates a new tag using the value in the VERSION file diff --git a/README.md b/README.md index 4373e76..39f2b4a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Add this dependency to your project's POM: com.dropbox.sign dropbox-sign - 1.12.0 + 1.13.0 compile ``` @@ -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" } ``` @@ -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 @@ -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` diff --git a/VERSION b/VERSION index 0eed1a2..feaae22 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.12.0 +1.13.0 diff --git a/build.gradle b/build.gradle index d89537c..0a6fe07 100644 --- a/build.gradle +++ b/build.gradle @@ -1,33 +1,44 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.+' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' + classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0' + } +} plugins { - id 'java' id 'com.vanniktech.maven.publish' version '0.34.0' id 'com.diffplug.spotless' version '6.25.0' } -group = 'com.dropbox.sign' -version = '1.12.0' +apply plugin: 'java' +apply plugin: 'maven-publish' +apply plugin: 'signing' -base { - archivesName.set('dropbox-sign') -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} +group = 'com.dropbox.sign' +archivesBaseName = 'dropbox-sign' +version = '1.13.0' +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 repositories { mavenCentral() } -tasks.withType(JavaCompile).configureEach { +tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } -tasks.withType(Javadoc).configureEach { +if (JavaVersion.current().isJava8Compatible()) { + tasks.withType(Javadoc) { + // disable the crazy super-strict doclint tool in Java 8 + //noinspection SpellCheckingInspection options.addStringOption('Xdoclint:none', '-quiet') + } } task javadocJar(type: Jar) { @@ -57,6 +68,53 @@ artifacts { archives javadocJar, sourcesJar, fatJar } +publishing { + publications { + mavenJava(MavenPublication) { + pom { + name = 'Dropbox Sign' + packaging = 'jar' + // optionally artifactId can be defined here + artifactId = 'dropbox-sign' + description = 'Use the Dropbox SIgn Java SDK to connect your Java app to Dropbox Sign\'s service in microseconds!' + url = 'https://www.hellosign.com/' + + scm { + connection = 'scm:git:git://github.com/hellosign/dropbox-sign-java.git' + developerConnection = 'scm:git:git@github.com:hellosign/dropbox-sign-java.git' + url = 'https://github.com/hellosign/dropbox-sign-java' + } + + licenses { + license { + name = 'MIT License' + url = 'http://www.opensource.org/licenses/mit-license.php' + } + } + + developers { + developer { + name = 'Dropbox Sign API Team' + email = 'apisupport@hellosign.com' + url = 'https://www.hellosign.com' + } + } + } + } + } + repositories { + maven { + def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" + def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + credentials { + username findProperty('ossrhUsername') + password findProperty('ossrhPassword') + } + } + } +} + ext { swagger_annotations_version = "1.6.5" jackson_version = "2.17.1" diff --git a/build.sbt b/build.sbt index edd0ec0..05537b7 100644 --- a/build.sbt +++ b/build.sbt @@ -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"), diff --git a/docs/SignatureRequestCreateEmbeddedRequest.md b/docs/SignatureRequestCreateEmbeddedRequest.md index 5c9fb86..383f8a8 100644 --- a/docs/SignatureRequestCreateEmbeddedRequest.md +++ b/docs/SignatureRequestCreateEmbeddedRequest.md @@ -30,7 +30,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/SignatureRequestEditEmbeddedRequest.md b/docs/SignatureRequestEditEmbeddedRequest.md index 6bceed3..dd8b060 100644 --- a/docs/SignatureRequestEditEmbeddedRequest.md +++ b/docs/SignatureRequestEditEmbeddedRequest.md @@ -30,7 +30,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/SignatureRequestEditRequest.md b/docs/SignatureRequestEditRequest.md index 382ad28..b4705fe 100644 --- a/docs/SignatureRequestEditRequest.md +++ b/docs/SignatureRequestEditRequest.md @@ -32,7 +32,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/SignatureRequestSendRequest.md b/docs/SignatureRequestSendRequest.md index ae4a659..a34284a 100644 --- a/docs/SignatureRequestSendRequest.md +++ b/docs/SignatureRequestSendRequest.md @@ -33,7 +33,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/TemplateCreateEmbeddedDraftRequest.md b/docs/TemplateCreateEmbeddedDraftRequest.md index 667458f..05f2497 100644 --- a/docs/TemplateCreateEmbeddedDraftRequest.md +++ b/docs/TemplateCreateEmbeddedDraftRequest.md @@ -33,7 +33,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `usePreexistingFields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | diff --git a/docs/TemplateCreateRequest.md b/docs/TemplateCreateRequest.md index 11576ad..5f99510 100644 --- a/docs/TemplateCreateRequest.md +++ b/docs/TemplateCreateRequest.md @@ -26,7 +26,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `usePreexistingFields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | diff --git a/docs/TemplateResponseDocumentFormFieldDropdown.md b/docs/TemplateResponseDocumentFormFieldDropdown.md index 70e5da4..9d975d4 100644 --- a/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -10,6 +10,7 @@ This class extends `TemplateResponseDocumentFormFieldBase` |------------ | ------------- | ------------- | -------------| | `type`*_required_ | ```String``` | The type of this form field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentFormFieldText`
* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentFormFieldRadio`
* Signature Field uses `TemplateResponseDocumentFormFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`
* 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``` | The options available for this dropdown form field. | | diff --git a/docs/UnclaimedDraftCreateEmbeddedRequest.md b/docs/UnclaimedDraftCreateEmbeddedRequest.md index 531a6b0..aab362d 100644 --- a/docs/UnclaimedDraftCreateEmbeddedRequest.md +++ b/docs/UnclaimedDraftCreateEmbeddedRequest.md @@ -42,7 +42,6 @@ | `type` | [```TypeEnum```](#TypeEnum) | The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. | | | `usePreexistingFields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | | `useTextTags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | | diff --git a/docs/UnclaimedDraftCreateRequest.md b/docs/UnclaimedDraftCreateRequest.md index 9b2de66..f23c6f4 100644 --- a/docs/UnclaimedDraftCreateRequest.md +++ b/docs/UnclaimedDraftCreateRequest.md @@ -31,7 +31,6 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | | | `usePreexistingFields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | | `useTextTags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | -| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | | diff --git a/gradle.properties b/gradle.properties index 63b6665..446e538 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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! diff --git a/openapi-config.yaml b/openapi-config.yaml index 139706d..f772d21 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -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 diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index ac9e788..ba50232 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -8553,10 +8553,6 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false populate_auto_fill_fields: description: |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. @@ -8802,10 +8798,6 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false expires_at: description: 'When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer @@ -8951,10 +8943,6 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false populate_auto_fill_fields: description: |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. @@ -9310,10 +9298,6 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false expires_at: description: 'When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer @@ -10671,10 +10655,6 @@ components: description: 'Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`).' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false type: object TemplateCreateEmbeddedDraftRequest: required: @@ -10817,10 +10797,6 @@ components: description: 'Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`).' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false type: object TemplateRemoveUserRequest: properties: @@ -11000,10 +10976,6 @@ components: description: 'Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both.' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false expires_at: description: |- When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -11194,10 +11166,6 @@ components: description: 'Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both.' type: boolean default: false - ignore_text_tags_extraction_errors: - description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' - type: boolean - default: false populate_auto_fill_fields: description: |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. @@ -13104,6 +13072,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`' diff --git a/pom.xml b/pom.xml index 788c4c1..29cb179 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ dropbox-sign jar dropbox-sign - 1.12.0 + 1.13.0 https://github.com/hellosign/dropbox-sign-java Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/src/main/java/com/dropbox/sign/ApiClient.java b/src/main/java/com/dropbox/sign/ApiClient.java index d0aa94d..1ece0d7 100644 --- a/src/main/java/com/dropbox/sign/ApiClient.java +++ b/src/main/java/com/dropbox/sign/ApiClient.java @@ -147,7 +147,7 @@ public ApiClient(Map 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<>(); diff --git a/src/main/java/com/dropbox/sign/Configuration.java b/src/main/java/com/dropbox/sign/Configuration.java index 291d81f..3502780 100644 --- a/src/main/java/com/dropbox/sign/Configuration.java +++ b/src/main/java/com/dropbox/sign/Configuration.java @@ -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(); diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java index 619de9b..8e1987c 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java @@ -50,7 +50,6 @@ SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_TITLE, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_USE_TEXT_TAGS, - SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) @@ -127,10 +126,6 @@ public class SignatureRequestCreateEmbeddedRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @javax.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -807,31 +802,6 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestCreateEmbeddedRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - public SignatureRequestCreateEmbeddedRequest populateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -933,9 +903,6 @@ public boolean equals(Object o) { && Objects.equals(this.title, signatureRequestCreateEmbeddedRequest.title) && Objects.equals( this.useTextTags, signatureRequestCreateEmbeddedRequest.useTextTags) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - signatureRequestCreateEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals( this.populateAutoFillFields, signatureRequestCreateEmbeddedRequest.populateAutoFillFields) @@ -967,7 +934,6 @@ public int hashCode() { testMode, title, useTextTags, - ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @@ -1000,9 +966,6 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append(" populateAutoFillFields: ") .append(toIndentedString(populateAutoFillFields)) .append("\n"); @@ -1447,30 +1410,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } if (populateAutoFillFields != null) { if (isFileTypeOrListOfFiles(populateAutoFillFields)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java index 7e81329..7529464 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java @@ -50,7 +50,6 @@ SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_TITLE, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_USE_TEXT_TAGS, - SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) @@ -127,10 +126,6 @@ public class SignatureRequestEditEmbeddedRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @javax.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -803,31 +798,6 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestEditEmbeddedRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - public SignatureRequestEditEmbeddedRequest populateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -926,9 +896,6 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, signatureRequestEditEmbeddedRequest.testMode) && Objects.equals(this.title, signatureRequestEditEmbeddedRequest.title) && Objects.equals(this.useTextTags, signatureRequestEditEmbeddedRequest.useTextTags) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - signatureRequestEditEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals( this.populateAutoFillFields, signatureRequestEditEmbeddedRequest.populateAutoFillFields) @@ -960,7 +927,6 @@ public int hashCode() { testMode, title, useTextTags, - ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @@ -993,9 +959,6 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append(" populateAutoFillFields: ") .append(toIndentedString(populateAutoFillFields)) .append("\n"); @@ -1440,30 +1403,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } if (populateAutoFillFields != null) { if (isFileTypeOrListOfFiles(populateAutoFillFields)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java index 16d8e42..85a485a 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java @@ -52,7 +52,6 @@ SignatureRequestEditRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestEditRequest.JSON_PROPERTY_TITLE, SignatureRequestEditRequest.JSON_PROPERTY_USE_TEXT_TAGS, - SignatureRequestEditRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestEditRequest.JSON_PROPERTY_EXPIRES_AT }) @javax.annotation.Generated( @@ -134,10 +133,6 @@ public class SignatureRequestEditRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable private Integer expiresAt; @@ -849,31 +844,6 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestEditRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - public SignatureRequestEditRequest expiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -936,9 +906,6 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, signatureRequestEditRequest.testMode) && Objects.equals(this.title, signatureRequestEditRequest.title) && Objects.equals(this.useTextTags, signatureRequestEditRequest.useTextTags) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - signatureRequestEditRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, signatureRequestEditRequest.expiresAt); } @@ -969,7 +936,6 @@ public int hashCode() { testMode, title, useTextTags, - ignoreTextTagsExtractionErrors, expiresAt); } @@ -1005,9 +971,6 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); return sb.toString(); @@ -1489,30 +1452,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } if (expiresAt != null) { if (isFileTypeOrListOfFiles(expiresAt)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java index 9f66585..912bf0f 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java @@ -53,7 +53,6 @@ SignatureRequestSendRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestSendRequest.JSON_PROPERTY_TITLE, SignatureRequestSendRequest.JSON_PROPERTY_USE_TEXT_TAGS, - SignatureRequestSendRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestSendRequest.JSON_PROPERTY_EXPIRES_AT }) @javax.annotation.Generated( @@ -138,10 +137,6 @@ public class SignatureRequestSendRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable private Integer expiresAt; @@ -884,31 +879,6 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestSendRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - public SignatureRequestSendRequest expiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -973,9 +943,6 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, signatureRequestSendRequest.testMode) && Objects.equals(this.title, signatureRequestSendRequest.title) && Objects.equals(this.useTextTags, signatureRequestSendRequest.useTextTags) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - signatureRequestSendRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, signatureRequestSendRequest.expiresAt); } @@ -1007,7 +974,6 @@ public int hashCode() { testMode, title, useTextTags, - ignoreTextTagsExtractionErrors, expiresAt); } @@ -1046,9 +1012,6 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); return sb.toString(); @@ -1552,30 +1515,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } if (expiresAt != null) { if (isFileTypeOrListOfFiles(expiresAt)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java index df96f42..0061bf6 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java @@ -52,8 +52,7 @@ TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_SUBJECT, TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_TEST_MODE, TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_TITLE, - TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, - TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS + TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -136,10 +135,6 @@ public class TemplateCreateEmbeddedDraftRequest { public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; @javax.annotation.Nullable private Boolean usePreexistingFields = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public TemplateCreateEmbeddedDraftRequest() {} /** @@ -855,31 +850,6 @@ public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexi this.usePreexistingFields = usePreexistingFields; } - public TemplateCreateEmbeddedDraftRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - /** Return true if this TemplateCreateEmbeddedDraftRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -929,10 +899,7 @@ public boolean equals(Object o) { && Objects.equals(this.title, templateCreateEmbeddedDraftRequest.title) && Objects.equals( this.usePreexistingFields, - templateCreateEmbeddedDraftRequest.usePreexistingFields) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - templateCreateEmbeddedDraftRequest.ignoreTextTagsExtractionErrors); + templateCreateEmbeddedDraftRequest.usePreexistingFields); } @Override @@ -962,8 +929,7 @@ public int hashCode() { subject, testMode, title, - usePreexistingFields, - ignoreTextTagsExtractionErrors); + usePreexistingFields); } @Override @@ -1003,9 +969,6 @@ public String toString() { sb.append(" usePreexistingFields: ") .append(toIndentedString(usePreexistingFields)) .append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append("}"); return sb.toString(); } @@ -1512,30 +1475,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(usePreexistingFields)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java index 2a54368..8e3815a 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java @@ -45,8 +45,7 @@ TemplateCreateRequest.JSON_PROPERTY_SUBJECT, TemplateCreateRequest.JSON_PROPERTY_TEST_MODE, TemplateCreateRequest.JSON_PROPERTY_TITLE, - TemplateCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, - TemplateCreateRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS + TemplateCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -109,10 +108,6 @@ public class TemplateCreateRequest { public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; @javax.annotation.Nullable private Boolean usePreexistingFields = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public TemplateCreateRequest() {} /** @@ -654,31 +649,6 @@ public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexi this.usePreexistingFields = usePreexistingFields; } - public TemplateCreateRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - /** Return true if this TemplateCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -708,10 +678,7 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, templateCreateRequest.testMode) && Objects.equals(this.title, templateCreateRequest.title) && Objects.equals( - this.usePreexistingFields, templateCreateRequest.usePreexistingFields) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - templateCreateRequest.ignoreTextTagsExtractionErrors); + this.usePreexistingFields, templateCreateRequest.usePreexistingFields); } @Override @@ -734,8 +701,7 @@ public int hashCode() { subject, testMode, title, - usePreexistingFields, - ignoreTextTagsExtractionErrors); + usePreexistingFields); } @Override @@ -764,9 +730,6 @@ public String toString() { sb.append(" usePreexistingFields: ") .append(toIndentedString(usePreexistingFields)) .append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append("}"); return sb.toString(); } @@ -1129,30 +1092,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(usePreexistingFields)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java index 109b341..86de698 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java @@ -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 `TemplateResponseDocumentFormFieldBase` */ @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", @@ -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 options = null; + public TemplateResponseDocumentFormFieldDropdown() {} /** @@ -122,6 +128,37 @@ public void setGroup(@javax.annotation.Nullable String group) { this.group = group; } + public TemplateResponseDocumentFormFieldDropdown options( + @javax.annotation.Nullable List 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 getOptions() { + return options; + } + + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOptions(@javax.annotation.Nullable List options) { + this.options = options; + } + /** Return true if this TemplateResponseDocumentFormFieldDropdown object is equal to o. */ @Override public boolean equals(Object o) { @@ -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 @@ -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(); } @@ -195,6 +234,24 @@ public Map 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); } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java index 18ad7b8..4b75803 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java @@ -64,7 +64,6 @@ UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_TYPE, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_USE_TEXT_TAGS, - UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) @@ -212,10 +211,6 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @javax.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -1176,31 +1171,6 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public UnclaimedDraftCreateEmbeddedRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -1327,9 +1297,6 @@ public boolean equals(Object o) { this.usePreexistingFields, unclaimedDraftCreateEmbeddedRequest.usePreexistingFields) && Objects.equals(this.useTextTags, unclaimedDraftCreateEmbeddedRequest.useTextTags) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - unclaimedDraftCreateEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals( this.populateAutoFillFields, unclaimedDraftCreateEmbeddedRequest.populateAutoFillFields) @@ -1373,7 +1340,6 @@ public int hashCode() { type, usePreexistingFields, useTextTags, - ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @@ -1432,9 +1398,6 @@ public String toString() { .append(toIndentedString(usePreexistingFields)) .append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append(" populateAutoFillFields: ") .append(toIndentedString(populateAutoFillFields)) .append("\n"); @@ -2137,30 +2100,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } if (populateAutoFillFields != null) { if (isFileTypeOrListOfFiles(populateAutoFillFields)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java index 3bd0086..0b0b6b6 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java @@ -53,7 +53,6 @@ UnclaimedDraftCreateRequest.JSON_PROPERTY_TEST_MODE, UnclaimedDraftCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, UnclaimedDraftCreateRequest.JSON_PROPERTY_USE_TEXT_TAGS, - UnclaimedDraftCreateRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, UnclaimedDraftCreateRequest.JSON_PROPERTY_EXPIRES_AT }) @javax.annotation.Generated( @@ -168,10 +167,6 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; - public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = - "ignore_text_tags_extraction_errors"; - @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; - public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable private Integer expiresAt; @@ -857,31 +852,6 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public UnclaimedDraftCreateRequest ignoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - return this; - } - - /** - * Sent with a value of `true` to ignore the validation errors from text tags - * extraction. Defaults to `false`. - * - * @return ignoreTextTagsExtractionErrors - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIgnoreTextTagsExtractionErrors() { - return ignoreTextTagsExtractionErrors; - } - - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIgnoreTextTagsExtractionErrors( - @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { - this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; - } - public UnclaimedDraftCreateRequest expiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -946,9 +916,6 @@ public boolean equals(Object o) { && Objects.equals( this.usePreexistingFields, unclaimedDraftCreateRequest.usePreexistingFields) && Objects.equals(this.useTextTags, unclaimedDraftCreateRequest.useTextTags) - && Objects.equals( - this.ignoreTextTagsExtractionErrors, - unclaimedDraftCreateRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, unclaimedDraftCreateRequest.expiresAt); } @@ -978,7 +945,6 @@ public int hashCode() { testMode, usePreexistingFields, useTextTags, - ignoreTextTagsExtractionErrors, expiresAt); } @@ -1017,9 +983,6 @@ public String toString() { .append(toIndentedString(usePreexistingFields)) .append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); - sb.append(" ignoreTextTagsExtractionErrors: ") - .append(toIndentedString(ignoreTextTagsExtractionErrors)) - .append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); return sb.toString(); @@ -1487,30 +1450,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } - if (ignoreTextTagsExtractionErrors != null) { - if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { - fileTypeFound = true; - } - - if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) - || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) - || ignoreTextTagsExtractionErrors.getClass().equals(String.class) - || ignoreTextTagsExtractionErrors.getClass().isEnum()) { - map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); - } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { - for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { - map.put( - "ignore_text_tags_extraction_errors[" + i + "]", - getFromList(ignoreTextTagsExtractionErrors, i)); - } - } else { - map.put( - "ignore_text_tags_extraction_errors", - JSON.getDefault() - .getMapper() - .writeValueAsString(ignoreTextTagsExtractionErrors)); - } - } if (expiresAt != null) { if (isFileTypeOrListOfFiles(expiresAt)) { fileTypeFound = true; diff --git a/templates/libraries/jersey2/build.gradle.mustache b/templates/libraries/jersey2/build.gradle.mustache index 2339cfe..deeb879 100644 --- a/templates/libraries/jersey2/build.gradle.mustache +++ b/templates/libraries/jersey2/build.gradle.mustache @@ -7,7 +7,6 @@ group = '{{groupId}}' version = '{{artifactVersion}}' {{/useCustomTemplateCode}} -{{^useCustomTemplateCode}} buildscript { repositories { mavenCentral() @@ -15,29 +14,30 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:2.3.+' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' +{{^useCustomTemplateCode}} classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.3.0' +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} + classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0' +{{/useCustomTemplateCode}} } } -{{/useCustomTemplateCode}} {{#useCustomTemplateCode}} plugins { - id 'java' id 'com.vanniktech.maven.publish' version '0.34.0' id 'com.diffplug.spotless' version '6.25.0' } +apply plugin: 'java' +apply plugin: 'maven-publish' +apply plugin: 'signing' + group = '{{groupId}}' +archivesBaseName = '{{artifactId}}' version = '{{artifactVersion}}' - -base { - archivesName.set('{{artifactId}}') -} - -java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 -} +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 {{/useCustomTemplateCode}} repositories { @@ -123,12 +123,16 @@ if(hasProperty('target') && target == 'android') { } {{/useCustomTemplateCode}} {{#useCustomTemplateCode}} -tasks.withType(JavaCompile).configureEach { +tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } -tasks.withType(Javadoc).configureEach { +if (JavaVersion.current().isJava8Compatible()) { + tasks.withType(Javadoc) { + // disable the crazy super-strict doclint tool in Java 8 + //noinspection SpellCheckingInspection options.addStringOption('Xdoclint:none', '-quiet') + } } task javadocJar(type: Jar) { @@ -157,6 +161,53 @@ processResources { artifacts { archives javadocJar, sourcesJar, fatJar } + +publishing { + publications { + mavenJava(MavenPublication) { + pom { + name = 'Dropbox Sign' + packaging = 'jar' + // optionally artifactId can be defined here + artifactId = '{{artifactId}}' + description = 'Use the Dropbox SIgn Java SDK to connect your Java app to Dropbox Sign\'s service in microseconds!' + url = 'https://www.hellosign.com/' + + scm { + connection = '{{scmConnection}}' + developerConnection = '{{scmDeveloperConnection}}' + url = '{{scmUrl}}' + } + + licenses { + license { + name = '{{licenseName}}' + url = 'http://www.opensource.org/licenses/mit-license.php' + } + } + + developers { + developer { + name = '{{developerName}}' + email = '{{developerEmail}}' + url = 'https://www.hellosign.com' + } + } + } + } + } + repositories { + maven { + def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" + def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + credentials { + username findProperty('ossrhUsername') + password findProperty('ossrhPassword') + } + } + } +} {{/useCustomTemplateCode}} ext { From e231da5c8b7f8b93e95de0dcc48278e37ef90fcc Mon Sep 17 00:00:00 2001 From: mchatlas Date: Thu, 3 Sep 2026 14:38:05 +0200 Subject: [PATCH 2/2] Keep release scoped to dropdown options --- .../close-and-release-repository.yml | 6 +- .github/workflows/github-actions.yml | 19 +++-- build.gradle | 82 +++---------------- docs/SignatureRequestCreateEmbeddedRequest.md | 1 + docs/SignatureRequestEditEmbeddedRequest.md | 1 + docs/SignatureRequestEditRequest.md | 1 + docs/SignatureRequestSendRequest.md | 1 + docs/TemplateCreateEmbeddedDraftRequest.md | 1 + docs/TemplateCreateRequest.md | 1 + docs/UnclaimedDraftCreateEmbeddedRequest.md | 1 + docs/UnclaimedDraftCreateRequest.md | 1 + openapi-sdk.yaml | 32 ++++++++ ...SignatureRequestCreateEmbeddedRequest.java | 61 ++++++++++++++ .../SignatureRequestEditEmbeddedRequest.java | 61 ++++++++++++++ .../model/SignatureRequestEditRequest.java | 61 ++++++++++++++ .../model/SignatureRequestSendRequest.java | 61 ++++++++++++++ .../TemplateCreateEmbeddedDraftRequest.java | 67 ++++++++++++++- .../sign/model/TemplateCreateRequest.java | 67 ++++++++++++++- .../UnclaimedDraftCreateEmbeddedRequest.java | 61 ++++++++++++++ .../model/UnclaimedDraftCreateRequest.java | 61 ++++++++++++++ .../libraries/jersey2/build.gradle.mustache | 79 ++++-------------- 21 files changed, 575 insertions(+), 151 deletions(-) diff --git a/.github/workflows/close-and-release-repository.yml b/.github/workflows/close-and-release-repository.yml index 4aed1f0..8f07b7e 100644 --- a/.github/workflows/close-and-release-repository.yml +++ b/.github/workflows/close-and-release-repository.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: repository: - description: 'Manually trigger gradle closeAndReleaseRepository task in case of timeout from previous publishing' + description: 'Manually trigger release in case of timeout from previous publishing' jobs: closeAndReleaseRepository: @@ -20,7 +20,9 @@ jobs: java-version: 11 - name: Publish Release to Maven Central - run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel --repository ${{ inputs.repository }} + run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 913f790..8a5616e 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -47,23 +47,26 @@ jobs: distribution: 'zulu' java-version: 11 - - name: Upload Artifacts - run: ./gradlew publishToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace + - name: Retrieve version + run: echo "PACKAGE_VERSION=$(cat VERSION)" >> $GITHUB_ENV + + - name: Publish to Maven Central + run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace + if: "!endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} - - name: Retrieve version - run: echo "PACKAGE_VERSION=$(cat VERSION)" >> $GITHUB_ENV - - - name: Publish Release to Maven Central - run: ./gradlew releaseRepository --no-daemon --no-parallel - if: "!endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')" + - name: Publish Snapshot + run: ./gradlew publishToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace + if: "endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} # This job runs on merging to "v1" branch # Creates a new tag using the value in the VERSION file diff --git a/build.gradle b/build.gradle index 0a6fe07..40479cb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,44 +1,33 @@ -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.3.+' - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' - classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0' - } -} plugins { + id 'java' id 'com.vanniktech.maven.publish' version '0.34.0' id 'com.diffplug.spotless' version '6.25.0' } -apply plugin: 'java' -apply plugin: 'maven-publish' -apply plugin: 'signing' - group = 'com.dropbox.sign' -archivesBaseName = 'dropbox-sign' version = '1.13.0' -sourceCompatibility = JavaVersion.VERSION_1_8 -targetCompatibility = JavaVersion.VERSION_1_8 + +base { + archivesName.set('dropbox-sign') +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} repositories { mavenCentral() } -tasks.withType(JavaCompile) { +tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } -if (JavaVersion.current().isJava8Compatible()) { - tasks.withType(Javadoc) { - // disable the crazy super-strict doclint tool in Java 8 - //noinspection SpellCheckingInspection +tasks.withType(Javadoc).configureEach { options.addStringOption('Xdoclint:none', '-quiet') - } } task javadocJar(type: Jar) { @@ -68,53 +57,6 @@ artifacts { archives javadocJar, sourcesJar, fatJar } -publishing { - publications { - mavenJava(MavenPublication) { - pom { - name = 'Dropbox Sign' - packaging = 'jar' - // optionally artifactId can be defined here - artifactId = 'dropbox-sign' - description = 'Use the Dropbox SIgn Java SDK to connect your Java app to Dropbox Sign\'s service in microseconds!' - url = 'https://www.hellosign.com/' - - scm { - connection = 'scm:git:git://github.com/hellosign/dropbox-sign-java.git' - developerConnection = 'scm:git:git@github.com:hellosign/dropbox-sign-java.git' - url = 'https://github.com/hellosign/dropbox-sign-java' - } - - licenses { - license { - name = 'MIT License' - url = 'http://www.opensource.org/licenses/mit-license.php' - } - } - - developers { - developer { - name = 'Dropbox Sign API Team' - email = 'apisupport@hellosign.com' - url = 'https://www.hellosign.com' - } - } - } - } - } - repositories { - maven { - def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - credentials { - username findProperty('ossrhUsername') - password findProperty('ossrhPassword') - } - } - } -} - ext { swagger_annotations_version = "1.6.5" jackson_version = "2.17.1" diff --git a/docs/SignatureRequestCreateEmbeddedRequest.md b/docs/SignatureRequestCreateEmbeddedRequest.md index 383f8a8..5c9fb86 100644 --- a/docs/SignatureRequestCreateEmbeddedRequest.md +++ b/docs/SignatureRequestCreateEmbeddedRequest.md @@ -30,6 +30,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/SignatureRequestEditEmbeddedRequest.md b/docs/SignatureRequestEditEmbeddedRequest.md index dd8b060..6bceed3 100644 --- a/docs/SignatureRequestEditEmbeddedRequest.md +++ b/docs/SignatureRequestEditEmbeddedRequest.md @@ -30,6 +30,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/SignatureRequestEditRequest.md b/docs/SignatureRequestEditRequest.md index b4705fe..382ad28 100644 --- a/docs/SignatureRequestEditRequest.md +++ b/docs/SignatureRequestEditRequest.md @@ -32,6 +32,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/SignatureRequestSendRequest.md b/docs/SignatureRequestSendRequest.md index a34284a..ae4a659 100644 --- a/docs/SignatureRequestSendRequest.md +++ b/docs/SignatureRequestSendRequest.md @@ -33,6 +33,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | | diff --git a/docs/TemplateCreateEmbeddedDraftRequest.md b/docs/TemplateCreateEmbeddedDraftRequest.md index 05f2497..667458f 100644 --- a/docs/TemplateCreateEmbeddedDraftRequest.md +++ b/docs/TemplateCreateEmbeddedDraftRequest.md @@ -33,6 +33,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `usePreexistingFields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | diff --git a/docs/TemplateCreateRequest.md b/docs/TemplateCreateRequest.md index 5f99510..11576ad 100644 --- a/docs/TemplateCreateRequest.md +++ b/docs/TemplateCreateRequest.md @@ -26,6 +26,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `usePreexistingFields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | diff --git a/docs/UnclaimedDraftCreateEmbeddedRequest.md b/docs/UnclaimedDraftCreateEmbeddedRequest.md index aab362d..531a6b0 100644 --- a/docs/UnclaimedDraftCreateEmbeddedRequest.md +++ b/docs/UnclaimedDraftCreateEmbeddedRequest.md @@ -42,6 +42,7 @@ | `type` | [```TypeEnum```](#TypeEnum) | The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. | | | `usePreexistingFields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | | `useTextTags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.

**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | | diff --git a/docs/UnclaimedDraftCreateRequest.md b/docs/UnclaimedDraftCreateRequest.md index f23c6f4..9b2de66 100644 --- a/docs/UnclaimedDraftCreateRequest.md +++ b/docs/UnclaimedDraftCreateRequest.md @@ -31,6 +31,7 @@ | `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | | | `usePreexistingFields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | | `useTextTags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | | +| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | | | `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.

**NOTE:** This does not correspond to the **expires_at** returned in the response. | | diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index ba50232..576b442 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -8553,6 +8553,10 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false populate_auto_fill_fields: description: |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. @@ -8798,6 +8802,10 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false expires_at: description: 'When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer @@ -8943,6 +8951,10 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false populate_auto_fill_fields: description: |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. @@ -9298,6 +9310,10 @@ components: description: 'Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`.' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false expires_at: description: 'When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer @@ -10655,6 +10671,10 @@ components: description: 'Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`).' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false type: object TemplateCreateEmbeddedDraftRequest: required: @@ -10797,6 +10817,10 @@ components: description: 'Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`).' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false type: object TemplateRemoveUserRequest: properties: @@ -10976,6 +11000,10 @@ components: description: 'Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both.' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false expires_at: description: |- When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. @@ -11166,6 +11194,10 @@ components: description: 'Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both.' type: boolean default: false + ignore_text_tags_extraction_errors: + description: 'Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`.' + type: boolean + default: false populate_auto_fill_fields: description: |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java index 8e1987c..619de9b 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java @@ -50,6 +50,7 @@ SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_TITLE, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_USE_TEXT_TAGS, + SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) @@ -126,6 +127,10 @@ public class SignatureRequestCreateEmbeddedRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @javax.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -802,6 +807,31 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } + public SignatureRequestCreateEmbeddedRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + public SignatureRequestCreateEmbeddedRequest populateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -903,6 +933,9 @@ public boolean equals(Object o) { && Objects.equals(this.title, signatureRequestCreateEmbeddedRequest.title) && Objects.equals( this.useTextTags, signatureRequestCreateEmbeddedRequest.useTextTags) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + signatureRequestCreateEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals( this.populateAutoFillFields, signatureRequestCreateEmbeddedRequest.populateAutoFillFields) @@ -934,6 +967,7 @@ public int hashCode() { testMode, title, useTextTags, + ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @@ -966,6 +1000,9 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append(" populateAutoFillFields: ") .append(toIndentedString(populateAutoFillFields)) .append("\n"); @@ -1410,6 +1447,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } if (populateAutoFillFields != null) { if (isFileTypeOrListOfFiles(populateAutoFillFields)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java index 7529464..7e81329 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java @@ -50,6 +50,7 @@ SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_TITLE, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_USE_TEXT_TAGS, + SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) @@ -126,6 +127,10 @@ public class SignatureRequestEditEmbeddedRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @javax.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -798,6 +803,31 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } + public SignatureRequestEditEmbeddedRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + public SignatureRequestEditEmbeddedRequest populateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -896,6 +926,9 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, signatureRequestEditEmbeddedRequest.testMode) && Objects.equals(this.title, signatureRequestEditEmbeddedRequest.title) && Objects.equals(this.useTextTags, signatureRequestEditEmbeddedRequest.useTextTags) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + signatureRequestEditEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals( this.populateAutoFillFields, signatureRequestEditEmbeddedRequest.populateAutoFillFields) @@ -927,6 +960,7 @@ public int hashCode() { testMode, title, useTextTags, + ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @@ -959,6 +993,9 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append(" populateAutoFillFields: ") .append(toIndentedString(populateAutoFillFields)) .append("\n"); @@ -1403,6 +1440,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } if (populateAutoFillFields != null) { if (isFileTypeOrListOfFiles(populateAutoFillFields)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java index 85a485a..16d8e42 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java @@ -52,6 +52,7 @@ SignatureRequestEditRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestEditRequest.JSON_PROPERTY_TITLE, SignatureRequestEditRequest.JSON_PROPERTY_USE_TEXT_TAGS, + SignatureRequestEditRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestEditRequest.JSON_PROPERTY_EXPIRES_AT }) @javax.annotation.Generated( @@ -133,6 +134,10 @@ public class SignatureRequestEditRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable private Integer expiresAt; @@ -844,6 +849,31 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } + public SignatureRequestEditRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + public SignatureRequestEditRequest expiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -906,6 +936,9 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, signatureRequestEditRequest.testMode) && Objects.equals(this.title, signatureRequestEditRequest.title) && Objects.equals(this.useTextTags, signatureRequestEditRequest.useTextTags) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + signatureRequestEditRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, signatureRequestEditRequest.expiresAt); } @@ -936,6 +969,7 @@ public int hashCode() { testMode, title, useTextTags, + ignoreTextTagsExtractionErrors, expiresAt); } @@ -971,6 +1005,9 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); return sb.toString(); @@ -1452,6 +1489,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } if (expiresAt != null) { if (isFileTypeOrListOfFiles(expiresAt)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java index 912bf0f..9f66585 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java @@ -53,6 +53,7 @@ SignatureRequestSendRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestSendRequest.JSON_PROPERTY_TITLE, SignatureRequestSendRequest.JSON_PROPERTY_USE_TEXT_TAGS, + SignatureRequestSendRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestSendRequest.JSON_PROPERTY_EXPIRES_AT }) @javax.annotation.Generated( @@ -137,6 +138,10 @@ public class SignatureRequestSendRequest { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable private Integer expiresAt; @@ -879,6 +884,31 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } + public SignatureRequestSendRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + public SignatureRequestSendRequest expiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -943,6 +973,9 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, signatureRequestSendRequest.testMode) && Objects.equals(this.title, signatureRequestSendRequest.title) && Objects.equals(this.useTextTags, signatureRequestSendRequest.useTextTags) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + signatureRequestSendRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, signatureRequestSendRequest.expiresAt); } @@ -974,6 +1007,7 @@ public int hashCode() { testMode, title, useTextTags, + ignoreTextTagsExtractionErrors, expiresAt); } @@ -1012,6 +1046,9 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); return sb.toString(); @@ -1515,6 +1552,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } if (expiresAt != null) { if (isFileTypeOrListOfFiles(expiresAt)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java index 0061bf6..df96f42 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java @@ -52,7 +52,8 @@ TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_SUBJECT, TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_TEST_MODE, TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_TITLE, - TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS + TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, + TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -135,6 +136,10 @@ public class TemplateCreateEmbeddedDraftRequest { public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; @javax.annotation.Nullable private Boolean usePreexistingFields = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public TemplateCreateEmbeddedDraftRequest() {} /** @@ -850,6 +855,31 @@ public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexi this.usePreexistingFields = usePreexistingFields; } + public TemplateCreateEmbeddedDraftRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + /** Return true if this TemplateCreateEmbeddedDraftRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -899,7 +929,10 @@ public boolean equals(Object o) { && Objects.equals(this.title, templateCreateEmbeddedDraftRequest.title) && Objects.equals( this.usePreexistingFields, - templateCreateEmbeddedDraftRequest.usePreexistingFields); + templateCreateEmbeddedDraftRequest.usePreexistingFields) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + templateCreateEmbeddedDraftRequest.ignoreTextTagsExtractionErrors); } @Override @@ -929,7 +962,8 @@ public int hashCode() { subject, testMode, title, - usePreexistingFields); + usePreexistingFields, + ignoreTextTagsExtractionErrors); } @Override @@ -969,6 +1003,9 @@ public String toString() { sb.append(" usePreexistingFields: ") .append(toIndentedString(usePreexistingFields)) .append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -1475,6 +1512,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(usePreexistingFields)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java index 8e3815a..2a54368 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java @@ -45,7 +45,8 @@ TemplateCreateRequest.JSON_PROPERTY_SUBJECT, TemplateCreateRequest.JSON_PROPERTY_TEST_MODE, TemplateCreateRequest.JSON_PROPERTY_TITLE, - TemplateCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS + TemplateCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, + TemplateCreateRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -108,6 +109,10 @@ public class TemplateCreateRequest { public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; @javax.annotation.Nullable private Boolean usePreexistingFields = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public TemplateCreateRequest() {} /** @@ -649,6 +654,31 @@ public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexi this.usePreexistingFields = usePreexistingFields; } + public TemplateCreateRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + /** Return true if this TemplateCreateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -678,7 +708,10 @@ public boolean equals(Object o) { && Objects.equals(this.testMode, templateCreateRequest.testMode) && Objects.equals(this.title, templateCreateRequest.title) && Objects.equals( - this.usePreexistingFields, templateCreateRequest.usePreexistingFields); + this.usePreexistingFields, templateCreateRequest.usePreexistingFields) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + templateCreateRequest.ignoreTextTagsExtractionErrors); } @Override @@ -701,7 +734,8 @@ public int hashCode() { subject, testMode, title, - usePreexistingFields); + usePreexistingFields, + ignoreTextTagsExtractionErrors); } @Override @@ -730,6 +764,9 @@ public String toString() { sb.append(" usePreexistingFields: ") .append(toIndentedString(usePreexistingFields)) .append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -1092,6 +1129,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(usePreexistingFields)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java index 4b75803..18ad7b8 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java @@ -64,6 +64,7 @@ UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_TYPE, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_USE_TEXT_TAGS, + UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) @@ -211,6 +212,10 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @javax.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -1171,6 +1176,31 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } + public UnclaimedDraftCreateEmbeddedRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -1297,6 +1327,9 @@ public boolean equals(Object o) { this.usePreexistingFields, unclaimedDraftCreateEmbeddedRequest.usePreexistingFields) && Objects.equals(this.useTextTags, unclaimedDraftCreateEmbeddedRequest.useTextTags) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + unclaimedDraftCreateEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals( this.populateAutoFillFields, unclaimedDraftCreateEmbeddedRequest.populateAutoFillFields) @@ -1340,6 +1373,7 @@ public int hashCode() { type, usePreexistingFields, useTextTags, + ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @@ -1398,6 +1432,9 @@ public String toString() { .append(toIndentedString(usePreexistingFields)) .append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append(" populateAutoFillFields: ") .append(toIndentedString(populateAutoFillFields)) .append("\n"); @@ -2100,6 +2137,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } if (populateAutoFillFields != null) { if (isFileTypeOrListOfFiles(populateAutoFillFields)) { fileTypeFound = true; diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java index 0b0b6b6..3bd0086 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java @@ -53,6 +53,7 @@ UnclaimedDraftCreateRequest.JSON_PROPERTY_TEST_MODE, UnclaimedDraftCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, UnclaimedDraftCreateRequest.JSON_PROPERTY_USE_TEXT_TAGS, + UnclaimedDraftCreateRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, UnclaimedDraftCreateRequest.JSON_PROPERTY_EXPIRES_AT }) @javax.annotation.Generated( @@ -167,6 +168,10 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; @javax.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = + "ignore_text_tags_extraction_errors"; + @javax.annotation.Nullable private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable private Integer expiresAt; @@ -852,6 +857,31 @@ public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } + public UnclaimedDraftCreateRequest ignoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + return this; + } + + /** + * Sent with a value of `true` to ignore the validation errors from text tags + * extraction. Defaults to `false`. + * + * @return ignoreTextTagsExtractionErrors + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIgnoreTextTagsExtractionErrors() { + return ignoreTextTagsExtractionErrors; + } + + @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIgnoreTextTagsExtractionErrors( + @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + public UnclaimedDraftCreateRequest expiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -916,6 +946,9 @@ public boolean equals(Object o) { && Objects.equals( this.usePreexistingFields, unclaimedDraftCreateRequest.usePreexistingFields) && Objects.equals(this.useTextTags, unclaimedDraftCreateRequest.useTextTags) + && Objects.equals( + this.ignoreTextTagsExtractionErrors, + unclaimedDraftCreateRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, unclaimedDraftCreateRequest.expiresAt); } @@ -945,6 +978,7 @@ public int hashCode() { testMode, usePreexistingFields, useTextTags, + ignoreTextTagsExtractionErrors, expiresAt); } @@ -983,6 +1017,9 @@ public String toString() { .append(toIndentedString(usePreexistingFields)) .append("\n"); sb.append(" useTextTags: ").append(toIndentedString(useTextTags)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ") + .append(toIndentedString(ignoreTextTagsExtractionErrors)) + .append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); return sb.toString(); @@ -1450,6 +1487,30 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(useTextTags)); } } + if (ignoreTextTagsExtractionErrors != null) { + if (isFileTypeOrListOfFiles(ignoreTextTagsExtractionErrors)) { + fileTypeFound = true; + } + + if (ignoreTextTagsExtractionErrors.getClass().equals(java.io.File.class) + || ignoreTextTagsExtractionErrors.getClass().equals(Integer.class) + || ignoreTextTagsExtractionErrors.getClass().equals(String.class) + || ignoreTextTagsExtractionErrors.getClass().isEnum()) { + map.put("ignore_text_tags_extraction_errors", ignoreTextTagsExtractionErrors); + } else if (isListOfFile(ignoreTextTagsExtractionErrors)) { + for (int i = 0; i < getListSize(ignoreTextTagsExtractionErrors); i++) { + map.put( + "ignore_text_tags_extraction_errors[" + i + "]", + getFromList(ignoreTextTagsExtractionErrors, i)); + } + } else { + map.put( + "ignore_text_tags_extraction_errors", + JSON.getDefault() + .getMapper() + .writeValueAsString(ignoreTextTagsExtractionErrors)); + } + } if (expiresAt != null) { if (isFileTypeOrListOfFiles(expiresAt)) { fileTypeFound = true; diff --git a/templates/libraries/jersey2/build.gradle.mustache b/templates/libraries/jersey2/build.gradle.mustache index deeb879..2339cfe 100644 --- a/templates/libraries/jersey2/build.gradle.mustache +++ b/templates/libraries/jersey2/build.gradle.mustache @@ -7,6 +7,7 @@ group = '{{groupId}}' version = '{{artifactVersion}}' {{/useCustomTemplateCode}} +{{^useCustomTemplateCode}} buildscript { repositories { mavenCentral() @@ -14,30 +15,29 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:2.3.+' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' -{{^useCustomTemplateCode}} classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.3.0' -{{/useCustomTemplateCode}} -{{#useCustomTemplateCode}} - classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0' -{{/useCustomTemplateCode}} } } +{{/useCustomTemplateCode}} {{#useCustomTemplateCode}} plugins { + id 'java' id 'com.vanniktech.maven.publish' version '0.34.0' id 'com.diffplug.spotless' version '6.25.0' } -apply plugin: 'java' -apply plugin: 'maven-publish' -apply plugin: 'signing' - group = '{{groupId}}' -archivesBaseName = '{{artifactId}}' version = '{{artifactVersion}}' -sourceCompatibility = JavaVersion.VERSION_1_8 -targetCompatibility = JavaVersion.VERSION_1_8 + +base { + archivesName.set('{{artifactId}}') +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} {{/useCustomTemplateCode}} repositories { @@ -123,16 +123,12 @@ if(hasProperty('target') && target == 'android') { } {{/useCustomTemplateCode}} {{#useCustomTemplateCode}} -tasks.withType(JavaCompile) { +tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } -if (JavaVersion.current().isJava8Compatible()) { - tasks.withType(Javadoc) { - // disable the crazy super-strict doclint tool in Java 8 - //noinspection SpellCheckingInspection +tasks.withType(Javadoc).configureEach { options.addStringOption('Xdoclint:none', '-quiet') - } } task javadocJar(type: Jar) { @@ -161,53 +157,6 @@ processResources { artifacts { archives javadocJar, sourcesJar, fatJar } - -publishing { - publications { - mavenJava(MavenPublication) { - pom { - name = 'Dropbox Sign' - packaging = 'jar' - // optionally artifactId can be defined here - artifactId = '{{artifactId}}' - description = 'Use the Dropbox SIgn Java SDK to connect your Java app to Dropbox Sign\'s service in microseconds!' - url = 'https://www.hellosign.com/' - - scm { - connection = '{{scmConnection}}' - developerConnection = '{{scmDeveloperConnection}}' - url = '{{scmUrl}}' - } - - licenses { - license { - name = '{{licenseName}}' - url = 'http://www.opensource.org/licenses/mit-license.php' - } - } - - developers { - developer { - name = '{{developerName}}' - email = '{{developerEmail}}' - url = 'https://www.hellosign.com' - } - } - } - } - } - repositories { - maven { - def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - credentials { - username findProperty('ossrhUsername') - password findProperty('ossrhPassword') - } - } - } -} {{/useCustomTemplateCode}} ext {