docusign_esign 3.0.0 → 3.1.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -2
  3. data/lib/docusign_esign.rb +464 -447
  4. data/{tests → lib/docusign_esign/api}/.DS_Store +0 -0
  5. data/lib/docusign_esign/api/accounts_api.rb +69 -8
  6. data/lib/docusign_esign/api/authentication_api.rb +8 -8
  7. data/lib/docusign_esign/api/bulk_envelopes_api.rb +335 -0
  8. data/lib/docusign_esign/api/connect_api.rb +400 -0
  9. data/lib/docusign_esign/api/envelopes_api.rb +77 -588
  10. data/lib/docusign_esign/api/notary_api.rb +439 -0
  11. data/lib/docusign_esign/api/organizations_api.rb +232 -0
  12. data/lib/docusign_esign/api/tsps_api.rb +256 -0
  13. data/lib/docusign_esign/models/account_settings_information.rb +125 -10
  14. data/lib/docusign_esign/models/account_ui_settings.rb +60 -4
  15. data/lib/docusign_esign/models/admin_message.rb +198 -0
  16. data/lib/docusign_esign/models/agent.rb +21 -1
  17. data/lib/docusign_esign/models/approve.rb +29 -1
  18. data/lib/docusign_esign/models/ask_an_admin.rb +218 -0
  19. data/lib/docusign_esign/models/carbon_copy.rb +39 -1
  20. data/lib/docusign_esign/models/certified_delivery.rb +39 -1
  21. data/lib/docusign_esign/models/checkbox.rb +29 -1
  22. data/lib/docusign_esign/models/comment_thread.rb +29 -1
  23. data/lib/docusign_esign/models/company.rb +29 -1
  24. data/lib/docusign_esign/models/complete_sign_request.rb +22 -2
  25. data/lib/docusign_esign/models/connect_custom_configuration.rb +19 -19
  26. data/lib/docusign_esign/models/credential.rb +12 -2
  27. data/lib/docusign_esign/models/date.rb +29 -1
  28. data/lib/docusign_esign/models/date_signed.rb +29 -1
  29. data/lib/docusign_esign/models/decline.rb +29 -1
  30. data/lib/docusign_esign/models/document.rb +53 -1
  31. data/lib/docusign_esign/models/document_fields_information.rb +1 -1
  32. data/lib/docusign_esign/models/document_html_display_settings.rb +11 -1
  33. data/lib/docusign_esign/models/document_security_store.rb +1 -1
  34. data/lib/docusign_esign/models/document_update_info.rb +1 -1
  35. data/lib/docusign_esign/models/editor.rb +21 -1
  36. data/lib/docusign_esign/models/email.rb +29 -1
  37. data/lib/docusign_esign/models/email_address.rb +29 -1
  38. data/lib/docusign_esign/models/envelope_document.rb +11 -1
  39. data/lib/docusign_esign/models/envelope_id.rb +29 -1
  40. data/lib/docusign_esign/models/envelope_template.rb +1 -11
  41. data/lib/docusign_esign/models/first_name.rb +29 -1
  42. data/lib/docusign_esign/models/formula_tab.rb +29 -1
  43. data/lib/docusign_esign/models/full_name.rb +29 -1
  44. data/lib/docusign_esign/models/in_person_signer.rb +21 -1
  45. data/lib/docusign_esign/models/initial_here.rb +29 -1
  46. data/lib/docusign_esign/models/intermediary.rb +21 -1
  47. data/lib/docusign_esign/models/last_name.rb +29 -1
  48. data/lib/docusign_esign/models/list.rb +29 -1
  49. data/lib/docusign_esign/models/notarize.rb +29 -1
  50. data/lib/docusign_esign/models/notary.rb +217 -0
  51. data/lib/docusign_esign/models/notary_host.rb +21 -1
  52. data/lib/docusign_esign/models/notary_jurisdiction.rb +246 -0
  53. data/lib/docusign_esign/models/notary_jurisdiction_list.rb +250 -0
  54. data/lib/docusign_esign/models/notary_result.rb +199 -0
  55. data/lib/docusign_esign/models/note.rb +29 -1
  56. data/lib/docusign_esign/models/number.rb +29 -1
  57. data/lib/docusign_esign/models/ocr_request.rb +238 -0
  58. data/lib/docusign_esign/models/offline_attributes.rb +238 -0
  59. data/lib/docusign_esign/models/poly_line_overlay.rb +29 -1
  60. data/lib/docusign_esign/models/proof_service_resource_token.rb +188 -0
  61. data/lib/docusign_esign/models/proof_service_view_link.rb +188 -0
  62. data/lib/docusign_esign/models/radio.rb +20 -1
  63. data/lib/docusign_esign/models/recipient_email_notification.rb +1 -1
  64. data/lib/docusign_esign/models/recipient_proof_file.rb +188 -0
  65. data/lib/docusign_esign/models/revision.rb +11 -2
  66. data/lib/docusign_esign/models/seal_sign.rb +21 -1
  67. data/lib/docusign_esign/models/sender.rb +1 -1
  68. data/lib/docusign_esign/models/sign_hash_document.rb +12 -3
  69. data/lib/docusign_esign/models/sign_hash_session_info_response.rb +12 -3
  70. data/lib/docusign_esign/models/sign_here.rb +38 -1
  71. data/lib/docusign_esign/models/sign_session_info_request.rb +12 -2
  72. data/lib/docusign_esign/models/signature_data_info.rb +1 -1
  73. data/lib/docusign_esign/models/signer.rb +31 -2
  74. data/lib/docusign_esign/models/signer_attachment.rb +29 -1
  75. data/lib/docusign_esign/models/smart_contract_information.rb +198 -0
  76. data/lib/docusign_esign/models/smart_section.rb +29 -1
  77. data/lib/docusign_esign/models/smart_section_display_settings.rb +11 -1
  78. data/lib/docusign_esign/models/ssn.rb +29 -1
  79. data/lib/docusign_esign/models/stamp.rb +336 -0
  80. data/lib/docusign_esign/models/tab_group.rb +29 -1
  81. data/lib/docusign_esign/models/text.rb +29 -1
  82. data/lib/docusign_esign/models/time_stamp_field.rb +1 -1
  83. data/lib/docusign_esign/models/title.rb +29 -1
  84. data/lib/docusign_esign/models/tsp_health_check_request.rb +1 -1
  85. data/lib/docusign_esign/models/tsp_health_check_status_description.rb +1 -1
  86. data/lib/docusign_esign/models/update_transaction_request.rb +1 -1
  87. data/lib/docusign_esign/models/update_transaction_response.rb +1 -1
  88. data/lib/docusign_esign/models/usage_history.rb +1 -1
  89. data/lib/docusign_esign/models/user.rb +27 -5
  90. data/lib/docusign_esign/models/user_info_response.rb +1 -1
  91. data/lib/docusign_esign/models/user_information.rb +1 -1
  92. data/lib/docusign_esign/models/user_signature.rb +14 -4
  93. data/lib/docusign_esign/models/view.rb +29 -1
  94. data/lib/docusign_esign/models/witness.rb +30 -1
  95. data/lib/docusign_esign/models/zip.rb +29 -1
  96. data/lib/docusign_esign/version.rb +1 -1
  97. data/tests/Gemfile.lock +1 -1
  98. metadata +20 -7
  99. data/Gemfile.lock +0 -73
  100. data/docusign_esign-2.1.0.gem +0 -0
@@ -0,0 +1,199 @@
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
+
16
+ class NotaryResult
17
+ #
18
+ attr_accessor :jurisdictions
19
+
20
+ attr_accessor :notary
21
+
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'jurisdictions' => :'jurisdictions',
27
+ :'notary' => :'notary'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'jurisdictions' => :'Array<Jurisdiction>',
35
+ :'notary' => :'Notary'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+
47
+ if attributes.has_key?(:'jurisdictions')
48
+ if (value = attributes[:'jurisdictions']).is_a?(Array)
49
+ self.jurisdictions = value
50
+ end
51
+ end
52
+
53
+ if attributes.has_key?(:'notary')
54
+ self.notary = attributes[:'notary']
55
+ end
56
+
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properies with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ return invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ return true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ jurisdictions == o.jurisdictions &&
78
+ notary == o.notary
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Fixnum] Hash code
89
+ def hash
90
+ [jurisdictions, notary].hash
91
+ end
92
+
93
+ # Builds the object from hash
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ # @return [Object] Returns the model itself
96
+ def build_from_hash(attributes)
97
+ return nil unless attributes.is_a?(Hash)
98
+ self.class.swagger_types.each_pair do |key, type|
99
+ if type =~ /\AArray<(.*)>/i
100
+ # check to ensure the input is an array given that the the attribute
101
+ # is documented as an array but the input is not
102
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
103
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
104
+ end
105
+ elsif !attributes[self.class.attribute_map[key]].nil?
106
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ # Deserializes the data based on type
114
+ # @param string type Data type
115
+ # @param string value Value to be deserialized
116
+ # @return [Object] Deserialized data
117
+ def _deserialize(type, value)
118
+ case type.to_sym
119
+ when :DateTime
120
+ DateTime.parse(value)
121
+ when :Date
122
+ Date.parse(value)
123
+ when :String
124
+ value.to_s
125
+ when :Integer
126
+ value.to_i
127
+ when :Float
128
+ value.to_f
129
+ when :BOOLEAN
130
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
+ true
132
+ else
133
+ false
134
+ end
135
+ when :Object
136
+ # generic object (usually a Hash), return directly
137
+ value
138
+ when /\AArray<(?<inner_type>.+)>\z/
139
+ inner_type = Regexp.last_match[:inner_type]
140
+ value.map { |v| _deserialize(inner_type, v) }
141
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
142
+ k_type = Regexp.last_match[:k_type]
143
+ v_type = Regexp.last_match[:v_type]
144
+ {}.tap do |hash|
145
+ value.each do |k, v|
146
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
147
+ end
148
+ end
149
+ else # model
150
+ temp_model = DocuSign_eSign.const_get(type).new
151
+ temp_model.build_from_hash(value)
152
+ end
153
+ end
154
+
155
+ # Returns the string representation of the object
156
+ # @return [String] String presentation of the object
157
+ def to_s
158
+ to_hash.to_s
159
+ end
160
+
161
+ # to_body is an alias to to_hash (backward compatibility)
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_body
164
+ to_hash
165
+ end
166
+
167
+ # Returns the object in the form of hash
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_hash
170
+ hash = {}
171
+ self.class.attribute_map.each_pair do |attr, param|
172
+ value = self.send(attr)
173
+ next if value.nil?
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map{ |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end
196
+
197
+ end
198
+
199
+ end
@@ -14,6 +14,11 @@ require 'date'
14
14
  module DocuSign_eSign
15
15
 
16
16
  class Note
17
+ #
18
+ attr_accessor :anchor_allow_white_space_in_characters
19
+
20
+ attr_accessor :anchor_allow_white_space_in_characters_metadata
21
+
17
22
  # When set to **true**, the anchor string does not consider case when matching strings in the document. The default value is **true**.
18
23
  attr_accessor :anchor_case_sensitive
19
24
 
@@ -158,6 +163,8 @@ module DocuSign_eSign
158
163
 
159
164
  attr_accessor :shared_metadata
160
165
 
166
+ attr_accessor :smart_contract_information
167
+
161
168
  # 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.
162
169
  attr_accessor :status
163
170
 
@@ -232,6 +239,8 @@ module DocuSign_eSign
232
239
  # Attribute mapping from ruby-style variable name to JSON key.
233
240
  def self.attribute_map
234
241
  {
242
+ :'anchor_allow_white_space_in_characters' => :'anchorAllowWhiteSpaceInCharacters',
243
+ :'anchor_allow_white_space_in_characters_metadata' => :'anchorAllowWhiteSpaceInCharactersMetadata',
235
244
  :'anchor_case_sensitive' => :'anchorCaseSensitive',
236
245
  :'anchor_case_sensitive_metadata' => :'anchorCaseSensitiveMetadata',
237
246
  :'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
@@ -290,6 +299,7 @@ module DocuSign_eSign
290
299
  :'recipient_id_metadata' => :'recipientIdMetadata',
291
300
  :'shared' => :'shared',
292
301
  :'shared_metadata' => :'sharedMetadata',
302
+ :'smart_contract_information' => :'smartContractInformation',
293
303
  :'status' => :'status',
294
304
  :'status_metadata' => :'statusMetadata',
295
305
  :'tab_group_labels' => :'tabGroupLabels',
@@ -324,6 +334,8 @@ module DocuSign_eSign
324
334
  # Attribute type mapping.
325
335
  def self.swagger_types
326
336
  {
337
+ :'anchor_allow_white_space_in_characters' => :'String',
338
+ :'anchor_allow_white_space_in_characters_metadata' => :'PropertyMetadata',
327
339
  :'anchor_case_sensitive' => :'String',
328
340
  :'anchor_case_sensitive_metadata' => :'PropertyMetadata',
329
341
  :'anchor_horizontal_alignment' => :'String',
@@ -382,6 +394,7 @@ module DocuSign_eSign
382
394
  :'recipient_id_metadata' => :'PropertyMetadata',
383
395
  :'shared' => :'String',
384
396
  :'shared_metadata' => :'PropertyMetadata',
397
+ :'smart_contract_information' => :'SmartContractInformation',
385
398
  :'status' => :'String',
386
399
  :'status_metadata' => :'PropertyMetadata',
387
400
  :'tab_group_labels' => :'Array<String>',
@@ -421,6 +434,14 @@ module DocuSign_eSign
421
434
  # convert string to symbol for hash key
422
435
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
423
436
 
437
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharacters')
438
+ self.anchor_allow_white_space_in_characters = attributes[:'anchorAllowWhiteSpaceInCharacters']
439
+ end
440
+
441
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharactersMetadata')
442
+ self.anchor_allow_white_space_in_characters_metadata = attributes[:'anchorAllowWhiteSpaceInCharactersMetadata']
443
+ end
444
+
424
445
  if attributes.has_key?(:'anchorCaseSensitive')
425
446
  self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
426
447
  end
@@ -653,6 +674,10 @@ module DocuSign_eSign
653
674
  self.shared_metadata = attributes[:'sharedMetadata']
654
675
  end
655
676
 
677
+ if attributes.has_key?(:'smartContractInformation')
678
+ self.smart_contract_information = attributes[:'smartContractInformation']
679
+ end
680
+
656
681
  if attributes.has_key?(:'status')
657
682
  self.status = attributes[:'status']
658
683
  end
@@ -787,6 +812,8 @@ module DocuSign_eSign
787
812
  def ==(o)
788
813
  return true if self.equal?(o)
789
814
  self.class == o.class &&
815
+ anchor_allow_white_space_in_characters == o.anchor_allow_white_space_in_characters &&
816
+ anchor_allow_white_space_in_characters_metadata == o.anchor_allow_white_space_in_characters_metadata &&
790
817
  anchor_case_sensitive == o.anchor_case_sensitive &&
791
818
  anchor_case_sensitive_metadata == o.anchor_case_sensitive_metadata &&
792
819
  anchor_horizontal_alignment == o.anchor_horizontal_alignment &&
@@ -845,6 +872,7 @@ module DocuSign_eSign
845
872
  recipient_id_metadata == o.recipient_id_metadata &&
846
873
  shared == o.shared &&
847
874
  shared_metadata == o.shared_metadata &&
875
+ smart_contract_information == o.smart_contract_information &&
848
876
  status == o.status &&
849
877
  status_metadata == o.status_metadata &&
850
878
  tab_group_labels == o.tab_group_labels &&
@@ -884,7 +912,7 @@ module DocuSign_eSign
884
912
  # Calculates hash code according to all attributes.
885
913
  # @return [Fixnum] Hash code
886
914
  def hash
887
- [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, shared, shared_metadata, 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
915
+ [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, shared, shared_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, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
888
916
  end
889
917
 
890
918
  # Builds the object from hash
@@ -14,6 +14,11 @@ require 'date'
14
14
  module DocuSign_eSign
15
15
 
16
16
  class Number
17
+ #
18
+ attr_accessor :anchor_allow_white_space_in_characters
19
+
20
+ attr_accessor :anchor_allow_white_space_in_characters_metadata
21
+
17
22
  # When set to **true**, the anchor string does not consider case when matching strings in the document. The default value is **true**.
18
23
  attr_accessor :anchor_case_sensitive
19
24
 
@@ -213,6 +218,8 @@ module DocuSign_eSign
213
218
 
214
219
  attr_accessor :shared_metadata
215
220
 
221
+ attr_accessor :smart_contract_information
222
+
216
223
  # 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.
217
224
  attr_accessor :status
218
225
 
@@ -297,6 +304,8 @@ module DocuSign_eSign
297
304
  # Attribute mapping from ruby-style variable name to JSON key.
298
305
  def self.attribute_map
299
306
  {
307
+ :'anchor_allow_white_space_in_characters' => :'anchorAllowWhiteSpaceInCharacters',
308
+ :'anchor_allow_white_space_in_characters_metadata' => :'anchorAllowWhiteSpaceInCharactersMetadata',
300
309
  :'anchor_case_sensitive' => :'anchorCaseSensitive',
301
310
  :'anchor_case_sensitive_metadata' => :'anchorCaseSensitiveMetadata',
302
311
  :'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
@@ -377,6 +386,7 @@ module DocuSign_eSign
377
386
  :'sender_required_metadata' => :'senderRequiredMetadata',
378
387
  :'shared' => :'shared',
379
388
  :'shared_metadata' => :'sharedMetadata',
389
+ :'smart_contract_information' => :'smartContractInformation',
380
390
  :'status' => :'status',
381
391
  :'status_metadata' => :'statusMetadata',
382
392
  :'tab_group_labels' => :'tabGroupLabels',
@@ -415,6 +425,8 @@ module DocuSign_eSign
415
425
  # Attribute type mapping.
416
426
  def self.swagger_types
417
427
  {
428
+ :'anchor_allow_white_space_in_characters' => :'String',
429
+ :'anchor_allow_white_space_in_characters_metadata' => :'PropertyMetadata',
418
430
  :'anchor_case_sensitive' => :'String',
419
431
  :'anchor_case_sensitive_metadata' => :'PropertyMetadata',
420
432
  :'anchor_horizontal_alignment' => :'String',
@@ -495,6 +507,7 @@ module DocuSign_eSign
495
507
  :'sender_required_metadata' => :'PropertyMetadata',
496
508
  :'shared' => :'String',
497
509
  :'shared_metadata' => :'PropertyMetadata',
510
+ :'smart_contract_information' => :'SmartContractInformation',
498
511
  :'status' => :'String',
499
512
  :'status_metadata' => :'PropertyMetadata',
500
513
  :'tab_group_labels' => :'Array<String>',
@@ -538,6 +551,14 @@ module DocuSign_eSign
538
551
  # convert string to symbol for hash key
539
552
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
540
553
 
554
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharacters')
555
+ self.anchor_allow_white_space_in_characters = attributes[:'anchorAllowWhiteSpaceInCharacters']
556
+ end
557
+
558
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharactersMetadata')
559
+ self.anchor_allow_white_space_in_characters_metadata = attributes[:'anchorAllowWhiteSpaceInCharactersMetadata']
560
+ end
561
+
541
562
  if attributes.has_key?(:'anchorCaseSensitive')
542
563
  self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
543
564
  end
@@ -858,6 +879,10 @@ module DocuSign_eSign
858
879
  self.shared_metadata = attributes[:'sharedMetadata']
859
880
  end
860
881
 
882
+ if attributes.has_key?(:'smartContractInformation')
883
+ self.smart_contract_information = attributes[:'smartContractInformation']
884
+ end
885
+
861
886
  if attributes.has_key?(:'status')
862
887
  self.status = attributes[:'status']
863
888
  end
@@ -1008,6 +1033,8 @@ module DocuSign_eSign
1008
1033
  def ==(o)
1009
1034
  return true if self.equal?(o)
1010
1035
  self.class == o.class &&
1036
+ anchor_allow_white_space_in_characters == o.anchor_allow_white_space_in_characters &&
1037
+ anchor_allow_white_space_in_characters_metadata == o.anchor_allow_white_space_in_characters_metadata &&
1011
1038
  anchor_case_sensitive == o.anchor_case_sensitive &&
1012
1039
  anchor_case_sensitive_metadata == o.anchor_case_sensitive_metadata &&
1013
1040
  anchor_horizontal_alignment == o.anchor_horizontal_alignment &&
@@ -1088,6 +1115,7 @@ module DocuSign_eSign
1088
1115
  sender_required_metadata == o.sender_required_metadata &&
1089
1116
  shared == o.shared &&
1090
1117
  shared_metadata == o.shared_metadata &&
1118
+ smart_contract_information == o.smart_contract_information &&
1091
1119
  status == o.status &&
1092
1120
  status_metadata == o.status_metadata &&
1093
1121
  tab_group_labels == o.tab_group_labels &&
@@ -1131,7 +1159,7 @@ module DocuSign_eSign
1131
1159
  # Calculates hash code according to all attributes.
1132
1160
  # @return [Fixnum] Hash code
1133
1161
  def hash
1134
- [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, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_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, formula, formula_metadata, height, height_metadata, is_payment_amount, is_payment_amount_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, sender_required, sender_required_metadata, shared, shared_metadata, 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, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
1162
+ [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, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_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, formula, formula_metadata, height, height_metadata, is_payment_amount, is_payment_amount_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, sender_required, sender_required_metadata, shared, shared_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, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
1135
1163
  end
1136
1164
 
1137
1165
  # Builds the object from hash
@@ -0,0 +1,238 @@
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
+
16
+ class OcrRequest
17
+ #
18
+ attr_accessor :ocr_language
19
+
20
+ #
21
+ attr_accessor :page_selection
22
+
23
+ #
24
+ attr_accessor :set_page_orientation
25
+
26
+ #
27
+ attr_accessor :show_frames
28
+
29
+ #
30
+ attr_accessor :show_text
31
+
32
+ #
33
+ attr_accessor :skip_pages_having_existing_extractable_text
34
+
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'ocr_language' => :'ocrLanguage',
40
+ :'page_selection' => :'pageSelection',
41
+ :'set_page_orientation' => :'setPageOrientation',
42
+ :'show_frames' => :'showFrames',
43
+ :'show_text' => :'showText',
44
+ :'skip_pages_having_existing_extractable_text' => :'skipPagesHavingExistingExtractableText'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'ocr_language' => :'String',
52
+ :'page_selection' => :'String',
53
+ :'set_page_orientation' => :'String',
54
+ :'show_frames' => :'String',
55
+ :'show_text' => :'String',
56
+ :'skip_pages_having_existing_extractable_text' => :'String'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
67
+
68
+ if attributes.has_key?(:'ocrLanguage')
69
+ self.ocr_language = attributes[:'ocrLanguage']
70
+ end
71
+
72
+ if attributes.has_key?(:'pageSelection')
73
+ self.page_selection = attributes[:'pageSelection']
74
+ end
75
+
76
+ if attributes.has_key?(:'setPageOrientation')
77
+ self.set_page_orientation = attributes[:'setPageOrientation']
78
+ end
79
+
80
+ if attributes.has_key?(:'showFrames')
81
+ self.show_frames = attributes[:'showFrames']
82
+ end
83
+
84
+ if attributes.has_key?(:'showText')
85
+ self.show_text = attributes[:'showText']
86
+ end
87
+
88
+ if attributes.has_key?(:'skipPagesHavingExistingExtractableText')
89
+ self.skip_pages_having_existing_extractable_text = attributes[:'skipPagesHavingExistingExtractableText']
90
+ end
91
+
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properies with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ return invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ return true
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ ocr_language == o.ocr_language &&
113
+ page_selection == o.page_selection &&
114
+ set_page_orientation == o.set_page_orientation &&
115
+ show_frames == o.show_frames &&
116
+ show_text == o.show_text &&
117
+ skip_pages_having_existing_extractable_text == o.skip_pages_having_existing_extractable_text
118
+ end
119
+
120
+ # @see the `==` method
121
+ # @param [Object] Object to be compared
122
+ def eql?(o)
123
+ self == o
124
+ end
125
+
126
+ # Calculates hash code according to all attributes.
127
+ # @return [Fixnum] Hash code
128
+ def hash
129
+ [ocr_language, page_selection, set_page_orientation, show_frames, show_text, skip_pages_having_existing_extractable_text].hash
130
+ end
131
+
132
+ # Builds the object from hash
133
+ # @param [Hash] attributes Model attributes in the form of hash
134
+ # @return [Object] Returns the model itself
135
+ def build_from_hash(attributes)
136
+ return nil unless attributes.is_a?(Hash)
137
+ self.class.swagger_types.each_pair do |key, type|
138
+ if type =~ /\AArray<(.*)>/i
139
+ # check to ensure the input is an array given that the the attribute
140
+ # is documented as an array but the input is not
141
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
142
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
143
+ end
144
+ elsif !attributes[self.class.attribute_map[key]].nil?
145
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
146
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
147
+ end
148
+
149
+ self
150
+ end
151
+
152
+ # Deserializes the data based on type
153
+ # @param string type Data type
154
+ # @param string value Value to be deserialized
155
+ # @return [Object] Deserialized data
156
+ def _deserialize(type, value)
157
+ case type.to_sym
158
+ when :DateTime
159
+ DateTime.parse(value)
160
+ when :Date
161
+ Date.parse(value)
162
+ when :String
163
+ value.to_s
164
+ when :Integer
165
+ value.to_i
166
+ when :Float
167
+ value.to_f
168
+ when :BOOLEAN
169
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
170
+ true
171
+ else
172
+ false
173
+ end
174
+ when :Object
175
+ # generic object (usually a Hash), return directly
176
+ value
177
+ when /\AArray<(?<inner_type>.+)>\z/
178
+ inner_type = Regexp.last_match[:inner_type]
179
+ value.map { |v| _deserialize(inner_type, v) }
180
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
181
+ k_type = Regexp.last_match[:k_type]
182
+ v_type = Regexp.last_match[:v_type]
183
+ {}.tap do |hash|
184
+ value.each do |k, v|
185
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
186
+ end
187
+ end
188
+ else # model
189
+ temp_model = DocuSign_eSign.const_get(type).new
190
+ temp_model.build_from_hash(value)
191
+ end
192
+ end
193
+
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
199
+
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ next if value.nil?
213
+ hash[param] = _to_hash(value)
214
+ end
215
+ hash
216
+ end
217
+
218
+ # Outputs non-array value in the form of hash
219
+ # For object, use to_hash. Otherwise, just return the value
220
+ # @param [Object] value Any valid value
221
+ # @return [Hash] Returns the value in the form of hash
222
+ def _to_hash(value)
223
+ if value.is_a?(Array)
224
+ value.compact.map{ |v| _to_hash(v) }
225
+ elsif value.is_a?(Hash)
226
+ {}.tap do |hash|
227
+ value.each { |k, v| hash[k] = _to_hash(v) }
228
+ end
229
+ elsif value.respond_to? :to_hash
230
+ value.to_hash
231
+ else
232
+ value
233
+ end
234
+ end
235
+
236
+ end
237
+
238
+ end