dropbox-sign 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +26 -24
- data/README.md +6 -4
- data/VERSION +1 -1
- data/docs/AccountResponse.md +1 -0
- data/docs/AccountResponseQuotas.md +1 -0
- data/docs/AccountResponseUsage.md +10 -0
- data/dropbox-sign.gemspec +2 -1
- data/lib/dropbox-sign/api/account_api.rb +1 -1
- data/lib/dropbox-sign/api/api_app_api.rb +3 -3
- data/lib/dropbox-sign/api/bulk_send_job_api.rb +5 -5
- data/lib/dropbox-sign/api/embedded_api.rb +1 -1
- data/lib/dropbox-sign/api/o_auth_api.rb +1 -1
- data/lib/dropbox-sign/api/report_api.rb +1 -1
- data/lib/dropbox-sign/api/signature_request_api.rb +5 -5
- data/lib/dropbox-sign/api/team_api.rb +5 -5
- data/lib/dropbox-sign/api/template_api.rb +4 -4
- data/lib/dropbox-sign/api/unclaimed_draft_api.rb +1 -1
- data/lib/dropbox-sign/api_client.rb +27 -24
- data/lib/dropbox-sign/api_error.rb +2 -1
- data/lib/dropbox-sign/configuration.rb +39 -9
- data/lib/dropbox-sign/event_callback_helper.rb +1 -1
- data/lib/dropbox-sign/models/account_create_request.rb +2 -4
- data/lib/dropbox-sign/models/account_create_response.rb +2 -4
- data/lib/dropbox-sign/models/account_get_response.rb +2 -4
- data/lib/dropbox-sign/models/account_response.rb +17 -9
- data/lib/dropbox-sign/models/account_response_quotas.rb +19 -9
- data/lib/dropbox-sign/models/account_response_usage.rb +251 -0
- data/lib/dropbox-sign/models/account_update_request.rb +2 -4
- data/lib/dropbox-sign/models/account_verify_request.rb +2 -4
- data/lib/dropbox-sign/models/account_verify_response.rb +2 -4
- data/lib/dropbox-sign/models/account_verify_response_account.rb +2 -4
- data/lib/dropbox-sign/models/api_app_create_request.rb +2 -4
- data/lib/dropbox-sign/models/api_app_get_response.rb +2 -4
- data/lib/dropbox-sign/models/api_app_list_response.rb +2 -4
- data/lib/dropbox-sign/models/api_app_response.rb +2 -4
- data/lib/dropbox-sign/models/api_app_response_o_auth.rb +2 -4
- data/lib/dropbox-sign/models/api_app_response_options.rb +2 -4
- data/lib/dropbox-sign/models/api_app_response_owner_account.rb +2 -4
- data/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb +2 -4
- data/lib/dropbox-sign/models/api_app_update_request.rb +3 -5
- data/lib/dropbox-sign/models/bulk_send_job_get_response.rb +2 -4
- data/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +2 -4
- data/lib/dropbox-sign/models/bulk_send_job_list_response.rb +2 -4
- data/lib/dropbox-sign/models/bulk_send_job_response.rb +2 -4
- data/lib/dropbox-sign/models/bulk_send_job_send_response.rb +2 -4
- data/lib/dropbox-sign/models/embedded_edit_url_request.rb +2 -4
- data/lib/dropbox-sign/models/embedded_edit_url_response.rb +2 -4
- data/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb +2 -4
- data/lib/dropbox-sign/models/embedded_sign_url_response.rb +2 -4
- data/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb +2 -4
- data/lib/dropbox-sign/models/error_response.rb +2 -4
- data/lib/dropbox-sign/models/error_response_error.rb +2 -4
- data/lib/dropbox-sign/models/event_callback_request.rb +2 -4
- data/lib/dropbox-sign/models/event_callback_request_event.rb +2 -4
- data/lib/dropbox-sign/models/event_callback_request_event_metadata.rb +2 -4
- data/lib/dropbox-sign/models/file_response.rb +2 -4
- data/lib/dropbox-sign/models/file_response_data_uri.rb +2 -4
- data/lib/dropbox-sign/models/list_info_response.rb +2 -4
- data/lib/dropbox-sign/models/o_auth_token_generate_request.rb +2 -4
- data/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +2 -4
- data/lib/dropbox-sign/models/o_auth_token_response.rb +2 -4
- data/lib/dropbox-sign/models/report_create_request.rb +2 -4
- data/lib/dropbox-sign/models/report_create_response.rb +2 -4
- data/lib/dropbox-sign/models/report_response.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb +5 -7
- data/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb +5 -7
- data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +5 -7
- data/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb +5 -7
- data/lib/dropbox-sign/models/signature_request_get_response.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_list_response.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_remind_request.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_attachment.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb +8 -4
- data/lib/dropbox-sign/models/signature_request_response_data_base.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb +8 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_text.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_response_signatures.rb +2 -4
- data/lib/dropbox-sign/models/signature_request_send_request.rb +5 -7
- data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +6 -7
- data/lib/dropbox-sign/models/signature_request_update_request.rb +2 -4
- data/lib/dropbox-sign/models/sub_attachment.rb +2 -4
- data/lib/dropbox-sign/models/sub_bulk_signer_list.rb +2 -4
- data/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb +2 -4
- data/lib/dropbox-sign/models/sub_cc.rb +2 -4
- data/lib/dropbox-sign/models/sub_custom_field.rb +2 -4
- data/lib/dropbox-sign/models/sub_editor_options.rb +2 -4
- data/lib/dropbox-sign/models/sub_field_options.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_field_group.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_field_rule.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_field_rule_action.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb +8 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +2 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb +8 -4
- data/lib/dropbox-sign/models/sub_merge_field.rb +2 -4
- data/lib/dropbox-sign/models/sub_o_auth.rb +2 -4
- data/lib/dropbox-sign/models/sub_options.rb +2 -4
- data/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb +2 -4
- data/lib/dropbox-sign/models/sub_signature_request_signer.rb +4 -6
- data/lib/dropbox-sign/models/sub_signature_request_template_signer.rb +4 -6
- data/lib/dropbox-sign/models/sub_signing_options.rb +2 -4
- data/lib/dropbox-sign/models/sub_team_response.rb +2 -4
- data/lib/dropbox-sign/models/sub_template_role.rb +2 -4
- data/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb +2 -4
- data/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb +2 -4
- data/lib/dropbox-sign/models/sub_white_labeling_options.rb +2 -4
- data/lib/dropbox-sign/models/team_add_member_request.rb +2 -4
- data/lib/dropbox-sign/models/team_create_request.rb +2 -4
- data/lib/dropbox-sign/models/team_get_info_response.rb +2 -4
- data/lib/dropbox-sign/models/team_get_response.rb +2 -4
- data/lib/dropbox-sign/models/team_info_response.rb +2 -4
- data/lib/dropbox-sign/models/team_invite_response.rb +2 -4
- data/lib/dropbox-sign/models/team_invites_response.rb +2 -4
- data/lib/dropbox-sign/models/team_member_response.rb +2 -4
- data/lib/dropbox-sign/models/team_members_response.rb +2 -4
- data/lib/dropbox-sign/models/team_parent_response.rb +2 -4
- data/lib/dropbox-sign/models/team_remove_member_request.rb +2 -4
- data/lib/dropbox-sign/models/team_response.rb +2 -4
- data/lib/dropbox-sign/models/team_sub_teams_response.rb +2 -4
- data/lib/dropbox-sign/models/team_update_request.rb +2 -4
- data/lib/dropbox-sign/models/template_add_user_request.rb +2 -4
- data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +4 -6
- data/lib/dropbox-sign/models/template_create_embedded_draft_response.rb +2 -4
- data/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb +2 -4
- data/lib/dropbox-sign/models/template_create_request.rb +4 -6
- data/lib/dropbox-sign/models/template_create_response.rb +2 -4
- data/lib/dropbox-sign/models/template_create_response_template.rb +2 -4
- data/lib/dropbox-sign/models/template_edit_response.rb +2 -4
- data/lib/dropbox-sign/models/template_get_response.rb +2 -4
- data/lib/dropbox-sign/models/template_list_response.rb +2 -4
- data/lib/dropbox-sign/models/template_remove_user_request.rb +2 -4
- data/lib/dropbox-sign/models/template_response.rb +2 -4
- data/lib/dropbox-sign/models/template_response_account.rb +2 -4
- data/lib/dropbox-sign/models/template_response_account_quota.rb +2 -4
- data/lib/dropbox-sign/models/template_response_cc_role.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_custom_field_base.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_custom_field_text.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_field_group.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_field_group_rule.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_base.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_initials.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_radio.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_signature.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_text.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_base.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_initials.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_radio.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_signature.rb +2 -4
- data/lib/dropbox-sign/models/template_response_document_static_field_text.rb +2 -4
- data/lib/dropbox-sign/models/template_response_field_avg_text_length.rb +2 -4
- data/lib/dropbox-sign/models/template_response_signer_role.rb +2 -4
- data/lib/dropbox-sign/models/template_update_files_request.rb +4 -6
- data/lib/dropbox-sign/models/template_update_files_response.rb +2 -4
- data/lib/dropbox-sign/models/template_update_files_response_template.rb +2 -4
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +5 -6
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb +5 -7
- data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +5 -6
- data/lib/dropbox-sign/models/unclaimed_draft_create_response.rb +2 -4
- data/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb +2 -4
- data/lib/dropbox-sign/models/unclaimed_draft_response.rb +2 -4
- data/lib/dropbox-sign/models/warning_response.rb +2 -4
- data/lib/dropbox-sign/version.rb +2 -2
- data/lib/dropbox-sign.rb +2 -1
- data/openapi-config.yaml +1 -1
- data/openapi-sdk.yaml +84 -69
- data/run-build +1 -1
- data/spec/api_client_spec.rb +3 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/templates/README.mustache +1 -0
- data/templates/api.mustache +58 -12
- data/templates/api_client.mustache +16 -35
- data/templates/api_client_faraday_partial.mustache +102 -44
- data/templates/api_client_httpx_partial.mustache +134 -0
- data/templates/api_client_typhoeus_partial.mustache +23 -15
- data/templates/api_doc.mustache +1 -1
- data/templates/api_error.mustache +1 -0
- data/templates/api_info.mustache +1 -1
- data/templates/api_test.mustache +1 -1
- data/templates/base_object.mustache +1 -3
- data/templates/configuration.mustache +139 -33
- data/templates/configuration_faraday_partial.mustache +40 -0
- data/templates/configuration_httpx_partial.mustache +11 -0
- data/templates/configuration_typhoeus_partial.mustache +41 -0
- data/templates/gem.mustache +14 -0
- data/templates/gemspec.mustache +10 -4
- data/templates/model_test.mustache +3 -2
- data/templates/partial_model_enum_class.mustache +7 -4
- data/templates/partial_model_generic.mustache +7 -7
- data/templates/partial_oneof_module.mustache +4 -4
- data/templates/partial_oneof_module_doc.mustache +1 -0
- data/templates/travis.mustache +1 -4
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 114269708ea5947a2b0cbcf83eeed45ce3208866a339aab074c57100ec0fe3ba
|
4
|
+
data.tar.gz: f594ae322a576bf6a8536f77bf81ecde1db3d420a755f4da0a2157a0a178978b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe4ada774fab1aa7b4f7f4108b1ed7ce1a9476f2535a805653bf45ddb2ed72bddc4ff9126334341ab5cde8fc2aec7d81ba95f0383493b08030cde3e093368320
|
7
|
+
data.tar.gz: 1e5ad3bef9bd0e29d548a2d7ae3753f3c745d30fe76e02033aec32091d0ca55bd4ceda9babb6c987b9d0fe863bf1afb5b819eb9a885c9b778d30ec3b47a50abe
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dropbox-sign (1.
|
4
|
+
dropbox-sign (1.5.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -10,45 +10,47 @@ GEM
|
|
10
10
|
ast (2.4.2)
|
11
11
|
byebug (11.1.3)
|
12
12
|
coderay (1.1.3)
|
13
|
-
diff-lcs (1.5.
|
13
|
+
diff-lcs (1.5.1)
|
14
14
|
ethon (0.16.0)
|
15
15
|
ffi (>= 1.15.0)
|
16
16
|
ffi (1.17.0-aarch64-linux-gnu)
|
17
17
|
ffi (1.17.0-arm64-darwin)
|
18
18
|
ffi (1.17.0-x86_64-darwin)
|
19
19
|
ffi (1.17.0-x86_64-linux-gnu)
|
20
|
-
jaro_winkler (1.5.
|
20
|
+
jaro_winkler (1.5.6)
|
21
21
|
json_spec (1.1.5)
|
22
22
|
multi_json (~> 1.0)
|
23
23
|
rspec (>= 2.0, < 4.0)
|
24
|
-
method_source (1.
|
24
|
+
method_source (1.1.0)
|
25
25
|
multi_json (1.15.0)
|
26
|
-
parallel (1.
|
27
|
-
parser (3.
|
26
|
+
parallel (1.26.3)
|
27
|
+
parser (3.3.4.2)
|
28
28
|
ast (~> 2.4.1)
|
29
|
-
|
29
|
+
racc
|
30
|
+
pry (0.14.2)
|
30
31
|
coderay (~> 1.1)
|
31
32
|
method_source (~> 1.0)
|
32
|
-
pry-byebug (3.
|
33
|
+
pry-byebug (3.10.1)
|
33
34
|
byebug (~> 11.0)
|
34
|
-
pry (
|
35
|
-
psych (
|
35
|
+
pry (>= 0.13, < 0.15)
|
36
|
+
psych (5.1.2)
|
36
37
|
stringio
|
38
|
+
racc (1.8.1)
|
37
39
|
rainbow (3.1.1)
|
38
40
|
rake (13.0.6)
|
39
|
-
rspec (3.
|
40
|
-
rspec-core (~> 3.
|
41
|
-
rspec-expectations (~> 3.
|
42
|
-
rspec-mocks (~> 3.
|
43
|
-
rspec-core (3.
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-expectations (3.
|
41
|
+
rspec (3.13.0)
|
42
|
+
rspec-core (~> 3.13.0)
|
43
|
+
rspec-expectations (~> 3.13.0)
|
44
|
+
rspec-mocks (~> 3.13.0)
|
45
|
+
rspec-core (3.13.0)
|
46
|
+
rspec-support (~> 3.13.0)
|
47
|
+
rspec-expectations (3.13.2)
|
46
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-mocks (3.
|
49
|
+
rspec-support (~> 3.13.0)
|
50
|
+
rspec-mocks (3.13.1)
|
49
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-support (3.
|
52
|
+
rspec-support (~> 3.13.0)
|
53
|
+
rspec-support (3.13.1)
|
52
54
|
rubocop (0.66.0)
|
53
55
|
jaro_winkler (~> 1.5.1)
|
54
56
|
parallel (~> 1.10)
|
@@ -57,8 +59,8 @@ GEM
|
|
57
59
|
rainbow (>= 2.2.2, < 4.0)
|
58
60
|
ruby-progressbar (~> 1.7)
|
59
61
|
unicode-display_width (>= 1.4.0, < 1.6)
|
60
|
-
ruby-progressbar (1.
|
61
|
-
stringio (3.
|
62
|
+
ruby-progressbar (1.13.0)
|
63
|
+
stringio (3.1.1)
|
62
64
|
typhoeus (1.4.1)
|
63
65
|
ethon (>= 0.9.0)
|
64
66
|
unicode-display_width (1.5.0)
|
@@ -79,4 +81,4 @@ DEPENDENCIES
|
|
79
81
|
rubocop (~> 0.66.0)
|
80
82
|
|
81
83
|
BUNDLED WITH
|
82
|
-
2.3.
|
84
|
+
2.3.26
|
data/README.md
CHANGED
@@ -25,7 +25,8 @@ directory that corresponds to the file you want updated.
|
|
25
25
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
26
26
|
|
27
27
|
- API version: 3.0.0
|
28
|
-
- Package version: 1.
|
28
|
+
- Package version: 1.5.0
|
29
|
+
- Generator version: 7.7.0
|
29
30
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
30
31
|
|
31
32
|
## Installation
|
@@ -46,14 +47,14 @@ gem build dropbox-sign.gemspec
|
|
46
47
|
Then install the gem locally:
|
47
48
|
|
48
49
|
```shell
|
49
|
-
gem install ./dropbox-sign-1.
|
50
|
+
gem install ./dropbox-sign-1.5.0.gem
|
50
51
|
```
|
51
52
|
|
52
|
-
(for development, run `gem install --dev ./dropbox-sign-1.
|
53
|
+
(for development, run `gem install --dev ./dropbox-sign-1.5.0.gem` to install the development dependencies)
|
53
54
|
|
54
55
|
Finally add this to the Gemfile:
|
55
56
|
|
56
|
-
gem 'dropbox-sign', '~> 1.
|
57
|
+
gem 'dropbox-sign', '~> 1.5.0'
|
57
58
|
|
58
59
|
### Install from Git
|
59
60
|
|
@@ -172,6 +173,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
|
|
172
173
|
- [Dropbox::Sign::AccountGetResponse](docs/AccountGetResponse.md)
|
173
174
|
- [Dropbox::Sign::AccountResponse](docs/AccountResponse.md)
|
174
175
|
- [Dropbox::Sign::AccountResponseQuotas](docs/AccountResponseQuotas.md)
|
176
|
+
- [Dropbox::Sign::AccountResponseUsage](docs/AccountResponseUsage.md)
|
175
177
|
- [Dropbox::Sign::AccountUpdateRequest](docs/AccountUpdateRequest.md)
|
176
178
|
- [Dropbox::Sign::AccountVerifyRequest](docs/AccountVerifyRequest.md)
|
177
179
|
- [Dropbox::Sign::AccountVerifyResponse](docs/AccountVerifyResponse.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
data/docs/AccountResponse.md
CHANGED
@@ -16,4 +16,5 @@
|
|
16
16
|
| `role_code` | ```String``` | The membership role for the team. | |
|
17
17
|
| `team_id` | ```String``` | The id of the team account belongs to. | |
|
18
18
|
| `locale` | ```String``` | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | |
|
19
|
+
| `usage` | [```AccountResponseUsage```](AccountResponseUsage.md) | | |
|
19
20
|
|
@@ -11,4 +11,5 @@ Details concerning remaining monthly quotas.
|
|
11
11
|
| `templates_total` | ```Integer``` | Total API templates allowed. | |
|
12
12
|
| `templates_left` | ```Integer``` | API templates remaining. | |
|
13
13
|
| `sms_verifications_left` | ```Integer``` | SMS verifications remaining. | |
|
14
|
+
| `num_fax_pages_left` | ```Integer``` | Number of fax pages left | |
|
14
15
|
|
data/dropbox-sign.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: 3.0.0
|
9
9
|
Contact: apisupport@hellosign.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
|
11
|
+
Generator version: 7.7.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.description = "Official Dropbox Sign APIv3 OpenAPI Ruby SDK"
|
27
27
|
s.license = "MIT"
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
29
|
+
s.metadata = {}
|
29
30
|
|
30
31
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
32
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -306,8 +306,8 @@ module Dropbox::Sign
|
|
306
306
|
# List API Apps
|
307
307
|
# Returns a list of API Apps that are accessible by you. If you are on a team with an Admin or Developer role, this list will include apps owned by teammates.
|
308
308
|
# @param [Hash] opts the optional parameters
|
309
|
-
# @option opts [Integer] :page Which page number of the API App List to return. Defaults to `1`.
|
310
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`.
|
309
|
+
# @option opts [Integer] :page Which page number of the API App List to return. Defaults to `1`. (default to 1)
|
310
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (default to 20)
|
311
311
|
# @return [Array<(ApiAppListResponse, Integer, Hash)>] ApiAppListResponse data, response status code and response headers
|
312
312
|
def api_app_list_with_http_info(opts = {})
|
313
313
|
if @api_client.config.debugging
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,8 +38,8 @@ module Dropbox::Sign
|
|
38
38
|
# Returns the status of the BulkSendJob and its SignatureRequests specified by the `bulk_send_job_id` parameter.
|
39
39
|
# @param bulk_send_job_id [String] The id of the BulkSendJob to retrieve.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [Integer] :page Which page number of the BulkSendJob list to return. Defaults to `1`.
|
42
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is 20.
|
41
|
+
# @option opts [Integer] :page Which page number of the BulkSendJob list to return. Defaults to `1`. (default to 1)
|
42
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (default to 20)
|
43
43
|
# @return [Array<(BulkSendJobGetResponse, Integer, Hash)>] BulkSendJobGetResponse data, response status code and response headers
|
44
44
|
def bulk_send_job_get_with_http_info(bulk_send_job_id, opts = {})
|
45
45
|
if @api_client.config.debugging
|
@@ -136,8 +136,8 @@ module Dropbox::Sign
|
|
136
136
|
# List Bulk Send Jobs
|
137
137
|
# Returns a list of BulkSendJob that you can access.
|
138
138
|
# @param [Hash] opts the optional parameters
|
139
|
-
# @option opts [Integer] :page Which page number of the BulkSendJob List to return. Defaults to `1`.
|
140
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is 20.
|
139
|
+
# @option opts [Integer] :page Which page number of the BulkSendJob List to return. Defaults to `1`. (default to 1)
|
140
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (default to 20)
|
141
141
|
# @return [Array<(BulkSendJobListResponse, Integer, Hash)>] BulkSendJobListResponse data, response status code and response headers
|
142
142
|
def bulk_send_job_list_with_http_info(opts = {})
|
143
143
|
if @api_client.config.debugging
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -540,7 +540,7 @@ module Dropbox::Sign
|
|
540
540
|
# Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a PDF or ZIP file. If the files are currently being prepared, a status code of `409` will be returned instead.
|
541
541
|
# @param signature_request_id [String] The id of the SignatureRequest to retrieve.
|
542
542
|
# @param [Hash] opts the optional parameters
|
543
|
-
# @option opts [String] :file_type Set to `pdf` for a single merged document or `zip` for a collection of individual documents.
|
543
|
+
# @option opts [String] :file_type Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (default to 'pdf')
|
544
544
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
545
545
|
def signature_request_files_with_http_info(signature_request_id, opts = {})
|
546
546
|
if @api_client.config.debugging
|
@@ -735,7 +735,7 @@ module Dropbox::Sign
|
|
735
735
|
# Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a JSON object with a url to the file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead.
|
736
736
|
# @param signature_request_id [String] The id of the SignatureRequest to retrieve.
|
737
737
|
# @param [Hash] opts the optional parameters
|
738
|
-
# @option opts [Integer] :force_download By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser.
|
738
|
+
# @option opts [Integer] :force_download By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (default to 1)
|
739
739
|
# @return [Array<(FileResponse, Integer, Hash)>] FileResponse data, response status code and response headers
|
740
740
|
def signature_request_files_as_file_url_with_http_info(signature_request_id, opts = {})
|
741
741
|
if @api_client.config.debugging
|
@@ -928,8 +928,8 @@ module Dropbox::Sign
|
|
928
928
|
# Returns a list of SignatureRequests that you can access. This includes SignatureRequests you have sent as well as received, but not ones that you have been CCed on. Take a look at our [search guide](/api/reference/search/) to learn more about querying signature requests.
|
929
929
|
# @param [Hash] opts the optional parameters
|
930
930
|
# @option opts [String] :account_id Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account.
|
931
|
-
# @option opts [Integer] :page Which page number of the SignatureRequest List to return. Defaults to `1`.
|
932
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`.
|
931
|
+
# @option opts [Integer] :page Which page number of the SignatureRequest List to return. Defaults to `1`. (default to 1)
|
932
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (default to 20)
|
933
933
|
# @option opts [String] :query String that includes search terms and/or fields to be used to filter the SignatureRequest objects.
|
934
934
|
# @return [Array<(SignatureRequestListResponse, Integer, Hash)>] SignatureRequestListResponse data, response status code and response headers
|
935
935
|
def signature_request_list_with_http_info(opts = {})
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -590,8 +590,8 @@ module Dropbox::Sign
|
|
590
590
|
# Provides a paginated list of members (and their roles) that belong to a given team.
|
591
591
|
# @param team_id [String] The id of the team that a member list is being requested from.
|
592
592
|
# @param [Hash] opts the optional parameters
|
593
|
-
# @option opts [Integer] :page Which page number of the team member list to return. Defaults to `1`.
|
594
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`.
|
593
|
+
# @option opts [Integer] :page Which page number of the team member list to return. Defaults to `1`. (default to 1)
|
594
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (default to 20)
|
595
595
|
# @return [Array<(TeamMembersResponse, Integer, Hash)>] TeamMembersResponse data, response status code and response headers
|
596
596
|
def team_members_with_http_info(team_id, opts = {})
|
597
597
|
if @api_client.config.debugging
|
@@ -807,8 +807,8 @@ module Dropbox::Sign
|
|
807
807
|
# Provides a paginated list of sub teams that belong to a given team.
|
808
808
|
# @param team_id [String] The id of the parent Team.
|
809
809
|
# @param [Hash] opts the optional parameters
|
810
|
-
# @option opts [Integer] :page Which page number of the SubTeam List to return. Defaults to `1`.
|
811
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`.
|
810
|
+
# @option opts [Integer] :page Which page number of the SubTeam List to return. Defaults to `1`. (default to 1)
|
811
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (default to 20)
|
812
812
|
# @return [Array<(TeamSubTeamsResponse, Integer, Hash)>] TeamSubTeamsResponse data, response status code and response headers
|
813
813
|
def team_sub_teams_with_http_info(team_id, opts = {})
|
814
814
|
if @api_client.config.debugging
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -632,7 +632,7 @@ module Dropbox::Sign
|
|
632
632
|
# Obtain a copy of the current documents specified by the `template_id` parameter. Returns a JSON object with a url to the file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event.
|
633
633
|
# @param template_id [String] The id of the template files to retrieve.
|
634
634
|
# @param [Hash] opts the optional parameters
|
635
|
-
# @option opts [Integer] :force_download By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser.
|
635
|
+
# @option opts [Integer] :force_download By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (default to 1)
|
636
636
|
# @return [Array<(FileResponse, Integer, Hash)>] FileResponse data, response status code and response headers
|
637
637
|
def template_files_as_file_url_with_http_info(template_id, opts = {})
|
638
638
|
if @api_client.config.debugging
|
@@ -825,8 +825,8 @@ module Dropbox::Sign
|
|
825
825
|
# Returns a list of the Templates that are accessible by you. Take a look at our [search guide](/api/reference/search/) to learn more about querying templates.
|
826
826
|
# @param [Hash] opts the optional parameters
|
827
827
|
# @option opts [String] :account_id Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account.
|
828
|
-
# @option opts [Integer] :page Which page number of the Template List to return. Defaults to `1`.
|
829
|
-
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`.
|
828
|
+
# @option opts [Integer] :page Which page number of the Template List to return. Defaults to `1`. (default to 1)
|
829
|
+
# @option opts [Integer] :page_size Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (default to 20)
|
830
830
|
# @option opts [String] :query String that includes search terms and/or fields to be used to filter the Template objects.
|
831
831
|
# @return [Array<(TemplateListResponse, Integer, Hash)>] TemplateListResponse data, response status code and response headers
|
832
832
|
def template_list_with_http_info(opts = {})
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,9 +48,10 @@ module Dropbox::Sign
|
|
48
48
|
# Call an API with given options.
|
49
49
|
#
|
50
50
|
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
51
|
-
# the data deserialized from response body (
|
51
|
+
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
52
52
|
def call_api(http_method, path, opts = {})
|
53
53
|
request = build_request(http_method, path, opts)
|
54
|
+
tempfile = download_file(request) if opts[:return_type] == 'File'
|
54
55
|
response = request.run
|
55
56
|
|
56
57
|
if @config.debugging
|
@@ -72,7 +73,9 @@ module Dropbox::Sign
|
|
72
73
|
end
|
73
74
|
end
|
74
75
|
|
75
|
-
if opts[:return_type]
|
76
|
+
if opts[:return_type] == 'File'
|
77
|
+
data = tempfile
|
78
|
+
elsif opts[:return_type]
|
76
79
|
data = deserialize(response, opts[:return_type])
|
77
80
|
else
|
78
81
|
data = nil
|
@@ -96,6 +99,7 @@ module Dropbox::Sign
|
|
96
99
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
97
100
|
query_params = opts[:query_params] || {}
|
98
101
|
form_params = opts[:form_params] || {}
|
102
|
+
follow_location = opts[:follow_location] || true
|
99
103
|
|
100
104
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
101
105
|
|
@@ -112,7 +116,8 @@ module Dropbox::Sign
|
|
112
116
|
:ssl_verifyhost => _verify_ssl_host,
|
113
117
|
:sslcert => @config.cert_file,
|
114
118
|
:sslkey => @config.key_file,
|
115
|
-
:verbose => @config.debugging
|
119
|
+
:verbose => @config.debugging,
|
120
|
+
:followlocation => follow_location
|
116
121
|
}
|
117
122
|
|
118
123
|
# set custom cert, if provided
|
@@ -126,9 +131,7 @@ module Dropbox::Sign
|
|
126
131
|
end
|
127
132
|
end
|
128
133
|
|
129
|
-
|
130
|
-
download_file(request) if opts[:return_type] == 'File'
|
131
|
-
request
|
134
|
+
Typhoeus::Request.new(url, req_opts)
|
132
135
|
end
|
133
136
|
|
134
137
|
# Builds the HTTP request body
|
@@ -166,6 +169,8 @@ module Dropbox::Sign
|
|
166
169
|
# process can use.
|
167
170
|
#
|
168
171
|
# @see Configuration#temp_folder_path
|
172
|
+
#
|
173
|
+
# @return [Tempfile] the tempfile generated
|
169
174
|
def download_file(request)
|
170
175
|
tempfile = nil
|
171
176
|
encoding = nil
|
@@ -180,21 +185,24 @@ module Dropbox::Sign
|
|
180
185
|
prefix = prefix + '-' unless prefix.end_with?('-')
|
181
186
|
encoding = response.body.encoding
|
182
187
|
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
183
|
-
@tempfile = tempfile
|
184
188
|
end
|
185
189
|
request.on_body do |chunk|
|
186
190
|
chunk.force_encoding(encoding)
|
187
191
|
tempfile.write(chunk)
|
188
192
|
end
|
189
|
-
request
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
193
|
+
# run the request to ensure the tempfile is created successfully before returning it
|
194
|
+
request.run
|
195
|
+
if tempfile
|
196
|
+
tempfile.close
|
197
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
198
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
199
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
200
|
+
"explicitly with `tempfile.delete`"
|
201
|
+
else
|
202
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
197
203
|
end
|
204
|
+
|
205
|
+
tempfile
|
198
206
|
end
|
199
207
|
|
200
208
|
# Check if the given MIME is a JSON MIME.
|
@@ -206,7 +214,7 @@ module Dropbox::Sign
|
|
206
214
|
# @param [String] mime MIME
|
207
215
|
# @return [Boolean] True if the MIME is application/json
|
208
216
|
def json_mime?(mime)
|
209
|
-
(mime == '*/*') || !(mime =~
|
217
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
210
218
|
end
|
211
219
|
|
212
220
|
# Deserialize the response to the given return type.
|
@@ -215,15 +223,10 @@ module Dropbox::Sign
|
|
215
223
|
# @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
|
216
224
|
def deserialize(response, return_type)
|
217
225
|
body = response.body
|
218
|
-
|
219
|
-
# handle file downloading - return the File instance processed in request callbacks
|
220
|
-
# note that response body is empty when the file is written in chunks in request on_body callback
|
221
|
-
return @tempfile if return_type == 'File'
|
222
|
-
|
223
226
|
return nil if body.nil? || body.empty?
|
224
227
|
|
225
228
|
# return response body directly for String return type
|
226
|
-
return body if return_type == 'String'
|
229
|
+
return body.to_s if return_type == 'String'
|
227
230
|
|
228
231
|
# ensuring a default content type
|
229
232
|
content_type = response.headers['Content-Type'] || 'application/json'
|
@@ -290,7 +293,7 @@ module Dropbox::Sign
|
|
290
293
|
# @param [String] filename the filename to be sanitized
|
291
294
|
# @return [String] the sanitized filename
|
292
295
|
def sanitize_filename(filename)
|
293
|
-
filename.
|
296
|
+
filename.split(/[\/\\]/).last
|
294
297
|
end
|
295
298
|
|
296
299
|
def build_request_url(path, opts = {})
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 3.0.0
|
7
7
|
Contact: apisupport@hellosign.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -35,6 +35,7 @@ module Dropbox::Sign
|
|
35
35
|
end
|
36
36
|
else
|
37
37
|
super arg
|
38
|
+
@message = arg
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|