docusign_esign 3.16.0 → 3.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/docusign_esign/api/accounts_api.rb +15 -66
  4. data/lib/docusign_esign/api/envelopes_api.rb +6 -6
  5. data/lib/docusign_esign/client/api_client.rb +1 -1
  6. data/lib/docusign_esign/models/account_role_settings.rb +20 -1
  7. data/lib/docusign_esign/models/account_settings_information.rb +82 -3
  8. data/lib/docusign_esign/models/account_ui_settings.rb +13 -13
  9. data/lib/docusign_esign/models/approve.rb +20 -1
  10. data/lib/docusign_esign/models/billing_invoices_summary.rb +21 -1
  11. data/lib/docusign_esign/models/billing_plan_information.rb +21 -1
  12. data/lib/docusign_esign/models/bulk_send_batch_status.rb +11 -1
  13. data/lib/docusign_esign/models/bulk_send_envelopes_info.rb +101 -1
  14. data/lib/docusign_esign/models/bulk_send_error_status.rb +11 -1
  15. data/lib/docusign_esign/models/checkbox.rb +20 -1
  16. data/lib/docusign_esign/models/comment_thread.rb +20 -1
  17. data/lib/docusign_esign/models/commission_county.rb +20 -1
  18. data/lib/docusign_esign/models/commission_expiration.rb +20 -1
  19. data/lib/docusign_esign/models/commission_number.rb +20 -1
  20. data/lib/docusign_esign/models/commission_state.rb +20 -1
  21. data/lib/docusign_esign/models/company.rb +20 -1
  22. data/lib/docusign_esign/models/connect_custom_configuration.rb +23 -1
  23. data/lib/docusign_esign/models/currency.rb +20 -1
  24. data/lib/docusign_esign/models/date.rb +20 -1
  25. data/lib/docusign_esign/models/date_signed.rb +20 -1
  26. data/lib/docusign_esign/models/decline.rb +20 -1
  27. data/lib/docusign_esign/models/draw.rb +20 -1
  28. data/lib/docusign_esign/models/email.rb +20 -1
  29. data/lib/docusign_esign/models/email_address.rb +20 -1
  30. data/lib/docusign_esign/models/envelope_id.rb +20 -1
  31. data/lib/docusign_esign/models/first_name.rb +20 -1
  32. data/lib/docusign_esign/models/formula_tab.rb +20 -1
  33. data/lib/docusign_esign/models/full_name.rb +20 -1
  34. data/lib/docusign_esign/models/id_evidence_resource_token.rb +194 -0
  35. data/lib/docusign_esign/models/id_evidence_view_link.rb +184 -0
  36. data/lib/docusign_esign/models/initial_here.rb +20 -1
  37. data/lib/docusign_esign/models/last_name.rb +20 -1
  38. data/lib/docusign_esign/models/list.rb +20 -1
  39. data/lib/docusign_esign/models/new_account_definition.rb +21 -1
  40. data/lib/docusign_esign/models/notarize.rb +20 -1
  41. data/lib/docusign_esign/models/notary_seal.rb +20 -1
  42. data/lib/docusign_esign/models/note.rb +20 -1
  43. data/lib/docusign_esign/models/number.rb +20 -1
  44. data/lib/docusign_esign/models/participant.rb +896 -0
  45. data/lib/docusign_esign/models/phone_number.rb +20 -1
  46. data/lib/docusign_esign/models/poly_line_overlay.rb +20 -1
  47. data/lib/docusign_esign/models/radio.rb +20 -1
  48. data/lib/docusign_esign/models/recipient_token_client_ur_ls.rb +102 -2
  49. data/lib/docusign_esign/models/recipients.rb +13 -1
  50. data/lib/docusign_esign/models/sender_company.rb +20 -1
  51. data/lib/docusign_esign/models/sender_name.rb +20 -1
  52. data/lib/docusign_esign/models/sign_here.rb +20 -1
  53. data/lib/docusign_esign/models/signer_attachment.rb +20 -1
  54. data/lib/docusign_esign/models/smart_section.rb +20 -1
  55. data/lib/docusign_esign/models/ssn.rb +20 -1
  56. data/lib/docusign_esign/models/tab_group.rb +20 -1
  57. data/lib/docusign_esign/models/template_recipients.rb +13 -1
  58. data/lib/docusign_esign/models/text.rb +20 -1
  59. data/lib/docusign_esign/models/title.rb +20 -1
  60. data/lib/docusign_esign/models/user_settings_information.rb +20 -1
  61. data/lib/docusign_esign/models/view.rb +20 -1
  62. data/lib/docusign_esign/models/zip.rb +20 -1
  63. data/lib/docusign_esign/version.rb +1 -1
  64. data/lib/docusign_esign.rb +3 -3
  65. data/tests/spec/unit_tests_using_jwt_spec.rb +4 -4
  66. metadata +5 -2
@@ -0,0 +1,896 @@
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 Participant
16
+ # If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required.
17
+ attr_accessor :access_code
18
+
19
+ attr_accessor :access_code_metadata
20
+
21
+ # This Optional attribute indicates that the access code will be added to the email sent to the recipient; this nullifies the Security measure of Access Code on the recipient.
22
+ attr_accessor :add_access_code_to_email
23
+
24
+ #
25
+ attr_accessor :additional_notifications
26
+
27
+ #
28
+ attr_accessor :allow_system_override_for_locked_recipient
29
+
30
+ #
31
+ attr_accessor :auto_responded_reason
32
+
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.
34
+ attr_accessor :client_user_id
35
+
36
+ #
37
+ attr_accessor :completed_count
38
+
39
+ # An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. Each customField string can be a maximum of 100 characters.
40
+ attr_accessor :custom_fields
41
+
42
+ # The date and time the recipient declined the document.
43
+ attr_accessor :declined_date_time
44
+
45
+ # The reason the recipient declined the document.
46
+ attr_accessor :declined_reason
47
+
48
+ # Reserved: For DocuSign use only.
49
+ attr_accessor :delivered_date_time
50
+
51
+ # Reserved: For DocuSign use only.
52
+ attr_accessor :delivery_method
53
+
54
+ attr_accessor :delivery_method_metadata
55
+
56
+ #
57
+ attr_accessor :designator_id
58
+
59
+ #
60
+ attr_accessor :designator_id_guid
61
+
62
+ #
63
+ attr_accessor :document_visibility
64
+
65
+ #
66
+ attr_accessor :email
67
+
68
+ attr_accessor :email_metadata
69
+
70
+ attr_accessor :email_notification
71
+
72
+ #
73
+ attr_accessor :email_recipient_post_signing_url
74
+
75
+ # Specifies a sender provided valid URL string for redirecting an embedded recipient. When using this option, the embedded recipient still receives an email from DocuSign, just as a remote recipient would. When the document link in the email is clicked the recipient is redirected, through DocuSign, to the supplied URL to complete their actions. When routing to the URL, the sender's system (the server responding to the URL) must request a recipient token to launch a signing session. If set to `SIGN_AT_DOCUSIGN`, the recipient is directed to an embedded signing or viewing process directly at DocuSign. The signing or viewing action is initiated by the DocuSign system and the transaction activity and Certificate of Completion records will reflect this. In all other ways the process is identical to an embedded signing or viewing operation that is launched by any partner. It is important to remember that in a typical embedded workflow the authentication of an embedded recipient is the responsibility of the sending application, DocuSign expects that senders will follow their own process for establishing the recipient's identity. In this workflow the recipient goes through the sending application before the embedded signing or viewing process in initiated. However, when the sending application sets `EmbeddedRecipientStartURL=SIGN_AT_DOCUSIGN`, the recipient goes directly to the embedded signing or viewing process bypassing the sending application and any authentication steps the sending application would use. In this case, DocuSign recommends that you use one of the normal DocuSign authentication features (Access Code, Phone Authentication, SMS Authentication, etc.) to verify the identity of the recipient. If the `clientUserId` property is NOT set, and the `embeddedRecipientStartURL` is set, DocuSign will ignore the redirect URL and launch the standard signing process for the email recipient. Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields. The `customFields` property must be set fort the recipient or envelope. The merge fields are enclosed in double brackets. *Example*: `http://senderHost/[[mergeField1]]/ beginSigningSession? [[mergeField2]]&[[mergeField3]]`
76
+ attr_accessor :embedded_recipient_start_url
77
+
78
+ attr_accessor :error_details
79
+
80
+ # Reserved:
81
+ attr_accessor :fax_number
82
+
83
+ attr_accessor :fax_number_metadata
84
+
85
+ # The user's first name. Maximum Length: 50 characters.
86
+ attr_accessor :first_name
87
+
88
+ attr_accessor :first_name_metadata
89
+
90
+ #
91
+ attr_accessor :full_name
92
+
93
+ attr_accessor :full_name_metadata
94
+
95
+ # Specifies authentication check by name. The names used here must be the same as the authentication type names used by the account (these name can also be found in the web console sending interface in the Identify list for a recipient,) This overrides any default authentication setting. *Example*: Your account has ID Check and SMS Authentication available and in the web console Identify list these appear as 'ID Check $' and 'SMS Auth $'. To use ID check in an envelope, the idCheckConfigurationName should be 'ID Check '. If you wanted to use SMS, it would be 'SMS Auth $' and you would need to add you would need to add phone number information to the `smsAuthentication` node.
96
+ attr_accessor :id_check_configuration_name
97
+
98
+ attr_accessor :id_check_configuration_name_metadata
99
+
100
+ attr_accessor :id_check_information_input
101
+
102
+ attr_accessor :identity_verification
103
+
104
+ # 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.
105
+ attr_accessor :inherit_email_notification_configuration
106
+
107
+ #
108
+ attr_accessor :last_name
109
+
110
+ attr_accessor :last_name_metadata
111
+
112
+ #
113
+ attr_accessor :locked_recipient_phone_auth_editable
114
+
115
+ #
116
+ attr_accessor :locked_recipient_sms_editable
117
+
118
+ #
119
+ attr_accessor :name
120
+
121
+ attr_accessor :name_metadata
122
+
123
+ # 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.
124
+ attr_accessor :note
125
+
126
+ attr_accessor :note_metadata
127
+
128
+ #
129
+ attr_accessor :participate_for
130
+
131
+ #
132
+ attr_accessor :participate_for_guid
133
+
134
+ attr_accessor :phone_authentication
135
+
136
+ attr_accessor :phone_number
137
+
138
+ # Reserved:
139
+ attr_accessor :recipient_attachments
140
+
141
+ attr_accessor :recipient_authentication_status
142
+
143
+ #
144
+ attr_accessor :recipient_feature_metadata
145
+
146
+ # Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document.
147
+ attr_accessor :recipient_id
148
+
149
+ #
150
+ attr_accessor :recipient_id_guid
151
+
152
+ #
153
+ attr_accessor :recipient_type
154
+
155
+ attr_accessor :recipient_type_metadata
156
+
157
+ # When set to **true**, the recipient is required to use the specified ID check method (including Phone and SMS authentication) to validate their identity.
158
+ attr_accessor :require_id_lookup
159
+
160
+ attr_accessor :require_id_lookup_metadata
161
+
162
+ # Optional element. Specifies the role name associated with the recipient.<br/><br/>This is required when working with template recipients.
163
+ attr_accessor :role_name
164
+
165
+ # Specifies the routing order of the recipient in the envelope.
166
+ attr_accessor :routing_order
167
+
168
+ attr_accessor :routing_order_metadata
169
+
170
+ # The date and time the envelope was sent.
171
+ attr_accessor :sent_date_time
172
+
173
+ # Reserved: For DocuSign use only.
174
+ attr_accessor :signed_date_time
175
+
176
+ # 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).
177
+ attr_accessor :signing_group_id
178
+
179
+ attr_accessor :signing_group_id_metadata
180
+
181
+ # The display name for the signing group. Maximum Length: 100 characters.
182
+ attr_accessor :signing_group_name
183
+
184
+ # A complex type that contains information about users in the signing group.
185
+ attr_accessor :signing_group_users
186
+
187
+ attr_accessor :sms_authentication
188
+
189
+ # Lists the social ID type that can be used for recipient authentication.
190
+ attr_accessor :social_authentications
191
+
192
+ # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
193
+ attr_accessor :status
194
+
195
+ #
196
+ attr_accessor :status_code
197
+
198
+ #
199
+ attr_accessor :suppress_emails
200
+
201
+ # When set to **true**, the sender cannot change any attributes of the recipient. Used only when working with template recipients.
202
+ attr_accessor :template_locked
203
+
204
+ # When set to **true**, the sender may not remove the recipient. Used only when working with template recipients.
205
+ attr_accessor :template_required
206
+
207
+ #
208
+ attr_accessor :total_tab_count
209
+
210
+ #
211
+ attr_accessor :user_id
212
+
213
+ # Attribute mapping from ruby-style variable name to JSON key.
214
+ def self.attribute_map
215
+ {
216
+ :'access_code' => :'accessCode',
217
+ :'access_code_metadata' => :'accessCodeMetadata',
218
+ :'add_access_code_to_email' => :'addAccessCodeToEmail',
219
+ :'additional_notifications' => :'additionalNotifications',
220
+ :'allow_system_override_for_locked_recipient' => :'allowSystemOverrideForLockedRecipient',
221
+ :'auto_responded_reason' => :'autoRespondedReason',
222
+ :'client_user_id' => :'clientUserId',
223
+ :'completed_count' => :'completedCount',
224
+ :'custom_fields' => :'customFields',
225
+ :'declined_date_time' => :'declinedDateTime',
226
+ :'declined_reason' => :'declinedReason',
227
+ :'delivered_date_time' => :'deliveredDateTime',
228
+ :'delivery_method' => :'deliveryMethod',
229
+ :'delivery_method_metadata' => :'deliveryMethodMetadata',
230
+ :'designator_id' => :'designatorId',
231
+ :'designator_id_guid' => :'designatorIdGuid',
232
+ :'document_visibility' => :'documentVisibility',
233
+ :'email' => :'email',
234
+ :'email_metadata' => :'emailMetadata',
235
+ :'email_notification' => :'emailNotification',
236
+ :'email_recipient_post_signing_url' => :'emailRecipientPostSigningURL',
237
+ :'embedded_recipient_start_url' => :'embeddedRecipientStartURL',
238
+ :'error_details' => :'errorDetails',
239
+ :'fax_number' => :'faxNumber',
240
+ :'fax_number_metadata' => :'faxNumberMetadata',
241
+ :'first_name' => :'firstName',
242
+ :'first_name_metadata' => :'firstNameMetadata',
243
+ :'full_name' => :'fullName',
244
+ :'full_name_metadata' => :'fullNameMetadata',
245
+ :'id_check_configuration_name' => :'idCheckConfigurationName',
246
+ :'id_check_configuration_name_metadata' => :'idCheckConfigurationNameMetadata',
247
+ :'id_check_information_input' => :'idCheckInformationInput',
248
+ :'identity_verification' => :'identityVerification',
249
+ :'inherit_email_notification_configuration' => :'inheritEmailNotificationConfiguration',
250
+ :'last_name' => :'lastName',
251
+ :'last_name_metadata' => :'lastNameMetadata',
252
+ :'locked_recipient_phone_auth_editable' => :'lockedRecipientPhoneAuthEditable',
253
+ :'locked_recipient_sms_editable' => :'lockedRecipientSmsEditable',
254
+ :'name' => :'name',
255
+ :'name_metadata' => :'nameMetadata',
256
+ :'note' => :'note',
257
+ :'note_metadata' => :'noteMetadata',
258
+ :'participate_for' => :'participateFor',
259
+ :'participate_for_guid' => :'participateForGuid',
260
+ :'phone_authentication' => :'phoneAuthentication',
261
+ :'phone_number' => :'phoneNumber',
262
+ :'recipient_attachments' => :'recipientAttachments',
263
+ :'recipient_authentication_status' => :'recipientAuthenticationStatus',
264
+ :'recipient_feature_metadata' => :'recipientFeatureMetadata',
265
+ :'recipient_id' => :'recipientId',
266
+ :'recipient_id_guid' => :'recipientIdGuid',
267
+ :'recipient_type' => :'recipientType',
268
+ :'recipient_type_metadata' => :'recipientTypeMetadata',
269
+ :'require_id_lookup' => :'requireIdLookup',
270
+ :'require_id_lookup_metadata' => :'requireIdLookupMetadata',
271
+ :'role_name' => :'roleName',
272
+ :'routing_order' => :'routingOrder',
273
+ :'routing_order_metadata' => :'routingOrderMetadata',
274
+ :'sent_date_time' => :'sentDateTime',
275
+ :'signed_date_time' => :'signedDateTime',
276
+ :'signing_group_id' => :'signingGroupId',
277
+ :'signing_group_id_metadata' => :'signingGroupIdMetadata',
278
+ :'signing_group_name' => :'signingGroupName',
279
+ :'signing_group_users' => :'signingGroupUsers',
280
+ :'sms_authentication' => :'smsAuthentication',
281
+ :'social_authentications' => :'socialAuthentications',
282
+ :'status' => :'status',
283
+ :'status_code' => :'statusCode',
284
+ :'suppress_emails' => :'suppressEmails',
285
+ :'template_locked' => :'templateLocked',
286
+ :'template_required' => :'templateRequired',
287
+ :'total_tab_count' => :'totalTabCount',
288
+ :'user_id' => :'userId'
289
+ }
290
+ end
291
+
292
+ # Attribute type mapping.
293
+ def self.swagger_types
294
+ {
295
+ :'access_code' => :'String',
296
+ :'access_code_metadata' => :'PropertyMetadata',
297
+ :'add_access_code_to_email' => :'String',
298
+ :'additional_notifications' => :'Array<RecipientAdditionalNotification>',
299
+ :'allow_system_override_for_locked_recipient' => :'String',
300
+ :'auto_responded_reason' => :'String',
301
+ :'client_user_id' => :'String',
302
+ :'completed_count' => :'String',
303
+ :'custom_fields' => :'Array<String>',
304
+ :'declined_date_time' => :'String',
305
+ :'declined_reason' => :'String',
306
+ :'delivered_date_time' => :'String',
307
+ :'delivery_method' => :'String',
308
+ :'delivery_method_metadata' => :'PropertyMetadata',
309
+ :'designator_id' => :'String',
310
+ :'designator_id_guid' => :'String',
311
+ :'document_visibility' => :'Array<DocumentVisibility>',
312
+ :'email' => :'String',
313
+ :'email_metadata' => :'PropertyMetadata',
314
+ :'email_notification' => :'RecipientEmailNotification',
315
+ :'email_recipient_post_signing_url' => :'String',
316
+ :'embedded_recipient_start_url' => :'String',
317
+ :'error_details' => :'ErrorDetails',
318
+ :'fax_number' => :'String',
319
+ :'fax_number_metadata' => :'PropertyMetadata',
320
+ :'first_name' => :'String',
321
+ :'first_name_metadata' => :'PropertyMetadata',
322
+ :'full_name' => :'String',
323
+ :'full_name_metadata' => :'PropertyMetadata',
324
+ :'id_check_configuration_name' => :'String',
325
+ :'id_check_configuration_name_metadata' => :'PropertyMetadata',
326
+ :'id_check_information_input' => :'IdCheckInformationInput',
327
+ :'identity_verification' => :'RecipientIdentityVerification',
328
+ :'inherit_email_notification_configuration' => :'String',
329
+ :'last_name' => :'String',
330
+ :'last_name_metadata' => :'PropertyMetadata',
331
+ :'locked_recipient_phone_auth_editable' => :'String',
332
+ :'locked_recipient_sms_editable' => :'String',
333
+ :'name' => :'String',
334
+ :'name_metadata' => :'PropertyMetadata',
335
+ :'note' => :'String',
336
+ :'note_metadata' => :'PropertyMetadata',
337
+ :'participate_for' => :'String',
338
+ :'participate_for_guid' => :'String',
339
+ :'phone_authentication' => :'RecipientPhoneAuthentication',
340
+ :'phone_number' => :'RecipientPhoneNumber',
341
+ :'recipient_attachments' => :'Array<RecipientAttachment>',
342
+ :'recipient_authentication_status' => :'AuthenticationStatus',
343
+ :'recipient_feature_metadata' => :'Array<FeatureAvailableMetadata>',
344
+ :'recipient_id' => :'String',
345
+ :'recipient_id_guid' => :'String',
346
+ :'recipient_type' => :'String',
347
+ :'recipient_type_metadata' => :'PropertyMetadata',
348
+ :'require_id_lookup' => :'String',
349
+ :'require_id_lookup_metadata' => :'PropertyMetadata',
350
+ :'role_name' => :'String',
351
+ :'routing_order' => :'String',
352
+ :'routing_order_metadata' => :'PropertyMetadata',
353
+ :'sent_date_time' => :'String',
354
+ :'signed_date_time' => :'String',
355
+ :'signing_group_id' => :'String',
356
+ :'signing_group_id_metadata' => :'PropertyMetadata',
357
+ :'signing_group_name' => :'String',
358
+ :'signing_group_users' => :'Array<UserInfo>',
359
+ :'sms_authentication' => :'RecipientSMSAuthentication',
360
+ :'social_authentications' => :'Array<SocialAuthentication>',
361
+ :'status' => :'String',
362
+ :'status_code' => :'String',
363
+ :'suppress_emails' => :'String',
364
+ :'template_locked' => :'String',
365
+ :'template_required' => :'String',
366
+ :'total_tab_count' => :'String',
367
+ :'user_id' => :'String'
368
+ }
369
+ end
370
+
371
+ # Initializes the object
372
+ # @param [Hash] attributes Model attributes in the form of hash
373
+ def initialize(attributes = {})
374
+ return unless attributes.is_a?(Hash)
375
+
376
+ # convert string to symbol for hash key
377
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
378
+
379
+ if attributes.has_key?(:'accessCode')
380
+ self.access_code = attributes[:'accessCode']
381
+ end
382
+
383
+ if attributes.has_key?(:'accessCodeMetadata')
384
+ self.access_code_metadata = attributes[:'accessCodeMetadata']
385
+ end
386
+
387
+ if attributes.has_key?(:'addAccessCodeToEmail')
388
+ self.add_access_code_to_email = attributes[:'addAccessCodeToEmail']
389
+ end
390
+
391
+ if attributes.has_key?(:'additionalNotifications')
392
+ if (value = attributes[:'additionalNotifications']).is_a?(Array)
393
+ self.additional_notifications = value
394
+ end
395
+ end
396
+
397
+ if attributes.has_key?(:'allowSystemOverrideForLockedRecipient')
398
+ self.allow_system_override_for_locked_recipient = attributes[:'allowSystemOverrideForLockedRecipient']
399
+ end
400
+
401
+ if attributes.has_key?(:'autoRespondedReason')
402
+ self.auto_responded_reason = attributes[:'autoRespondedReason']
403
+ end
404
+
405
+ if attributes.has_key?(:'clientUserId')
406
+ self.client_user_id = attributes[:'clientUserId']
407
+ end
408
+
409
+ if attributes.has_key?(:'completedCount')
410
+ self.completed_count = attributes[:'completedCount']
411
+ end
412
+
413
+ if attributes.has_key?(:'customFields')
414
+ if (value = attributes[:'customFields']).is_a?(Array)
415
+ self.custom_fields = value
416
+ end
417
+ end
418
+
419
+ if attributes.has_key?(:'declinedDateTime')
420
+ self.declined_date_time = attributes[:'declinedDateTime']
421
+ end
422
+
423
+ if attributes.has_key?(:'declinedReason')
424
+ self.declined_reason = attributes[:'declinedReason']
425
+ end
426
+
427
+ if attributes.has_key?(:'deliveredDateTime')
428
+ self.delivered_date_time = attributes[:'deliveredDateTime']
429
+ end
430
+
431
+ if attributes.has_key?(:'deliveryMethod')
432
+ self.delivery_method = attributes[:'deliveryMethod']
433
+ end
434
+
435
+ if attributes.has_key?(:'deliveryMethodMetadata')
436
+ self.delivery_method_metadata = attributes[:'deliveryMethodMetadata']
437
+ end
438
+
439
+ if attributes.has_key?(:'designatorId')
440
+ self.designator_id = attributes[:'designatorId']
441
+ end
442
+
443
+ if attributes.has_key?(:'designatorIdGuid')
444
+ self.designator_id_guid = attributes[:'designatorIdGuid']
445
+ end
446
+
447
+ if attributes.has_key?(:'documentVisibility')
448
+ if (value = attributes[:'documentVisibility']).is_a?(Array)
449
+ self.document_visibility = value
450
+ end
451
+ end
452
+
453
+ if attributes.has_key?(:'email')
454
+ self.email = attributes[:'email']
455
+ end
456
+
457
+ if attributes.has_key?(:'emailMetadata')
458
+ self.email_metadata = attributes[:'emailMetadata']
459
+ end
460
+
461
+ if attributes.has_key?(:'emailNotification')
462
+ self.email_notification = attributes[:'emailNotification']
463
+ end
464
+
465
+ if attributes.has_key?(:'emailRecipientPostSigningURL')
466
+ self.email_recipient_post_signing_url = attributes[:'emailRecipientPostSigningURL']
467
+ end
468
+
469
+ if attributes.has_key?(:'embeddedRecipientStartURL')
470
+ self.embedded_recipient_start_url = attributes[:'embeddedRecipientStartURL']
471
+ end
472
+
473
+ if attributes.has_key?(:'errorDetails')
474
+ self.error_details = attributes[:'errorDetails']
475
+ end
476
+
477
+ if attributes.has_key?(:'faxNumber')
478
+ self.fax_number = attributes[:'faxNumber']
479
+ end
480
+
481
+ if attributes.has_key?(:'faxNumberMetadata')
482
+ self.fax_number_metadata = attributes[:'faxNumberMetadata']
483
+ end
484
+
485
+ if attributes.has_key?(:'firstName')
486
+ self.first_name = attributes[:'firstName']
487
+ end
488
+
489
+ if attributes.has_key?(:'firstNameMetadata')
490
+ self.first_name_metadata = attributes[:'firstNameMetadata']
491
+ end
492
+
493
+ if attributes.has_key?(:'fullName')
494
+ self.full_name = attributes[:'fullName']
495
+ end
496
+
497
+ if attributes.has_key?(:'fullNameMetadata')
498
+ self.full_name_metadata = attributes[:'fullNameMetadata']
499
+ end
500
+
501
+ if attributes.has_key?(:'idCheckConfigurationName')
502
+ self.id_check_configuration_name = attributes[:'idCheckConfigurationName']
503
+ end
504
+
505
+ if attributes.has_key?(:'idCheckConfigurationNameMetadata')
506
+ self.id_check_configuration_name_metadata = attributes[:'idCheckConfigurationNameMetadata']
507
+ end
508
+
509
+ if attributes.has_key?(:'idCheckInformationInput')
510
+ self.id_check_information_input = attributes[:'idCheckInformationInput']
511
+ end
512
+
513
+ if attributes.has_key?(:'identityVerification')
514
+ self.identity_verification = attributes[:'identityVerification']
515
+ end
516
+
517
+ if attributes.has_key?(:'inheritEmailNotificationConfiguration')
518
+ self.inherit_email_notification_configuration = attributes[:'inheritEmailNotificationConfiguration']
519
+ end
520
+
521
+ if attributes.has_key?(:'lastName')
522
+ self.last_name = attributes[:'lastName']
523
+ end
524
+
525
+ if attributes.has_key?(:'lastNameMetadata')
526
+ self.last_name_metadata = attributes[:'lastNameMetadata']
527
+ end
528
+
529
+ if attributes.has_key?(:'lockedRecipientPhoneAuthEditable')
530
+ self.locked_recipient_phone_auth_editable = attributes[:'lockedRecipientPhoneAuthEditable']
531
+ end
532
+
533
+ if attributes.has_key?(:'lockedRecipientSmsEditable')
534
+ self.locked_recipient_sms_editable = attributes[:'lockedRecipientSmsEditable']
535
+ end
536
+
537
+ if attributes.has_key?(:'name')
538
+ self.name = attributes[:'name']
539
+ end
540
+
541
+ if attributes.has_key?(:'nameMetadata')
542
+ self.name_metadata = attributes[:'nameMetadata']
543
+ end
544
+
545
+ if attributes.has_key?(:'note')
546
+ self.note = attributes[:'note']
547
+ end
548
+
549
+ if attributes.has_key?(:'noteMetadata')
550
+ self.note_metadata = attributes[:'noteMetadata']
551
+ end
552
+
553
+ if attributes.has_key?(:'participateFor')
554
+ self.participate_for = attributes[:'participateFor']
555
+ end
556
+
557
+ if attributes.has_key?(:'participateForGuid')
558
+ self.participate_for_guid = attributes[:'participateForGuid']
559
+ end
560
+
561
+ if attributes.has_key?(:'phoneAuthentication')
562
+ self.phone_authentication = attributes[:'phoneAuthentication']
563
+ end
564
+
565
+ if attributes.has_key?(:'phoneNumber')
566
+ self.phone_number = attributes[:'phoneNumber']
567
+ end
568
+
569
+ if attributes.has_key?(:'recipientAttachments')
570
+ if (value = attributes[:'recipientAttachments']).is_a?(Array)
571
+ self.recipient_attachments = value
572
+ end
573
+ end
574
+
575
+ if attributes.has_key?(:'recipientAuthenticationStatus')
576
+ self.recipient_authentication_status = attributes[:'recipientAuthenticationStatus']
577
+ end
578
+
579
+ if attributes.has_key?(:'recipientFeatureMetadata')
580
+ if (value = attributes[:'recipientFeatureMetadata']).is_a?(Array)
581
+ self.recipient_feature_metadata = value
582
+ end
583
+ end
584
+
585
+ if attributes.has_key?(:'recipientId')
586
+ self.recipient_id = attributes[:'recipientId']
587
+ end
588
+
589
+ if attributes.has_key?(:'recipientIdGuid')
590
+ self.recipient_id_guid = attributes[:'recipientIdGuid']
591
+ end
592
+
593
+ if attributes.has_key?(:'recipientType')
594
+ self.recipient_type = attributes[:'recipientType']
595
+ end
596
+
597
+ if attributes.has_key?(:'recipientTypeMetadata')
598
+ self.recipient_type_metadata = attributes[:'recipientTypeMetadata']
599
+ end
600
+
601
+ if attributes.has_key?(:'requireIdLookup')
602
+ self.require_id_lookup = attributes[:'requireIdLookup']
603
+ end
604
+
605
+ if attributes.has_key?(:'requireIdLookupMetadata')
606
+ self.require_id_lookup_metadata = attributes[:'requireIdLookupMetadata']
607
+ end
608
+
609
+ if attributes.has_key?(:'roleName')
610
+ self.role_name = attributes[:'roleName']
611
+ end
612
+
613
+ if attributes.has_key?(:'routingOrder')
614
+ self.routing_order = attributes[:'routingOrder']
615
+ end
616
+
617
+ if attributes.has_key?(:'routingOrderMetadata')
618
+ self.routing_order_metadata = attributes[:'routingOrderMetadata']
619
+ end
620
+
621
+ if attributes.has_key?(:'sentDateTime')
622
+ self.sent_date_time = attributes[:'sentDateTime']
623
+ end
624
+
625
+ if attributes.has_key?(:'signedDateTime')
626
+ self.signed_date_time = attributes[:'signedDateTime']
627
+ end
628
+
629
+ if attributes.has_key?(:'signingGroupId')
630
+ self.signing_group_id = attributes[:'signingGroupId']
631
+ end
632
+
633
+ if attributes.has_key?(:'signingGroupIdMetadata')
634
+ self.signing_group_id_metadata = attributes[:'signingGroupIdMetadata']
635
+ end
636
+
637
+ if attributes.has_key?(:'signingGroupName')
638
+ self.signing_group_name = attributes[:'signingGroupName']
639
+ end
640
+
641
+ if attributes.has_key?(:'signingGroupUsers')
642
+ if (value = attributes[:'signingGroupUsers']).is_a?(Array)
643
+ self.signing_group_users = value
644
+ end
645
+ end
646
+
647
+ if attributes.has_key?(:'smsAuthentication')
648
+ self.sms_authentication = attributes[:'smsAuthentication']
649
+ end
650
+
651
+ if attributes.has_key?(:'socialAuthentications')
652
+ if (value = attributes[:'socialAuthentications']).is_a?(Array)
653
+ self.social_authentications = value
654
+ end
655
+ end
656
+
657
+ if attributes.has_key?(:'status')
658
+ self.status = attributes[:'status']
659
+ end
660
+
661
+ if attributes.has_key?(:'statusCode')
662
+ self.status_code = attributes[:'statusCode']
663
+ end
664
+
665
+ if attributes.has_key?(:'suppressEmails')
666
+ self.suppress_emails = attributes[:'suppressEmails']
667
+ end
668
+
669
+ if attributes.has_key?(:'templateLocked')
670
+ self.template_locked = attributes[:'templateLocked']
671
+ end
672
+
673
+ if attributes.has_key?(:'templateRequired')
674
+ self.template_required = attributes[:'templateRequired']
675
+ end
676
+
677
+ if attributes.has_key?(:'totalTabCount')
678
+ self.total_tab_count = attributes[:'totalTabCount']
679
+ end
680
+
681
+ if attributes.has_key?(:'userId')
682
+ self.user_id = attributes[:'userId']
683
+ end
684
+ end
685
+
686
+ # Show invalid properties with the reasons. Usually used together with valid?
687
+ # @return Array for valid properties with the reasons
688
+ def list_invalid_properties
689
+ invalid_properties = Array.new
690
+ invalid_properties
691
+ end
692
+
693
+ # Check to see if the all the properties in the model are valid
694
+ # @return true if the model is valid
695
+ def valid?
696
+ true
697
+ end
698
+
699
+ # Checks equality by comparing each attribute.
700
+ # @param [Object] Object to be compared
701
+ def ==(o)
702
+ return true if self.equal?(o)
703
+ self.class == o.class &&
704
+ access_code == o.access_code &&
705
+ access_code_metadata == o.access_code_metadata &&
706
+ add_access_code_to_email == o.add_access_code_to_email &&
707
+ additional_notifications == o.additional_notifications &&
708
+ allow_system_override_for_locked_recipient == o.allow_system_override_for_locked_recipient &&
709
+ auto_responded_reason == o.auto_responded_reason &&
710
+ client_user_id == o.client_user_id &&
711
+ completed_count == o.completed_count &&
712
+ custom_fields == o.custom_fields &&
713
+ declined_date_time == o.declined_date_time &&
714
+ declined_reason == o.declined_reason &&
715
+ delivered_date_time == o.delivered_date_time &&
716
+ delivery_method == o.delivery_method &&
717
+ delivery_method_metadata == o.delivery_method_metadata &&
718
+ designator_id == o.designator_id &&
719
+ designator_id_guid == o.designator_id_guid &&
720
+ document_visibility == o.document_visibility &&
721
+ email == o.email &&
722
+ email_metadata == o.email_metadata &&
723
+ email_notification == o.email_notification &&
724
+ email_recipient_post_signing_url == o.email_recipient_post_signing_url &&
725
+ embedded_recipient_start_url == o.embedded_recipient_start_url &&
726
+ error_details == o.error_details &&
727
+ fax_number == o.fax_number &&
728
+ fax_number_metadata == o.fax_number_metadata &&
729
+ first_name == o.first_name &&
730
+ first_name_metadata == o.first_name_metadata &&
731
+ full_name == o.full_name &&
732
+ full_name_metadata == o.full_name_metadata &&
733
+ id_check_configuration_name == o.id_check_configuration_name &&
734
+ id_check_configuration_name_metadata == o.id_check_configuration_name_metadata &&
735
+ id_check_information_input == o.id_check_information_input &&
736
+ identity_verification == o.identity_verification &&
737
+ inherit_email_notification_configuration == o.inherit_email_notification_configuration &&
738
+ last_name == o.last_name &&
739
+ last_name_metadata == o.last_name_metadata &&
740
+ locked_recipient_phone_auth_editable == o.locked_recipient_phone_auth_editable &&
741
+ locked_recipient_sms_editable == o.locked_recipient_sms_editable &&
742
+ name == o.name &&
743
+ name_metadata == o.name_metadata &&
744
+ note == o.note &&
745
+ note_metadata == o.note_metadata &&
746
+ participate_for == o.participate_for &&
747
+ participate_for_guid == o.participate_for_guid &&
748
+ phone_authentication == o.phone_authentication &&
749
+ phone_number == o.phone_number &&
750
+ recipient_attachments == o.recipient_attachments &&
751
+ recipient_authentication_status == o.recipient_authentication_status &&
752
+ recipient_feature_metadata == o.recipient_feature_metadata &&
753
+ recipient_id == o.recipient_id &&
754
+ recipient_id_guid == o.recipient_id_guid &&
755
+ recipient_type == o.recipient_type &&
756
+ recipient_type_metadata == o.recipient_type_metadata &&
757
+ require_id_lookup == o.require_id_lookup &&
758
+ require_id_lookup_metadata == o.require_id_lookup_metadata &&
759
+ role_name == o.role_name &&
760
+ routing_order == o.routing_order &&
761
+ routing_order_metadata == o.routing_order_metadata &&
762
+ sent_date_time == o.sent_date_time &&
763
+ signed_date_time == o.signed_date_time &&
764
+ signing_group_id == o.signing_group_id &&
765
+ signing_group_id_metadata == o.signing_group_id_metadata &&
766
+ signing_group_name == o.signing_group_name &&
767
+ signing_group_users == o.signing_group_users &&
768
+ sms_authentication == o.sms_authentication &&
769
+ social_authentications == o.social_authentications &&
770
+ status == o.status &&
771
+ status_code == o.status_code &&
772
+ suppress_emails == o.suppress_emails &&
773
+ template_locked == o.template_locked &&
774
+ template_required == o.template_required &&
775
+ total_tab_count == o.total_tab_count &&
776
+ user_id == o.user_id
777
+ end
778
+
779
+ # @see the `==` method
780
+ # @param [Object] Object to be compared
781
+ def eql?(o)
782
+ self == o
783
+ end
784
+
785
+ # Calculates hash code according to all attributes.
786
+ # @return [Fixnum] Hash code
787
+ def hash
788
+ [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, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, 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, participate_for, participate_for_guid, phone_authentication, phone_number, 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
789
+ end
790
+
791
+ # Builds the object from hash
792
+ # @param [Hash] attributes Model attributes in the form of hash
793
+ # @return [Object] Returns the model itself
794
+ def build_from_hash(attributes)
795
+ return nil unless attributes.is_a?(Hash)
796
+ self.class.swagger_types.each_pair do |key, type|
797
+ if type =~ /\AArray<(.*)>/i
798
+ # check to ensure the input is an array given that the attribute
799
+ # is documented as an array but the input is not
800
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
801
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
802
+ end
803
+ elsif !attributes[self.class.attribute_map[key]].nil?
804
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
805
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
806
+ end
807
+
808
+ self
809
+ end
810
+
811
+ # Deserializes the data based on type
812
+ # @param string type Data type
813
+ # @param string value Value to be deserialized
814
+ # @return [Object] Deserialized data
815
+ def _deserialize(type, value)
816
+ case type.to_sym
817
+ when :DateTime
818
+ DateTime.parse(value)
819
+ when :Date
820
+ Date.parse(value)
821
+ when :String
822
+ value.to_s
823
+ when :Integer
824
+ value.to_i
825
+ when :Float
826
+ value.to_f
827
+ when :BOOLEAN
828
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
829
+ true
830
+ else
831
+ false
832
+ end
833
+ when :Object
834
+ # generic object (usually a Hash), return directly
835
+ value
836
+ when /\AArray<(?<inner_type>.+)>\z/
837
+ inner_type = Regexp.last_match[:inner_type]
838
+ value.map { |v| _deserialize(inner_type, v) }
839
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
840
+ k_type = Regexp.last_match[:k_type]
841
+ v_type = Regexp.last_match[:v_type]
842
+ {}.tap do |hash|
843
+ value.each do |k, v|
844
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
845
+ end
846
+ end
847
+ else # model
848
+ temp_model = DocuSign_eSign.const_get(type).new
849
+ temp_model.build_from_hash(value)
850
+ end
851
+ end
852
+
853
+ # Returns the string representation of the object
854
+ # @return [String] String presentation of the object
855
+ def to_s
856
+ to_hash.to_s
857
+ end
858
+
859
+ # to_body is an alias to to_hash (backward compatibility)
860
+ # @return [Hash] Returns the object in the form of hash
861
+ def to_body
862
+ to_hash
863
+ end
864
+
865
+ # Returns the object in the form of hash
866
+ # @return [Hash] Returns the object in the form of hash
867
+ def to_hash
868
+ hash = {}
869
+ self.class.attribute_map.each_pair do |attr, param|
870
+ value = self.send(attr)
871
+ next if value.nil?
872
+ hash[param] = _to_hash(value)
873
+ end
874
+ hash
875
+ end
876
+
877
+ # Outputs non-array value in the form of hash
878
+ # For object, use to_hash. Otherwise, just return the value
879
+ # @param [Object] value Any valid value
880
+ # @return [Hash] Returns the value in the form of hash
881
+ def _to_hash(value)
882
+ if value.is_a?(Array)
883
+ value.compact.map { |v| _to_hash(v) }
884
+ elsif value.is_a?(Hash)
885
+ {}.tap do |hash|
886
+ value.each { |k, v| hash[k] = _to_hash(v) }
887
+ end
888
+ elsif value.respond_to? :to_hash
889
+ value.to_hash
890
+ else
891
+ value
892
+ end
893
+ end
894
+
895
+ end
896
+ end