docusign_esign 3.3.0.pre.rc → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +7 -7
  4. data/README.md +7 -5
  5. data/docusign_esign-2.6.0.rc1.gem +0 -0
  6. data/docusign_esign-3.5.0.rc1.gem +0 -0
  7. data/lib/docusign_esign.rb +25 -0
  8. data/lib/docusign_esign/.DS_Store +0 -0
  9. data/lib/docusign_esign/api/accounts_api.rb +362 -0
  10. data/lib/docusign_esign/api/bulk_envelopes_api.rb +128 -6
  11. data/lib/docusign_esign/api/envelopes_api.rb +320 -0
  12. data/lib/docusign_esign/api/trust_service_providers_api.rb +74 -0
  13. data/lib/{.DS_Store → docusign_esign/client/.DS_Store} +0 -0
  14. data/lib/docusign_esign/models/account_settings_information.rb +11 -1
  15. data/lib/docusign_esign/models/bulk_send_batch_status.rb +287 -0
  16. data/lib/docusign_esign/models/bulk_send_batch_summaries.rb +277 -0
  17. data/lib/docusign_esign/models/bulk_send_batch_summary.rb +255 -0
  18. data/lib/docusign_esign/models/bulk_send_error_status.rb +207 -0
  19. data/lib/docusign_esign/models/bulk_send_response.rb +34 -4
  20. data/lib/docusign_esign/models/conditional_recipient_rule.rb +216 -0
  21. data/lib/docusign_esign/models/conditional_recipient_rule_condition.rb +207 -0
  22. data/lib/docusign_esign/models/conditional_recipient_rule_filter.rb +235 -0
  23. data/lib/docusign_esign/models/e_note_configuration.rb +11 -1
  24. data/lib/docusign_esign/models/envelope.rb +13 -4
  25. data/lib/docusign_esign/models/envelope_definition.rb +13 -4
  26. data/lib/docusign_esign/models/envelope_template.rb +13 -4
  27. data/lib/docusign_esign/models/new_user.rb +11 -1
  28. data/lib/docusign_esign/models/proof_service_resource_token.rb +14 -4
  29. data/lib/docusign_esign/models/recipient_additional_notification.rb +14 -4
  30. data/lib/docusign_esign/models/recipient_group.rb +207 -0
  31. data/lib/docusign_esign/models/recipient_option.rb +225 -0
  32. data/lib/docusign_esign/models/recipient_routing.rb +184 -0
  33. data/lib/docusign_esign/models/recipient_rules.rb +187 -0
  34. data/lib/docusign_esign/models/report_in_product_csv_run_request.rb +437 -0
  35. data/lib/docusign_esign/models/report_in_product_field.rb +215 -0
  36. data/lib/docusign_esign/models/report_in_product_get.rb +466 -0
  37. data/lib/docusign_esign/models/report_in_product_list.rb +187 -0
  38. data/lib/docusign_esign/models/report_in_product_list_item.rb +315 -0
  39. data/lib/docusign_esign/models/report_in_product_run_request.rb +397 -0
  40. data/lib/docusign_esign/models/report_in_product_run_response.rb +247 -0
  41. data/lib/docusign_esign/models/report_in_product_run_response_row.rb +194 -0
  42. data/lib/docusign_esign/models/report_in_product_run_response_row_fields.rb +1395 -0
  43. data/lib/docusign_esign/models/report_in_product_save_response.rb +185 -0
  44. data/lib/docusign_esign/models/report_in_product_sent_by_details.rb +199 -0
  45. data/lib/docusign_esign/models/sender_email_notifications.rb +11 -1
  46. data/lib/docusign_esign/models/tab_metadata.rb +21 -1
  47. data/lib/docusign_esign/models/workflow.rb +207 -0
  48. data/lib/docusign_esign/models/workflow_step.rb +254 -0
  49. data/lib/docusign_esign/version.rb +1 -1
  50. data/tests/Gemfile.lock +9 -9
  51. metadata +57 -31
@@ -0,0 +1,184 @@
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
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class RecipientRouting
17
+ attr_accessor :rules
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'rules' => :'rules'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'rules' => :'RecipientRules'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'rules')
42
+ self.rules = attributes[:'rules']
43
+ end
44
+ end
45
+
46
+ # Show invalid properties with the reasons. Usually used together with valid?
47
+ # @return Array for valid properties with the reasons
48
+ def list_invalid_properties
49
+ invalid_properties = Array.new
50
+ invalid_properties
51
+ end
52
+
53
+ # Check to see if the all the properties in the model are valid
54
+ # @return true if the model is valid
55
+ def valid?
56
+ true
57
+ end
58
+
59
+ # Checks equality by comparing each attribute.
60
+ # @param [Object] Object to be compared
61
+ def ==(o)
62
+ return true if self.equal?(o)
63
+ self.class == o.class &&
64
+ rules == o.rules
65
+ end
66
+
67
+ # @see the `==` method
68
+ # @param [Object] Object to be compared
69
+ def eql?(o)
70
+ self == o
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Fixnum] Hash code
75
+ def hash
76
+ [rules].hash
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.swagger_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ temp_model = DocuSign_eSign.const_get(type).new
137
+ temp_model.build_from_hash(value)
138
+ end
139
+ end
140
+
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ next if value.nil?
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Outputs non-array value in the form of hash
166
+ # For object, use to_hash. Otherwise, just return the value
167
+ # @param [Object] value Any valid value
168
+ # @return [Hash] Returns the value in the form of hash
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map { |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+
183
+ end
184
+ end
@@ -0,0 +1,187 @@
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
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class RecipientRules
17
+ #
18
+ attr_accessor :conditional_recipients
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'conditional_recipients' => :'conditionalRecipients'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'conditional_recipients' => :'Array<ConditionalRecipientRule>'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
+
42
+ if attributes.has_key?(:'conditionalRecipients')
43
+ if (value = attributes[:'conditionalRecipients']).is_a?(Array)
44
+ self.conditional_recipients = value
45
+ end
46
+ end
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properties with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ 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
+ 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
+ conditional_recipients == o.conditional_recipients
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
+ [conditional_recipients].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 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
+ end
@@ -0,0 +1,437 @@
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
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class ReportInProductCsvRunRequest
17
+ #
18
+ attr_accessor :custom_field_filter
19
+
20
+ #
21
+ attr_accessor :date_range_custom_from_date
22
+
23
+ #
24
+ attr_accessor :date_range_custom_to_date
25
+
26
+ #
27
+ attr_accessor :date_range_filter
28
+
29
+ #
30
+ attr_accessor :envelope_date_type_filter
31
+
32
+ #
33
+ attr_accessor :envelope_recipient_name_contains_filter
34
+
35
+ #
36
+ attr_accessor :envelope_status_filter
37
+
38
+ #
39
+ attr_accessor :envelope_subject_contains_filter
40
+
41
+ #
42
+ attr_accessor :fields
43
+
44
+ #
45
+ attr_accessor :for_download
46
+
47
+ #
48
+ attr_accessor :is_dashboard
49
+
50
+ #
51
+ attr_accessor :new_line
52
+
53
+ #
54
+ attr_accessor :override_timezone_key
55
+
56
+ #
57
+ attr_accessor :period_length_filter
58
+
59
+ #
60
+ attr_accessor :quote
61
+
62
+ #
63
+ attr_accessor :report_customized_id
64
+
65
+ #
66
+ attr_accessor :report_description
67
+
68
+ #
69
+ attr_accessor :report_id
70
+
71
+ #
72
+ attr_accessor :report_invocation_type
73
+
74
+ #
75
+ attr_accessor :report_name
76
+
77
+ #
78
+ attr_accessor :sent_by_filter
79
+
80
+ #
81
+ attr_accessor :sent_by_ids
82
+
83
+ #
84
+ attr_accessor :separator
85
+
86
+ #
87
+ attr_accessor :sort_direction
88
+
89
+ #
90
+ attr_accessor :sort_field
91
+
92
+ # Starting position of the current result set.
93
+ attr_accessor :start_position
94
+
95
+ # Attribute mapping from ruby-style variable name to JSON key.
96
+ def self.attribute_map
97
+ {
98
+ :'custom_field_filter' => :'customFieldFilter',
99
+ :'date_range_custom_from_date' => :'dateRangeCustomFromDate',
100
+ :'date_range_custom_to_date' => :'dateRangeCustomToDate',
101
+ :'date_range_filter' => :'dateRangeFilter',
102
+ :'envelope_date_type_filter' => :'envelopeDateTypeFilter',
103
+ :'envelope_recipient_name_contains_filter' => :'envelopeRecipientNameContainsFilter',
104
+ :'envelope_status_filter' => :'envelopeStatusFilter',
105
+ :'envelope_subject_contains_filter' => :'envelopeSubjectContainsFilter',
106
+ :'fields' => :'fields',
107
+ :'for_download' => :'forDownload',
108
+ :'is_dashboard' => :'isDashboard',
109
+ :'new_line' => :'newLine',
110
+ :'override_timezone_key' => :'overrideTimezoneKey',
111
+ :'period_length_filter' => :'periodLengthFilter',
112
+ :'quote' => :'quote',
113
+ :'report_customized_id' => :'reportCustomizedId',
114
+ :'report_description' => :'reportDescription',
115
+ :'report_id' => :'reportId',
116
+ :'report_invocation_type' => :'reportInvocationType',
117
+ :'report_name' => :'reportName',
118
+ :'sent_by_filter' => :'sentByFilter',
119
+ :'sent_by_ids' => :'sentByIds',
120
+ :'separator' => :'separator',
121
+ :'sort_direction' => :'sortDirection',
122
+ :'sort_field' => :'sortField',
123
+ :'start_position' => :'startPosition'
124
+ }
125
+ end
126
+
127
+ # Attribute type mapping.
128
+ def self.swagger_types
129
+ {
130
+ :'custom_field_filter' => :'String',
131
+ :'date_range_custom_from_date' => :'String',
132
+ :'date_range_custom_to_date' => :'String',
133
+ :'date_range_filter' => :'String',
134
+ :'envelope_date_type_filter' => :'String',
135
+ :'envelope_recipient_name_contains_filter' => :'String',
136
+ :'envelope_status_filter' => :'String',
137
+ :'envelope_subject_contains_filter' => :'String',
138
+ :'fields' => :'Array<ReportInProductField>',
139
+ :'for_download' => :'String',
140
+ :'is_dashboard' => :'String',
141
+ :'new_line' => :'String',
142
+ :'override_timezone_key' => :'String',
143
+ :'period_length_filter' => :'String',
144
+ :'quote' => :'String',
145
+ :'report_customized_id' => :'String',
146
+ :'report_description' => :'String',
147
+ :'report_id' => :'String',
148
+ :'report_invocation_type' => :'String',
149
+ :'report_name' => :'String',
150
+ :'sent_by_filter' => :'String',
151
+ :'sent_by_ids' => :'String',
152
+ :'separator' => :'String',
153
+ :'sort_direction' => :'String',
154
+ :'sort_field' => :'String',
155
+ :'start_position' => :'String'
156
+ }
157
+ end
158
+
159
+ # Initializes the object
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ def initialize(attributes = {})
162
+ return unless attributes.is_a?(Hash)
163
+
164
+ # convert string to symbol for hash key
165
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
166
+
167
+ if attributes.has_key?(:'customFieldFilter')
168
+ self.custom_field_filter = attributes[:'customFieldFilter']
169
+ end
170
+
171
+ if attributes.has_key?(:'dateRangeCustomFromDate')
172
+ self.date_range_custom_from_date = attributes[:'dateRangeCustomFromDate']
173
+ end
174
+
175
+ if attributes.has_key?(:'dateRangeCustomToDate')
176
+ self.date_range_custom_to_date = attributes[:'dateRangeCustomToDate']
177
+ end
178
+
179
+ if attributes.has_key?(:'dateRangeFilter')
180
+ self.date_range_filter = attributes[:'dateRangeFilter']
181
+ end
182
+
183
+ if attributes.has_key?(:'envelopeDateTypeFilter')
184
+ self.envelope_date_type_filter = attributes[:'envelopeDateTypeFilter']
185
+ end
186
+
187
+ if attributes.has_key?(:'envelopeRecipientNameContainsFilter')
188
+ self.envelope_recipient_name_contains_filter = attributes[:'envelopeRecipientNameContainsFilter']
189
+ end
190
+
191
+ if attributes.has_key?(:'envelopeStatusFilter')
192
+ self.envelope_status_filter = attributes[:'envelopeStatusFilter']
193
+ end
194
+
195
+ if attributes.has_key?(:'envelopeSubjectContainsFilter')
196
+ self.envelope_subject_contains_filter = attributes[:'envelopeSubjectContainsFilter']
197
+ end
198
+
199
+ if attributes.has_key?(:'fields')
200
+ if (value = attributes[:'fields']).is_a?(Array)
201
+ self.fields = value
202
+ end
203
+ end
204
+
205
+ if attributes.has_key?(:'forDownload')
206
+ self.for_download = attributes[:'forDownload']
207
+ end
208
+
209
+ if attributes.has_key?(:'isDashboard')
210
+ self.is_dashboard = attributes[:'isDashboard']
211
+ end
212
+
213
+ if attributes.has_key?(:'newLine')
214
+ self.new_line = attributes[:'newLine']
215
+ end
216
+
217
+ if attributes.has_key?(:'overrideTimezoneKey')
218
+ self.override_timezone_key = attributes[:'overrideTimezoneKey']
219
+ end
220
+
221
+ if attributes.has_key?(:'periodLengthFilter')
222
+ self.period_length_filter = attributes[:'periodLengthFilter']
223
+ end
224
+
225
+ if attributes.has_key?(:'quote')
226
+ self.quote = attributes[:'quote']
227
+ end
228
+
229
+ if attributes.has_key?(:'reportCustomizedId')
230
+ self.report_customized_id = attributes[:'reportCustomizedId']
231
+ end
232
+
233
+ if attributes.has_key?(:'reportDescription')
234
+ self.report_description = attributes[:'reportDescription']
235
+ end
236
+
237
+ if attributes.has_key?(:'reportId')
238
+ self.report_id = attributes[:'reportId']
239
+ end
240
+
241
+ if attributes.has_key?(:'reportInvocationType')
242
+ self.report_invocation_type = attributes[:'reportInvocationType']
243
+ end
244
+
245
+ if attributes.has_key?(:'reportName')
246
+ self.report_name = attributes[:'reportName']
247
+ end
248
+
249
+ if attributes.has_key?(:'sentByFilter')
250
+ self.sent_by_filter = attributes[:'sentByFilter']
251
+ end
252
+
253
+ if attributes.has_key?(:'sentByIds')
254
+ self.sent_by_ids = attributes[:'sentByIds']
255
+ end
256
+
257
+ if attributes.has_key?(:'separator')
258
+ self.separator = attributes[:'separator']
259
+ end
260
+
261
+ if attributes.has_key?(:'sortDirection')
262
+ self.sort_direction = attributes[:'sortDirection']
263
+ end
264
+
265
+ if attributes.has_key?(:'sortField')
266
+ self.sort_field = attributes[:'sortField']
267
+ end
268
+
269
+ if attributes.has_key?(:'startPosition')
270
+ self.start_position = attributes[:'startPosition']
271
+ end
272
+ end
273
+
274
+ # Show invalid properties with the reasons. Usually used together with valid?
275
+ # @return Array for valid properties with the reasons
276
+ def list_invalid_properties
277
+ invalid_properties = Array.new
278
+ invalid_properties
279
+ end
280
+
281
+ # Check to see if the all the properties in the model are valid
282
+ # @return true if the model is valid
283
+ def valid?
284
+ true
285
+ end
286
+
287
+ # Checks equality by comparing each attribute.
288
+ # @param [Object] Object to be compared
289
+ def ==(o)
290
+ return true if self.equal?(o)
291
+ self.class == o.class &&
292
+ custom_field_filter == o.custom_field_filter &&
293
+ date_range_custom_from_date == o.date_range_custom_from_date &&
294
+ date_range_custom_to_date == o.date_range_custom_to_date &&
295
+ date_range_filter == o.date_range_filter &&
296
+ envelope_date_type_filter == o.envelope_date_type_filter &&
297
+ envelope_recipient_name_contains_filter == o.envelope_recipient_name_contains_filter &&
298
+ envelope_status_filter == o.envelope_status_filter &&
299
+ envelope_subject_contains_filter == o.envelope_subject_contains_filter &&
300
+ fields == o.fields &&
301
+ for_download == o.for_download &&
302
+ is_dashboard == o.is_dashboard &&
303
+ new_line == o.new_line &&
304
+ override_timezone_key == o.override_timezone_key &&
305
+ period_length_filter == o.period_length_filter &&
306
+ quote == o.quote &&
307
+ report_customized_id == o.report_customized_id &&
308
+ report_description == o.report_description &&
309
+ report_id == o.report_id &&
310
+ report_invocation_type == o.report_invocation_type &&
311
+ report_name == o.report_name &&
312
+ sent_by_filter == o.sent_by_filter &&
313
+ sent_by_ids == o.sent_by_ids &&
314
+ separator == o.separator &&
315
+ sort_direction == o.sort_direction &&
316
+ sort_field == o.sort_field &&
317
+ start_position == o.start_position
318
+ end
319
+
320
+ # @see the `==` method
321
+ # @param [Object] Object to be compared
322
+ def eql?(o)
323
+ self == o
324
+ end
325
+
326
+ # Calculates hash code according to all attributes.
327
+ # @return [Fixnum] Hash code
328
+ def hash
329
+ [custom_field_filter, date_range_custom_from_date, date_range_custom_to_date, date_range_filter, envelope_date_type_filter, envelope_recipient_name_contains_filter, envelope_status_filter, envelope_subject_contains_filter, fields, for_download, is_dashboard, new_line, override_timezone_key, period_length_filter, quote, report_customized_id, report_description, report_id, report_invocation_type, report_name, sent_by_filter, sent_by_ids, separator, sort_direction, sort_field, start_position].hash
330
+ end
331
+
332
+ # Builds the object from hash
333
+ # @param [Hash] attributes Model attributes in the form of hash
334
+ # @return [Object] Returns the model itself
335
+ def build_from_hash(attributes)
336
+ return nil unless attributes.is_a?(Hash)
337
+ self.class.swagger_types.each_pair do |key, type|
338
+ if type =~ /\AArray<(.*)>/i
339
+ # check to ensure the input is an array given that the attribute
340
+ # is documented as an array but the input is not
341
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
342
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
343
+ end
344
+ elsif !attributes[self.class.attribute_map[key]].nil?
345
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
346
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
347
+ end
348
+
349
+ self
350
+ end
351
+
352
+ # Deserializes the data based on type
353
+ # @param string type Data type
354
+ # @param string value Value to be deserialized
355
+ # @return [Object] Deserialized data
356
+ def _deserialize(type, value)
357
+ case type.to_sym
358
+ when :DateTime
359
+ DateTime.parse(value)
360
+ when :Date
361
+ Date.parse(value)
362
+ when :String
363
+ value.to_s
364
+ when :Integer
365
+ value.to_i
366
+ when :Float
367
+ value.to_f
368
+ when :BOOLEAN
369
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
370
+ true
371
+ else
372
+ false
373
+ end
374
+ when :Object
375
+ # generic object (usually a Hash), return directly
376
+ value
377
+ when /\AArray<(?<inner_type>.+)>\z/
378
+ inner_type = Regexp.last_match[:inner_type]
379
+ value.map { |v| _deserialize(inner_type, v) }
380
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
381
+ k_type = Regexp.last_match[:k_type]
382
+ v_type = Regexp.last_match[:v_type]
383
+ {}.tap do |hash|
384
+ value.each do |k, v|
385
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
386
+ end
387
+ end
388
+ else # model
389
+ temp_model = DocuSign_eSign.const_get(type).new
390
+ temp_model.build_from_hash(value)
391
+ end
392
+ end
393
+
394
+ # Returns the string representation of the object
395
+ # @return [String] String presentation of the object
396
+ def to_s
397
+ to_hash.to_s
398
+ end
399
+
400
+ # to_body is an alias to to_hash (backward compatibility)
401
+ # @return [Hash] Returns the object in the form of hash
402
+ def to_body
403
+ to_hash
404
+ end
405
+
406
+ # Returns the object in the form of hash
407
+ # @return [Hash] Returns the object in the form of hash
408
+ def to_hash
409
+ hash = {}
410
+ self.class.attribute_map.each_pair do |attr, param|
411
+ value = self.send(attr)
412
+ next if value.nil?
413
+ hash[param] = _to_hash(value)
414
+ end
415
+ hash
416
+ end
417
+
418
+ # Outputs non-array value in the form of hash
419
+ # For object, use to_hash. Otherwise, just return the value
420
+ # @param [Object] value Any valid value
421
+ # @return [Hash] Returns the value in the form of hash
422
+ def _to_hash(value)
423
+ if value.is_a?(Array)
424
+ value.compact.map { |v| _to_hash(v) }
425
+ elsif value.is_a?(Hash)
426
+ {}.tap do |hash|
427
+ value.each { |k, v| hash[k] = _to_hash(v) }
428
+ end
429
+ elsif value.respond_to? :to_hash
430
+ value.to_hash
431
+ else
432
+ value
433
+ end
434
+ end
435
+
436
+ end
437
+ end