Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build dropbox-sign.gemspec
- gem install ./dropbox-sign-1.11.0.gem
- gem install ./dropbox-sign-1.12.0.gem
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dropbox-sign (1.11.0)
dropbox-sign (1.12.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.0
- Package version: 1.12.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen

Expand All @@ -47,15 +47,15 @@ gem build dropbox-sign.gemspec
Then install the gem locally:

```shell
gem install ./dropbox-sign-1.11.0.gem
gem install ./dropbox-sign-1.12.0.gem
```

(for development, run `gem install --dev ./dropbox-sign-1.11.0.gem` to install the development dependencies)
(for development, run `gem install --dev ./dropbox-sign-1.12.0.gem` to install the development dependencies)


Finally add this to the Gemfile:

gem 'dropbox-sign', '~> 1.11.0'
gem 'dropbox-sign', '~> 1.12.0'

### Install from Git

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.0
1.12.0
2 changes: 1 addition & 1 deletion docs/ErrorResponseError.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Contains information about an error that occurred.
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| `error_msg`<sup>*_required_</sup> | ```String``` | Message describing an error. | |
| `error_name`<sup>*_required_</sup> | ```String``` | Name of the error. | |
| `error_name`<sup>*_required_</sup> | ```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. | |

12 changes: 8 additions & 4 deletions lib/dropbox-sign/api/account_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -217,6 +218,7 @@ def account_get_with_http_info(opts = {})
e.message
end

raise e
end

if @api_client.config.debugging
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down
13 changes: 9 additions & 4 deletions lib/dropbox-sign/api/api_app_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -378,6 +381,7 @@ def api_app_list_with_http_info(opts = {})
e.message
end

raise e
end

if @api_client.config.debugging
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/dropbox-sign/api/bulk_send_job_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -208,6 +209,7 @@ def bulk_send_job_list_with_http_info(opts = {})
e.message
end

raise e
end

if @api_client.config.debugging
Expand Down
6 changes: 4 additions & 2 deletions lib/dropbox-sign/api/embedded_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down
13 changes: 9 additions & 4 deletions lib/dropbox-sign/api/fax_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -175,6 +176,7 @@ def fax_files_with_http_info(fax_id, opts = {})
e.message
end

raise e
end

if @api_client.config.debugging
Expand Down Expand Up @@ -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"
Expand All @@ -269,6 +271,7 @@ def fax_get_with_http_info(fax_id, opts = {})
e.message
end

raise e
end

if @api_client.config.debugging
Expand Down Expand Up @@ -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"
Expand All @@ -375,6 +378,7 @@ def fax_list_with_http_info(opts = {})
e.message
end

raise e
end

if @api_client.config.debugging
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down
Loading
Loading