docusign_esign 3.4.0.rc1 → 3.6.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 +1 -1
- data/Gemfile.lock +73 -0
- data/README.md +7 -5
- data/docusign_esign-2.6.0.gem +0 -0
- data/docusign_esign-2.6.0.rc1.gem +0 -0
- data/docusign_esign-2.7.0.rc1.gem +0 -0
- data/docusign_esign-3.5.0.gem +0 -0
- data/docusign_esign-3.5.0.rc1.gem +0 -0
- data/docusign_esign-3.6.0.rc1.gem +0 -0
- data/lib/docusign_esign.rb +34 -0
- data/lib/docusign_esign/.DS_Store +0 -0
- data/lib/docusign_esign/api/.DS_Store +0 -0
- data/lib/docusign_esign/api/accounts_api.rb +949 -35
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +126 -4
- data/lib/docusign_esign/api/envelopes_api.rb +376 -2
- data/lib/docusign_esign/client/.DS_Store +0 -0
- data/lib/docusign_esign/models/account_settings_information.rb +30 -1
- data/lib/docusign_esign/models/account_signature.rb +497 -0
- data/lib/docusign_esign/models/account_signature_definition.rb +338 -0
- data/lib/docusign_esign/models/account_signatures_information.rb +187 -0
- data/lib/docusign_esign/models/bulk_send_batch_status.rb +287 -0
- data/lib/docusign_esign/models/bulk_send_batch_summaries.rb +277 -0
- data/lib/docusign_esign/models/bulk_send_batch_summary.rb +255 -0
- data/lib/docusign_esign/models/bulk_send_error_status.rb +207 -0
- data/lib/docusign_esign/models/conditional_recipient_rule.rb +216 -0
- data/lib/docusign_esign/models/conditional_recipient_rule_condition.rb +207 -0
- data/lib/docusign_esign/models/conditional_recipient_rule_filter.rb +235 -0
- data/lib/docusign_esign/models/correct_view_request.rb +14 -4
- data/lib/docusign_esign/models/e_note_configuration.rb +11 -1
- data/lib/docusign_esign/models/envelope.rb +13 -4
- data/lib/docusign_esign/models/envelope_definition.rb +13 -4
- data/lib/docusign_esign/models/envelope_template.rb +13 -4
- data/lib/docusign_esign/models/in_person_signer.rb +11 -1
- data/lib/docusign_esign/models/new_user.rb +11 -1
- data/lib/docusign_esign/models/notary_certificate.rb +869 -0
- data/lib/docusign_esign/models/notary_recipient.rb +1097 -0
- data/lib/docusign_esign/models/notary_seal.rb +983 -0
- data/lib/docusign_esign/models/proof_service_resource_token.rb +14 -4
- data/lib/docusign_esign/models/recipient_additional_notification.rb +14 -4
- data/lib/docusign_esign/models/recipient_group.rb +207 -0
- data/lib/docusign_esign/models/recipient_option.rb +225 -0
- data/lib/docusign_esign/models/recipient_routing.rb +184 -0
- data/lib/docusign_esign/models/recipient_rules.rb +187 -0
- data/lib/docusign_esign/models/recipients.rb +13 -1
- data/lib/docusign_esign/models/report_in_product_csv_run_request.rb +437 -0
- data/lib/docusign_esign/models/report_in_product_field.rb +215 -0
- data/lib/docusign_esign/models/report_in_product_get.rb +466 -0
- data/lib/docusign_esign/models/report_in_product_list.rb +187 -0
- data/lib/docusign_esign/models/report_in_product_list_item.rb +315 -0
- data/lib/docusign_esign/models/report_in_product_run_request.rb +397 -0
- data/lib/docusign_esign/models/report_in_product_run_response.rb +247 -0
- data/lib/docusign_esign/models/report_in_product_run_response_row.rb +194 -0
- data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +1395 -0
- data/lib/docusign_esign/models/report_in_product_save_response.rb +185 -0
- data/lib/docusign_esign/models/report_in_product_sent_by_details.rb +199 -0
- data/lib/docusign_esign/models/sender_email_notifications.rb +11 -1
- data/lib/docusign_esign/models/signature_group.rb +205 -0
- data/lib/docusign_esign/models/signature_group_def.rb +195 -0
- data/lib/docusign_esign/models/signature_user.rb +215 -0
- data/lib/docusign_esign/models/signature_user_def.rb +205 -0
- data/lib/docusign_esign/models/signer.rb +11 -1
- data/lib/docusign_esign/models/tab_metadata.rb +21 -1
- data/lib/docusign_esign/models/tabs.rb +25 -1
- data/lib/docusign_esign/models/template_recipients.rb +13 -1
- data/lib/docusign_esign/models/template_tabs.rb +25 -1
- data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
- data/lib/docusign_esign/models/witness.rb +11 -1
- data/lib/docusign_esign/models/workflow.rb +207 -0
- data/lib/docusign_esign/models/workflow_step.rb +254 -0
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile.lock +3 -3
- metadata +48 -5
- data/docusign_esign-2.4.0.gem +0 -0
@@ -146,6 +146,9 @@ module DocuSign_eSign
|
|
146
146
|
|
147
147
|
attr_accessor :name_metadata
|
148
148
|
|
149
|
+
#
|
150
|
+
attr_accessor :notary_id
|
151
|
+
|
149
152
|
# Specifies a note that is unique to this recipient. This note is sent to the recipient via the signing email. The note displays in the signing UI near the upper left corner of the document on the signing screen. Maximum Length: 1000 characters.
|
150
153
|
attr_accessor :note
|
151
154
|
|
@@ -308,6 +311,7 @@ module DocuSign_eSign
|
|
308
311
|
:'locked_recipient_sms_editable' => :'lockedRecipientSmsEditable',
|
309
312
|
:'name' => :'name',
|
310
313
|
:'name_metadata' => :'nameMetadata',
|
314
|
+
:'notary_id' => :'notaryId',
|
311
315
|
:'note' => :'note',
|
312
316
|
:'note_metadata' => :'noteMetadata',
|
313
317
|
:'offline_attributes' => :'offlineAttributes',
|
@@ -404,6 +408,7 @@ module DocuSign_eSign
|
|
404
408
|
:'locked_recipient_sms_editable' => :'String',
|
405
409
|
:'name' => :'String',
|
406
410
|
:'name_metadata' => :'PropertyMetadata',
|
411
|
+
:'notary_id' => :'String',
|
407
412
|
:'note' => :'String',
|
408
413
|
:'note_metadata' => :'PropertyMetadata',
|
409
414
|
:'offline_attributes' => :'OfflineAttributes',
|
@@ -660,6 +665,10 @@ module DocuSign_eSign
|
|
660
665
|
self.name_metadata = attributes[:'nameMetadata']
|
661
666
|
end
|
662
667
|
|
668
|
+
if attributes.has_key?(:'notaryId')
|
669
|
+
self.notary_id = attributes[:'notaryId']
|
670
|
+
end
|
671
|
+
|
663
672
|
if attributes.has_key?(:'note')
|
664
673
|
self.note = attributes[:'note']
|
665
674
|
end
|
@@ -902,6 +911,7 @@ module DocuSign_eSign
|
|
902
911
|
locked_recipient_sms_editable == o.locked_recipient_sms_editable &&
|
903
912
|
name == o.name &&
|
904
913
|
name_metadata == o.name_metadata &&
|
914
|
+
notary_id == o.notary_id &&
|
905
915
|
note == o.note &&
|
906
916
|
note_metadata == o.note_metadata &&
|
907
917
|
offline_attributes == o.offline_attributes &&
|
@@ -954,7 +964,7 @@ module DocuSign_eSign
|
|
954
964
|
# Calculates hash code according to all attributes.
|
955
965
|
# @return [Fixnum] Hash code
|
956
966
|
def hash
|
957
|
-
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, additional_notifications_metadata, 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, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, 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
|
967
|
+
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, additional_notifications_metadata, 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, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_id, 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
|
958
968
|
end
|
959
969
|
|
960
970
|
# Builds the object from hash
|
@@ -115,9 +115,15 @@ module DocuSign_eSign
|
|
115
115
|
#
|
116
116
|
attr_accessor :payment_item_name
|
117
117
|
|
118
|
+
# When set to **true** and shared is true, information must be entered in this field to complete the envelope.
|
119
|
+
attr_accessor :require_all
|
120
|
+
|
118
121
|
# When set to **true**, the signer is required to fill out this tab
|
119
122
|
attr_accessor :required
|
120
123
|
|
124
|
+
# Optional element for field markup. When set to **true**, the signer is required to initial when they modify a shared field.
|
125
|
+
attr_accessor :require_initial_on_shared_change
|
126
|
+
|
121
127
|
#
|
122
128
|
attr_accessor :scale_value
|
123
129
|
|
@@ -187,7 +193,9 @@ module DocuSign_eSign
|
|
187
193
|
:'payment_item_code' => :'paymentItemCode',
|
188
194
|
:'payment_item_description' => :'paymentItemDescription',
|
189
195
|
:'payment_item_name' => :'paymentItemName',
|
196
|
+
:'require_all' => :'requireAll',
|
190
197
|
:'required' => :'required',
|
198
|
+
:'require_initial_on_shared_change' => :'requireInitialOnSharedChange',
|
191
199
|
:'scale_value' => :'scaleValue',
|
192
200
|
:'selected' => :'selected',
|
193
201
|
:'shared' => :'shared',
|
@@ -239,7 +247,9 @@ module DocuSign_eSign
|
|
239
247
|
:'payment_item_code' => :'String',
|
240
248
|
:'payment_item_description' => :'String',
|
241
249
|
:'payment_item_name' => :'String',
|
250
|
+
:'require_all' => :'String',
|
242
251
|
:'required' => :'String',
|
252
|
+
:'require_initial_on_shared_change' => :'String',
|
243
253
|
:'scale_value' => :'String',
|
244
254
|
:'selected' => :'String',
|
245
255
|
:'shared' => :'String',
|
@@ -400,10 +410,18 @@ module DocuSign_eSign
|
|
400
410
|
self.payment_item_name = attributes[:'paymentItemName']
|
401
411
|
end
|
402
412
|
|
413
|
+
if attributes.has_key?(:'requireAll')
|
414
|
+
self.require_all = attributes[:'requireAll']
|
415
|
+
end
|
416
|
+
|
403
417
|
if attributes.has_key?(:'required')
|
404
418
|
self.required = attributes[:'required']
|
405
419
|
end
|
406
420
|
|
421
|
+
if attributes.has_key?(:'requireInitialOnSharedChange')
|
422
|
+
self.require_initial_on_shared_change = attributes[:'requireInitialOnSharedChange']
|
423
|
+
end
|
424
|
+
|
407
425
|
if attributes.has_key?(:'scaleValue')
|
408
426
|
self.scale_value = attributes[:'scaleValue']
|
409
427
|
end
|
@@ -501,7 +519,9 @@ module DocuSign_eSign
|
|
501
519
|
payment_item_code == o.payment_item_code &&
|
502
520
|
payment_item_description == o.payment_item_description &&
|
503
521
|
payment_item_name == o.payment_item_name &&
|
522
|
+
require_all == o.require_all &&
|
504
523
|
required == o.required &&
|
524
|
+
require_initial_on_shared_change == o.require_initial_on_shared_change &&
|
505
525
|
scale_value == o.scale_value &&
|
506
526
|
selected == o.selected &&
|
507
527
|
shared == o.shared &&
|
@@ -524,7 +544,7 @@ module DocuSign_eSign
|
|
524
544
|
# Calculates hash code according to all attributes.
|
525
545
|
# @return [Fixnum] Hash code
|
526
546
|
def hash
|
527
|
-
[anchor, anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_units, anchor_x_offset, anchor_y_offset, bold, collaborative, conceal_value_on_document, created_by_display_name, created_by_user_id, custom_tab_id, disable_auto_size, editable, font, font_color, font_size, height, included_in_email, initial_value, italic, items, last_modified, last_modified_by_display_name, last_modified_by_user_id, locked, maximum_length, merge_field, name, payment_item_code, payment_item_description, payment_item_name, required, scale_value, selected, shared, stamp_type, stamp_type_metadata, tab_label, type, underline, validation_message, validation_pattern, width].hash
|
547
|
+
[anchor, anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_units, anchor_x_offset, anchor_y_offset, bold, collaborative, conceal_value_on_document, created_by_display_name, created_by_user_id, custom_tab_id, disable_auto_size, editable, font, font_color, font_size, height, included_in_email, initial_value, italic, items, last_modified, last_modified_by_display_name, last_modified_by_user_id, locked, maximum_length, merge_field, name, payment_item_code, payment_item_description, payment_item_name, require_all, required, require_initial_on_shared_change, scale_value, selected, shared, stamp_type, stamp_type_metadata, tab_label, type, underline, validation_message, validation_pattern, width].hash
|
528
548
|
end
|
529
549
|
|
530
550
|
# Builds the object from hash
|
@@ -68,6 +68,12 @@ module DocuSign_eSign
|
|
68
68
|
#
|
69
69
|
attr_accessor :notarize_tabs
|
70
70
|
|
71
|
+
#
|
72
|
+
attr_accessor :notary_certificate_tabs
|
73
|
+
|
74
|
+
#
|
75
|
+
attr_accessor :notary_seal_tabs
|
76
|
+
|
71
77
|
# Specifies a location on the document where you want to place additional information, in the form of a note, for a recipient.
|
72
78
|
attr_accessor :note_tabs
|
73
79
|
|
@@ -128,6 +134,8 @@ module DocuSign_eSign
|
|
128
134
|
:'last_name_tabs' => :'lastNameTabs',
|
129
135
|
:'list_tabs' => :'listTabs',
|
130
136
|
:'notarize_tabs' => :'notarizeTabs',
|
137
|
+
:'notary_certificate_tabs' => :'notaryCertificateTabs',
|
138
|
+
:'notary_seal_tabs' => :'notarySealTabs',
|
131
139
|
:'note_tabs' => :'noteTabs',
|
132
140
|
:'number_tabs' => :'numberTabs',
|
133
141
|
:'poly_line_overlay_tabs' => :'polyLineOverlayTabs',
|
@@ -165,6 +173,8 @@ module DocuSign_eSign
|
|
165
173
|
:'last_name_tabs' => :'Array<LastName>',
|
166
174
|
:'list_tabs' => :'Array<Array>',
|
167
175
|
:'notarize_tabs' => :'Array<Notarize>',
|
176
|
+
:'notary_certificate_tabs' => :'Array<NotaryCertificate>',
|
177
|
+
:'notary_seal_tabs' => :'Array<NotarySeal>',
|
168
178
|
:'note_tabs' => :'Array<Note>',
|
169
179
|
:'number_tabs' => :'Array<Number>',
|
170
180
|
:'poly_line_overlay_tabs' => :'Array<PolyLineOverlay>',
|
@@ -297,6 +307,18 @@ module DocuSign_eSign
|
|
297
307
|
end
|
298
308
|
end
|
299
309
|
|
310
|
+
if attributes.has_key?(:'notaryCertificateTabs')
|
311
|
+
if (value = attributes[:'notaryCertificateTabs']).is_a?(Array)
|
312
|
+
self.notary_certificate_tabs = value
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
if attributes.has_key?(:'notarySealTabs')
|
317
|
+
if (value = attributes[:'notarySealTabs']).is_a?(Array)
|
318
|
+
self.notary_seal_tabs = value
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
300
322
|
if attributes.has_key?(:'noteTabs')
|
301
323
|
if (value = attributes[:'noteTabs']).is_a?(Array)
|
302
324
|
self.note_tabs = value
|
@@ -412,6 +434,8 @@ module DocuSign_eSign
|
|
412
434
|
last_name_tabs == o.last_name_tabs &&
|
413
435
|
list_tabs == o.list_tabs &&
|
414
436
|
notarize_tabs == o.notarize_tabs &&
|
437
|
+
notary_certificate_tabs == o.notary_certificate_tabs &&
|
438
|
+
notary_seal_tabs == o.notary_seal_tabs &&
|
415
439
|
note_tabs == o.note_tabs &&
|
416
440
|
number_tabs == o.number_tabs &&
|
417
441
|
poly_line_overlay_tabs == o.poly_line_overlay_tabs &&
|
@@ -436,7 +460,7 @@ module DocuSign_eSign
|
|
436
460
|
# Calculates hash code according to all attributes.
|
437
461
|
# @return [Fixnum] Hash code
|
438
462
|
def hash
|
439
|
-
[approve_tabs, checkbox_tabs, comment_thread_tabs, company_tabs, date_signed_tabs, date_tabs, decline_tabs, draw_tabs, email_address_tabs, email_tabs, envelope_id_tabs, first_name_tabs, formula_tabs, full_name_tabs, initial_here_tabs, last_name_tabs, list_tabs, notarize_tabs, note_tabs, number_tabs, poly_line_overlay_tabs, radio_group_tabs, signer_attachment_tabs, sign_here_tabs, smart_section_tabs, ssn_tabs, tab_groups, text_tabs, title_tabs, view_tabs, zip_tabs].hash
|
463
|
+
[approve_tabs, checkbox_tabs, comment_thread_tabs, company_tabs, date_signed_tabs, date_tabs, decline_tabs, draw_tabs, email_address_tabs, email_tabs, envelope_id_tabs, first_name_tabs, formula_tabs, full_name_tabs, initial_here_tabs, last_name_tabs, list_tabs, notarize_tabs, notary_certificate_tabs, notary_seal_tabs, note_tabs, number_tabs, poly_line_overlay_tabs, radio_group_tabs, signer_attachment_tabs, sign_here_tabs, smart_section_tabs, ssn_tabs, tab_groups, text_tabs, title_tabs, view_tabs, zip_tabs].hash
|
440
464
|
end
|
441
465
|
|
442
466
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module DocuSign_eSign
|
|
37
37
|
# Identifies a recipient that can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order (until subsequent Agents, Editors or Intermediaries recipient types are added).
|
38
38
|
attr_accessor :intermediaries
|
39
39
|
|
40
|
+
#
|
41
|
+
attr_accessor :notaries
|
42
|
+
|
40
43
|
# The list of recipient event statuses that will trigger Connect to send updates to the url. It can be a two-part list with: * recipientEventStatusCode - The recipient status, this can be Sent, Delivered, Completed, Declined, AuthenticationFailed, and AutoResponded. * includeDocuments - When set to **true**, the envelope time zone information is included in the message.
|
41
44
|
attr_accessor :recipient_count
|
42
45
|
|
@@ -60,6 +63,7 @@ module DocuSign_eSign
|
|
60
63
|
:'error_details' => :'errorDetails',
|
61
64
|
:'in_person_signers' => :'inPersonSigners',
|
62
65
|
:'intermediaries' => :'intermediaries',
|
66
|
+
:'notaries' => :'notaries',
|
63
67
|
:'recipient_count' => :'recipientCount',
|
64
68
|
:'seals' => :'seals',
|
65
69
|
:'signers' => :'signers',
|
@@ -78,6 +82,7 @@ module DocuSign_eSign
|
|
78
82
|
:'error_details' => :'ErrorDetails',
|
79
83
|
:'in_person_signers' => :'Array<InPersonSigner>',
|
80
84
|
:'intermediaries' => :'Array<Intermediary>',
|
85
|
+
:'notaries' => :'Array<NotaryRecipient>',
|
81
86
|
:'recipient_count' => :'String',
|
82
87
|
:'seals' => :'Array<SealSign>',
|
83
88
|
:'signers' => :'Array<Signer>',
|
@@ -137,6 +142,12 @@ module DocuSign_eSign
|
|
137
142
|
end
|
138
143
|
end
|
139
144
|
|
145
|
+
if attributes.has_key?(:'notaries')
|
146
|
+
if (value = attributes[:'notaries']).is_a?(Array)
|
147
|
+
self.notaries = value
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
140
151
|
if attributes.has_key?(:'recipientCount')
|
141
152
|
self.recipient_count = attributes[:'recipientCount']
|
142
153
|
end
|
@@ -186,6 +197,7 @@ module DocuSign_eSign
|
|
186
197
|
error_details == o.error_details &&
|
187
198
|
in_person_signers == o.in_person_signers &&
|
188
199
|
intermediaries == o.intermediaries &&
|
200
|
+
notaries == o.notaries &&
|
189
201
|
recipient_count == o.recipient_count &&
|
190
202
|
seals == o.seals &&
|
191
203
|
signers == o.signers &&
|
@@ -201,7 +213,7 @@ module DocuSign_eSign
|
|
201
213
|
# Calculates hash code according to all attributes.
|
202
214
|
# @return [Fixnum] Hash code
|
203
215
|
def hash
|
204
|
-
[agents, carbon_copies, certified_deliveries, current_routing_order, editors, error_details, in_person_signers, intermediaries, recipient_count, seals, signers, witnesses].hash
|
216
|
+
[agents, carbon_copies, certified_deliveries, current_routing_order, editors, error_details, in_person_signers, intermediaries, notaries, recipient_count, seals, signers, witnesses].hash
|
205
217
|
end
|
206
218
|
|
207
219
|
# Builds the object from hash
|
@@ -68,6 +68,12 @@ module DocuSign_eSign
|
|
68
68
|
#
|
69
69
|
attr_accessor :notarize_tabs
|
70
70
|
|
71
|
+
#
|
72
|
+
attr_accessor :notary_certificate_tabs
|
73
|
+
|
74
|
+
#
|
75
|
+
attr_accessor :notary_seal_tabs
|
76
|
+
|
71
77
|
# Specifies a location on the document where you want to place additional information, in the form of a note, for a recipient.
|
72
78
|
attr_accessor :note_tabs
|
73
79
|
|
@@ -128,6 +134,8 @@ module DocuSign_eSign
|
|
128
134
|
:'last_name_tabs' => :'lastNameTabs',
|
129
135
|
:'list_tabs' => :'listTabs',
|
130
136
|
:'notarize_tabs' => :'notarizeTabs',
|
137
|
+
:'notary_certificate_tabs' => :'notaryCertificateTabs',
|
138
|
+
:'notary_seal_tabs' => :'notarySealTabs',
|
131
139
|
:'note_tabs' => :'noteTabs',
|
132
140
|
:'number_tabs' => :'numberTabs',
|
133
141
|
:'poly_line_overlay_tabs' => :'polyLineOverlayTabs',
|
@@ -165,6 +173,8 @@ module DocuSign_eSign
|
|
165
173
|
:'last_name_tabs' => :'Array<LastName>',
|
166
174
|
:'list_tabs' => :'Array<Array>',
|
167
175
|
:'notarize_tabs' => :'Array<Notarize>',
|
176
|
+
:'notary_certificate_tabs' => :'Array<NotaryCertificate>',
|
177
|
+
:'notary_seal_tabs' => :'Array<NotarySeal>',
|
168
178
|
:'note_tabs' => :'Array<Note>',
|
169
179
|
:'number_tabs' => :'Array<Number>',
|
170
180
|
:'poly_line_overlay_tabs' => :'Array<PolyLineOverlay>',
|
@@ -297,6 +307,18 @@ module DocuSign_eSign
|
|
297
307
|
end
|
298
308
|
end
|
299
309
|
|
310
|
+
if attributes.has_key?(:'notaryCertificateTabs')
|
311
|
+
if (value = attributes[:'notaryCertificateTabs']).is_a?(Array)
|
312
|
+
self.notary_certificate_tabs = value
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
if attributes.has_key?(:'notarySealTabs')
|
317
|
+
if (value = attributes[:'notarySealTabs']).is_a?(Array)
|
318
|
+
self.notary_seal_tabs = value
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
300
322
|
if attributes.has_key?(:'noteTabs')
|
301
323
|
if (value = attributes[:'noteTabs']).is_a?(Array)
|
302
324
|
self.note_tabs = value
|
@@ -412,6 +434,8 @@ module DocuSign_eSign
|
|
412
434
|
last_name_tabs == o.last_name_tabs &&
|
413
435
|
list_tabs == o.list_tabs &&
|
414
436
|
notarize_tabs == o.notarize_tabs &&
|
437
|
+
notary_certificate_tabs == o.notary_certificate_tabs &&
|
438
|
+
notary_seal_tabs == o.notary_seal_tabs &&
|
415
439
|
note_tabs == o.note_tabs &&
|
416
440
|
number_tabs == o.number_tabs &&
|
417
441
|
poly_line_overlay_tabs == o.poly_line_overlay_tabs &&
|
@@ -436,7 +460,7 @@ module DocuSign_eSign
|
|
436
460
|
# Calculates hash code according to all attributes.
|
437
461
|
# @return [Fixnum] Hash code
|
438
462
|
def hash
|
439
|
-
[approve_tabs, checkbox_tabs, comment_thread_tabs, company_tabs, date_signed_tabs, date_tabs, decline_tabs, draw_tabs, email_address_tabs, email_tabs, envelope_id_tabs, first_name_tabs, formula_tabs, full_name_tabs, initial_here_tabs, last_name_tabs, list_tabs, notarize_tabs, note_tabs, number_tabs, poly_line_overlay_tabs, radio_group_tabs, signer_attachment_tabs, sign_here_tabs, smart_section_tabs, ssn_tabs, tab_groups, text_tabs, title_tabs, view_tabs, zip_tabs].hash
|
463
|
+
[approve_tabs, checkbox_tabs, comment_thread_tabs, company_tabs, date_signed_tabs, date_tabs, decline_tabs, draw_tabs, email_address_tabs, email_tabs, envelope_id_tabs, first_name_tabs, formula_tabs, full_name_tabs, initial_here_tabs, last_name_tabs, list_tabs, notarize_tabs, notary_certificate_tabs, notary_seal_tabs, note_tabs, number_tabs, poly_line_overlay_tabs, radio_group_tabs, signer_attachment_tabs, sign_here_tabs, smart_section_tabs, ssn_tabs, tab_groups, text_tabs, title_tabs, view_tabs, zip_tabs].hash
|
440
464
|
end
|
441
465
|
|
442
466
|
# Builds the object from hash
|
@@ -29,6 +29,11 @@ module DocuSign_eSign
|
|
29
29
|
|
30
30
|
attr_accessor :can_manage_admins_metadata
|
31
31
|
|
32
|
+
#
|
33
|
+
attr_accessor :can_manage_envelope_transfer
|
34
|
+
|
35
|
+
attr_accessor :can_manage_envelope_transfer_metadata
|
36
|
+
|
32
37
|
#
|
33
38
|
attr_accessor :can_manage_reporting
|
34
39
|
|
@@ -61,6 +66,8 @@ module DocuSign_eSign
|
|
61
66
|
:'can_manage_account_settings_metadata' => :'canManageAccountSettingsMetadata',
|
62
67
|
:'can_manage_admins' => :'canManageAdmins',
|
63
68
|
:'can_manage_admins_metadata' => :'canManageAdminsMetadata',
|
69
|
+
:'can_manage_envelope_transfer' => :'canManageEnvelopeTransfer',
|
70
|
+
:'can_manage_envelope_transfer_metadata' => :'canManageEnvelopeTransferMetadata',
|
64
71
|
:'can_manage_reporting' => :'canManageReporting',
|
65
72
|
:'can_manage_reporting_metadata' => :'canManageReportingMetadata',
|
66
73
|
:'can_manage_sharing' => :'canManageSharing',
|
@@ -82,6 +89,8 @@ module DocuSign_eSign
|
|
82
89
|
:'can_manage_account_settings_metadata' => :'SettingsMetadata',
|
83
90
|
:'can_manage_admins' => :'String',
|
84
91
|
:'can_manage_admins_metadata' => :'SettingsMetadata',
|
92
|
+
:'can_manage_envelope_transfer' => :'String',
|
93
|
+
:'can_manage_envelope_transfer_metadata' => :'SettingsMetadata',
|
85
94
|
:'can_manage_reporting' => :'String',
|
86
95
|
:'can_manage_reporting_metadata' => :'SettingsMetadata',
|
87
96
|
:'can_manage_sharing' => :'String',
|
@@ -126,6 +135,14 @@ module DocuSign_eSign
|
|
126
135
|
self.can_manage_admins_metadata = attributes[:'canManageAdminsMetadata']
|
127
136
|
end
|
128
137
|
|
138
|
+
if attributes.has_key?(:'canManageEnvelopeTransfer')
|
139
|
+
self.can_manage_envelope_transfer = attributes[:'canManageEnvelopeTransfer']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.has_key?(:'canManageEnvelopeTransferMetadata')
|
143
|
+
self.can_manage_envelope_transfer_metadata = attributes[:'canManageEnvelopeTransferMetadata']
|
144
|
+
end
|
145
|
+
|
129
146
|
if attributes.has_key?(:'canManageReporting')
|
130
147
|
self.can_manage_reporting = attributes[:'canManageReporting']
|
131
148
|
end
|
@@ -187,6 +204,8 @@ module DocuSign_eSign
|
|
187
204
|
can_manage_account_settings_metadata == o.can_manage_account_settings_metadata &&
|
188
205
|
can_manage_admins == o.can_manage_admins &&
|
189
206
|
can_manage_admins_metadata == o.can_manage_admins_metadata &&
|
207
|
+
can_manage_envelope_transfer == o.can_manage_envelope_transfer &&
|
208
|
+
can_manage_envelope_transfer_metadata == o.can_manage_envelope_transfer_metadata &&
|
190
209
|
can_manage_reporting == o.can_manage_reporting &&
|
191
210
|
can_manage_reporting_metadata == o.can_manage_reporting_metadata &&
|
192
211
|
can_manage_sharing == o.can_manage_sharing &&
|
@@ -207,7 +226,7 @@ module DocuSign_eSign
|
|
207
226
|
# Calculates hash code according to all attributes.
|
208
227
|
# @return [Fixnum] Hash code
|
209
228
|
def hash
|
210
|
-
[can_manage_account_security_settings, can_manage_account_security_settings_metadata, can_manage_account_settings, can_manage_account_settings_metadata, can_manage_admins, can_manage_admins_metadata, can_manage_reporting, can_manage_reporting_metadata, can_manage_sharing, can_manage_sharing_metadata, can_manage_signing_groups, can_manage_signing_groups_metadata, can_manage_users, can_manage_users_metadata, can_view_users].hash
|
229
|
+
[can_manage_account_security_settings, can_manage_account_security_settings_metadata, can_manage_account_settings, can_manage_account_settings_metadata, can_manage_admins, can_manage_admins_metadata, can_manage_envelope_transfer, can_manage_envelope_transfer_metadata, can_manage_reporting, can_manage_reporting_metadata, can_manage_sharing, can_manage_sharing_metadata, can_manage_signing_groups, can_manage_signing_groups_metadata, can_manage_users, can_manage_users_metadata, can_view_users].hash
|
211
230
|
end
|
212
231
|
|
213
232
|
# Builds the object from hash
|
@@ -146,6 +146,9 @@ module DocuSign_eSign
|
|
146
146
|
|
147
147
|
attr_accessor :name_metadata
|
148
148
|
|
149
|
+
#
|
150
|
+
attr_accessor :notary_id
|
151
|
+
|
149
152
|
# Specifies a note that is unique to this recipient. This note is sent to the recipient via the signing email. The note displays in the signing UI near the upper left corner of the document on the signing screen. Maximum Length: 1000 characters.
|
150
153
|
attr_accessor :note
|
151
154
|
|
@@ -314,6 +317,7 @@ module DocuSign_eSign
|
|
314
317
|
:'locked_recipient_sms_editable' => :'lockedRecipientSmsEditable',
|
315
318
|
:'name' => :'name',
|
316
319
|
:'name_metadata' => :'nameMetadata',
|
320
|
+
:'notary_id' => :'notaryId',
|
317
321
|
:'note' => :'note',
|
318
322
|
:'note_metadata' => :'noteMetadata',
|
319
323
|
:'offline_attributes' => :'offlineAttributes',
|
@@ -412,6 +416,7 @@ module DocuSign_eSign
|
|
412
416
|
:'locked_recipient_sms_editable' => :'String',
|
413
417
|
:'name' => :'String',
|
414
418
|
:'name_metadata' => :'PropertyMetadata',
|
419
|
+
:'notary_id' => :'String',
|
415
420
|
:'note' => :'String',
|
416
421
|
:'note_metadata' => :'PropertyMetadata',
|
417
422
|
:'offline_attributes' => :'OfflineAttributes',
|
@@ -670,6 +675,10 @@ module DocuSign_eSign
|
|
670
675
|
self.name_metadata = attributes[:'nameMetadata']
|
671
676
|
end
|
672
677
|
|
678
|
+
if attributes.has_key?(:'notaryId')
|
679
|
+
self.notary_id = attributes[:'notaryId']
|
680
|
+
end
|
681
|
+
|
673
682
|
if attributes.has_key?(:'note')
|
674
683
|
self.note = attributes[:'note']
|
675
684
|
end
|
@@ -920,6 +929,7 @@ module DocuSign_eSign
|
|
920
929
|
locked_recipient_sms_editable == o.locked_recipient_sms_editable &&
|
921
930
|
name == o.name &&
|
922
931
|
name_metadata == o.name_metadata &&
|
932
|
+
notary_id == o.notary_id &&
|
923
933
|
note == o.note &&
|
924
934
|
note_metadata == o.note_metadata &&
|
925
935
|
offline_attributes == o.offline_attributes &&
|
@@ -974,7 +984,7 @@ module DocuSign_eSign
|
|
974
984
|
# Calculates hash code according to all attributes.
|
975
985
|
# @return [Fixnum] Hash code
|
976
986
|
def hash
|
977
|
-
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, additional_notifications_metadata, 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, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, 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, witness_for, witness_for_guid].hash
|
987
|
+
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, additional_notifications_metadata, 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, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_id, 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, witness_for, witness_for_guid].hash
|
978
988
|
end
|
979
989
|
|
980
990
|
# Builds the object from hash
|
@@ -0,0 +1,207 @@
|
|
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
|
+
Swagger Codegen version: 2.4.13-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module DocuSign_eSign
|
16
|
+
class Workflow
|
17
|
+
#
|
18
|
+
attr_accessor :current_workflow_step_id
|
19
|
+
|
20
|
+
#
|
21
|
+
attr_accessor :workflow_status
|
22
|
+
|
23
|
+
#
|
24
|
+
attr_accessor :workflow_steps
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'current_workflow_step_id' => :'currentWorkflowStepId',
|
30
|
+
:'workflow_status' => :'workflowStatus',
|
31
|
+
:'workflow_steps' => :'workflowSteps'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.swagger_types
|
37
|
+
{
|
38
|
+
:'current_workflow_step_id' => :'String',
|
39
|
+
:'workflow_status' => :'String',
|
40
|
+
:'workflow_steps' => :'Array<WorkflowStep>'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Initializes the object
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
def initialize(attributes = {})
|
47
|
+
return unless attributes.is_a?(Hash)
|
48
|
+
|
49
|
+
# convert string to symbol for hash key
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
|
+
|
52
|
+
if attributes.has_key?(:'currentWorkflowStepId')
|
53
|
+
self.current_workflow_step_id = attributes[:'currentWorkflowStepId']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes.has_key?(:'workflowStatus')
|
57
|
+
self.workflow_status = attributes[:'workflowStatus']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'workflowSteps')
|
61
|
+
if (value = attributes[:'workflowSteps']).is_a?(Array)
|
62
|
+
self.workflow_steps = value
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
current_workflow_step_id == o.current_workflow_step_id &&
|
86
|
+
workflow_status == o.workflow_status &&
|
87
|
+
workflow_steps == o.workflow_steps
|
88
|
+
end
|
89
|
+
|
90
|
+
# @see the `==` method
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def eql?(o)
|
93
|
+
self == o
|
94
|
+
end
|
95
|
+
|
96
|
+
# Calculates hash code according to all attributes.
|
97
|
+
# @return [Fixnum] Hash code
|
98
|
+
def hash
|
99
|
+
[current_workflow_step_id, workflow_status, workflow_steps].hash
|
100
|
+
end
|
101
|
+
|
102
|
+
# Builds the object from hash
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
+
# @return [Object] Returns the model itself
|
105
|
+
def build_from_hash(attributes)
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
107
|
+
self.class.swagger_types.each_pair do |key, type|
|
108
|
+
if type =~ /\AArray<(.*)>/i
|
109
|
+
# check to ensure the input is an array given that the attribute
|
110
|
+
# is documented as an array but the input is not
|
111
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
113
|
+
end
|
114
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
117
|
+
end
|
118
|
+
|
119
|
+
self
|
120
|
+
end
|
121
|
+
|
122
|
+
# Deserializes the data based on type
|
123
|
+
# @param string type Data type
|
124
|
+
# @param string value Value to be deserialized
|
125
|
+
# @return [Object] Deserialized data
|
126
|
+
def _deserialize(type, value)
|
127
|
+
case type.to_sym
|
128
|
+
when :DateTime
|
129
|
+
DateTime.parse(value)
|
130
|
+
when :Date
|
131
|
+
Date.parse(value)
|
132
|
+
when :String
|
133
|
+
value.to_s
|
134
|
+
when :Integer
|
135
|
+
value.to_i
|
136
|
+
when :Float
|
137
|
+
value.to_f
|
138
|
+
when :BOOLEAN
|
139
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
140
|
+
true
|
141
|
+
else
|
142
|
+
false
|
143
|
+
end
|
144
|
+
when :Object
|
145
|
+
# generic object (usually a Hash), return directly
|
146
|
+
value
|
147
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
148
|
+
inner_type = Regexp.last_match[:inner_type]
|
149
|
+
value.map { |v| _deserialize(inner_type, v) }
|
150
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
151
|
+
k_type = Regexp.last_match[:k_type]
|
152
|
+
v_type = Regexp.last_match[:v_type]
|
153
|
+
{}.tap do |hash|
|
154
|
+
value.each do |k, v|
|
155
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
else # model
|
159
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
160
|
+
temp_model.build_from_hash(value)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the string representation of the object
|
165
|
+
# @return [String] String presentation of the object
|
166
|
+
def to_s
|
167
|
+
to_hash.to_s
|
168
|
+
end
|
169
|
+
|
170
|
+
# to_body is an alias to to_hash (backward compatibility)
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
def to_body
|
173
|
+
to_hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the object in the form of hash
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_hash
|
179
|
+
hash = {}
|
180
|
+
self.class.attribute_map.each_pair do |attr, param|
|
181
|
+
value = self.send(attr)
|
182
|
+
next if value.nil?
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Outputs non-array value in the form of hash
|
189
|
+
# For object, use to_hash. Otherwise, just return the value
|
190
|
+
# @param [Object] value Any valid value
|
191
|
+
# @return [Hash] Returns the value in the form of hash
|
192
|
+
def _to_hash(value)
|
193
|
+
if value.is_a?(Array)
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
195
|
+
elsif value.is_a?(Hash)
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
+
end
|
199
|
+
elsif value.respond_to? :to_hash
|
200
|
+
value.to_hash
|
201
|
+
else
|
202
|
+
value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
end
|
207
|
+
end
|