docusign_esign 3.1.0.pre.rc1 → 3.1.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,824 +0,0 @@
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
7
- Contact: devcenter@docusign.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- =end
11
-
12
- require 'date'
13
-
14
- module DocuSign_eSign
15
-
16
- class EnvelopeTemplateResult
17
- # When set to **true**, Document Markup is enabled for envelope. Account must have Document Markup enabled to use this
18
- attr_accessor :allow_markup
19
-
20
- # When set to **true**, the recipient can redirect an envelope to a more appropriate recipient.
21
- attr_accessor :allow_reassign
22
-
23
- #
24
- attr_accessor :allow_view_history
25
-
26
- # When set to **true**, the envelope is queued for processing and the value of the `status` property is set to 'Processing'. Additionally, get status calls return 'Processing' until completed.
27
- attr_accessor :asynchronous
28
-
29
- #
30
- attr_accessor :attachments_uri
31
-
32
- # Specifies the Authoritative copy feature. If set to true the Authoritative copy feature is enabled.
33
- attr_accessor :authoritative_copy
34
-
35
- #
36
- attr_accessor :authoritative_copy_default
37
-
38
- #
39
- attr_accessor :auto_navigation
40
-
41
- #
42
- attr_accessor :brand_id
43
-
44
- #
45
- attr_accessor :brand_lock
46
-
47
- # Retrieves a URI for an endpoint that allows you to easily retrieve certificate information.
48
- attr_accessor :certificate_uri
49
-
50
- # Specifies the date and time this item was completed.
51
- attr_accessor :completed_date_time
52
-
53
- #
54
- attr_accessor :created
55
-
56
- # Indicates the date and time the item was created.
57
- attr_accessor :created_date_time
58
-
59
- attr_accessor :custom_fields
60
-
61
- # Contains a URI for an endpoint that you can use to retrieve the custom fields.
62
- attr_accessor :custom_fields_uri
63
-
64
- # The date and time the recipient declined the document.
65
- attr_accessor :declined_date_time
66
-
67
- # Specifies the data and time the item was deleted.
68
- attr_accessor :deleted_date_time
69
-
70
- # Reserved: For DocuSign use only.
71
- attr_accessor :delivered_date_time
72
-
73
- #
74
- attr_accessor :description
75
-
76
- # Complex element contains the details on the documents in the envelope.
77
- attr_accessor :documents
78
-
79
- #
80
- attr_accessor :documents_combined_uri
81
-
82
- # Contains a URI for an endpoint that you can use to retrieve the documents.
83
- attr_accessor :documents_uri
84
-
85
- #
86
- attr_accessor :email_blurb
87
-
88
- attr_accessor :email_settings
89
-
90
- # Specifies the subject of the email that is sent to all recipients. See [ML:Template Email Subject Merge Fields] for information about adding merge field information to the email subject.
91
- attr_accessor :email_subject
92
-
93
- # When set to **true**, the signer is allowed to print the document and sign it on paper.
94
- attr_accessor :enable_wet_sign
95
-
96
- # When set to **true**, documents with tabs can only be viewed by signers that have a tab on that document. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all the documents in an envelope, unless they are specifically excluded using this setting when an envelope is sent. Documents that do not have tabs are always visible to all recipients, unless they are specifically excluded using this setting when an envelope is sent. Your account must have Document Visibility enabled to use this.
97
- attr_accessor :enforce_signer_visibility
98
-
99
- # The envelope ID of the envelope status that failed to post.
100
- attr_accessor :envelope_id
101
-
102
- # When set to **true**, Envelope ID Stamping is enabled.
103
- attr_accessor :envelope_id_stamping
104
-
105
- # Contains a URI for an endpoint that you can use to retrieve the envelope or envelopes.
106
- attr_accessor :envelope_uri
107
-
108
- #
109
- attr_accessor :folder_id
110
-
111
- #
112
- attr_accessor :folder_name
113
-
114
- #
115
- attr_accessor :folder_uri
116
-
117
- #
118
- attr_accessor :initial_sent_date_time
119
-
120
- # When set to **true**, indicates that this module is enabled on the account.
121
- attr_accessor :is21_cfr_part11
122
-
123
- #
124
- attr_accessor :is_signature_provider_envelope
125
-
126
- #
127
- attr_accessor :last_modified
128
-
129
- # The date and time the item was last modified.
130
- attr_accessor :last_modified_date_time
131
-
132
- attr_accessor :lock_information
133
-
134
- # When set to **true**, prevents senders from changing the contents of `emailBlurb` and `emailSubject` properties for the envelope. Additionally, this prevents users from making changes to the contents of `emailBlurb` and `emailSubject` properties when correcting envelopes. However, if the `messageLock` node is set to true**** and the `emailSubject` property is empty, senders and correctors are able to add a subject to the envelope.
135
- attr_accessor :message_lock
136
-
137
- #
138
- attr_accessor :name
139
-
140
- attr_accessor :notification
141
-
142
- # Contains a URI for an endpoint that you can use to retrieve the notifications.
143
- attr_accessor :notification_uri
144
-
145
- attr_accessor :owner
146
-
147
- #
148
- attr_accessor :page_count
149
-
150
- #
151
- attr_accessor :parent_folder_uri
152
-
153
- #
154
- attr_accessor :password
155
-
156
- #
157
- attr_accessor :purge_state
158
-
159
- attr_accessor :recipients
160
-
161
- # When set to **true**, prevents senders from changing, correcting, or deleting the recipient information for the envelope.
162
- attr_accessor :recipients_lock
163
-
164
- # Contains a URI for an endpoint that you can use to retrieve the recipients.
165
- attr_accessor :recipients_uri
166
-
167
- # The date and time the envelope was sent.
168
- attr_accessor :sent_date_time
169
-
170
- # When set to **true**, this custom tab is shared.
171
- attr_accessor :shared
172
-
173
- #
174
- attr_accessor :signer_can_sign_on_mobile
175
-
176
- # Specifies the physical location where the signing takes place. It can have two enumeration values; InPerson and Online. The default value is Online.
177
- attr_accessor :signing_location
178
-
179
- # 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.
180
- attr_accessor :status
181
-
182
- # The data and time the status changed.
183
- attr_accessor :status_changed_date_time
184
-
185
- # The unique identifier of the template. If this is not provided, DocuSign will generate a value.
186
- attr_accessor :template_id
187
-
188
- # Contains a URI for an endpoint which you can use to retrieve the templates.
189
- attr_accessor :templates_uri
190
-
191
- # Used to identify an envelope. The id is a sender-generated value and is valid in the DocuSign system for 7 days. It is recommended that a transaction ID is used for offline signing to ensure that an envelope is not sent multiple times. The `transactionId` property can be used determine an envelope's status (i.e. was it created or not) in cases where the internet connection was lost before the envelope status was returned.
192
- attr_accessor :transaction_id
193
-
194
- #
195
- attr_accessor :uri
196
-
197
- # When set to **true**, the disclosure is shown to recipients in accordance with the account's Electronic Record and Signature Disclosure frequency setting. When set to **false**, the Electronic Record and Signature Disclosure is not shown to any envelope recipients. If the `useDisclosure` property is not set, then the account's normal disclosure setting is used and the value of the `useDisclosure` property is not returned in responses when getting envelope information.
198
- attr_accessor :use_disclosure
199
-
200
- # The date and time the envelope or template was voided.
201
- attr_accessor :voided_date_time
202
-
203
- # The reason the envelope or template was voided.
204
- attr_accessor :voided_reason
205
-
206
-
207
- # Attribute mapping from ruby-style variable name to JSON key.
208
- def self.attribute_map
209
- {
210
- :'allow_markup' => :'allowMarkup',
211
- :'allow_reassign' => :'allowReassign',
212
- :'allow_view_history' => :'allowViewHistory',
213
- :'asynchronous' => :'asynchronous',
214
- :'attachments_uri' => :'attachmentsUri',
215
- :'authoritative_copy' => :'authoritativeCopy',
216
- :'authoritative_copy_default' => :'authoritativeCopyDefault',
217
- :'auto_navigation' => :'autoNavigation',
218
- :'brand_id' => :'brandId',
219
- :'brand_lock' => :'brandLock',
220
- :'certificate_uri' => :'certificateUri',
221
- :'completed_date_time' => :'completedDateTime',
222
- :'created' => :'created',
223
- :'created_date_time' => :'createdDateTime',
224
- :'custom_fields' => :'customFields',
225
- :'custom_fields_uri' => :'customFieldsUri',
226
- :'declined_date_time' => :'declinedDateTime',
227
- :'deleted_date_time' => :'deletedDateTime',
228
- :'delivered_date_time' => :'deliveredDateTime',
229
- :'description' => :'description',
230
- :'documents' => :'documents',
231
- :'documents_combined_uri' => :'documentsCombinedUri',
232
- :'documents_uri' => :'documentsUri',
233
- :'email_blurb' => :'emailBlurb',
234
- :'email_settings' => :'emailSettings',
235
- :'email_subject' => :'emailSubject',
236
- :'enable_wet_sign' => :'enableWetSign',
237
- :'enforce_signer_visibility' => :'enforceSignerVisibility',
238
- :'envelope_id' => :'envelopeId',
239
- :'envelope_id_stamping' => :'envelopeIdStamping',
240
- :'envelope_uri' => :'envelopeUri',
241
- :'folder_id' => :'folderId',
242
- :'folder_name' => :'folderName',
243
- :'folder_uri' => :'folderUri',
244
- :'initial_sent_date_time' => :'initialSentDateTime',
245
- :'is21_cfr_part11' => :'is21CFRPart11',
246
- :'is_signature_provider_envelope' => :'isSignatureProviderEnvelope',
247
- :'last_modified' => :'lastModified',
248
- :'last_modified_date_time' => :'lastModifiedDateTime',
249
- :'lock_information' => :'lockInformation',
250
- :'message_lock' => :'messageLock',
251
- :'name' => :'name',
252
- :'notification' => :'notification',
253
- :'notification_uri' => :'notificationUri',
254
- :'owner' => :'owner',
255
- :'page_count' => :'pageCount',
256
- :'parent_folder_uri' => :'parentFolderUri',
257
- :'password' => :'password',
258
- :'purge_state' => :'purgeState',
259
- :'recipients' => :'recipients',
260
- :'recipients_lock' => :'recipientsLock',
261
- :'recipients_uri' => :'recipientsUri',
262
- :'sent_date_time' => :'sentDateTime',
263
- :'shared' => :'shared',
264
- :'signer_can_sign_on_mobile' => :'signerCanSignOnMobile',
265
- :'signing_location' => :'signingLocation',
266
- :'status' => :'status',
267
- :'status_changed_date_time' => :'statusChangedDateTime',
268
- :'template_id' => :'templateId',
269
- :'templates_uri' => :'templatesUri',
270
- :'transaction_id' => :'transactionId',
271
- :'uri' => :'uri',
272
- :'use_disclosure' => :'useDisclosure',
273
- :'voided_date_time' => :'voidedDateTime',
274
- :'voided_reason' => :'voidedReason'
275
- }
276
- end
277
-
278
- # Attribute type mapping.
279
- def self.swagger_types
280
- {
281
- :'allow_markup' => :'String',
282
- :'allow_reassign' => :'String',
283
- :'allow_view_history' => :'String',
284
- :'asynchronous' => :'String',
285
- :'attachments_uri' => :'String',
286
- :'authoritative_copy' => :'String',
287
- :'authoritative_copy_default' => :'String',
288
- :'auto_navigation' => :'String',
289
- :'brand_id' => :'String',
290
- :'brand_lock' => :'String',
291
- :'certificate_uri' => :'String',
292
- :'completed_date_time' => :'String',
293
- :'created' => :'String',
294
- :'created_date_time' => :'String',
295
- :'custom_fields' => :'CustomFields',
296
- :'custom_fields_uri' => :'String',
297
- :'declined_date_time' => :'String',
298
- :'deleted_date_time' => :'String',
299
- :'delivered_date_time' => :'String',
300
- :'description' => :'String',
301
- :'documents' => :'Array<Document>',
302
- :'documents_combined_uri' => :'String',
303
- :'documents_uri' => :'String',
304
- :'email_blurb' => :'String',
305
- :'email_settings' => :'EmailSettings',
306
- :'email_subject' => :'String',
307
- :'enable_wet_sign' => :'String',
308
- :'enforce_signer_visibility' => :'String',
309
- :'envelope_id' => :'String',
310
- :'envelope_id_stamping' => :'String',
311
- :'envelope_uri' => :'String',
312
- :'folder_id' => :'String',
313
- :'folder_name' => :'String',
314
- :'folder_uri' => :'String',
315
- :'initial_sent_date_time' => :'String',
316
- :'is21_cfr_part11' => :'String',
317
- :'is_signature_provider_envelope' => :'String',
318
- :'last_modified' => :'String',
319
- :'last_modified_date_time' => :'String',
320
- :'lock_information' => :'LockInformation',
321
- :'message_lock' => :'String',
322
- :'name' => :'String',
323
- :'notification' => :'Notification',
324
- :'notification_uri' => :'String',
325
- :'owner' => :'UserInfo',
326
- :'page_count' => :'Integer',
327
- :'parent_folder_uri' => :'String',
328
- :'password' => :'String',
329
- :'purge_state' => :'String',
330
- :'recipients' => :'Recipients',
331
- :'recipients_lock' => :'String',
332
- :'recipients_uri' => :'String',
333
- :'sent_date_time' => :'String',
334
- :'shared' => :'String',
335
- :'signer_can_sign_on_mobile' => :'String',
336
- :'signing_location' => :'String',
337
- :'status' => :'String',
338
- :'status_changed_date_time' => :'String',
339
- :'template_id' => :'String',
340
- :'templates_uri' => :'String',
341
- :'transaction_id' => :'String',
342
- :'uri' => :'String',
343
- :'use_disclosure' => :'String',
344
- :'voided_date_time' => :'String',
345
- :'voided_reason' => :'String'
346
- }
347
- end
348
-
349
- # Initializes the object
350
- # @param [Hash] attributes Model attributes in the form of hash
351
- def initialize(attributes = {})
352
- return unless attributes.is_a?(Hash)
353
-
354
- # convert string to symbol for hash key
355
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
356
-
357
- if attributes.has_key?(:'allowMarkup')
358
- self.allow_markup = attributes[:'allowMarkup']
359
- end
360
-
361
- if attributes.has_key?(:'allowReassign')
362
- self.allow_reassign = attributes[:'allowReassign']
363
- end
364
-
365
- if attributes.has_key?(:'allowViewHistory')
366
- self.allow_view_history = attributes[:'allowViewHistory']
367
- end
368
-
369
- if attributes.has_key?(:'asynchronous')
370
- self.asynchronous = attributes[:'asynchronous']
371
- end
372
-
373
- if attributes.has_key?(:'attachmentsUri')
374
- self.attachments_uri = attributes[:'attachmentsUri']
375
- end
376
-
377
- if attributes.has_key?(:'authoritativeCopy')
378
- self.authoritative_copy = attributes[:'authoritativeCopy']
379
- end
380
-
381
- if attributes.has_key?(:'authoritativeCopyDefault')
382
- self.authoritative_copy_default = attributes[:'authoritativeCopyDefault']
383
- end
384
-
385
- if attributes.has_key?(:'autoNavigation')
386
- self.auto_navigation = attributes[:'autoNavigation']
387
- end
388
-
389
- if attributes.has_key?(:'brandId')
390
- self.brand_id = attributes[:'brandId']
391
- end
392
-
393
- if attributes.has_key?(:'brandLock')
394
- self.brand_lock = attributes[:'brandLock']
395
- end
396
-
397
- if attributes.has_key?(:'certificateUri')
398
- self.certificate_uri = attributes[:'certificateUri']
399
- end
400
-
401
- if attributes.has_key?(:'completedDateTime')
402
- self.completed_date_time = attributes[:'completedDateTime']
403
- end
404
-
405
- if attributes.has_key?(:'created')
406
- self.created = attributes[:'created']
407
- end
408
-
409
- if attributes.has_key?(:'createdDateTime')
410
- self.created_date_time = attributes[:'createdDateTime']
411
- end
412
-
413
- if attributes.has_key?(:'customFields')
414
- self.custom_fields = attributes[:'customFields']
415
- end
416
-
417
- if attributes.has_key?(:'customFieldsUri')
418
- self.custom_fields_uri = attributes[:'customFieldsUri']
419
- end
420
-
421
- if attributes.has_key?(:'declinedDateTime')
422
- self.declined_date_time = attributes[:'declinedDateTime']
423
- end
424
-
425
- if attributes.has_key?(:'deletedDateTime')
426
- self.deleted_date_time = attributes[:'deletedDateTime']
427
- end
428
-
429
- if attributes.has_key?(:'deliveredDateTime')
430
- self.delivered_date_time = attributes[:'deliveredDateTime']
431
- end
432
-
433
- if attributes.has_key?(:'description')
434
- self.description = attributes[:'description']
435
- end
436
-
437
- if attributes.has_key?(:'documents')
438
- if (value = attributes[:'documents']).is_a?(Array)
439
- self.documents = value
440
- end
441
- end
442
-
443
- if attributes.has_key?(:'documentsCombinedUri')
444
- self.documents_combined_uri = attributes[:'documentsCombinedUri']
445
- end
446
-
447
- if attributes.has_key?(:'documentsUri')
448
- self.documents_uri = attributes[:'documentsUri']
449
- end
450
-
451
- if attributes.has_key?(:'emailBlurb')
452
- self.email_blurb = attributes[:'emailBlurb']
453
- end
454
-
455
- if attributes.has_key?(:'emailSettings')
456
- self.email_settings = attributes[:'emailSettings']
457
- end
458
-
459
- if attributes.has_key?(:'emailSubject')
460
- self.email_subject = attributes[:'emailSubject']
461
- end
462
-
463
- if attributes.has_key?(:'enableWetSign')
464
- self.enable_wet_sign = attributes[:'enableWetSign']
465
- end
466
-
467
- if attributes.has_key?(:'enforceSignerVisibility')
468
- self.enforce_signer_visibility = attributes[:'enforceSignerVisibility']
469
- end
470
-
471
- if attributes.has_key?(:'envelopeId')
472
- self.envelope_id = attributes[:'envelopeId']
473
- end
474
-
475
- if attributes.has_key?(:'envelopeIdStamping')
476
- self.envelope_id_stamping = attributes[:'envelopeIdStamping']
477
- end
478
-
479
- if attributes.has_key?(:'envelopeUri')
480
- self.envelope_uri = attributes[:'envelopeUri']
481
- end
482
-
483
- if attributes.has_key?(:'folderId')
484
- self.folder_id = attributes[:'folderId']
485
- end
486
-
487
- if attributes.has_key?(:'folderName')
488
- self.folder_name = attributes[:'folderName']
489
- end
490
-
491
- if attributes.has_key?(:'folderUri')
492
- self.folder_uri = attributes[:'folderUri']
493
- end
494
-
495
- if attributes.has_key?(:'initialSentDateTime')
496
- self.initial_sent_date_time = attributes[:'initialSentDateTime']
497
- end
498
-
499
- if attributes.has_key?(:'is21CFRPart11')
500
- self.is21_cfr_part11 = attributes[:'is21CFRPart11']
501
- end
502
-
503
- if attributes.has_key?(:'isSignatureProviderEnvelope')
504
- self.is_signature_provider_envelope = attributes[:'isSignatureProviderEnvelope']
505
- end
506
-
507
- if attributes.has_key?(:'lastModified')
508
- self.last_modified = attributes[:'lastModified']
509
- end
510
-
511
- if attributes.has_key?(:'lastModifiedDateTime')
512
- self.last_modified_date_time = attributes[:'lastModifiedDateTime']
513
- end
514
-
515
- if attributes.has_key?(:'lockInformation')
516
- self.lock_information = attributes[:'lockInformation']
517
- end
518
-
519
- if attributes.has_key?(:'messageLock')
520
- self.message_lock = attributes[:'messageLock']
521
- end
522
-
523
- if attributes.has_key?(:'name')
524
- self.name = attributes[:'name']
525
- end
526
-
527
- if attributes.has_key?(:'notification')
528
- self.notification = attributes[:'notification']
529
- end
530
-
531
- if attributes.has_key?(:'notificationUri')
532
- self.notification_uri = attributes[:'notificationUri']
533
- end
534
-
535
- if attributes.has_key?(:'owner')
536
- self.owner = attributes[:'owner']
537
- end
538
-
539
- if attributes.has_key?(:'pageCount')
540
- self.page_count = attributes[:'pageCount']
541
- end
542
-
543
- if attributes.has_key?(:'parentFolderUri')
544
- self.parent_folder_uri = attributes[:'parentFolderUri']
545
- end
546
-
547
- if attributes.has_key?(:'password')
548
- self.password = attributes[:'password']
549
- end
550
-
551
- if attributes.has_key?(:'purgeState')
552
- self.purge_state = attributes[:'purgeState']
553
- end
554
-
555
- if attributes.has_key?(:'recipients')
556
- self.recipients = attributes[:'recipients']
557
- end
558
-
559
- if attributes.has_key?(:'recipientsLock')
560
- self.recipients_lock = attributes[:'recipientsLock']
561
- end
562
-
563
- if attributes.has_key?(:'recipientsUri')
564
- self.recipients_uri = attributes[:'recipientsUri']
565
- end
566
-
567
- if attributes.has_key?(:'sentDateTime')
568
- self.sent_date_time = attributes[:'sentDateTime']
569
- end
570
-
571
- if attributes.has_key?(:'shared')
572
- self.shared = attributes[:'shared']
573
- end
574
-
575
- if attributes.has_key?(:'signerCanSignOnMobile')
576
- self.signer_can_sign_on_mobile = attributes[:'signerCanSignOnMobile']
577
- end
578
-
579
- if attributes.has_key?(:'signingLocation')
580
- self.signing_location = attributes[:'signingLocation']
581
- end
582
-
583
- if attributes.has_key?(:'status')
584
- self.status = attributes[:'status']
585
- end
586
-
587
- if attributes.has_key?(:'statusChangedDateTime')
588
- self.status_changed_date_time = attributes[:'statusChangedDateTime']
589
- end
590
-
591
- if attributes.has_key?(:'templateId')
592
- self.template_id = attributes[:'templateId']
593
- end
594
-
595
- if attributes.has_key?(:'templatesUri')
596
- self.templates_uri = attributes[:'templatesUri']
597
- end
598
-
599
- if attributes.has_key?(:'transactionId')
600
- self.transaction_id = attributes[:'transactionId']
601
- end
602
-
603
- if attributes.has_key?(:'uri')
604
- self.uri = attributes[:'uri']
605
- end
606
-
607
- if attributes.has_key?(:'useDisclosure')
608
- self.use_disclosure = attributes[:'useDisclosure']
609
- end
610
-
611
- if attributes.has_key?(:'voidedDateTime')
612
- self.voided_date_time = attributes[:'voidedDateTime']
613
- end
614
-
615
- if attributes.has_key?(:'voidedReason')
616
- self.voided_reason = attributes[:'voidedReason']
617
- end
618
-
619
- end
620
-
621
- # Show invalid properties with the reasons. Usually used together with valid?
622
- # @return Array for valid properies with the reasons
623
- def list_invalid_properties
624
- invalid_properties = Array.new
625
- return invalid_properties
626
- end
627
-
628
- # Check to see if the all the properties in the model are valid
629
- # @return true if the model is valid
630
- def valid?
631
- return true
632
- end
633
-
634
- # Checks equality by comparing each attribute.
635
- # @param [Object] Object to be compared
636
- def ==(o)
637
- return true if self.equal?(o)
638
- self.class == o.class &&
639
- allow_markup == o.allow_markup &&
640
- allow_reassign == o.allow_reassign &&
641
- allow_view_history == o.allow_view_history &&
642
- asynchronous == o.asynchronous &&
643
- attachments_uri == o.attachments_uri &&
644
- authoritative_copy == o.authoritative_copy &&
645
- authoritative_copy_default == o.authoritative_copy_default &&
646
- auto_navigation == o.auto_navigation &&
647
- brand_id == o.brand_id &&
648
- brand_lock == o.brand_lock &&
649
- certificate_uri == o.certificate_uri &&
650
- completed_date_time == o.completed_date_time &&
651
- created == o.created &&
652
- created_date_time == o.created_date_time &&
653
- custom_fields == o.custom_fields &&
654
- custom_fields_uri == o.custom_fields_uri &&
655
- declined_date_time == o.declined_date_time &&
656
- deleted_date_time == o.deleted_date_time &&
657
- delivered_date_time == o.delivered_date_time &&
658
- description == o.description &&
659
- documents == o.documents &&
660
- documents_combined_uri == o.documents_combined_uri &&
661
- documents_uri == o.documents_uri &&
662
- email_blurb == o.email_blurb &&
663
- email_settings == o.email_settings &&
664
- email_subject == o.email_subject &&
665
- enable_wet_sign == o.enable_wet_sign &&
666
- enforce_signer_visibility == o.enforce_signer_visibility &&
667
- envelope_id == o.envelope_id &&
668
- envelope_id_stamping == o.envelope_id_stamping &&
669
- envelope_uri == o.envelope_uri &&
670
- folder_id == o.folder_id &&
671
- folder_name == o.folder_name &&
672
- folder_uri == o.folder_uri &&
673
- initial_sent_date_time == o.initial_sent_date_time &&
674
- is21_cfr_part11 == o.is21_cfr_part11 &&
675
- is_signature_provider_envelope == o.is_signature_provider_envelope &&
676
- last_modified == o.last_modified &&
677
- last_modified_date_time == o.last_modified_date_time &&
678
- lock_information == o.lock_information &&
679
- message_lock == o.message_lock &&
680
- name == o.name &&
681
- notification == o.notification &&
682
- notification_uri == o.notification_uri &&
683
- owner == o.owner &&
684
- page_count == o.page_count &&
685
- parent_folder_uri == o.parent_folder_uri &&
686
- password == o.password &&
687
- purge_state == o.purge_state &&
688
- recipients == o.recipients &&
689
- recipients_lock == o.recipients_lock &&
690
- recipients_uri == o.recipients_uri &&
691
- sent_date_time == o.sent_date_time &&
692
- shared == o.shared &&
693
- signer_can_sign_on_mobile == o.signer_can_sign_on_mobile &&
694
- signing_location == o.signing_location &&
695
- status == o.status &&
696
- status_changed_date_time == o.status_changed_date_time &&
697
- template_id == o.template_id &&
698
- templates_uri == o.templates_uri &&
699
- transaction_id == o.transaction_id &&
700
- uri == o.uri &&
701
- use_disclosure == o.use_disclosure &&
702
- voided_date_time == o.voided_date_time &&
703
- voided_reason == o.voided_reason
704
- end
705
-
706
- # @see the `==` method
707
- # @param [Object] Object to be compared
708
- def eql?(o)
709
- self == o
710
- end
711
-
712
- # Calculates hash code according to all attributes.
713
- # @return [Fixnum] Hash code
714
- def hash
715
- [allow_markup, allow_reassign, allow_view_history, asynchronous, attachments_uri, authoritative_copy, authoritative_copy_default, auto_navigation, brand_id, brand_lock, certificate_uri, completed_date_time, created, created_date_time, custom_fields, custom_fields_uri, declined_date_time, deleted_date_time, delivered_date_time, description, documents, documents_combined_uri, documents_uri, email_blurb, email_settings, email_subject, enable_wet_sign, enforce_signer_visibility, envelope_id, envelope_id_stamping, envelope_uri, folder_id, folder_name, folder_uri, initial_sent_date_time, is21_cfr_part11, is_signature_provider_envelope, last_modified, last_modified_date_time, lock_information, message_lock, name, notification, notification_uri, owner, page_count, parent_folder_uri, password, purge_state, recipients, recipients_lock, recipients_uri, sent_date_time, shared, signer_can_sign_on_mobile, signing_location, status, status_changed_date_time, template_id, templates_uri, transaction_id, uri, use_disclosure, voided_date_time, voided_reason].hash
716
- end
717
-
718
- # Builds the object from hash
719
- # @param [Hash] attributes Model attributes in the form of hash
720
- # @return [Object] Returns the model itself
721
- def build_from_hash(attributes)
722
- return nil unless attributes.is_a?(Hash)
723
- self.class.swagger_types.each_pair do |key, type|
724
- if type =~ /\AArray<(.*)>/i
725
- # check to ensure the input is an array given that the the attribute
726
- # is documented as an array but the input is not
727
- if attributes[self.class.attribute_map[key]].is_a?(Array)
728
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
729
- end
730
- elsif !attributes[self.class.attribute_map[key]].nil?
731
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
732
- end # or else data not found in attributes(hash), not an issue as the data can be optional
733
- end
734
-
735
- self
736
- end
737
-
738
- # Deserializes the data based on type
739
- # @param string type Data type
740
- # @param string value Value to be deserialized
741
- # @return [Object] Deserialized data
742
- def _deserialize(type, value)
743
- case type.to_sym
744
- when :DateTime
745
- DateTime.parse(value)
746
- when :Date
747
- Date.parse(value)
748
- when :String
749
- value.to_s
750
- when :Integer
751
- value.to_i
752
- when :Float
753
- value.to_f
754
- when :BOOLEAN
755
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
756
- true
757
- else
758
- false
759
- end
760
- when :Object
761
- # generic object (usually a Hash), return directly
762
- value
763
- when /\AArray<(?<inner_type>.+)>\z/
764
- inner_type = Regexp.last_match[:inner_type]
765
- value.map { |v| _deserialize(inner_type, v) }
766
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
767
- k_type = Regexp.last_match[:k_type]
768
- v_type = Regexp.last_match[:v_type]
769
- {}.tap do |hash|
770
- value.each do |k, v|
771
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
772
- end
773
- end
774
- else # model
775
- temp_model = DocuSign_eSign.const_get(type).new
776
- temp_model.build_from_hash(value)
777
- end
778
- end
779
-
780
- # Returns the string representation of the object
781
- # @return [String] String presentation of the object
782
- def to_s
783
- to_hash.to_s
784
- end
785
-
786
- # to_body is an alias to to_hash (backward compatibility)
787
- # @return [Hash] Returns the object in the form of hash
788
- def to_body
789
- to_hash
790
- end
791
-
792
- # Returns the object in the form of hash
793
- # @return [Hash] Returns the object in the form of hash
794
- def to_hash
795
- hash = {}
796
- self.class.attribute_map.each_pair do |attr, param|
797
- value = self.send(attr)
798
- next if value.nil?
799
- hash[param] = _to_hash(value)
800
- end
801
- hash
802
- end
803
-
804
- # Outputs non-array value in the form of hash
805
- # For object, use to_hash. Otherwise, just return the value
806
- # @param [Object] value Any valid value
807
- # @return [Hash] Returns the value in the form of hash
808
- def _to_hash(value)
809
- if value.is_a?(Array)
810
- value.compact.map{ |v| _to_hash(v) }
811
- elsif value.is_a?(Hash)
812
- {}.tap do |hash|
813
- value.each { |k, v| hash[k] = _to_hash(v) }
814
- end
815
- elsif value.respond_to? :to_hash
816
- value.to_hash
817
- else
818
- value
819
- end
820
- end
821
-
822
- end
823
-
824
- end