mailslurp_client 15.12.15 → 15.12.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  3. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +212 -0
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  7. data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  9. data/lib/mailslurp_client/models/complaint.rb +289 -0
  10. data/lib/mailslurp_client/models/create_webhook_options.rb +0 -5
  11. data/lib/mailslurp_client/models/delivery_status.rb +331 -0
  12. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  13. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  15. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  16. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  17. data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
  18. data/lib/mailslurp_client/models/page_complaint.rb +308 -0
  19. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  20. data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
  21. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  22. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  23. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  24. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  25. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  26. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  27. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  28. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  29. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  30. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  31. data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
  32. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  33. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  34. data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
  35. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  36. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  38. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  39. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  40. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  41. data/lib/mailslurp_client/models/sent_email_projection.rb +18 -18
  42. data/lib/mailslurp_client/models/thread_projection.rb +20 -20
  43. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  44. data/lib/mailslurp_client/version.rb +1 -1
  45. data/lib/mailslurp_client.rb +4 -0
  46. metadata +9 -5
@@ -0,0 +1,331 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class DeliveryStatus
17
+ attr_accessor :id
18
+
19
+ attr_accessor :user_id
20
+
21
+ attr_accessor :sent_id
22
+
23
+ attr_accessor :remote_mta_ip
24
+
25
+ attr_accessor :inbox_id
26
+
27
+ attr_accessor :reporting_mta
28
+
29
+ attr_accessor :recipients
30
+
31
+ attr_accessor :smtp_response
32
+
33
+ attr_accessor :processing_time_millis
34
+
35
+ attr_accessor :received
36
+
37
+ attr_accessor :subject
38
+
39
+ attr_accessor :created_at
40
+
41
+ attr_accessor :updated_at
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'id' => :'id',
47
+ :'user_id' => :'userId',
48
+ :'sent_id' => :'sentId',
49
+ :'remote_mta_ip' => :'remoteMtaIp',
50
+ :'inbox_id' => :'inboxId',
51
+ :'reporting_mta' => :'reportingMta',
52
+ :'recipients' => :'recipients',
53
+ :'smtp_response' => :'smtpResponse',
54
+ :'processing_time_millis' => :'processingTimeMillis',
55
+ :'received' => :'received',
56
+ :'subject' => :'subject',
57
+ :'created_at' => :'createdAt',
58
+ :'updated_at' => :'updatedAt'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'id' => :'String',
66
+ :'user_id' => :'String',
67
+ :'sent_id' => :'String',
68
+ :'remote_mta_ip' => :'String',
69
+ :'inbox_id' => :'String',
70
+ :'reporting_mta' => :'String',
71
+ :'recipients' => :'Array<String>',
72
+ :'smtp_response' => :'String',
73
+ :'processing_time_millis' => :'Integer',
74
+ :'received' => :'DateTime',
75
+ :'subject' => :'String',
76
+ :'created_at' => :'DateTime',
77
+ :'updated_at' => :'DateTime'
78
+ }
79
+ end
80
+
81
+ # List of attributes with nullable: true
82
+ def self.openapi_nullable
83
+ Set.new([
84
+ ])
85
+ end
86
+
87
+ # Initializes the object
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ def initialize(attributes = {})
90
+ if (!attributes.is_a?(Hash))
91
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::DeliveryStatus` initialize method"
92
+ end
93
+
94
+ # check to see if the attribute exists and convert string to symbol for hash key
95
+ attributes = attributes.each_with_object({}) { |(k, v), h|
96
+ if (!self.class.attribute_map.key?(k.to_sym))
97
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::DeliveryStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
+ end
99
+ h[k.to_sym] = v
100
+ }
101
+
102
+ if attributes.key?(:'id')
103
+ self.id = attributes[:'id']
104
+ end
105
+
106
+ if attributes.key?(:'user_id')
107
+ self.user_id = attributes[:'user_id']
108
+ end
109
+
110
+ if attributes.key?(:'sent_id')
111
+ self.sent_id = attributes[:'sent_id']
112
+ end
113
+
114
+ if attributes.key?(:'remote_mta_ip')
115
+ self.remote_mta_ip = attributes[:'remote_mta_ip']
116
+ end
117
+
118
+ if attributes.key?(:'inbox_id')
119
+ self.inbox_id = attributes[:'inbox_id']
120
+ end
121
+
122
+ if attributes.key?(:'reporting_mta')
123
+ self.reporting_mta = attributes[:'reporting_mta']
124
+ end
125
+
126
+ if attributes.key?(:'recipients')
127
+ if (value = attributes[:'recipients']).is_a?(Array)
128
+ self.recipients = value
129
+ end
130
+ end
131
+
132
+ if attributes.key?(:'smtp_response')
133
+ self.smtp_response = attributes[:'smtp_response']
134
+ end
135
+
136
+ if attributes.key?(:'processing_time_millis')
137
+ self.processing_time_millis = attributes[:'processing_time_millis']
138
+ end
139
+
140
+ if attributes.key?(:'received')
141
+ self.received = attributes[:'received']
142
+ end
143
+
144
+ if attributes.key?(:'subject')
145
+ self.subject = attributes[:'subject']
146
+ end
147
+
148
+ if attributes.key?(:'created_at')
149
+ self.created_at = attributes[:'created_at']
150
+ end
151
+
152
+ if attributes.key?(:'updated_at')
153
+ self.updated_at = attributes[:'updated_at']
154
+ end
155
+ end
156
+
157
+ # Show invalid properties with the reasons. Usually used together with valid?
158
+ # @return Array for valid properties with the reasons
159
+ def list_invalid_properties
160
+ invalid_properties = Array.new
161
+ if @user_id.nil?
162
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
163
+ end
164
+
165
+ if @created_at.nil?
166
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
167
+ end
168
+
169
+ if @updated_at.nil?
170
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
171
+ end
172
+
173
+ invalid_properties
174
+ end
175
+
176
+ # Check to see if the all the properties in the model are valid
177
+ # @return true if the model is valid
178
+ def valid?
179
+ return false if @user_id.nil?
180
+ return false if @created_at.nil?
181
+ return false if @updated_at.nil?
182
+ true
183
+ end
184
+
185
+ # Checks equality by comparing each attribute.
186
+ # @param [Object] Object to be compared
187
+ def ==(o)
188
+ return true if self.equal?(o)
189
+ self.class == o.class &&
190
+ id == o.id &&
191
+ user_id == o.user_id &&
192
+ sent_id == o.sent_id &&
193
+ remote_mta_ip == o.remote_mta_ip &&
194
+ inbox_id == o.inbox_id &&
195
+ reporting_mta == o.reporting_mta &&
196
+ recipients == o.recipients &&
197
+ smtp_response == o.smtp_response &&
198
+ processing_time_millis == o.processing_time_millis &&
199
+ received == o.received &&
200
+ subject == o.subject &&
201
+ created_at == o.created_at &&
202
+ updated_at == o.updated_at
203
+ end
204
+
205
+ # @see the `==` method
206
+ # @param [Object] Object to be compared
207
+ def eql?(o)
208
+ self == o
209
+ end
210
+
211
+ # Calculates hash code according to all attributes.
212
+ # @return [Integer] Hash code
213
+ def hash
214
+ [id, user_id, sent_id, remote_mta_ip, inbox_id, reporting_mta, recipients, smtp_response, processing_time_millis, received, subject, created_at, updated_at].hash
215
+ end
216
+
217
+ # Builds the object from hash
218
+ # @param [Hash] attributes Model attributes in the form of hash
219
+ # @return [Object] Returns the model itself
220
+ def self.build_from_hash(attributes)
221
+ new.build_from_hash(attributes)
222
+ end
223
+
224
+ # Builds the object from hash
225
+ # @param [Hash] attributes Model attributes in the form of hash
226
+ # @return [Object] Returns the model itself
227
+ def build_from_hash(attributes)
228
+ return nil unless attributes.is_a?(Hash)
229
+ self.class.openapi_types.each_pair do |key, type|
230
+ if type =~ /\AArray<(.*)>/i
231
+ # check to ensure the input is an array given that the attribute
232
+ # is documented as an array but the input is not
233
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
234
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
235
+ end
236
+ elsif !attributes[self.class.attribute_map[key]].nil?
237
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
238
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
239
+ end
240
+
241
+ self
242
+ end
243
+
244
+ # Deserializes the data based on type
245
+ # @param string type Data type
246
+ # @param string value Value to be deserialized
247
+ # @return [Object] Deserialized data
248
+ def _deserialize(type, value)
249
+ case type.to_sym
250
+ when :DateTime
251
+ DateTime.parse(value)
252
+ when :Date
253
+ Date.parse(value)
254
+ when :String
255
+ value.to_s
256
+ when :Integer
257
+ value.to_i
258
+ when :Float
259
+ value.to_f
260
+ when :Boolean
261
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
262
+ true
263
+ else
264
+ false
265
+ end
266
+ when :Object
267
+ # generic object (usually a Hash), return directly
268
+ value
269
+ when /\AArray<(?<inner_type>.+)>\z/
270
+ inner_type = Regexp.last_match[:inner_type]
271
+ value.map { |v| _deserialize(inner_type, v) }
272
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
273
+ k_type = Regexp.last_match[:k_type]
274
+ v_type = Regexp.last_match[:v_type]
275
+ {}.tap do |hash|
276
+ value.each do |k, v|
277
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
278
+ end
279
+ end
280
+ else # model
281
+ MailSlurpClient.const_get(type).build_from_hash(value)
282
+ end
283
+ end
284
+
285
+ # Returns the string representation of the object
286
+ # @return [String] String presentation of the object
287
+ def to_s
288
+ to_hash.to_s
289
+ end
290
+
291
+ # to_body is an alias to to_hash (backward compatibility)
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_body
294
+ to_hash
295
+ end
296
+
297
+ # Returns the object in the form of hash
298
+ # @return [Hash] Returns the object in the form of hash
299
+ def to_hash
300
+ hash = {}
301
+ self.class.attribute_map.each_pair do |attr, param|
302
+ value = self.send(attr)
303
+ if value.nil?
304
+ is_nullable = self.class.openapi_nullable.include?(attr)
305
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
306
+ end
307
+
308
+ hash[param] = _to_hash(value)
309
+ end
310
+ hash
311
+ end
312
+
313
+ # Outputs non-array value in the form of hash
314
+ # For object, use to_hash. Otherwise, just return the value
315
+ # @param [Object] value Any valid value
316
+ # @return [Hash] Returns the value in the form of hash
317
+ def _to_hash(value)
318
+ if value.is_a?(Array)
319
+ value.compact.map { |v| _to_hash(v) }
320
+ elsif value.is_a?(Hash)
321
+ {}.tap do |hash|
322
+ value.each { |k, v| hash[k] = _to_hash(v) }
323
+ end
324
+ elsif value.respond_to? :to_hash
325
+ value.to_hash
326
+ else
327
+ value
328
+ end
329
+ end
330
+ end
331
+ end
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :subject
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :subject
25
+
26
26
  attr_accessor :attachments
27
27
 
28
28
  attr_accessor :to
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  {
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
- :'subject' => :'subject',
50
49
  :'inbox_id' => :'inboxId',
50
+ :'subject' => :'subject',
51
51
  :'attachments' => :'attachments',
52
52
  :'to' => :'to',
53
53
  :'created_at' => :'createdAt',
@@ -65,8 +65,8 @@ module MailSlurpClient
65
65
  {
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
- :'subject' => :'String',
69
68
  :'inbox_id' => :'String',
69
+ :'subject' => :'String',
70
70
  :'attachments' => :'Array<String>',
71
71
  :'to' => :'Array<String>',
72
72
  :'created_at' => :'DateTime',
@@ -108,14 +108,14 @@ module MailSlurpClient
108
108
  self.from = attributes[:'from']
109
109
  end
110
110
 
111
- if attributes.key?(:'subject')
112
- self.subject = attributes[:'subject']
113
- end
114
-
115
111
  if attributes.key?(:'inbox_id')
116
112
  self.inbox_id = attributes[:'inbox_id']
117
113
  end
118
114
 
115
+ if attributes.key?(:'subject')
116
+ self.subject = attributes[:'subject']
117
+ end
118
+
119
119
  if attributes.key?(:'attachments')
120
120
  if (value = attributes[:'attachments']).is_a?(Array)
121
121
  self.attachments = value
@@ -211,8 +211,8 @@ module MailSlurpClient
211
211
  self.class == o.class &&
212
212
  id == o.id &&
213
213
  from == o.from &&
214
- subject == o.subject &&
215
214
  inbox_id == o.inbox_id &&
215
+ subject == o.subject &&
216
216
  attachments == o.attachments &&
217
217
  to == o.to &&
218
218
  created_at == o.created_at &&
@@ -233,7 +233,7 @@ module MailSlurpClient
233
233
  # Calculates hash code according to all attributes.
234
234
  # @return [Integer] Hash code
235
235
  def hash
236
- [id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
236
+ [id, from, inbox_id, subject, attachments, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
237
237
  end
238
238
 
239
239
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
- attr_accessor :subject
23
-
24
22
  attr_accessor :user_id
25
23
 
24
+ attr_accessor :subject
25
+
26
26
  attr_accessor :created_at
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,8 +30,8 @@ module MailSlurpClient
30
30
  {
31
31
  :'id' => :'id',
32
32
  :'from' => :'from',
33
- :'subject' => :'subject',
34
33
  :'user_id' => :'userId',
34
+ :'subject' => :'subject',
35
35
  :'created_at' => :'createdAt'
36
36
  }
37
37
  end
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  {
42
42
  :'id' => :'String',
43
43
  :'from' => :'String',
44
- :'subject' => :'String',
45
44
  :'user_id' => :'String',
45
+ :'subject' => :'String',
46
46
  :'created_at' => :'DateTime'
47
47
  }
48
48
  end
@@ -76,14 +76,14 @@ module MailSlurpClient
76
76
  self.from = attributes[:'from']
77
77
  end
78
78
 
79
- if attributes.key?(:'subject')
80
- self.subject = attributes[:'subject']
81
- end
82
-
83
79
  if attributes.key?(:'user_id')
84
80
  self.user_id = attributes[:'user_id']
85
81
  end
86
82
 
83
+ if attributes.key?(:'subject')
84
+ self.subject = attributes[:'subject']
85
+ end
86
+
87
87
  if attributes.key?(:'created_at')
88
88
  self.created_at = attributes[:'created_at']
89
89
  end
@@ -119,8 +119,8 @@ module MailSlurpClient
119
119
  self.class == o.class &&
120
120
  id == o.id &&
121
121
  from == o.from &&
122
- subject == o.subject &&
123
122
  user_id == o.user_id &&
123
+ subject == o.subject &&
124
124
  created_at == o.created_at
125
125
  end
126
126
 
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [id, from, subject, user_id, created_at].hash
136
+ [id, from, user_id, subject, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash
@@ -21,11 +21,11 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :total_elements
24
+ attr_accessor :last
25
25
 
26
26
  attr_accessor :total_pages
27
27
 
28
- attr_accessor :last
28
+ attr_accessor :total_elements
29
29
 
30
30
  attr_accessor :size
31
31
 
@@ -33,10 +33,10 @@ module MailSlurpClient
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :number_of_elements
37
-
38
36
  attr_accessor :first
39
37
 
38
+ attr_accessor :number_of_elements
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'total_elements' => :'totalElements',
49
- :'total_pages' => :'totalPages',
50
48
  :'last' => :'last',
49
+ :'total_pages' => :'totalPages',
50
+ :'total_elements' => :'totalElements',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'number_of_elements' => :'numberOfElements',
55
54
  :'first' => :'first',
55
+ :'number_of_elements' => :'numberOfElements',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<AliasProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'total_elements' => :'Integer',
67
- :'total_pages' => :'Integer',
68
66
  :'last' => :'Boolean',
67
+ :'total_pages' => :'Integer',
68
+ :'total_elements' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'number_of_elements' => :'Integer',
73
72
  :'first' => :'Boolean',
73
+ :'number_of_elements' => :'Integer',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,16 +110,16 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'total_elements')
114
- self.total_elements = attributes[:'total_elements']
113
+ if attributes.key?(:'last')
114
+ self.last = attributes[:'last']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'total_pages')
118
118
  self.total_pages = attributes[:'total_pages']
119
119
  end
120
120
 
121
- if attributes.key?(:'last')
122
- self.last = attributes[:'last']
121
+ if attributes.key?(:'total_elements')
122
+ self.total_elements = attributes[:'total_elements']
123
123
  end
124
124
 
125
125
  if attributes.key?(:'size')
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'number_of_elements')
138
- self.number_of_elements = attributes[:'number_of_elements']
139
- end
140
-
141
137
  if attributes.key?(:'first')
142
138
  self.first = attributes[:'first']
143
139
  end
144
140
 
141
+ if attributes.key?(:'number_of_elements')
142
+ self.number_of_elements = attributes[:'number_of_elements']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- total_elements == o.total_elements &&
172
- total_pages == o.total_pages &&
173
171
  last == o.last &&
172
+ total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- number_of_elements == o.number_of_elements &&
178
177
  first == o.first &&
178
+ number_of_elements == o.number_of_elements &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
191
+ [content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash