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,190 +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 CommentsPublish
17
- #
18
- attr_accessor :comments_to_publish
19
-
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'comments_to_publish' => :'commentsToPublish'
25
- }
26
- end
27
-
28
- # Attribute type mapping.
29
- def self.swagger_types
30
- {
31
- :'comments_to_publish' => :'Array<CommentPublish>'
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?(:'commentsToPublish')
44
- if (value = attributes[:'commentsToPublish']).is_a?(Array)
45
- self.comments_to_publish = value
46
- end
47
- end
48
-
49
- end
50
-
51
- # Show invalid properties with the reasons. Usually used together with valid?
52
- # @return Array for valid properies with the reasons
53
- def list_invalid_properties
54
- invalid_properties = Array.new
55
- return invalid_properties
56
- end
57
-
58
- # Check to see if the all the properties in the model are valid
59
- # @return true if the model is valid
60
- def valid?
61
- return true
62
- end
63
-
64
- # Checks equality by comparing each attribute.
65
- # @param [Object] Object to be compared
66
- def ==(o)
67
- return true if self.equal?(o)
68
- self.class == o.class &&
69
- comments_to_publish == o.comments_to_publish
70
- end
71
-
72
- # @see the `==` method
73
- # @param [Object] Object to be compared
74
- def eql?(o)
75
- self == o
76
- end
77
-
78
- # Calculates hash code according to all attributes.
79
- # @return [Fixnum] Hash code
80
- def hash
81
- [comments_to_publish].hash
82
- end
83
-
84
- # Builds the object from hash
85
- # @param [Hash] attributes Model attributes in the form of hash
86
- # @return [Object] Returns the model itself
87
- def build_from_hash(attributes)
88
- return nil unless attributes.is_a?(Hash)
89
- self.class.swagger_types.each_pair do |key, type|
90
- if type =~ /\AArray<(.*)>/i
91
- # check to ensure the input is an array given that the the attribute
92
- # is documented as an array but the input is not
93
- if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
95
- end
96
- elsif !attributes[self.class.attribute_map[key]].nil?
97
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
98
- end # or else data not found in attributes(hash), not an issue as the data can be optional
99
- end
100
-
101
- self
102
- end
103
-
104
- # Deserializes the data based on type
105
- # @param string type Data type
106
- # @param string value Value to be deserialized
107
- # @return [Object] Deserialized data
108
- def _deserialize(type, value)
109
- case type.to_sym
110
- when :DateTime
111
- DateTime.parse(value)
112
- when :Date
113
- Date.parse(value)
114
- when :String
115
- value.to_s
116
- when :Integer
117
- value.to_i
118
- when :Float
119
- value.to_f
120
- when :BOOLEAN
121
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
122
- true
123
- else
124
- false
125
- end
126
- when :Object
127
- # generic object (usually a Hash), return directly
128
- value
129
- when /\AArray<(?<inner_type>.+)>\z/
130
- inner_type = Regexp.last_match[:inner_type]
131
- value.map { |v| _deserialize(inner_type, v) }
132
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
133
- k_type = Regexp.last_match[:k_type]
134
- v_type = Regexp.last_match[:v_type]
135
- {}.tap do |hash|
136
- value.each do |k, v|
137
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
138
- end
139
- end
140
- else # model
141
- temp_model = DocuSign_eSign.const_get(type).new
142
- temp_model.build_from_hash(value)
143
- end
144
- end
145
-
146
- # Returns the string representation of the object
147
- # @return [String] String presentation of the object
148
- def to_s
149
- to_hash.to_s
150
- end
151
-
152
- # to_body is an alias to to_hash (backward compatibility)
153
- # @return [Hash] Returns the object in the form of hash
154
- def to_body
155
- to_hash
156
- end
157
-
158
- # Returns the object in the form of hash
159
- # @return [Hash] Returns the object in the form of hash
160
- def to_hash
161
- hash = {}
162
- self.class.attribute_map.each_pair do |attr, param|
163
- value = self.send(attr)
164
- next if value.nil?
165
- hash[param] = _to_hash(value)
166
- end
167
- hash
168
- end
169
-
170
- # Outputs non-array value in the form of hash
171
- # For object, use to_hash. Otherwise, just return the value
172
- # @param [Object] value Any valid value
173
- # @return [Hash] Returns the value in the form of hash
174
- def _to_hash(value)
175
- if value.is_a?(Array)
176
- value.compact.map{ |v| _to_hash(v) }
177
- elsif value.is_a?(Hash)
178
- {}.tap do |hash|
179
- value.each { |k, v| hash[k] = _to_hash(v) }
180
- end
181
- elsif value.respond_to? :to_hash
182
- value.to_hash
183
- else
184
- value
185
- end
186
- end
187
-
188
- end
189
-
190
- end
@@ -1,258 +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 ConnectSalesforceField
17
- #
18
- attr_accessor :ds_attribute
19
-
20
- #
21
- attr_accessor :ds_link
22
-
23
- #
24
- attr_accessor :ds_node
25
-
26
- #
27
- attr_accessor :id
28
-
29
- #
30
- attr_accessor :sf_field
31
-
32
- #
33
- attr_accessor :sf_field_name
34
-
35
- #
36
- attr_accessor :sf_folder
37
-
38
- #
39
- attr_accessor :sf_locked_value
40
-
41
-
42
- # Attribute mapping from ruby-style variable name to JSON key.
43
- def self.attribute_map
44
- {
45
- :'ds_attribute' => :'dsAttribute',
46
- :'ds_link' => :'dsLink',
47
- :'ds_node' => :'dsNode',
48
- :'id' => :'id',
49
- :'sf_field' => :'sfField',
50
- :'sf_field_name' => :'sfFieldName',
51
- :'sf_folder' => :'sfFolder',
52
- :'sf_locked_value' => :'sfLockedValue'
53
- }
54
- end
55
-
56
- # Attribute type mapping.
57
- def self.swagger_types
58
- {
59
- :'ds_attribute' => :'String',
60
- :'ds_link' => :'String',
61
- :'ds_node' => :'String',
62
- :'id' => :'String',
63
- :'sf_field' => :'String',
64
- :'sf_field_name' => :'String',
65
- :'sf_folder' => :'String',
66
- :'sf_locked_value' => :'String'
67
- }
68
- end
69
-
70
- # Initializes the object
71
- # @param [Hash] attributes Model attributes in the form of hash
72
- def initialize(attributes = {})
73
- return unless attributes.is_a?(Hash)
74
-
75
- # convert string to symbol for hash key
76
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
77
-
78
- if attributes.has_key?(:'dsAttribute')
79
- self.ds_attribute = attributes[:'dsAttribute']
80
- end
81
-
82
- if attributes.has_key?(:'dsLink')
83
- self.ds_link = attributes[:'dsLink']
84
- end
85
-
86
- if attributes.has_key?(:'dsNode')
87
- self.ds_node = attributes[:'dsNode']
88
- end
89
-
90
- if attributes.has_key?(:'id')
91
- self.id = attributes[:'id']
92
- end
93
-
94
- if attributes.has_key?(:'sfField')
95
- self.sf_field = attributes[:'sfField']
96
- end
97
-
98
- if attributes.has_key?(:'sfFieldName')
99
- self.sf_field_name = attributes[:'sfFieldName']
100
- end
101
-
102
- if attributes.has_key?(:'sfFolder')
103
- self.sf_folder = attributes[:'sfFolder']
104
- end
105
-
106
- if attributes.has_key?(:'sfLockedValue')
107
- self.sf_locked_value = attributes[:'sfLockedValue']
108
- end
109
-
110
- end
111
-
112
- # Show invalid properties with the reasons. Usually used together with valid?
113
- # @return Array for valid properies with the reasons
114
- def list_invalid_properties
115
- invalid_properties = Array.new
116
- return invalid_properties
117
- end
118
-
119
- # Check to see if the all the properties in the model are valid
120
- # @return true if the model is valid
121
- def valid?
122
- return true
123
- end
124
-
125
- # Checks equality by comparing each attribute.
126
- # @param [Object] Object to be compared
127
- def ==(o)
128
- return true if self.equal?(o)
129
- self.class == o.class &&
130
- ds_attribute == o.ds_attribute &&
131
- ds_link == o.ds_link &&
132
- ds_node == o.ds_node &&
133
- id == o.id &&
134
- sf_field == o.sf_field &&
135
- sf_field_name == o.sf_field_name &&
136
- sf_folder == o.sf_folder &&
137
- sf_locked_value == o.sf_locked_value
138
- end
139
-
140
- # @see the `==` method
141
- # @param [Object] Object to be compared
142
- def eql?(o)
143
- self == o
144
- end
145
-
146
- # Calculates hash code according to all attributes.
147
- # @return [Fixnum] Hash code
148
- def hash
149
- [ds_attribute, ds_link, ds_node, id, sf_field, sf_field_name, sf_folder, sf_locked_value].hash
150
- end
151
-
152
- # Builds the object from hash
153
- # @param [Hash] attributes Model attributes in the form of hash
154
- # @return [Object] Returns the model itself
155
- def build_from_hash(attributes)
156
- return nil unless attributes.is_a?(Hash)
157
- self.class.swagger_types.each_pair do |key, type|
158
- if type =~ /\AArray<(.*)>/i
159
- # check to ensure the input is an array given that the the attribute
160
- # is documented as an array but the input is not
161
- if attributes[self.class.attribute_map[key]].is_a?(Array)
162
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
163
- end
164
- elsif !attributes[self.class.attribute_map[key]].nil?
165
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
- end # or else data not found in attributes(hash), not an issue as the data can be optional
167
- end
168
-
169
- self
170
- end
171
-
172
- # Deserializes the data based on type
173
- # @param string type Data type
174
- # @param string value Value to be deserialized
175
- # @return [Object] Deserialized data
176
- def _deserialize(type, value)
177
- case type.to_sym
178
- when :DateTime
179
- DateTime.parse(value)
180
- when :Date
181
- Date.parse(value)
182
- when :String
183
- value.to_s
184
- when :Integer
185
- value.to_i
186
- when :Float
187
- value.to_f
188
- when :BOOLEAN
189
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
- true
191
- else
192
- false
193
- end
194
- when :Object
195
- # generic object (usually a Hash), return directly
196
- value
197
- when /\AArray<(?<inner_type>.+)>\z/
198
- inner_type = Regexp.last_match[:inner_type]
199
- value.map { |v| _deserialize(inner_type, v) }
200
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
- k_type = Regexp.last_match[:k_type]
202
- v_type = Regexp.last_match[:v_type]
203
- {}.tap do |hash|
204
- value.each do |k, v|
205
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
- end
207
- end
208
- else # model
209
- temp_model = DocuSign_eSign.const_get(type).new
210
- temp_model.build_from_hash(value)
211
- end
212
- end
213
-
214
- # Returns the string representation of the object
215
- # @return [String] String presentation of the object
216
- def to_s
217
- to_hash.to_s
218
- end
219
-
220
- # to_body is an alias to to_hash (backward compatibility)
221
- # @return [Hash] Returns the object in the form of hash
222
- def to_body
223
- to_hash
224
- end
225
-
226
- # Returns the object in the form of hash
227
- # @return [Hash] Returns the object in the form of hash
228
- def to_hash
229
- hash = {}
230
- self.class.attribute_map.each_pair do |attr, param|
231
- value = self.send(attr)
232
- next if value.nil?
233
- hash[param] = _to_hash(value)
234
- end
235
- hash
236
- end
237
-
238
- # Outputs non-array value in the form of hash
239
- # For object, use to_hash. Otherwise, just return the value
240
- # @param [Object] value Any valid value
241
- # @return [Hash] Returns the value in the form of hash
242
- def _to_hash(value)
243
- if value.is_a?(Array)
244
- value.compact.map{ |v| _to_hash(v) }
245
- elsif value.is_a?(Hash)
246
- {}.tap do |hash|
247
- value.each { |k, v| hash[k] = _to_hash(v) }
248
- end
249
- elsif value.respond_to? :to_hash
250
- value.to_hash
251
- else
252
- value
253
- end
254
- end
255
-
256
- end
257
-
258
- end
@@ -1,272 +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 ConnectSalesforceObject
17
- #
18
- attr_accessor :active
19
-
20
- #
21
- attr_accessor :description
22
-
23
- #
24
- attr_accessor :id
25
-
26
- #
27
- attr_accessor :insert
28
-
29
- #
30
- attr_accessor :on_complete_only
31
-
32
- #
33
- attr_accessor :select_fields
34
-
35
- #
36
- attr_accessor :sf_object
37
-
38
- #
39
- attr_accessor :sf_object_name
40
-
41
- #
42
- attr_accessor :update_fields
43
-
44
-
45
- # Attribute mapping from ruby-style variable name to JSON key.
46
- def self.attribute_map
47
- {
48
- :'active' => :'active',
49
- :'description' => :'description',
50
- :'id' => :'id',
51
- :'insert' => :'insert',
52
- :'on_complete_only' => :'onCompleteOnly',
53
- :'select_fields' => :'selectFields',
54
- :'sf_object' => :'sfObject',
55
- :'sf_object_name' => :'sfObjectName',
56
- :'update_fields' => :'updateFields'
57
- }
58
- end
59
-
60
- # Attribute type mapping.
61
- def self.swagger_types
62
- {
63
- :'active' => :'String',
64
- :'description' => :'String',
65
- :'id' => :'String',
66
- :'insert' => :'String',
67
- :'on_complete_only' => :'String',
68
- :'select_fields' => :'Array<ConnectSalesforceField>',
69
- :'sf_object' => :'String',
70
- :'sf_object_name' => :'String',
71
- :'update_fields' => :'Array<ConnectSalesforceField>'
72
- }
73
- end
74
-
75
- # Initializes the object
76
- # @param [Hash] attributes Model attributes in the form of hash
77
- def initialize(attributes = {})
78
- return unless attributes.is_a?(Hash)
79
-
80
- # convert string to symbol for hash key
81
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
82
-
83
- if attributes.has_key?(:'active')
84
- self.active = attributes[:'active']
85
- end
86
-
87
- if attributes.has_key?(:'description')
88
- self.description = attributes[:'description']
89
- end
90
-
91
- if attributes.has_key?(:'id')
92
- self.id = attributes[:'id']
93
- end
94
-
95
- if attributes.has_key?(:'insert')
96
- self.insert = attributes[:'insert']
97
- end
98
-
99
- if attributes.has_key?(:'onCompleteOnly')
100
- self.on_complete_only = attributes[:'onCompleteOnly']
101
- end
102
-
103
- if attributes.has_key?(:'selectFields')
104
- if (value = attributes[:'selectFields']).is_a?(Array)
105
- self.select_fields = value
106
- end
107
- end
108
-
109
- if attributes.has_key?(:'sfObject')
110
- self.sf_object = attributes[:'sfObject']
111
- end
112
-
113
- if attributes.has_key?(:'sfObjectName')
114
- self.sf_object_name = attributes[:'sfObjectName']
115
- end
116
-
117
- if attributes.has_key?(:'updateFields')
118
- if (value = attributes[:'updateFields']).is_a?(Array)
119
- self.update_fields = value
120
- end
121
- end
122
-
123
- end
124
-
125
- # Show invalid properties with the reasons. Usually used together with valid?
126
- # @return Array for valid properies with the reasons
127
- def list_invalid_properties
128
- invalid_properties = Array.new
129
- return invalid_properties
130
- end
131
-
132
- # Check to see if the all the properties in the model are valid
133
- # @return true if the model is valid
134
- def valid?
135
- return true
136
- end
137
-
138
- # Checks equality by comparing each attribute.
139
- # @param [Object] Object to be compared
140
- def ==(o)
141
- return true if self.equal?(o)
142
- self.class == o.class &&
143
- active == o.active &&
144
- description == o.description &&
145
- id == o.id &&
146
- insert == o.insert &&
147
- on_complete_only == o.on_complete_only &&
148
- select_fields == o.select_fields &&
149
- sf_object == o.sf_object &&
150
- sf_object_name == o.sf_object_name &&
151
- update_fields == o.update_fields
152
- end
153
-
154
- # @see the `==` method
155
- # @param [Object] Object to be compared
156
- def eql?(o)
157
- self == o
158
- end
159
-
160
- # Calculates hash code according to all attributes.
161
- # @return [Fixnum] Hash code
162
- def hash
163
- [active, description, id, insert, on_complete_only, select_fields, sf_object, sf_object_name, update_fields].hash
164
- end
165
-
166
- # Builds the object from hash
167
- # @param [Hash] attributes Model attributes in the form of hash
168
- # @return [Object] Returns the model itself
169
- def build_from_hash(attributes)
170
- return nil unless attributes.is_a?(Hash)
171
- self.class.swagger_types.each_pair do |key, type|
172
- if type =~ /\AArray<(.*)>/i
173
- # check to ensure the input is an array given that the the attribute
174
- # is documented as an array but the input is not
175
- if attributes[self.class.attribute_map[key]].is_a?(Array)
176
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
177
- end
178
- elsif !attributes[self.class.attribute_map[key]].nil?
179
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
180
- end # or else data not found in attributes(hash), not an issue as the data can be optional
181
- end
182
-
183
- self
184
- end
185
-
186
- # Deserializes the data based on type
187
- # @param string type Data type
188
- # @param string value Value to be deserialized
189
- # @return [Object] Deserialized data
190
- def _deserialize(type, value)
191
- case type.to_sym
192
- when :DateTime
193
- DateTime.parse(value)
194
- when :Date
195
- Date.parse(value)
196
- when :String
197
- value.to_s
198
- when :Integer
199
- value.to_i
200
- when :Float
201
- value.to_f
202
- when :BOOLEAN
203
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
204
- true
205
- else
206
- false
207
- end
208
- when :Object
209
- # generic object (usually a Hash), return directly
210
- value
211
- when /\AArray<(?<inner_type>.+)>\z/
212
- inner_type = Regexp.last_match[:inner_type]
213
- value.map { |v| _deserialize(inner_type, v) }
214
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
215
- k_type = Regexp.last_match[:k_type]
216
- v_type = Regexp.last_match[:v_type]
217
- {}.tap do |hash|
218
- value.each do |k, v|
219
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
220
- end
221
- end
222
- else # model
223
- temp_model = DocuSign_eSign.const_get(type).new
224
- temp_model.build_from_hash(value)
225
- end
226
- end
227
-
228
- # Returns the string representation of the object
229
- # @return [String] String presentation of the object
230
- def to_s
231
- to_hash.to_s
232
- end
233
-
234
- # to_body is an alias to to_hash (backward compatibility)
235
- # @return [Hash] Returns the object in the form of hash
236
- def to_body
237
- to_hash
238
- end
239
-
240
- # Returns the object in the form of hash
241
- # @return [Hash] Returns the object in the form of hash
242
- def to_hash
243
- hash = {}
244
- self.class.attribute_map.each_pair do |attr, param|
245
- value = self.send(attr)
246
- next if value.nil?
247
- hash[param] = _to_hash(value)
248
- end
249
- hash
250
- end
251
-
252
- # Outputs non-array value in the form of hash
253
- # For object, use to_hash. Otherwise, just return the value
254
- # @param [Object] value Any valid value
255
- # @return [Hash] Returns the value in the form of hash
256
- def _to_hash(value)
257
- if value.is_a?(Array)
258
- value.compact.map{ |v| _to_hash(v) }
259
- elsif value.is_a?(Hash)
260
- {}.tap do |hash|
261
- value.each { |k, v| hash[k] = _to_hash(v) }
262
- end
263
- elsif value.respond_to? :to_hash
264
- value.to_hash
265
- else
266
- value
267
- end
268
- end
269
-
270
- end
271
-
272
- end