docusign_esign 3.10.0 → 3.11.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/docusign_esign-2.11.0.rc1.gem +0 -0
- data/lib/docusign_esign.rb +5 -3
- data/lib/docusign_esign/api/envelopes_api.rb +0 -287
- data/lib/docusign_esign/api/users_api.rb +45 -9
- data/lib/docusign_esign/models/account_billing_plan.rb +21 -1
- data/lib/docusign_esign/models/agent.rb +29 -1
- data/lib/docusign_esign/models/carbon_copy.rb +29 -1
- data/lib/docusign_esign/models/certified_delivery.rb +29 -1
- data/lib/docusign_esign/models/editor.rb +29 -1
- data/lib/docusign_esign/models/envelope_form_data.rb +1 -1
- data/lib/docusign_esign/models/in_person_signer.rb +11 -1
- data/lib/docusign_esign/models/initial_here.rb +11 -1
- data/lib/docusign_esign/models/intermediary.rb +29 -1
- data/lib/docusign_esign/models/notary_host.rb +11 -1
- data/lib/docusign_esign/models/notary_recipient.rb +29 -1
- data/lib/docusign_esign/models/payment_method_with_options.rb +13 -1
- data/lib/docusign_esign/models/prefill_form_data.rb +216 -0
- data/lib/docusign_esign/models/prefill_tabs.rb +25 -1
- data/lib/docusign_esign/models/recipient_preview_request.rb +10 -1
- data/lib/docusign_esign/models/recipient_token_client_ur_ls.rb +174 -0
- data/lib/docusign_esign/models/recipient_view_request.rb +10 -1
- data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +91 -1
- data/lib/docusign_esign/models/seal_sign.rb +11 -1
- data/lib/docusign_esign/models/sender_company.rb +1011 -0
- data/lib/docusign_esign/models/sender_name.rb +1011 -0
- data/lib/docusign_esign/models/sign_here.rb +11 -1
- data/lib/docusign_esign/models/signer.rb +29 -1
- data/lib/docusign_esign/models/signer_attachment.rb +11 -1
- data/lib/docusign_esign/models/template_tabs.rb +1 -1
- data/lib/docusign_esign/models/witness.rb +29 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile.lock +2 -6
- metadata +9 -7
- data/docusign_esign-2.10.0.gem +0 -0
- data/docusign_esign-2.10.0.rc1.gem +0 -0
- data/docusign_esign-3.10.0.rc1.gem +0 -0
@@ -52,7 +52,7 @@ module DocuSign_eSign
|
|
52
52
|
:'email_subject' => :'String',
|
53
53
|
:'envelope_id' => :'String',
|
54
54
|
:'form_data' => :'Array<FormDataItem>',
|
55
|
-
:'prefill_form_data' => :'
|
55
|
+
:'prefill_form_data' => :'PrefillFormData',
|
56
56
|
:'recipient_form_data' => :'Array<RecipientFormData>',
|
57
57
|
:'sent_date_time' => :'String',
|
58
58
|
:'status' => :'String'
|
@@ -27,6 +27,9 @@ module DocuSign_eSign
|
|
27
27
|
#
|
28
28
|
attr_accessor :auto_navigation
|
29
29
|
|
30
|
+
#
|
31
|
+
attr_accessor :auto_responded_reason
|
32
|
+
|
30
33
|
# When set to **true**, specifies that the signer can perform the signing ceremony offline.
|
31
34
|
attr_accessor :can_sign_offline
|
32
35
|
|
@@ -267,6 +270,7 @@ module DocuSign_eSign
|
|
267
270
|
:'add_access_code_to_email' => :'addAccessCodeToEmail',
|
268
271
|
:'allow_system_override_for_locked_recipient' => :'allowSystemOverrideForLockedRecipient',
|
269
272
|
:'auto_navigation' => :'autoNavigation',
|
273
|
+
:'auto_responded_reason' => :'autoRespondedReason',
|
270
274
|
:'can_sign_offline' => :'canSignOffline',
|
271
275
|
:'client_user_id' => :'clientUserId',
|
272
276
|
:'completed_count' => :'completedCount',
|
@@ -365,6 +369,7 @@ module DocuSign_eSign
|
|
365
369
|
:'add_access_code_to_email' => :'String',
|
366
370
|
:'allow_system_override_for_locked_recipient' => :'String',
|
367
371
|
:'auto_navigation' => :'String',
|
372
|
+
:'auto_responded_reason' => :'String',
|
368
373
|
:'can_sign_offline' => :'String',
|
369
374
|
:'client_user_id' => :'String',
|
370
375
|
:'completed_count' => :'String',
|
@@ -483,6 +488,10 @@ module DocuSign_eSign
|
|
483
488
|
self.auto_navigation = attributes[:'autoNavigation']
|
484
489
|
end
|
485
490
|
|
491
|
+
if attributes.has_key?(:'autoRespondedReason')
|
492
|
+
self.auto_responded_reason = attributes[:'autoRespondedReason']
|
493
|
+
end
|
494
|
+
|
486
495
|
if attributes.has_key?(:'canSignOffline')
|
487
496
|
self.can_sign_offline = attributes[:'canSignOffline']
|
488
497
|
end
|
@@ -871,6 +880,7 @@ module DocuSign_eSign
|
|
871
880
|
add_access_code_to_email == o.add_access_code_to_email &&
|
872
881
|
allow_system_override_for_locked_recipient == o.allow_system_override_for_locked_recipient &&
|
873
882
|
auto_navigation == o.auto_navigation &&
|
883
|
+
auto_responded_reason == o.auto_responded_reason &&
|
874
884
|
can_sign_offline == o.can_sign_offline &&
|
875
885
|
client_user_id == o.client_user_id &&
|
876
886
|
completed_count == o.completed_count &&
|
@@ -969,7 +979,7 @@ module DocuSign_eSign
|
|
969
979
|
# Calculates hash code according to all attributes.
|
970
980
|
# @return [Fixnum] Hash code
|
971
981
|
def hash
|
972
|
-
[access_code, access_code_metadata, add_access_code_to_email, allow_system_override_for_locked_recipient, auto_navigation, can_sign_offline, client_user_id, completed_count, creation_reason, custom_fields, declined_date_time, declined_reason, default_recipient, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, host_email, host_email_metadata, host_name, host_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, in_person_signing_type, in_person_signing_type_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_host, notary_id, note, note_metadata, offline_attributes, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_signature_providers, recipient_supplies_tabs, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, require_signer_certificate, require_sign_on_paper, require_upload_signature, role_name, routing_order, routing_order_metadata, sent_date_time, signature_info, signed_date_time, signer_email, signer_email_metadata, signer_first_name, signer_first_name_metadata, signer_last_name, signer_last_name_metadata, signer_name, signer_name_metadata, sign_in_each_location, sign_in_each_location_metadata, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
|
982
|
+
[access_code, access_code_metadata, add_access_code_to_email, allow_system_override_for_locked_recipient, auto_navigation, auto_responded_reason, can_sign_offline, client_user_id, completed_count, creation_reason, custom_fields, declined_date_time, declined_reason, default_recipient, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, host_email, host_email_metadata, host_name, host_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, in_person_signing_type, in_person_signing_type_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_host, notary_id, note, note_metadata, offline_attributes, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_signature_providers, recipient_supplies_tabs, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, require_signer_certificate, require_sign_on_paper, require_upload_signature, role_name, routing_order, routing_order_metadata, sent_date_time, signature_info, signed_date_time, signer_email, signer_email_metadata, signer_first_name, signer_first_name_metadata, signer_last_name, signer_last_name_metadata, signer_name, signer_name_metadata, sign_in_each_location, sign_in_each_location_metadata, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
|
973
983
|
end
|
974
984
|
|
975
985
|
# Builds the object from hash
|
@@ -100,6 +100,9 @@ module DocuSign_eSign
|
|
100
100
|
|
101
101
|
attr_accessor :form_page_number_metadata
|
102
102
|
|
103
|
+
#
|
104
|
+
attr_accessor :hand_draw_required
|
105
|
+
|
103
106
|
# Height of the tab in pixels.
|
104
107
|
attr_accessor :height
|
105
108
|
|
@@ -243,6 +246,7 @@ module DocuSign_eSign
|
|
243
246
|
:'form_page_label_metadata' => :'formPageLabelMetadata',
|
244
247
|
:'form_page_number' => :'formPageNumber',
|
245
248
|
:'form_page_number_metadata' => :'formPageNumberMetadata',
|
249
|
+
:'hand_draw_required' => :'handDrawRequired',
|
246
250
|
:'height' => :'height',
|
247
251
|
:'height_metadata' => :'heightMetadata',
|
248
252
|
:'merge_field' => :'mergeField',
|
@@ -326,6 +330,7 @@ module DocuSign_eSign
|
|
326
330
|
:'form_page_label_metadata' => :'PropertyMetadata',
|
327
331
|
:'form_page_number' => :'String',
|
328
332
|
:'form_page_number_metadata' => :'PropertyMetadata',
|
333
|
+
:'hand_draw_required' => :'String',
|
329
334
|
:'height' => :'String',
|
330
335
|
:'height_metadata' => :'PropertyMetadata',
|
331
336
|
:'merge_field' => :'MergeField',
|
@@ -519,6 +524,10 @@ module DocuSign_eSign
|
|
519
524
|
self.form_page_number_metadata = attributes[:'formPageNumberMetadata']
|
520
525
|
end
|
521
526
|
|
527
|
+
if attributes.has_key?(:'handDrawRequired')
|
528
|
+
self.hand_draw_required = attributes[:'handDrawRequired']
|
529
|
+
end
|
530
|
+
|
522
531
|
if attributes.has_key?(:'height')
|
523
532
|
self.height = attributes[:'height']
|
524
533
|
end
|
@@ -743,6 +752,7 @@ module DocuSign_eSign
|
|
743
752
|
form_page_label_metadata == o.form_page_label_metadata &&
|
744
753
|
form_page_number == o.form_page_number &&
|
745
754
|
form_page_number_metadata == o.form_page_number_metadata &&
|
755
|
+
hand_draw_required == o.hand_draw_required &&
|
746
756
|
height == o.height &&
|
747
757
|
height_metadata == o.height_metadata &&
|
748
758
|
merge_field == o.merge_field &&
|
@@ -796,7 +806,7 @@ module DocuSign_eSign
|
|
796
806
|
# Calculates hash code according to all attributes.
|
797
807
|
# @return [Fixnum] Hash code
|
798
808
|
def hash
|
799
|
-
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, merge_field, merge_field_xml, name, name_metadata, optional, optional_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, scale_value, scale_value_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
809
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, hand_draw_required, height, height_metadata, merge_field, merge_field_xml, name, name_metadata, optional, optional_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, scale_value, scale_value_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
800
810
|
end
|
801
811
|
|
802
812
|
# Builds the object from hash
|
@@ -27,6 +27,9 @@ module DocuSign_eSign
|
|
27
27
|
#
|
28
28
|
attr_accessor :allow_system_override_for_locked_recipient
|
29
29
|
|
30
|
+
#
|
31
|
+
attr_accessor :auto_responded_reason
|
32
|
+
|
30
33
|
# Specifies whether the recipient is embedded or remote. If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to **true**, an error is generated on sending.ng. Maximum length: 100 characters.
|
31
34
|
attr_accessor :client_user_id
|
32
35
|
|
@@ -124,6 +127,10 @@ module DocuSign_eSign
|
|
124
127
|
|
125
128
|
attr_accessor :phone_authentication
|
126
129
|
|
130
|
+
attr_accessor :phone_number
|
131
|
+
|
132
|
+
attr_accessor :phone_number_metadata
|
133
|
+
|
127
134
|
# Reserved:
|
128
135
|
attr_accessor :recipient_attachments
|
129
136
|
|
@@ -207,6 +214,7 @@ module DocuSign_eSign
|
|
207
214
|
:'add_access_code_to_email' => :'addAccessCodeToEmail',
|
208
215
|
:'additional_notifications' => :'additionalNotifications',
|
209
216
|
:'allow_system_override_for_locked_recipient' => :'allowSystemOverrideForLockedRecipient',
|
217
|
+
:'auto_responded_reason' => :'autoRespondedReason',
|
210
218
|
:'client_user_id' => :'clientUserId',
|
211
219
|
:'completed_count' => :'completedCount',
|
212
220
|
:'custom_fields' => :'customFields',
|
@@ -244,6 +252,8 @@ module DocuSign_eSign
|
|
244
252
|
:'note' => :'note',
|
245
253
|
:'note_metadata' => :'noteMetadata',
|
246
254
|
:'phone_authentication' => :'phoneAuthentication',
|
255
|
+
:'phone_number' => :'phoneNumber',
|
256
|
+
:'phone_number_metadata' => :'phoneNumberMetadata',
|
247
257
|
:'recipient_attachments' => :'recipientAttachments',
|
248
258
|
:'recipient_authentication_status' => :'recipientAuthenticationStatus',
|
249
259
|
:'recipient_feature_metadata' => :'recipientFeatureMetadata',
|
@@ -282,6 +292,7 @@ module DocuSign_eSign
|
|
282
292
|
:'add_access_code_to_email' => :'String',
|
283
293
|
:'additional_notifications' => :'Array<RecipientAdditionalNotification>',
|
284
294
|
:'allow_system_override_for_locked_recipient' => :'String',
|
295
|
+
:'auto_responded_reason' => :'String',
|
285
296
|
:'client_user_id' => :'String',
|
286
297
|
:'completed_count' => :'String',
|
287
298
|
:'custom_fields' => :'Array<String>',
|
@@ -319,6 +330,8 @@ module DocuSign_eSign
|
|
319
330
|
:'note' => :'String',
|
320
331
|
:'note_metadata' => :'PropertyMetadata',
|
321
332
|
:'phone_authentication' => :'RecipientPhoneAuthentication',
|
333
|
+
:'phone_number' => :'RecipientPhoneNumber',
|
334
|
+
:'phone_number_metadata' => :'PropertyMetadata',
|
322
335
|
:'recipient_attachments' => :'Array<RecipientAttachment>',
|
323
336
|
:'recipient_authentication_status' => :'AuthenticationStatus',
|
324
337
|
:'recipient_feature_metadata' => :'Array<FeatureAvailableMetadata>',
|
@@ -379,6 +392,10 @@ module DocuSign_eSign
|
|
379
392
|
self.allow_system_override_for_locked_recipient = attributes[:'allowSystemOverrideForLockedRecipient']
|
380
393
|
end
|
381
394
|
|
395
|
+
if attributes.has_key?(:'autoRespondedReason')
|
396
|
+
self.auto_responded_reason = attributes[:'autoRespondedReason']
|
397
|
+
end
|
398
|
+
|
382
399
|
if attributes.has_key?(:'clientUserId')
|
383
400
|
self.client_user_id = attributes[:'clientUserId']
|
384
401
|
end
|
@@ -533,6 +550,14 @@ module DocuSign_eSign
|
|
533
550
|
self.phone_authentication = attributes[:'phoneAuthentication']
|
534
551
|
end
|
535
552
|
|
553
|
+
if attributes.has_key?(:'phoneNumber')
|
554
|
+
self.phone_number = attributes[:'phoneNumber']
|
555
|
+
end
|
556
|
+
|
557
|
+
if attributes.has_key?(:'phoneNumberMetadata')
|
558
|
+
self.phone_number_metadata = attributes[:'phoneNumberMetadata']
|
559
|
+
end
|
560
|
+
|
536
561
|
if attributes.has_key?(:'recipientAttachments')
|
537
562
|
if (value = attributes[:'recipientAttachments']).is_a?(Array)
|
538
563
|
self.recipient_attachments = value
|
@@ -673,6 +698,7 @@ module DocuSign_eSign
|
|
673
698
|
add_access_code_to_email == o.add_access_code_to_email &&
|
674
699
|
additional_notifications == o.additional_notifications &&
|
675
700
|
allow_system_override_for_locked_recipient == o.allow_system_override_for_locked_recipient &&
|
701
|
+
auto_responded_reason == o.auto_responded_reason &&
|
676
702
|
client_user_id == o.client_user_id &&
|
677
703
|
completed_count == o.completed_count &&
|
678
704
|
custom_fields == o.custom_fields &&
|
@@ -710,6 +736,8 @@ module DocuSign_eSign
|
|
710
736
|
note == o.note &&
|
711
737
|
note_metadata == o.note_metadata &&
|
712
738
|
phone_authentication == o.phone_authentication &&
|
739
|
+
phone_number == o.phone_number &&
|
740
|
+
phone_number_metadata == o.phone_number_metadata &&
|
713
741
|
recipient_attachments == o.recipient_attachments &&
|
714
742
|
recipient_authentication_status == o.recipient_authentication_status &&
|
715
743
|
recipient_feature_metadata == o.recipient_feature_metadata &&
|
@@ -748,7 +776,7 @@ module DocuSign_eSign
|
|
748
776
|
# Calculates hash code according to all attributes.
|
749
777
|
# @return [Fixnum] Hash code
|
750
778
|
def hash
|
751
|
-
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, allow_system_override_for_locked_recipient, client_user_id, completed_count, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, last_name_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, template_locked, template_required, total_tab_count, user_id].hash
|
779
|
+
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, allow_system_override_for_locked_recipient, auto_responded_reason, client_user_id, completed_count, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, last_name_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, phone_number, phone_number_metadata, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, template_locked, template_required, total_tab_count, user_id].hash
|
752
780
|
end
|
753
781
|
|
754
782
|
# Builds the object from hash
|
@@ -24,6 +24,9 @@ module DocuSign_eSign
|
|
24
24
|
#
|
25
25
|
attr_accessor :allow_system_override_for_locked_recipient
|
26
26
|
|
27
|
+
#
|
28
|
+
attr_accessor :auto_responded_reason
|
29
|
+
|
27
30
|
# Specifies whether the recipient is embedded or remote. If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to **true**, an error is generated on sending.ng. Maximum length: 100 characters.
|
28
31
|
attr_accessor :client_user_id
|
29
32
|
|
@@ -190,6 +193,7 @@ module DocuSign_eSign
|
|
190
193
|
:'access_code_metadata' => :'accessCodeMetadata',
|
191
194
|
:'add_access_code_to_email' => :'addAccessCodeToEmail',
|
192
195
|
:'allow_system_override_for_locked_recipient' => :'allowSystemOverrideForLockedRecipient',
|
196
|
+
:'auto_responded_reason' => :'autoRespondedReason',
|
193
197
|
:'client_user_id' => :'clientUserId',
|
194
198
|
:'completed_count' => :'completedCount',
|
195
199
|
:'custom_fields' => :'customFields',
|
@@ -259,6 +263,7 @@ module DocuSign_eSign
|
|
259
263
|
:'access_code_metadata' => :'PropertyMetadata',
|
260
264
|
:'add_access_code_to_email' => :'String',
|
261
265
|
:'allow_system_override_for_locked_recipient' => :'String',
|
266
|
+
:'auto_responded_reason' => :'String',
|
262
267
|
:'client_user_id' => :'String',
|
263
268
|
:'completed_count' => :'String',
|
264
269
|
:'custom_fields' => :'Array<String>',
|
@@ -345,6 +350,10 @@ module DocuSign_eSign
|
|
345
350
|
self.allow_system_override_for_locked_recipient = attributes[:'allowSystemOverrideForLockedRecipient']
|
346
351
|
end
|
347
352
|
|
353
|
+
if attributes.has_key?(:'autoRespondedReason')
|
354
|
+
self.auto_responded_reason = attributes[:'autoRespondedReason']
|
355
|
+
end
|
356
|
+
|
348
357
|
if attributes.has_key?(:'clientUserId')
|
349
358
|
self.client_user_id = attributes[:'clientUserId']
|
350
359
|
end
|
@@ -616,6 +625,7 @@ module DocuSign_eSign
|
|
616
625
|
access_code_metadata == o.access_code_metadata &&
|
617
626
|
add_access_code_to_email == o.add_access_code_to_email &&
|
618
627
|
allow_system_override_for_locked_recipient == o.allow_system_override_for_locked_recipient &&
|
628
|
+
auto_responded_reason == o.auto_responded_reason &&
|
619
629
|
client_user_id == o.client_user_id &&
|
620
630
|
completed_count == o.completed_count &&
|
621
631
|
custom_fields == o.custom_fields &&
|
@@ -686,7 +696,7 @@ module DocuSign_eSign
|
|
686
696
|
# Calculates hash code according to all attributes.
|
687
697
|
# @return [Fixnum] Hash code
|
688
698
|
def hash
|
689
|
-
[access_code, access_code_metadata, add_access_code_to_email, allow_system_override_for_locked_recipient, client_user_id, completed_count, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, fax_number, fax_number_metadata, host_recipient_id, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
|
699
|
+
[access_code, access_code_metadata, add_access_code_to_email, allow_system_override_for_locked_recipient, auto_responded_reason, client_user_id, completed_count, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, fax_number, fax_number_metadata, host_recipient_id, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
|
690
700
|
end
|
691
701
|
|
692
702
|
# Builds the object from hash
|
@@ -36,6 +36,9 @@ module DocuSign_eSign
|
|
36
36
|
#
|
37
37
|
attr_accessor :auto_navigation
|
38
38
|
|
39
|
+
#
|
40
|
+
attr_accessor :auto_responded_reason
|
41
|
+
|
39
42
|
# Contains a URI for an endpoint that allows you to easily retrieve bulk recipient information.
|
40
43
|
attr_accessor :bulk_recipients_uri
|
41
44
|
|
@@ -164,6 +167,10 @@ module DocuSign_eSign
|
|
164
167
|
|
165
168
|
attr_accessor :phone_authentication
|
166
169
|
|
170
|
+
attr_accessor :phone_number
|
171
|
+
|
172
|
+
attr_accessor :phone_number_metadata
|
173
|
+
|
167
174
|
attr_accessor :proof_file
|
168
175
|
|
169
176
|
# Reserved:
|
@@ -276,6 +283,7 @@ module DocuSign_eSign
|
|
276
283
|
:'agent_can_edit_name' => :'agentCanEditName',
|
277
284
|
:'allow_system_override_for_locked_recipient' => :'allowSystemOverrideForLockedRecipient',
|
278
285
|
:'auto_navigation' => :'autoNavigation',
|
286
|
+
:'auto_responded_reason' => :'autoRespondedReason',
|
279
287
|
:'bulk_recipients_uri' => :'bulkRecipientsUri',
|
280
288
|
:'can_sign_offline' => :'canSignOffline',
|
281
289
|
:'client_user_id' => :'clientUserId',
|
@@ -324,6 +332,8 @@ module DocuSign_eSign
|
|
324
332
|
:'note_metadata' => :'noteMetadata',
|
325
333
|
:'offline_attributes' => :'offlineAttributes',
|
326
334
|
:'phone_authentication' => :'phoneAuthentication',
|
335
|
+
:'phone_number' => :'phoneNumber',
|
336
|
+
:'phone_number_metadata' => :'phoneNumberMetadata',
|
327
337
|
:'proof_file' => :'proofFile',
|
328
338
|
:'recipient_attachments' => :'recipientAttachments',
|
329
339
|
:'recipient_authentication_status' => :'recipientAuthenticationStatus',
|
@@ -375,6 +385,7 @@ module DocuSign_eSign
|
|
375
385
|
:'agent_can_edit_name' => :'String',
|
376
386
|
:'allow_system_override_for_locked_recipient' => :'String',
|
377
387
|
:'auto_navigation' => :'String',
|
388
|
+
:'auto_responded_reason' => :'String',
|
378
389
|
:'bulk_recipients_uri' => :'String',
|
379
390
|
:'can_sign_offline' => :'String',
|
380
391
|
:'client_user_id' => :'String',
|
@@ -423,6 +434,8 @@ module DocuSign_eSign
|
|
423
434
|
:'note_metadata' => :'PropertyMetadata',
|
424
435
|
:'offline_attributes' => :'OfflineAttributes',
|
425
436
|
:'phone_authentication' => :'RecipientPhoneAuthentication',
|
437
|
+
:'phone_number' => :'RecipientPhoneNumber',
|
438
|
+
:'phone_number_metadata' => :'PropertyMetadata',
|
426
439
|
:'proof_file' => :'RecipientProofFile',
|
427
440
|
:'recipient_attachments' => :'Array<RecipientAttachment>',
|
428
441
|
:'recipient_authentication_status' => :'AuthenticationStatus',
|
@@ -505,6 +518,10 @@ module DocuSign_eSign
|
|
505
518
|
self.auto_navigation = attributes[:'autoNavigation']
|
506
519
|
end
|
507
520
|
|
521
|
+
if attributes.has_key?(:'autoRespondedReason')
|
522
|
+
self.auto_responded_reason = attributes[:'autoRespondedReason']
|
523
|
+
end
|
524
|
+
|
508
525
|
if attributes.has_key?(:'bulkRecipientsUri')
|
509
526
|
self.bulk_recipients_uri = attributes[:'bulkRecipientsUri']
|
510
527
|
end
|
@@ -705,6 +722,14 @@ module DocuSign_eSign
|
|
705
722
|
self.phone_authentication = attributes[:'phoneAuthentication']
|
706
723
|
end
|
707
724
|
|
725
|
+
if attributes.has_key?(:'phoneNumber')
|
726
|
+
self.phone_number = attributes[:'phoneNumber']
|
727
|
+
end
|
728
|
+
|
729
|
+
if attributes.has_key?(:'phoneNumberMetadata')
|
730
|
+
self.phone_number_metadata = attributes[:'phoneNumberMetadata']
|
731
|
+
end
|
732
|
+
|
708
733
|
if attributes.has_key?(:'proofFile')
|
709
734
|
self.proof_file = attributes[:'proofFile']
|
710
735
|
end
|
@@ -890,6 +915,7 @@ module DocuSign_eSign
|
|
890
915
|
agent_can_edit_name == o.agent_can_edit_name &&
|
891
916
|
allow_system_override_for_locked_recipient == o.allow_system_override_for_locked_recipient &&
|
892
917
|
auto_navigation == o.auto_navigation &&
|
918
|
+
auto_responded_reason == o.auto_responded_reason &&
|
893
919
|
bulk_recipients_uri == o.bulk_recipients_uri &&
|
894
920
|
can_sign_offline == o.can_sign_offline &&
|
895
921
|
client_user_id == o.client_user_id &&
|
@@ -938,6 +964,8 @@ module DocuSign_eSign
|
|
938
964
|
note_metadata == o.note_metadata &&
|
939
965
|
offline_attributes == o.offline_attributes &&
|
940
966
|
phone_authentication == o.phone_authentication &&
|
967
|
+
phone_number == o.phone_number &&
|
968
|
+
phone_number_metadata == o.phone_number_metadata &&
|
941
969
|
proof_file == o.proof_file &&
|
942
970
|
recipient_attachments == o.recipient_attachments &&
|
943
971
|
recipient_authentication_status == o.recipient_authentication_status &&
|
@@ -986,7 +1014,7 @@ module DocuSign_eSign
|
|
986
1014
|
# Calculates hash code according to all attributes.
|
987
1015
|
# @return [Fixnum] Hash code
|
988
1016
|
def hash
|
989
|
-
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, agent_can_edit_email, agent_can_edit_name, allow_system_override_for_locked_recipient, auto_navigation, bulk_recipients_uri, can_sign_offline, client_user_id, completed_count, creation_reason, custom_fields, declined_date_time, declined_reason, default_recipient, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, is_bulk_recipient, is_bulk_recipient_metadata, last_name, last_name_metadata, live_oak_start_url, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_id, notary_signers, notary_type, note, note_metadata, offline_attributes, phone_authentication, proof_file, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_signature_providers, recipient_supplies_tabs, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, require_signer_certificate, require_sign_on_paper, require_upload_signature, role_name, routing_order, routing_order_metadata, sent_date_time, signature_info, signed_date_time, sign_in_each_location, sign_in_each_location_metadata, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
|
1017
|
+
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, agent_can_edit_email, agent_can_edit_name, allow_system_override_for_locked_recipient, auto_navigation, auto_responded_reason, bulk_recipients_uri, can_sign_offline, client_user_id, completed_count, creation_reason, custom_fields, declined_date_time, declined_reason, default_recipient, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, is_bulk_recipient, is_bulk_recipient_metadata, last_name, last_name_metadata, live_oak_start_url, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_id, notary_signers, notary_type, note, note_metadata, offline_attributes, phone_authentication, phone_number, phone_number_metadata, proof_file, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_signature_providers, recipient_supplies_tabs, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, require_signer_certificate, require_sign_on_paper, require_upload_signature, role_name, routing_order, routing_order_metadata, sent_date_time, signature_info, signed_date_time, sign_in_each_location, sign_in_each_location_metadata, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
|
990
1018
|
end
|
991
1019
|
|
992
1020
|
# Builds the object from hash
|
@@ -13,6 +13,9 @@ require 'date'
|
|
13
13
|
|
14
14
|
module DocuSign_eSign
|
15
15
|
class PaymentMethodWithOptions
|
16
|
+
#
|
17
|
+
attr_accessor :supported_currencies
|
18
|
+
|
16
19
|
#
|
17
20
|
attr_accessor :supported_options
|
18
21
|
|
@@ -22,6 +25,7 @@ module DocuSign_eSign
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'supported_currencies' => :'supportedCurrencies',
|
25
29
|
:'supported_options' => :'supportedOptions',
|
26
30
|
:'type' => :'type'
|
27
31
|
}
|
@@ -30,6 +34,7 @@ module DocuSign_eSign
|
|
30
34
|
# Attribute type mapping.
|
31
35
|
def self.swagger_types
|
32
36
|
{
|
37
|
+
:'supported_currencies' => :'Array<String>',
|
33
38
|
:'supported_options' => :'Array<String>',
|
34
39
|
:'type' => :'String'
|
35
40
|
}
|
@@ -43,6 +48,12 @@ module DocuSign_eSign
|
|
43
48
|
# convert string to symbol for hash key
|
44
49
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
50
|
|
51
|
+
if attributes.has_key?(:'supportedCurrencies')
|
52
|
+
if (value = attributes[:'supportedCurrencies']).is_a?(Array)
|
53
|
+
self.supported_currencies = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
46
57
|
if attributes.has_key?(:'supportedOptions')
|
47
58
|
if (value = attributes[:'supportedOptions']).is_a?(Array)
|
48
59
|
self.supported_options = value
|
@@ -72,6 +83,7 @@ module DocuSign_eSign
|
|
72
83
|
def ==(o)
|
73
84
|
return true if self.equal?(o)
|
74
85
|
self.class == o.class &&
|
86
|
+
supported_currencies == o.supported_currencies &&
|
75
87
|
supported_options == o.supported_options &&
|
76
88
|
type == o.type
|
77
89
|
end
|
@@ -85,7 +97,7 @@ module DocuSign_eSign
|
|
85
97
|
# Calculates hash code according to all attributes.
|
86
98
|
# @return [Fixnum] Hash code
|
87
99
|
def hash
|
88
|
-
[supported_options, type].hash
|
100
|
+
[supported_currencies, supported_options, type].hash
|
89
101
|
end
|
90
102
|
|
91
103
|
# Builds the object from hash
|
@@ -0,0 +1,216 @@
|
|
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 PrefillFormData
|
16
|
+
#
|
17
|
+
attr_accessor :form_data
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :sender_email
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :sender_name
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :sender_user_id
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'form_data' => :'formData',
|
32
|
+
:'sender_email' => :'senderEmail',
|
33
|
+
:'sender_name' => :'senderName',
|
34
|
+
:'sender_user_id' => :'senderUserId'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'form_data' => :'Array<FormDataItem>',
|
42
|
+
:'sender_email' => :'String',
|
43
|
+
:'sender_name' => :'String',
|
44
|
+
:'sender_user_id' => :'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?(:'formData')
|
57
|
+
if (value = attributes[:'formData']).is_a?(Array)
|
58
|
+
self.form_data = value
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'senderEmail')
|
63
|
+
self.sender_email = attributes[:'senderEmail']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'senderName')
|
67
|
+
self.sender_name = attributes[:'senderName']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'senderUserId')
|
71
|
+
self.sender_user_id = attributes[:'senderUserId']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def ==(o)
|
91
|
+
return true if self.equal?(o)
|
92
|
+
self.class == o.class &&
|
93
|
+
form_data == o.form_data &&
|
94
|
+
sender_email == o.sender_email &&
|
95
|
+
sender_name == o.sender_name &&
|
96
|
+
sender_user_id == o.sender_user_id
|
97
|
+
end
|
98
|
+
|
99
|
+
# @see the `==` method
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def eql?(o)
|
102
|
+
self == o
|
103
|
+
end
|
104
|
+
|
105
|
+
# Calculates hash code according to all attributes.
|
106
|
+
# @return [Fixnum] Hash code
|
107
|
+
def hash
|
108
|
+
[form_data, sender_email, sender_name, sender_user_id].hash
|
109
|
+
end
|
110
|
+
|
111
|
+
# Builds the object from hash
|
112
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
+
# @return [Object] Returns the model itself
|
114
|
+
def build_from_hash(attributes)
|
115
|
+
return nil unless attributes.is_a?(Hash)
|
116
|
+
self.class.swagger_types.each_pair do |key, type|
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
121
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
122
|
+
end
|
123
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
126
|
+
end
|
127
|
+
|
128
|
+
self
|
129
|
+
end
|
130
|
+
|
131
|
+
# Deserializes the data based on type
|
132
|
+
# @param string type Data type
|
133
|
+
# @param string value Value to be deserialized
|
134
|
+
# @return [Object] Deserialized data
|
135
|
+
def _deserialize(type, value)
|
136
|
+
case type.to_sym
|
137
|
+
when :DateTime
|
138
|
+
DateTime.parse(value)
|
139
|
+
when :Date
|
140
|
+
Date.parse(value)
|
141
|
+
when :String
|
142
|
+
value.to_s
|
143
|
+
when :Integer
|
144
|
+
value.to_i
|
145
|
+
when :Float
|
146
|
+
value.to_f
|
147
|
+
when :BOOLEAN
|
148
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
149
|
+
true
|
150
|
+
else
|
151
|
+
false
|
152
|
+
end
|
153
|
+
when :Object
|
154
|
+
# generic object (usually a Hash), return directly
|
155
|
+
value
|
156
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
157
|
+
inner_type = Regexp.last_match[:inner_type]
|
158
|
+
value.map { |v| _deserialize(inner_type, v) }
|
159
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
160
|
+
k_type = Regexp.last_match[:k_type]
|
161
|
+
v_type = Regexp.last_match[:v_type]
|
162
|
+
{}.tap do |hash|
|
163
|
+
value.each do |k, v|
|
164
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
else # model
|
168
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
169
|
+
temp_model.build_from_hash(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the string representation of the object
|
174
|
+
# @return [String] String presentation of the object
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_hash (backward compatibility)
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_body
|
182
|
+
to_hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the object in the form of hash
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_hash
|
188
|
+
hash = {}
|
189
|
+
self.class.attribute_map.each_pair do |attr, param|
|
190
|
+
value = self.send(attr)
|
191
|
+
next if value.nil?
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|
216
|
+
end
|