docusign_esign 3.27.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +110 -0
- data/lib/docusign_esign/api/envelopes_api.rb +29 -21
- data/lib/docusign_esign/api/templates_api.rb +6 -6
- data/lib/docusign_esign/client/api_client.rb +1 -1
- data/lib/docusign_esign/models/account_settings_information.rb +191 -61
- data/lib/docusign_esign/models/account_ui_settings.rb +21 -1
- data/lib/docusign_esign/models/envelope.rb +11 -1
- data/lib/docusign_esign/models/envelope_definition.rb +11 -1
- data/lib/docusign_esign/models/envelope_template.rb +11 -1
- data/lib/docusign_esign/models/envelope_view_document_settings.rb +214 -0
- data/lib/docusign_esign/models/envelope_view_envelope_custom_field_settings.rb +184 -0
- data/lib/docusign_esign/models/envelope_view_recipient_settings.rb +214 -0
- data/lib/docusign_esign/models/envelope_view_request.rb +204 -0
- data/lib/docusign_esign/models/envelope_view_settings.rb +304 -0
- data/lib/docusign_esign/models/envelope_view_tagger_settings.rb +204 -0
- data/lib/docusign_esign/models/envelope_view_template_settings.rb +184 -0
- data/lib/docusign_esign/models/group.rb +11 -1
- data/lib/docusign_esign/models/palette_item_settings.rb +184 -0
- data/lib/docusign_esign/models/palette_settings.rb +244 -0
- data/lib/docusign_esign/models/recipient_view_request.rb +11 -1
- data/lib/docusign_esign/models/template_view_request.rb +194 -0
- data/lib/docusign_esign/models/user_settings_information.rb +61 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/lib/docusign_esign.rb +10 -1
- metadata +12 -2
@@ -56,6 +56,12 @@ module DocuSign_eSign
|
|
56
56
|
#
|
57
57
|
attr_accessor :enable_envelope_copy_with_data_metadata
|
58
58
|
|
59
|
+
#
|
60
|
+
attr_accessor :enable_envelope_types
|
61
|
+
|
62
|
+
#
|
63
|
+
attr_accessor :enable_envelope_types_metadata
|
64
|
+
|
59
65
|
#
|
60
66
|
attr_accessor :enable_legacy_sendflow_link
|
61
67
|
|
@@ -127,6 +133,8 @@ module DocuSign_eSign
|
|
127
133
|
:'enable_easy_sign_template_upload_metadata' => :'enableEasySignTemplateUploadMetadata',
|
128
134
|
:'enable_envelope_copy_with_data' => :'enableEnvelopeCopyWithData',
|
129
135
|
:'enable_envelope_copy_with_data_metadata' => :'enableEnvelopeCopyWithDataMetadata',
|
136
|
+
:'enable_envelope_types' => :'enableEnvelopeTypes',
|
137
|
+
:'enable_envelope_types_metadata' => :'enableEnvelopeTypesMetadata',
|
130
138
|
:'enable_legacy_sendflow_link' => :'enableLegacySendflowLink',
|
131
139
|
:'enable_legacy_sendflow_link_metadata' => :'enableLegacySendflowLinkMetadata',
|
132
140
|
:'has_external_linked_accounts' => :'hasExternalLinkedAccounts',
|
@@ -165,6 +173,8 @@ module DocuSign_eSign
|
|
165
173
|
:'enable_easy_sign_template_upload_metadata' => :'SettingsMetadata',
|
166
174
|
:'enable_envelope_copy_with_data' => :'String',
|
167
175
|
:'enable_envelope_copy_with_data_metadata' => :'SettingsMetadata',
|
176
|
+
:'enable_envelope_types' => :'String',
|
177
|
+
:'enable_envelope_types_metadata' => :'SettingsMetadata',
|
168
178
|
:'enable_legacy_sendflow_link' => :'String',
|
169
179
|
:'enable_legacy_sendflow_link_metadata' => :'SettingsMetadata',
|
170
180
|
:'has_external_linked_accounts' => :'String',
|
@@ -250,6 +260,14 @@ module DocuSign_eSign
|
|
250
260
|
self.enable_envelope_copy_with_data_metadata = attributes[:'enableEnvelopeCopyWithDataMetadata']
|
251
261
|
end
|
252
262
|
|
263
|
+
if attributes.has_key?(:'enableEnvelopeTypes')
|
264
|
+
self.enable_envelope_types = attributes[:'enableEnvelopeTypes']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.has_key?(:'enableEnvelopeTypesMetadata')
|
268
|
+
self.enable_envelope_types_metadata = attributes[:'enableEnvelopeTypesMetadata']
|
269
|
+
end
|
270
|
+
|
253
271
|
if attributes.has_key?(:'enableLegacySendflowLink')
|
254
272
|
self.enable_legacy_sendflow_link = attributes[:'enableLegacySendflowLink']
|
255
273
|
end
|
@@ -355,6 +373,8 @@ module DocuSign_eSign
|
|
355
373
|
enable_easy_sign_template_upload_metadata == o.enable_easy_sign_template_upload_metadata &&
|
356
374
|
enable_envelope_copy_with_data == o.enable_envelope_copy_with_data &&
|
357
375
|
enable_envelope_copy_with_data_metadata == o.enable_envelope_copy_with_data_metadata &&
|
376
|
+
enable_envelope_types == o.enable_envelope_types &&
|
377
|
+
enable_envelope_types_metadata == o.enable_envelope_types_metadata &&
|
358
378
|
enable_legacy_sendflow_link == o.enable_legacy_sendflow_link &&
|
359
379
|
enable_legacy_sendflow_link_metadata == o.enable_legacy_sendflow_link_metadata &&
|
360
380
|
has_external_linked_accounts == o.has_external_linked_accounts &&
|
@@ -384,7 +404,7 @@ module DocuSign_eSign
|
|
384
404
|
# Calculates hash code according to all attributes.
|
385
405
|
# @return [Fixnum] Hash code
|
386
406
|
def hash
|
387
|
-
[admin_message, allow_users_to_edit_shared_access, allow_users_to_edit_shared_access_metadata, ask_an_admin, clickwrap_schema_version, clickwrap_schema_version_metadata, enable_admin_message, enable_admin_message_metadata, enable_easy_sign_can_use_multi_template_apply, enable_easy_sign_can_use_multi_template_apply_metadata, enable_easy_sign_template_upload, enable_easy_sign_template_upload_metadata, enable_envelope_copy_with_data, enable_envelope_copy_with_data_metadata, enable_legacy_sendflow_link, enable_legacy_sendflow_link_metadata, has_external_linked_accounts, has_external_linked_accounts_metadata, hide_send_an_envelope, hide_send_an_envelope_metadata, hide_use_a_template, hide_use_a_template_in_prepare, hide_use_a_template_in_prepare_metadata, hide_use_a_template_metadata, order_based_recipient_id_generation, order_based_recipient_id_generation_metadata, remove_envelope_forwarding, remove_envelope_forwarding_metadata, should_redact_access_code, should_redact_access_code_metadata, upload_new_image_to_sign_or_initial, upload_new_image_to_sign_or_initial_metadata].hash
|
407
|
+
[admin_message, allow_users_to_edit_shared_access, allow_users_to_edit_shared_access_metadata, ask_an_admin, clickwrap_schema_version, clickwrap_schema_version_metadata, enable_admin_message, enable_admin_message_metadata, enable_easy_sign_can_use_multi_template_apply, enable_easy_sign_can_use_multi_template_apply_metadata, enable_easy_sign_template_upload, enable_easy_sign_template_upload_metadata, enable_envelope_copy_with_data, enable_envelope_copy_with_data_metadata, enable_envelope_types, enable_envelope_types_metadata, enable_legacy_sendflow_link, enable_legacy_sendflow_link_metadata, has_external_linked_accounts, has_external_linked_accounts_metadata, hide_send_an_envelope, hide_send_an_envelope_metadata, hide_use_a_template, hide_use_a_template_in_prepare, hide_use_a_template_in_prepare_metadata, hide_use_a_template_metadata, order_based_recipient_id_generation, order_based_recipient_id_generation_metadata, remove_envelope_forwarding, remove_envelope_forwarding_metadata, should_redact_access_code, should_redact_access_code_metadata, upload_new_image_to_sign_or_initial, upload_new_image_to_sign_or_initial_metadata].hash
|
388
408
|
end
|
389
409
|
|
390
410
|
# Builds the object from hash
|
@@ -241,6 +241,9 @@ module DocuSign_eSign
|
|
241
241
|
# When set to **true**, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When set to **false**, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the `useDisclosure` property is not set, then the account's normal disclosure setting is used and the value of the `useDisclosure` property is not returned in responses when getting envelope information.
|
242
242
|
attr_accessor :use_disclosure
|
243
243
|
|
244
|
+
#
|
245
|
+
attr_accessor :u_sig_state
|
246
|
+
|
244
247
|
# The date and time the envelope or template was voided.
|
245
248
|
attr_accessor :voided_date_time
|
246
249
|
|
@@ -329,6 +332,7 @@ module DocuSign_eSign
|
|
329
332
|
:'templates_uri' => :'templatesUri',
|
330
333
|
:'transaction_id' => :'transactionId',
|
331
334
|
:'use_disclosure' => :'useDisclosure',
|
335
|
+
:'u_sig_state' => :'uSigState',
|
332
336
|
:'voided_date_time' => :'voidedDateTime',
|
333
337
|
:'voided_reason' => :'voidedReason',
|
334
338
|
:'workflow' => :'workflow'
|
@@ -414,6 +418,7 @@ module DocuSign_eSign
|
|
414
418
|
:'templates_uri' => :'String',
|
415
419
|
:'transaction_id' => :'String',
|
416
420
|
:'use_disclosure' => :'String',
|
421
|
+
:'u_sig_state' => :'String',
|
417
422
|
:'voided_date_time' => :'String',
|
418
423
|
:'voided_reason' => :'String',
|
419
424
|
:'workflow' => :'Workflow'
|
@@ -738,6 +743,10 @@ module DocuSign_eSign
|
|
738
743
|
self.use_disclosure = attributes[:'useDisclosure']
|
739
744
|
end
|
740
745
|
|
746
|
+
if attributes.has_key?(:'uSigState')
|
747
|
+
self.u_sig_state = attributes[:'uSigState']
|
748
|
+
end
|
749
|
+
|
741
750
|
if attributes.has_key?(:'voidedDateTime')
|
742
751
|
self.voided_date_time = attributes[:'voidedDateTime']
|
743
752
|
end
|
@@ -845,6 +854,7 @@ module DocuSign_eSign
|
|
845
854
|
templates_uri == o.templates_uri &&
|
846
855
|
transaction_id == o.transaction_id &&
|
847
856
|
use_disclosure == o.use_disclosure &&
|
857
|
+
u_sig_state == o.u_sig_state &&
|
848
858
|
voided_date_time == o.voided_date_time &&
|
849
859
|
voided_reason == o.voided_reason &&
|
850
860
|
workflow == o.workflow
|
@@ -859,7 +869,7 @@ module DocuSign_eSign
|
|
859
869
|
# Calculates hash code according to all attributes.
|
860
870
|
# @return [Fixnum] Hash code
|
861
871
|
def hash
|
862
|
-
[access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, templates_uri, transaction_id, use_disclosure, voided_date_time, voided_reason, workflow].hash
|
872
|
+
[access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, workflow].hash
|
863
873
|
end
|
864
874
|
|
865
875
|
# Builds the object from hash
|
@@ -275,6 +275,9 @@ module DocuSign_eSign
|
|
275
275
|
# When set to **true**, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When set to **false**, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the `useDisclosure` property is not set, then the account's normal disclosure setting is used and the value of the `useDisclosure` property is not returned in responses when getting envelope information.
|
276
276
|
attr_accessor :use_disclosure
|
277
277
|
|
278
|
+
#
|
279
|
+
attr_accessor :u_sig_state
|
280
|
+
|
278
281
|
# The date and time the envelope or template was voided.
|
279
282
|
attr_accessor :voided_date_time
|
280
283
|
|
@@ -374,6 +377,7 @@ module DocuSign_eSign
|
|
374
377
|
:'templates_uri' => :'templatesUri',
|
375
378
|
:'transaction_id' => :'transactionId',
|
376
379
|
:'use_disclosure' => :'useDisclosure',
|
380
|
+
:'u_sig_state' => :'uSigState',
|
377
381
|
:'voided_date_time' => :'voidedDateTime',
|
378
382
|
:'voided_reason' => :'voidedReason',
|
379
383
|
:'workflow' => :'workflow'
|
@@ -470,6 +474,7 @@ module DocuSign_eSign
|
|
470
474
|
:'templates_uri' => :'String',
|
471
475
|
:'transaction_id' => :'String',
|
472
476
|
:'use_disclosure' => :'String',
|
477
|
+
:'u_sig_state' => :'String',
|
473
478
|
:'voided_date_time' => :'String',
|
474
479
|
:'voided_reason' => :'String',
|
475
480
|
:'workflow' => :'Workflow'
|
@@ -848,6 +853,10 @@ module DocuSign_eSign
|
|
848
853
|
self.use_disclosure = attributes[:'useDisclosure']
|
849
854
|
end
|
850
855
|
|
856
|
+
if attributes.has_key?(:'uSigState')
|
857
|
+
self.u_sig_state = attributes[:'uSigState']
|
858
|
+
end
|
859
|
+
|
851
860
|
if attributes.has_key?(:'voidedDateTime')
|
852
861
|
self.voided_date_time = attributes[:'voidedDateTime']
|
853
862
|
end
|
@@ -966,6 +975,7 @@ module DocuSign_eSign
|
|
966
975
|
templates_uri == o.templates_uri &&
|
967
976
|
transaction_id == o.transaction_id &&
|
968
977
|
use_disclosure == o.use_disclosure &&
|
978
|
+
u_sig_state == o.u_sig_state &&
|
969
979
|
voided_date_time == o.voided_date_time &&
|
970
980
|
voided_reason == o.voided_reason &&
|
971
981
|
workflow == o.workflow
|
@@ -980,7 +990,7 @@ module DocuSign_eSign
|
|
980
990
|
# Calculates hash code according to all attributes.
|
981
991
|
# @return [Fixnum] Hash code
|
982
992
|
def hash
|
983
|
-
[access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, recipient_view_request, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, voided_date_time, voided_reason, workflow].hash
|
993
|
+
[access_control_list_base64, accessibility, allow_comments, allow_markup, allow_reassign, allow_recipient_recursion, allow_view_history, any_signer, asynchronous, attachments, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, composite_templates, copy_recipient_data, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, event_notification, event_notifications, expire_after, expire_date_time, expire_enabled, external_envelope_id, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_dynamic_envelope, is_signature_provider_envelope, last_modified_date_time, location, lock_information, message_lock, notification, notification_uri, password, power_form, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, recipient_view_request, sender, sent_date_time, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, template_roles, templates_uri, transaction_id, use_disclosure, u_sig_state, voided_date_time, voided_reason, workflow].hash
|
984
994
|
end
|
985
995
|
|
986
996
|
# Builds the object from hash
|
@@ -313,6 +313,9 @@ module DocuSign_eSign
|
|
313
313
|
# When set to **true**, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When set to **false**, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the `useDisclosure` property is not set, then the account's normal disclosure setting is used and the value of the `useDisclosure` property is not returned in responses when getting envelope information.
|
314
314
|
attr_accessor :use_disclosure
|
315
315
|
|
316
|
+
#
|
317
|
+
attr_accessor :u_sig_state
|
318
|
+
|
316
319
|
# The date and time the envelope or template was voided.
|
317
320
|
attr_accessor :voided_date_time
|
318
321
|
|
@@ -425,6 +428,7 @@ module DocuSign_eSign
|
|
425
428
|
:'transaction_id' => :'transactionId',
|
426
429
|
:'uri' => :'uri',
|
427
430
|
:'use_disclosure' => :'useDisclosure',
|
431
|
+
:'u_sig_state' => :'uSigState',
|
428
432
|
:'voided_date_time' => :'voidedDateTime',
|
429
433
|
:'voided_reason' => :'voidedReason',
|
430
434
|
:'workflow' => :'workflow'
|
@@ -534,6 +538,7 @@ module DocuSign_eSign
|
|
534
538
|
:'transaction_id' => :'String',
|
535
539
|
:'uri' => :'String',
|
536
540
|
:'use_disclosure' => :'String',
|
541
|
+
:'u_sig_state' => :'String',
|
537
542
|
:'voided_date_time' => :'String',
|
538
543
|
:'voided_reason' => :'String',
|
539
544
|
:'workflow' => :'Workflow'
|
@@ -960,6 +965,10 @@ module DocuSign_eSign
|
|
960
965
|
self.use_disclosure = attributes[:'useDisclosure']
|
961
966
|
end
|
962
967
|
|
968
|
+
if attributes.has_key?(:'uSigState')
|
969
|
+
self.u_sig_state = attributes[:'uSigState']
|
970
|
+
end
|
971
|
+
|
963
972
|
if attributes.has_key?(:'voidedDateTime')
|
964
973
|
self.voided_date_time = attributes[:'voidedDateTime']
|
965
974
|
end
|
@@ -1091,6 +1100,7 @@ module DocuSign_eSign
|
|
1091
1100
|
transaction_id == o.transaction_id &&
|
1092
1101
|
uri == o.uri &&
|
1093
1102
|
use_disclosure == o.use_disclosure &&
|
1103
|
+
u_sig_state == o.u_sig_state &&
|
1094
1104
|
voided_date_time == o.voided_date_time &&
|
1095
1105
|
voided_reason == o.voided_reason &&
|
1096
1106
|
workflow == o.workflow
|
@@ -1105,7 +1115,7 @@ module DocuSign_eSign
|
|
1105
1115
|
# Calculates hash code according to all attributes.
|
1106
1116
|
# @return [Fixnum] Hash code
|
1107
1117
|
def hash
|
1108
|
-
[access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_match, auto_match_specified_by_user, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, favorited_by_me, folder_id, folder_ids, folder_name, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_ace_gen_template, is_doc_gen_template, is_dynamic_envelope, is_signature_provider_envelope, last_modified, last_modified_by, last_modified_date_time, last_used, location, lock_information, message_lock, name, new_password, notification, notification_uri, owner, page_count, password, password_protected, power_form, power_forms, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, voided_date_time, voided_reason, workflow].hash
|
1118
|
+
[access_control_list_base64, allow_comments, allow_markup, allow_reassign, allow_view_history, any_signer, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_match, auto_match_specified_by_user, auto_navigation, brand_id, brand_lock, burn_default_tab_data, certificate_uri, completed_date_time, copy_recipient_data, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, disable_responsive_document, document_base64, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_attachments, envelope_custom_metadata, envelope_documents, envelope_id, envelope_id_stamping, envelope_location, envelope_metadata, envelope_uri, expire_after, expire_date_time, expire_enabled, external_envelope_id, favorited_by_me, folder_id, folder_ids, folder_name, folders, has_comments, has_form_data_changed, has_wav_file, holder, initial_sent_date_time, is21_cfr_part11, is_ace_gen_template, is_doc_gen_template, is_dynamic_envelope, is_signature_provider_envelope, last_modified, last_modified_by, last_modified_date_time, last_used, location, lock_information, message_lock, name, new_password, notification, notification_uri, owner, page_count, password, password_protected, power_form, power_forms, purge_completed_date, purge_request_date, purge_state, recipients, recipients_lock, recipients_uri, sender, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, status_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, u_sig_state, voided_date_time, voided_reason, workflow].hash
|
1109
1119
|
end
|
1110
1120
|
|
1111
1121
|
# Builds the object from hash
|
@@ -0,0 +1,214 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2.1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
class EnvelopeViewDocumentSettings
|
16
|
+
#
|
17
|
+
attr_accessor :show_edit_documents
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :show_edit_document_visibility
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :show_edit_pages
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :show_save_as_document_custom_field
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'show_edit_documents' => :'showEditDocuments',
|
32
|
+
:'show_edit_document_visibility' => :'showEditDocumentVisibility',
|
33
|
+
:'show_edit_pages' => :'showEditPages',
|
34
|
+
:'show_save_as_document_custom_field' => :'showSaveAsDocumentCustomField'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'show_edit_documents' => :'String',
|
42
|
+
:'show_edit_document_visibility' => :'String',
|
43
|
+
:'show_edit_pages' => :'String',
|
44
|
+
:'show_save_as_document_custom_field' => :'String'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
+
def initialize(attributes = {})
|
51
|
+
return unless attributes.is_a?(Hash)
|
52
|
+
|
53
|
+
# convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
55
|
+
|
56
|
+
if attributes.has_key?(:'showEditDocuments')
|
57
|
+
self.show_edit_documents = attributes[:'showEditDocuments']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'showEditDocumentVisibility')
|
61
|
+
self.show_edit_document_visibility = attributes[:'showEditDocumentVisibility']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'showEditPages')
|
65
|
+
self.show_edit_pages = attributes[:'showEditPages']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'showSaveAsDocumentCustomField')
|
69
|
+
self.show_save_as_document_custom_field = attributes[:'showSaveAsDocumentCustomField']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
show_edit_documents == o.show_edit_documents &&
|
92
|
+
show_edit_document_visibility == o.show_edit_document_visibility &&
|
93
|
+
show_edit_pages == o.show_edit_pages &&
|
94
|
+
show_save_as_document_custom_field == o.show_save_as_document_custom_field
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Fixnum] Hash code
|
105
|
+
def hash
|
106
|
+
[show_edit_documents, show_edit_document_visibility, show_edit_pages, show_save_as_document_custom_field].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
end
|
@@ -0,0 +1,184 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2.1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
class EnvelopeViewEnvelopeCustomFieldSettings
|
16
|
+
#
|
17
|
+
attr_accessor :show_envelope_custom_fields
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'show_envelope_custom_fields' => :'showEnvelopeCustomFields'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'show_envelope_custom_fields' => :'String'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'showEnvelopeCustomFields')
|
42
|
+
self.show_envelope_custom_fields = attributes[:'showEnvelopeCustomFields']
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
47
|
+
# @return Array for valid properties with the reasons
|
48
|
+
def list_invalid_properties
|
49
|
+
invalid_properties = Array.new
|
50
|
+
invalid_properties
|
51
|
+
end
|
52
|
+
|
53
|
+
# Check to see if the all the properties in the model are valid
|
54
|
+
# @return true if the model is valid
|
55
|
+
def valid?
|
56
|
+
true
|
57
|
+
end
|
58
|
+
|
59
|
+
# Checks equality by comparing each attribute.
|
60
|
+
# @param [Object] Object to be compared
|
61
|
+
def ==(o)
|
62
|
+
return true if self.equal?(o)
|
63
|
+
self.class == o.class &&
|
64
|
+
show_envelope_custom_fields == o.show_envelope_custom_fields
|
65
|
+
end
|
66
|
+
|
67
|
+
# @see the `==` method
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def eql?(o)
|
70
|
+
self == o
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Fixnum] Hash code
|
75
|
+
def hash
|
76
|
+
[show_envelope_custom_fields].hash
|
77
|
+
end
|
78
|
+
|
79
|
+
# Builds the object from hash
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
# @return [Object] Returns the model itself
|
82
|
+
def build_from_hash(attributes)
|
83
|
+
return nil unless attributes.is_a?(Hash)
|
84
|
+
self.class.swagger_types.each_pair do |key, type|
|
85
|
+
if type =~ /\AArray<(.*)>/i
|
86
|
+
# check to ensure the input is an array given that the attribute
|
87
|
+
# is documented as an array but the input is not
|
88
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
90
|
+
end
|
91
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
92
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
93
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
94
|
+
end
|
95
|
+
|
96
|
+
self
|
97
|
+
end
|
98
|
+
|
99
|
+
# Deserializes the data based on type
|
100
|
+
# @param string type Data type
|
101
|
+
# @param string value Value to be deserialized
|
102
|
+
# @return [Object] Deserialized data
|
103
|
+
def _deserialize(type, value)
|
104
|
+
case type.to_sym
|
105
|
+
when :DateTime
|
106
|
+
DateTime.parse(value)
|
107
|
+
when :Date
|
108
|
+
Date.parse(value)
|
109
|
+
when :String
|
110
|
+
value.to_s
|
111
|
+
when :Integer
|
112
|
+
value.to_i
|
113
|
+
when :Float
|
114
|
+
value.to_f
|
115
|
+
when :BOOLEAN
|
116
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
117
|
+
true
|
118
|
+
else
|
119
|
+
false
|
120
|
+
end
|
121
|
+
when :Object
|
122
|
+
# generic object (usually a Hash), return directly
|
123
|
+
value
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
127
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
130
|
+
{}.tap do |hash|
|
131
|
+
value.each do |k, v|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
else # model
|
136
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
137
|
+
temp_model.build_from_hash(value)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# Returns the string representation of the object
|
142
|
+
# @return [String] String presentation of the object
|
143
|
+
def to_s
|
144
|
+
to_hash.to_s
|
145
|
+
end
|
146
|
+
|
147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
149
|
+
def to_body
|
150
|
+
to_hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns the object in the form of hash
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
155
|
+
def to_hash
|
156
|
+
hash = {}
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
158
|
+
value = self.send(attr)
|
159
|
+
next if value.nil?
|
160
|
+
hash[param] = _to_hash(value)
|
161
|
+
end
|
162
|
+
hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Outputs non-array value in the form of hash
|
166
|
+
# For object, use to_hash. Otherwise, just return the value
|
167
|
+
# @param [Object] value Any valid value
|
168
|
+
# @return [Hash] Returns the value in the form of hash
|
169
|
+
def _to_hash(value)
|
170
|
+
if value.is_a?(Array)
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
172
|
+
elsif value.is_a?(Hash)
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
175
|
+
end
|
176
|
+
elsif value.respond_to? :to_hash
|
177
|
+
value.to_hash
|
178
|
+
else
|
179
|
+
value
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
end
|
184
|
+
end
|