docusign_esign 2.2.0.pre.rc1 → 2.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/docusign_esign-3.1.0.rc2.gem +0 -0
  3. data/lib/docusign_esign.rb +386 -450
  4. data/lib/docusign_esign/api/accounts_api.rb +2 -2
  5. data/lib/docusign_esign/api/bulk_envelopes_api.rb +3 -3
  6. data/lib/docusign_esign/version.rb +1 -1
  7. metadata +3 -70
  8. data/docusign_esign-3.1.0.pre.rc1.gem +0 -0
  9. data/lib/docusign_esign/api/.DS_Store +0 -0
  10. data/lib/docusign_esign/models/access_code_format.rb +0 -273
  11. data/lib/docusign_esign/models/account_notification.rb +0 -206
  12. data/lib/docusign_esign/models/account_ui_settings.rb +0 -330
  13. data/lib/docusign_esign/models/bcc_email_archive.rb +0 -276
  14. data/lib/docusign_esign/models/bcc_email_archive_history.rb +0 -237
  15. data/lib/docusign_esign/models/bcc_email_archive_history_list.rb +0 -250
  16. data/lib/docusign_esign/models/bcc_email_archive_list.rb +0 -250
  17. data/lib/docusign_esign/models/bulk_send_request.rb +0 -188
  18. data/lib/docusign_esign/models/bulk_send_response.rb +0 -222
  19. data/lib/docusign_esign/models/bulk_send_test_response.rb +0 -212
  20. data/lib/docusign_esign/models/bulk_sending_copy.rb +0 -222
  21. data/lib/docusign_esign/models/bulk_sending_copy_custom_field.rb +0 -198
  22. data/lib/docusign_esign/models/bulk_sending_copy_recipient.rb +0 -382
  23. data/lib/docusign_esign/models/bulk_sending_copy_tab.rb +0 -198
  24. data/lib/docusign_esign/models/bulk_sending_list.rb +0 -210
  25. data/lib/docusign_esign/models/bulk_sending_list_summaries.rb +0 -190
  26. data/lib/docusign_esign/models/bulk_sending_list_summary.rb +0 -218
  27. data/lib/docusign_esign/models/comment.rb +0 -392
  28. data/lib/docusign_esign/models/comment_history_result.rb +0 -220
  29. data/lib/docusign_esign/models/comment_publish.rb +0 -244
  30. data/lib/docusign_esign/models/comment_thread.rb +0 -961
  31. data/lib/docusign_esign/models/comments_publish.rb +0 -190
  32. data/lib/docusign_esign/models/connect_salesforce_field.rb +0 -258
  33. data/lib/docusign_esign/models/connect_salesforce_object.rb +0 -272
  34. data/lib/docusign_esign/models/connect_user_object.rb +0 -230
  35. data/lib/docusign_esign/models/direct_debit_processor_information.rb +0 -298
  36. data/lib/docusign_esign/models/display_appliance_document.rb +0 -258
  37. data/lib/docusign_esign/models/display_appliance_document_page.rb +0 -278
  38. data/lib/docusign_esign/models/display_appliance_envelope.rb +0 -328
  39. data/lib/docusign_esign/models/display_appliance_info.rb +0 -235
  40. data/lib/docusign_esign/models/display_appliance_page.rb +0 -278
  41. data/lib/docusign_esign/models/display_appliance_pdf.rb +0 -267
  42. data/lib/docusign_esign/models/display_appliance_recipient.rb +0 -388
  43. data/lib/docusign_esign/models/display_appliance_signer_attachment.rb +0 -248
  44. data/lib/docusign_esign/models/envelope_metadata.rb +0 -208
  45. data/lib/docusign_esign/models/envelope_purge_configuration.rb +0 -218
  46. data/lib/docusign_esign/models/envelope_transfer_rule.rb +0 -273
  47. data/lib/docusign_esign/models/envelope_transfer_rule_information.rb +0 -250
  48. data/lib/docusign_esign/models/envelope_transfer_rule_request.rb +0 -279
  49. data/lib/docusign_esign/models/external_claim.rb +0 -218
  50. data/lib/docusign_esign/models/external_document_sources.rb +0 -273
  51. data/lib/docusign_esign/models/favorite_templates_content_item.rb +0 -207
  52. data/lib/docusign_esign/models/favorite_templates_info.rb +0 -209
  53. data/lib/docusign_esign/models/feature_available_metadata.rb +0 -198
  54. data/lib/docusign_esign/models/folder_shared_item.rb +0 -289
  55. data/lib/docusign_esign/models/form_data_item.rb +0 -227
  56. data/lib/docusign_esign/models/graphics_context.rb +0 -208
  57. data/lib/docusign_esign/models/id_check_configuration.rb +0 -210
  58. data/lib/docusign_esign/models/id_check_security_step.rb +0 -188
  59. data/lib/docusign_esign/models/locale_policy.rb +0 -595
  60. data/lib/docusign_esign/models/locale_policy_tab.rb +0 -298
  61. data/lib/docusign_esign/models/notification_default_settings.rb +0 -196
  62. data/lib/docusign_esign/models/notification_defaults.rb +0 -196
  63. data/lib/docusign_esign/models/page_size.rb +0 -198
  64. data/lib/docusign_esign/models/path_extended_element.rb +0 -208
  65. data/lib/docusign_esign/models/pay_pal_legacy_settings.rb +0 -228
  66. data/lib/docusign_esign/models/payment_gateway_account_setting.rb +0 -218
  67. data/lib/docusign_esign/models/payment_method_with_options.rb +0 -200
  68. data/lib/docusign_esign/models/poly_line.rb +0 -218
  69. data/lib/docusign_esign/models/poly_line_overlay.rb +0 -885
  70. data/lib/docusign_esign/models/recipient_preview_request.rb +0 -278
  71. data/lib/docusign_esign/models/signature_properties.rb +0 -198
  72. data/lib/docusign_esign/models/tab_group.rb +0 -911
  73. data/lib/docusign_esign/models/workspace_settings.rb +0 -188
  74. data/tests/Gemfile.lock +0 -42
  75. data/tests/docs/private.pem +0 -27
@@ -1,218 +0,0 @@
1
- =begin
2
- #DocuSign REST API
3
-
4
- #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5
-
6
- OpenAPI spec version: v2.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 BulkSendingListSummary
17
- #
18
- attr_accessor :bulk_send_list_id
19
-
20
- #
21
- attr_accessor :created_by_user
22
-
23
- #
24
- attr_accessor :created_date
25
-
26
- #
27
- attr_accessor :name
28
-
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
- :'bulk_send_list_id' => :'bulkSendListId',
34
- :'created_by_user' => :'createdByUser',
35
- :'created_date' => :'createdDate',
36
- :'name' => :'name'
37
- }
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.swagger_types
42
- {
43
- :'bulk_send_list_id' => :'String',
44
- :'created_by_user' => :'String',
45
- :'created_date' => :'String',
46
- :'name' => :'String'
47
- }
48
- end
49
-
50
- # Initializes the object
51
- # @param [Hash] attributes Model attributes in the form of hash
52
- def initialize(attributes = {})
53
- return unless attributes.is_a?(Hash)
54
-
55
- # convert string to symbol for hash key
56
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
57
-
58
- if attributes.has_key?(:'bulkSendListId')
59
- self.bulk_send_list_id = attributes[:'bulkSendListId']
60
- end
61
-
62
- if attributes.has_key?(:'createdByUser')
63
- self.created_by_user = attributes[:'createdByUser']
64
- end
65
-
66
- if attributes.has_key?(:'createdDate')
67
- self.created_date = attributes[:'createdDate']
68
- end
69
-
70
- if attributes.has_key?(:'name')
71
- self.name = attributes[:'name']
72
- end
73
-
74
- end
75
-
76
- # Show invalid properties with the reasons. Usually used together with valid?
77
- # @return Array for valid properies with the reasons
78
- def list_invalid_properties
79
- invalid_properties = Array.new
80
- return invalid_properties
81
- end
82
-
83
- # Check to see if the all the properties in the model are valid
84
- # @return true if the model is valid
85
- def valid?
86
- return true
87
- end
88
-
89
- # Checks equality by comparing each attribute.
90
- # @param [Object] Object to be compared
91
- def ==(o)
92
- return true if self.equal?(o)
93
- self.class == o.class &&
94
- bulk_send_list_id == o.bulk_send_list_id &&
95
- created_by_user == o.created_by_user &&
96
- created_date == o.created_date &&
97
- name == o.name
98
- end
99
-
100
- # @see the `==` method
101
- # @param [Object] Object to be compared
102
- def eql?(o)
103
- self == o
104
- end
105
-
106
- # Calculates hash code according to all attributes.
107
- # @return [Fixnum] Hash code
108
- def hash
109
- [bulk_send_list_id, created_by_user, created_date, name].hash
110
- end
111
-
112
- # Builds the object from hash
113
- # @param [Hash] attributes Model attributes in the form of hash
114
- # @return [Object] Returns the model itself
115
- def build_from_hash(attributes)
116
- return nil unless attributes.is_a?(Hash)
117
- self.class.swagger_types.each_pair do |key, type|
118
- if type =~ /\AArray<(.*)>/i
119
- # check to ensure the input is an array given that the the attribute
120
- # is documented as an array but the input is not
121
- if attributes[self.class.attribute_map[key]].is_a?(Array)
122
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
- end
124
- elsif !attributes[self.class.attribute_map[key]].nil?
125
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
- end # or else data not found in attributes(hash), not an issue as the data can be optional
127
- end
128
-
129
- self
130
- end
131
-
132
- # Deserializes the data based on type
133
- # @param string type Data type
134
- # @param string value Value to be deserialized
135
- # @return [Object] Deserialized data
136
- def _deserialize(type, value)
137
- case type.to_sym
138
- when :DateTime
139
- DateTime.parse(value)
140
- when :Date
141
- Date.parse(value)
142
- when :String
143
- value.to_s
144
- when :Integer
145
- value.to_i
146
- when :Float
147
- value.to_f
148
- when :BOOLEAN
149
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
- true
151
- else
152
- false
153
- end
154
- when :Object
155
- # generic object (usually a Hash), return directly
156
- value
157
- when /\AArray<(?<inner_type>.+)>\z/
158
- inner_type = Regexp.last_match[:inner_type]
159
- value.map { |v| _deserialize(inner_type, v) }
160
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
- k_type = Regexp.last_match[:k_type]
162
- v_type = Regexp.last_match[:v_type]
163
- {}.tap do |hash|
164
- value.each do |k, v|
165
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
- end
167
- end
168
- else # model
169
- temp_model = DocuSign_eSign.const_get(type).new
170
- temp_model.build_from_hash(value)
171
- end
172
- end
173
-
174
- # Returns the string representation of the object
175
- # @return [String] String presentation of the object
176
- def to_s
177
- to_hash.to_s
178
- end
179
-
180
- # to_body is an alias to to_hash (backward compatibility)
181
- # @return [Hash] Returns the object in the form of hash
182
- def to_body
183
- to_hash
184
- end
185
-
186
- # Returns the object in the form of hash
187
- # @return [Hash] Returns the object in the form of hash
188
- def to_hash
189
- hash = {}
190
- self.class.attribute_map.each_pair do |attr, param|
191
- value = self.send(attr)
192
- next if value.nil?
193
- hash[param] = _to_hash(value)
194
- end
195
- hash
196
- end
197
-
198
- # Outputs non-array value in the form of hash
199
- # For object, use to_hash. Otherwise, just return the value
200
- # @param [Object] value Any valid value
201
- # @return [Hash] Returns the value in the form of hash
202
- def _to_hash(value)
203
- if value.is_a?(Array)
204
- value.compact.map{ |v| _to_hash(v) }
205
- elsif value.is_a?(Hash)
206
- {}.tap do |hash|
207
- value.each { |k, v| hash[k] = _to_hash(v) }
208
- end
209
- elsif value.respond_to? :to_hash
210
- value.to_hash
211
- else
212
- value
213
- end
214
- end
215
-
216
- end
217
-
218
- end
@@ -1,392 +0,0 @@
1
- =begin
2
- #DocuSign REST API
3
-
4
- #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
5
-
6
- OpenAPI spec version: v2.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 Comment
17
- # The envelope ID of the envelope status that failed to post.
18
- attr_accessor :envelope_id
19
-
20
- #
21
- attr_accessor :hmac
22
-
23
- #
24
- attr_accessor :id
25
-
26
- #
27
- attr_accessor :mentions
28
-
29
- #
30
- attr_accessor :read
31
-
32
- #
33
- attr_accessor :sent_by_email
34
-
35
- #
36
- attr_accessor :sent_by_full_name
37
-
38
- #
39
- attr_accessor :sent_by_image_id
40
-
41
- #
42
- attr_accessor :sent_by_initials
43
-
44
- #
45
- attr_accessor :sent_by_recipient_id
46
-
47
- #
48
- attr_accessor :sent_by_user_id
49
-
50
- # When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab ( instead of adopting a signature/initial style or only drawing a signature/initial once).
51
- attr_accessor :signing_group_id
52
-
53
- # The display name for the signing group. Maximum Length: 100 characters.
54
- attr_accessor :signing_group_name
55
-
56
- #
57
- attr_accessor :subject
58
-
59
- # The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
60
- attr_accessor :tab_id
61
-
62
- #
63
- attr_accessor :text
64
-
65
- #
66
- attr_accessor :thread_id
67
-
68
- #
69
- attr_accessor :thread_originator_id
70
-
71
- #
72
- attr_accessor :timestamp
73
-
74
- #
75
- attr_accessor :time_stamp_formatted
76
-
77
- #
78
- attr_accessor :visible_to
79
-
80
-
81
- # Attribute mapping from ruby-style variable name to JSON key.
82
- def self.attribute_map
83
- {
84
- :'envelope_id' => :'envelopeId',
85
- :'hmac' => :'hmac',
86
- :'id' => :'id',
87
- :'mentions' => :'mentions',
88
- :'read' => :'read',
89
- :'sent_by_email' => :'sentByEmail',
90
- :'sent_by_full_name' => :'sentByFullName',
91
- :'sent_by_image_id' => :'sentByImageId',
92
- :'sent_by_initials' => :'sentByInitials',
93
- :'sent_by_recipient_id' => :'sentByRecipientId',
94
- :'sent_by_user_id' => :'sentByUserId',
95
- :'signing_group_id' => :'signingGroupId',
96
- :'signing_group_name' => :'signingGroupName',
97
- :'subject' => :'subject',
98
- :'tab_id' => :'tabId',
99
- :'text' => :'text',
100
- :'thread_id' => :'threadId',
101
- :'thread_originator_id' => :'threadOriginatorId',
102
- :'timestamp' => :'timestamp',
103
- :'time_stamp_formatted' => :'timeStampFormatted',
104
- :'visible_to' => :'visibleTo'
105
- }
106
- end
107
-
108
- # Attribute type mapping.
109
- def self.swagger_types
110
- {
111
- :'envelope_id' => :'String',
112
- :'hmac' => :'String',
113
- :'id' => :'String',
114
- :'mentions' => :'Array<String>',
115
- :'read' => :'BOOLEAN',
116
- :'sent_by_email' => :'String',
117
- :'sent_by_full_name' => :'String',
118
- :'sent_by_image_id' => :'String',
119
- :'sent_by_initials' => :'String',
120
- :'sent_by_recipient_id' => :'String',
121
- :'sent_by_user_id' => :'String',
122
- :'signing_group_id' => :'String',
123
- :'signing_group_name' => :'String',
124
- :'subject' => :'String',
125
- :'tab_id' => :'String',
126
- :'text' => :'String',
127
- :'thread_id' => :'String',
128
- :'thread_originator_id' => :'String',
129
- :'timestamp' => :'String',
130
- :'time_stamp_formatted' => :'String',
131
- :'visible_to' => :'Array<String>'
132
- }
133
- end
134
-
135
- # Initializes the object
136
- # @param [Hash] attributes Model attributes in the form of hash
137
- def initialize(attributes = {})
138
- return unless attributes.is_a?(Hash)
139
-
140
- # convert string to symbol for hash key
141
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
142
-
143
- if attributes.has_key?(:'envelopeId')
144
- self.envelope_id = attributes[:'envelopeId']
145
- end
146
-
147
- if attributes.has_key?(:'hmac')
148
- self.hmac = attributes[:'hmac']
149
- end
150
-
151
- if attributes.has_key?(:'id')
152
- self.id = attributes[:'id']
153
- end
154
-
155
- if attributes.has_key?(:'mentions')
156
- if (value = attributes[:'mentions']).is_a?(Array)
157
- self.mentions = value
158
- end
159
- end
160
-
161
- if attributes.has_key?(:'read')
162
- self.read = attributes[:'read']
163
- end
164
-
165
- if attributes.has_key?(:'sentByEmail')
166
- self.sent_by_email = attributes[:'sentByEmail']
167
- end
168
-
169
- if attributes.has_key?(:'sentByFullName')
170
- self.sent_by_full_name = attributes[:'sentByFullName']
171
- end
172
-
173
- if attributes.has_key?(:'sentByImageId')
174
- self.sent_by_image_id = attributes[:'sentByImageId']
175
- end
176
-
177
- if attributes.has_key?(:'sentByInitials')
178
- self.sent_by_initials = attributes[:'sentByInitials']
179
- end
180
-
181
- if attributes.has_key?(:'sentByRecipientId')
182
- self.sent_by_recipient_id = attributes[:'sentByRecipientId']
183
- end
184
-
185
- if attributes.has_key?(:'sentByUserId')
186
- self.sent_by_user_id = attributes[:'sentByUserId']
187
- end
188
-
189
- if attributes.has_key?(:'signingGroupId')
190
- self.signing_group_id = attributes[:'signingGroupId']
191
- end
192
-
193
- if attributes.has_key?(:'signingGroupName')
194
- self.signing_group_name = attributes[:'signingGroupName']
195
- end
196
-
197
- if attributes.has_key?(:'subject')
198
- self.subject = attributes[:'subject']
199
- end
200
-
201
- if attributes.has_key?(:'tabId')
202
- self.tab_id = attributes[:'tabId']
203
- end
204
-
205
- if attributes.has_key?(:'text')
206
- self.text = attributes[:'text']
207
- end
208
-
209
- if attributes.has_key?(:'threadId')
210
- self.thread_id = attributes[:'threadId']
211
- end
212
-
213
- if attributes.has_key?(:'threadOriginatorId')
214
- self.thread_originator_id = attributes[:'threadOriginatorId']
215
- end
216
-
217
- if attributes.has_key?(:'timestamp')
218
- self.timestamp = attributes[:'timestamp']
219
- end
220
-
221
- if attributes.has_key?(:'timeStampFormatted')
222
- self.time_stamp_formatted = attributes[:'timeStampFormatted']
223
- end
224
-
225
- if attributes.has_key?(:'visibleTo')
226
- if (value = attributes[:'visibleTo']).is_a?(Array)
227
- self.visible_to = value
228
- end
229
- end
230
-
231
- end
232
-
233
- # Show invalid properties with the reasons. Usually used together with valid?
234
- # @return Array for valid properies with the reasons
235
- def list_invalid_properties
236
- invalid_properties = Array.new
237
- return invalid_properties
238
- end
239
-
240
- # Check to see if the all the properties in the model are valid
241
- # @return true if the model is valid
242
- def valid?
243
- return true
244
- end
245
-
246
- # Checks equality by comparing each attribute.
247
- # @param [Object] Object to be compared
248
- def ==(o)
249
- return true if self.equal?(o)
250
- self.class == o.class &&
251
- envelope_id == o.envelope_id &&
252
- hmac == o.hmac &&
253
- id == o.id &&
254
- mentions == o.mentions &&
255
- read == o.read &&
256
- sent_by_email == o.sent_by_email &&
257
- sent_by_full_name == o.sent_by_full_name &&
258
- sent_by_image_id == o.sent_by_image_id &&
259
- sent_by_initials == o.sent_by_initials &&
260
- sent_by_recipient_id == o.sent_by_recipient_id &&
261
- sent_by_user_id == o.sent_by_user_id &&
262
- signing_group_id == o.signing_group_id &&
263
- signing_group_name == o.signing_group_name &&
264
- subject == o.subject &&
265
- tab_id == o.tab_id &&
266
- text == o.text &&
267
- thread_id == o.thread_id &&
268
- thread_originator_id == o.thread_originator_id &&
269
- timestamp == o.timestamp &&
270
- time_stamp_formatted == o.time_stamp_formatted &&
271
- visible_to == o.visible_to
272
- end
273
-
274
- # @see the `==` method
275
- # @param [Object] Object to be compared
276
- def eql?(o)
277
- self == o
278
- end
279
-
280
- # Calculates hash code according to all attributes.
281
- # @return [Fixnum] Hash code
282
- def hash
283
- [envelope_id, hmac, id, mentions, read, sent_by_email, sent_by_full_name, sent_by_image_id, sent_by_initials, sent_by_recipient_id, sent_by_user_id, signing_group_id, signing_group_name, subject, tab_id, text, thread_id, thread_originator_id, timestamp, time_stamp_formatted, visible_to].hash
284
- end
285
-
286
- # Builds the object from hash
287
- # @param [Hash] attributes Model attributes in the form of hash
288
- # @return [Object] Returns the model itself
289
- def build_from_hash(attributes)
290
- return nil unless attributes.is_a?(Hash)
291
- self.class.swagger_types.each_pair do |key, type|
292
- if type =~ /\AArray<(.*)>/i
293
- # check to ensure the input is an array given that the the attribute
294
- # is documented as an array but the input is not
295
- if attributes[self.class.attribute_map[key]].is_a?(Array)
296
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
297
- end
298
- elsif !attributes[self.class.attribute_map[key]].nil?
299
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
300
- end # or else data not found in attributes(hash), not an issue as the data can be optional
301
- end
302
-
303
- self
304
- end
305
-
306
- # Deserializes the data based on type
307
- # @param string type Data type
308
- # @param string value Value to be deserialized
309
- # @return [Object] Deserialized data
310
- def _deserialize(type, value)
311
- case type.to_sym
312
- when :DateTime
313
- DateTime.parse(value)
314
- when :Date
315
- Date.parse(value)
316
- when :String
317
- value.to_s
318
- when :Integer
319
- value.to_i
320
- when :Float
321
- value.to_f
322
- when :BOOLEAN
323
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
324
- true
325
- else
326
- false
327
- end
328
- when :Object
329
- # generic object (usually a Hash), return directly
330
- value
331
- when /\AArray<(?<inner_type>.+)>\z/
332
- inner_type = Regexp.last_match[:inner_type]
333
- value.map { |v| _deserialize(inner_type, v) }
334
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
335
- k_type = Regexp.last_match[:k_type]
336
- v_type = Regexp.last_match[:v_type]
337
- {}.tap do |hash|
338
- value.each do |k, v|
339
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
340
- end
341
- end
342
- else # model
343
- temp_model = DocuSign_eSign.const_get(type).new
344
- temp_model.build_from_hash(value)
345
- end
346
- end
347
-
348
- # Returns the string representation of the object
349
- # @return [String] String presentation of the object
350
- def to_s
351
- to_hash.to_s
352
- end
353
-
354
- # to_body is an alias to to_hash (backward compatibility)
355
- # @return [Hash] Returns the object in the form of hash
356
- def to_body
357
- to_hash
358
- end
359
-
360
- # Returns the object in the form of hash
361
- # @return [Hash] Returns the object in the form of hash
362
- def to_hash
363
- hash = {}
364
- self.class.attribute_map.each_pair do |attr, param|
365
- value = self.send(attr)
366
- next if value.nil?
367
- hash[param] = _to_hash(value)
368
- end
369
- hash
370
- end
371
-
372
- # Outputs non-array value in the form of hash
373
- # For object, use to_hash. Otherwise, just return the value
374
- # @param [Object] value Any valid value
375
- # @return [Hash] Returns the value in the form of hash
376
- def _to_hash(value)
377
- if value.is_a?(Array)
378
- value.compact.map{ |v| _to_hash(v) }
379
- elsif value.is_a?(Hash)
380
- {}.tap do |hash|
381
- value.each { |k, v| hash[k] = _to_hash(v) }
382
- end
383
- elsif value.respond_to? :to_hash
384
- value.to_hash
385
- else
386
- value
387
- end
388
- end
389
-
390
- end
391
-
392
- end