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
|
|
@@ -234,8 +234,6 @@ module Dropbox::Sign
|
|
234
234
|
else
|
235
235
|
false
|
236
236
|
end
|
237
|
-
when :File
|
238
|
-
value
|
239
237
|
when :Object
|
240
238
|
# generic object (usually a Hash), return directly
|
241
239
|
value
|
@@ -253,7 +251,7 @@ module Dropbox::Sign
|
|
253
251
|
else # model
|
254
252
|
# models (e.g. Pet)
|
255
253
|
klass = Dropbox::Sign.const_get(type)
|
256
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
257
255
|
end
|
258
256
|
end
|
259
257
|
|
data/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb
CHANGED
@@ -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
|
|
@@ -26,7 +26,7 @@ module Dropbox::Sign
|
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :client_id
|
28
28
|
|
29
|
-
# `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **
|
29
|
+
# `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ```
|
30
30
|
# @return [File]
|
31
31
|
attr_accessor :signer_file
|
32
32
|
|
@@ -267,7 +267,7 @@ module Dropbox::Sign
|
|
267
267
|
# Custom attribute writer method with validation
|
268
268
|
# @param [Object] message Value to be assigned
|
269
269
|
def message=(message)
|
270
|
-
if
|
270
|
+
if message.to_s.length > 5000
|
271
271
|
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 5000.'
|
272
272
|
end
|
273
273
|
|
@@ -283,7 +283,7 @@ module Dropbox::Sign
|
|
283
283
|
# Custom attribute writer method with validation
|
284
284
|
# @param [Object] subject Value to be assigned
|
285
285
|
def subject=(subject)
|
286
|
-
if
|
286
|
+
if subject.to_s.length > 255
|
287
287
|
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 255.'
|
288
288
|
end
|
289
289
|
|
@@ -293,7 +293,7 @@ module Dropbox::Sign
|
|
293
293
|
# Custom attribute writer method with validation
|
294
294
|
# @param [Object] title Value to be assigned
|
295
295
|
def title=(title)
|
296
|
-
if
|
296
|
+
if title.to_s.length > 255
|
297
297
|
fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 255.'
|
298
298
|
end
|
299
299
|
|
@@ -383,8 +383,6 @@ module Dropbox::Sign
|
|
383
383
|
else
|
384
384
|
false
|
385
385
|
end
|
386
|
-
when :File
|
387
|
-
value
|
388
386
|
when :Object
|
389
387
|
# generic object (usually a Hash), return directly
|
390
388
|
value
|
@@ -402,7 +400,7 @@ module Dropbox::Sign
|
|
402
400
|
else # model
|
403
401
|
# models (e.g. Pet)
|
404
402
|
klass = Dropbox::Sign.const_get(type)
|
405
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
403
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
406
404
|
end
|
407
405
|
end
|
408
406
|
|
@@ -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
|
|
@@ -22,7 +22,7 @@ module Dropbox::Sign
|
|
22
22
|
# @return [Array<String>]
|
23
23
|
attr_accessor :template_ids
|
24
24
|
|
25
|
-
# `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **
|
25
|
+
# `signer_file` is a CSV file defining values and options for signer fields. Required unless a `signer_list` is used, you may not use both. The CSV can have the following columns: - `name`: the name of the signer filling the role of RoleName - `email_address`: email address of the signer filling the role of RoleName - `pin`: the 4- to 12-character access code that will secure this signer's signature page (optional) - `sms_phone_number`: An E.164 formatted phone number that will receive a code via SMS to access this signer's signature page. (optional) By using the feature, you agree you are responsible for obtaining a signer's consent to receive text messages from Dropbox Sign related to this signature request and confirm you have obtained such consent from all signers prior to enabling SMS delivery for this signature request. [Learn more](https://faq.hellosign.com/hc/en-us/articles/15815316468877-Dropbox-Sign-SMS-tools-add-on). **NOTE:** Not available in test mode and requires a Standard plan or higher. - `*_field`: any column with a _field\" suffix will be treated as a custom field (optional) You may only specify field values here, any other options should be set in the custom_fields request parameter. Example CSV: ``` name, email_address, pin, company_field George, george@example.com, d79a3td, ABC Corp Mary, mary@example.com, gd9as5b, 123 LLC ```
|
26
26
|
# @return [File]
|
27
27
|
attr_accessor :signer_file
|
28
28
|
|
@@ -262,7 +262,7 @@ module Dropbox::Sign
|
|
262
262
|
# Custom attribute writer method with validation
|
263
263
|
# @param [Object] message Value to be assigned
|
264
264
|
def message=(message)
|
265
|
-
if
|
265
|
+
if message.to_s.length > 5000
|
266
266
|
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 5000.'
|
267
267
|
end
|
268
268
|
|
@@ -278,7 +278,7 @@ module Dropbox::Sign
|
|
278
278
|
# Custom attribute writer method with validation
|
279
279
|
# @param [Object] subject Value to be assigned
|
280
280
|
def subject=(subject)
|
281
|
-
if
|
281
|
+
if subject.to_s.length > 255
|
282
282
|
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 255.'
|
283
283
|
end
|
284
284
|
|
@@ -288,7 +288,7 @@ module Dropbox::Sign
|
|
288
288
|
# Custom attribute writer method with validation
|
289
289
|
# @param [Object] title Value to be assigned
|
290
290
|
def title=(title)
|
291
|
-
if
|
291
|
+
if title.to_s.length > 255
|
292
292
|
fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 255.'
|
293
293
|
end
|
294
294
|
|
@@ -378,8 +378,6 @@ module Dropbox::Sign
|
|
378
378
|
else
|
379
379
|
false
|
380
380
|
end
|
381
|
-
when :File
|
382
|
-
value
|
383
381
|
when :Object
|
384
382
|
# generic object (usually a Hash), return directly
|
385
383
|
value
|
@@ -397,7 +395,7 @@ module Dropbox::Sign
|
|
397
395
|
else # model
|
398
396
|
# models (e.g. Pet)
|
399
397
|
klass = Dropbox::Sign.const_get(type)
|
400
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
398
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
401
399
|
end
|
402
400
|
end
|
403
401
|
|
@@ -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
|
|
@@ -42,7 +42,7 @@ module Dropbox::Sign
|
|
42
42
|
# @return [Boolean]
|
43
43
|
attr_accessor :allow_decline
|
44
44
|
|
45
|
-
# Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **
|
45
|
+
# Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`. **NOTE:** Only available for Premium plan.
|
46
46
|
# @return [Boolean]
|
47
47
|
attr_accessor :allow_reassign
|
48
48
|
|
@@ -69,11 +69,11 @@ module Dropbox::Sign
|
|
69
69
|
# @return [Array<SubFormFieldRule>]
|
70
70
|
attr_accessor :form_field_rules
|
71
71
|
|
72
|
-
# The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE
|
72
|
+
# The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).) **NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types. * Text Field use `SubFormFieldsPerDocumentText` * Dropdown Field use `SubFormFieldsPerDocumentDropdown` * Hyperlink Field use `SubFormFieldsPerDocumentHyperlink` * Checkbox Field use `SubFormFieldsPerDocumentCheckbox` * Radio Field use `SubFormFieldsPerDocumentRadio` * Signature Field use `SubFormFieldsPerDocumentSignature` * Date Signed Field use `SubFormFieldsPerDocumentDateSigned` * Initials Field use `SubFormFieldsPerDocumentInitials` * Text Merge Field use `SubFormFieldsPerDocumentTextMerge` * Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge`
|
73
73
|
# @return [Array<SubFormFieldsPerDocumentBase>]
|
74
74
|
attr_accessor :form_fields_per_document
|
75
75
|
|
76
|
-
# Enables automatic Text Tag removal when set to true. **NOTE
|
76
|
+
# Enables automatic Text Tag removal when set to true. **NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information.
|
77
77
|
# @return [Boolean]
|
78
78
|
attr_accessor :hide_text_tags
|
79
79
|
|
@@ -104,7 +104,7 @@ module Dropbox::Sign
|
|
104
104
|
# @return [Boolean]
|
105
105
|
attr_accessor :use_text_tags
|
106
106
|
|
107
|
-
# Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.
|
107
|
+
# Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature.
|
108
108
|
# @return [Boolean]
|
109
109
|
attr_accessor :populate_auto_fill_fields
|
110
110
|
|
@@ -391,7 +391,7 @@ module Dropbox::Sign
|
|
391
391
|
# Custom attribute writer method with validation
|
392
392
|
# @param [Object] message Value to be assigned
|
393
393
|
def message=(message)
|
394
|
-
if
|
394
|
+
if message.to_s.length > 5000
|
395
395
|
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 5000.'
|
396
396
|
end
|
397
397
|
|
@@ -407,7 +407,7 @@ module Dropbox::Sign
|
|
407
407
|
# Custom attribute writer method with validation
|
408
408
|
# @param [Object] subject Value to be assigned
|
409
409
|
def subject=(subject)
|
410
|
-
if
|
410
|
+
if subject.to_s.length > 255
|
411
411
|
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 255.'
|
412
412
|
end
|
413
413
|
|
@@ -417,7 +417,7 @@ module Dropbox::Sign
|
|
417
417
|
# Custom attribute writer method with validation
|
418
418
|
# @param [Object] title Value to be assigned
|
419
419
|
def title=(title)
|
420
|
-
if
|
420
|
+
if title.to_s.length > 255
|
421
421
|
fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 255.'
|
422
422
|
end
|
423
423
|
|
@@ -518,8 +518,6 @@ module Dropbox::Sign
|
|
518
518
|
else
|
519
519
|
false
|
520
520
|
end
|
521
|
-
when :File
|
522
|
-
value
|
523
521
|
when :Object
|
524
522
|
# generic object (usually a Hash), return directly
|
525
523
|
value
|
@@ -537,7 +535,7 @@ module Dropbox::Sign
|
|
537
535
|
else # model
|
538
536
|
# models (e.g. Pet)
|
539
537
|
klass = Dropbox::Sign.const_get(type)
|
540
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
538
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
541
539
|
end
|
542
540
|
end
|
543
541
|
|
@@ -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
|
|
@@ -73,7 +73,7 @@ module Dropbox::Sign
|
|
73
73
|
# @return [String]
|
74
74
|
attr_accessor :title
|
75
75
|
|
76
|
-
# Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.
|
76
|
+
# Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. **NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature.
|
77
77
|
# @return [Boolean]
|
78
78
|
attr_accessor :populate_auto_fill_fields
|
79
79
|
|
@@ -297,7 +297,7 @@ module Dropbox::Sign
|
|
297
297
|
# Custom attribute writer method with validation
|
298
298
|
# @param [Object] message Value to be assigned
|
299
299
|
def message=(message)
|
300
|
-
if
|
300
|
+
if message.to_s.length > 5000
|
301
301
|
fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 5000.'
|
302
302
|
end
|
303
303
|
|
@@ -313,7 +313,7 @@ module Dropbox::Sign
|
|
313
313
|
# Custom attribute writer method with validation
|
314
314
|
# @param [Object] subject Value to be assigned
|
315
315
|
def subject=(subject)
|
316
|
-
if
|
316
|
+
if subject.to_s.length > 255
|
317
317
|
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 255.'
|
318
318
|
end
|
319
319
|
|
@@ -323,7 +323,7 @@ module Dropbox::Sign
|
|
323
323
|
# Custom attribute writer method with validation
|
324
324
|
# @param [Object] title Value to be assigned
|
325
325
|
def title=(title)
|
326
|
-
if
|
326
|
+
if title.to_s.length > 255
|
327
327
|
fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 255.'
|
328
328
|
end
|
329
329
|
|
@@ -415,8 +415,6 @@ module Dropbox::Sign
|
|
415
415
|
else
|
416
416
|
false
|
417
417
|
end
|
418
|
-
when :File
|
419
|
-
value
|
420
418
|
when :Object
|
421
419
|
# generic object (usually a Hash), return directly
|
422
420
|
value
|
@@ -434,7 +432,7 @@ module Dropbox::Sign
|
|
434
432
|
else # model
|
435
433
|
# models (e.g. Pet)
|
436
434
|
klass = Dropbox::Sign.const_get(type)
|
437
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
435
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
438
436
|
end
|
439
437
|
end
|
440
438
|
|
@@ -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
|
|
@@ -201,8 +201,6 @@ module Dropbox::Sign
|
|
201
201
|
else
|
202
202
|
false
|
203
203
|
end
|
204
|
-
when :File
|
205
|
-
value
|
206
204
|
when :Object
|
207
205
|
# generic object (usually a Hash), return directly
|
208
206
|
value
|
@@ -220,7 +218,7 @@ module Dropbox::Sign
|
|
220
218
|
else # model
|
221
219
|
# models (e.g. Pet)
|
222
220
|
klass = Dropbox::Sign.const_get(type)
|
223
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
221
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
224
222
|
end
|
225
223
|
end
|
226
224
|
|
@@ -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
|
|
@@ -192,8 +192,6 @@ module Dropbox::Sign
|
|
192
192
|
else
|
193
193
|
false
|
194
194
|
end
|
195
|
-
when :File
|
196
|
-
value
|
197
195
|
when :Object
|
198
196
|
# generic object (usually a Hash), return directly
|
199
197
|
value
|
@@ -211,7 +209,7 @@ module Dropbox::Sign
|
|
211
209
|
else # model
|
212
210
|
# models (e.g. Pet)
|
213
211
|
klass = Dropbox::Sign.const_get(type)
|
214
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
212
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
215
213
|
end
|
216
214
|
end
|
217
215
|
|
@@ -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
|
|
@@ -466,8 +466,6 @@ module Dropbox::Sign
|
|
466
466
|
else
|
467
467
|
false
|
468
468
|
end
|
469
|
-
when :File
|
470
|
-
value
|
471
469
|
when :Object
|
472
470
|
# generic object (usually a Hash), return directly
|
473
471
|
value
|
@@ -485,7 +483,7 @@ module Dropbox::Sign
|
|
485
483
|
else # model
|
486
484
|
# models (e.g. Pet)
|
487
485
|
klass = Dropbox::Sign.const_get(type)
|
488
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
486
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
489
487
|
end
|
490
488
|
end
|
491
489
|
|
@@ -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
|
|
@@ -254,8 +254,6 @@ module Dropbox::Sign
|
|
254
254
|
else
|
255
255
|
false
|
256
256
|
end
|
257
|
-
when :File
|
258
|
-
value
|
259
257
|
when :Object
|
260
258
|
# generic object (usually a Hash), return directly
|
261
259
|
value
|
@@ -273,7 +271,7 @@ module Dropbox::Sign
|
|
273
271
|
else # model
|
274
272
|
# models (e.g. Pet)
|
275
273
|
klass = Dropbox::Sign.const_get(type)
|
276
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
274
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
277
275
|
end
|
278
276
|
end
|
279
277
|
|
@@ -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
|
|
@@ -246,8 +246,6 @@ module Dropbox::Sign
|
|
246
246
|
else
|
247
247
|
false
|
248
248
|
end
|
249
|
-
when :File
|
250
|
-
value
|
251
249
|
when :Object
|
252
250
|
# generic object (usually a Hash), return directly
|
253
251
|
value
|
@@ -265,7 +263,7 @@ module Dropbox::Sign
|
|
265
263
|
else # model
|
266
264
|
# models (e.g. Pet)
|
267
265
|
klass = Dropbox::Sign.const_get(type)
|
268
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
266
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
269
267
|
end
|
270
268
|
end
|
271
269
|
|
@@ -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
|
|
@@ -199,8 +199,6 @@ module Dropbox::Sign
|
|
199
199
|
else
|
200
200
|
false
|
201
201
|
end
|
202
|
-
when :File
|
203
|
-
value
|
204
202
|
when :Object
|
205
203
|
# generic object (usually a Hash), return directly
|
206
204
|
value
|
@@ -218,7 +216,7 @@ module Dropbox::Sign
|
|
218
216
|
else # model
|
219
217
|
# models (e.g. Pet)
|
220
218
|
klass = Dropbox::Sign.const_get(type)
|
221
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
222
220
|
end
|
223
221
|
end
|
224
222
|
|
@@ -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
|
|
@@ -199,8 +199,6 @@ module Dropbox::Sign
|
|
199
199
|
else
|
200
200
|
false
|
201
201
|
end
|
202
|
-
when :File
|
203
|
-
value
|
204
202
|
when :Object
|
205
203
|
# generic object (usually a Hash), return directly
|
206
204
|
value
|
@@ -218,7 +216,7 @@ module Dropbox::Sign
|
|
218
216
|
else # model
|
219
217
|
# models (e.g. Pet)
|
220
218
|
klass = Dropbox::Sign.const_get(type)
|
221
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
222
220
|
end
|
223
221
|
end
|
224
222
|
|
@@ -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
|
|
@@ -21,6 +21,10 @@ module Dropbox::Sign
|
|
21
21
|
TEXT = "text".freeze
|
22
22
|
CHECKBOX = "checkbox".freeze
|
23
23
|
|
24
|
+
def self.all_vars
|
25
|
+
@all_vars ||= [TEXT, CHECKBOX].freeze
|
26
|
+
end
|
27
|
+
|
24
28
|
# Builds the enum from string
|
25
29
|
# @param [String] The enum value in the form of the string
|
26
30
|
# @return [String] The enum value
|
@@ -32,9 +36,9 @@ module Dropbox::Sign
|
|
32
36
|
# @param [String] The enum value in the form of the string
|
33
37
|
# @return [String] The enum value
|
34
38
|
def build_from_hash(value)
|
35
|
-
|
36
|
-
raise "Invalid ENUM value #{value} for class #SignatureRequestResponseCustomFieldTypeEnum"
|
37
|
-
value
|
39
|
+
return value if SignatureRequestResponseCustomFieldTypeEnum.all_vars.include?(value)
|
40
|
+
raise "Invalid ENUM value #{value} for class #SignatureRequestResponseCustomFieldTypeEnum"
|
38
41
|
end
|
39
42
|
end
|
43
|
+
|
40
44
|
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
|
|
@@ -256,8 +256,6 @@ module Dropbox::Sign
|
|
256
256
|
else
|
257
257
|
false
|
258
258
|
end
|
259
|
-
when :File
|
260
|
-
value
|
261
259
|
when :Object
|
262
260
|
# generic object (usually a Hash), return directly
|
263
261
|
value
|
@@ -275,7 +273,7 @@ module Dropbox::Sign
|
|
275
273
|
else # model
|
276
274
|
# models (e.g. Pet)
|
277
275
|
klass = Dropbox::Sign.const_get(type)
|
278
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
276
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
279
277
|
end
|
280
278
|
end
|
281
279
|
|
@@ -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
|
|
@@ -28,6 +28,10 @@ module Dropbox::Sign
|
|
28
28
|
TEXT_MERGE = "text-merge".freeze
|
29
29
|
CHECKBOX_MERGE = "checkbox-merge".freeze
|
30
30
|
|
31
|
+
def self.all_vars
|
32
|
+
@all_vars ||= [TEXT, CHECKBOX, DATE_SIGNED, DROPDOWN, INITIALS, RADIO, SIGNATURE, TEXT_MERGE, CHECKBOX_MERGE].freeze
|
33
|
+
end
|
34
|
+
|
31
35
|
# Builds the enum from string
|
32
36
|
# @param [String] The enum value in the form of the string
|
33
37
|
# @return [String] The enum value
|
@@ -39,9 +43,9 @@ module Dropbox::Sign
|
|
39
43
|
# @param [String] The enum value in the form of the string
|
40
44
|
# @return [String] The enum value
|
41
45
|
def build_from_hash(value)
|
42
|
-
|
43
|
-
raise "Invalid ENUM value #{value} for class #SignatureRequestResponseDataTypeEnum"
|
44
|
-
value
|
46
|
+
return value if SignatureRequestResponseDataTypeEnum.all_vars.include?(value)
|
47
|
+
raise "Invalid ENUM value #{value} for class #SignatureRequestResponseDataTypeEnum"
|
45
48
|
end
|
46
49
|
end
|
50
|
+
|
47
51
|
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
|
|
@@ -193,8 +193,6 @@ module Dropbox::Sign
|
|
193
193
|
else
|
194
194
|
false
|
195
195
|
end
|
196
|
-
when :File
|
197
|
-
value
|
198
196
|
when :Object
|
199
197
|
# generic object (usually a Hash), return directly
|
200
198
|
value
|
@@ -212,7 +210,7 @@ module Dropbox::Sign
|
|
212
210
|
else # model
|
213
211
|
# models (e.g. Pet)
|
214
212
|
klass = Dropbox::Sign.const_get(type)
|
215
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
214
|
end
|
217
215
|
end
|
218
216
|
|