dropbox-sign 1.4.0 → 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 +30 -25
- data/README.md +6 -12
- data/VERSION +1 -1
- data/docs/AccountResponse.md +1 -0
- data/docs/AccountResponseQuotas.md +1 -0
- data/docs/AccountResponseUsage.md +10 -0
- data/docs/EmbeddedEditUrlRequest.md +1 -1
- data/docs/SignatureRequestApi.md +7 -422
- data/docs/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.md +1 -1
- data/docs/SignatureRequestBulkSendWithTemplateRequest.md +1 -1
- data/docs/SignatureRequestCreateEmbeddedRequest.md +4 -4
- data/docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md +1 -1
- data/docs/SignatureRequestSendRequest.md +5 -5
- data/docs/SignatureRequestSendWithTemplateRequest.md +2 -2
- data/docs/SignatureRequestUpdateRequest.md +2 -2
- data/docs/SubAttachment.md +1 -1
- data/docs/SubCustomField.md +1 -1
- data/docs/SubFieldOptions.md +1 -1
- data/docs/SubFormFieldsPerDocumentBase.md +2 -2
- data/docs/SubFormFieldsPerDocumentDateSigned.md +1 -1
- data/docs/SubFormFieldsPerDocumentDropdown.md +1 -1
- data/docs/SubFormFieldsPerDocumentHyperlink.md +1 -1
- data/docs/SubFormFieldsPerDocumentText.md +2 -2
- data/docs/SubFormFieldsPerDocumentTextMerge.md +1 -1
- data/docs/SubSignatureRequestGroupedSigners.md +1 -1
- data/docs/SubSignatureRequestSigner.md +1 -1
- data/docs/SubSignatureRequestTemplateSigner.md +1 -1
- data/docs/SubSigningOptions.md +1 -1
- data/docs/TeamAddMemberRequest.md +1 -1
- data/docs/TeamRemoveMemberRequest.md +2 -2
- data/docs/TemplateAddUserRequest.md +2 -2
- data/docs/TemplateCreateEmbeddedDraftRequest.md +2 -2
- data/docs/TemplateCreateRequest.md +2 -2
- data/docs/TemplateResponseDocument.md +1 -1
- data/docs/TemplateResponseDocumentStaticFieldBase.md +1 -1
- data/docs/UnclaimedDraftApi.md +3 -3
- data/docs/UnclaimedDraftCreateEmbeddedRequest.md +4 -4
- data/docs/UnclaimedDraftCreateEmbeddedWithTemplateRequest.md +3 -3
- data/docs/UnclaimedDraftCreateRequest.md +2 -2
- 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 +19 -479
- 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 +7 -7
- 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 +3 -5
- 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 +6 -8
- data/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb +6 -8
- data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +9 -11
- data/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb +6 -8
- 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 +10 -12
- data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +8 -9
- data/lib/dropbox-sign/models/signature_request_update_request.rb +4 -6
- data/lib/dropbox-sign/models/sub_attachment.rb +3 -5
- 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 +3 -5
- data/lib/dropbox-sign/models/sub_editor_options.rb +2 -4
- data/lib/dropbox-sign/models/sub_field_options.rb +3 -5
- 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 +4 -6
- 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 +3 -5
- data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +3 -5
- 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 +3 -5
- 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 +4 -6
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +3 -5
- 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 +3 -5
- data/lib/dropbox-sign/models/sub_signature_request_signer.rb +5 -7
- data/lib/dropbox-sign/models/sub_signature_request_template_signer.rb +5 -7
- data/lib/dropbox-sign/models/sub_signing_options.rb +3 -5
- 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 +3 -5
- 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 +4 -6
- 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 +4 -6
- data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +6 -8
- 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 +6 -8
- 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 +3 -5
- 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 +3 -5
- 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 +9 -10
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb +8 -10
- data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +7 -8
- 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 -5
- data/openapi-config.yaml +1 -1
- data/openapi-sdk.yaml +1565 -2574
- 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 +14 -16
- data/docs/SignatureRequestEditEmbeddedRequest.md +0 -33
- data/docs/SignatureRequestEditEmbeddedWithTemplateRequest.md +0 -24
- data/docs/SignatureRequestEditRequest.md +0 -35
- data/docs/SignatureRequestEditWithTemplateRequest.md +0 -26
- data/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb +0 -593
- data/lib/dropbox-sign/models/signature_request_edit_embedded_with_template_request.rb +0 -490
- data/lib/dropbox-sign/models/signature_request_edit_request.rb +0 -612
- data/lib/dropbox-sign/models/signature_request_edit_with_template_request.rb +0 -509
@@ -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
|
|
@@ -132,7 +132,7 @@ module Dropbox::Sign
|
|
132
132
|
end
|
133
133
|
|
134
134
|
# Create Embedded Unclaimed Draft
|
135
|
-
# Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE
|
135
|
+
# Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
|
136
136
|
# @param unclaimed_draft_create_embedded_request [UnclaimedDraftCreateEmbeddedRequest]
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [UnclaimedDraftCreateResponse]
|
@@ -142,7 +142,7 @@ module Dropbox::Sign
|
|
142
142
|
end
|
143
143
|
|
144
144
|
# Create Embedded Unclaimed Draft
|
145
|
-
# Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE
|
145
|
+
# Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
|
146
146
|
# @param unclaimed_draft_create_embedded_request [UnclaimedDraftCreateEmbeddedRequest]
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers
|
@@ -241,7 +241,7 @@ module Dropbox::Sign
|
|
241
241
|
end
|
242
242
|
|
243
243
|
# Create Embedded Unclaimed Draft with Template
|
244
|
-
# Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE
|
244
|
+
# Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
|
245
245
|
# @param unclaimed_draft_create_embedded_with_template_request [UnclaimedDraftCreateEmbeddedWithTemplateRequest]
|
246
246
|
# @param [Hash] opts the optional parameters
|
247
247
|
# @return [UnclaimedDraftCreateResponse]
|
@@ -251,7 +251,7 @@ module Dropbox::Sign
|
|
251
251
|
end
|
252
252
|
|
253
253
|
# Create Embedded Unclaimed Draft with Template
|
254
|
-
# Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE
|
254
|
+
# Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
|
255
255
|
# @param unclaimed_draft_create_embedded_with_template_request [UnclaimedDraftCreateEmbeddedWithTemplateRequest]
|
256
256
|
# @param [Hash] opts the optional parameters
|
257
257
|
# @return [Array<(UnclaimedDraftCreateResponse, Integer, Hash)>] UnclaimedDraftCreateResponse data, response status code and response headers
|
@@ -350,7 +350,7 @@ module Dropbox::Sign
|
|
350
350
|
end
|
351
351
|
|
352
352
|
# Edit and Resend Unclaimed Draft
|
353
|
-
# Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE
|
353
|
+
# Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
|
354
354
|
# @param signature_request_id [String] The ID of the signature request to edit and resend.
|
355
355
|
# @param unclaimed_draft_edit_and_resend_request [UnclaimedDraftEditAndResendRequest]
|
356
356
|
# @param [Hash] opts the optional parameters
|
@@ -361,7 +361,7 @@ module Dropbox::Sign
|
|
361
361
|
end
|
362
362
|
|
363
363
|
# Edit and Resend Unclaimed Draft
|
364
|
-
# Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE
|
364
|
+
# Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign.
|
365
365
|
# @param signature_request_id [String] The ID of the signature request to edit and resend.
|
366
366
|
# @param unclaimed_draft_edit_and_resend_request [UnclaimedDraftEditAndResendRequest]
|
367
367
|
# @param [Hash] opts the optional parameters
|
@@ -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
|
|
@@ -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
|
|
@@ -65,6 +65,16 @@ module Dropbox::Sign
|
|
65
65
|
# Defines the access token (Bearer) used with OAuth2.
|
66
66
|
attr_accessor :access_token
|
67
67
|
|
68
|
+
# Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2.
|
69
|
+
# Overrides the access_token if set
|
70
|
+
# @return [Proc]
|
71
|
+
attr_accessor :access_token_getter
|
72
|
+
|
73
|
+
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
74
|
+
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
75
|
+
# Default to false.
|
76
|
+
attr_accessor :return_binary_data
|
77
|
+
|
68
78
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
69
79
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
70
80
|
# Default to false.
|
@@ -72,6 +82,14 @@ module Dropbox::Sign
|
|
72
82
|
# @return [true, false]
|
73
83
|
attr_accessor :debugging
|
74
84
|
|
85
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
86
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
87
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
88
|
+
# `scheme`, `host`, `base_path` directly.
|
89
|
+
# Default to false.
|
90
|
+
# @return [true, false]
|
91
|
+
attr_accessor :ignore_operation_servers
|
92
|
+
|
75
93
|
# Defines the logger used for debugging.
|
76
94
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
77
95
|
#
|
@@ -136,6 +154,7 @@ module Dropbox::Sign
|
|
136
154
|
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
137
155
|
attr_accessor :params_encoding
|
138
156
|
|
157
|
+
|
139
158
|
attr_accessor :inject_format
|
140
159
|
|
141
160
|
attr_accessor :force_ending_format
|
@@ -144,7 +163,7 @@ module Dropbox::Sign
|
|
144
163
|
@scheme = 'https'
|
145
164
|
@host = 'api.hellosign.com'
|
146
165
|
@base_path = '/v3'
|
147
|
-
@server_index =
|
166
|
+
@server_index = nil
|
148
167
|
@server_operation_index = {}
|
149
168
|
@server_variables = {}
|
150
169
|
@server_operation_variables = {}
|
@@ -153,11 +172,12 @@ module Dropbox::Sign
|
|
153
172
|
@client_side_validation = true
|
154
173
|
@verify_ssl = true
|
155
174
|
@verify_ssl_host = true
|
156
|
-
@params_encoding = nil
|
157
175
|
@cert_file = nil
|
158
176
|
@key_file = nil
|
159
177
|
@timeout = 0
|
178
|
+
@params_encoding = nil
|
160
179
|
@debugging = false
|
180
|
+
@ignore_operation_servers = false
|
161
181
|
@inject_format = false
|
162
182
|
@force_ending_format = false
|
163
183
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -192,10 +212,13 @@ module Dropbox::Sign
|
|
192
212
|
|
193
213
|
# Returns base URL for specified operation based on server settings
|
194
214
|
def base_url(operation = nil)
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
215
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
216
|
+
if operation_server_settings.key?(operation) then
|
217
|
+
index = server_operation_index.fetch(operation, server_index)
|
218
|
+
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
219
|
+
else
|
220
|
+
server_index.nil? ? "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') : server_url(server_index, server_variables, nil)
|
221
|
+
end
|
199
222
|
end
|
200
223
|
|
201
224
|
# Gets API key (with prefix if set).
|
@@ -210,6 +233,12 @@ module Dropbox::Sign
|
|
210
233
|
end
|
211
234
|
end
|
212
235
|
|
236
|
+
# Gets access_token using access_token_getter or uses the static access_token
|
237
|
+
def access_token_with_refresh
|
238
|
+
return access_token if access_token_getter.nil?
|
239
|
+
access_token_getter.call
|
240
|
+
end
|
241
|
+
|
213
242
|
# Gets Basic Auth token string
|
214
243
|
def basic_auth_token
|
215
244
|
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
@@ -273,8 +302,8 @@ module Dropbox::Sign
|
|
273
302
|
servers = server_settings if servers == nil
|
274
303
|
|
275
304
|
# check array index out of bound
|
276
|
-
if (index < 0 || index >= servers.size)
|
277
|
-
fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
|
305
|
+
if (index.nil? || index < 0 || index >= servers.size)
|
306
|
+
fail ArgumentError, "Invalid index #{index} when selecting the server. Must not be nil and must be less than #{servers.size}"
|
278
307
|
end
|
279
308
|
|
280
309
|
server = servers[index]
|
@@ -299,5 +328,6 @@ module Dropbox::Sign
|
|
299
328
|
url
|
300
329
|
end
|
301
330
|
|
331
|
+
|
302
332
|
end
|
303
333
|
end
|
@@ -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
|
|
@@ -214,8 +214,6 @@ module Dropbox::Sign
|
|
214
214
|
else
|
215
215
|
false
|
216
216
|
end
|
217
|
-
when :File
|
218
|
-
value
|
219
217
|
when :Object
|
220
218
|
# generic object (usually a Hash), return directly
|
221
219
|
value
|
@@ -233,7 +231,7 @@ module Dropbox::Sign
|
|
233
231
|
else # model
|
234
232
|
# models (e.g. Pet)
|
235
233
|
klass = Dropbox::Sign.const_get(type)
|
236
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
234
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
237
235
|
end
|
238
236
|
end
|
239
237
|
|
@@ -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
|
|
@@ -198,8 +198,6 @@ module Dropbox::Sign
|
|
198
198
|
else
|
199
199
|
false
|
200
200
|
end
|
201
|
-
when :File
|
202
|
-
value
|
203
201
|
when :Object
|
204
202
|
# generic object (usually a Hash), return directly
|
205
203
|
value
|
@@ -217,7 +215,7 @@ module Dropbox::Sign
|
|
217
215
|
else # model
|
218
216
|
# models (e.g. Pet)
|
219
217
|
klass = Dropbox::Sign.const_get(type)
|
220
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
221
219
|
end
|
222
220
|
end
|
223
221
|
|
@@ -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
|
|
@@ -188,8 +188,6 @@ module Dropbox::Sign
|
|
188
188
|
else
|
189
189
|
false
|
190
190
|
end
|
191
|
-
when :File
|
192
|
-
value
|
193
191
|
when :Object
|
194
192
|
# generic object (usually a Hash), return directly
|
195
193
|
value
|
@@ -207,7 +205,7 @@ module Dropbox::Sign
|
|
207
205
|
else # model
|
208
206
|
# models (e.g. Pet)
|
209
207
|
klass = Dropbox::Sign.const_get(type)
|
210
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
208
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
211
209
|
end
|
212
210
|
end
|
213
211
|
|
@@ -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
|
|
@@ -57,6 +57,9 @@ module Dropbox::Sign
|
|
57
57
|
# @return [String, nil]
|
58
58
|
attr_accessor :locale
|
59
59
|
|
60
|
+
# @return [AccountResponseUsage]
|
61
|
+
attr_accessor :usage
|
62
|
+
|
60
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
64
|
def self.attribute_map
|
62
65
|
{
|
@@ -69,7 +72,8 @@ module Dropbox::Sign
|
|
69
72
|
:'callback_url' => :'callback_url',
|
70
73
|
:'role_code' => :'role_code',
|
71
74
|
:'team_id' => :'team_id',
|
72
|
-
:'locale' => :'locale'
|
75
|
+
:'locale' => :'locale',
|
76
|
+
:'usage' => :'usage'
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -95,7 +99,8 @@ module Dropbox::Sign
|
|
95
99
|
:'callback_url' => :'String',
|
96
100
|
:'role_code' => :'String',
|
97
101
|
:'team_id' => :'String',
|
98
|
-
:'locale' => :'String'
|
102
|
+
:'locale' => :'String',
|
103
|
+
:'usage' => :'AccountResponseUsage'
|
99
104
|
}
|
100
105
|
end
|
101
106
|
|
@@ -110,7 +115,7 @@ module Dropbox::Sign
|
|
110
115
|
:'callback_url',
|
111
116
|
:'role_code',
|
112
117
|
:'team_id',
|
113
|
-
:'locale'
|
118
|
+
:'locale',
|
114
119
|
])
|
115
120
|
end
|
116
121
|
|
@@ -183,6 +188,10 @@ module Dropbox::Sign
|
|
183
188
|
if attributes.key?(:'locale')
|
184
189
|
self.locale = attributes[:'locale']
|
185
190
|
end
|
191
|
+
|
192
|
+
if attributes.key?(:'usage')
|
193
|
+
self.usage = attributes[:'usage']
|
194
|
+
end
|
186
195
|
end
|
187
196
|
|
188
197
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -212,7 +221,8 @@ module Dropbox::Sign
|
|
212
221
|
callback_url == o.callback_url &&
|
213
222
|
role_code == o.role_code &&
|
214
223
|
team_id == o.team_id &&
|
215
|
-
locale == o.locale
|
224
|
+
locale == o.locale &&
|
225
|
+
usage == o.usage
|
216
226
|
end
|
217
227
|
|
218
228
|
# @see the `==` method
|
@@ -224,7 +234,7 @@ module Dropbox::Sign
|
|
224
234
|
# Calculates hash code according to all attributes.
|
225
235
|
# @return [Integer] Hash code
|
226
236
|
def hash
|
227
|
-
[account_id, email_address, is_locked, is_paid_hs, is_paid_hf, quotas, callback_url, role_code, team_id, locale].hash
|
237
|
+
[account_id, email_address, is_locked, is_paid_hs, is_paid_hf, quotas, callback_url, role_code, team_id, locale, usage].hash
|
228
238
|
end
|
229
239
|
|
230
240
|
# Builds the object from hash
|
@@ -278,8 +288,6 @@ module Dropbox::Sign
|
|
278
288
|
else
|
279
289
|
false
|
280
290
|
end
|
281
|
-
when :File
|
282
|
-
value
|
283
291
|
when :Object
|
284
292
|
# generic object (usually a Hash), return directly
|
285
293
|
value
|
@@ -297,7 +305,7 @@ module Dropbox::Sign
|
|
297
305
|
else # model
|
298
306
|
# models (e.g. Pet)
|
299
307
|
klass = Dropbox::Sign.const_get(type)
|
300
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
308
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
301
309
|
end
|
302
310
|
end
|
303
311
|
|