docusign_esign 2.1.0 → 2.2.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/docusign_esign-3.1.0.pre.rc1.gem +0 -0
  4. data/lib/docusign_esign.rb +450 -383
  5. data/{tests → lib/docusign_esign/api}/.DS_Store +0 -0
  6. data/lib/docusign_esign/api/accounts_api.rb +69 -8
  7. data/lib/docusign_esign/api/connect_api.rb +400 -0
  8. data/lib/docusign_esign/api/envelopes_api.rb +18 -6
  9. data/lib/docusign_esign/api/organizations_api.rb +232 -0
  10. data/lib/docusign_esign/api/tsps_api.rb +256 -0
  11. data/lib/docusign_esign/models/access_code_format.rb +273 -0
  12. data/lib/docusign_esign/models/account_notification.rb +206 -0
  13. data/lib/docusign_esign/models/account_ui_settings.rb +330 -0
  14. data/lib/docusign_esign/models/bcc_email_archive.rb +276 -0
  15. data/lib/docusign_esign/models/bcc_email_archive_history.rb +237 -0
  16. data/lib/docusign_esign/models/bcc_email_archive_history_list.rb +250 -0
  17. data/lib/docusign_esign/models/bcc_email_archive_list.rb +250 -0
  18. data/lib/docusign_esign/models/bulk_send_request.rb +188 -0
  19. data/lib/docusign_esign/models/bulk_send_response.rb +222 -0
  20. data/lib/docusign_esign/models/bulk_send_test_response.rb +212 -0
  21. data/lib/docusign_esign/models/bulk_sending_copy.rb +222 -0
  22. data/lib/docusign_esign/models/bulk_sending_copy_custom_field.rb +198 -0
  23. data/lib/docusign_esign/models/bulk_sending_copy_recipient.rb +382 -0
  24. data/lib/docusign_esign/models/bulk_sending_copy_tab.rb +198 -0
  25. data/lib/docusign_esign/models/bulk_sending_list.rb +210 -0
  26. data/lib/docusign_esign/models/bulk_sending_list_summaries.rb +190 -0
  27. data/lib/docusign_esign/models/bulk_sending_list_summary.rb +218 -0
  28. data/lib/docusign_esign/models/carbon_copy.rb +19 -1
  29. data/lib/docusign_esign/models/certified_delivery.rb +19 -1
  30. data/lib/docusign_esign/models/comment.rb +392 -0
  31. data/lib/docusign_esign/models/comment_history_result.rb +220 -0
  32. data/lib/docusign_esign/models/comment_publish.rb +244 -0
  33. data/lib/docusign_esign/models/comment_thread.rb +961 -0
  34. data/lib/docusign_esign/models/comments_publish.rb +190 -0
  35. data/lib/docusign_esign/models/connect_salesforce_field.rb +258 -0
  36. data/lib/docusign_esign/models/connect_salesforce_object.rb +272 -0
  37. data/lib/docusign_esign/models/connect_user_object.rb +230 -0
  38. data/lib/docusign_esign/models/direct_debit_processor_information.rb +298 -0
  39. data/lib/docusign_esign/models/display_appliance_document.rb +258 -0
  40. data/lib/docusign_esign/models/display_appliance_document_page.rb +278 -0
  41. data/lib/docusign_esign/models/display_appliance_envelope.rb +328 -0
  42. data/lib/docusign_esign/models/display_appliance_info.rb +235 -0
  43. data/lib/docusign_esign/models/display_appliance_page.rb +278 -0
  44. data/lib/docusign_esign/models/display_appliance_pdf.rb +267 -0
  45. data/lib/docusign_esign/models/display_appliance_recipient.rb +388 -0
  46. data/lib/docusign_esign/models/display_appliance_signer_attachment.rb +248 -0
  47. data/lib/docusign_esign/models/document_fields_information.rb +1 -1
  48. data/lib/docusign_esign/models/document_html_display_settings.rb +11 -1
  49. data/lib/docusign_esign/models/envelope_document.rb +11 -1
  50. data/lib/docusign_esign/models/envelope_metadata.rb +208 -0
  51. data/lib/docusign_esign/models/envelope_purge_configuration.rb +218 -0
  52. data/lib/docusign_esign/models/envelope_transfer_rule.rb +273 -0
  53. data/lib/docusign_esign/models/envelope_transfer_rule_information.rb +250 -0
  54. data/lib/docusign_esign/models/envelope_transfer_rule_request.rb +279 -0
  55. data/lib/docusign_esign/models/external_claim.rb +218 -0
  56. data/lib/docusign_esign/models/external_document_sources.rb +273 -0
  57. data/lib/docusign_esign/models/favorite_templates_content_item.rb +207 -0
  58. data/lib/docusign_esign/models/favorite_templates_info.rb +209 -0
  59. data/lib/docusign_esign/models/feature_available_metadata.rb +198 -0
  60. data/lib/docusign_esign/models/folder_shared_item.rb +289 -0
  61. data/lib/docusign_esign/models/form_data_item.rb +227 -0
  62. data/lib/docusign_esign/models/graphics_context.rb +208 -0
  63. data/lib/docusign_esign/models/id_check_configuration.rb +210 -0
  64. data/lib/docusign_esign/models/id_check_security_step.rb +188 -0
  65. data/lib/docusign_esign/models/locale_policy.rb +595 -0
  66. data/lib/docusign_esign/models/locale_policy_tab.rb +298 -0
  67. data/lib/docusign_esign/models/new_account_definition.rb +11 -1
  68. data/lib/docusign_esign/models/notification_default_settings.rb +196 -0
  69. data/lib/docusign_esign/models/notification_defaults.rb +196 -0
  70. data/lib/docusign_esign/models/offline_attributes.rb +238 -0
  71. data/lib/docusign_esign/models/page_size.rb +198 -0
  72. data/lib/docusign_esign/models/path_extended_element.rb +208 -0
  73. data/lib/docusign_esign/models/pay_pal_legacy_settings.rb +228 -0
  74. data/lib/docusign_esign/models/payment_gateway_account_setting.rb +218 -0
  75. data/lib/docusign_esign/models/payment_method_with_options.rb +200 -0
  76. data/lib/docusign_esign/models/poly_line.rb +218 -0
  77. data/lib/docusign_esign/models/poly_line_overlay.rb +885 -0
  78. data/lib/docusign_esign/models/recipient_email_notification.rb +1 -1
  79. data/lib/docusign_esign/models/recipient_preview_request.rb +278 -0
  80. data/lib/docusign_esign/models/recipient_proof_file.rb +188 -0
  81. data/lib/docusign_esign/models/signature_properties.rb +198 -0
  82. data/lib/docusign_esign/models/signer.rb +11 -2
  83. data/lib/docusign_esign/models/smart_section_display_settings.rb +11 -1
  84. data/lib/docusign_esign/models/tab_group.rb +911 -0
  85. data/lib/docusign_esign/models/usage_history.rb +1 -1
  86. data/lib/docusign_esign/models/user_information.rb +1 -1
  87. data/lib/docusign_esign/models/witness.rb +10 -1
  88. data/lib/docusign_esign/models/workspace_settings.rb +188 -0
  89. data/lib/docusign_esign/version.rb +1 -1
  90. data/tests/Gemfile.lock +1 -1
  91. data/tests/spec/unit_tests_using_jwt_spec.rb +6 -3
  92. metadata +74 -7
  93. data/Gemfile.lock +0 -73
  94. data/lib/docusign_esign/api/trust_service_providers_api.rb +0 -73
@@ -77,6 +77,8 @@ module DocuSign_eSign
77
77
 
78
78
  attr_accessor :id_check_information_input
79
79
 
80
+ attr_accessor :identity_verification
81
+
80
82
  # When set to **true** and the envelope recipient creates a DocuSign account after signing, the Manage Account Email Notification settings are used as the default settings for the recipient's account.
81
83
  attr_accessor :inherit_email_notification_configuration
82
84
 
@@ -91,6 +93,8 @@ module DocuSign_eSign
91
93
 
92
94
  attr_accessor :phone_authentication
93
95
 
96
+ attr_accessor :proof_file
97
+
94
98
  # Reserved:
95
99
  attr_accessor :recipient_attachments
96
100
 
@@ -174,11 +178,13 @@ module DocuSign_eSign
174
178
  :'full_name' => :'fullName',
175
179
  :'id_check_configuration_name' => :'idCheckConfigurationName',
176
180
  :'id_check_information_input' => :'idCheckInformationInput',
181
+ :'identity_verification' => :'identityVerification',
177
182
  :'inherit_email_notification_configuration' => :'inheritEmailNotificationConfiguration',
178
183
  :'last_name' => :'lastName',
179
184
  :'name' => :'name',
180
185
  :'note' => :'note',
181
186
  :'phone_authentication' => :'phoneAuthentication',
187
+ :'proof_file' => :'proofFile',
182
188
  :'recipient_attachments' => :'recipientAttachments',
183
189
  :'recipient_authentication_status' => :'recipientAuthenticationStatus',
184
190
  :'recipient_id' => :'recipientId',
@@ -227,11 +233,13 @@ module DocuSign_eSign
227
233
  :'full_name' => :'String',
228
234
  :'id_check_configuration_name' => :'String',
229
235
  :'id_check_information_input' => :'IdCheckInformationInput',
236
+ :'identity_verification' => :'RecipientIdentityVerification',
230
237
  :'inherit_email_notification_configuration' => :'String',
231
238
  :'last_name' => :'String',
232
239
  :'name' => :'String',
233
240
  :'note' => :'String',
234
241
  :'phone_authentication' => :'RecipientPhoneAuthentication',
242
+ :'proof_file' => :'RecipientProofFile',
235
243
  :'recipient_attachments' => :'Array<RecipientAttachment>',
236
244
  :'recipient_authentication_status' => :'AuthenticationStatus',
237
245
  :'recipient_id' => :'String',
@@ -357,6 +365,10 @@ module DocuSign_eSign
357
365
  self.id_check_information_input = attributes[:'idCheckInformationInput']
358
366
  end
359
367
 
368
+ if attributes.has_key?(:'identityVerification')
369
+ self.identity_verification = attributes[:'identityVerification']
370
+ end
371
+
360
372
  if attributes.has_key?(:'inheritEmailNotificationConfiguration')
361
373
  self.inherit_email_notification_configuration = attributes[:'inheritEmailNotificationConfiguration']
362
374
  end
@@ -377,6 +389,10 @@ module DocuSign_eSign
377
389
  self.phone_authentication = attributes[:'phoneAuthentication']
378
390
  end
379
391
 
392
+ if attributes.has_key?(:'proofFile')
393
+ self.proof_file = attributes[:'proofFile']
394
+ end
395
+
380
396
  if attributes.has_key?(:'recipientAttachments')
381
397
  if (value = attributes[:'recipientAttachments']).is_a?(Array)
382
398
  self.recipient_attachments = value
@@ -505,11 +521,13 @@ module DocuSign_eSign
505
521
  full_name == o.full_name &&
506
522
  id_check_configuration_name == o.id_check_configuration_name &&
507
523
  id_check_information_input == o.id_check_information_input &&
524
+ identity_verification == o.identity_verification &&
508
525
  inherit_email_notification_configuration == o.inherit_email_notification_configuration &&
509
526
  last_name == o.last_name &&
510
527
  name == o.name &&
511
528
  note == o.note &&
512
529
  phone_authentication == o.phone_authentication &&
530
+ proof_file == o.proof_file &&
513
531
  recipient_attachments == o.recipient_attachments &&
514
532
  recipient_authentication_status == o.recipient_authentication_status &&
515
533
  recipient_id == o.recipient_id &&
@@ -541,7 +559,7 @@ module DocuSign_eSign
541
559
  # Calculates hash code according to all attributes.
542
560
  # @return [Fixnum] Hash code
543
561
  def hash
544
- [access_code, add_access_code_to_email, agent_can_edit_email, agent_can_edit_name, client_user_id, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, document_visibility, email, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, excluded_documents, fax_number, first_name, full_name, id_check_configuration_name, id_check_information_input, inherit_email_notification_configuration, last_name, name, note, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_id, recipient_id_guid, require_id_lookup, role_name, routing_order, saml_authentication, sent_date_time, signed_date_time, signing_group_id, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, template_locked, template_required, total_tab_count, user_id].hash
562
+ [access_code, add_access_code_to_email, agent_can_edit_email, agent_can_edit_name, client_user_id, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, document_visibility, email, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, excluded_documents, fax_number, first_name, full_name, id_check_configuration_name, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, name, note, phone_authentication, proof_file, recipient_attachments, recipient_authentication_status, recipient_id, recipient_id_guid, require_id_lookup, role_name, routing_order, saml_authentication, sent_date_time, signed_date_time, signing_group_id, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, template_locked, template_required, total_tab_count, user_id].hash
545
563
  end
546
564
 
547
565
  # Builds the object from hash
@@ -77,6 +77,8 @@ module DocuSign_eSign
77
77
 
78
78
  attr_accessor :id_check_information_input
79
79
 
80
+ attr_accessor :identity_verification
81
+
80
82
  # When set to **true** and the envelope recipient creates a DocuSign account after signing, the Manage Account Email Notification settings are used as the default settings for the recipient's account.
81
83
  attr_accessor :inherit_email_notification_configuration
82
84
 
@@ -91,6 +93,8 @@ module DocuSign_eSign
91
93
 
92
94
  attr_accessor :phone_authentication
93
95
 
96
+ attr_accessor :proof_file
97
+
94
98
  # Reserved:
95
99
  attr_accessor :recipient_attachments
96
100
 
@@ -174,11 +178,13 @@ module DocuSign_eSign
174
178
  :'full_name' => :'fullName',
175
179
  :'id_check_configuration_name' => :'idCheckConfigurationName',
176
180
  :'id_check_information_input' => :'idCheckInformationInput',
181
+ :'identity_verification' => :'identityVerification',
177
182
  :'inherit_email_notification_configuration' => :'inheritEmailNotificationConfiguration',
178
183
  :'last_name' => :'lastName',
179
184
  :'name' => :'name',
180
185
  :'note' => :'note',
181
186
  :'phone_authentication' => :'phoneAuthentication',
187
+ :'proof_file' => :'proofFile',
182
188
  :'recipient_attachments' => :'recipientAttachments',
183
189
  :'recipient_authentication_status' => :'recipientAuthenticationStatus',
184
190
  :'recipient_id' => :'recipientId',
@@ -227,11 +233,13 @@ module DocuSign_eSign
227
233
  :'full_name' => :'String',
228
234
  :'id_check_configuration_name' => :'String',
229
235
  :'id_check_information_input' => :'IdCheckInformationInput',
236
+ :'identity_verification' => :'RecipientIdentityVerification',
230
237
  :'inherit_email_notification_configuration' => :'String',
231
238
  :'last_name' => :'String',
232
239
  :'name' => :'String',
233
240
  :'note' => :'String',
234
241
  :'phone_authentication' => :'RecipientPhoneAuthentication',
242
+ :'proof_file' => :'RecipientProofFile',
235
243
  :'recipient_attachments' => :'Array<RecipientAttachment>',
236
244
  :'recipient_authentication_status' => :'AuthenticationStatus',
237
245
  :'recipient_id' => :'String',
@@ -357,6 +365,10 @@ module DocuSign_eSign
357
365
  self.id_check_information_input = attributes[:'idCheckInformationInput']
358
366
  end
359
367
 
368
+ if attributes.has_key?(:'identityVerification')
369
+ self.identity_verification = attributes[:'identityVerification']
370
+ end
371
+
360
372
  if attributes.has_key?(:'inheritEmailNotificationConfiguration')
361
373
  self.inherit_email_notification_configuration = attributes[:'inheritEmailNotificationConfiguration']
362
374
  end
@@ -377,6 +389,10 @@ module DocuSign_eSign
377
389
  self.phone_authentication = attributes[:'phoneAuthentication']
378
390
  end
379
391
 
392
+ if attributes.has_key?(:'proofFile')
393
+ self.proof_file = attributes[:'proofFile']
394
+ end
395
+
380
396
  if attributes.has_key?(:'recipientAttachments')
381
397
  if (value = attributes[:'recipientAttachments']).is_a?(Array)
382
398
  self.recipient_attachments = value
@@ -505,11 +521,13 @@ module DocuSign_eSign
505
521
  full_name == o.full_name &&
506
522
  id_check_configuration_name == o.id_check_configuration_name &&
507
523
  id_check_information_input == o.id_check_information_input &&
524
+ identity_verification == o.identity_verification &&
508
525
  inherit_email_notification_configuration == o.inherit_email_notification_configuration &&
509
526
  last_name == o.last_name &&
510
527
  name == o.name &&
511
528
  note == o.note &&
512
529
  phone_authentication == o.phone_authentication &&
530
+ proof_file == o.proof_file &&
513
531
  recipient_attachments == o.recipient_attachments &&
514
532
  recipient_authentication_status == o.recipient_authentication_status &&
515
533
  recipient_id == o.recipient_id &&
@@ -541,7 +559,7 @@ module DocuSign_eSign
541
559
  # Calculates hash code according to all attributes.
542
560
  # @return [Fixnum] Hash code
543
561
  def hash
544
- [access_code, add_access_code_to_email, agent_can_edit_email, agent_can_edit_name, client_user_id, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, document_visibility, email, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, excluded_documents, fax_number, first_name, full_name, id_check_configuration_name, id_check_information_input, inherit_email_notification_configuration, last_name, name, note, phone_authentication, recipient_attachments, recipient_authentication_status, recipient_id, recipient_id_guid, require_id_lookup, role_name, routing_order, saml_authentication, sent_date_time, signed_date_time, signing_group_id, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, template_locked, template_required, total_tab_count, user_id].hash
562
+ [access_code, add_access_code_to_email, agent_can_edit_email, agent_can_edit_name, client_user_id, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, document_visibility, email, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, excluded_documents, fax_number, first_name, full_name, id_check_configuration_name, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, name, note, phone_authentication, proof_file, recipient_attachments, recipient_authentication_status, recipient_id, recipient_id_guid, require_id_lookup, role_name, routing_order, saml_authentication, sent_date_time, signed_date_time, signing_group_id, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, template_locked, template_required, total_tab_count, user_id].hash
545
563
  end
546
564
 
547
565
  # Builds the object from hash
@@ -0,0 +1,392 @@
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
+
16
+ class Comment
17
+ # The envelope ID of the envelope status that failed to post.
18
+ attr_accessor :envelope_id
19
+
20
+ #
21
+ attr_accessor :hmac
22
+
23
+ #
24
+ attr_accessor :id
25
+
26
+ #
27
+ attr_accessor :mentions
28
+
29
+ #
30
+ attr_accessor :read
31
+
32
+ #
33
+ attr_accessor :sent_by_email
34
+
35
+ #
36
+ attr_accessor :sent_by_full_name
37
+
38
+ #
39
+ attr_accessor :sent_by_image_id
40
+
41
+ #
42
+ attr_accessor :sent_by_initials
43
+
44
+ #
45
+ attr_accessor :sent_by_recipient_id
46
+
47
+ #
48
+ attr_accessor :sent_by_user_id
49
+
50
+ # When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab ( instead of adopting a signature/initial style or only drawing a signature/initial once).
51
+ attr_accessor :signing_group_id
52
+
53
+ # The display name for the signing group. Maximum Length: 100 characters.
54
+ attr_accessor :signing_group_name
55
+
56
+ #
57
+ attr_accessor :subject
58
+
59
+ # The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
60
+ attr_accessor :tab_id
61
+
62
+ #
63
+ attr_accessor :text
64
+
65
+ #
66
+ attr_accessor :thread_id
67
+
68
+ #
69
+ attr_accessor :thread_originator_id
70
+
71
+ #
72
+ attr_accessor :timestamp
73
+
74
+ #
75
+ attr_accessor :time_stamp_formatted
76
+
77
+ #
78
+ attr_accessor :visible_to
79
+
80
+
81
+ # Attribute mapping from ruby-style variable name to JSON key.
82
+ def self.attribute_map
83
+ {
84
+ :'envelope_id' => :'envelopeId',
85
+ :'hmac' => :'hmac',
86
+ :'id' => :'id',
87
+ :'mentions' => :'mentions',
88
+ :'read' => :'read',
89
+ :'sent_by_email' => :'sentByEmail',
90
+ :'sent_by_full_name' => :'sentByFullName',
91
+ :'sent_by_image_id' => :'sentByImageId',
92
+ :'sent_by_initials' => :'sentByInitials',
93
+ :'sent_by_recipient_id' => :'sentByRecipientId',
94
+ :'sent_by_user_id' => :'sentByUserId',
95
+ :'signing_group_id' => :'signingGroupId',
96
+ :'signing_group_name' => :'signingGroupName',
97
+ :'subject' => :'subject',
98
+ :'tab_id' => :'tabId',
99
+ :'text' => :'text',
100
+ :'thread_id' => :'threadId',
101
+ :'thread_originator_id' => :'threadOriginatorId',
102
+ :'timestamp' => :'timestamp',
103
+ :'time_stamp_formatted' => :'timeStampFormatted',
104
+ :'visible_to' => :'visibleTo'
105
+ }
106
+ end
107
+
108
+ # Attribute type mapping.
109
+ def self.swagger_types
110
+ {
111
+ :'envelope_id' => :'String',
112
+ :'hmac' => :'String',
113
+ :'id' => :'String',
114
+ :'mentions' => :'Array<String>',
115
+ :'read' => :'BOOLEAN',
116
+ :'sent_by_email' => :'String',
117
+ :'sent_by_full_name' => :'String',
118
+ :'sent_by_image_id' => :'String',
119
+ :'sent_by_initials' => :'String',
120
+ :'sent_by_recipient_id' => :'String',
121
+ :'sent_by_user_id' => :'String',
122
+ :'signing_group_id' => :'String',
123
+ :'signing_group_name' => :'String',
124
+ :'subject' => :'String',
125
+ :'tab_id' => :'String',
126
+ :'text' => :'String',
127
+ :'thread_id' => :'String',
128
+ :'thread_originator_id' => :'String',
129
+ :'timestamp' => :'String',
130
+ :'time_stamp_formatted' => :'String',
131
+ :'visible_to' => :'Array<String>'
132
+ }
133
+ end
134
+
135
+ # Initializes the object
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ def initialize(attributes = {})
138
+ return unless attributes.is_a?(Hash)
139
+
140
+ # convert string to symbol for hash key
141
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
142
+
143
+ if attributes.has_key?(:'envelopeId')
144
+ self.envelope_id = attributes[:'envelopeId']
145
+ end
146
+
147
+ if attributes.has_key?(:'hmac')
148
+ self.hmac = attributes[:'hmac']
149
+ end
150
+
151
+ if attributes.has_key?(:'id')
152
+ self.id = attributes[:'id']
153
+ end
154
+
155
+ if attributes.has_key?(:'mentions')
156
+ if (value = attributes[:'mentions']).is_a?(Array)
157
+ self.mentions = value
158
+ end
159
+ end
160
+
161
+ if attributes.has_key?(:'read')
162
+ self.read = attributes[:'read']
163
+ end
164
+
165
+ if attributes.has_key?(:'sentByEmail')
166
+ self.sent_by_email = attributes[:'sentByEmail']
167
+ end
168
+
169
+ if attributes.has_key?(:'sentByFullName')
170
+ self.sent_by_full_name = attributes[:'sentByFullName']
171
+ end
172
+
173
+ if attributes.has_key?(:'sentByImageId')
174
+ self.sent_by_image_id = attributes[:'sentByImageId']
175
+ end
176
+
177
+ if attributes.has_key?(:'sentByInitials')
178
+ self.sent_by_initials = attributes[:'sentByInitials']
179
+ end
180
+
181
+ if attributes.has_key?(:'sentByRecipientId')
182
+ self.sent_by_recipient_id = attributes[:'sentByRecipientId']
183
+ end
184
+
185
+ if attributes.has_key?(:'sentByUserId')
186
+ self.sent_by_user_id = attributes[:'sentByUserId']
187
+ end
188
+
189
+ if attributes.has_key?(:'signingGroupId')
190
+ self.signing_group_id = attributes[:'signingGroupId']
191
+ end
192
+
193
+ if attributes.has_key?(:'signingGroupName')
194
+ self.signing_group_name = attributes[:'signingGroupName']
195
+ end
196
+
197
+ if attributes.has_key?(:'subject')
198
+ self.subject = attributes[:'subject']
199
+ end
200
+
201
+ if attributes.has_key?(:'tabId')
202
+ self.tab_id = attributes[:'tabId']
203
+ end
204
+
205
+ if attributes.has_key?(:'text')
206
+ self.text = attributes[:'text']
207
+ end
208
+
209
+ if attributes.has_key?(:'threadId')
210
+ self.thread_id = attributes[:'threadId']
211
+ end
212
+
213
+ if attributes.has_key?(:'threadOriginatorId')
214
+ self.thread_originator_id = attributes[:'threadOriginatorId']
215
+ end
216
+
217
+ if attributes.has_key?(:'timestamp')
218
+ self.timestamp = attributes[:'timestamp']
219
+ end
220
+
221
+ if attributes.has_key?(:'timeStampFormatted')
222
+ self.time_stamp_formatted = attributes[:'timeStampFormatted']
223
+ end
224
+
225
+ if attributes.has_key?(:'visibleTo')
226
+ if (value = attributes[:'visibleTo']).is_a?(Array)
227
+ self.visible_to = value
228
+ end
229
+ end
230
+
231
+ end
232
+
233
+ # Show invalid properties with the reasons. Usually used together with valid?
234
+ # @return Array for valid properies with the reasons
235
+ def list_invalid_properties
236
+ invalid_properties = Array.new
237
+ return invalid_properties
238
+ end
239
+
240
+ # Check to see if the all the properties in the model are valid
241
+ # @return true if the model is valid
242
+ def valid?
243
+ return true
244
+ end
245
+
246
+ # Checks equality by comparing each attribute.
247
+ # @param [Object] Object to be compared
248
+ def ==(o)
249
+ return true if self.equal?(o)
250
+ self.class == o.class &&
251
+ envelope_id == o.envelope_id &&
252
+ hmac == o.hmac &&
253
+ id == o.id &&
254
+ mentions == o.mentions &&
255
+ read == o.read &&
256
+ sent_by_email == o.sent_by_email &&
257
+ sent_by_full_name == o.sent_by_full_name &&
258
+ sent_by_image_id == o.sent_by_image_id &&
259
+ sent_by_initials == o.sent_by_initials &&
260
+ sent_by_recipient_id == o.sent_by_recipient_id &&
261
+ sent_by_user_id == o.sent_by_user_id &&
262
+ signing_group_id == o.signing_group_id &&
263
+ signing_group_name == o.signing_group_name &&
264
+ subject == o.subject &&
265
+ tab_id == o.tab_id &&
266
+ text == o.text &&
267
+ thread_id == o.thread_id &&
268
+ thread_originator_id == o.thread_originator_id &&
269
+ timestamp == o.timestamp &&
270
+ time_stamp_formatted == o.time_stamp_formatted &&
271
+ visible_to == o.visible_to
272
+ end
273
+
274
+ # @see the `==` method
275
+ # @param [Object] Object to be compared
276
+ def eql?(o)
277
+ self == o
278
+ end
279
+
280
+ # Calculates hash code according to all attributes.
281
+ # @return [Fixnum] Hash code
282
+ def hash
283
+ [envelope_id, hmac, id, mentions, read, sent_by_email, sent_by_full_name, sent_by_image_id, sent_by_initials, sent_by_recipient_id, sent_by_user_id, signing_group_id, signing_group_name, subject, tab_id, text, thread_id, thread_originator_id, timestamp, time_stamp_formatted, visible_to].hash
284
+ end
285
+
286
+ # Builds the object from hash
287
+ # @param [Hash] attributes Model attributes in the form of hash
288
+ # @return [Object] Returns the model itself
289
+ def build_from_hash(attributes)
290
+ return nil unless attributes.is_a?(Hash)
291
+ self.class.swagger_types.each_pair do |key, type|
292
+ if type =~ /\AArray<(.*)>/i
293
+ # check to ensure the input is an array given that the the attribute
294
+ # is documented as an array but the input is not
295
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
296
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
297
+ end
298
+ elsif !attributes[self.class.attribute_map[key]].nil?
299
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
300
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
301
+ end
302
+
303
+ self
304
+ end
305
+
306
+ # Deserializes the data based on type
307
+ # @param string type Data type
308
+ # @param string value Value to be deserialized
309
+ # @return [Object] Deserialized data
310
+ def _deserialize(type, value)
311
+ case type.to_sym
312
+ when :DateTime
313
+ DateTime.parse(value)
314
+ when :Date
315
+ Date.parse(value)
316
+ when :String
317
+ value.to_s
318
+ when :Integer
319
+ value.to_i
320
+ when :Float
321
+ value.to_f
322
+ when :BOOLEAN
323
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
324
+ true
325
+ else
326
+ false
327
+ end
328
+ when :Object
329
+ # generic object (usually a Hash), return directly
330
+ value
331
+ when /\AArray<(?<inner_type>.+)>\z/
332
+ inner_type = Regexp.last_match[:inner_type]
333
+ value.map { |v| _deserialize(inner_type, v) }
334
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
335
+ k_type = Regexp.last_match[:k_type]
336
+ v_type = Regexp.last_match[:v_type]
337
+ {}.tap do |hash|
338
+ value.each do |k, v|
339
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
340
+ end
341
+ end
342
+ else # model
343
+ temp_model = DocuSign_eSign.const_get(type).new
344
+ temp_model.build_from_hash(value)
345
+ end
346
+ end
347
+
348
+ # Returns the string representation of the object
349
+ # @return [String] String presentation of the object
350
+ def to_s
351
+ to_hash.to_s
352
+ end
353
+
354
+ # to_body is an alias to to_hash (backward compatibility)
355
+ # @return [Hash] Returns the object in the form of hash
356
+ def to_body
357
+ to_hash
358
+ end
359
+
360
+ # Returns the object in the form of hash
361
+ # @return [Hash] Returns the object in the form of hash
362
+ def to_hash
363
+ hash = {}
364
+ self.class.attribute_map.each_pair do |attr, param|
365
+ value = self.send(attr)
366
+ next if value.nil?
367
+ hash[param] = _to_hash(value)
368
+ end
369
+ hash
370
+ end
371
+
372
+ # Outputs non-array value in the form of hash
373
+ # For object, use to_hash. Otherwise, just return the value
374
+ # @param [Object] value Any valid value
375
+ # @return [Hash] Returns the value in the form of hash
376
+ def _to_hash(value)
377
+ if value.is_a?(Array)
378
+ value.compact.map{ |v| _to_hash(v) }
379
+ elsif value.is_a?(Hash)
380
+ {}.tap do |hash|
381
+ value.each { |k, v| hash[k] = _to_hash(v) }
382
+ end
383
+ elsif value.respond_to? :to_hash
384
+ value.to_hash
385
+ else
386
+ value
387
+ end
388
+ end
389
+
390
+ end
391
+
392
+ end