From ab287b1b5724408dc1cb430f0808586d0791ed14 Mon Sep 17 00:00:00 2001 From: mchatlas Date: Mon, 10 Aug 2026 15:34:42 +0200 Subject: [PATCH] Release 2.8.0 --- README.md | 8 +-- VERSION | 2 +- build.gradle | 2 +- 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 + docs/UnclaimedDraftCreateEmbeddedRequest.md | 1 + docs/UnclaimedDraftCreateRequest.md | 1 + gradle.properties | 2 +- openapi-config.yaml | 2 +- openapi-sdk.yaml | 32 +++++++++++ pom.xml | 2 +- src/main/java/com/dropbox/sign/ApiClient.java | 2 +- .../java/com/dropbox/sign/Configuration.java | 2 +- ...SignatureRequestCreateEmbeddedRequest.java | 53 ++++++++++++++++- .../SignatureRequestEditEmbeddedRequest.java | 53 ++++++++++++++++- .../model/SignatureRequestEditRequest.java | 53 ++++++++++++++++- .../model/SignatureRequestSendRequest.java | 53 ++++++++++++++++- .../TemplateCreateEmbeddedDraftRequest.java | 57 ++++++++++++++++++- .../sign/model/TemplateCreateRequest.java | 57 ++++++++++++++++++- .../UnclaimedDraftCreateEmbeddedRequest.java | 53 ++++++++++++++++- .../model/UnclaimedDraftCreateRequest.java | 53 ++++++++++++++++- test_fixtures/FileResponse.json | 2 +- ...SignatureRequestCreateEmbeddedRequest.json | 6 +- .../SignatureRequestSendRequest.json | 6 +- .../TemplateCreateEmbeddedDraftRequest.json | 3 +- .../UnclaimedDraftCreateEmbeddedRequest.json | 3 +- .../UnclaimedDraftCreateRequest.json | 3 +- 32 files changed, 487 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index b093e80..9e23234 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Add this dependency to your project's POM: com.dropbox.sign dropbox-sign - 2.7.0 + 2.8.0 compile ``` @@ -72,7 +72,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.dropbox.sign:dropbox-sign:2.7.0" + implementation "com.dropbox.sign:dropbox-sign:2.8.0" } ``` @@ -86,7 +86,7 @@ mvn clean package Then manually install the following JARs: -- `target/dropbox-sign-2.7.0.jar` +- `target/dropbox-sign-2.8.0.jar` - `target/lib/*.jar` ## Getting Started @@ -453,7 +453,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: `2.7.0` + - Package version: `2.8.0` - Build package: `org.openapitools.codegen.languages.JavaClientCodegen` diff --git a/VERSION b/VERSION index 24ba9a3..834f262 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.7.0 +2.8.0 diff --git a/build.gradle b/build.gradle index ef19ec0..884fda2 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } group = 'com.dropbox.sign' -version = '2.7.0' +version = '2.8.0' base { archivesName.set('dropbox-sign') diff --git a/build.sbt b/build.sbt index c6bad0c..d5f9f59 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 := "2.7.0", + version := "2.8.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), 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/gradle.properties b/gradle.properties index 3654f15..196afc4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ #target = android GROUP=com.dropbox.sign POM_ARTIFACT_ID=dropbox-sign -VERSION_NAME=2.7.0 +VERSION_NAME=2.8.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 3b3f26b..0bb171d 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -18,7 +18,7 @@ additionalProperties: groupId: com.dropbox.sign artifactId: dropbox-sign artifactName: Dropbox Sign Java SDK - artifactVersion: "2.7.0" + artifactVersion: "2.8.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 ed174d3..ac9e788 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/pom.xml b/pom.xml index 124a2bf..4d14a5c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ dropbox-sign jar dropbox-sign - 2.7.0 + 2.8.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 5478ebb..bc0fafe 100644 --- a/src/main/java/com/dropbox/sign/ApiClient.java +++ b/src/main/java/com/dropbox/sign/ApiClient.java @@ -159,7 +159,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.7.0/java"); + setUserAgent("OpenAPI-Generator/2.8.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 34c60de..3e57d03 100644 --- a/src/main/java/com/dropbox/sign/Configuration.java +++ b/src/main/java/com/dropbox/sign/Configuration.java @@ -15,7 +15,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "2.7.0"; + public static final String VERSION = "2.8.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 3002dec..ef2c003 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java @@ -69,6 +69,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 }) @@ -163,6 +164,10 @@ public class SignatureRequestCreateEmbeddedRequest { @jakarta.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -827,6 +832,31 @@ public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { } + public SignatureRequestCreateEmbeddedRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + public SignatureRequestCreateEmbeddedRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; @@ -911,13 +941,14 @@ public boolean equals(Object o) { Objects.equals(this.testMode, signatureRequestCreateEmbeddedRequest.testMode) && Objects.equals(this.title, signatureRequestCreateEmbeddedRequest.title) && Objects.equals(this.useTextTags, signatureRequestCreateEmbeddedRequest.useTextTags) && + Objects.equals(this.ignoreTextTagsExtractionErrors, signatureRequestCreateEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.populateAutoFillFields, signatureRequestCreateEmbeddedRequest.populateAutoFillFields) && Objects.equals(this.expiresAt, signatureRequestCreateEmbeddedRequest.expiresAt); } @Override public int hashCode() { - return Objects.hash(clientId, files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, message, metadata, signingOptions, subject, testMode, title, useTextTags, populateAutoFillFields, expiresAt); + return Objects.hash(clientId, files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, message, metadata, signingOptions, subject, testMode, title, useTextTags, ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @Override @@ -946,6 +977,7 @@ 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"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); @@ -1374,6 +1406,25 @@ public Map createFormData() throws ApiException { map.put("use_text_tags", 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 9a40b64..67cae5b 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java @@ -69,6 +69,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 }) @@ -163,6 +164,10 @@ public class SignatureRequestEditEmbeddedRequest { @jakarta.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -827,6 +832,31 @@ public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { } + public SignatureRequestEditEmbeddedRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + public SignatureRequestEditEmbeddedRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; @@ -911,13 +941,14 @@ 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) && Objects.equals(this.expiresAt, signatureRequestEditEmbeddedRequest.expiresAt); } @Override public int hashCode() { - return Objects.hash(clientId, files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, message, metadata, signingOptions, subject, testMode, title, useTextTags, populateAutoFillFields, expiresAt); + return Objects.hash(clientId, files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, message, metadata, signingOptions, subject, testMode, title, useTextTags, ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @Override @@ -946,6 +977,7 @@ 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"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); @@ -1374,6 +1406,25 @@ public Map createFormData() throws ApiException { map.put("use_text_tags", 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 9ca66e0..719186c 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java @@ -71,6 +71,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 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @@ -172,6 +173,10 @@ public class SignatureRequestEditRequest { @jakarta.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @jakarta.annotation.Nullable private Integer expiresAt; @@ -882,6 +887,31 @@ public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { } + public SignatureRequestEditRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + public SignatureRequestEditRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -943,12 +973,13 @@ 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); } @Override public int hashCode() { - return Objects.hash(files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, clientId, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, isEid, message, metadata, signingOptions, signingRedirectUrl, subject, testMode, title, useTextTags, expiresAt); + return Objects.hash(files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, clientId, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, isEid, message, metadata, signingOptions, signingRedirectUrl, subject, testMode, title, useTextTags, ignoreTextTagsExtractionErrors, expiresAt); } @Override @@ -979,6 +1010,7 @@ 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(); @@ -1444,6 +1476,25 @@ public Map createFormData() throws ApiException { map.put("use_text_tags", 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 89792b2..7e5620f 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java @@ -72,6 +72,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 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @@ -178,6 +179,10 @@ public class SignatureRequestSendRequest { @jakarta.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @jakarta.annotation.Nullable private Integer expiresAt; @@ -917,6 +922,31 @@ public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { } + public SignatureRequestSendRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + public SignatureRequestSendRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -979,12 +1009,13 @@ 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); } @Override public int hashCode() { - return Objects.hash(files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, clientId, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, isQualifiedSignature, isEid, message, metadata, signingOptions, signingRedirectUrl, subject, testMode, title, useTextTags, expiresAt); + return Objects.hash(files, fileUrls, signers, groupedSigners, allowDecline, allowReassign, attachments, ccEmailAddresses, clientId, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, isQualifiedSignature, isEid, message, metadata, signingOptions, signingRedirectUrl, subject, testMode, title, useTextTags, ignoreTextTagsExtractionErrors, expiresAt); } @Override @@ -1016,6 +1047,7 @@ 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(); @@ -1500,6 +1532,25 @@ public Map createFormData() throws ApiException { map.put("use_text_tags", 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 d7786da..816e474 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java @@ -70,7 +70,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 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) @@ -175,6 +176,10 @@ public class TemplateCreateEmbeddedDraftRequest { @jakarta.annotation.Nullable private Boolean usePreexistingFields = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public TemplateCreateEmbeddedDraftRequest() { } @@ -898,6 +903,31 @@ public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePree } + public TemplateCreateEmbeddedDraftRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + /** * Return true if this TemplateCreateEmbeddedDraftRequest object is equal to o. */ @@ -934,12 +964,13 @@ public boolean equals(Object o) { Objects.equals(this.subject, templateCreateEmbeddedDraftRequest.subject) && Objects.equals(this.testMode, templateCreateEmbeddedDraftRequest.testMode) && Objects.equals(this.title, templateCreateEmbeddedDraftRequest.title) && - Objects.equals(this.usePreexistingFields, templateCreateEmbeddedDraftRequest.usePreexistingFields); + Objects.equals(this.usePreexistingFields, templateCreateEmbeddedDraftRequest.usePreexistingFields) && + Objects.equals(this.ignoreTextTagsExtractionErrors, templateCreateEmbeddedDraftRequest.ignoreTextTagsExtractionErrors); } @Override public int hashCode() { - return Objects.hash(clientId, files, fileUrls, allowCcs, allowReassign, attachments, ccRoles, editorOptions, fieldOptions, forceSignerRoles, forceSubjectMessage, formFieldGroups, formFieldRules, formFieldsPerDocument, mergeFields, message, metadata, showPreview, showProgressStepper, signerRoles, skipMeNow, subject, testMode, title, usePreexistingFields); + return Objects.hash(clientId, files, fileUrls, allowCcs, allowReassign, attachments, ccRoles, editorOptions, fieldOptions, forceSignerRoles, forceSubjectMessage, formFieldGroups, formFieldRules, formFieldsPerDocument, mergeFields, message, metadata, showPreview, showProgressStepper, signerRoles, skipMeNow, subject, testMode, title, usePreexistingFields, ignoreTextTagsExtractionErrors); } @Override @@ -971,6 +1002,7 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" usePreexistingFields: ").append(toIndentedString(usePreexistingFields)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ").append(toIndentedString(ignoreTextTagsExtractionErrors)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1454,6 +1486,25 @@ public Map createFormData() throws ApiException { map.put("use_preexisting_fields", 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 2a353e0..b5cedf1 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java @@ -62,7 +62,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 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) @@ -139,6 +140,10 @@ public class TemplateCreateRequest { @jakarta.annotation.Nullable private Boolean usePreexistingFields = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public TemplateCreateRequest() { } @@ -687,6 +692,31 @@ public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePree } + public TemplateCreateRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + /** * Return true if this TemplateCreateRequest object is equal to o. */ @@ -716,12 +746,13 @@ public boolean equals(Object o) { Objects.equals(this.subject, templateCreateRequest.subject) && Objects.equals(this.testMode, templateCreateRequest.testMode) && Objects.equals(this.title, templateCreateRequest.title) && - Objects.equals(this.usePreexistingFields, templateCreateRequest.usePreexistingFields); + Objects.equals(this.usePreexistingFields, templateCreateRequest.usePreexistingFields) && + Objects.equals(this.ignoreTextTagsExtractionErrors, templateCreateRequest.ignoreTextTagsExtractionErrors); } @Override public int hashCode() { - return Objects.hash(formFieldsPerDocument, signerRoles, files, fileUrls, allowReassign, attachments, ccRoles, clientId, fieldOptions, formFieldGroups, formFieldRules, mergeFields, message, metadata, subject, testMode, title, usePreexistingFields); + return Objects.hash(formFieldsPerDocument, signerRoles, files, fileUrls, allowReassign, attachments, ccRoles, clientId, fieldOptions, formFieldGroups, formFieldRules, mergeFields, message, metadata, subject, testMode, title, usePreexistingFields, ignoreTextTagsExtractionErrors); } @Override @@ -746,6 +777,7 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" usePreexistingFields: ").append(toIndentedString(usePreexistingFields)).append("\n"); + sb.append(" ignoreTextTagsExtractionErrors: ").append(toIndentedString(ignoreTextTagsExtractionErrors)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1096,6 +1128,25 @@ public Map createFormData() throws ApiException { map.put("use_preexisting_fields", 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 0c762b6..7c24adc 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java @@ -81,6 +81,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 }) @@ -258,6 +259,10 @@ public static TypeEnum fromValue(String value) { @jakarta.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; @@ -1214,6 +1219,31 @@ public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { } + public UnclaimedDraftCreateEmbeddedRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; @@ -1310,13 +1340,14 @@ public boolean equals(Object o) { Objects.equals(this.type, unclaimedDraftCreateEmbeddedRequest.type) && Objects.equals(this.usePreexistingFields, unclaimedDraftCreateEmbeddedRequest.usePreexistingFields) && Objects.equals(this.useTextTags, unclaimedDraftCreateEmbeddedRequest.useTextTags) && + Objects.equals(this.ignoreTextTagsExtractionErrors, unclaimedDraftCreateEmbeddedRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.populateAutoFillFields, unclaimedDraftCreateEmbeddedRequest.populateAutoFillFields) && Objects.equals(this.expiresAt, unclaimedDraftCreateEmbeddedRequest.expiresAt); } @Override public int hashCode() { - return Objects.hash(clientId, requesterEmailAddress, files, fileUrls, allowCcs, allowDecline, allowReassign, attachments, ccEmailAddresses, customFields, editorOptions, fieldOptions, forceSignerPage, forceSubjectMessage, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, holdRequest, isForEmbeddedSigning, message, metadata, requestingRedirectUrl, showPreview, showProgressStepper, signers, signingOptions, signingRedirectUrl, skipMeNow, subject, testMode, type, usePreexistingFields, useTextTags, populateAutoFillFields, expiresAt); + return Objects.hash(clientId, requesterEmailAddress, files, fileUrls, allowCcs, allowDecline, allowReassign, attachments, ccEmailAddresses, customFields, editorOptions, fieldOptions, forceSignerPage, forceSubjectMessage, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, holdRequest, isForEmbeddedSigning, message, metadata, requestingRedirectUrl, showPreview, showProgressStepper, signers, signingOptions, signingRedirectUrl, skipMeNow, subject, testMode, type, usePreexistingFields, useTextTags, ignoreTextTagsExtractionErrors, populateAutoFillFields, expiresAt); } @Override @@ -1357,6 +1388,7 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" usePreexistingFields: ").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"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append("}"); @@ -2013,6 +2045,25 @@ public Map createFormData() throws ApiException { map.put("use_text_tags", 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 58a7375..28d1325 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java @@ -69,6 +69,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 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @@ -201,6 +202,10 @@ public static TypeEnum fromValue(String value) { @jakarta.annotation.Nullable private Boolean useTextTags = false; + public static final String JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS = "ignore_text_tags_extraction_errors"; + @jakarta.annotation.Nullable + private Boolean ignoreTextTagsExtractionErrors = false; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @jakarta.annotation.Nullable private Integer expiresAt; @@ -878,6 +883,31 @@ public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { } + public UnclaimedDraftCreateRequest ignoreTextTagsExtractionErrors(@jakarta.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 + */ + @jakarta.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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { + this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; + } + + public UnclaimedDraftCreateRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; @@ -938,12 +968,13 @@ public boolean equals(Object o) { Objects.equals(this.testMode, unclaimedDraftCreateRequest.testMode) && Objects.equals(this.usePreexistingFields, unclaimedDraftCreateRequest.usePreexistingFields) && Objects.equals(this.useTextTags, unclaimedDraftCreateRequest.useTextTags) && + Objects.equals(this.ignoreTextTagsExtractionErrors, unclaimedDraftCreateRequest.ignoreTextTagsExtractionErrors) && Objects.equals(this.expiresAt, unclaimedDraftCreateRequest.expiresAt); } @Override public int hashCode() { - return Objects.hash(type, files, fileUrls, allowDecline, attachments, ccEmailAddresses, clientId, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, message, metadata, showProgressStepper, signers, signingOptions, signingRedirectUrl, subject, testMode, usePreexistingFields, useTextTags, expiresAt); + return Objects.hash(type, files, fileUrls, allowDecline, attachments, ccEmailAddresses, clientId, customFields, fieldOptions, formFieldGroups, formFieldRules, formFieldsPerDocument, hideTextTags, message, metadata, showProgressStepper, signers, signingOptions, signingRedirectUrl, subject, testMode, usePreexistingFields, useTextTags, ignoreTextTagsExtractionErrors, expiresAt); } @Override @@ -973,6 +1004,7 @@ public String toString() { sb.append(" testMode: ").append(toIndentedString(testMode)).append("\n"); sb.append(" usePreexistingFields: ").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(); @@ -1419,6 +1451,25 @@ public Map createFormData() throws ApiException { map.put("use_text_tags", 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/test_fixtures/FileResponse.json b/test_fixtures/FileResponse.json index 42417f5..e38e42f 100644 --- a/test_fixtures/FileResponse.json +++ b/test_fixtures/FileResponse.json @@ -1,6 +1,6 @@ { "default": { - "file_url": "https://s3.amazonaws.com/hellofax_uploads/super_groups/2016/03/18/9aba07a585d7e223b4f137c8981c5e5892893c00/merged-completed.pdf?AWSAccessKeyId=AKIAJWEWDFQHQMBECJZA&Expires=1452868903&Signature=M%2FNDS%2BQre8xjPvzm7fHf%2BjO8Zbc%3D", + "file_url": "https://s3.amazonaws.com/hellofax_uploads/super_groups/2016/03/18/9aba07a585d7e223b4f137c8981c5e5892893c00/merged-completed.pdf?AWSAccessKeyId=EXAMPLE_ACCESS_KEY_ID&Expires=1452868903&Signature=EXAMPLE_SIGNATURE", "expires_at": 1458605123 } } diff --git a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json index 097446a..3b62c46 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json @@ -122,7 +122,8 @@ "subject": "The NDA we talked about", "test_mode": true, "title": "NDA with Acme Co.", - "use_text_tags": false + "use_text_tags": false, + "ignore_text_tags_extraction_errors": false }, "with_grouped_signers": { "allow_decline": true, @@ -259,6 +260,7 @@ "subject": "The NDA we talked about", "test_mode": true, "title": "NDA with Acme Co.", - "use_text_tags": false + "use_text_tags": false, + "ignore_text_tags_extraction_errors": false } } diff --git a/test_fixtures/SignatureRequestSendRequest.json b/test_fixtures/SignatureRequestSendRequest.json index 1f56eb7..d5e59f7 100644 --- a/test_fixtures/SignatureRequestSendRequest.json +++ b/test_fixtures/SignatureRequestSendRequest.json @@ -236,7 +236,8 @@ "subject": "The NDA we talked about", "test_mode": true, "title": "NDA with Acme Co.", - "use_text_tags": true + "use_text_tags": true, + "ignore_text_tags_extraction_errors": false }, "with_grouped_signers": { "allow_decline": true, @@ -476,6 +477,7 @@ "subject": "The NDA we talked about", "test_mode": true, "title": "NDA with Acme Co.", - "use_text_tags": true + "use_text_tags": true, + "ignore_text_tags_extraction_errors": false } } diff --git a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json index b293945..96919f9 100644 --- a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +++ b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json @@ -120,6 +120,7 @@ "subject": "Please sign this document", "test_mode": true, "title": "Test Template", - "use_preexisting_fields": true + "use_preexisting_fields": true, + "ignore_text_tags_extraction_errors": false } } diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json index addbe6a..4cdf5e1 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json @@ -137,6 +137,7 @@ "test_mode": true, "type": "send_document", "use_preexisting_fields": true, - "use_text_tags": true + "use_text_tags": true, + "ignore_text_tags_extraction_errors": false } } diff --git a/test_fixtures/UnclaimedDraftCreateRequest.json b/test_fixtures/UnclaimedDraftCreateRequest.json index a9ab5b5..008df32 100644 --- a/test_fixtures/UnclaimedDraftCreateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateRequest.json @@ -122,6 +122,7 @@ "test_mode": true, "type": "send_document", "use_preexisting_fields": true, - "use_text_tags": true + "use_text_tags": true, + "ignore_text_tags_extraction_errors": false } }