From 943c9e1e48e386e108ac82ceaa489fa35d8c3c95 Mon Sep 17 00:00:00 2001 From: mchatlas Date: Thu, 3 Sep 2026 14:32:19 +0200 Subject: [PATCH 1/2] Release 1.14.0 --- .travis.yml | 2 +- Gemfile.lock | 18 +- README.md | 8 +- VERSION | 2 +- docs/ErrorResponseError.md | 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 - lib/dropbox-sign/api/account_api.rb | 12 +- lib/dropbox-sign/api/api_app_api.rb | 13 +- lib/dropbox-sign/api/bulk_send_job_api.rb | 6 +- lib/dropbox-sign/api/embedded_api.rb | 6 +- lib/dropbox-sign/api/fax_api.rb | 13 +- lib/dropbox-sign/api/fax_line_api.rb | 19 +- lib/dropbox-sign/api/o_auth_api.rb | 6 +- lib/dropbox-sign/api/report_api.rb | 3 +- lib/dropbox-sign/api/signature_request_api.rb | 56 +- lib/dropbox-sign/api/team_api.rb | 28 +- lib/dropbox-sign/api/template_api.rb | 31 +- lib/dropbox-sign/api/unclaimed_draft_api.rb | 12 +- .../models/error_response_error.rb | 2 +- ...gnature_request_create_embedded_request.rb | 15 +- ...signature_request_edit_embedded_request.rb | 15 +- .../models/signature_request_edit_request.rb | 15 +- .../models/signature_request_send_request.rb | 15 +- .../template_create_embedded_draft_request.rb | 21 +- .../models/template_create_request.rb | 21 +- ...e_response_document_form_field_dropdown.rb | 23 +- ...unclaimed_draft_create_embedded_request.rb | 15 +- .../models/unclaimed_draft_create_request.rb | 15 +- lib/dropbox-sign/version.rb | 2 +- openapi-config.yaml | 2 +- openapi-sdk.yaml | 533 ++++-------------- spec/api/error_handling_spec.rb | 73 --- templates/api.mustache | 3 +- 41 files changed, 221 insertions(+), 795 deletions(-) delete mode 100644 spec/api/error_handling_spec.rb diff --git a/.travis.yml b/.travis.yml index e8df308..4cb4e2e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build dropbox-sign.gemspec - - gem install ./dropbox-sign-1.13.0.gem + - gem install ./dropbox-sign-1.14.0.gem diff --git a/Gemfile.lock b/Gemfile.lock index 53ba4af..4260043 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dropbox-sign (1.13.0) + dropbox-sign (1.14.0) typhoeus (~> 1.0, >= 1.0.1) GEM @@ -11,19 +11,17 @@ GEM byebug (11.1.3) coderay (1.1.3) diff-lcs (1.5.1) - ethon (0.18.0) + ethon (0.16.0) ffi (>= 1.15.0) - logger - ffi (1.17.4-aarch64-linux-gnu) - ffi (1.17.4-arm64-darwin) - ffi (1.17.4-x86_64-darwin) - ffi (1.17.4-x86_64-linux-gnu) + ffi (1.17.2-aarch64-linux-gnu) + ffi (1.17.2-arm64-darwin) + ffi (1.17.2-x86_64-darwin) + ffi (1.17.2-x86_64-linux-gnu) json (2.7.2) json_spec (1.1.5) multi_json (~> 1.0) rspec (>= 2.0, < 4.0) language_server-protocol (3.17.0.3) - logger (1.7.0) method_source (1.1.0) multi_json (1.15.0) parallel (1.26.3) @@ -66,8 +64,8 @@ GEM rubocop-ast (1.32.3) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) - typhoeus (1.6.0) - ethon (>= 0.18.0) + typhoeus (1.4.1) + ethon (>= 0.9.0) unicode-display_width (2.5.0) PLATFORMS diff --git a/README.md b/README.md index bdddf0d..bbb4e3a 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ directory that corresponds to the file you want updated. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- Package version: 1.13.0 +- Package version: 1.14.0 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -47,15 +47,15 @@ gem build dropbox-sign.gemspec Then install the gem locally: ```shell -gem install ./dropbox-sign-1.13.0.gem +gem install ./dropbox-sign-1.14.0.gem ``` -(for development, run `gem install --dev ./dropbox-sign-1.13.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./dropbox-sign-1.14.0.gem` to install the development dependencies) Finally add this to the Gemfile: - gem 'dropbox-sign', '~> 1.13.0' + gem 'dropbox-sign', '~> 1.14.0' ### Install from Git diff --git a/VERSION b/VERSION index feaae22..850e742 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.13.0 +1.14.0 diff --git a/docs/ErrorResponseError.md b/docs/ErrorResponseError.md index 21ef5eb..e18e403 100644 --- a/docs/ErrorResponseError.md +++ b/docs/ErrorResponseError.md @@ -7,6 +7,6 @@ Contains information about an error that occurred. | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `error_msg`*_required_ | ```String``` | Message describing an error. | | -| `error_name`*_required_ | ```String``` | Name of the error. See the `x-error-codes` catalog in openapi file for a complete list of possible error codes with detailed information including HTTP status codes, causes, remediation steps, and retry guidance. | | +| `error_name`*_required_ | ```String``` | Name of the error. | | | `error_path` | ```String``` | Path at which an error occurred. | | diff --git a/docs/SignatureRequestCreateEmbeddedRequest.md b/docs/SignatureRequestCreateEmbeddedRequest.md index c28a2b4..72ba0ee 100644 --- a/docs/SignatureRequestCreateEmbeddedRequest.md +++ b/docs/SignatureRequestCreateEmbeddedRequest.md @@ -28,7 +28,6 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `populate_auto_fill_fields` | ```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. | [default to false] | | `expires_at` | ```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 6a56a2e..383cd8e 100644 --- a/docs/SignatureRequestEditEmbeddedRequest.md +++ b/docs/SignatureRequestEditEmbeddedRequest.md @@ -28,7 +28,6 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `populate_auto_fill_fields` | ```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. | [default to false] | | `expires_at` | ```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 b7e4ffb..ce53250 100644 --- a/docs/SignatureRequestEditRequest.md +++ b/docs/SignatureRequestEditRequest.md @@ -30,6 +30,5 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `expires_at` | ```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 51bb1a2..ca6f167 100644 --- a/docs/SignatureRequestSendRequest.md +++ b/docs/SignatureRequestSendRequest.md @@ -31,6 +31,5 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `expires_at` | ```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 4cbd9bf..d23e4ce 100644 --- a/docs/TemplateCreateEmbeddedDraftRequest.md +++ b/docs/TemplateCreateEmbeddedDraftRequest.md @@ -31,5 +31,4 @@ | `test_mode` | ```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`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_preexisting_fields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | diff --git a/docs/TemplateCreateRequest.md b/docs/TemplateCreateRequest.md index 1d543e1..35e9df0 100644 --- a/docs/TemplateCreateRequest.md +++ b/docs/TemplateCreateRequest.md @@ -24,5 +24,4 @@ | `test_mode` | ```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`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_preexisting_fields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | diff --git a/docs/TemplateResponseDocumentFormFieldDropdown.md b/docs/TemplateResponseDocumentFormFieldDropdown.md index b224d10..377386f 100644 --- a/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -8,4 +8,5 @@ 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` | [default to 'dropdown'] | | `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` | ```Array``` | The options available for this dropdown form field. | | diff --git a/docs/UnclaimedDraftCreateEmbeddedRequest.md b/docs/UnclaimedDraftCreateEmbeddedRequest.md index 1023778..47acc39 100644 --- a/docs/UnclaimedDraftCreateEmbeddedRequest.md +++ b/docs/UnclaimedDraftCreateEmbeddedRequest.md @@ -40,7 +40,6 @@ | `type` | ```String``` | 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. | [default to 'request_signature'] | | `use_preexisting_fields` | ```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. | [default to false] | | `use_text_tags` | ```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. | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `populate_auto_fill_fields` | ```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. | [default to false] | | `expires_at` | ```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 75eab21..3eeacd5 100644 --- a/docs/UnclaimedDraftCreateRequest.md +++ b/docs/UnclaimedDraftCreateRequest.md @@ -29,6 +29,5 @@ | `test_mode` | ```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`. | [default to false] | | `use_preexisting_fields` | ```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. | [default to false] | | `use_text_tags` | ```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. | [default to false] | -| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `expires_at` | ```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/lib/dropbox-sign/api/account_api.rb b/lib/dropbox-sign/api/account_api.rb index 93a66cc..454dd21 100644 --- a/lib/dropbox-sign/api/account_api.rb +++ b/lib/dropbox-sign/api/account_api.rb @@ -111,7 +111,7 @@ def account_create_with_http_info(account_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def account_create_with_http_info(account_create_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -206,7 +205,7 @@ def account_get_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -218,7 +217,6 @@ def account_get_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -316,7 +314,7 @@ def account_update_with_http_info(account_update_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -328,7 +326,6 @@ def account_update_with_http_info(account_update_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -426,7 +423,7 @@ def account_verify_with_http_info(account_verify_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -438,7 +435,6 @@ def account_verify_with_http_info(account_verify_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/api_app_api.rb b/lib/dropbox-sign/api/api_app_api.rb index 55a35c7..a6fb785 100644 --- a/lib/dropbox-sign/api/api_app_api.rb +++ b/lib/dropbox-sign/api/api_app_api.rb @@ -111,7 +111,7 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -191,7 +190,6 @@ def api_app_delete_with_http_info(client_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -274,7 +272,7 @@ def api_app_get_with_http_info(client_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -286,7 +284,6 @@ def api_app_get_with_http_info(client_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -369,7 +366,7 @@ def api_app_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -381,7 +378,6 @@ def api_app_list_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -485,7 +481,7 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -497,7 +493,6 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/bulk_send_job_api.rb b/lib/dropbox-sign/api/bulk_send_job_api.rb index 69bd200..5f62840 100644 --- a/lib/dropbox-sign/api/bulk_send_job_api.rb +++ b/lib/dropbox-sign/api/bulk_send_job_api.rb @@ -102,7 +102,7 @@ def bulk_send_job_get_with_http_info(bulk_send_job_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -114,7 +114,6 @@ def bulk_send_job_get_with_http_info(bulk_send_job_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -197,7 +196,7 @@ def bulk_send_job_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -209,7 +208,6 @@ def bulk_send_job_list_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/embedded_api.rb b/lib/dropbox-sign/api/embedded_api.rb index efbc7f9..5724c49 100644 --- a/lib/dropbox-sign/api/embedded_api.rb +++ b/lib/dropbox-sign/api/embedded_api.rb @@ -117,7 +117,7 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -129,7 +129,6 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt e.message end - raise e end if @api_client.config.debugging @@ -212,7 +211,7 @@ def embedded_sign_url_with_http_info(signature_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -224,7 +223,6 @@ def embedded_sign_url_with_http_info(signature_id, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/fax_api.rb b/lib/dropbox-sign/api/fax_api.rb index f4cfda3..aac2bc9 100644 --- a/lib/dropbox-sign/api/fax_api.rb +++ b/lib/dropbox-sign/api/fax_api.rb @@ -81,7 +81,6 @@ def fax_delete_with_http_info(fax_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -164,7 +163,7 @@ def fax_files_with_http_info(fax_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -176,7 +175,6 @@ def fax_files_with_http_info(fax_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -259,7 +257,7 @@ def fax_get_with_http_info(fax_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -271,7 +269,6 @@ def fax_get_with_http_info(fax_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -366,7 +363,7 @@ def fax_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -378,7 +375,6 @@ def fax_list_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -476,7 +472,7 @@ def fax_send_with_http_info(fax_send_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -488,7 +484,6 @@ def fax_send_with_http_info(fax_send_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/fax_line_api.rb b/lib/dropbox-sign/api/fax_line_api.rb index 3c8a861..02d224c 100644 --- a/lib/dropbox-sign/api/fax_line_api.rb +++ b/lib/dropbox-sign/api/fax_line_api.rb @@ -111,7 +111,7 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -229,7 +228,7 @@ def fax_line_area_code_get_with_http_info(country, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -241,7 +240,6 @@ def fax_line_area_code_get_with_http_info(country, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -339,7 +337,7 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -351,7 +349,6 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -434,7 +431,6 @@ def fax_line_delete_with_http_info(fax_line_delete_request, opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -518,7 +514,7 @@ def fax_line_get_with_http_info(number, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -530,7 +526,6 @@ def fax_line_get_with_http_info(number, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -619,7 +614,7 @@ def fax_line_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -631,7 +626,6 @@ def fax_line_list_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -729,7 +723,7 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -741,7 +735,6 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/o_auth_api.rb b/lib/dropbox-sign/api/o_auth_api.rb index 24acc4f..ae9af5a 100644 --- a/lib/dropbox-sign/api/o_auth_api.rb +++ b/lib/dropbox-sign/api/o_auth_api.rb @@ -111,7 +111,7 @@ def oauth_token_generate_with_http_info(o_auth_token_generate_request, opts = {} range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def oauth_token_generate_with_http_info(o_auth_token_generate_request, opts = {} e.message end - raise e end if @api_client.config.debugging @@ -221,7 +220,7 @@ def oauth_token_refresh_with_http_info(o_auth_token_refresh_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -233,7 +232,6 @@ def oauth_token_refresh_with_http_info(o_auth_token_refresh_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/report_api.rb b/lib/dropbox-sign/api/report_api.rb index 9bbaf03..ee776ff 100644 --- a/lib/dropbox-sign/api/report_api.rb +++ b/lib/dropbox-sign/api/report_api.rb @@ -111,7 +111,7 @@ def report_create_with_http_info(report_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def report_create_with_http_info(report_create_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/signature_request_api.rb b/lib/dropbox-sign/api/signature_request_api.rb index cb68136..d2b9684 100644 --- a/lib/dropbox-sign/api/signature_request_api.rb +++ b/lib/dropbox-sign/api/signature_request_api.rb @@ -111,7 +111,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur e.message end - raise e end if @api_client.config.debugging @@ -221,7 +220,7 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -233,7 +232,6 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b e.message end - raise e end if @api_client.config.debugging @@ -301,7 +299,6 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -399,7 +396,7 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -411,7 +408,6 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em e.message end - raise e end if @api_client.config.debugging @@ -509,7 +505,7 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -521,7 +517,6 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req e.message end - raise e end if @api_client.config.debugging @@ -625,7 +620,7 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -637,7 +632,6 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques e.message end - raise e end if @api_client.config.debugging @@ -741,7 +735,7 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -753,7 +747,6 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu e.message end - raise e end if @api_client.config.debugging @@ -857,7 +850,7 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -869,7 +862,6 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque e.message end - raise e end if @api_client.config.debugging @@ -973,7 +965,7 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -985,7 +977,6 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si e.message end - raise e end if @api_client.config.debugging @@ -1075,7 +1066,7 @@ def signature_request_files_with_http_info(signature_request_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1087,7 +1078,6 @@ def signature_request_files_with_http_info(signature_request_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -1170,7 +1160,7 @@ def signature_request_files_as_data_uri_with_http_info(signature_request_id, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1182,7 +1172,6 @@ def signature_request_files_as_data_uri_with_http_info(signature_request_id, opt e.message end - raise e end if @api_client.config.debugging @@ -1268,7 +1257,7 @@ def signature_request_files_as_file_url_with_http_info(signature_request_id, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1280,7 +1269,6 @@ def signature_request_files_as_file_url_with_http_info(signature_request_id, opt e.message end - raise e end if @api_client.config.debugging @@ -1363,7 +1351,7 @@ def signature_request_get_with_http_info(signature_request_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1375,7 +1363,6 @@ def signature_request_get_with_http_info(signature_request_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -1464,7 +1451,7 @@ def signature_request_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1476,7 +1463,6 @@ def signature_request_list_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -1559,7 +1545,7 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1571,7 +1557,6 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { e.message end - raise e end if @api_client.config.debugging @@ -1675,7 +1660,7 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1687,7 +1672,6 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ e.message end - raise e end if @api_client.config.debugging @@ -1755,7 +1739,6 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -1853,7 +1836,7 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1865,7 +1848,6 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = e.message end - raise e end if @api_client.config.debugging @@ -1963,7 +1945,7 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1975,7 +1957,6 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w e.message end - raise e end if @api_client.config.debugging @@ -2079,7 +2060,7 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -2091,7 +2072,6 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/team_api.rb b/lib/dropbox-sign/api/team_api.rb index 4fbe8cb..1002a2d 100644 --- a/lib/dropbox-sign/api/team_api.rb +++ b/lib/dropbox-sign/api/team_api.rb @@ -114,7 +114,7 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -126,7 +126,6 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -224,7 +223,7 @@ def team_create_with_http_info(team_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -236,7 +235,6 @@ def team_create_with_http_info(team_create_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -298,7 +296,6 @@ def team_delete_with_http_info(opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -375,7 +372,7 @@ def team_get_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -387,7 +384,6 @@ def team_get_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -467,7 +463,7 @@ def team_info_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -479,7 +475,6 @@ def team_info_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -559,7 +554,7 @@ def team_invites_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -571,7 +566,6 @@ def team_invites_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -668,7 +662,7 @@ def team_members_with_http_info(team_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -680,7 +674,6 @@ def team_members_with_http_info(team_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -778,7 +771,7 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -790,7 +783,6 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -887,7 +879,7 @@ def team_sub_teams_with_http_info(team_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -899,7 +891,6 @@ def team_sub_teams_with_http_info(team_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -997,7 +988,7 @@ def team_update_with_http_info(team_update_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1009,7 +1000,6 @@ def team_update_with_http_info(team_update_request, opts = {}) e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/template_api.rb b/lib/dropbox-sign/api/template_api.rb index a649223..c43bf9e 100644 --- a/lib/dropbox-sign/api/template_api.rb +++ b/lib/dropbox-sign/api/template_api.rb @@ -117,7 +117,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -129,7 +129,6 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt e.message end - raise e end if @api_client.config.debugging @@ -227,7 +226,7 @@ def template_create_with_http_info(template_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -239,7 +238,6 @@ def template_create_with_http_info(template_create_request, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -337,7 +335,7 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -349,7 +347,6 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft e.message end - raise e end if @api_client.config.debugging @@ -417,7 +414,6 @@ def template_delete_with_http_info(template_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e - raise e end if @api_client.config.debugging @@ -507,7 +503,7 @@ def template_files_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -519,7 +515,6 @@ def template_files_with_http_info(template_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -602,7 +597,7 @@ def template_files_as_data_uri_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -614,7 +609,6 @@ def template_files_as_data_uri_with_http_info(template_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -700,7 +694,7 @@ def template_files_as_file_url_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -712,7 +706,6 @@ def template_files_as_file_url_with_http_info(template_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -795,7 +788,7 @@ def template_get_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -807,7 +800,6 @@ def template_get_with_http_info(template_id, opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -904,7 +896,7 @@ def template_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -916,7 +908,6 @@ def template_list_with_http_info(opts = {}) e.message end - raise e end if @api_client.config.debugging @@ -1020,7 +1011,7 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1032,7 +1023,6 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques e.message end - raise e end if @api_client.config.debugging @@ -1136,7 +1126,7 @@ def template_update_files_with_http_info(template_id, template_update_files_requ range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1148,7 +1138,6 @@ def template_update_files_with_http_info(template_id, template_update_files_requ e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/unclaimed_draft_api.rb b/lib/dropbox-sign/api/unclaimed_draft_api.rb index bf6e158..53ede89 100644 --- a/lib/dropbox-sign/api/unclaimed_draft_api.rb +++ b/lib/dropbox-sign/api/unclaimed_draft_api.rb @@ -111,7 +111,7 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,7 +123,6 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = e.message end - raise e end if @api_client.config.debugging @@ -221,7 +220,7 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -233,7 +232,6 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd e.message end - raise e end if @api_client.config.debugging @@ -331,7 +329,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -343,7 +341,6 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft e.message end - raise e end if @api_client.config.debugging @@ -447,7 +444,7 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -459,7 +456,6 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim e.message end - raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/models/error_response_error.rb b/lib/dropbox-sign/models/error_response_error.rb index baf8d72..b1b85ff 100644 --- a/lib/dropbox-sign/models/error_response_error.rb +++ b/lib/dropbox-sign/models/error_response_error.rb @@ -23,7 +23,7 @@ class ErrorResponseError # @return [String] attr_accessor :error_msg - # Name of the error. See the `x-error-codes` catalog in openapi file for a complete list of possible error codes with detailed information including HTTP status codes, causes, remediation steps, and retry guidance. + # Name of the error. # @return [String] attr_accessor :error_name diff --git a/lib/dropbox-sign/models/signature_request_create_embedded_request.rb b/lib/dropbox-sign/models/signature_request_create_embedded_request.rb index d6f857b..9ea5387 100644 --- a/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +++ b/lib/dropbox-sign/models/signature_request_create_embedded_request.rb @@ -104,10 +104,6 @@ class SignatureRequestCreateEmbeddedRequest # @return [Boolean] attr_accessor :use_text_tags - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # 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. # @return [Boolean] attr_accessor :populate_auto_fill_fields @@ -141,7 +137,6 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'populate_auto_fill_fields' => :'populate_auto_fill_fields', :'expires_at' => :'expires_at' } @@ -182,7 +177,6 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean', :'populate_auto_fill_fields' => :'Boolean', :'expires_at' => :'Integer' } @@ -356,12 +350,6 @@ def initialize(attributes = {}) self.use_text_tags = false end - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end - if attributes.key?(:'populate_auto_fill_fields') self.populate_auto_fill_fields = attributes[:'populate_auto_fill_fields'] else @@ -479,7 +467,6 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && populate_auto_fill_fields == o.populate_auto_fill_fields && expires_at == o.expires_at end @@ -493,7 +480,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, populate_auto_fill_fields, expires_at].hash + [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, populate_auto_fill_fields, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb b/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb index 7fc162d..eb9ece9 100644 --- a/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb +++ b/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb @@ -104,10 +104,6 @@ class SignatureRequestEditEmbeddedRequest # @return [Boolean] attr_accessor :use_text_tags - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # 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. # @return [Boolean] attr_accessor :populate_auto_fill_fields @@ -141,7 +137,6 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'populate_auto_fill_fields' => :'populate_auto_fill_fields', :'expires_at' => :'expires_at' } @@ -182,7 +177,6 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean', :'populate_auto_fill_fields' => :'Boolean', :'expires_at' => :'Integer' } @@ -356,12 +350,6 @@ def initialize(attributes = {}) self.use_text_tags = false end - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end - if attributes.key?(:'populate_auto_fill_fields') self.populate_auto_fill_fields = attributes[:'populate_auto_fill_fields'] else @@ -479,7 +467,6 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && populate_auto_fill_fields == o.populate_auto_fill_fields && expires_at == o.expires_at end @@ -493,7 +480,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, populate_auto_fill_fields, expires_at].hash + [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, populate_auto_fill_fields, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_edit_request.rb b/lib/dropbox-sign/models/signature_request_edit_request.rb index 43d7f12..68e7c2f 100644 --- a/lib/dropbox-sign/models/signature_request_edit_request.rb +++ b/lib/dropbox-sign/models/signature_request_edit_request.rb @@ -112,10 +112,6 @@ class SignatureRequestEditRequest # @return [Boolean] attr_accessor :use_text_tags - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # 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. # @return [Integer, nil] attr_accessor :expires_at @@ -147,7 +143,6 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'expires_at' => :'expires_at' } end @@ -189,7 +184,6 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean', :'expires_at' => :'Integer' } end @@ -372,12 +366,6 @@ def initialize(attributes = {}) self.use_text_tags = false end - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end - if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -476,7 +464,6 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && expires_at == o.expires_at end @@ -489,7 +476,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, expires_at].hash + [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_send_request.rb b/lib/dropbox-sign/models/signature_request_send_request.rb index dd3ad81..8dec7e4 100644 --- a/lib/dropbox-sign/models/signature_request_send_request.rb +++ b/lib/dropbox-sign/models/signature_request_send_request.rb @@ -116,10 +116,6 @@ class SignatureRequestSendRequest # @return [Boolean] attr_accessor :use_text_tags - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # 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. # @return [Integer, nil] attr_accessor :expires_at @@ -152,7 +148,6 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'expires_at' => :'expires_at' } end @@ -195,7 +190,6 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean', :'expires_at' => :'Integer' } end @@ -384,12 +378,6 @@ def initialize(attributes = {}) self.use_text_tags = false end - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end - if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -489,7 +477,6 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && expires_at == o.expires_at end @@ -502,7 +489,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_qualified_signature, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, expires_at].hash + [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_qualified_signature, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/template_create_embedded_draft_request.rb b/lib/dropbox-sign/models/template_create_embedded_draft_request.rb index a846072..4b006bd 100644 --- a/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +++ b/lib/dropbox-sign/models/template_create_embedded_draft_request.rb @@ -116,10 +116,6 @@ class TemplateCreateEmbeddedDraftRequest # @return [Boolean] attr_accessor :use_preexisting_fields - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -147,8 +143,7 @@ def self.attribute_map :'subject' => :'subject', :'test_mode' => :'test_mode', :'title' => :'title', - :'use_preexisting_fields' => :'use_preexisting_fields', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors' + :'use_preexisting_fields' => :'use_preexisting_fields' } end @@ -189,8 +184,7 @@ def self.openapi_types :'subject' => :'String', :'test_mode' => :'Boolean', :'title' => :'String', - :'use_preexisting_fields' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean' + :'use_preexisting_fields' => :'Boolean' } end @@ -378,12 +372,6 @@ def initialize(attributes = {}) else self.use_preexisting_fields = false end - - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -479,8 +467,7 @@ def ==(o) subject == o.subject && test_mode == o.test_mode && title == o.title && - use_preexisting_fields == o.use_preexisting_fields && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors + use_preexisting_fields == o.use_preexisting_fields end # @see the `==` method @@ -492,7 +479,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, files, file_urls, allow_ccs, allow_reassign, attachments, cc_roles, editor_options, field_options, force_signer_roles, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, merge_fields, message, metadata, show_preview, show_progress_stepper, signer_roles, skip_me_now, subject, test_mode, title, use_preexisting_fields, ignore_text_tags_extraction_errors].hash + [client_id, files, file_urls, allow_ccs, allow_reassign, attachments, cc_roles, editor_options, field_options, force_signer_roles, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, merge_fields, message, metadata, show_preview, show_progress_stepper, signer_roles, skip_me_now, subject, test_mode, title, use_preexisting_fields].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/template_create_request.rb b/lib/dropbox-sign/models/template_create_request.rb index 8b3d470..2376b78 100644 --- a/lib/dropbox-sign/models/template_create_request.rb +++ b/lib/dropbox-sign/models/template_create_request.rb @@ -89,10 +89,6 @@ class TemplateCreateRequest # @return [Boolean] attr_accessor :use_preexisting_fields - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -113,8 +109,7 @@ def self.attribute_map :'subject' => :'subject', :'test_mode' => :'test_mode', :'title' => :'title', - :'use_preexisting_fields' => :'use_preexisting_fields', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors' + :'use_preexisting_fields' => :'use_preexisting_fields' } end @@ -148,8 +143,7 @@ def self.openapi_types :'subject' => :'String', :'test_mode' => :'Boolean', :'title' => :'String', - :'use_preexisting_fields' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean' + :'use_preexisting_fields' => :'Boolean' } end @@ -297,12 +291,6 @@ def initialize(attributes = {}) else self.use_preexisting_fields = false end - - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -406,8 +394,7 @@ def ==(o) subject == o.subject && test_mode == o.test_mode && title == o.title && - use_preexisting_fields == o.use_preexisting_fields && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors + use_preexisting_fields == o.use_preexisting_fields end # @see the `==` method @@ -419,7 +406,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [form_fields_per_document, signer_roles, files, file_urls, allow_reassign, attachments, cc_roles, client_id, field_options, form_field_groups, form_field_rules, merge_fields, message, metadata, subject, test_mode, title, use_preexisting_fields, ignore_text_tags_extraction_errors].hash + [form_fields_per_document, signer_roles, files, file_urls, allow_reassign, attachments, cc_roles, client_id, field_options, form_field_groups, form_field_rules, merge_fields, message, metadata, subject, test_mode, title, use_preexisting_fields].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb b/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb index 3d6e664..18bc6f9 100644 --- a/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +++ b/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb @@ -27,11 +27,16 @@ class TemplateResponseDocumentFormFieldDropdown < TemplateResponseDocumentFormFi # @return [String, nil] attr_accessor :group + # The options available for this dropdown form field. + # @return [Array] + attr_accessor :options + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'group' => :'group' + :'group' => :'group', + :'options' => :'options' } end @@ -49,14 +54,15 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'group' => :'String' + :'group' => :'String', + :'options' => :'Array' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'group' + :'group', ]) end @@ -113,6 +119,12 @@ def initialize(attributes = {}) if attributes.key?(:'group') self.group = attributes[:'group'] end + + if attributes.key?(:'options') + if (value = attributes[:'options']).is_a?(Array) + self.options = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -149,7 +161,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - group == o.group && super(o) + group == o.group && + options == o.options && super(o) end # @see the `==` method @@ -161,7 +174,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, group].hash + [type, group, options].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb index 9d52d17..210aae8 100644 --- a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +++ b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb @@ -152,10 +152,6 @@ class UnclaimedDraftCreateEmbeddedRequest # @return [Boolean] attr_accessor :use_text_tags - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # 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. # @return [Boolean] attr_accessor :populate_auto_fill_fields @@ -223,7 +219,6 @@ def self.attribute_map :'type' => :'type', :'use_preexisting_fields' => :'use_preexisting_fields', :'use_text_tags' => :'use_text_tags', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'populate_auto_fill_fields' => :'populate_auto_fill_fields', :'expires_at' => :'expires_at' } @@ -276,7 +271,6 @@ def self.openapi_types :'type' => :'String', :'use_preexisting_fields' => :'Boolean', :'use_text_tags' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean', :'populate_auto_fill_fields' => :'Boolean', :'expires_at' => :'Integer' } @@ -514,12 +508,6 @@ def initialize(attributes = {}) self.use_text_tags = false end - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end - if attributes.key?(:'populate_auto_fill_fields') self.populate_auto_fill_fields = attributes[:'populate_auto_fill_fields'] else @@ -661,7 +649,6 @@ def ==(o) type == o.type && use_preexisting_fields == o.use_preexisting_fields && use_text_tags == o.use_text_tags && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && populate_auto_fill_fields == o.populate_auto_fill_fields && expires_at == o.expires_at end @@ -675,7 +662,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, requester_email_address, files, file_urls, allow_ccs, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, editor_options, field_options, force_signer_page, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, hold_request, is_for_embedded_signing, message, metadata, requesting_redirect_url, show_preview, show_progress_stepper, signers, signing_options, signing_redirect_url, skip_me_now, subject, test_mode, type, use_preexisting_fields, use_text_tags, ignore_text_tags_extraction_errors, populate_auto_fill_fields, expires_at].hash + [client_id, requester_email_address, files, file_urls, allow_ccs, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, editor_options, field_options, force_signer_page, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, hold_request, is_for_embedded_signing, message, metadata, requesting_redirect_url, show_preview, show_progress_stepper, signers, signing_options, signing_redirect_url, skip_me_now, subject, test_mode, type, use_preexisting_fields, use_text_tags, populate_auto_fill_fields, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_request.rb index 62c54fc..3aa8412 100644 --- a/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +++ b/lib/dropbox-sign/models/unclaimed_draft_create_request.rb @@ -109,10 +109,6 @@ class UnclaimedDraftCreateRequest # @return [Boolean] attr_accessor :use_text_tags - # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. - # @return [Boolean] - attr_accessor :ignore_text_tags_extraction_errors - # 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. # @return [Integer, nil] attr_accessor :expires_at @@ -165,7 +161,6 @@ def self.attribute_map :'test_mode' => :'test_mode', :'use_preexisting_fields' => :'use_preexisting_fields', :'use_text_tags' => :'use_text_tags', - :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'expires_at' => :'expires_at' } end @@ -206,7 +201,6 @@ def self.openapi_types :'test_mode' => :'Boolean', :'use_preexisting_fields' => :'Boolean', :'use_text_tags' => :'Boolean', - :'ignore_text_tags_extraction_errors' => :'Boolean', :'expires_at' => :'Integer' } end @@ -383,12 +377,6 @@ def initialize(attributes = {}) self.use_text_tags = false end - if attributes.key?(:'ignore_text_tags_extraction_errors') - self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] - else - self.ignore_text_tags_extraction_errors = false - end - if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -488,7 +476,6 @@ def ==(o) test_mode == o.test_mode && use_preexisting_fields == o.use_preexisting_fields && use_text_tags == o.use_text_tags && - ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && expires_at == o.expires_at end @@ -501,7 +488,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, files, file_urls, allow_decline, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, show_progress_stepper, signers, signing_options, signing_redirect_url, subject, test_mode, use_preexisting_fields, use_text_tags, ignore_text_tags_extraction_errors, expires_at].hash + [type, files, file_urls, allow_decline, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, show_progress_stepper, signers, signing_options, signing_redirect_url, subject, test_mode, use_preexisting_fields, use_text_tags, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/version.rb b/lib/dropbox-sign/version.rb index 0c62a77..2bd7e2a 100644 --- a/lib/dropbox-sign/version.rb +++ b/lib/dropbox-sign/version.rb @@ -14,5 +14,5 @@ module Dropbox end module Dropbox::Sign - VERSION = '1.13.0' + VERSION = '1.14.0' end diff --git a/openapi-config.yaml b/openapi-config.yaml index b6918fe..bd3845c 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -9,7 +9,7 @@ additionalProperties: gemName: dropbox-sign gemRequiredRubyVersion: '>= 2.7' moduleName: "Dropbox::Sign" - gemVersion: 1.13.0 + gemVersion: 1.14.0 sortModelPropertiesByRequiredFlag: true legacyDiscriminatorBehavior: true gitUserId: hellosign diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 72b323a..ba50232 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -5087,8 +5087,6 @@ paths: $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' - 409_example: - $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -8555,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. @@ -8804,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 @@ -8953,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. @@ -9312,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 @@ -10673,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: @@ -10819,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: @@ -11002,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. @@ -11196,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. @@ -11977,7 +11943,7 @@ components: description: 'Path at which an error occurred.' type: string error_name: - description: 'Name of the error. See the `x-error-codes` catalog in openapi file for a complete list of possible error codes with detailed information including HTTP status codes, causes, remediation steps, and retry guidance.' + description: 'Name of the error.' type: string type: object FaxResponse: @@ -13106,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`' @@ -13779,8 +13750,6 @@ components: template: $ref: '#/components/schemas/TemplateResponse' type: object - x-fern-audiences: - - events EventCallbackRequestEvent: description: 'Basic information about the event that occurred.' required: @@ -13824,8 +13793,6 @@ components: event_metadata: $ref: '#/components/schemas/EventCallbackRequestEventMetadata' type: object - x-fern-audiences: - - events EventCallbackRequestEventMetadata: description: 'Specific metadata about the event.' properties: @@ -13846,8 +13813,6 @@ components: type: string nullable: true type: object - x-fern-audiences: - - events responses: EventCallbackResponse: description: 'successful operation' @@ -13856,8 +13821,6 @@ components: schema: type: string default: 'Hello API Event Received' - x-fern-audiences: - - events examples: AccountCreateRequest: summary: 'Default Example' @@ -14359,170 +14322,22 @@ components: summary: 'Example: signature_request_sent' value: $ref: examples/json/EventCallbackAccountSignatureRequestSent.json - x-fern-audiences: - - events EventCallbackAccountTemplateCreated: summary: 'Example: template_created' value: $ref: examples/json/EventCallbackAccountTemplateCreated.json - x-fern-audiences: - - events EventCallbackAppAccountConfirmed: summary: 'Example: account_confirmed' value: $ref: examples/json/EventCallbackAppAccountConfirmed.json - x-fern-audiences: - - events EventCallbackAppSignatureRequestSent: summary: 'Example: signature_request_sent' value: $ref: examples/json/EventCallbackAppSignatureRequestSent.json - x-fern-audiences: - - events EventCallbackAppTemplateCreated: summary: 'Example: template_created' value: $ref: examples/json/EventCallbackAppTemplateCreated.json - x-fern-audiences: - - events - EventCallbackSignatureRequestViewed: - summary: 'Signature Request Viewed Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestViewed.json - x-fern-audiences: - - events - EventCallbackSignatureRequestSigned: - summary: 'Signature Request Signed Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestSigned.json - x-fern-audiences: - - events - EventCallbackSignatureRequestSignerRemoved: - summary: 'Signature Request Signer Removed Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestSignerRemoved.json - x-fern-audiences: - - events - EventCallbackSignatureRequestDownloadable: - summary: 'Signature Request Downloadable Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestDownloadable.json - x-fern-audiences: - - events - EventCallbackSignatureRequestSent: - summary: 'Signature Request Sent Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestSent.json - x-fern-audiences: - - events - EventCallbackSignatureRequestAllSigned: - summary: 'Signature Request All Signed Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestAllSigned.json - x-fern-audiences: - - events - EventCallbackSignatureRequestInvalid: - summary: 'Signature Request Invalid Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestInvalid.json - x-fern-audiences: - - events - EventCallbackSignatureRequestEmailBounce: - summary: 'Signature Request Email Bounce Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestEmailBounce.json - x-fern-audiences: - - events - EventCallbackSignatureRequestRemind: - summary: 'Signature Request Remind Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestRemind.json - x-fern-audiences: - - events - EventCallbackSignatureRequestIncompleteQes: - summary: 'Signature Request Incomplete QES Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestIncompleteQes.json - x-fern-audiences: - - events - EventCallbackSignatureRequestDestroyed: - summary: 'Signature Request Destroyed Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestDestroyed.json - x-fern-audiences: - - events - EventCallbackSignatureRequestCanceled: - summary: 'Signature Request Canceled Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestCanceled.json - x-fern-audiences: - - events - EventCallbackSignatureRequestDeclined: - summary: 'Signature Request Declined Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestDeclined.json - x-fern-audiences: - - events - EventCallbackSignatureRequestExpired: - summary: 'Signature Request Expired Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestExpired.json - x-fern-audiences: - - events - EventCallbackSignatureRequestReassigned: - summary: 'Signature Request Reassigned Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestReassigned.json - x-fern-audiences: - - events - EventCallbackSignatureRequestPrepared: - summary: 'Signature Request Prepared Event Example' - value: - $ref: examples/json/EventCallbackSignatureRequestPrepared.json - x-fern-audiences: - - events - EventCallbackAccountConfirmed: - summary: 'Account Confirmed Event Example' - value: - $ref: examples/json/EventCallbackAccountConfirmed.json - x-fern-audiences: - - events - EventCallbackUnknownError: - summary: 'Unknown Error Event Example' - value: - $ref: examples/json/EventCallbackUnknownError.json - x-fern-audiences: - - events - EventCallbackFileError: - summary: 'File Error Event Example' - value: - $ref: examples/json/EventCallbackFileError.json - x-fern-audiences: - - events - EventCallbackTemplateCreated: - summary: 'Template Created Event Example' - value: - $ref: examples/json/EventCallbackTemplateCreated.json - x-fern-audiences: - - events - EventCallbackTemplateError: - summary: 'Template Error Event Example' - value: - $ref: examples/json/EventCallbackTemplateError.json - x-fern-audiences: - - events - EventCallbackSignUrlInvalid: - summary: 'Sign URL Invalid Event Example' - value: - $ref: examples/json/EventCallbackSignUrlInvalid.json - x-fern-audiences: - - events - EventCallbackCallbackTest: - summary: 'Callback Test Event Example' - value: - $ref: examples/json/EventCallbackCallbackTest.json - x-fern-audiences: - - events requestBodies: EventCallbackAccountRequest: description: |- @@ -14600,242 +14415,100 @@ security: externalDocs: description: 'Legacy API Reference' url: 'https://app.hellosign.com/api/reference' -x-webhooks: [] -x-error-codes: - bad_request: - http_status: 400 - summary: 'The request contained invalid or malformed parameters.' - cause: 'A parameter failed validation, or the request body was malformed.' - remediation: 'Inspect error_msg and error_path, correct the offending parameter, and resend.' - retryable: 'no' - unauthorized: - http_status: 401 - summary: 'The credentials supplied are missing or invalid.' - cause: 'Missing, malformed, or invalid API key or OAuth access token.' - remediation: 'Verify the API key or OAuth token and the Authorization header, then retry.' - retryable: 'no' - payment_required: - http_status: 402 - summary: 'The account must be credited or upgraded to perform this action.' - cause: 'The action requires a paid plan, additional quota, or API credits.' - remediation: 'Upgrade the plan or add the required credits/quota, then retry.' - retryable: 'no' - forbidden: - http_status: 403 - summary: 'The action is not allowed for these credentials or in the current context.' - cause: 'The authenticated account lacks access to the resource or operation.' - remediation: 'Confirm the account has access to the resource and the required permissions.' - retryable: 'no' - not_found: - http_status: 404 - summary: 'Nothing matches the requested resource.' - cause: 'The resource id does not exist or is not visible to this account.' - remediation: 'Verify the id and that the resource belongs to the authenticated account.' - retryable: 'no' - conflict: - http_status: 409 - summary: 'The request was well-formed but conflicts with the current state.' - cause: 'The target resource is in a state incompatible with the request (e.g. a signature request is still being set up).' - remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready.' - retryable: conditional - exceeded_rate: - http_status: 429 - summary: 'Your account''s API request rate limit has been exceeded.' - cause: 'Too many requests were sent within the rate-limit window for this request type.' - remediation: 'Pace requests using the X-RateLimit-* response headers and retry after the window resets.' - retryable: 'yes' - backoff: 'Honor X-Ratelimit-Reset (Unix epoch); otherwise exponential backoff with jitter. No Retry-After header is sent.' - unknown: - http_status: 500 - summary: 'An unexpected error occurred.' - cause: 'An unhandled server-side error, or a status code without a more specific error_name.' - remediation: 'Retry transient failures; if it persists, contact support with the request details.' - retryable: conditional - backoff: 'For transient 5xx, retry with exponential backoff; otherwise do not retry.' - team_invite_failed: - http_status: 403 - summary: 'The team invitation could not be completed.' - cause: 'The invitee already belongs to a team, or the invite is otherwise not permitted.' - remediation: 'Confirm the invitee is not already on a team before inviting.' - retryable: 'no' - max_faxes: - http_status: 429 - summary: 'Too many fax transmissions are currently pending or transmitting.' - cause: 'The account has reached the limit of concurrent in-flight fax transmissions.' - remediation: 'Wait for outstanding transmissions to complete, then retry.' - retryable: 'yes' - backoff: 'Retry with exponential backoff once pending transmissions clear.' - invalid_recipient: - http_status: 400 - summary: 'The recipient (fax number or email address) is invalid.' - cause: 'A recipient value did not pass validation.' - remediation: 'Correct the recipient value and resend.' - retryable: 'no' - signature_request_cancel_failed: - http_status: 400 - summary: 'The signature request could not be cancelled.' - cause: 'The caller is not the requester, or the request is already fully executed/closed.' - remediation: 'Only the requester can cancel, and only before the request is fully executed.' - retryable: 'no' - signature_request_remove_failed: - http_status: 400 - summary: 'Access to the signature request could not be removed.' - cause: 'The signature request has not yet been fully executed, so access cannot be revoked.' - remediation: 'Wait until all parties have signed, or call /signature_request/cancel to cancel incomplete requests instead.' - retryable: 'no' - maintenance: - http_status: 503 - summary: 'The request could not be completed because the site is under maintenance.' - cause: 'The API is in a scheduled maintenance window.' - remediation: 'Retry once the maintenance window ends.' - retryable: 'yes' - backoff: 'Retry later with exponential backoff.' - method_not_supported: - http_status: 405 - summary: 'The HTTP method is not supported for this endpoint.' - cause: 'The request used a verb the endpoint does not accept.' - remediation: 'Use the HTTP method documented for the endpoint.' - retryable: 'no' - invalid_reminder: - http_status: 400 - summary: 'The signature request reminder was invalid.' - cause: 'A reminder was attempted against an ineligible request (e.g. embedded, closed, or expired).' - remediation: 'Only send reminders for eligible (non-embedded, open) signature requests.' - retryable: 'no' - unavailable: - http_status: 503 - summary: 'The service is temporarily unavailable.' - cause: 'A downstream dependency or the service itself is temporarily unavailable.' - remediation: 'Retry later with exponential backoff.' - retryable: 'yes' - backoff: 'Retry later with exponential backoff and jitter.' - unprocessable_entity: - http_status: 422 - summary: 'The request was understood but the target entity cannot be processed.' - cause: 'The resource is still being processed, or it is in an error state.' - remediation: 'If the resource is still processing, wait and retry; if it is in an error state, recreate/resend it instead of retrying.' - retryable: conditional - backoff: 'If still processing, retry with exponential backoff; if in an error state, do not retry.' - signature_request_expired: - http_status: - - 400 - - 403 - summary: 'The signature request has expired.' - cause: 'The operation targets a request whose expiration has passed. Most endpoints return 400; final-copy/download endpoints return 403.' - remediation: 'The request can no longer be acted upon; create a new signature request.' - retryable: 'no' - deleted: - http_status: 410 - summary: 'The request was cancelled or deleted.' - cause: 'The resource has been cancelled or removed and is no longer available.' - remediation: 'Do not retry; the resource is permanently gone.' - retryable: 'no' -x-oauth-error-codes: - invalid_grant: - http_status: - - 400 - - 401 - summary: 'The OAuth grant (authorization code or refresh token) is invalid or expired.' - cause: 'The code/token was already used, expired, or does not match the client.' - remediation: 'Re-initiate the OAuth flow to obtain a fresh authorization code.' - retryable: 'no' - invalid_client: - http_status: 400 - summary: 'The OAuth client credentials are invalid.' - cause: 'The client_id or client_secret is unrecognized or incorrect.' - remediation: 'Verify the client_id and client_secret from the API app settings.' - retryable: 'no' - invalid_request: - http_status: 400 - summary: 'The OAuth request is malformed or missing required parameters.' - cause: 'A required parameter is missing, or the request format is invalid.' - remediation: 'Check the request against the OAuth token endpoint documentation.' - retryable: 'no' - unauthorized_client: - http_status: - - 401 - - 403 - summary: 'The OAuth client is not authorized to perform this action.' - cause: 'The app has not been approved, or the action is outside the granted scopes.' - remediation: 'Ensure the app is approved and the required scopes are granted.' - retryable: 'no' - unsupported_grant_type: - http_status: 400 - summary: 'The grant type is not supported.' - cause: 'The grant_type parameter value is not recognized.' - remediation: 'Use authorization_code or refresh_token as the grant_type.' - retryable: 'no' - payment_required: - http_status: 402 - summary: 'The account requires a paid plan to use this OAuth app.' - cause: 'The authorizing account does not have a plan that supports this integration.' - remediation: 'Upgrade the account to a plan that includes OAuth app access.' - retryable: 'no' - addon_required: - http_status: 402 - summary: 'An add-on is required to use this OAuth app.' - cause: 'The account plan does not include the add-on needed for this integration.' - remediation: 'Add the required add-on to the account subscription.' - retryable: 'no' - invalid_scope: - http_status: 400 - summary: 'The requested OAuth scope is invalid.' - cause: 'The scope parameter contains values not permitted for the app.' - remediation: 'Request only scopes that the app is configured to use.' - retryable: 'no' - quota_reached: - http_status: 402 - summary: 'The account has reached its usage quota for this OAuth app.' - cause: 'The authorizing account has exhausted its quota for the integration.' - remediation: 'Contact the app owner or upgrade the account quota.' - retryable: 'no' - server_error: - http_status: 500 - summary: 'An internal server error occurred during OAuth processing.' - cause: 'An unexpected error on the server side while handling the OAuth request.' - remediation: 'Retry the request; if it persists, contact support.' - retryable: 'yes' - backoff: 'Retry with exponential backoff.' - temporary_unavailable: - http_status: 503 - summary: 'The OAuth service is temporarily unavailable.' - cause: 'The service is under maintenance or experiencing temporary issues.' - remediation: 'Retry after a short delay.' - retryable: 'yes' - backoff: 'Retry with exponential backoff.' -x-error-events: - signature_request_invalid: - event_type: signature_request_invalid - delivery: webhook - summary: 'Asynchronous error while processing a signature request.' - cause: 'A signature request could not be processed (e.g. invalid tags, fields, or merge data).' - remediation: 'Inspect event.event_metadata.event_message in the callback, correct the request, and resend.' - retryable: conditional - unknown_error: - event_type: unknown_error - delivery: webhook - summary: 'An unspecified asynchronous processing error occurred.' - cause: 'An unexpected error occurred while processing the request asynchronously.' - remediation: 'Check the request status in the API dashboard; retry or contact support if it persists.' - retryable: conditional - file_error: - event_type: file_error - delivery: webhook - summary: 'Asynchronous error while processing an uploaded file.' - cause: 'A file attached to a request could not be processed.' - remediation: 'Resend the request with a supported, non-corrupt file.' - retryable: conditional - template_error: - event_type: template_error - delivery: webhook - summary: 'Asynchronous error while creating a template.' - cause: 'Template file processing failed (e.g. unsupported or corrupt file).' - remediation: 'Recreate the template with a valid file; check status in the API dashboard.' - retryable: conditional - sign_url_invalid: - event_type: sign_url_invalid - delivery: webhook - summary: 'An embedded signing URL has expired or become invalid.' - cause: 'The embedded sign_url is no longer valid (e.g. expired).' - remediation: 'Generate a fresh embedded sign_url via the embedded sign URL endpoint.' - retryable: 'yes' +x-webhooks: + accountCallback: + post: + summary: 'Account Callbacks' + operationId: accountUpdateEventCallback + description: + $ref: ./markdown/en/descriptions/account-callback-description.md + x-meta: + seo: + title: 'Account Callbacks | API Documentation | Dropbox Sign for Developers' + description: 'The Dropbox Sign API allows you to build with a wide range of tools. To find out how to consume Dropbox Sign Events at the account level, click here.' + x-codeSamples: + - + lang: PHP + label: PHP + source: + $ref: examples/EventCallbackExample.php + - + lang: 'C#' + label: 'C#' + source: + $ref: examples/EventCallbackExample.cs + - + lang: TypeScript + label: TypeScript + source: + $ref: examples/EventCallbackExample.ts + - + lang: Java + label: Java + source: + $ref: examples/EventCallbackExample.java + - + lang: Ruby + label: Ruby + source: + $ref: examples/EventCallbackExample.rb + - + lang: Python + label: Python + source: + $ref: examples/EventCallbackExample.py + tags: + - 'Callbacks and Events' + requestBody: + $ref: '#/components/requestBodies/EventCallbackAccountRequest' + responses: + 200: + $ref: '#/components/responses/EventCallbackResponse' + appCallback: + post: + summary: 'App Callbacks' + description: + $ref: ./markdown/en/descriptions/api-app-callback-description.md + operationId: apiAppCreateEventCallback + x-meta: + seo: + title: 'App Callbacks | API Documentation | Dropbox Sign for Developers' + description: 'The Dropbox Sign API allows you to build with a wide range of tools. To find out how to consume Dropbox Sign Events at the App level, click here.' + x-codeSamples: + - + lang: PHP + label: PHP + source: + $ref: examples/EventCallbackExample.php + - + lang: 'C#' + label: 'C#' + source: + $ref: examples/EventCallbackExample.cs + - + lang: TypeScript + label: TypeScript + source: + $ref: examples/EventCallbackExample.ts + - + lang: Java + label: Java + source: + $ref: examples/EventCallbackExample.java + - + lang: Ruby + label: Ruby + source: + $ref: examples/EventCallbackExample.rb + - + lang: Python + label: Python + source: + $ref: examples/EventCallbackExample.py + tags: + - 'Callbacks and Events' + requestBody: + $ref: '#/components/requestBodies/EventCallbackAppRequest' + responses: + 200: + $ref: '#/components/responses/EventCallbackResponse' diff --git a/spec/api/error_handling_spec.rb b/spec/api/error_handling_spec.rb deleted file mode 100644 index b584600..0000000 --- a/spec/api/error_handling_spec.rb +++ /dev/null @@ -1,73 +0,0 @@ -=begin -#Dropbox Sign API - -#Dropbox Sign v3 API - -The version of the OpenAPI document: 3.0.0 -Contact: apisupport@hellosign.com -Generated by: https://openapi-generator.tech -Generator version: 7.12.0 - -=end - -require 'spec_helper' -require_relative '../test_utils' - -describe 'Error Handling' do - context 'ApiError propagation' do - api = Dropbox::Sign::AccountApi.new - - it 'raises ApiError for 5XX server errors' do - set_expected_response(500, '{"error":{"error_msg":"Internal server error","error_name":"server_error"}}') - - expect { - api.account_get({ email_address: "test@example.com" }) - }.to raise_error(Dropbox::Sign::ApiError) { |e| - expect(e.code).to eq(500) - } - end - - it 'raises ApiError for 503 server errors' do - set_expected_response(503, '{"error":{"error_msg":"Service unavailable","error_name":"service_unavailable"}}') - - expect { - api.account_get({ email_address: "test@example.com" }) - }.to raise_error(Dropbox::Sign::ApiError) { |e| - expect(e.code).to eq(503) - } - end - - it 'raises ApiError for connection failures' do - Typhoeus.stub(/hellosign.com/) do - Typhoeus::Response.new( - :code => 0, - :return_message => "Connection refused" - ) - end - - expect { - api.account_get({ email_address: "test@example.com" }) - }.to raise_error(Dropbox::Sign::ApiError) { |e| - expect(e.code).to eq(0) - } - end - - it 'raises ApiError for timeout errors' do - Typhoeus.stub(/hellosign.com/) do - response = Typhoeus::Response.new( - :code => 0, - :return_message => "Timeout was reached", - :mock => true - ) - response.instance_variable_set(:@options, response.instance_variable_get(:@options).merge(return_code: :operation_timedout)) - response - end - - expect { - api.account_get({ email_address: "test@example.com" }) - }.to raise_error(Dropbox::Sign::ApiError) { |e| - expect(e.message).to include("timed out") - } - end - end -end diff --git a/templates/api.mustache b/templates/api.mustache index cade90e..e5611a3 100644 --- a/templates/api.mustache +++ b/templates/api.mustache @@ -307,7 +307,7 @@ module {{moduleName}} range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i <%={{ }}=%> - if e.code && e.code >= range_code_left && e.code <= range_code_right + if e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "{{moduleName}}::{{{dataType}}}" @@ -338,7 +338,6 @@ module {{moduleName}} {{/dataType}} {{/responses}} {{/returnType}} - raise e end {{/useCustomTemplateCode}} From f26012e4dfdafba6c17785ab6ceee01791bfcb29 Mon Sep 17 00:00:00 2001 From: mchatlas Date: Thu, 3 Sep 2026 14:38:23 +0200 Subject: [PATCH 2/2] Keep release scoped to dropdown options --- Gemfile.lock | 16 +- docs/ErrorResponseError.md | 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 + lib/dropbox-sign/api/account_api.rb | 12 +- lib/dropbox-sign/api/api_app_api.rb | 13 +- lib/dropbox-sign/api/bulk_send_job_api.rb | 6 +- lib/dropbox-sign/api/embedded_api.rb | 6 +- lib/dropbox-sign/api/fax_api.rb | 13 +- lib/dropbox-sign/api/fax_line_api.rb | 19 +- lib/dropbox-sign/api/o_auth_api.rb | 6 +- lib/dropbox-sign/api/report_api.rb | 3 +- lib/dropbox-sign/api/signature_request_api.rb | 56 +- lib/dropbox-sign/api/team_api.rb | 28 +- lib/dropbox-sign/api/template_api.rb | 31 +- lib/dropbox-sign/api/unclaimed_draft_api.rb | 12 +- .../models/error_response_error.rb | 2 +- ...gnature_request_create_embedded_request.rb | 15 +- ...signature_request_edit_embedded_request.rb | 15 +- .../models/signature_request_edit_request.rb | 15 +- .../models/signature_request_send_request.rb | 15 +- .../template_create_embedded_draft_request.rb | 21 +- .../models/template_create_request.rb | 21 +- ...unclaimed_draft_create_embedded_request.rb | 15 +- .../models/unclaimed_draft_create_request.rb | 15 +- openapi-sdk.yaml | 528 ++++++++++++++---- spec/api/error_handling_spec.rb | 73 +++ templates/api.mustache | 3 +- 34 files changed, 781 insertions(+), 188 deletions(-) create mode 100644 spec/api/error_handling_spec.rb diff --git a/Gemfile.lock b/Gemfile.lock index 4260043..5419b65 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,17 +11,19 @@ GEM byebug (11.1.3) coderay (1.1.3) diff-lcs (1.5.1) - ethon (0.16.0) + ethon (0.18.0) ffi (>= 1.15.0) - ffi (1.17.2-aarch64-linux-gnu) - ffi (1.17.2-arm64-darwin) - ffi (1.17.2-x86_64-darwin) - ffi (1.17.2-x86_64-linux-gnu) + logger + ffi (1.17.4-aarch64-linux-gnu) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86_64-darwin) + ffi (1.17.4-x86_64-linux-gnu) json (2.7.2) json_spec (1.1.5) multi_json (~> 1.0) rspec (>= 2.0, < 4.0) language_server-protocol (3.17.0.3) + logger (1.7.0) method_source (1.1.0) multi_json (1.15.0) parallel (1.26.3) @@ -64,8 +66,8 @@ GEM rubocop-ast (1.32.3) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) - typhoeus (1.4.1) - ethon (>= 0.9.0) + typhoeus (1.6.0) + ethon (>= 0.18.0) unicode-display_width (2.5.0) PLATFORMS diff --git a/docs/ErrorResponseError.md b/docs/ErrorResponseError.md index e18e403..21ef5eb 100644 --- a/docs/ErrorResponseError.md +++ b/docs/ErrorResponseError.md @@ -7,6 +7,6 @@ Contains information about an error that occurred. | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `error_msg`*_required_ | ```String``` | Message describing an error. | | -| `error_name`*_required_ | ```String``` | Name of the error. | | +| `error_name`*_required_ | ```String``` | Name of the error. See the `x-error-codes` catalog in openapi file for a complete list of possible error codes with detailed information including HTTP status codes, causes, remediation steps, and retry guidance. | | | `error_path` | ```String``` | Path at which an error occurred. | | diff --git a/docs/SignatureRequestCreateEmbeddedRequest.md b/docs/SignatureRequestCreateEmbeddedRequest.md index 72ba0ee..c28a2b4 100644 --- a/docs/SignatureRequestCreateEmbeddedRequest.md +++ b/docs/SignatureRequestCreateEmbeddedRequest.md @@ -28,6 +28,7 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `populate_auto_fill_fields` | ```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. | [default to false] | | `expires_at` | ```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 383cd8e..6a56a2e 100644 --- a/docs/SignatureRequestEditEmbeddedRequest.md +++ b/docs/SignatureRequestEditEmbeddedRequest.md @@ -28,6 +28,7 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `populate_auto_fill_fields` | ```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. | [default to false] | | `expires_at` | ```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 ce53250..b7e4ffb 100644 --- a/docs/SignatureRequestEditRequest.md +++ b/docs/SignatureRequestEditRequest.md @@ -30,5 +30,6 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `expires_at` | ```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 ca6f167..51bb1a2 100644 --- a/docs/SignatureRequestSendRequest.md +++ b/docs/SignatureRequestSendRequest.md @@ -31,5 +31,6 @@ | `test_mode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_text_tags` | ```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`. | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `expires_at` | ```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 d23e4ce..4cbd9bf 100644 --- a/docs/TemplateCreateEmbeddedDraftRequest.md +++ b/docs/TemplateCreateEmbeddedDraftRequest.md @@ -31,4 +31,5 @@ | `test_mode` | ```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`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_preexisting_fields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | diff --git a/docs/TemplateCreateRequest.md b/docs/TemplateCreateRequest.md index 35e9df0..1d543e1 100644 --- a/docs/TemplateCreateRequest.md +++ b/docs/TemplateCreateRequest.md @@ -24,4 +24,5 @@ | `test_mode` | ```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`. | [default to false] | | `title` | ```String``` | The title you want to assign to the SignatureRequest. | | | `use_preexisting_fields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | diff --git a/docs/UnclaimedDraftCreateEmbeddedRequest.md b/docs/UnclaimedDraftCreateEmbeddedRequest.md index 47acc39..1023778 100644 --- a/docs/UnclaimedDraftCreateEmbeddedRequest.md +++ b/docs/UnclaimedDraftCreateEmbeddedRequest.md @@ -40,6 +40,7 @@ | `type` | ```String``` | 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. | [default to 'request_signature'] | | `use_preexisting_fields` | ```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. | [default to false] | | `use_text_tags` | ```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. | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `populate_auto_fill_fields` | ```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. | [default to false] | | `expires_at` | ```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 3eeacd5..75eab21 100644 --- a/docs/UnclaimedDraftCreateRequest.md +++ b/docs/UnclaimedDraftCreateRequest.md @@ -29,5 +29,6 @@ | `test_mode` | ```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`. | [default to false] | | `use_preexisting_fields` | ```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. | [default to false] | | `use_text_tags` | ```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. | [default to false] | +| `ignore_text_tags_extraction_errors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | [default to false] | | `expires_at` | ```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/lib/dropbox-sign/api/account_api.rb b/lib/dropbox-sign/api/account_api.rb index 454dd21..93a66cc 100644 --- a/lib/dropbox-sign/api/account_api.rb +++ b/lib/dropbox-sign/api/account_api.rb @@ -111,7 +111,7 @@ def account_create_with_http_info(account_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def account_create_with_http_info(account_create_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -205,7 +206,7 @@ def account_get_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -217,6 +218,7 @@ def account_get_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -314,7 +316,7 @@ def account_update_with_http_info(account_update_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -326,6 +328,7 @@ def account_update_with_http_info(account_update_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -423,7 +426,7 @@ def account_verify_with_http_info(account_verify_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -435,6 +438,7 @@ def account_verify_with_http_info(account_verify_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/api_app_api.rb b/lib/dropbox-sign/api/api_app_api.rb index a6fb785..55a35c7 100644 --- a/lib/dropbox-sign/api/api_app_api.rb +++ b/lib/dropbox-sign/api/api_app_api.rb @@ -111,7 +111,7 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def api_app_create_with_http_info(api_app_create_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -190,6 +191,7 @@ def api_app_delete_with_http_info(client_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -272,7 +274,7 @@ def api_app_get_with_http_info(client_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -284,6 +286,7 @@ def api_app_get_with_http_info(client_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -366,7 +369,7 @@ def api_app_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -378,6 +381,7 @@ def api_app_list_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -481,7 +485,7 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -493,6 +497,7 @@ def api_app_update_with_http_info(client_id, api_app_update_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/bulk_send_job_api.rb b/lib/dropbox-sign/api/bulk_send_job_api.rb index 5f62840..69bd200 100644 --- a/lib/dropbox-sign/api/bulk_send_job_api.rb +++ b/lib/dropbox-sign/api/bulk_send_job_api.rb @@ -102,7 +102,7 @@ def bulk_send_job_get_with_http_info(bulk_send_job_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -114,6 +114,7 @@ def bulk_send_job_get_with_http_info(bulk_send_job_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -196,7 +197,7 @@ def bulk_send_job_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -208,6 +209,7 @@ def bulk_send_job_list_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/embedded_api.rb b/lib/dropbox-sign/api/embedded_api.rb index 5724c49..efbc7f9 100644 --- a/lib/dropbox-sign/api/embedded_api.rb +++ b/lib/dropbox-sign/api/embedded_api.rb @@ -117,7 +117,7 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -129,6 +129,7 @@ def embedded_edit_url_with_http_info(template_id, embedded_edit_url_request, opt e.message end + raise e end if @api_client.config.debugging @@ -211,7 +212,7 @@ def embedded_sign_url_with_http_info(signature_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -223,6 +224,7 @@ def embedded_sign_url_with_http_info(signature_id, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/fax_api.rb b/lib/dropbox-sign/api/fax_api.rb index aac2bc9..f4cfda3 100644 --- a/lib/dropbox-sign/api/fax_api.rb +++ b/lib/dropbox-sign/api/fax_api.rb @@ -81,6 +81,7 @@ def fax_delete_with_http_info(fax_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -163,7 +164,7 @@ def fax_files_with_http_info(fax_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -175,6 +176,7 @@ def fax_files_with_http_info(fax_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -257,7 +259,7 @@ def fax_get_with_http_info(fax_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -269,6 +271,7 @@ def fax_get_with_http_info(fax_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -363,7 +366,7 @@ def fax_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -375,6 +378,7 @@ def fax_list_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -472,7 +476,7 @@ def fax_send_with_http_info(fax_send_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -484,6 +488,7 @@ def fax_send_with_http_info(fax_send_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/fax_line_api.rb b/lib/dropbox-sign/api/fax_line_api.rb index 02d224c..3c8a861 100644 --- a/lib/dropbox-sign/api/fax_line_api.rb +++ b/lib/dropbox-sign/api/fax_line_api.rb @@ -111,7 +111,7 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def fax_line_add_user_with_http_info(fax_line_add_user_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -228,7 +229,7 @@ def fax_line_area_code_get_with_http_info(country, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -240,6 +241,7 @@ def fax_line_area_code_get_with_http_info(country, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -337,7 +339,7 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -349,6 +351,7 @@ def fax_line_create_with_http_info(fax_line_create_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -431,6 +434,7 @@ def fax_line_delete_with_http_info(fax_line_delete_request, opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -514,7 +518,7 @@ def fax_line_get_with_http_info(number, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -526,6 +530,7 @@ def fax_line_get_with_http_info(number, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -614,7 +619,7 @@ def fax_line_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -626,6 +631,7 @@ def fax_line_list_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -723,7 +729,7 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -735,6 +741,7 @@ def fax_line_remove_user_with_http_info(fax_line_remove_user_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/o_auth_api.rb b/lib/dropbox-sign/api/o_auth_api.rb index ae9af5a..24acc4f 100644 --- a/lib/dropbox-sign/api/o_auth_api.rb +++ b/lib/dropbox-sign/api/o_auth_api.rb @@ -111,7 +111,7 @@ def oauth_token_generate_with_http_info(o_auth_token_generate_request, opts = {} range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def oauth_token_generate_with_http_info(o_auth_token_generate_request, opts = {} e.message end + raise e end if @api_client.config.debugging @@ -220,7 +221,7 @@ def oauth_token_refresh_with_http_info(o_auth_token_refresh_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -232,6 +233,7 @@ def oauth_token_refresh_with_http_info(o_auth_token_refresh_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/report_api.rb b/lib/dropbox-sign/api/report_api.rb index ee776ff..9bbaf03 100644 --- a/lib/dropbox-sign/api/report_api.rb +++ b/lib/dropbox-sign/api/report_api.rb @@ -111,7 +111,7 @@ def report_create_with_http_info(report_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def report_create_with_http_info(report_create_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/signature_request_api.rb b/lib/dropbox-sign/api/signature_request_api.rb index d2b9684..cb68136 100644 --- a/lib/dropbox-sign/api/signature_request_api.rb +++ b/lib/dropbox-sign/api/signature_request_api.rb @@ -111,7 +111,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def signature_request_bulk_create_embedded_with_template_with_http_info(signatur e.message end + raise e end if @api_client.config.debugging @@ -220,7 +221,7 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -232,6 +233,7 @@ def signature_request_bulk_send_with_template_with_http_info(signature_request_b e.message end + raise e end if @api_client.config.debugging @@ -299,6 +301,7 @@ def signature_request_cancel_with_http_info(signature_request_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -396,7 +399,7 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -408,6 +411,7 @@ def signature_request_create_embedded_with_http_info(signature_request_create_em e.message end + raise e end if @api_client.config.debugging @@ -505,7 +509,7 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -517,6 +521,7 @@ def signature_request_create_embedded_with_template_with_http_info(signature_req e.message end + raise e end if @api_client.config.debugging @@ -620,7 +625,7 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -632,6 +637,7 @@ def signature_request_edit_with_http_info(signature_request_id, signature_reques e.message end + raise e end if @api_client.config.debugging @@ -735,7 +741,7 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -747,6 +753,7 @@ def signature_request_edit_embedded_with_http_info(signature_request_id, signatu e.message end + raise e end if @api_client.config.debugging @@ -850,7 +857,7 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -862,6 +869,7 @@ def signature_request_edit_embedded_with_template_with_http_info(signature_reque e.message end + raise e end if @api_client.config.debugging @@ -965,7 +973,7 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -977,6 +985,7 @@ def signature_request_edit_with_template_with_http_info(signature_request_id, si e.message end + raise e end if @api_client.config.debugging @@ -1066,7 +1075,7 @@ def signature_request_files_with_http_info(signature_request_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1078,6 +1087,7 @@ def signature_request_files_with_http_info(signature_request_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -1160,7 +1170,7 @@ def signature_request_files_as_data_uri_with_http_info(signature_request_id, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1172,6 +1182,7 @@ def signature_request_files_as_data_uri_with_http_info(signature_request_id, opt e.message end + raise e end if @api_client.config.debugging @@ -1257,7 +1268,7 @@ def signature_request_files_as_file_url_with_http_info(signature_request_id, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1269,6 +1280,7 @@ def signature_request_files_as_file_url_with_http_info(signature_request_id, opt e.message end + raise e end if @api_client.config.debugging @@ -1351,7 +1363,7 @@ def signature_request_get_with_http_info(signature_request_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1363,6 +1375,7 @@ def signature_request_get_with_http_info(signature_request_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -1451,7 +1464,7 @@ def signature_request_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1463,6 +1476,7 @@ def signature_request_list_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -1545,7 +1559,7 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1557,6 +1571,7 @@ def signature_request_release_hold_with_http_info(signature_request_id, opts = { e.message end + raise e end if @api_client.config.debugging @@ -1660,7 +1675,7 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1672,6 +1687,7 @@ def signature_request_remind_with_http_info(signature_request_id, signature_requ e.message end + raise e end if @api_client.config.debugging @@ -1739,6 +1755,7 @@ def signature_request_remove_with_http_info(signature_request_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -1836,7 +1853,7 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1848,6 +1865,7 @@ def signature_request_send_with_http_info(signature_request_send_request, opts = e.message end + raise e end if @api_client.config.debugging @@ -1945,7 +1963,7 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1957,6 +1975,7 @@ def signature_request_send_with_template_with_http_info(signature_request_send_w e.message end + raise e end if @api_client.config.debugging @@ -2060,7 +2079,7 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -2072,6 +2091,7 @@ def signature_request_update_with_http_info(signature_request_id, signature_requ e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/team_api.rb b/lib/dropbox-sign/api/team_api.rb index 1002a2d..4fbe8cb 100644 --- a/lib/dropbox-sign/api/team_api.rb +++ b/lib/dropbox-sign/api/team_api.rb @@ -114,7 +114,7 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -126,6 +126,7 @@ def team_add_member_with_http_info(team_add_member_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -223,7 +224,7 @@ def team_create_with_http_info(team_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -235,6 +236,7 @@ def team_create_with_http_info(team_create_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -296,6 +298,7 @@ def team_delete_with_http_info(opts = {}) begin data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -372,7 +375,7 @@ def team_get_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -384,6 +387,7 @@ def team_get_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -463,7 +467,7 @@ def team_info_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -475,6 +479,7 @@ def team_info_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -554,7 +559,7 @@ def team_invites_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -566,6 +571,7 @@ def team_invites_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -662,7 +668,7 @@ def team_members_with_http_info(team_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -674,6 +680,7 @@ def team_members_with_http_info(team_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -771,7 +778,7 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -783,6 +790,7 @@ def team_remove_member_with_http_info(team_remove_member_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -879,7 +887,7 @@ def team_sub_teams_with_http_info(team_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -891,6 +899,7 @@ def team_sub_teams_with_http_info(team_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -988,7 +997,7 @@ def team_update_with_http_info(team_update_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1000,6 +1009,7 @@ def team_update_with_http_info(team_update_request, opts = {}) e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/template_api.rb b/lib/dropbox-sign/api/template_api.rb index c43bf9e..a649223 100644 --- a/lib/dropbox-sign/api/template_api.rb +++ b/lib/dropbox-sign/api/template_api.rb @@ -117,7 +117,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -129,6 +129,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt e.message end + raise e end if @api_client.config.debugging @@ -226,7 +227,7 @@ def template_create_with_http_info(template_create_request, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -238,6 +239,7 @@ def template_create_with_http_info(template_create_request, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -335,7 +337,7 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -347,6 +349,7 @@ def template_create_embedded_draft_with_http_info(template_create_embedded_draft e.message end + raise e end if @api_client.config.debugging @@ -414,6 +417,7 @@ def template_delete_with_http_info(template_id, opts = {}) begin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) rescue Dropbox::Sign::ApiError => e + raise e end if @api_client.config.debugging @@ -503,7 +507,7 @@ def template_files_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -515,6 +519,7 @@ def template_files_with_http_info(template_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -597,7 +602,7 @@ def template_files_as_data_uri_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -609,6 +614,7 @@ def template_files_as_data_uri_with_http_info(template_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -694,7 +700,7 @@ def template_files_as_file_url_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -706,6 +712,7 @@ def template_files_as_file_url_with_http_info(template_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -788,7 +795,7 @@ def template_get_with_http_info(template_id, opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -800,6 +807,7 @@ def template_get_with_http_info(template_id, opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -896,7 +904,7 @@ def template_list_with_http_info(opts = {}) range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -908,6 +916,7 @@ def template_list_with_http_info(opts = {}) e.message end + raise e end if @api_client.config.debugging @@ -1011,7 +1020,7 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1023,6 +1032,7 @@ def template_remove_user_with_http_info(template_id, template_remove_user_reques e.message end + raise e end if @api_client.config.debugging @@ -1126,7 +1136,7 @@ def template_update_files_with_http_info(template_id, template_update_files_requ range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -1138,6 +1148,7 @@ def template_update_files_with_http_info(template_id, template_update_files_requ e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/api/unclaimed_draft_api.rb b/lib/dropbox-sign/api/unclaimed_draft_api.rb index 53ede89..bf6e158 100644 --- a/lib/dropbox-sign/api/unclaimed_draft_api.rb +++ b/lib/dropbox-sign/api/unclaimed_draft_api.rb @@ -111,7 +111,7 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -123,6 +123,7 @@ def unclaimed_draft_create_with_http_info(unclaimed_draft_create_request, opts = e.message end + raise e end if @api_client.config.debugging @@ -220,7 +221,7 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -232,6 +233,7 @@ def unclaimed_draft_create_embedded_with_http_info(unclaimed_draft_create_embedd e.message end + raise e end if @api_client.config.debugging @@ -329,7 +331,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -341,6 +343,7 @@ def unclaimed_draft_create_embedded_with_template_with_http_info(unclaimed_draft e.message end + raise e end if @api_client.config.debugging @@ -444,7 +447,7 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim range_code = "4XX".split('').first range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "Dropbox::Sign::ErrorResponse" @@ -456,6 +459,7 @@ def unclaimed_draft_edit_and_resend_with_http_info(signature_request_id, unclaim e.message end + raise e end if @api_client.config.debugging diff --git a/lib/dropbox-sign/models/error_response_error.rb b/lib/dropbox-sign/models/error_response_error.rb index b1b85ff..baf8d72 100644 --- a/lib/dropbox-sign/models/error_response_error.rb +++ b/lib/dropbox-sign/models/error_response_error.rb @@ -23,7 +23,7 @@ class ErrorResponseError # @return [String] attr_accessor :error_msg - # Name of the error. + # Name of the error. See the `x-error-codes` catalog in openapi file for a complete list of possible error codes with detailed information including HTTP status codes, causes, remediation steps, and retry guidance. # @return [String] attr_accessor :error_name diff --git a/lib/dropbox-sign/models/signature_request_create_embedded_request.rb b/lib/dropbox-sign/models/signature_request_create_embedded_request.rb index 9ea5387..d6f857b 100644 --- a/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +++ b/lib/dropbox-sign/models/signature_request_create_embedded_request.rb @@ -104,6 +104,10 @@ class SignatureRequestCreateEmbeddedRequest # @return [Boolean] attr_accessor :use_text_tags + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # 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. # @return [Boolean] attr_accessor :populate_auto_fill_fields @@ -137,6 +141,7 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'populate_auto_fill_fields' => :'populate_auto_fill_fields', :'expires_at' => :'expires_at' } @@ -177,6 +182,7 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean', :'populate_auto_fill_fields' => :'Boolean', :'expires_at' => :'Integer' } @@ -350,6 +356,12 @@ def initialize(attributes = {}) self.use_text_tags = false end + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end + if attributes.key?(:'populate_auto_fill_fields') self.populate_auto_fill_fields = attributes[:'populate_auto_fill_fields'] else @@ -467,6 +479,7 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && populate_auto_fill_fields == o.populate_auto_fill_fields && expires_at == o.expires_at end @@ -480,7 +493,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, populate_auto_fill_fields, expires_at].hash + [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, populate_auto_fill_fields, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb b/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb index eb9ece9..7fc162d 100644 --- a/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb +++ b/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb @@ -104,6 +104,10 @@ class SignatureRequestEditEmbeddedRequest # @return [Boolean] attr_accessor :use_text_tags + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # 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. # @return [Boolean] attr_accessor :populate_auto_fill_fields @@ -137,6 +141,7 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'populate_auto_fill_fields' => :'populate_auto_fill_fields', :'expires_at' => :'expires_at' } @@ -177,6 +182,7 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean', :'populate_auto_fill_fields' => :'Boolean', :'expires_at' => :'Integer' } @@ -350,6 +356,12 @@ def initialize(attributes = {}) self.use_text_tags = false end + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end + if attributes.key?(:'populate_auto_fill_fields') self.populate_auto_fill_fields = attributes[:'populate_auto_fill_fields'] else @@ -467,6 +479,7 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && populate_auto_fill_fields == o.populate_auto_fill_fields && expires_at == o.expires_at end @@ -480,7 +493,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, populate_auto_fill_fields, expires_at].hash + [client_id, files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, signing_options, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, populate_auto_fill_fields, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_edit_request.rb b/lib/dropbox-sign/models/signature_request_edit_request.rb index 68e7c2f..43d7f12 100644 --- a/lib/dropbox-sign/models/signature_request_edit_request.rb +++ b/lib/dropbox-sign/models/signature_request_edit_request.rb @@ -112,6 +112,10 @@ class SignatureRequestEditRequest # @return [Boolean] attr_accessor :use_text_tags + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # 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. # @return [Integer, nil] attr_accessor :expires_at @@ -143,6 +147,7 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'expires_at' => :'expires_at' } end @@ -184,6 +189,7 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean', :'expires_at' => :'Integer' } end @@ -366,6 +372,12 @@ def initialize(attributes = {}) self.use_text_tags = false end + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end + if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -464,6 +476,7 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && expires_at == o.expires_at end @@ -476,7 +489,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, expires_at].hash + [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_send_request.rb b/lib/dropbox-sign/models/signature_request_send_request.rb index 8dec7e4..dd3ad81 100644 --- a/lib/dropbox-sign/models/signature_request_send_request.rb +++ b/lib/dropbox-sign/models/signature_request_send_request.rb @@ -116,6 +116,10 @@ class SignatureRequestSendRequest # @return [Boolean] attr_accessor :use_text_tags + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # 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. # @return [Integer, nil] attr_accessor :expires_at @@ -148,6 +152,7 @@ def self.attribute_map :'test_mode' => :'test_mode', :'title' => :'title', :'use_text_tags' => :'use_text_tags', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'expires_at' => :'expires_at' } end @@ -190,6 +195,7 @@ def self.openapi_types :'test_mode' => :'Boolean', :'title' => :'String', :'use_text_tags' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean', :'expires_at' => :'Integer' } end @@ -378,6 +384,12 @@ def initialize(attributes = {}) self.use_text_tags = false end + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end + if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -477,6 +489,7 @@ def ==(o) test_mode == o.test_mode && title == o.title && use_text_tags == o.use_text_tags && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && expires_at == o.expires_at end @@ -489,7 +502,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_qualified_signature, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, expires_at].hash + [files, file_urls, signers, grouped_signers, allow_decline, allow_reassign, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, is_qualified_signature, is_eid, message, metadata, signing_options, signing_redirect_url, subject, test_mode, title, use_text_tags, ignore_text_tags_extraction_errors, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/template_create_embedded_draft_request.rb b/lib/dropbox-sign/models/template_create_embedded_draft_request.rb index 4b006bd..a846072 100644 --- a/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +++ b/lib/dropbox-sign/models/template_create_embedded_draft_request.rb @@ -116,6 +116,10 @@ class TemplateCreateEmbeddedDraftRequest # @return [Boolean] attr_accessor :use_preexisting_fields + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -143,7 +147,8 @@ def self.attribute_map :'subject' => :'subject', :'test_mode' => :'test_mode', :'title' => :'title', - :'use_preexisting_fields' => :'use_preexisting_fields' + :'use_preexisting_fields' => :'use_preexisting_fields', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors' } end @@ -184,7 +189,8 @@ def self.openapi_types :'subject' => :'String', :'test_mode' => :'Boolean', :'title' => :'String', - :'use_preexisting_fields' => :'Boolean' + :'use_preexisting_fields' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean' } end @@ -372,6 +378,12 @@ def initialize(attributes = {}) else self.use_preexisting_fields = false end + + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -467,7 +479,8 @@ def ==(o) subject == o.subject && test_mode == o.test_mode && title == o.title && - use_preexisting_fields == o.use_preexisting_fields + use_preexisting_fields == o.use_preexisting_fields && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors end # @see the `==` method @@ -479,7 +492,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, files, file_urls, allow_ccs, allow_reassign, attachments, cc_roles, editor_options, field_options, force_signer_roles, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, merge_fields, message, metadata, show_preview, show_progress_stepper, signer_roles, skip_me_now, subject, test_mode, title, use_preexisting_fields].hash + [client_id, files, file_urls, allow_ccs, allow_reassign, attachments, cc_roles, editor_options, field_options, force_signer_roles, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, merge_fields, message, metadata, show_preview, show_progress_stepper, signer_roles, skip_me_now, subject, test_mode, title, use_preexisting_fields, ignore_text_tags_extraction_errors].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/template_create_request.rb b/lib/dropbox-sign/models/template_create_request.rb index 2376b78..8b3d470 100644 --- a/lib/dropbox-sign/models/template_create_request.rb +++ b/lib/dropbox-sign/models/template_create_request.rb @@ -89,6 +89,10 @@ class TemplateCreateRequest # @return [Boolean] attr_accessor :use_preexisting_fields + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -109,7 +113,8 @@ def self.attribute_map :'subject' => :'subject', :'test_mode' => :'test_mode', :'title' => :'title', - :'use_preexisting_fields' => :'use_preexisting_fields' + :'use_preexisting_fields' => :'use_preexisting_fields', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors' } end @@ -143,7 +148,8 @@ def self.openapi_types :'subject' => :'String', :'test_mode' => :'Boolean', :'title' => :'String', - :'use_preexisting_fields' => :'Boolean' + :'use_preexisting_fields' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean' } end @@ -291,6 +297,12 @@ def initialize(attributes = {}) else self.use_preexisting_fields = false end + + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -394,7 +406,8 @@ def ==(o) subject == o.subject && test_mode == o.test_mode && title == o.title && - use_preexisting_fields == o.use_preexisting_fields + use_preexisting_fields == o.use_preexisting_fields && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors end # @see the `==` method @@ -406,7 +419,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [form_fields_per_document, signer_roles, files, file_urls, allow_reassign, attachments, cc_roles, client_id, field_options, form_field_groups, form_field_rules, merge_fields, message, metadata, subject, test_mode, title, use_preexisting_fields].hash + [form_fields_per_document, signer_roles, files, file_urls, allow_reassign, attachments, cc_roles, client_id, field_options, form_field_groups, form_field_rules, merge_fields, message, metadata, subject, test_mode, title, use_preexisting_fields, ignore_text_tags_extraction_errors].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb index 210aae8..9d52d17 100644 --- a/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +++ b/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb @@ -152,6 +152,10 @@ class UnclaimedDraftCreateEmbeddedRequest # @return [Boolean] attr_accessor :use_text_tags + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # 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. # @return [Boolean] attr_accessor :populate_auto_fill_fields @@ -219,6 +223,7 @@ def self.attribute_map :'type' => :'type', :'use_preexisting_fields' => :'use_preexisting_fields', :'use_text_tags' => :'use_text_tags', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'populate_auto_fill_fields' => :'populate_auto_fill_fields', :'expires_at' => :'expires_at' } @@ -271,6 +276,7 @@ def self.openapi_types :'type' => :'String', :'use_preexisting_fields' => :'Boolean', :'use_text_tags' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean', :'populate_auto_fill_fields' => :'Boolean', :'expires_at' => :'Integer' } @@ -508,6 +514,12 @@ def initialize(attributes = {}) self.use_text_tags = false end + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end + if attributes.key?(:'populate_auto_fill_fields') self.populate_auto_fill_fields = attributes[:'populate_auto_fill_fields'] else @@ -649,6 +661,7 @@ def ==(o) type == o.type && use_preexisting_fields == o.use_preexisting_fields && use_text_tags == o.use_text_tags && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && populate_auto_fill_fields == o.populate_auto_fill_fields && expires_at == o.expires_at end @@ -662,7 +675,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [client_id, requester_email_address, files, file_urls, allow_ccs, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, editor_options, field_options, force_signer_page, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, hold_request, is_for_embedded_signing, message, metadata, requesting_redirect_url, show_preview, show_progress_stepper, signers, signing_options, signing_redirect_url, skip_me_now, subject, test_mode, type, use_preexisting_fields, use_text_tags, populate_auto_fill_fields, expires_at].hash + [client_id, requester_email_address, files, file_urls, allow_ccs, allow_decline, allow_reassign, attachments, cc_email_addresses, custom_fields, editor_options, field_options, force_signer_page, force_subject_message, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, hold_request, is_for_embedded_signing, message, metadata, requesting_redirect_url, show_preview, show_progress_stepper, signers, signing_options, signing_redirect_url, skip_me_now, subject, test_mode, type, use_preexisting_fields, use_text_tags, ignore_text_tags_extraction_errors, populate_auto_fill_fields, expires_at].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/unclaimed_draft_create_request.rb b/lib/dropbox-sign/models/unclaimed_draft_create_request.rb index 3aa8412..62c54fc 100644 --- a/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +++ b/lib/dropbox-sign/models/unclaimed_draft_create_request.rb @@ -109,6 +109,10 @@ class UnclaimedDraftCreateRequest # @return [Boolean] attr_accessor :use_text_tags + # Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. + # @return [Boolean] + attr_accessor :ignore_text_tags_extraction_errors + # 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. # @return [Integer, nil] attr_accessor :expires_at @@ -161,6 +165,7 @@ def self.attribute_map :'test_mode' => :'test_mode', :'use_preexisting_fields' => :'use_preexisting_fields', :'use_text_tags' => :'use_text_tags', + :'ignore_text_tags_extraction_errors' => :'ignore_text_tags_extraction_errors', :'expires_at' => :'expires_at' } end @@ -201,6 +206,7 @@ def self.openapi_types :'test_mode' => :'Boolean', :'use_preexisting_fields' => :'Boolean', :'use_text_tags' => :'Boolean', + :'ignore_text_tags_extraction_errors' => :'Boolean', :'expires_at' => :'Integer' } end @@ -377,6 +383,12 @@ def initialize(attributes = {}) self.use_text_tags = false end + if attributes.key?(:'ignore_text_tags_extraction_errors') + self.ignore_text_tags_extraction_errors = attributes[:'ignore_text_tags_extraction_errors'] + else + self.ignore_text_tags_extraction_errors = false + end + if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -476,6 +488,7 @@ def ==(o) test_mode == o.test_mode && use_preexisting_fields == o.use_preexisting_fields && use_text_tags == o.use_text_tags && + ignore_text_tags_extraction_errors == o.ignore_text_tags_extraction_errors && expires_at == o.expires_at end @@ -488,7 +501,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, files, file_urls, allow_decline, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, show_progress_stepper, signers, signing_options, signing_redirect_url, subject, test_mode, use_preexisting_fields, use_text_tags, expires_at].hash + [type, files, file_urls, allow_decline, attachments, cc_email_addresses, client_id, custom_fields, field_options, form_field_groups, form_field_rules, form_fields_per_document, hide_text_tags, message, metadata, show_progress_stepper, signers, signing_options, signing_redirect_url, subject, test_mode, use_preexisting_fields, use_text_tags, ignore_text_tags_extraction_errors, expires_at].hash end # Builds the object from hash diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index ba50232..c7f08a1 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -5087,6 +5087,8 @@ paths: $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -8553,6 +8555,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 +8804,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 +8953,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 +9312,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 +10673,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 +10819,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 +11002,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 +11196,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. @@ -11943,7 +11977,7 @@ components: description: 'Path at which an error occurred.' type: string error_name: - description: 'Name of the error.' + description: 'Name of the error. See the `x-error-codes` catalog in openapi file for a complete list of possible error codes with detailed information including HTTP status codes, causes, remediation steps, and retry guidance.' type: string type: object FaxResponse: @@ -13750,6 +13784,8 @@ components: template: $ref: '#/components/schemas/TemplateResponse' type: object + x-fern-audiences: + - events EventCallbackRequestEvent: description: 'Basic information about the event that occurred.' required: @@ -13793,6 +13829,8 @@ components: event_metadata: $ref: '#/components/schemas/EventCallbackRequestEventMetadata' type: object + x-fern-audiences: + - events EventCallbackRequestEventMetadata: description: 'Specific metadata about the event.' properties: @@ -13813,6 +13851,8 @@ components: type: string nullable: true type: object + x-fern-audiences: + - events responses: EventCallbackResponse: description: 'successful operation' @@ -13821,6 +13861,8 @@ components: schema: type: string default: 'Hello API Event Received' + x-fern-audiences: + - events examples: AccountCreateRequest: summary: 'Default Example' @@ -14322,22 +14364,170 @@ components: summary: 'Example: signature_request_sent' value: $ref: examples/json/EventCallbackAccountSignatureRequestSent.json + x-fern-audiences: + - events EventCallbackAccountTemplateCreated: summary: 'Example: template_created' value: $ref: examples/json/EventCallbackAccountTemplateCreated.json + x-fern-audiences: + - events EventCallbackAppAccountConfirmed: summary: 'Example: account_confirmed' value: $ref: examples/json/EventCallbackAppAccountConfirmed.json + x-fern-audiences: + - events EventCallbackAppSignatureRequestSent: summary: 'Example: signature_request_sent' value: $ref: examples/json/EventCallbackAppSignatureRequestSent.json + x-fern-audiences: + - events EventCallbackAppTemplateCreated: summary: 'Example: template_created' value: $ref: examples/json/EventCallbackAppTemplateCreated.json + x-fern-audiences: + - events + EventCallbackSignatureRequestViewed: + summary: 'Signature Request Viewed Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestViewed.json + x-fern-audiences: + - events + EventCallbackSignatureRequestSigned: + summary: 'Signature Request Signed Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestSigned.json + x-fern-audiences: + - events + EventCallbackSignatureRequestSignerRemoved: + summary: 'Signature Request Signer Removed Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestSignerRemoved.json + x-fern-audiences: + - events + EventCallbackSignatureRequestDownloadable: + summary: 'Signature Request Downloadable Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestDownloadable.json + x-fern-audiences: + - events + EventCallbackSignatureRequestSent: + summary: 'Signature Request Sent Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestSent.json + x-fern-audiences: + - events + EventCallbackSignatureRequestAllSigned: + summary: 'Signature Request All Signed Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestAllSigned.json + x-fern-audiences: + - events + EventCallbackSignatureRequestInvalid: + summary: 'Signature Request Invalid Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestInvalid.json + x-fern-audiences: + - events + EventCallbackSignatureRequestEmailBounce: + summary: 'Signature Request Email Bounce Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestEmailBounce.json + x-fern-audiences: + - events + EventCallbackSignatureRequestRemind: + summary: 'Signature Request Remind Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestRemind.json + x-fern-audiences: + - events + EventCallbackSignatureRequestIncompleteQes: + summary: 'Signature Request Incomplete QES Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestIncompleteQes.json + x-fern-audiences: + - events + EventCallbackSignatureRequestDestroyed: + summary: 'Signature Request Destroyed Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestDestroyed.json + x-fern-audiences: + - events + EventCallbackSignatureRequestCanceled: + summary: 'Signature Request Canceled Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestCanceled.json + x-fern-audiences: + - events + EventCallbackSignatureRequestDeclined: + summary: 'Signature Request Declined Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestDeclined.json + x-fern-audiences: + - events + EventCallbackSignatureRequestExpired: + summary: 'Signature Request Expired Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestExpired.json + x-fern-audiences: + - events + EventCallbackSignatureRequestReassigned: + summary: 'Signature Request Reassigned Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestReassigned.json + x-fern-audiences: + - events + EventCallbackSignatureRequestPrepared: + summary: 'Signature Request Prepared Event Example' + value: + $ref: examples/json/EventCallbackSignatureRequestPrepared.json + x-fern-audiences: + - events + EventCallbackAccountConfirmed: + summary: 'Account Confirmed Event Example' + value: + $ref: examples/json/EventCallbackAccountConfirmed.json + x-fern-audiences: + - events + EventCallbackUnknownError: + summary: 'Unknown Error Event Example' + value: + $ref: examples/json/EventCallbackUnknownError.json + x-fern-audiences: + - events + EventCallbackFileError: + summary: 'File Error Event Example' + value: + $ref: examples/json/EventCallbackFileError.json + x-fern-audiences: + - events + EventCallbackTemplateCreated: + summary: 'Template Created Event Example' + value: + $ref: examples/json/EventCallbackTemplateCreated.json + x-fern-audiences: + - events + EventCallbackTemplateError: + summary: 'Template Error Event Example' + value: + $ref: examples/json/EventCallbackTemplateError.json + x-fern-audiences: + - events + EventCallbackSignUrlInvalid: + summary: 'Sign URL Invalid Event Example' + value: + $ref: examples/json/EventCallbackSignUrlInvalid.json + x-fern-audiences: + - events + EventCallbackCallbackTest: + summary: 'Callback Test Event Example' + value: + $ref: examples/json/EventCallbackCallbackTest.json + x-fern-audiences: + - events requestBodies: EventCallbackAccountRequest: description: |- @@ -14415,100 +14605,242 @@ security: externalDocs: description: 'Legacy API Reference' url: 'https://app.hellosign.com/api/reference' -x-webhooks: - accountCallback: - post: - summary: 'Account Callbacks' - operationId: accountUpdateEventCallback - description: - $ref: ./markdown/en/descriptions/account-callback-description.md - x-meta: - seo: - title: 'Account Callbacks | API Documentation | Dropbox Sign for Developers' - description: 'The Dropbox Sign API allows you to build with a wide range of tools. To find out how to consume Dropbox Sign Events at the account level, click here.' - x-codeSamples: - - - lang: PHP - label: PHP - source: - $ref: examples/EventCallbackExample.php - - - lang: 'C#' - label: 'C#' - source: - $ref: examples/EventCallbackExample.cs - - - lang: TypeScript - label: TypeScript - source: - $ref: examples/EventCallbackExample.ts - - - lang: Java - label: Java - source: - $ref: examples/EventCallbackExample.java - - - lang: Ruby - label: Ruby - source: - $ref: examples/EventCallbackExample.rb - - - lang: Python - label: Python - source: - $ref: examples/EventCallbackExample.py - tags: - - 'Callbacks and Events' - requestBody: - $ref: '#/components/requestBodies/EventCallbackAccountRequest' - responses: - 200: - $ref: '#/components/responses/EventCallbackResponse' - appCallback: - post: - summary: 'App Callbacks' - description: - $ref: ./markdown/en/descriptions/api-app-callback-description.md - operationId: apiAppCreateEventCallback - x-meta: - seo: - title: 'App Callbacks | API Documentation | Dropbox Sign for Developers' - description: 'The Dropbox Sign API allows you to build with a wide range of tools. To find out how to consume Dropbox Sign Events at the App level, click here.' - x-codeSamples: - - - lang: PHP - label: PHP - source: - $ref: examples/EventCallbackExample.php - - - lang: 'C#' - label: 'C#' - source: - $ref: examples/EventCallbackExample.cs - - - lang: TypeScript - label: TypeScript - source: - $ref: examples/EventCallbackExample.ts - - - lang: Java - label: Java - source: - $ref: examples/EventCallbackExample.java - - - lang: Ruby - label: Ruby - source: - $ref: examples/EventCallbackExample.rb - - - lang: Python - label: Python - source: - $ref: examples/EventCallbackExample.py - tags: - - 'Callbacks and Events' - requestBody: - $ref: '#/components/requestBodies/EventCallbackAppRequest' - responses: - 200: - $ref: '#/components/responses/EventCallbackResponse' +x-webhooks: [] +x-error-codes: + bad_request: + http_status: 400 + summary: 'The request contained invalid or malformed parameters.' + cause: 'A parameter failed validation, or the request body was malformed.' + remediation: 'Inspect error_msg and error_path, correct the offending parameter, and resend.' + retryable: 'no' + unauthorized: + http_status: 401 + summary: 'The credentials supplied are missing or invalid.' + cause: 'Missing, malformed, or invalid API key or OAuth access token.' + remediation: 'Verify the API key or OAuth token and the Authorization header, then retry.' + retryable: 'no' + payment_required: + http_status: 402 + summary: 'The account must be credited or upgraded to perform this action.' + cause: 'The action requires a paid plan, additional quota, or API credits.' + remediation: 'Upgrade the plan or add the required credits/quota, then retry.' + retryable: 'no' + forbidden: + http_status: 403 + summary: 'The action is not allowed for these credentials or in the current context.' + cause: 'The authenticated account lacks access to the resource or operation.' + remediation: 'Confirm the account has access to the resource and the required permissions.' + retryable: 'no' + not_found: + http_status: 404 + summary: 'Nothing matches the requested resource.' + cause: 'The resource id does not exist or is not visible to this account.' + remediation: 'Verify the id and that the resource belongs to the authenticated account.' + retryable: 'no' + conflict: + http_status: 409 + summary: 'The request was well-formed but conflicts with the current state.' + cause: 'The target resource is in a state incompatible with the request (e.g. a signature request is still being set up).' + remediation: 'Wait briefly and retry, or listen for a callback event confirming the resource is ready.' + retryable: conditional + exceeded_rate: + http_status: 429 + summary: 'Your account''s API request rate limit has been exceeded.' + cause: 'Too many requests were sent within the rate-limit window for this request type.' + remediation: 'Pace requests using the X-RateLimit-* response headers and retry after the window resets.' + retryable: 'yes' + backoff: 'Honor X-Ratelimit-Reset (Unix epoch); otherwise exponential backoff with jitter. No Retry-After header is sent.' + unknown: + http_status: 500 + summary: 'An unexpected error occurred.' + cause: 'An unhandled server-side error, or a status code without a more specific error_name.' + remediation: 'Retry transient failures; if it persists, contact support with the request details.' + retryable: conditional + backoff: 'For transient 5xx, retry with exponential backoff; otherwise do not retry.' + team_invite_failed: + http_status: 403 + summary: 'The team invitation could not be completed.' + cause: 'The invitee already belongs to a team, or the invite is otherwise not permitted.' + remediation: 'Confirm the invitee is not already on a team before inviting.' + retryable: 'no' + max_faxes: + http_status: 429 + summary: 'Too many fax transmissions are currently pending or transmitting.' + cause: 'The account has reached the limit of concurrent in-flight fax transmissions.' + remediation: 'Wait for outstanding transmissions to complete, then retry.' + retryable: 'yes' + backoff: 'Retry with exponential backoff once pending transmissions clear.' + invalid_recipient: + http_status: 400 + summary: 'The recipient (fax number or email address) is invalid.' + cause: 'A recipient value did not pass validation.' + remediation: 'Correct the recipient value and resend.' + retryable: 'no' + signature_request_cancel_failed: + http_status: 400 + summary: 'The signature request could not be cancelled.' + cause: 'The caller is not the requester, or the request is already fully executed/closed.' + remediation: 'Only the requester can cancel, and only before the request is fully executed.' + retryable: 'no' + signature_request_remove_failed: + http_status: 400 + summary: 'Access to the signature request could not be removed.' + cause: 'The signature request has not yet been fully executed, so access cannot be revoked.' + remediation: 'Wait until all parties have signed, or call /signature_request/cancel to cancel incomplete requests instead.' + retryable: 'no' + maintenance: + http_status: 503 + summary: 'The request could not be completed because the site is under maintenance.' + cause: 'The API is in a scheduled maintenance window.' + remediation: 'Retry once the maintenance window ends.' + retryable: 'yes' + backoff: 'Retry later with exponential backoff.' + method_not_supported: + http_status: 405 + summary: 'The HTTP method is not supported for this endpoint.' + cause: 'The request used a verb the endpoint does not accept.' + remediation: 'Use the HTTP method documented for the endpoint.' + retryable: 'no' + invalid_reminder: + http_status: 400 + summary: 'The signature request reminder was invalid.' + cause: 'A reminder was attempted against an ineligible request (e.g. embedded, closed, or expired).' + remediation: 'Only send reminders for eligible (non-embedded, open) signature requests.' + retryable: 'no' + unavailable: + http_status: 503 + summary: 'The service is temporarily unavailable.' + cause: 'A downstream dependency or the service itself is temporarily unavailable.' + remediation: 'Retry later with exponential backoff.' + retryable: 'yes' + backoff: 'Retry later with exponential backoff and jitter.' + unprocessable_entity: + http_status: 422 + summary: 'The request was understood but the target entity cannot be processed.' + cause: 'The resource is still being processed, or it is in an error state.' + remediation: 'If the resource is still processing, wait and retry; if it is in an error state, recreate/resend it instead of retrying.' + retryable: conditional + backoff: 'If still processing, retry with exponential backoff; if in an error state, do not retry.' + signature_request_expired: + http_status: + - 400 + - 403 + summary: 'The signature request has expired.' + cause: 'The operation targets a request whose expiration has passed. Most endpoints return 400; final-copy/download endpoints return 403.' + remediation: 'The request can no longer be acted upon; create a new signature request.' + retryable: 'no' + deleted: + http_status: 410 + summary: 'The request was cancelled or deleted.' + cause: 'The resource has been cancelled or removed and is no longer available.' + remediation: 'Do not retry; the resource is permanently gone.' + retryable: 'no' +x-oauth-error-codes: + invalid_grant: + http_status: + - 400 + - 401 + summary: 'The OAuth grant (authorization code or refresh token) is invalid or expired.' + cause: 'The code/token was already used, expired, or does not match the client.' + remediation: 'Re-initiate the OAuth flow to obtain a fresh authorization code.' + retryable: 'no' + invalid_client: + http_status: 400 + summary: 'The OAuth client credentials are invalid.' + cause: 'The client_id or client_secret is unrecognized or incorrect.' + remediation: 'Verify the client_id and client_secret from the API app settings.' + retryable: 'no' + invalid_request: + http_status: 400 + summary: 'The OAuth request is malformed or missing required parameters.' + cause: 'A required parameter is missing, or the request format is invalid.' + remediation: 'Check the request against the OAuth token endpoint documentation.' + retryable: 'no' + unauthorized_client: + http_status: + - 401 + - 403 + summary: 'The OAuth client is not authorized to perform this action.' + cause: 'The app has not been approved, or the action is outside the granted scopes.' + remediation: 'Ensure the app is approved and the required scopes are granted.' + retryable: 'no' + unsupported_grant_type: + http_status: 400 + summary: 'The grant type is not supported.' + cause: 'The grant_type parameter value is not recognized.' + remediation: 'Use authorization_code or refresh_token as the grant_type.' + retryable: 'no' + payment_required: + http_status: 402 + summary: 'The account requires a paid plan to use this OAuth app.' + cause: 'The authorizing account does not have a plan that supports this integration.' + remediation: 'Upgrade the account to a plan that includes OAuth app access.' + retryable: 'no' + addon_required: + http_status: 402 + summary: 'An add-on is required to use this OAuth app.' + cause: 'The account plan does not include the add-on needed for this integration.' + remediation: 'Add the required add-on to the account subscription.' + retryable: 'no' + invalid_scope: + http_status: 400 + summary: 'The requested OAuth scope is invalid.' + cause: 'The scope parameter contains values not permitted for the app.' + remediation: 'Request only scopes that the app is configured to use.' + retryable: 'no' + quota_reached: + http_status: 402 + summary: 'The account has reached its usage quota for this OAuth app.' + cause: 'The authorizing account has exhausted its quota for the integration.' + remediation: 'Contact the app owner or upgrade the account quota.' + retryable: 'no' + server_error: + http_status: 500 + summary: 'An internal server error occurred during OAuth processing.' + cause: 'An unexpected error on the server side while handling the OAuth request.' + remediation: 'Retry the request; if it persists, contact support.' + retryable: 'yes' + backoff: 'Retry with exponential backoff.' + temporary_unavailable: + http_status: 503 + summary: 'The OAuth service is temporarily unavailable.' + cause: 'The service is under maintenance or experiencing temporary issues.' + remediation: 'Retry after a short delay.' + retryable: 'yes' + backoff: 'Retry with exponential backoff.' +x-error-events: + signature_request_invalid: + event_type: signature_request_invalid + delivery: webhook + summary: 'Asynchronous error while processing a signature request.' + cause: 'A signature request could not be processed (e.g. invalid tags, fields, or merge data).' + remediation: 'Inspect event.event_metadata.event_message in the callback, correct the request, and resend.' + retryable: conditional + unknown_error: + event_type: unknown_error + delivery: webhook + summary: 'An unspecified asynchronous processing error occurred.' + cause: 'An unexpected error occurred while processing the request asynchronously.' + remediation: 'Check the request status in the API dashboard; retry or contact support if it persists.' + retryable: conditional + file_error: + event_type: file_error + delivery: webhook + summary: 'Asynchronous error while processing an uploaded file.' + cause: 'A file attached to a request could not be processed.' + remediation: 'Resend the request with a supported, non-corrupt file.' + retryable: conditional + template_error: + event_type: template_error + delivery: webhook + summary: 'Asynchronous error while creating a template.' + cause: 'Template file processing failed (e.g. unsupported or corrupt file).' + remediation: 'Recreate the template with a valid file; check status in the API dashboard.' + retryable: conditional + sign_url_invalid: + event_type: sign_url_invalid + delivery: webhook + summary: 'An embedded signing URL has expired or become invalid.' + cause: 'The embedded sign_url is no longer valid (e.g. expired).' + remediation: 'Generate a fresh embedded sign_url via the embedded sign URL endpoint.' + retryable: 'yes' diff --git a/spec/api/error_handling_spec.rb b/spec/api/error_handling_spec.rb new file mode 100644 index 0000000..b584600 --- /dev/null +++ b/spec/api/error_handling_spec.rb @@ -0,0 +1,73 @@ +=begin +#Dropbox Sign API + +#Dropbox Sign v3 API + +The version of the OpenAPI document: 3.0.0 +Contact: apisupport@hellosign.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'spec_helper' +require_relative '../test_utils' + +describe 'Error Handling' do + context 'ApiError propagation' do + api = Dropbox::Sign::AccountApi.new + + it 'raises ApiError for 5XX server errors' do + set_expected_response(500, '{"error":{"error_msg":"Internal server error","error_name":"server_error"}}') + + expect { + api.account_get({ email_address: "test@example.com" }) + }.to raise_error(Dropbox::Sign::ApiError) { |e| + expect(e.code).to eq(500) + } + end + + it 'raises ApiError for 503 server errors' do + set_expected_response(503, '{"error":{"error_msg":"Service unavailable","error_name":"service_unavailable"}}') + + expect { + api.account_get({ email_address: "test@example.com" }) + }.to raise_error(Dropbox::Sign::ApiError) { |e| + expect(e.code).to eq(503) + } + end + + it 'raises ApiError for connection failures' do + Typhoeus.stub(/hellosign.com/) do + Typhoeus::Response.new( + :code => 0, + :return_message => "Connection refused" + ) + end + + expect { + api.account_get({ email_address: "test@example.com" }) + }.to raise_error(Dropbox::Sign::ApiError) { |e| + expect(e.code).to eq(0) + } + end + + it 'raises ApiError for timeout errors' do + Typhoeus.stub(/hellosign.com/) do + response = Typhoeus::Response.new( + :code => 0, + :return_message => "Timeout was reached", + :mock => true + ) + response.instance_variable_set(:@options, response.instance_variable_get(:@options).merge(return_code: :operation_timedout)) + response + end + + expect { + api.account_get({ email_address: "test@example.com" }) + }.to raise_error(Dropbox::Sign::ApiError) { |e| + expect(e.message).to include("timed out") + } + end + end +end diff --git a/templates/api.mustache b/templates/api.mustache index e5611a3..cade90e 100644 --- a/templates/api.mustache +++ b/templates/api.mustache @@ -307,7 +307,7 @@ module {{moduleName}} range_code_left = "#{range_code}00".to_i range_code_right = "#{range_code}99".to_i <%={{ }}=%> - if e.code >= range_code_left && e.code <= range_code_right + if e.code && e.code >= range_code_left && e.code <= range_code_right body = @api_client.convert_to_type( JSON.parse("[#{e.response_body}]", :symbolize_names => true)[0], "{{moduleName}}::{{{dataType}}}" @@ -338,6 +338,7 @@ module {{moduleName}} {{/dataType}} {{/responses}} {{/returnType}} + raise e end {{/useCustomTemplateCode}}