docusign_esign 3.5.0 → 3.6.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/docusign_esign-2.6.0.gem +0 -0
  4. data/docusign_esign-2.7.0.rc1.gem +0 -0
  5. data/docusign_esign-3.5.0.gem +0 -0
  6. data/lib/docusign_esign.rb +10 -0
  7. data/lib/docusign_esign/api/accounts_api.rb +556 -4
  8. data/lib/docusign_esign/api/envelopes_api.rb +56 -2
  9. data/lib/docusign_esign/models/account_settings_information.rb +20 -1
  10. data/lib/docusign_esign/models/account_signature.rb +497 -0
  11. data/lib/docusign_esign/models/account_signature_definition.rb +338 -0
  12. data/lib/docusign_esign/models/account_signatures_information.rb +187 -0
  13. data/lib/docusign_esign/models/correct_view_request.rb +14 -4
  14. data/lib/docusign_esign/models/in_person_signer.rb +11 -1
  15. data/lib/docusign_esign/models/notary_certificate.rb +869 -0
  16. data/lib/docusign_esign/models/notary_recipient.rb +1097 -0
  17. data/lib/docusign_esign/models/notary_seal.rb +983 -0
  18. data/lib/docusign_esign/models/recipients.rb +13 -1
  19. data/lib/docusign_esign/models/signature_group.rb +205 -0
  20. data/lib/docusign_esign/models/signature_group_def.rb +195 -0
  21. data/lib/docusign_esign/models/signature_user.rb +215 -0
  22. data/lib/docusign_esign/models/signature_user_def.rb +205 -0
  23. data/lib/docusign_esign/models/signer.rb +11 -1
  24. data/lib/docusign_esign/models/tabs.rb +25 -1
  25. data/lib/docusign_esign/models/template_recipients.rb +13 -1
  26. data/lib/docusign_esign/models/template_tabs.rb +25 -1
  27. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  28. data/lib/docusign_esign/models/witness.rb +11 -1
  29. data/lib/docusign_esign/version.rb +1 -1
  30. data/tests/Gemfile.lock +1 -1
  31. metadata +17 -4
@@ -0,0 +1,983 @@
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 NotarySeal
17
+ #
18
+ attr_accessor :anchor_allow_white_space_in_characters
19
+
20
+ attr_accessor :anchor_allow_white_space_in_characters_metadata
21
+
22
+ # When set to **true**, the anchor string does not consider case when matching strings in the document. The default value is **true**.
23
+ attr_accessor :anchor_case_sensitive
24
+
25
+ attr_accessor :anchor_case_sensitive_metadata
26
+
27
+ # Specifies the alignment of anchor tabs with anchor strings. Possible values are **left** or **right**. The default value is **left**.
28
+ attr_accessor :anchor_horizontal_alignment
29
+
30
+ attr_accessor :anchor_horizontal_alignment_metadata
31
+
32
+ # When set to **true**, this tab is ignored if anchorString is not found in the document.
33
+ attr_accessor :anchor_ignore_if_not_present
34
+
35
+ attr_accessor :anchor_ignore_if_not_present_metadata
36
+
37
+ # When set to **true**, the anchor string in this tab matches whole words only (strings embedded in other strings are ignored.) The default value is **true**.
38
+ attr_accessor :anchor_match_whole_word
39
+
40
+ attr_accessor :anchor_match_whole_word_metadata
41
+
42
+ # Anchor text information for a radio button.
43
+ attr_accessor :anchor_string
44
+
45
+ attr_accessor :anchor_string_metadata
46
+
47
+ #
48
+ attr_accessor :anchor_tab_processor_version
49
+
50
+ attr_accessor :anchor_tab_processor_version_metadata
51
+
52
+ # Specifies units of the X and Y offset. Units could be pixels, millimeters, centimeters, or inches.
53
+ attr_accessor :anchor_units
54
+
55
+ attr_accessor :anchor_units_metadata
56
+
57
+ # Specifies the X axis location of the tab, in anchorUnits, relative to the anchorString.
58
+ attr_accessor :anchor_x_offset
59
+
60
+ attr_accessor :anchor_x_offset_metadata
61
+
62
+ # Specifies the Y axis location of the tab, in anchorUnits, relative to the anchorString.
63
+ attr_accessor :anchor_y_offset
64
+
65
+ attr_accessor :anchor_y_offset_metadata
66
+
67
+ # When set to **true**, the information in the tab is bold.
68
+ attr_accessor :bold
69
+
70
+ attr_accessor :bold_metadata
71
+
72
+ # For conditional fields this is the TabLabel of the parent tab that controls this tab's visibility.
73
+ attr_accessor :conditional_parent_label
74
+
75
+ attr_accessor :conditional_parent_label_metadata
76
+
77
+ # For conditional fields, this is the value of the parent tab that controls the tab's visibility. If the parent tab is a Checkbox, Radio button, Optional Signature, or Optional Initial use \"on\" as the value to show that the parent tab is active.
78
+ attr_accessor :conditional_parent_value
79
+
80
+ attr_accessor :conditional_parent_value_metadata
81
+
82
+ # The DocuSign generated custom tab ID for the custom tab to be applied. This can only be used when adding new tabs for a recipient. When used, the new tab inherits all the custom tab properties.
83
+ attr_accessor :custom_tab_id
84
+
85
+ attr_accessor :custom_tab_id_metadata
86
+
87
+ # Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.
88
+ attr_accessor :document_id
89
+
90
+ attr_accessor :document_id_metadata
91
+
92
+ attr_accessor :error_details
93
+
94
+ # The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica, LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default.
95
+ attr_accessor :font
96
+
97
+ # The font color used for the information in the tab. Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White.
98
+ attr_accessor :font_color
99
+
100
+ attr_accessor :font_color_metadata
101
+
102
+ attr_accessor :font_metadata
103
+
104
+ # The font size used for the information in the tab. Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72.
105
+ attr_accessor :font_size
106
+
107
+ attr_accessor :font_size_metadata
108
+
109
+ #
110
+ attr_accessor :form_order
111
+
112
+ attr_accessor :form_order_metadata
113
+
114
+ #
115
+ attr_accessor :form_page_label
116
+
117
+ attr_accessor :form_page_label_metadata
118
+
119
+ #
120
+ attr_accessor :form_page_number
121
+
122
+ attr_accessor :form_page_number_metadata
123
+
124
+ # Height of the tab in pixels.
125
+ attr_accessor :height
126
+
127
+ attr_accessor :height_metadata
128
+
129
+ # When set to **true**, the information in the tab is italic.
130
+ attr_accessor :italic
131
+
132
+ attr_accessor :italic_metadata
133
+
134
+ attr_accessor :locale_policy
135
+
136
+ attr_accessor :merge_field
137
+
138
+ #
139
+ attr_accessor :merge_field_xml
140
+
141
+ #
142
+ attr_accessor :name
143
+
144
+ attr_accessor :name_metadata
145
+
146
+ # Specifies the page number on which the tab is located.
147
+ attr_accessor :page_number
148
+
149
+ attr_accessor :page_number_metadata
150
+
151
+ # Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document.
152
+ attr_accessor :recipient_id
153
+
154
+ #
155
+ attr_accessor :recipient_id_guid
156
+
157
+ attr_accessor :recipient_id_guid_metadata
158
+
159
+ attr_accessor :recipient_id_metadata
160
+
161
+ attr_accessor :smart_contract_information
162
+
163
+ # 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.
164
+ attr_accessor :status
165
+
166
+ attr_accessor :status_metadata
167
+
168
+ #
169
+ attr_accessor :tab_group_labels
170
+
171
+ attr_accessor :tab_group_labels_metadata
172
+
173
+ # The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
174
+ attr_accessor :tab_id
175
+
176
+ attr_accessor :tab_id_metadata
177
+
178
+ # The label string associated with the tab.
179
+ attr_accessor :tab_label
180
+
181
+ attr_accessor :tab_label_metadata
182
+
183
+ #
184
+ attr_accessor :tab_order
185
+
186
+ attr_accessor :tab_order_metadata
187
+
188
+ #
189
+ attr_accessor :tab_type
190
+
191
+ attr_accessor :tab_type_metadata
192
+
193
+ # When set to **true**, the sender cannot change any attributes of the recipient. Used only when working with template recipients.
194
+ attr_accessor :template_locked
195
+
196
+ attr_accessor :template_locked_metadata
197
+
198
+ # When set to **true**, the sender may not remove the recipient. Used only when working with template recipients.
199
+ attr_accessor :template_required
200
+
201
+ attr_accessor :template_required_metadata
202
+
203
+ #
204
+ attr_accessor :tooltip
205
+
206
+ attr_accessor :tool_tip_metadata
207
+
208
+ # When set to **true**, the information in the tab is underlined.
209
+ attr_accessor :underline
210
+
211
+ attr_accessor :underline_metadata
212
+
213
+ # Width of the tab in pixels.
214
+ attr_accessor :width
215
+
216
+ attr_accessor :width_metadata
217
+
218
+ # This indicates the horizontal offset of the object on the page. DocuSign uses 72 DPI when determining position.
219
+ attr_accessor :x_position
220
+
221
+ attr_accessor :x_position_metadata
222
+
223
+ # This indicates the vertical offset of the object on the page. DocuSign uses 72 DPI when determining position.
224
+ attr_accessor :y_position
225
+
226
+ attr_accessor :y_position_metadata
227
+
228
+ # Attribute mapping from ruby-style variable name to JSON key.
229
+ def self.attribute_map
230
+ {
231
+ :'anchor_allow_white_space_in_characters' => :'anchorAllowWhiteSpaceInCharacters',
232
+ :'anchor_allow_white_space_in_characters_metadata' => :'anchorAllowWhiteSpaceInCharactersMetadata',
233
+ :'anchor_case_sensitive' => :'anchorCaseSensitive',
234
+ :'anchor_case_sensitive_metadata' => :'anchorCaseSensitiveMetadata',
235
+ :'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
236
+ :'anchor_horizontal_alignment_metadata' => :'anchorHorizontalAlignmentMetadata',
237
+ :'anchor_ignore_if_not_present' => :'anchorIgnoreIfNotPresent',
238
+ :'anchor_ignore_if_not_present_metadata' => :'anchorIgnoreIfNotPresentMetadata',
239
+ :'anchor_match_whole_word' => :'anchorMatchWholeWord',
240
+ :'anchor_match_whole_word_metadata' => :'anchorMatchWholeWordMetadata',
241
+ :'anchor_string' => :'anchorString',
242
+ :'anchor_string_metadata' => :'anchorStringMetadata',
243
+ :'anchor_tab_processor_version' => :'anchorTabProcessorVersion',
244
+ :'anchor_tab_processor_version_metadata' => :'anchorTabProcessorVersionMetadata',
245
+ :'anchor_units' => :'anchorUnits',
246
+ :'anchor_units_metadata' => :'anchorUnitsMetadata',
247
+ :'anchor_x_offset' => :'anchorXOffset',
248
+ :'anchor_x_offset_metadata' => :'anchorXOffsetMetadata',
249
+ :'anchor_y_offset' => :'anchorYOffset',
250
+ :'anchor_y_offset_metadata' => :'anchorYOffsetMetadata',
251
+ :'bold' => :'bold',
252
+ :'bold_metadata' => :'boldMetadata',
253
+ :'conditional_parent_label' => :'conditionalParentLabel',
254
+ :'conditional_parent_label_metadata' => :'conditionalParentLabelMetadata',
255
+ :'conditional_parent_value' => :'conditionalParentValue',
256
+ :'conditional_parent_value_metadata' => :'conditionalParentValueMetadata',
257
+ :'custom_tab_id' => :'customTabId',
258
+ :'custom_tab_id_metadata' => :'customTabIdMetadata',
259
+ :'document_id' => :'documentId',
260
+ :'document_id_metadata' => :'documentIdMetadata',
261
+ :'error_details' => :'errorDetails',
262
+ :'font' => :'font',
263
+ :'font_color' => :'fontColor',
264
+ :'font_color_metadata' => :'fontColorMetadata',
265
+ :'font_metadata' => :'fontMetadata',
266
+ :'font_size' => :'fontSize',
267
+ :'font_size_metadata' => :'fontSizeMetadata',
268
+ :'form_order' => :'formOrder',
269
+ :'form_order_metadata' => :'formOrderMetadata',
270
+ :'form_page_label' => :'formPageLabel',
271
+ :'form_page_label_metadata' => :'formPageLabelMetadata',
272
+ :'form_page_number' => :'formPageNumber',
273
+ :'form_page_number_metadata' => :'formPageNumberMetadata',
274
+ :'height' => :'height',
275
+ :'height_metadata' => :'heightMetadata',
276
+ :'italic' => :'italic',
277
+ :'italic_metadata' => :'italicMetadata',
278
+ :'locale_policy' => :'localePolicy',
279
+ :'merge_field' => :'mergeField',
280
+ :'merge_field_xml' => :'mergeFieldXml',
281
+ :'name' => :'name',
282
+ :'name_metadata' => :'nameMetadata',
283
+ :'page_number' => :'pageNumber',
284
+ :'page_number_metadata' => :'pageNumberMetadata',
285
+ :'recipient_id' => :'recipientId',
286
+ :'recipient_id_guid' => :'recipientIdGuid',
287
+ :'recipient_id_guid_metadata' => :'recipientIdGuidMetadata',
288
+ :'recipient_id_metadata' => :'recipientIdMetadata',
289
+ :'smart_contract_information' => :'smartContractInformation',
290
+ :'status' => :'status',
291
+ :'status_metadata' => :'statusMetadata',
292
+ :'tab_group_labels' => :'tabGroupLabels',
293
+ :'tab_group_labels_metadata' => :'tabGroupLabelsMetadata',
294
+ :'tab_id' => :'tabId',
295
+ :'tab_id_metadata' => :'tabIdMetadata',
296
+ :'tab_label' => :'tabLabel',
297
+ :'tab_label_metadata' => :'tabLabelMetadata',
298
+ :'tab_order' => :'tabOrder',
299
+ :'tab_order_metadata' => :'tabOrderMetadata',
300
+ :'tab_type' => :'tabType',
301
+ :'tab_type_metadata' => :'tabTypeMetadata',
302
+ :'template_locked' => :'templateLocked',
303
+ :'template_locked_metadata' => :'templateLockedMetadata',
304
+ :'template_required' => :'templateRequired',
305
+ :'template_required_metadata' => :'templateRequiredMetadata',
306
+ :'tooltip' => :'tooltip',
307
+ :'tool_tip_metadata' => :'toolTipMetadata',
308
+ :'underline' => :'underline',
309
+ :'underline_metadata' => :'underlineMetadata',
310
+ :'width' => :'width',
311
+ :'width_metadata' => :'widthMetadata',
312
+ :'x_position' => :'xPosition',
313
+ :'x_position_metadata' => :'xPositionMetadata',
314
+ :'y_position' => :'yPosition',
315
+ :'y_position_metadata' => :'yPositionMetadata'
316
+ }
317
+ end
318
+
319
+ # Attribute type mapping.
320
+ def self.swagger_types
321
+ {
322
+ :'anchor_allow_white_space_in_characters' => :'String',
323
+ :'anchor_allow_white_space_in_characters_metadata' => :'PropertyMetadata',
324
+ :'anchor_case_sensitive' => :'String',
325
+ :'anchor_case_sensitive_metadata' => :'PropertyMetadata',
326
+ :'anchor_horizontal_alignment' => :'String',
327
+ :'anchor_horizontal_alignment_metadata' => :'PropertyMetadata',
328
+ :'anchor_ignore_if_not_present' => :'String',
329
+ :'anchor_ignore_if_not_present_metadata' => :'PropertyMetadata',
330
+ :'anchor_match_whole_word' => :'String',
331
+ :'anchor_match_whole_word_metadata' => :'PropertyMetadata',
332
+ :'anchor_string' => :'String',
333
+ :'anchor_string_metadata' => :'PropertyMetadata',
334
+ :'anchor_tab_processor_version' => :'String',
335
+ :'anchor_tab_processor_version_metadata' => :'PropertyMetadata',
336
+ :'anchor_units' => :'String',
337
+ :'anchor_units_metadata' => :'PropertyMetadata',
338
+ :'anchor_x_offset' => :'String',
339
+ :'anchor_x_offset_metadata' => :'PropertyMetadata',
340
+ :'anchor_y_offset' => :'String',
341
+ :'anchor_y_offset_metadata' => :'PropertyMetadata',
342
+ :'bold' => :'String',
343
+ :'bold_metadata' => :'PropertyMetadata',
344
+ :'conditional_parent_label' => :'String',
345
+ :'conditional_parent_label_metadata' => :'PropertyMetadata',
346
+ :'conditional_parent_value' => :'String',
347
+ :'conditional_parent_value_metadata' => :'PropertyMetadata',
348
+ :'custom_tab_id' => :'String',
349
+ :'custom_tab_id_metadata' => :'PropertyMetadata',
350
+ :'document_id' => :'String',
351
+ :'document_id_metadata' => :'PropertyMetadata',
352
+ :'error_details' => :'ErrorDetails',
353
+ :'font' => :'String',
354
+ :'font_color' => :'String',
355
+ :'font_color_metadata' => :'PropertyMetadata',
356
+ :'font_metadata' => :'PropertyMetadata',
357
+ :'font_size' => :'String',
358
+ :'font_size_metadata' => :'PropertyMetadata',
359
+ :'form_order' => :'String',
360
+ :'form_order_metadata' => :'PropertyMetadata',
361
+ :'form_page_label' => :'String',
362
+ :'form_page_label_metadata' => :'PropertyMetadata',
363
+ :'form_page_number' => :'String',
364
+ :'form_page_number_metadata' => :'PropertyMetadata',
365
+ :'height' => :'String',
366
+ :'height_metadata' => :'PropertyMetadata',
367
+ :'italic' => :'String',
368
+ :'italic_metadata' => :'PropertyMetadata',
369
+ :'locale_policy' => :'LocalePolicyTab',
370
+ :'merge_field' => :'MergeField',
371
+ :'merge_field_xml' => :'String',
372
+ :'name' => :'String',
373
+ :'name_metadata' => :'PropertyMetadata',
374
+ :'page_number' => :'String',
375
+ :'page_number_metadata' => :'PropertyMetadata',
376
+ :'recipient_id' => :'String',
377
+ :'recipient_id_guid' => :'String',
378
+ :'recipient_id_guid_metadata' => :'PropertyMetadata',
379
+ :'recipient_id_metadata' => :'PropertyMetadata',
380
+ :'smart_contract_information' => :'SmartContractInformation',
381
+ :'status' => :'String',
382
+ :'status_metadata' => :'PropertyMetadata',
383
+ :'tab_group_labels' => :'Array<String>',
384
+ :'tab_group_labels_metadata' => :'PropertyMetadata',
385
+ :'tab_id' => :'String',
386
+ :'tab_id_metadata' => :'PropertyMetadata',
387
+ :'tab_label' => :'String',
388
+ :'tab_label_metadata' => :'PropertyMetadata',
389
+ :'tab_order' => :'String',
390
+ :'tab_order_metadata' => :'PropertyMetadata',
391
+ :'tab_type' => :'String',
392
+ :'tab_type_metadata' => :'PropertyMetadata',
393
+ :'template_locked' => :'String',
394
+ :'template_locked_metadata' => :'PropertyMetadata',
395
+ :'template_required' => :'String',
396
+ :'template_required_metadata' => :'PropertyMetadata',
397
+ :'tooltip' => :'String',
398
+ :'tool_tip_metadata' => :'PropertyMetadata',
399
+ :'underline' => :'String',
400
+ :'underline_metadata' => :'PropertyMetadata',
401
+ :'width' => :'String',
402
+ :'width_metadata' => :'PropertyMetadata',
403
+ :'x_position' => :'String',
404
+ :'x_position_metadata' => :'PropertyMetadata',
405
+ :'y_position' => :'String',
406
+ :'y_position_metadata' => :'PropertyMetadata'
407
+ }
408
+ end
409
+
410
+ # Initializes the object
411
+ # @param [Hash] attributes Model attributes in the form of hash
412
+ def initialize(attributes = {})
413
+ return unless attributes.is_a?(Hash)
414
+
415
+ # convert string to symbol for hash key
416
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
417
+
418
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharacters')
419
+ self.anchor_allow_white_space_in_characters = attributes[:'anchorAllowWhiteSpaceInCharacters']
420
+ end
421
+
422
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharactersMetadata')
423
+ self.anchor_allow_white_space_in_characters_metadata = attributes[:'anchorAllowWhiteSpaceInCharactersMetadata']
424
+ end
425
+
426
+ if attributes.has_key?(:'anchorCaseSensitive')
427
+ self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
428
+ end
429
+
430
+ if attributes.has_key?(:'anchorCaseSensitiveMetadata')
431
+ self.anchor_case_sensitive_metadata = attributes[:'anchorCaseSensitiveMetadata']
432
+ end
433
+
434
+ if attributes.has_key?(:'anchorHorizontalAlignment')
435
+ self.anchor_horizontal_alignment = attributes[:'anchorHorizontalAlignment']
436
+ end
437
+
438
+ if attributes.has_key?(:'anchorHorizontalAlignmentMetadata')
439
+ self.anchor_horizontal_alignment_metadata = attributes[:'anchorHorizontalAlignmentMetadata']
440
+ end
441
+
442
+ if attributes.has_key?(:'anchorIgnoreIfNotPresent')
443
+ self.anchor_ignore_if_not_present = attributes[:'anchorIgnoreIfNotPresent']
444
+ end
445
+
446
+ if attributes.has_key?(:'anchorIgnoreIfNotPresentMetadata')
447
+ self.anchor_ignore_if_not_present_metadata = attributes[:'anchorIgnoreIfNotPresentMetadata']
448
+ end
449
+
450
+ if attributes.has_key?(:'anchorMatchWholeWord')
451
+ self.anchor_match_whole_word = attributes[:'anchorMatchWholeWord']
452
+ end
453
+
454
+ if attributes.has_key?(:'anchorMatchWholeWordMetadata')
455
+ self.anchor_match_whole_word_metadata = attributes[:'anchorMatchWholeWordMetadata']
456
+ end
457
+
458
+ if attributes.has_key?(:'anchorString')
459
+ self.anchor_string = attributes[:'anchorString']
460
+ end
461
+
462
+ if attributes.has_key?(:'anchorStringMetadata')
463
+ self.anchor_string_metadata = attributes[:'anchorStringMetadata']
464
+ end
465
+
466
+ if attributes.has_key?(:'anchorTabProcessorVersion')
467
+ self.anchor_tab_processor_version = attributes[:'anchorTabProcessorVersion']
468
+ end
469
+
470
+ if attributes.has_key?(:'anchorTabProcessorVersionMetadata')
471
+ self.anchor_tab_processor_version_metadata = attributes[:'anchorTabProcessorVersionMetadata']
472
+ end
473
+
474
+ if attributes.has_key?(:'anchorUnits')
475
+ self.anchor_units = attributes[:'anchorUnits']
476
+ end
477
+
478
+ if attributes.has_key?(:'anchorUnitsMetadata')
479
+ self.anchor_units_metadata = attributes[:'anchorUnitsMetadata']
480
+ end
481
+
482
+ if attributes.has_key?(:'anchorXOffset')
483
+ self.anchor_x_offset = attributes[:'anchorXOffset']
484
+ end
485
+
486
+ if attributes.has_key?(:'anchorXOffsetMetadata')
487
+ self.anchor_x_offset_metadata = attributes[:'anchorXOffsetMetadata']
488
+ end
489
+
490
+ if attributes.has_key?(:'anchorYOffset')
491
+ self.anchor_y_offset = attributes[:'anchorYOffset']
492
+ end
493
+
494
+ if attributes.has_key?(:'anchorYOffsetMetadata')
495
+ self.anchor_y_offset_metadata = attributes[:'anchorYOffsetMetadata']
496
+ end
497
+
498
+ if attributes.has_key?(:'bold')
499
+ self.bold = attributes[:'bold']
500
+ end
501
+
502
+ if attributes.has_key?(:'boldMetadata')
503
+ self.bold_metadata = attributes[:'boldMetadata']
504
+ end
505
+
506
+ if attributes.has_key?(:'conditionalParentLabel')
507
+ self.conditional_parent_label = attributes[:'conditionalParentLabel']
508
+ end
509
+
510
+ if attributes.has_key?(:'conditionalParentLabelMetadata')
511
+ self.conditional_parent_label_metadata = attributes[:'conditionalParentLabelMetadata']
512
+ end
513
+
514
+ if attributes.has_key?(:'conditionalParentValue')
515
+ self.conditional_parent_value = attributes[:'conditionalParentValue']
516
+ end
517
+
518
+ if attributes.has_key?(:'conditionalParentValueMetadata')
519
+ self.conditional_parent_value_metadata = attributes[:'conditionalParentValueMetadata']
520
+ end
521
+
522
+ if attributes.has_key?(:'customTabId')
523
+ self.custom_tab_id = attributes[:'customTabId']
524
+ end
525
+
526
+ if attributes.has_key?(:'customTabIdMetadata')
527
+ self.custom_tab_id_metadata = attributes[:'customTabIdMetadata']
528
+ end
529
+
530
+ if attributes.has_key?(:'documentId')
531
+ self.document_id = attributes[:'documentId']
532
+ end
533
+
534
+ if attributes.has_key?(:'documentIdMetadata')
535
+ self.document_id_metadata = attributes[:'documentIdMetadata']
536
+ end
537
+
538
+ if attributes.has_key?(:'errorDetails')
539
+ self.error_details = attributes[:'errorDetails']
540
+ end
541
+
542
+ if attributes.has_key?(:'font')
543
+ self.font = attributes[:'font']
544
+ end
545
+
546
+ if attributes.has_key?(:'fontColor')
547
+ self.font_color = attributes[:'fontColor']
548
+ end
549
+
550
+ if attributes.has_key?(:'fontColorMetadata')
551
+ self.font_color_metadata = attributes[:'fontColorMetadata']
552
+ end
553
+
554
+ if attributes.has_key?(:'fontMetadata')
555
+ self.font_metadata = attributes[:'fontMetadata']
556
+ end
557
+
558
+ if attributes.has_key?(:'fontSize')
559
+ self.font_size = attributes[:'fontSize']
560
+ end
561
+
562
+ if attributes.has_key?(:'fontSizeMetadata')
563
+ self.font_size_metadata = attributes[:'fontSizeMetadata']
564
+ end
565
+
566
+ if attributes.has_key?(:'formOrder')
567
+ self.form_order = attributes[:'formOrder']
568
+ end
569
+
570
+ if attributes.has_key?(:'formOrderMetadata')
571
+ self.form_order_metadata = attributes[:'formOrderMetadata']
572
+ end
573
+
574
+ if attributes.has_key?(:'formPageLabel')
575
+ self.form_page_label = attributes[:'formPageLabel']
576
+ end
577
+
578
+ if attributes.has_key?(:'formPageLabelMetadata')
579
+ self.form_page_label_metadata = attributes[:'formPageLabelMetadata']
580
+ end
581
+
582
+ if attributes.has_key?(:'formPageNumber')
583
+ self.form_page_number = attributes[:'formPageNumber']
584
+ end
585
+
586
+ if attributes.has_key?(:'formPageNumberMetadata')
587
+ self.form_page_number_metadata = attributes[:'formPageNumberMetadata']
588
+ end
589
+
590
+ if attributes.has_key?(:'height')
591
+ self.height = attributes[:'height']
592
+ end
593
+
594
+ if attributes.has_key?(:'heightMetadata')
595
+ self.height_metadata = attributes[:'heightMetadata']
596
+ end
597
+
598
+ if attributes.has_key?(:'italic')
599
+ self.italic = attributes[:'italic']
600
+ end
601
+
602
+ if attributes.has_key?(:'italicMetadata')
603
+ self.italic_metadata = attributes[:'italicMetadata']
604
+ end
605
+
606
+ if attributes.has_key?(:'localePolicy')
607
+ self.locale_policy = attributes[:'localePolicy']
608
+ end
609
+
610
+ if attributes.has_key?(:'mergeField')
611
+ self.merge_field = attributes[:'mergeField']
612
+ end
613
+
614
+ if attributes.has_key?(:'mergeFieldXml')
615
+ self.merge_field_xml = attributes[:'mergeFieldXml']
616
+ end
617
+
618
+ if attributes.has_key?(:'name')
619
+ self.name = attributes[:'name']
620
+ end
621
+
622
+ if attributes.has_key?(:'nameMetadata')
623
+ self.name_metadata = attributes[:'nameMetadata']
624
+ end
625
+
626
+ if attributes.has_key?(:'pageNumber')
627
+ self.page_number = attributes[:'pageNumber']
628
+ end
629
+
630
+ if attributes.has_key?(:'pageNumberMetadata')
631
+ self.page_number_metadata = attributes[:'pageNumberMetadata']
632
+ end
633
+
634
+ if attributes.has_key?(:'recipientId')
635
+ self.recipient_id = attributes[:'recipientId']
636
+ end
637
+
638
+ if attributes.has_key?(:'recipientIdGuid')
639
+ self.recipient_id_guid = attributes[:'recipientIdGuid']
640
+ end
641
+
642
+ if attributes.has_key?(:'recipientIdGuidMetadata')
643
+ self.recipient_id_guid_metadata = attributes[:'recipientIdGuidMetadata']
644
+ end
645
+
646
+ if attributes.has_key?(:'recipientIdMetadata')
647
+ self.recipient_id_metadata = attributes[:'recipientIdMetadata']
648
+ end
649
+
650
+ if attributes.has_key?(:'smartContractInformation')
651
+ self.smart_contract_information = attributes[:'smartContractInformation']
652
+ end
653
+
654
+ if attributes.has_key?(:'status')
655
+ self.status = attributes[:'status']
656
+ end
657
+
658
+ if attributes.has_key?(:'statusMetadata')
659
+ self.status_metadata = attributes[:'statusMetadata']
660
+ end
661
+
662
+ if attributes.has_key?(:'tabGroupLabels')
663
+ if (value = attributes[:'tabGroupLabels']).is_a?(Array)
664
+ self.tab_group_labels = value
665
+ end
666
+ end
667
+
668
+ if attributes.has_key?(:'tabGroupLabelsMetadata')
669
+ self.tab_group_labels_metadata = attributes[:'tabGroupLabelsMetadata']
670
+ end
671
+
672
+ if attributes.has_key?(:'tabId')
673
+ self.tab_id = attributes[:'tabId']
674
+ end
675
+
676
+ if attributes.has_key?(:'tabIdMetadata')
677
+ self.tab_id_metadata = attributes[:'tabIdMetadata']
678
+ end
679
+
680
+ if attributes.has_key?(:'tabLabel')
681
+ self.tab_label = attributes[:'tabLabel']
682
+ end
683
+
684
+ if attributes.has_key?(:'tabLabelMetadata')
685
+ self.tab_label_metadata = attributes[:'tabLabelMetadata']
686
+ end
687
+
688
+ if attributes.has_key?(:'tabOrder')
689
+ self.tab_order = attributes[:'tabOrder']
690
+ end
691
+
692
+ if attributes.has_key?(:'tabOrderMetadata')
693
+ self.tab_order_metadata = attributes[:'tabOrderMetadata']
694
+ end
695
+
696
+ if attributes.has_key?(:'tabType')
697
+ self.tab_type = attributes[:'tabType']
698
+ end
699
+
700
+ if attributes.has_key?(:'tabTypeMetadata')
701
+ self.tab_type_metadata = attributes[:'tabTypeMetadata']
702
+ end
703
+
704
+ if attributes.has_key?(:'templateLocked')
705
+ self.template_locked = attributes[:'templateLocked']
706
+ end
707
+
708
+ if attributes.has_key?(:'templateLockedMetadata')
709
+ self.template_locked_metadata = attributes[:'templateLockedMetadata']
710
+ end
711
+
712
+ if attributes.has_key?(:'templateRequired')
713
+ self.template_required = attributes[:'templateRequired']
714
+ end
715
+
716
+ if attributes.has_key?(:'templateRequiredMetadata')
717
+ self.template_required_metadata = attributes[:'templateRequiredMetadata']
718
+ end
719
+
720
+ if attributes.has_key?(:'tooltip')
721
+ self.tooltip = attributes[:'tooltip']
722
+ end
723
+
724
+ if attributes.has_key?(:'toolTipMetadata')
725
+ self.tool_tip_metadata = attributes[:'toolTipMetadata']
726
+ end
727
+
728
+ if attributes.has_key?(:'underline')
729
+ self.underline = attributes[:'underline']
730
+ end
731
+
732
+ if attributes.has_key?(:'underlineMetadata')
733
+ self.underline_metadata = attributes[:'underlineMetadata']
734
+ end
735
+
736
+ if attributes.has_key?(:'width')
737
+ self.width = attributes[:'width']
738
+ end
739
+
740
+ if attributes.has_key?(:'widthMetadata')
741
+ self.width_metadata = attributes[:'widthMetadata']
742
+ end
743
+
744
+ if attributes.has_key?(:'xPosition')
745
+ self.x_position = attributes[:'xPosition']
746
+ end
747
+
748
+ if attributes.has_key?(:'xPositionMetadata')
749
+ self.x_position_metadata = attributes[:'xPositionMetadata']
750
+ end
751
+
752
+ if attributes.has_key?(:'yPosition')
753
+ self.y_position = attributes[:'yPosition']
754
+ end
755
+
756
+ if attributes.has_key?(:'yPositionMetadata')
757
+ self.y_position_metadata = attributes[:'yPositionMetadata']
758
+ end
759
+ end
760
+
761
+ # Show invalid properties with the reasons. Usually used together with valid?
762
+ # @return Array for valid properties with the reasons
763
+ def list_invalid_properties
764
+ invalid_properties = Array.new
765
+ invalid_properties
766
+ end
767
+
768
+ # Check to see if the all the properties in the model are valid
769
+ # @return true if the model is valid
770
+ def valid?
771
+ true
772
+ end
773
+
774
+ # Checks equality by comparing each attribute.
775
+ # @param [Object] Object to be compared
776
+ def ==(o)
777
+ return true if self.equal?(o)
778
+ self.class == o.class &&
779
+ anchor_allow_white_space_in_characters == o.anchor_allow_white_space_in_characters &&
780
+ anchor_allow_white_space_in_characters_metadata == o.anchor_allow_white_space_in_characters_metadata &&
781
+ anchor_case_sensitive == o.anchor_case_sensitive &&
782
+ anchor_case_sensitive_metadata == o.anchor_case_sensitive_metadata &&
783
+ anchor_horizontal_alignment == o.anchor_horizontal_alignment &&
784
+ anchor_horizontal_alignment_metadata == o.anchor_horizontal_alignment_metadata &&
785
+ anchor_ignore_if_not_present == o.anchor_ignore_if_not_present &&
786
+ anchor_ignore_if_not_present_metadata == o.anchor_ignore_if_not_present_metadata &&
787
+ anchor_match_whole_word == o.anchor_match_whole_word &&
788
+ anchor_match_whole_word_metadata == o.anchor_match_whole_word_metadata &&
789
+ anchor_string == o.anchor_string &&
790
+ anchor_string_metadata == o.anchor_string_metadata &&
791
+ anchor_tab_processor_version == o.anchor_tab_processor_version &&
792
+ anchor_tab_processor_version_metadata == o.anchor_tab_processor_version_metadata &&
793
+ anchor_units == o.anchor_units &&
794
+ anchor_units_metadata == o.anchor_units_metadata &&
795
+ anchor_x_offset == o.anchor_x_offset &&
796
+ anchor_x_offset_metadata == o.anchor_x_offset_metadata &&
797
+ anchor_y_offset == o.anchor_y_offset &&
798
+ anchor_y_offset_metadata == o.anchor_y_offset_metadata &&
799
+ bold == o.bold &&
800
+ bold_metadata == o.bold_metadata &&
801
+ conditional_parent_label == o.conditional_parent_label &&
802
+ conditional_parent_label_metadata == o.conditional_parent_label_metadata &&
803
+ conditional_parent_value == o.conditional_parent_value &&
804
+ conditional_parent_value_metadata == o.conditional_parent_value_metadata &&
805
+ custom_tab_id == o.custom_tab_id &&
806
+ custom_tab_id_metadata == o.custom_tab_id_metadata &&
807
+ document_id == o.document_id &&
808
+ document_id_metadata == o.document_id_metadata &&
809
+ error_details == o.error_details &&
810
+ font == o.font &&
811
+ font_color == o.font_color &&
812
+ font_color_metadata == o.font_color_metadata &&
813
+ font_metadata == o.font_metadata &&
814
+ font_size == o.font_size &&
815
+ font_size_metadata == o.font_size_metadata &&
816
+ form_order == o.form_order &&
817
+ form_order_metadata == o.form_order_metadata &&
818
+ form_page_label == o.form_page_label &&
819
+ form_page_label_metadata == o.form_page_label_metadata &&
820
+ form_page_number == o.form_page_number &&
821
+ form_page_number_metadata == o.form_page_number_metadata &&
822
+ height == o.height &&
823
+ height_metadata == o.height_metadata &&
824
+ italic == o.italic &&
825
+ italic_metadata == o.italic_metadata &&
826
+ locale_policy == o.locale_policy &&
827
+ merge_field == o.merge_field &&
828
+ merge_field_xml == o.merge_field_xml &&
829
+ name == o.name &&
830
+ name_metadata == o.name_metadata &&
831
+ page_number == o.page_number &&
832
+ page_number_metadata == o.page_number_metadata &&
833
+ recipient_id == o.recipient_id &&
834
+ recipient_id_guid == o.recipient_id_guid &&
835
+ recipient_id_guid_metadata == o.recipient_id_guid_metadata &&
836
+ recipient_id_metadata == o.recipient_id_metadata &&
837
+ smart_contract_information == o.smart_contract_information &&
838
+ status == o.status &&
839
+ status_metadata == o.status_metadata &&
840
+ tab_group_labels == o.tab_group_labels &&
841
+ tab_group_labels_metadata == o.tab_group_labels_metadata &&
842
+ tab_id == o.tab_id &&
843
+ tab_id_metadata == o.tab_id_metadata &&
844
+ tab_label == o.tab_label &&
845
+ tab_label_metadata == o.tab_label_metadata &&
846
+ tab_order == o.tab_order &&
847
+ tab_order_metadata == o.tab_order_metadata &&
848
+ tab_type == o.tab_type &&
849
+ tab_type_metadata == o.tab_type_metadata &&
850
+ template_locked == o.template_locked &&
851
+ template_locked_metadata == o.template_locked_metadata &&
852
+ template_required == o.template_required &&
853
+ template_required_metadata == o.template_required_metadata &&
854
+ tooltip == o.tooltip &&
855
+ tool_tip_metadata == o.tool_tip_metadata &&
856
+ underline == o.underline &&
857
+ underline_metadata == o.underline_metadata &&
858
+ width == o.width &&
859
+ width_metadata == o.width_metadata &&
860
+ x_position == o.x_position &&
861
+ x_position_metadata == o.x_position_metadata &&
862
+ y_position == o.y_position &&
863
+ y_position_metadata == o.y_position_metadata
864
+ end
865
+
866
+ # @see the `==` method
867
+ # @param [Object] Object to be compared
868
+ def eql?(o)
869
+ self == o
870
+ end
871
+
872
+ # Calculates hash code according to all attributes.
873
+ # @return [Fixnum] Hash code
874
+ def hash
875
+ [anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, merge_field, merge_field_xml, name, name_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, smart_contract_information, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
876
+ end
877
+
878
+ # Builds the object from hash
879
+ # @param [Hash] attributes Model attributes in the form of hash
880
+ # @return [Object] Returns the model itself
881
+ def build_from_hash(attributes)
882
+ return nil unless attributes.is_a?(Hash)
883
+ self.class.swagger_types.each_pair do |key, type|
884
+ if type =~ /\AArray<(.*)>/i
885
+ # check to ensure the input is an array given that the attribute
886
+ # is documented as an array but the input is not
887
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
888
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
889
+ end
890
+ elsif !attributes[self.class.attribute_map[key]].nil?
891
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
892
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
893
+ end
894
+
895
+ self
896
+ end
897
+
898
+ # Deserializes the data based on type
899
+ # @param string type Data type
900
+ # @param string value Value to be deserialized
901
+ # @return [Object] Deserialized data
902
+ def _deserialize(type, value)
903
+ case type.to_sym
904
+ when :DateTime
905
+ DateTime.parse(value)
906
+ when :Date
907
+ Date.parse(value)
908
+ when :String
909
+ value.to_s
910
+ when :Integer
911
+ value.to_i
912
+ when :Float
913
+ value.to_f
914
+ when :BOOLEAN
915
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
916
+ true
917
+ else
918
+ false
919
+ end
920
+ when :Object
921
+ # generic object (usually a Hash), return directly
922
+ value
923
+ when /\AArray<(?<inner_type>.+)>\z/
924
+ inner_type = Regexp.last_match[:inner_type]
925
+ value.map { |v| _deserialize(inner_type, v) }
926
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
927
+ k_type = Regexp.last_match[:k_type]
928
+ v_type = Regexp.last_match[:v_type]
929
+ {}.tap do |hash|
930
+ value.each do |k, v|
931
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
932
+ end
933
+ end
934
+ else # model
935
+ temp_model = DocuSign_eSign.const_get(type).new
936
+ temp_model.build_from_hash(value)
937
+ end
938
+ end
939
+
940
+ # Returns the string representation of the object
941
+ # @return [String] String presentation of the object
942
+ def to_s
943
+ to_hash.to_s
944
+ end
945
+
946
+ # to_body is an alias to to_hash (backward compatibility)
947
+ # @return [Hash] Returns the object in the form of hash
948
+ def to_body
949
+ to_hash
950
+ end
951
+
952
+ # Returns the object in the form of hash
953
+ # @return [Hash] Returns the object in the form of hash
954
+ def to_hash
955
+ hash = {}
956
+ self.class.attribute_map.each_pair do |attr, param|
957
+ value = self.send(attr)
958
+ next if value.nil?
959
+ hash[param] = _to_hash(value)
960
+ end
961
+ hash
962
+ end
963
+
964
+ # Outputs non-array value in the form of hash
965
+ # For object, use to_hash. Otherwise, just return the value
966
+ # @param [Object] value Any valid value
967
+ # @return [Hash] Returns the value in the form of hash
968
+ def _to_hash(value)
969
+ if value.is_a?(Array)
970
+ value.compact.map { |v| _to_hash(v) }
971
+ elsif value.is_a?(Hash)
972
+ {}.tap do |hash|
973
+ value.each { |k, v| hash[k] = _to_hash(v) }
974
+ end
975
+ elsif value.respond_to? :to_hash
976
+ value.to_hash
977
+ else
978
+ value
979
+ end
980
+ end
981
+
982
+ end
983
+ end