mailslurp_client 15.12.13 → 15.12.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +104 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  4. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +212 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +71 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/complaint.rb +289 -0
  8. data/lib/mailslurp_client/models/create_contact_options.rb +7 -0
  9. data/lib/mailslurp_client/models/create_domain_options.rb +3 -0
  10. data/lib/mailslurp_client/models/create_inbox_dto.rb +10 -0
  11. data/lib/mailslurp_client/models/create_webhook_options.rb +17 -7
  12. data/lib/mailslurp_client/models/delivery_status.rb +331 -0
  13. data/lib/mailslurp_client/models/email.rb +15 -0
  14. data/lib/mailslurp_client/models/email_analysis.rb +5 -0
  15. data/lib/mailslurp_client/models/email_preview.rb +6 -5
  16. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/inbox_dto.rb +2 -0
  18. data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
  19. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  20. data/lib/mailslurp_client/models/organization_inbox_projection.rb +4 -0
  21. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  22. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  23. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  24. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  25. data/lib/mailslurp_client/models/page_complaint.rb +308 -0
  26. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
  28. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  29. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  30. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  31. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  34. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  36. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  39. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  40. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  41. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  46. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  47. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  48. data/lib/mailslurp_client/models/sent_email_dto.rb +52 -1
  49. data/lib/mailslurp_client/models/sent_email_projection.rb +59 -59
  50. data/lib/mailslurp_client/models/thread_projection.rb +20 -20
  51. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  52. data/lib/mailslurp_client/models/update_inbox_options.rb +5 -0
  53. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -0
  54. data/lib/mailslurp_client/models/webhook_dto.rb +18 -9
  55. data/lib/mailslurp_client/models/webhook_header_name_value.rb +228 -0
  56. data/lib/mailslurp_client/models/webhook_headers.rb +215 -0
  57. data/lib/mailslurp_client/version.rb +1 -1
  58. data/lib/mailslurp_client.rb +6 -0
  59. metadata +11 -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
@@ -146,6 +146,21 @@ module MailSlurpClient
146
146
  # List of attributes with nullable: true
147
147
  def self.openapi_nullable
148
148
  Set.new([
149
+ :'from',
150
+ :'sender',
151
+ :'recipients',
152
+ :'reply_to',
153
+ :'cc',
154
+ :'bcc',
155
+ :'headers',
156
+ :'attachments',
157
+ :'subject',
158
+ :'body',
159
+ :'body_excerpt',
160
+ :'body_md5_hash',
161
+ :'is_html',
162
+ :'charset',
163
+ :'analysis',
149
164
  ])
150
165
  end
151
166
 
@@ -55,6 +55,11 @@ module MailSlurpClient
55
55
  # List of attributes with nullable: true
56
56
  def self.openapi_nullable
57
57
  Set.new([
58
+ :'spam_verdict',
59
+ :'virus_verdict',
60
+ :'spf_verdict',
61
+ :'dkim_verdict',
62
+ :'dmarc_verdict'
58
63
  ])
59
64
  end
60
65
 
@@ -75,6 +75,12 @@ module MailSlurpClient
75
75
  # List of attributes with nullable: true
76
76
  def self.openapi_nullable
77
77
  Set.new([
78
+ :'subject',
79
+ :'to',
80
+ :'from',
81
+ :'bcc',
82
+ :'cc',
83
+ :'attachments'
78
84
  ])
79
85
  end
80
86
 
@@ -146,10 +152,6 @@ module MailSlurpClient
146
152
  invalid_properties.push('invalid value for "id", id cannot be nil.')
147
153
  end
148
154
 
149
- if @to.nil?
150
- invalid_properties.push('invalid value for "to", to cannot be nil.')
151
- end
152
-
153
155
  if @created_at.nil?
154
156
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
155
157
  end
@@ -165,7 +167,6 @@ module MailSlurpClient
165
167
  # @return true if the model is valid
166
168
  def valid?
167
169
  return false if @id.nil?
168
- return false if @to.nil?
169
170
  return false if @created_at.nil?
170
171
  return false if @read.nil?
171
172
  true
@@ -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
@@ -121,6 +121,8 @@ module MailSlurpClient
121
121
  :'name',
122
122
  :'domain_id',
123
123
  :'description',
124
+ :'expires_at',
125
+ :'tags',
124
126
  :'inbox_type',
125
127
  ])
126
128
  end
@@ -102,6 +102,11 @@ module MailSlurpClient
102
102
  # List of attributes with nullable: true
103
103
  def self.openapi_nullable
104
104
  Set.new([
105
+ :'email_address',
106
+ :'name',
107
+ :'tags',
108
+ :'inbox_type',
109
+ :'expires_at'
105
110
  ])
106
111
  end
107
112
 
@@ -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
@@ -102,6 +102,10 @@ module MailSlurpClient
102
102
  # List of attributes with nullable: true
103
103
  def self.openapi_nullable
104
104
  Set.new([
105
+ :'name',
106
+ :'email_address',
107
+ :'tags',
108
+ :'inbox_type',
105
109
  ])
106
110
  end
107
111
 
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_elements
27
-
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :total_elements
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'total_elements' => :'totalElements',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -64,8 +64,8 @@ module MailSlurpClient
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'total_elements' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_elements')
118
- self.total_elements = attributes[:'total_elements']
119
- end
120
-
121
117
  if attributes.key?(:'total_pages')
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_elements')
122
+ self.total_elements = attributes[:'total_elements']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_elements == o.total_elements &&
173
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 &&
@@ -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, last, total_elements, total_pages, size, number, sort, first, number_of_elements, 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