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,188 @@
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 ProofServiceViewLink
17
+ #
18
+ attr_accessor :view_link
19
+
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'view_link' => :'ViewLink'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'view_link' => :'String'
32
+ }
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'ViewLink')
44
+ self.view_link = attributes[:'ViewLink']
45
+ end
46
+
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properies with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ return invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ return true
60
+ end
61
+
62
+ # Checks equality by comparing each attribute.
63
+ # @param [Object] Object to be compared
64
+ def ==(o)
65
+ return true if self.equal?(o)
66
+ self.class == o.class &&
67
+ view_link == o.view_link
68
+ end
69
+
70
+ # @see the `==` method
71
+ # @param [Object] Object to be compared
72
+ def eql?(o)
73
+ self == o
74
+ end
75
+
76
+ # Calculates hash code according to all attributes.
77
+ # @return [Fixnum] Hash code
78
+ def hash
79
+ [view_link].hash
80
+ end
81
+
82
+ # Builds the object from hash
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ # @return [Object] Returns the model itself
85
+ def build_from_hash(attributes)
86
+ return nil unless attributes.is_a?(Hash)
87
+ self.class.swagger_types.each_pair do |key, type|
88
+ if type =~ /\AArray<(.*)>/i
89
+ # check to ensure the input is an array given that the the attribute
90
+ # is documented as an array but the input is not
91
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
92
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
93
+ end
94
+ elsif !attributes[self.class.attribute_map[key]].nil?
95
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
96
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
97
+ end
98
+
99
+ self
100
+ end
101
+
102
+ # Deserializes the data based on type
103
+ # @param string type Data type
104
+ # @param string value Value to be deserialized
105
+ # @return [Object] Deserialized data
106
+ def _deserialize(type, value)
107
+ case type.to_sym
108
+ when :DateTime
109
+ DateTime.parse(value)
110
+ when :Date
111
+ Date.parse(value)
112
+ when :String
113
+ value.to_s
114
+ when :Integer
115
+ value.to_i
116
+ when :Float
117
+ value.to_f
118
+ when :BOOLEAN
119
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
120
+ true
121
+ else
122
+ false
123
+ end
124
+ when :Object
125
+ # generic object (usually a Hash), return directly
126
+ value
127
+ when /\AArray<(?<inner_type>.+)>\z/
128
+ inner_type = Regexp.last_match[:inner_type]
129
+ value.map { |v| _deserialize(inner_type, v) }
130
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
131
+ k_type = Regexp.last_match[:k_type]
132
+ v_type = Regexp.last_match[:v_type]
133
+ {}.tap do |hash|
134
+ value.each do |k, v|
135
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
136
+ end
137
+ end
138
+ else # model
139
+ temp_model = DocuSign_eSign.const_get(type).new
140
+ temp_model.build_from_hash(value)
141
+ end
142
+ end
143
+
144
+ # Returns the string representation of the object
145
+ # @return [String] String presentation of the object
146
+ def to_s
147
+ to_hash.to_s
148
+ end
149
+
150
+ # to_body is an alias to to_hash (backward compatibility)
151
+ # @return [Hash] Returns the object in the form of hash
152
+ def to_body
153
+ to_hash
154
+ end
155
+
156
+ # Returns the object in the form of hash
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_hash
159
+ hash = {}
160
+ self.class.attribute_map.each_pair do |attr, param|
161
+ value = self.send(attr)
162
+ next if value.nil?
163
+ hash[param] = _to_hash(value)
164
+ end
165
+ hash
166
+ end
167
+
168
+ # Outputs non-array value in the form of hash
169
+ # For object, use to_hash. Otherwise, just return the value
170
+ # @param [Object] value Any valid value
171
+ # @return [Hash] Returns the value in the form of hash
172
+ def _to_hash(value)
173
+ if value.is_a?(Array)
174
+ value.compact.map{ |v| _to_hash(v) }
175
+ elsif value.is_a?(Hash)
176
+ {}.tap do |hash|
177
+ value.each { |k, v| hash[k] = _to_hash(v) }
178
+ end
179
+ elsif value.respond_to? :to_hash
180
+ value.to_hash
181
+ else
182
+ value
183
+ end
184
+ end
185
+
186
+ end
187
+
188
+ end
@@ -14,6 +14,11 @@ require 'date'
14
14
  module DocuSign_eSign
15
15
 
16
16
  class Radio
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
 
@@ -145,6 +150,8 @@ module DocuSign_eSign
145
150
  # Attribute mapping from ruby-style variable name to JSON key.
146
151
  def self.attribute_map
147
152
  {
153
+ :'anchor_allow_white_space_in_characters' => :'anchorAllowWhiteSpaceInCharacters',
154
+ :'anchor_allow_white_space_in_characters_metadata' => :'anchorAllowWhiteSpaceInCharactersMetadata',
148
155
  :'anchor_case_sensitive' => :'anchorCaseSensitive',
149
156
  :'anchor_case_sensitive_metadata' => :'anchorCaseSensitiveMetadata',
150
157
  :'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
@@ -202,6 +209,8 @@ module DocuSign_eSign
202
209
  # Attribute type mapping.
203
210
  def self.swagger_types
204
211
  {
212
+ :'anchor_allow_white_space_in_characters' => :'String',
213
+ :'anchor_allow_white_space_in_characters_metadata' => :'PropertyMetadata',
205
214
  :'anchor_case_sensitive' => :'String',
206
215
  :'anchor_case_sensitive_metadata' => :'PropertyMetadata',
207
216
  :'anchor_horizontal_alignment' => :'String',
@@ -264,6 +273,14 @@ module DocuSign_eSign
264
273
  # convert string to symbol for hash key
265
274
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
266
275
 
276
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharacters')
277
+ self.anchor_allow_white_space_in_characters = attributes[:'anchorAllowWhiteSpaceInCharacters']
278
+ end
279
+
280
+ if attributes.has_key?(:'anchorAllowWhiteSpaceInCharactersMetadata')
281
+ self.anchor_allow_white_space_in_characters_metadata = attributes[:'anchorAllowWhiteSpaceInCharactersMetadata']
282
+ end
283
+
267
284
  if attributes.has_key?(:'anchorCaseSensitive')
268
285
  self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
269
286
  end
@@ -488,6 +505,8 @@ module DocuSign_eSign
488
505
  def ==(o)
489
506
  return true if self.equal?(o)
490
507
  self.class == o.class &&
508
+ anchor_allow_white_space_in_characters == o.anchor_allow_white_space_in_characters &&
509
+ anchor_allow_white_space_in_characters_metadata == o.anchor_allow_white_space_in_characters_metadata &&
491
510
  anchor_case_sensitive == o.anchor_case_sensitive &&
492
511
  anchor_case_sensitive_metadata == o.anchor_case_sensitive_metadata &&
493
512
  anchor_horizontal_alignment == o.anchor_horizontal_alignment &&
@@ -550,7 +569,7 @@ module DocuSign_eSign
550
569
  # Calculates hash code according to all attributes.
551
570
  # @return [Fixnum] Hash code
552
571
  def hash
553
- [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, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, italic, italic_metadata, locked, locked_metadata, page_number, page_number_metadata, required, required_metadata, selected, selected_metadata, status, status_metadata, tab_id, tab_id_metadata, tab_order, tab_order_metadata, underline, underline_metadata, value, value_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
572
+ [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, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, italic, italic_metadata, locked, locked_metadata, page_number, page_number_metadata, required, required_metadata, selected, selected_metadata, status, status_metadata, tab_id, tab_id_metadata, tab_order, tab_order_metadata, underline, underline_metadata, value, value_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
554
573
  end
555
574
 
556
575
  # Builds the object from hash
@@ -24,7 +24,7 @@ module DocuSign_eSign
24
24
 
25
25
  attr_accessor :email_subject_metadata
26
26
 
27
- # A simple type enumeration of the language used. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Bahasa Indonesia (id), Bahasa Melayu (ms) Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro),Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk), and Vietnamese (vi).
27
+ # A simple type enumeration of the language used. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Armenian (hy), Bahasa Indonesia (id), Bahasa Melayu (ms) Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro),Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk), and Vietnamese (vi).
28
28
  attr_accessor :supported_language
29
29
 
30
30
  attr_accessor :supported_language_metadata
@@ -0,0 +1,188 @@
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 RecipientProofFile
17
+ #
18
+ attr_accessor :is_in_proof_file
19
+
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'is_in_proof_file' => :'isInProofFile'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'is_in_proof_file' => :'String'
32
+ }
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'isInProofFile')
44
+ self.is_in_proof_file = attributes[:'isInProofFile']
45
+ end
46
+
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properies with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ return invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ return true
60
+ end
61
+
62
+ # Checks equality by comparing each attribute.
63
+ # @param [Object] Object to be compared
64
+ def ==(o)
65
+ return true if self.equal?(o)
66
+ self.class == o.class &&
67
+ is_in_proof_file == o.is_in_proof_file
68
+ end
69
+
70
+ # @see the `==` method
71
+ # @param [Object] Object to be compared
72
+ def eql?(o)
73
+ self == o
74
+ end
75
+
76
+ # Calculates hash code according to all attributes.
77
+ # @return [Fixnum] Hash code
78
+ def hash
79
+ [is_in_proof_file].hash
80
+ end
81
+
82
+ # Builds the object from hash
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ # @return [Object] Returns the model itself
85
+ def build_from_hash(attributes)
86
+ return nil unless attributes.is_a?(Hash)
87
+ self.class.swagger_types.each_pair do |key, type|
88
+ if type =~ /\AArray<(.*)>/i
89
+ # check to ensure the input is an array given that the the attribute
90
+ # is documented as an array but the input is not
91
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
92
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
93
+ end
94
+ elsif !attributes[self.class.attribute_map[key]].nil?
95
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
96
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
97
+ end
98
+
99
+ self
100
+ end
101
+
102
+ # Deserializes the data based on type
103
+ # @param string type Data type
104
+ # @param string value Value to be deserialized
105
+ # @return [Object] Deserialized data
106
+ def _deserialize(type, value)
107
+ case type.to_sym
108
+ when :DateTime
109
+ DateTime.parse(value)
110
+ when :Date
111
+ Date.parse(value)
112
+ when :String
113
+ value.to_s
114
+ when :Integer
115
+ value.to_i
116
+ when :Float
117
+ value.to_f
118
+ when :BOOLEAN
119
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
120
+ true
121
+ else
122
+ false
123
+ end
124
+ when :Object
125
+ # generic object (usually a Hash), return directly
126
+ value
127
+ when /\AArray<(?<inner_type>.+)>\z/
128
+ inner_type = Regexp.last_match[:inner_type]
129
+ value.map { |v| _deserialize(inner_type, v) }
130
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
131
+ k_type = Regexp.last_match[:k_type]
132
+ v_type = Regexp.last_match[:v_type]
133
+ {}.tap do |hash|
134
+ value.each do |k, v|
135
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
136
+ end
137
+ end
138
+ else # model
139
+ temp_model = DocuSign_eSign.const_get(type).new
140
+ temp_model.build_from_hash(value)
141
+ end
142
+ end
143
+
144
+ # Returns the string representation of the object
145
+ # @return [String] String presentation of the object
146
+ def to_s
147
+ to_hash.to_s
148
+ end
149
+
150
+ # to_body is an alias to to_hash (backward compatibility)
151
+ # @return [Hash] Returns the object in the form of hash
152
+ def to_body
153
+ to_hash
154
+ end
155
+
156
+ # Returns the object in the form of hash
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_hash
159
+ hash = {}
160
+ self.class.attribute_map.each_pair do |attr, param|
161
+ value = self.send(attr)
162
+ next if value.nil?
163
+ hash[param] = _to_hash(value)
164
+ end
165
+ hash
166
+ end
167
+
168
+ # Outputs non-array value in the form of hash
169
+ # For object, use to_hash. Otherwise, just return the value
170
+ # @param [Object] value Any valid value
171
+ # @return [Hash] Returns the value in the form of hash
172
+ def _to_hash(value)
173
+ if value.is_a?(Array)
174
+ value.compact.map{ |v| _to_hash(v) }
175
+ elsif value.is_a?(Hash)
176
+ {}.tap do |hash|
177
+ value.each { |k, v| hash[k] = _to_hash(v) }
178
+ end
179
+ elsif value.respond_to? :to_hash
180
+ value.to_hash
181
+ else
182
+ value
183
+ end
184
+ end
185
+
186
+ end
187
+
188
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5
5
 
6
- OpenAPI spec version: v2
6
+ OpenAPI spec version: v2.1
7
7
  Contact: devcenter@docusign.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -23,6 +23,8 @@ module DocuSign_eSign
23
23
  #
24
24
  attr_accessor :max_signature_length
25
25
 
26
+ attr_accessor :signature_properties
27
+
26
28
  #
27
29
  attr_accessor :signature_type
28
30
 
@@ -36,6 +38,7 @@ module DocuSign_eSign
36
38
  :'end_data' => :'endData',
37
39
  :'field_name' => :'fieldName',
38
40
  :'max_signature_length' => :'maxSignatureLength',
41
+ :'signature_properties' => :'signatureProperties',
39
42
  :'signature_type' => :'signatureType',
40
43
  :'start_data' => :'startData'
41
44
  }
@@ -47,6 +50,7 @@ module DocuSign_eSign
47
50
  :'end_data' => :'String',
48
51
  :'field_name' => :'String',
49
52
  :'max_signature_length' => :'String',
53
+ :'signature_properties' => :'SignatureProperties',
50
54
  :'signature_type' => :'String',
51
55
  :'start_data' => :'String'
52
56
  }
@@ -72,6 +76,10 @@ module DocuSign_eSign
72
76
  self.max_signature_length = attributes[:'maxSignatureLength']
73
77
  end
74
78
 
79
+ if attributes.has_key?(:'signatureProperties')
80
+ self.signature_properties = attributes[:'signatureProperties']
81
+ end
82
+
75
83
  if attributes.has_key?(:'signatureType')
76
84
  self.signature_type = attributes[:'signatureType']
77
85
  end
@@ -103,6 +111,7 @@ module DocuSign_eSign
103
111
  end_data == o.end_data &&
104
112
  field_name == o.field_name &&
105
113
  max_signature_length == o.max_signature_length &&
114
+ signature_properties == o.signature_properties &&
106
115
  signature_type == o.signature_type &&
107
116
  start_data == o.start_data
108
117
  end
@@ -116,7 +125,7 @@ module DocuSign_eSign
116
125
  # Calculates hash code according to all attributes.
117
126
  # @return [Fixnum] Hash code
118
127
  def hash
119
- [end_data, field_name, max_signature_length, signature_type, start_data].hash
128
+ [end_data, field_name, max_signature_length, signature_properties, signature_type, start_data].hash
120
129
  end
121
130
 
122
131
  # Builds the object from hash