docusign_esign 3.4.0 → 3.5.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +73 -0
  3. data/docusign_esign-2.6.0.rc1.gem +0 -0
  4. data/lib/docusign_esign.rb +24 -0
  5. data/lib/docusign_esign/.DS_Store +0 -0
  6. data/lib/docusign_esign/api/.DS_Store +0 -0
  7. data/lib/docusign_esign/api/accounts_api.rb +362 -0
  8. data/lib/docusign_esign/api/bulk_envelopes_api.rb +126 -4
  9. data/lib/docusign_esign/api/envelopes_api.rb +320 -0
  10. data/lib/docusign_esign/client/.DS_Store +0 -0
  11. data/lib/docusign_esign/models/account_settings_information.rb +11 -1
  12. data/lib/docusign_esign/models/bulk_send_batch_status.rb +287 -0
  13. data/lib/docusign_esign/models/bulk_send_batch_summaries.rb +277 -0
  14. data/lib/docusign_esign/models/bulk_send_batch_summary.rb +255 -0
  15. data/lib/docusign_esign/models/bulk_send_error_status.rb +207 -0
  16. data/lib/docusign_esign/models/conditional_recipient_rule.rb +216 -0
  17. data/lib/docusign_esign/models/conditional_recipient_rule_condition.rb +207 -0
  18. data/lib/docusign_esign/models/conditional_recipient_rule_filter.rb +235 -0
  19. data/lib/docusign_esign/models/e_note_configuration.rb +11 -1
  20. data/lib/docusign_esign/models/envelope.rb +13 -4
  21. data/lib/docusign_esign/models/envelope_definition.rb +13 -4
  22. data/lib/docusign_esign/models/envelope_template.rb +13 -4
  23. data/lib/docusign_esign/models/new_user.rb +11 -1
  24. data/lib/docusign_esign/models/proof_service_resource_token.rb +14 -4
  25. data/lib/docusign_esign/models/recipient_additional_notification.rb +14 -4
  26. data/lib/docusign_esign/models/recipient_group.rb +207 -0
  27. data/lib/docusign_esign/models/recipient_option.rb +225 -0
  28. data/lib/docusign_esign/models/recipient_routing.rb +184 -0
  29. data/lib/docusign_esign/models/recipient_rules.rb +187 -0
  30. data/lib/docusign_esign/models/report_in_product_csv_run_request.rb +437 -0
  31. data/lib/docusign_esign/models/report_in_product_field.rb +215 -0
  32. data/lib/docusign_esign/models/report_in_product_get.rb +466 -0
  33. data/lib/docusign_esign/models/report_in_product_list.rb +187 -0
  34. data/lib/docusign_esign/models/report_in_product_list_item.rb +315 -0
  35. data/lib/docusign_esign/models/report_in_product_run_request.rb +397 -0
  36. data/lib/docusign_esign/models/report_in_product_run_response.rb +247 -0
  37. data/lib/docusign_esign/models/report_in_product_run_response_row.rb +194 -0
  38. data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +1395 -0
  39. data/lib/docusign_esign/models/report_in_product_save_response.rb +185 -0
  40. data/lib/docusign_esign/models/report_in_product_sent_by_details.rb +199 -0
  41. data/lib/docusign_esign/models/sender_email_notifications.rb +11 -1
  42. data/lib/docusign_esign/models/tab_metadata.rb +21 -1
  43. data/lib/docusign_esign/models/workflow.rb +207 -0
  44. data/lib/docusign_esign/models/workflow_step.rb +254 -0
  45. data/lib/docusign_esign/version.rb +1 -1
  46. data/tests/Gemfile.lock +3 -3
  47. metadata +33 -7
  48. data/docusign_esign-2.4.0.gem +0 -0
  49. data/docusign_esign-2.5.0.rc1.gem +0 -0
  50. data/docusign_esign-3.4.0.rc1.gem +0 -0
@@ -0,0 +1,194 @@
1
+ =begin
2
+ #DocuSign REST API
3
+
4
+ #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5
+
6
+ OpenAPI spec version: v2.1
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class ReportInProductRunResponseRow
17
+ # The envelope ID of the envelope status that failed to post.
18
+ attr_accessor :envelope_id
19
+
20
+ attr_accessor :fields
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'envelope_id' => :'envelopeId',
26
+ :'fields' => :'fields'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.swagger_types
32
+ {
33
+ :'envelope_id' => :'String',
34
+ :'fields' => :'ReportInProductRunResponseRowFields'
35
+ }
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
+
46
+ if attributes.has_key?(:'envelopeId')
47
+ self.envelope_id = attributes[:'envelopeId']
48
+ end
49
+
50
+ if attributes.has_key?(:'fields')
51
+ self.fields = attributes[:'fields']
52
+ end
53
+ end
54
+
55
+ # Show invalid properties with the reasons. Usually used together with valid?
56
+ # @return Array for valid properties with the reasons
57
+ def list_invalid_properties
58
+ invalid_properties = Array.new
59
+ invalid_properties
60
+ end
61
+
62
+ # Check to see if the all the properties in the model are valid
63
+ # @return true if the model is valid
64
+ def valid?
65
+ true
66
+ end
67
+
68
+ # Checks equality by comparing each attribute.
69
+ # @param [Object] Object to be compared
70
+ def ==(o)
71
+ return true if self.equal?(o)
72
+ self.class == o.class &&
73
+ envelope_id == o.envelope_id &&
74
+ fields == o.fields
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(o)
80
+ self == o
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Fixnum] Hash code
85
+ def hash
86
+ [envelope_id, fields].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.swagger_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
104
+ end
105
+
106
+ self
107
+ end
108
+
109
+ # Deserializes the data based on type
110
+ # @param string type Data type
111
+ # @param string value Value to be deserialized
112
+ # @return [Object] Deserialized data
113
+ def _deserialize(type, value)
114
+ case type.to_sym
115
+ when :DateTime
116
+ DateTime.parse(value)
117
+ when :Date
118
+ Date.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :BOOLEAN
126
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ temp_model = DocuSign_eSign.const_get(type).new
147
+ temp_model.build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ # Returns the string representation of the object
152
+ # @return [String] String presentation of the object
153
+ def to_s
154
+ to_hash.to_s
155
+ end
156
+
157
+ # to_body is an alias to to_hash (backward compatibility)
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ next if value.nil?
170
+ hash[param] = _to_hash(value)
171
+ end
172
+ hash
173
+ end
174
+
175
+ # Outputs non-array value in the form of hash
176
+ # For object, use to_hash. Otherwise, just return the value
177
+ # @param [Object] value Any valid value
178
+ # @return [Hash] Returns the value in the form of hash
179
+ def _to_hash(value)
180
+ if value.is_a?(Array)
181
+ value.compact.map { |v| _to_hash(v) }
182
+ elsif value.is_a?(Hash)
183
+ {}.tap do |hash|
184
+ value.each { |k, v| hash[k] = _to_hash(v) }
185
+ end
186
+ elsif value.respond_to? :to_hash
187
+ value.to_hash
188
+ else
189
+ value
190
+ end
191
+ end
192
+
193
+ end
194
+ end
@@ -0,0 +1,1395 @@
1
+ =begin
2
+ #DocuSign REST API
3
+
4
+ #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5
+
6
+ OpenAPI spec version: v2.1
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class ReportInProductRunResponseRowFields
17
+ #
18
+ attr_accessor :access_code_required
19
+
20
+ #
21
+ attr_accessor :access_codes_attempted
22
+
23
+ #
24
+ attr_accessor :access_codes_failed
25
+
26
+ # The account ID associated with the envelope.
27
+ attr_accessor :account_id
28
+
29
+ #
30
+ attr_accessor :authentication_category
31
+
32
+ #
33
+ attr_accessor :authentication_success
34
+
35
+ #
36
+ attr_accessor :authentication_type
37
+
38
+ #
39
+ attr_accessor :average_time_to_complete_seconds
40
+
41
+ #
42
+ attr_accessor :avg_complete_seconds
43
+
44
+ #
45
+ attr_accessor :completed
46
+
47
+ #
48
+ attr_accessor :completed_ts
49
+
50
+ #
51
+ attr_accessor :created_date
52
+
53
+ #
54
+ attr_accessor :custom_field
55
+
56
+ #
57
+ attr_accessor :declined_date
58
+
59
+ # The reason the recipient declined the document.
60
+ attr_accessor :declined_reason
61
+
62
+ #
63
+ attr_accessor :delivered_date
64
+
65
+ #
66
+ attr_accessor :envelope_count
67
+
68
+ #
69
+ attr_accessor :envelope_creator
70
+
71
+ # The envelope ID of the envelope status that failed to post.
72
+ attr_accessor :envelope_id
73
+
74
+ #
75
+ attr_accessor :envelope_initial_send_ts
76
+
77
+ #
78
+ attr_accessor :envelopes_billed
79
+
80
+ #
81
+ attr_accessor :envelopes_completed
82
+
83
+ #
84
+ attr_accessor :envelopes_completed_count
85
+
86
+ #
87
+ attr_accessor :envelopes_declined
88
+
89
+ #
90
+ attr_accessor :envelopes_sent
91
+
92
+ #
93
+ attr_accessor :envelopes_sent_count
94
+
95
+ #
96
+ attr_accessor :envelopes_voided
97
+
98
+ #
99
+ attr_accessor :envelope_voided_reason
100
+
101
+ #
102
+ attr_accessor :eod_document_description
103
+
104
+ #
105
+ attr_accessor :eod_document_name
106
+
107
+ #
108
+ attr_accessor :eod_document_profile_id
109
+
110
+ #
111
+ attr_accessor :eod_transaction_id
112
+
113
+ #
114
+ attr_accessor :eod_transaction_name
115
+
116
+ #
117
+ attr_accessor :event_date
118
+
119
+ #
120
+ attr_accessor :expiration_date
121
+
122
+ #
123
+ attr_accessor :expired_ts
124
+
125
+ #
126
+ attr_accessor :failures
127
+
128
+ #
129
+ attr_accessor :failure_vendor_code
130
+
131
+ #
132
+ attr_accessor :failure_vendor_reason
133
+
134
+ #
135
+ attr_accessor :first_send_ts
136
+
137
+ #
138
+ attr_accessor :group_id
139
+
140
+ # The name of the group.
141
+ attr_accessor :group_name
142
+
143
+ #
144
+ attr_accessor :hours_to_complete_end
145
+
146
+ #
147
+ attr_accessor :hours_to_complete_start
148
+
149
+ #
150
+ attr_accessor :id_checks_attempted
151
+
152
+ #
153
+ attr_accessor :id_checks_failed
154
+
155
+ #
156
+ attr_accessor :initial_send_ts
157
+
158
+ #
159
+ attr_accessor :ip_address
160
+
161
+ #
162
+ attr_accessor :last_activity
163
+
164
+ #
165
+ attr_accessor :last_activity_date
166
+
167
+ #
168
+ attr_accessor :last_sent_date
169
+
170
+ #
171
+ attr_accessor :not_signed
172
+
173
+ #
174
+ attr_accessor :number_of_authenticated_recipients
175
+
176
+ #
177
+ attr_accessor :number_of_completed_signatures
178
+
179
+ #
180
+ attr_accessor :number_of_documents
181
+
182
+ #
183
+ attr_accessor :number_of_pages
184
+
185
+ #
186
+ attr_accessor :number_of_recipients
187
+
188
+ #
189
+ attr_accessor :number_of_sends
190
+
191
+ #
192
+ attr_accessor :number_of_signers
193
+
194
+ #
195
+ attr_accessor :number_of_total_documents
196
+
197
+ #
198
+ attr_accessor :number_of_total_pages
199
+
200
+ #
201
+ attr_accessor :number_of_total_signers
202
+
203
+ #
204
+ attr_accessor :number_of_unique_senders
205
+
206
+ #
207
+ attr_accessor :number_total_recipients
208
+
209
+ #
210
+ attr_accessor :period_end
211
+
212
+ #
213
+ attr_accessor :period_start
214
+
215
+ #
216
+ attr_accessor :phone_calls_attempted
217
+
218
+ #
219
+ attr_accessor :phone_calls_failed
220
+
221
+ #
222
+ attr_accessor :reason_for_declining
223
+
224
+ #
225
+ attr_accessor :reason_for_voiding
226
+
227
+ #
228
+ attr_accessor :reassign_reason
229
+
230
+ #
231
+ attr_accessor :received
232
+
233
+ #
234
+ attr_accessor :recipient
235
+
236
+ #
237
+ attr_accessor :recipient_action
238
+
239
+ #
240
+ attr_accessor :recipient_company_name
241
+
242
+ #
243
+ attr_accessor :recipient_country
244
+
245
+ #
246
+ attr_accessor :recipient_email
247
+
248
+ # Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document.
249
+ attr_accessor :recipient_id
250
+
251
+ #
252
+ attr_accessor :recipient_name
253
+
254
+ #
255
+ attr_accessor :recipient_template_role_name
256
+
257
+ #
258
+ attr_accessor :recipient_title
259
+
260
+ #
261
+ attr_accessor :recipient_type
262
+
263
+ #
264
+ attr_accessor :recipient_user_id
265
+
266
+ #
267
+ attr_accessor :remaining_signatures
268
+
269
+ # Specifies the routing order of the recipient in the envelope.
270
+ attr_accessor :routing_order
271
+
272
+ #
273
+ attr_accessor :sender_account_id
274
+
275
+ #
276
+ attr_accessor :sender_company_name
277
+
278
+ #
279
+ attr_accessor :sender_country
280
+
281
+ #
282
+ attr_accessor :sender_email
283
+
284
+ #
285
+ attr_accessor :sender_ip_address
286
+
287
+ #
288
+ attr_accessor :sender_job_title
289
+
290
+ #
291
+ attr_accessor :sender_name
292
+
293
+ #
294
+ attr_accessor :sender_user_id
295
+
296
+ #
297
+ attr_accessor :sign_date
298
+
299
+ #
300
+ attr_accessor :signed
301
+
302
+ #
303
+ attr_accessor :signed_date
304
+
305
+ #
306
+ attr_accessor :signed_on_mobile
307
+
308
+ #
309
+ attr_accessor :signed_on_paper
310
+
311
+ #
312
+ attr_accessor :signer_list
313
+
314
+ # 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.
315
+ attr_accessor :status
316
+
317
+ #
318
+ attr_accessor :status_changed_date
319
+
320
+ #
321
+ attr_accessor :status_changed_ts
322
+
323
+ #
324
+ attr_accessor :subject
325
+
326
+ #
327
+ attr_accessor :successes
328
+
329
+ #
330
+ attr_accessor :templates_created
331
+
332
+ #
333
+ attr_accessor :templates_created_count
334
+
335
+ #
336
+ attr_accessor :terminal_status_date
337
+
338
+ #
339
+ attr_accessor :time_to_complete_seconds
340
+
341
+ #
342
+ attr_accessor :time_to_deliver
343
+
344
+ #
345
+ attr_accessor :total_documents
346
+
347
+ #
348
+ attr_accessor :total_envelopes
349
+
350
+ #
351
+ attr_accessor :total_pages
352
+
353
+ #
354
+ attr_accessor :total_recipients
355
+
356
+ #
357
+ attr_accessor :total_signers
358
+
359
+ #
360
+ attr_accessor :unique_senders
361
+
362
+ #
363
+ attr_accessor :user_account_email
364
+
365
+ #
366
+ attr_accessor :user_account_name
367
+
368
+ #
369
+ attr_accessor :user_account_status
370
+
371
+ #
372
+ attr_accessor :user_count
373
+
374
+ #
375
+ attr_accessor :user_id
376
+
377
+ #
378
+ attr_accessor :view_date
379
+
380
+ #
381
+ attr_accessor :voided_ts
382
+
383
+ # Attribute mapping from ruby-style variable name to JSON key.
384
+ def self.attribute_map
385
+ {
386
+ :'access_code_required' => :'accessCodeRequired',
387
+ :'access_codes_attempted' => :'accessCodesAttempted',
388
+ :'access_codes_failed' => :'accessCodesFailed',
389
+ :'account_id' => :'accountId',
390
+ :'authentication_category' => :'authenticationCategory',
391
+ :'authentication_success' => :'authenticationSuccess',
392
+ :'authentication_type' => :'authenticationType',
393
+ :'average_time_to_complete_seconds' => :'averageTimeToCompleteSeconds',
394
+ :'avg_complete_seconds' => :'avgCompleteSeconds',
395
+ :'completed' => :'completed',
396
+ :'completed_ts' => :'completedTs',
397
+ :'created_date' => :'createdDate',
398
+ :'custom_field' => :'customField',
399
+ :'declined_date' => :'declinedDate',
400
+ :'declined_reason' => :'declinedReason',
401
+ :'delivered_date' => :'deliveredDate',
402
+ :'envelope_count' => :'envelopeCount',
403
+ :'envelope_creator' => :'envelopeCreator',
404
+ :'envelope_id' => :'envelopeId',
405
+ :'envelope_initial_send_ts' => :'envelopeInitialSendTs',
406
+ :'envelopes_billed' => :'envelopesBilled',
407
+ :'envelopes_completed' => :'envelopesCompleted',
408
+ :'envelopes_completed_count' => :'envelopesCompletedCount',
409
+ :'envelopes_declined' => :'envelopesDeclined',
410
+ :'envelopes_sent' => :'envelopesSent',
411
+ :'envelopes_sent_count' => :'envelopesSentCount',
412
+ :'envelopes_voided' => :'envelopesVoided',
413
+ :'envelope_voided_reason' => :'envelopeVoidedReason',
414
+ :'eod_document_description' => :'eodDocumentDescription',
415
+ :'eod_document_name' => :'eodDocumentName',
416
+ :'eod_document_profile_id' => :'eodDocumentProfileId',
417
+ :'eod_transaction_id' => :'eodTransactionId',
418
+ :'eod_transaction_name' => :'eodTransactionName',
419
+ :'event_date' => :'eventDate',
420
+ :'expiration_date' => :'expirationDate',
421
+ :'expired_ts' => :'expiredTs',
422
+ :'failures' => :'failures',
423
+ :'failure_vendor_code' => :'failureVendorCode',
424
+ :'failure_vendor_reason' => :'failureVendorReason',
425
+ :'first_send_ts' => :'firstSendTs',
426
+ :'group_id' => :'groupId',
427
+ :'group_name' => :'groupName',
428
+ :'hours_to_complete_end' => :'hoursToCompleteEnd',
429
+ :'hours_to_complete_start' => :'hoursToCompleteStart',
430
+ :'id_checks_attempted' => :'idChecksAttempted',
431
+ :'id_checks_failed' => :'idChecksFailed',
432
+ :'initial_send_ts' => :'initialSendTs',
433
+ :'ip_address' => :'ipAddress',
434
+ :'last_activity' => :'lastActivity',
435
+ :'last_activity_date' => :'lastActivityDate',
436
+ :'last_sent_date' => :'lastSentDate',
437
+ :'not_signed' => :'notSigned',
438
+ :'number_of_authenticated_recipients' => :'numberOfAuthenticatedRecipients',
439
+ :'number_of_completed_signatures' => :'numberOfCompletedSignatures',
440
+ :'number_of_documents' => :'numberOfDocuments',
441
+ :'number_of_pages' => :'numberOfPages',
442
+ :'number_of_recipients' => :'numberOfRecipients',
443
+ :'number_of_sends' => :'numberOfSends',
444
+ :'number_of_signers' => :'numberOfSigners',
445
+ :'number_of_total_documents' => :'numberOfTotalDocuments',
446
+ :'number_of_total_pages' => :'numberOfTotalPages',
447
+ :'number_of_total_signers' => :'numberOfTotalSigners',
448
+ :'number_of_unique_senders' => :'numberOfUniqueSenders',
449
+ :'number_total_recipients' => :'numberTotalRecipients',
450
+ :'period_end' => :'periodEnd',
451
+ :'period_start' => :'periodStart',
452
+ :'phone_calls_attempted' => :'phoneCallsAttempted',
453
+ :'phone_calls_failed' => :'phoneCallsFailed',
454
+ :'reason_for_declining' => :'reasonForDeclining',
455
+ :'reason_for_voiding' => :'reasonForVoiding',
456
+ :'reassign_reason' => :'reassignReason',
457
+ :'received' => :'received',
458
+ :'recipient' => :'recipient',
459
+ :'recipient_action' => :'recipientAction',
460
+ :'recipient_company_name' => :'recipientCompanyName',
461
+ :'recipient_country' => :'recipientCountry',
462
+ :'recipient_email' => :'recipientEmail',
463
+ :'recipient_id' => :'recipientId',
464
+ :'recipient_name' => :'recipientName',
465
+ :'recipient_template_role_name' => :'recipientTemplateRoleName',
466
+ :'recipient_title' => :'recipientTitle',
467
+ :'recipient_type' => :'recipientType',
468
+ :'recipient_user_id' => :'recipientUserId',
469
+ :'remaining_signatures' => :'remainingSignatures',
470
+ :'routing_order' => :'routingOrder',
471
+ :'sender_account_id' => :'senderAccountId',
472
+ :'sender_company_name' => :'senderCompanyName',
473
+ :'sender_country' => :'senderCountry',
474
+ :'sender_email' => :'senderEmail',
475
+ :'sender_ip_address' => :'senderIPAddress',
476
+ :'sender_job_title' => :'senderJobTitle',
477
+ :'sender_name' => :'senderName',
478
+ :'sender_user_id' => :'senderUserId',
479
+ :'sign_date' => :'signDate',
480
+ :'signed' => :'signed',
481
+ :'signed_date' => :'signedDate',
482
+ :'signed_on_mobile' => :'signedOnMobile',
483
+ :'signed_on_paper' => :'signedOnPaper',
484
+ :'signer_list' => :'signerList',
485
+ :'status' => :'status',
486
+ :'status_changed_date' => :'statusChangedDate',
487
+ :'status_changed_ts' => :'statusChangedTs',
488
+ :'subject' => :'subject',
489
+ :'successes' => :'successes',
490
+ :'templates_created' => :'templatesCreated',
491
+ :'templates_created_count' => :'templatesCreatedCount',
492
+ :'terminal_status_date' => :'terminalStatusDate',
493
+ :'time_to_complete_seconds' => :'timeToCompleteSeconds',
494
+ :'time_to_deliver' => :'timeToDeliver',
495
+ :'total_documents' => :'totalDocuments',
496
+ :'total_envelopes' => :'totalEnvelopes',
497
+ :'total_pages' => :'totalPages',
498
+ :'total_recipients' => :'totalRecipients',
499
+ :'total_signers' => :'totalSigners',
500
+ :'unique_senders' => :'uniqueSenders',
501
+ :'user_account_email' => :'userAccountEmail',
502
+ :'user_account_name' => :'userAccountName',
503
+ :'user_account_status' => :'userAccountStatus',
504
+ :'user_count' => :'userCount',
505
+ :'user_id' => :'userId',
506
+ :'view_date' => :'viewDate',
507
+ :'voided_ts' => :'voidedTs'
508
+ }
509
+ end
510
+
511
+ # Attribute type mapping.
512
+ def self.swagger_types
513
+ {
514
+ :'access_code_required' => :'String',
515
+ :'access_codes_attempted' => :'String',
516
+ :'access_codes_failed' => :'String',
517
+ :'account_id' => :'String',
518
+ :'authentication_category' => :'String',
519
+ :'authentication_success' => :'String',
520
+ :'authentication_type' => :'String',
521
+ :'average_time_to_complete_seconds' => :'String',
522
+ :'avg_complete_seconds' => :'String',
523
+ :'completed' => :'String',
524
+ :'completed_ts' => :'String',
525
+ :'created_date' => :'String',
526
+ :'custom_field' => :'String',
527
+ :'declined_date' => :'String',
528
+ :'declined_reason' => :'String',
529
+ :'delivered_date' => :'String',
530
+ :'envelope_count' => :'String',
531
+ :'envelope_creator' => :'String',
532
+ :'envelope_id' => :'String',
533
+ :'envelope_initial_send_ts' => :'String',
534
+ :'envelopes_billed' => :'String',
535
+ :'envelopes_completed' => :'String',
536
+ :'envelopes_completed_count' => :'String',
537
+ :'envelopes_declined' => :'String',
538
+ :'envelopes_sent' => :'String',
539
+ :'envelopes_sent_count' => :'String',
540
+ :'envelopes_voided' => :'String',
541
+ :'envelope_voided_reason' => :'String',
542
+ :'eod_document_description' => :'String',
543
+ :'eod_document_name' => :'String',
544
+ :'eod_document_profile_id' => :'String',
545
+ :'eod_transaction_id' => :'String',
546
+ :'eod_transaction_name' => :'String',
547
+ :'event_date' => :'String',
548
+ :'expiration_date' => :'String',
549
+ :'expired_ts' => :'String',
550
+ :'failures' => :'String',
551
+ :'failure_vendor_code' => :'String',
552
+ :'failure_vendor_reason' => :'String',
553
+ :'first_send_ts' => :'String',
554
+ :'group_id' => :'String',
555
+ :'group_name' => :'String',
556
+ :'hours_to_complete_end' => :'String',
557
+ :'hours_to_complete_start' => :'String',
558
+ :'id_checks_attempted' => :'String',
559
+ :'id_checks_failed' => :'String',
560
+ :'initial_send_ts' => :'String',
561
+ :'ip_address' => :'String',
562
+ :'last_activity' => :'String',
563
+ :'last_activity_date' => :'String',
564
+ :'last_sent_date' => :'String',
565
+ :'not_signed' => :'String',
566
+ :'number_of_authenticated_recipients' => :'String',
567
+ :'number_of_completed_signatures' => :'String',
568
+ :'number_of_documents' => :'String',
569
+ :'number_of_pages' => :'String',
570
+ :'number_of_recipients' => :'String',
571
+ :'number_of_sends' => :'String',
572
+ :'number_of_signers' => :'String',
573
+ :'number_of_total_documents' => :'String',
574
+ :'number_of_total_pages' => :'String',
575
+ :'number_of_total_signers' => :'String',
576
+ :'number_of_unique_senders' => :'String',
577
+ :'number_total_recipients' => :'String',
578
+ :'period_end' => :'String',
579
+ :'period_start' => :'String',
580
+ :'phone_calls_attempted' => :'String',
581
+ :'phone_calls_failed' => :'String',
582
+ :'reason_for_declining' => :'String',
583
+ :'reason_for_voiding' => :'String',
584
+ :'reassign_reason' => :'String',
585
+ :'received' => :'String',
586
+ :'recipient' => :'String',
587
+ :'recipient_action' => :'String',
588
+ :'recipient_company_name' => :'String',
589
+ :'recipient_country' => :'String',
590
+ :'recipient_email' => :'String',
591
+ :'recipient_id' => :'String',
592
+ :'recipient_name' => :'String',
593
+ :'recipient_template_role_name' => :'String',
594
+ :'recipient_title' => :'String',
595
+ :'recipient_type' => :'String',
596
+ :'recipient_user_id' => :'String',
597
+ :'remaining_signatures' => :'String',
598
+ :'routing_order' => :'String',
599
+ :'sender_account_id' => :'String',
600
+ :'sender_company_name' => :'String',
601
+ :'sender_country' => :'String',
602
+ :'sender_email' => :'String',
603
+ :'sender_ip_address' => :'String',
604
+ :'sender_job_title' => :'String',
605
+ :'sender_name' => :'String',
606
+ :'sender_user_id' => :'String',
607
+ :'sign_date' => :'String',
608
+ :'signed' => :'String',
609
+ :'signed_date' => :'String',
610
+ :'signed_on_mobile' => :'String',
611
+ :'signed_on_paper' => :'String',
612
+ :'signer_list' => :'String',
613
+ :'status' => :'String',
614
+ :'status_changed_date' => :'String',
615
+ :'status_changed_ts' => :'String',
616
+ :'subject' => :'String',
617
+ :'successes' => :'String',
618
+ :'templates_created' => :'String',
619
+ :'templates_created_count' => :'String',
620
+ :'terminal_status_date' => :'String',
621
+ :'time_to_complete_seconds' => :'String',
622
+ :'time_to_deliver' => :'String',
623
+ :'total_documents' => :'String',
624
+ :'total_envelopes' => :'String',
625
+ :'total_pages' => :'String',
626
+ :'total_recipients' => :'String',
627
+ :'total_signers' => :'String',
628
+ :'unique_senders' => :'String',
629
+ :'user_account_email' => :'String',
630
+ :'user_account_name' => :'String',
631
+ :'user_account_status' => :'String',
632
+ :'user_count' => :'String',
633
+ :'user_id' => :'String',
634
+ :'view_date' => :'String',
635
+ :'voided_ts' => :'String'
636
+ }
637
+ end
638
+
639
+ # Initializes the object
640
+ # @param [Hash] attributes Model attributes in the form of hash
641
+ def initialize(attributes = {})
642
+ return unless attributes.is_a?(Hash)
643
+
644
+ # convert string to symbol for hash key
645
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
646
+
647
+ if attributes.has_key?(:'accessCodeRequired')
648
+ self.access_code_required = attributes[:'accessCodeRequired']
649
+ end
650
+
651
+ if attributes.has_key?(:'accessCodesAttempted')
652
+ self.access_codes_attempted = attributes[:'accessCodesAttempted']
653
+ end
654
+
655
+ if attributes.has_key?(:'accessCodesFailed')
656
+ self.access_codes_failed = attributes[:'accessCodesFailed']
657
+ end
658
+
659
+ if attributes.has_key?(:'accountId')
660
+ self.account_id = attributes[:'accountId']
661
+ end
662
+
663
+ if attributes.has_key?(:'authenticationCategory')
664
+ self.authentication_category = attributes[:'authenticationCategory']
665
+ end
666
+
667
+ if attributes.has_key?(:'authenticationSuccess')
668
+ self.authentication_success = attributes[:'authenticationSuccess']
669
+ end
670
+
671
+ if attributes.has_key?(:'authenticationType')
672
+ self.authentication_type = attributes[:'authenticationType']
673
+ end
674
+
675
+ if attributes.has_key?(:'averageTimeToCompleteSeconds')
676
+ self.average_time_to_complete_seconds = attributes[:'averageTimeToCompleteSeconds']
677
+ end
678
+
679
+ if attributes.has_key?(:'avgCompleteSeconds')
680
+ self.avg_complete_seconds = attributes[:'avgCompleteSeconds']
681
+ end
682
+
683
+ if attributes.has_key?(:'completed')
684
+ self.completed = attributes[:'completed']
685
+ end
686
+
687
+ if attributes.has_key?(:'completedTs')
688
+ self.completed_ts = attributes[:'completedTs']
689
+ end
690
+
691
+ if attributes.has_key?(:'createdDate')
692
+ self.created_date = attributes[:'createdDate']
693
+ end
694
+
695
+ if attributes.has_key?(:'customField')
696
+ self.custom_field = attributes[:'customField']
697
+ end
698
+
699
+ if attributes.has_key?(:'declinedDate')
700
+ self.declined_date = attributes[:'declinedDate']
701
+ end
702
+
703
+ if attributes.has_key?(:'declinedReason')
704
+ self.declined_reason = attributes[:'declinedReason']
705
+ end
706
+
707
+ if attributes.has_key?(:'deliveredDate')
708
+ self.delivered_date = attributes[:'deliveredDate']
709
+ end
710
+
711
+ if attributes.has_key?(:'envelopeCount')
712
+ self.envelope_count = attributes[:'envelopeCount']
713
+ end
714
+
715
+ if attributes.has_key?(:'envelopeCreator')
716
+ self.envelope_creator = attributes[:'envelopeCreator']
717
+ end
718
+
719
+ if attributes.has_key?(:'envelopeId')
720
+ self.envelope_id = attributes[:'envelopeId']
721
+ end
722
+
723
+ if attributes.has_key?(:'envelopeInitialSendTs')
724
+ self.envelope_initial_send_ts = attributes[:'envelopeInitialSendTs']
725
+ end
726
+
727
+ if attributes.has_key?(:'envelopesBilled')
728
+ self.envelopes_billed = attributes[:'envelopesBilled']
729
+ end
730
+
731
+ if attributes.has_key?(:'envelopesCompleted')
732
+ self.envelopes_completed = attributes[:'envelopesCompleted']
733
+ end
734
+
735
+ if attributes.has_key?(:'envelopesCompletedCount')
736
+ self.envelopes_completed_count = attributes[:'envelopesCompletedCount']
737
+ end
738
+
739
+ if attributes.has_key?(:'envelopesDeclined')
740
+ self.envelopes_declined = attributes[:'envelopesDeclined']
741
+ end
742
+
743
+ if attributes.has_key?(:'envelopesSent')
744
+ self.envelopes_sent = attributes[:'envelopesSent']
745
+ end
746
+
747
+ if attributes.has_key?(:'envelopesSentCount')
748
+ self.envelopes_sent_count = attributes[:'envelopesSentCount']
749
+ end
750
+
751
+ if attributes.has_key?(:'envelopesVoided')
752
+ self.envelopes_voided = attributes[:'envelopesVoided']
753
+ end
754
+
755
+ if attributes.has_key?(:'envelopeVoidedReason')
756
+ self.envelope_voided_reason = attributes[:'envelopeVoidedReason']
757
+ end
758
+
759
+ if attributes.has_key?(:'eodDocumentDescription')
760
+ self.eod_document_description = attributes[:'eodDocumentDescription']
761
+ end
762
+
763
+ if attributes.has_key?(:'eodDocumentName')
764
+ self.eod_document_name = attributes[:'eodDocumentName']
765
+ end
766
+
767
+ if attributes.has_key?(:'eodDocumentProfileId')
768
+ self.eod_document_profile_id = attributes[:'eodDocumentProfileId']
769
+ end
770
+
771
+ if attributes.has_key?(:'eodTransactionId')
772
+ self.eod_transaction_id = attributes[:'eodTransactionId']
773
+ end
774
+
775
+ if attributes.has_key?(:'eodTransactionName')
776
+ self.eod_transaction_name = attributes[:'eodTransactionName']
777
+ end
778
+
779
+ if attributes.has_key?(:'eventDate')
780
+ self.event_date = attributes[:'eventDate']
781
+ end
782
+
783
+ if attributes.has_key?(:'expirationDate')
784
+ self.expiration_date = attributes[:'expirationDate']
785
+ end
786
+
787
+ if attributes.has_key?(:'expiredTs')
788
+ self.expired_ts = attributes[:'expiredTs']
789
+ end
790
+
791
+ if attributes.has_key?(:'failures')
792
+ self.failures = attributes[:'failures']
793
+ end
794
+
795
+ if attributes.has_key?(:'failureVendorCode')
796
+ self.failure_vendor_code = attributes[:'failureVendorCode']
797
+ end
798
+
799
+ if attributes.has_key?(:'failureVendorReason')
800
+ self.failure_vendor_reason = attributes[:'failureVendorReason']
801
+ end
802
+
803
+ if attributes.has_key?(:'firstSendTs')
804
+ self.first_send_ts = attributes[:'firstSendTs']
805
+ end
806
+
807
+ if attributes.has_key?(:'groupId')
808
+ self.group_id = attributes[:'groupId']
809
+ end
810
+
811
+ if attributes.has_key?(:'groupName')
812
+ self.group_name = attributes[:'groupName']
813
+ end
814
+
815
+ if attributes.has_key?(:'hoursToCompleteEnd')
816
+ self.hours_to_complete_end = attributes[:'hoursToCompleteEnd']
817
+ end
818
+
819
+ if attributes.has_key?(:'hoursToCompleteStart')
820
+ self.hours_to_complete_start = attributes[:'hoursToCompleteStart']
821
+ end
822
+
823
+ if attributes.has_key?(:'idChecksAttempted')
824
+ self.id_checks_attempted = attributes[:'idChecksAttempted']
825
+ end
826
+
827
+ if attributes.has_key?(:'idChecksFailed')
828
+ self.id_checks_failed = attributes[:'idChecksFailed']
829
+ end
830
+
831
+ if attributes.has_key?(:'initialSendTs')
832
+ self.initial_send_ts = attributes[:'initialSendTs']
833
+ end
834
+
835
+ if attributes.has_key?(:'ipAddress')
836
+ self.ip_address = attributes[:'ipAddress']
837
+ end
838
+
839
+ if attributes.has_key?(:'lastActivity')
840
+ self.last_activity = attributes[:'lastActivity']
841
+ end
842
+
843
+ if attributes.has_key?(:'lastActivityDate')
844
+ self.last_activity_date = attributes[:'lastActivityDate']
845
+ end
846
+
847
+ if attributes.has_key?(:'lastSentDate')
848
+ self.last_sent_date = attributes[:'lastSentDate']
849
+ end
850
+
851
+ if attributes.has_key?(:'notSigned')
852
+ self.not_signed = attributes[:'notSigned']
853
+ end
854
+
855
+ if attributes.has_key?(:'numberOfAuthenticatedRecipients')
856
+ self.number_of_authenticated_recipients = attributes[:'numberOfAuthenticatedRecipients']
857
+ end
858
+
859
+ if attributes.has_key?(:'numberOfCompletedSignatures')
860
+ self.number_of_completed_signatures = attributes[:'numberOfCompletedSignatures']
861
+ end
862
+
863
+ if attributes.has_key?(:'numberOfDocuments')
864
+ self.number_of_documents = attributes[:'numberOfDocuments']
865
+ end
866
+
867
+ if attributes.has_key?(:'numberOfPages')
868
+ self.number_of_pages = attributes[:'numberOfPages']
869
+ end
870
+
871
+ if attributes.has_key?(:'numberOfRecipients')
872
+ self.number_of_recipients = attributes[:'numberOfRecipients']
873
+ end
874
+
875
+ if attributes.has_key?(:'numberOfSends')
876
+ self.number_of_sends = attributes[:'numberOfSends']
877
+ end
878
+
879
+ if attributes.has_key?(:'numberOfSigners')
880
+ self.number_of_signers = attributes[:'numberOfSigners']
881
+ end
882
+
883
+ if attributes.has_key?(:'numberOfTotalDocuments')
884
+ self.number_of_total_documents = attributes[:'numberOfTotalDocuments']
885
+ end
886
+
887
+ if attributes.has_key?(:'numberOfTotalPages')
888
+ self.number_of_total_pages = attributes[:'numberOfTotalPages']
889
+ end
890
+
891
+ if attributes.has_key?(:'numberOfTotalSigners')
892
+ self.number_of_total_signers = attributes[:'numberOfTotalSigners']
893
+ end
894
+
895
+ if attributes.has_key?(:'numberOfUniqueSenders')
896
+ self.number_of_unique_senders = attributes[:'numberOfUniqueSenders']
897
+ end
898
+
899
+ if attributes.has_key?(:'numberTotalRecipients')
900
+ self.number_total_recipients = attributes[:'numberTotalRecipients']
901
+ end
902
+
903
+ if attributes.has_key?(:'periodEnd')
904
+ self.period_end = attributes[:'periodEnd']
905
+ end
906
+
907
+ if attributes.has_key?(:'periodStart')
908
+ self.period_start = attributes[:'periodStart']
909
+ end
910
+
911
+ if attributes.has_key?(:'phoneCallsAttempted')
912
+ self.phone_calls_attempted = attributes[:'phoneCallsAttempted']
913
+ end
914
+
915
+ if attributes.has_key?(:'phoneCallsFailed')
916
+ self.phone_calls_failed = attributes[:'phoneCallsFailed']
917
+ end
918
+
919
+ if attributes.has_key?(:'reasonForDeclining')
920
+ self.reason_for_declining = attributes[:'reasonForDeclining']
921
+ end
922
+
923
+ if attributes.has_key?(:'reasonForVoiding')
924
+ self.reason_for_voiding = attributes[:'reasonForVoiding']
925
+ end
926
+
927
+ if attributes.has_key?(:'reassignReason')
928
+ self.reassign_reason = attributes[:'reassignReason']
929
+ end
930
+
931
+ if attributes.has_key?(:'received')
932
+ self.received = attributes[:'received']
933
+ end
934
+
935
+ if attributes.has_key?(:'recipient')
936
+ self.recipient = attributes[:'recipient']
937
+ end
938
+
939
+ if attributes.has_key?(:'recipientAction')
940
+ self.recipient_action = attributes[:'recipientAction']
941
+ end
942
+
943
+ if attributes.has_key?(:'recipientCompanyName')
944
+ self.recipient_company_name = attributes[:'recipientCompanyName']
945
+ end
946
+
947
+ if attributes.has_key?(:'recipientCountry')
948
+ self.recipient_country = attributes[:'recipientCountry']
949
+ end
950
+
951
+ if attributes.has_key?(:'recipientEmail')
952
+ self.recipient_email = attributes[:'recipientEmail']
953
+ end
954
+
955
+ if attributes.has_key?(:'recipientId')
956
+ self.recipient_id = attributes[:'recipientId']
957
+ end
958
+
959
+ if attributes.has_key?(:'recipientName')
960
+ self.recipient_name = attributes[:'recipientName']
961
+ end
962
+
963
+ if attributes.has_key?(:'recipientTemplateRoleName')
964
+ self.recipient_template_role_name = attributes[:'recipientTemplateRoleName']
965
+ end
966
+
967
+ if attributes.has_key?(:'recipientTitle')
968
+ self.recipient_title = attributes[:'recipientTitle']
969
+ end
970
+
971
+ if attributes.has_key?(:'recipientType')
972
+ self.recipient_type = attributes[:'recipientType']
973
+ end
974
+
975
+ if attributes.has_key?(:'recipientUserId')
976
+ self.recipient_user_id = attributes[:'recipientUserId']
977
+ end
978
+
979
+ if attributes.has_key?(:'remainingSignatures')
980
+ self.remaining_signatures = attributes[:'remainingSignatures']
981
+ end
982
+
983
+ if attributes.has_key?(:'routingOrder')
984
+ self.routing_order = attributes[:'routingOrder']
985
+ end
986
+
987
+ if attributes.has_key?(:'senderAccountId')
988
+ self.sender_account_id = attributes[:'senderAccountId']
989
+ end
990
+
991
+ if attributes.has_key?(:'senderCompanyName')
992
+ self.sender_company_name = attributes[:'senderCompanyName']
993
+ end
994
+
995
+ if attributes.has_key?(:'senderCountry')
996
+ self.sender_country = attributes[:'senderCountry']
997
+ end
998
+
999
+ if attributes.has_key?(:'senderEmail')
1000
+ self.sender_email = attributes[:'senderEmail']
1001
+ end
1002
+
1003
+ if attributes.has_key?(:'senderIPAddress')
1004
+ self.sender_ip_address = attributes[:'senderIPAddress']
1005
+ end
1006
+
1007
+ if attributes.has_key?(:'senderJobTitle')
1008
+ self.sender_job_title = attributes[:'senderJobTitle']
1009
+ end
1010
+
1011
+ if attributes.has_key?(:'senderName')
1012
+ self.sender_name = attributes[:'senderName']
1013
+ end
1014
+
1015
+ if attributes.has_key?(:'senderUserId')
1016
+ self.sender_user_id = attributes[:'senderUserId']
1017
+ end
1018
+
1019
+ if attributes.has_key?(:'signDate')
1020
+ self.sign_date = attributes[:'signDate']
1021
+ end
1022
+
1023
+ if attributes.has_key?(:'signed')
1024
+ self.signed = attributes[:'signed']
1025
+ end
1026
+
1027
+ if attributes.has_key?(:'signedDate')
1028
+ self.signed_date = attributes[:'signedDate']
1029
+ end
1030
+
1031
+ if attributes.has_key?(:'signedOnMobile')
1032
+ self.signed_on_mobile = attributes[:'signedOnMobile']
1033
+ end
1034
+
1035
+ if attributes.has_key?(:'signedOnPaper')
1036
+ self.signed_on_paper = attributes[:'signedOnPaper']
1037
+ end
1038
+
1039
+ if attributes.has_key?(:'signerList')
1040
+ self.signer_list = attributes[:'signerList']
1041
+ end
1042
+
1043
+ if attributes.has_key?(:'status')
1044
+ self.status = attributes[:'status']
1045
+ end
1046
+
1047
+ if attributes.has_key?(:'statusChangedDate')
1048
+ self.status_changed_date = attributes[:'statusChangedDate']
1049
+ end
1050
+
1051
+ if attributes.has_key?(:'statusChangedTs')
1052
+ self.status_changed_ts = attributes[:'statusChangedTs']
1053
+ end
1054
+
1055
+ if attributes.has_key?(:'subject')
1056
+ self.subject = attributes[:'subject']
1057
+ end
1058
+
1059
+ if attributes.has_key?(:'successes')
1060
+ self.successes = attributes[:'successes']
1061
+ end
1062
+
1063
+ if attributes.has_key?(:'templatesCreated')
1064
+ self.templates_created = attributes[:'templatesCreated']
1065
+ end
1066
+
1067
+ if attributes.has_key?(:'templatesCreatedCount')
1068
+ self.templates_created_count = attributes[:'templatesCreatedCount']
1069
+ end
1070
+
1071
+ if attributes.has_key?(:'terminalStatusDate')
1072
+ self.terminal_status_date = attributes[:'terminalStatusDate']
1073
+ end
1074
+
1075
+ if attributes.has_key?(:'timeToCompleteSeconds')
1076
+ self.time_to_complete_seconds = attributes[:'timeToCompleteSeconds']
1077
+ end
1078
+
1079
+ if attributes.has_key?(:'timeToDeliver')
1080
+ self.time_to_deliver = attributes[:'timeToDeliver']
1081
+ end
1082
+
1083
+ if attributes.has_key?(:'totalDocuments')
1084
+ self.total_documents = attributes[:'totalDocuments']
1085
+ end
1086
+
1087
+ if attributes.has_key?(:'totalEnvelopes')
1088
+ self.total_envelopes = attributes[:'totalEnvelopes']
1089
+ end
1090
+
1091
+ if attributes.has_key?(:'totalPages')
1092
+ self.total_pages = attributes[:'totalPages']
1093
+ end
1094
+
1095
+ if attributes.has_key?(:'totalRecipients')
1096
+ self.total_recipients = attributes[:'totalRecipients']
1097
+ end
1098
+
1099
+ if attributes.has_key?(:'totalSigners')
1100
+ self.total_signers = attributes[:'totalSigners']
1101
+ end
1102
+
1103
+ if attributes.has_key?(:'uniqueSenders')
1104
+ self.unique_senders = attributes[:'uniqueSenders']
1105
+ end
1106
+
1107
+ if attributes.has_key?(:'userAccountEmail')
1108
+ self.user_account_email = attributes[:'userAccountEmail']
1109
+ end
1110
+
1111
+ if attributes.has_key?(:'userAccountName')
1112
+ self.user_account_name = attributes[:'userAccountName']
1113
+ end
1114
+
1115
+ if attributes.has_key?(:'userAccountStatus')
1116
+ self.user_account_status = attributes[:'userAccountStatus']
1117
+ end
1118
+
1119
+ if attributes.has_key?(:'userCount')
1120
+ self.user_count = attributes[:'userCount']
1121
+ end
1122
+
1123
+ if attributes.has_key?(:'userId')
1124
+ self.user_id = attributes[:'userId']
1125
+ end
1126
+
1127
+ if attributes.has_key?(:'viewDate')
1128
+ self.view_date = attributes[:'viewDate']
1129
+ end
1130
+
1131
+ if attributes.has_key?(:'voidedTs')
1132
+ self.voided_ts = attributes[:'voidedTs']
1133
+ end
1134
+ end
1135
+
1136
+ # Show invalid properties with the reasons. Usually used together with valid?
1137
+ # @return Array for valid properties with the reasons
1138
+ def list_invalid_properties
1139
+ invalid_properties = Array.new
1140
+ invalid_properties
1141
+ end
1142
+
1143
+ # Check to see if the all the properties in the model are valid
1144
+ # @return true if the model is valid
1145
+ def valid?
1146
+ true
1147
+ end
1148
+
1149
+ # Checks equality by comparing each attribute.
1150
+ # @param [Object] Object to be compared
1151
+ def ==(o)
1152
+ return true if self.equal?(o)
1153
+ self.class == o.class &&
1154
+ access_code_required == o.access_code_required &&
1155
+ access_codes_attempted == o.access_codes_attempted &&
1156
+ access_codes_failed == o.access_codes_failed &&
1157
+ account_id == o.account_id &&
1158
+ authentication_category == o.authentication_category &&
1159
+ authentication_success == o.authentication_success &&
1160
+ authentication_type == o.authentication_type &&
1161
+ average_time_to_complete_seconds == o.average_time_to_complete_seconds &&
1162
+ avg_complete_seconds == o.avg_complete_seconds &&
1163
+ completed == o.completed &&
1164
+ completed_ts == o.completed_ts &&
1165
+ created_date == o.created_date &&
1166
+ custom_field == o.custom_field &&
1167
+ declined_date == o.declined_date &&
1168
+ declined_reason == o.declined_reason &&
1169
+ delivered_date == o.delivered_date &&
1170
+ envelope_count == o.envelope_count &&
1171
+ envelope_creator == o.envelope_creator &&
1172
+ envelope_id == o.envelope_id &&
1173
+ envelope_initial_send_ts == o.envelope_initial_send_ts &&
1174
+ envelopes_billed == o.envelopes_billed &&
1175
+ envelopes_completed == o.envelopes_completed &&
1176
+ envelopes_completed_count == o.envelopes_completed_count &&
1177
+ envelopes_declined == o.envelopes_declined &&
1178
+ envelopes_sent == o.envelopes_sent &&
1179
+ envelopes_sent_count == o.envelopes_sent_count &&
1180
+ envelopes_voided == o.envelopes_voided &&
1181
+ envelope_voided_reason == o.envelope_voided_reason &&
1182
+ eod_document_description == o.eod_document_description &&
1183
+ eod_document_name == o.eod_document_name &&
1184
+ eod_document_profile_id == o.eod_document_profile_id &&
1185
+ eod_transaction_id == o.eod_transaction_id &&
1186
+ eod_transaction_name == o.eod_transaction_name &&
1187
+ event_date == o.event_date &&
1188
+ expiration_date == o.expiration_date &&
1189
+ expired_ts == o.expired_ts &&
1190
+ failures == o.failures &&
1191
+ failure_vendor_code == o.failure_vendor_code &&
1192
+ failure_vendor_reason == o.failure_vendor_reason &&
1193
+ first_send_ts == o.first_send_ts &&
1194
+ group_id == o.group_id &&
1195
+ group_name == o.group_name &&
1196
+ hours_to_complete_end == o.hours_to_complete_end &&
1197
+ hours_to_complete_start == o.hours_to_complete_start &&
1198
+ id_checks_attempted == o.id_checks_attempted &&
1199
+ id_checks_failed == o.id_checks_failed &&
1200
+ initial_send_ts == o.initial_send_ts &&
1201
+ ip_address == o.ip_address &&
1202
+ last_activity == o.last_activity &&
1203
+ last_activity_date == o.last_activity_date &&
1204
+ last_sent_date == o.last_sent_date &&
1205
+ not_signed == o.not_signed &&
1206
+ number_of_authenticated_recipients == o.number_of_authenticated_recipients &&
1207
+ number_of_completed_signatures == o.number_of_completed_signatures &&
1208
+ number_of_documents == o.number_of_documents &&
1209
+ number_of_pages == o.number_of_pages &&
1210
+ number_of_recipients == o.number_of_recipients &&
1211
+ number_of_sends == o.number_of_sends &&
1212
+ number_of_signers == o.number_of_signers &&
1213
+ number_of_total_documents == o.number_of_total_documents &&
1214
+ number_of_total_pages == o.number_of_total_pages &&
1215
+ number_of_total_signers == o.number_of_total_signers &&
1216
+ number_of_unique_senders == o.number_of_unique_senders &&
1217
+ number_total_recipients == o.number_total_recipients &&
1218
+ period_end == o.period_end &&
1219
+ period_start == o.period_start &&
1220
+ phone_calls_attempted == o.phone_calls_attempted &&
1221
+ phone_calls_failed == o.phone_calls_failed &&
1222
+ reason_for_declining == o.reason_for_declining &&
1223
+ reason_for_voiding == o.reason_for_voiding &&
1224
+ reassign_reason == o.reassign_reason &&
1225
+ received == o.received &&
1226
+ recipient == o.recipient &&
1227
+ recipient_action == o.recipient_action &&
1228
+ recipient_company_name == o.recipient_company_name &&
1229
+ recipient_country == o.recipient_country &&
1230
+ recipient_email == o.recipient_email &&
1231
+ recipient_id == o.recipient_id &&
1232
+ recipient_name == o.recipient_name &&
1233
+ recipient_template_role_name == o.recipient_template_role_name &&
1234
+ recipient_title == o.recipient_title &&
1235
+ recipient_type == o.recipient_type &&
1236
+ recipient_user_id == o.recipient_user_id &&
1237
+ remaining_signatures == o.remaining_signatures &&
1238
+ routing_order == o.routing_order &&
1239
+ sender_account_id == o.sender_account_id &&
1240
+ sender_company_name == o.sender_company_name &&
1241
+ sender_country == o.sender_country &&
1242
+ sender_email == o.sender_email &&
1243
+ sender_ip_address == o.sender_ip_address &&
1244
+ sender_job_title == o.sender_job_title &&
1245
+ sender_name == o.sender_name &&
1246
+ sender_user_id == o.sender_user_id &&
1247
+ sign_date == o.sign_date &&
1248
+ signed == o.signed &&
1249
+ signed_date == o.signed_date &&
1250
+ signed_on_mobile == o.signed_on_mobile &&
1251
+ signed_on_paper == o.signed_on_paper &&
1252
+ signer_list == o.signer_list &&
1253
+ status == o.status &&
1254
+ status_changed_date == o.status_changed_date &&
1255
+ status_changed_ts == o.status_changed_ts &&
1256
+ subject == o.subject &&
1257
+ successes == o.successes &&
1258
+ templates_created == o.templates_created &&
1259
+ templates_created_count == o.templates_created_count &&
1260
+ terminal_status_date == o.terminal_status_date &&
1261
+ time_to_complete_seconds == o.time_to_complete_seconds &&
1262
+ time_to_deliver == o.time_to_deliver &&
1263
+ total_documents == o.total_documents &&
1264
+ total_envelopes == o.total_envelopes &&
1265
+ total_pages == o.total_pages &&
1266
+ total_recipients == o.total_recipients &&
1267
+ total_signers == o.total_signers &&
1268
+ unique_senders == o.unique_senders &&
1269
+ user_account_email == o.user_account_email &&
1270
+ user_account_name == o.user_account_name &&
1271
+ user_account_status == o.user_account_status &&
1272
+ user_count == o.user_count &&
1273
+ user_id == o.user_id &&
1274
+ view_date == o.view_date &&
1275
+ voided_ts == o.voided_ts
1276
+ end
1277
+
1278
+ # @see the `==` method
1279
+ # @param [Object] Object to be compared
1280
+ def eql?(o)
1281
+ self == o
1282
+ end
1283
+
1284
+ # Calculates hash code according to all attributes.
1285
+ # @return [Fixnum] Hash code
1286
+ def hash
1287
+ [access_code_required, access_codes_attempted, access_codes_failed, account_id, authentication_category, authentication_success, authentication_type, average_time_to_complete_seconds, avg_complete_seconds, completed, completed_ts, created_date, custom_field, declined_date, declined_reason, delivered_date, envelope_count, envelope_creator, envelope_id, envelope_initial_send_ts, envelopes_billed, envelopes_completed, envelopes_completed_count, envelopes_declined, envelopes_sent, envelopes_sent_count, envelopes_voided, envelope_voided_reason, eod_document_description, eod_document_name, eod_document_profile_id, eod_transaction_id, eod_transaction_name, event_date, expiration_date, expired_ts, failures, failure_vendor_code, failure_vendor_reason, first_send_ts, group_id, group_name, hours_to_complete_end, hours_to_complete_start, id_checks_attempted, id_checks_failed, initial_send_ts, ip_address, last_activity, last_activity_date, last_sent_date, not_signed, number_of_authenticated_recipients, number_of_completed_signatures, number_of_documents, number_of_pages, number_of_recipients, number_of_sends, number_of_signers, number_of_total_documents, number_of_total_pages, number_of_total_signers, number_of_unique_senders, number_total_recipients, period_end, period_start, phone_calls_attempted, phone_calls_failed, reason_for_declining, reason_for_voiding, reassign_reason, received, recipient, recipient_action, recipient_company_name, recipient_country, recipient_email, recipient_id, recipient_name, recipient_template_role_name, recipient_title, recipient_type, recipient_user_id, remaining_signatures, routing_order, sender_account_id, sender_company_name, sender_country, sender_email, sender_ip_address, sender_job_title, sender_name, sender_user_id, sign_date, signed, signed_date, signed_on_mobile, signed_on_paper, signer_list, status, status_changed_date, status_changed_ts, subject, successes, templates_created, templates_created_count, terminal_status_date, time_to_complete_seconds, time_to_deliver, total_documents, total_envelopes, total_pages, total_recipients, total_signers, unique_senders, user_account_email, user_account_name, user_account_status, user_count, user_id, view_date, voided_ts].hash
1288
+ end
1289
+
1290
+ # Builds the object from hash
1291
+ # @param [Hash] attributes Model attributes in the form of hash
1292
+ # @return [Object] Returns the model itself
1293
+ def build_from_hash(attributes)
1294
+ return nil unless attributes.is_a?(Hash)
1295
+ self.class.swagger_types.each_pair do |key, type|
1296
+ if type =~ /\AArray<(.*)>/i
1297
+ # check to ensure the input is an array given that the attribute
1298
+ # is documented as an array but the input is not
1299
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1300
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
1301
+ end
1302
+ elsif !attributes[self.class.attribute_map[key]].nil?
1303
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1304
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
1305
+ end
1306
+
1307
+ self
1308
+ end
1309
+
1310
+ # Deserializes the data based on type
1311
+ # @param string type Data type
1312
+ # @param string value Value to be deserialized
1313
+ # @return [Object] Deserialized data
1314
+ def _deserialize(type, value)
1315
+ case type.to_sym
1316
+ when :DateTime
1317
+ DateTime.parse(value)
1318
+ when :Date
1319
+ Date.parse(value)
1320
+ when :String
1321
+ value.to_s
1322
+ when :Integer
1323
+ value.to_i
1324
+ when :Float
1325
+ value.to_f
1326
+ when :BOOLEAN
1327
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1328
+ true
1329
+ else
1330
+ false
1331
+ end
1332
+ when :Object
1333
+ # generic object (usually a Hash), return directly
1334
+ value
1335
+ when /\AArray<(?<inner_type>.+)>\z/
1336
+ inner_type = Regexp.last_match[:inner_type]
1337
+ value.map { |v| _deserialize(inner_type, v) }
1338
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1339
+ k_type = Regexp.last_match[:k_type]
1340
+ v_type = Regexp.last_match[:v_type]
1341
+ {}.tap do |hash|
1342
+ value.each do |k, v|
1343
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1344
+ end
1345
+ end
1346
+ else # model
1347
+ temp_model = DocuSign_eSign.const_get(type).new
1348
+ temp_model.build_from_hash(value)
1349
+ end
1350
+ end
1351
+
1352
+ # Returns the string representation of the object
1353
+ # @return [String] String presentation of the object
1354
+ def to_s
1355
+ to_hash.to_s
1356
+ end
1357
+
1358
+ # to_body is an alias to to_hash (backward compatibility)
1359
+ # @return [Hash] Returns the object in the form of hash
1360
+ def to_body
1361
+ to_hash
1362
+ end
1363
+
1364
+ # Returns the object in the form of hash
1365
+ # @return [Hash] Returns the object in the form of hash
1366
+ def to_hash
1367
+ hash = {}
1368
+ self.class.attribute_map.each_pair do |attr, param|
1369
+ value = self.send(attr)
1370
+ next if value.nil?
1371
+ hash[param] = _to_hash(value)
1372
+ end
1373
+ hash
1374
+ end
1375
+
1376
+ # Outputs non-array value in the form of hash
1377
+ # For object, use to_hash. Otherwise, just return the value
1378
+ # @param [Object] value Any valid value
1379
+ # @return [Hash] Returns the value in the form of hash
1380
+ def _to_hash(value)
1381
+ if value.is_a?(Array)
1382
+ value.compact.map { |v| _to_hash(v) }
1383
+ elsif value.is_a?(Hash)
1384
+ {}.tap do |hash|
1385
+ value.each { |k, v| hash[k] = _to_hash(v) }
1386
+ end
1387
+ elsif value.respond_to? :to_hash
1388
+ value.to_hash
1389
+ else
1390
+ value
1391
+ end
1392
+ end
1393
+
1394
+ end
1395
+ end