docusign_esign 3.15.0 → 3.18.0

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