docusign_esign 3.10.0 → 3.11.0.rc1

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