mailslurp_client 15.19.13 → 15.19.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +182 -2
  4. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  7. data/lib/mailslurp_client/models/imap_access_details.rb +61 -1
  8. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +61 -1
  9. data/lib/mailslurp_client/models/imap_smtp_access_servers.rb +254 -0
  10. data/lib/mailslurp_client/models/inbox_dto.rb +1 -1
  11. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  12. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  13. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  14. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  15. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  16. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  17. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  18. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  19. data/lib/mailslurp_client/models/page_connector_sync_events.rb +10 -10
  20. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  22. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  23. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  25. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  26. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  28. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  29. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  30. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  31. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  32. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  33. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  34. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  38. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  39. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  40. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  41. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  46. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  47. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/server_endpoints.rb +255 -0
  49. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  50. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
  51. data/lib/mailslurp_client/models/update_imap_access_options.rb +220 -0
  52. data/lib/mailslurp_client/models/update_smtp_access_options.rb +220 -0
  53. data/lib/mailslurp_client/version.rb +1 -1
  54. data/lib/mailslurp_client.rb +4 -0
  55. metadata +6 -2
@@ -39,6 +39,18 @@ module MailSlurpClient
39
39
  # SMTP password for login
40
40
  attr_accessor :smtp_password
41
41
 
42
+ # Secure TLS IMAP server host domain
43
+ attr_accessor :secure_imap_server_host
44
+
45
+ # Secure TLS IMAP server host port
46
+ attr_accessor :secure_imap_server_port
47
+
48
+ # Secure TLS IMAP username for login
49
+ attr_accessor :secure_imap_username
50
+
51
+ # Secure TLS IMAP password for login
52
+ attr_accessor :secure_imap_password
53
+
42
54
  # IMAP server host domain
43
55
  attr_accessor :imap_server_host
44
56
 
@@ -68,6 +80,10 @@ module MailSlurpClient
68
80
  :'smtp_server_port' => :'smtpServerPort',
69
81
  :'smtp_username' => :'smtpUsername',
70
82
  :'smtp_password' => :'smtpPassword',
83
+ :'secure_imap_server_host' => :'secureImapServerHost',
84
+ :'secure_imap_server_port' => :'secureImapServerPort',
85
+ :'secure_imap_username' => :'secureImapUsername',
86
+ :'secure_imap_password' => :'secureImapPassword',
71
87
  :'imap_server_host' => :'imapServerHost',
72
88
  :'imap_server_port' => :'imapServerPort',
73
89
  :'imap_username' => :'imapUsername',
@@ -88,6 +104,10 @@ module MailSlurpClient
88
104
  :'smtp_server_port' => :'Integer',
89
105
  :'smtp_username' => :'String',
90
106
  :'smtp_password' => :'String',
107
+ :'secure_imap_server_host' => :'String',
108
+ :'secure_imap_server_port' => :'Integer',
109
+ :'secure_imap_username' => :'String',
110
+ :'secure_imap_password' => :'String',
91
111
  :'imap_server_host' => :'String',
92
112
  :'imap_server_port' => :'Integer',
93
113
  :'imap_username' => :'String',
@@ -151,6 +171,22 @@ module MailSlurpClient
151
171
  self.smtp_password = attributes[:'smtp_password']
152
172
  end
153
173
 
174
+ if attributes.key?(:'secure_imap_server_host')
175
+ self.secure_imap_server_host = attributes[:'secure_imap_server_host']
176
+ end
177
+
178
+ if attributes.key?(:'secure_imap_server_port')
179
+ self.secure_imap_server_port = attributes[:'secure_imap_server_port']
180
+ end
181
+
182
+ if attributes.key?(:'secure_imap_username')
183
+ self.secure_imap_username = attributes[:'secure_imap_username']
184
+ end
185
+
186
+ if attributes.key?(:'secure_imap_password')
187
+ self.secure_imap_password = attributes[:'secure_imap_password']
188
+ end
189
+
154
190
  if attributes.key?(:'imap_server_host')
155
191
  self.imap_server_host = attributes[:'imap_server_host']
156
192
  end
@@ -212,6 +248,22 @@ module MailSlurpClient
212
248
  invalid_properties.push('invalid value for "smtp_password", smtp_password cannot be nil.')
213
249
  end
214
250
 
251
+ if @secure_imap_server_host.nil?
252
+ invalid_properties.push('invalid value for "secure_imap_server_host", secure_imap_server_host cannot be nil.')
253
+ end
254
+
255
+ if @secure_imap_server_port.nil?
256
+ invalid_properties.push('invalid value for "secure_imap_server_port", secure_imap_server_port cannot be nil.')
257
+ end
258
+
259
+ if @secure_imap_username.nil?
260
+ invalid_properties.push('invalid value for "secure_imap_username", secure_imap_username cannot be nil.')
261
+ end
262
+
263
+ if @secure_imap_password.nil?
264
+ invalid_properties.push('invalid value for "secure_imap_password", secure_imap_password cannot be nil.')
265
+ end
266
+
215
267
  if @imap_server_host.nil?
216
268
  invalid_properties.push('invalid value for "imap_server_host", imap_server_host cannot be nil.')
217
269
  end
@@ -246,6 +298,10 @@ module MailSlurpClient
246
298
  return false if @smtp_server_port.nil?
247
299
  return false if @smtp_username.nil?
248
300
  return false if @smtp_password.nil?
301
+ return false if @secure_imap_server_host.nil?
302
+ return false if @secure_imap_server_port.nil?
303
+ return false if @secure_imap_username.nil?
304
+ return false if @secure_imap_password.nil?
249
305
  return false if @imap_server_host.nil?
250
306
  return false if @imap_server_port.nil?
251
307
  return false if @imap_username.nil?
@@ -267,6 +323,10 @@ module MailSlurpClient
267
323
  smtp_server_port == o.smtp_server_port &&
268
324
  smtp_username == o.smtp_username &&
269
325
  smtp_password == o.smtp_password &&
326
+ secure_imap_server_host == o.secure_imap_server_host &&
327
+ secure_imap_server_port == o.secure_imap_server_port &&
328
+ secure_imap_username == o.secure_imap_username &&
329
+ secure_imap_password == o.secure_imap_password &&
270
330
  imap_server_host == o.imap_server_host &&
271
331
  imap_server_port == o.imap_server_port &&
272
332
  imap_username == o.imap_username &&
@@ -284,7 +344,7 @@ module MailSlurpClient
284
344
  # Calculates hash code according to all attributes.
285
345
  # @return [Integer] Hash code
286
346
  def hash
287
- [secure_smtp_server_host, secure_smtp_server_port, secure_smtp_username, secure_smtp_password, smtp_server_host, smtp_server_port, smtp_username, smtp_password, imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox, mail_from_domain].hash
347
+ [secure_smtp_server_host, secure_smtp_server_port, secure_smtp_username, secure_smtp_password, smtp_server_host, smtp_server_port, smtp_username, smtp_password, secure_imap_server_host, secure_imap_server_port, secure_imap_username, secure_imap_password, imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox, mail_from_domain].hash
288
348
  end
289
349
 
290
350
  # Builds the object from hash
@@ -0,0 +1,254 @@
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
+ # IMAP and SMTP server endpoints for MailSlurp
17
+ class ImapSmtpAccessServers
18
+ attr_accessor :imap_server
19
+
20
+ attr_accessor :secure_imap_server
21
+
22
+ attr_accessor :smtp_server
23
+
24
+ attr_accessor :secure_smtp_server
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'imap_server' => :'imapServer',
30
+ :'secure_imap_server' => :'secureImapServer',
31
+ :'smtp_server' => :'smtpServer',
32
+ :'secure_smtp_server' => :'secureSmtpServer'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'imap_server' => :'ServerEndpoints',
40
+ :'secure_imap_server' => :'ServerEndpoints',
41
+ :'smtp_server' => :'ServerEndpoints',
42
+ :'secure_smtp_server' => :'ServerEndpoints'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ImapSmtpAccessServers` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ImapSmtpAccessServers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'imap_server')
68
+ self.imap_server = attributes[:'imap_server']
69
+ end
70
+
71
+ if attributes.key?(:'secure_imap_server')
72
+ self.secure_imap_server = attributes[:'secure_imap_server']
73
+ end
74
+
75
+ if attributes.key?(:'smtp_server')
76
+ self.smtp_server = attributes[:'smtp_server']
77
+ end
78
+
79
+ if attributes.key?(:'secure_smtp_server')
80
+ self.secure_smtp_server = attributes[:'secure_smtp_server']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ if @imap_server.nil?
89
+ invalid_properties.push('invalid value for "imap_server", imap_server cannot be nil.')
90
+ end
91
+
92
+ if @secure_imap_server.nil?
93
+ invalid_properties.push('invalid value for "secure_imap_server", secure_imap_server cannot be nil.')
94
+ end
95
+
96
+ if @smtp_server.nil?
97
+ invalid_properties.push('invalid value for "smtp_server", smtp_server cannot be nil.')
98
+ end
99
+
100
+ if @secure_smtp_server.nil?
101
+ invalid_properties.push('invalid value for "secure_smtp_server", secure_smtp_server cannot be nil.')
102
+ end
103
+
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ return false if @imap_server.nil?
111
+ return false if @secure_imap_server.nil?
112
+ return false if @smtp_server.nil?
113
+ return false if @secure_smtp_server.nil?
114
+ true
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ imap_server == o.imap_server &&
123
+ secure_imap_server == o.secure_imap_server &&
124
+ smtp_server == o.smtp_server &&
125
+ secure_smtp_server == o.secure_smtp_server
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [imap_server, secure_imap_server, smtp_server, secure_smtp_server].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ new.build_from_hash(attributes)
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def build_from_hash(attributes)
151
+ return nil unless attributes.is_a?(Hash)
152
+ self.class.openapi_types.each_pair do |key, type|
153
+ if type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
157
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ end
159
+ elsif !attributes[self.class.attribute_map[key]].nil?
160
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
162
+ end
163
+
164
+ self
165
+ end
166
+
167
+ # Deserializes the data based on type
168
+ # @param string type Data type
169
+ # @param string value Value to be deserialized
170
+ # @return [Object] Deserialized data
171
+ def _deserialize(type, value)
172
+ case type.to_sym
173
+ when :DateTime
174
+ DateTime.parse(value)
175
+ when :Date
176
+ Date.parse(value)
177
+ when :String
178
+ value.to_s
179
+ when :Integer
180
+ value.to_i
181
+ when :Float
182
+ value.to_f
183
+ when :Boolean
184
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
+ true
186
+ else
187
+ false
188
+ end
189
+ when :Object
190
+ # generic object (usually a Hash), return directly
191
+ value
192
+ when /\AArray<(?<inner_type>.+)>\z/
193
+ inner_type = Regexp.last_match[:inner_type]
194
+ value.map { |v| _deserialize(inner_type, v) }
195
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
+ k_type = Regexp.last_match[:k_type]
197
+ v_type = Regexp.last_match[:v_type]
198
+ {}.tap do |hash|
199
+ value.each do |k, v|
200
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
+ end
202
+ end
203
+ else # model
204
+ MailSlurpClient.const_get(type).build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+ end
254
+ end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts and do not support IMAP or POP3. `SMTP` inboxes use a custom mail server at `mx.mailslurp.com` and support SMTP login, IMAP and POP3. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching.
16
+ # Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts and do not support IMAP or POP3. `SMTP` inboxes use a custom mail server at `mxslurp.click` and support SMTP login, IMAP and POP3. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching.
17
17
  class InboxDto
18
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
19
19
  attr_accessor :id
@@ -15,12 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox forwarder event
17
17
  class InboxForwarderEventProjection
18
- attr_accessor :user_id
19
-
20
18
  attr_accessor :email_id
21
19
 
22
20
  attr_accessor :inbox_id
23
21
 
22
+ attr_accessor :user_id
23
+
24
24
  attr_accessor :forwarder_id
25
25
 
26
26
  attr_accessor :created_at
@@ -56,9 +56,9 @@ module MailSlurpClient
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'user_id' => :'userId',
60
59
  :'email_id' => :'emailId',
61
60
  :'inbox_id' => :'inboxId',
61
+ :'user_id' => :'userId',
62
62
  :'forwarder_id' => :'forwarderId',
63
63
  :'created_at' => :'createdAt',
64
64
  :'message' => :'message',
@@ -70,9 +70,9 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'user_id' => :'String',
74
73
  :'email_id' => :'String',
75
74
  :'inbox_id' => :'String',
75
+ :'user_id' => :'String',
76
76
  :'forwarder_id' => :'String',
77
77
  :'created_at' => :'DateTime',
78
78
  :'message' => :'String',
@@ -84,9 +84,9 @@ module MailSlurpClient
84
84
  # List of attributes with nullable: true
85
85
  def self.openapi_nullable
86
86
  Set.new([
87
- :'user_id',
88
87
  :'email_id',
89
88
  :'inbox_id',
89
+ :'user_id',
90
90
  :'forwarder_id',
91
91
  :'message',
92
92
  :'id',
@@ -109,10 +109,6 @@ module MailSlurpClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'user_id')
113
- self.user_id = attributes[:'user_id']
114
- end
115
-
116
112
  if attributes.key?(:'email_id')
117
113
  self.email_id = attributes[:'email_id']
118
114
  end
@@ -121,6 +117,10 @@ module MailSlurpClient
121
117
  self.inbox_id = attributes[:'inbox_id']
122
118
  end
123
119
 
120
+ if attributes.key?(:'user_id')
121
+ self.user_id = attributes[:'user_id']
122
+ end
123
+
124
124
  if attributes.key?(:'forwarder_id')
125
125
  self.forwarder_id = attributes[:'forwarder_id']
126
126
  end
@@ -177,9 +177,9 @@ module MailSlurpClient
177
177
  def ==(o)
178
178
  return true if self.equal?(o)
179
179
  self.class == o.class &&
180
- user_id == o.user_id &&
181
180
  email_id == o.email_id &&
182
181
  inbox_id == o.inbox_id &&
182
+ user_id == o.user_id &&
183
183
  forwarder_id == o.forwarder_id &&
184
184
  created_at == o.created_at &&
185
185
  message == o.message &&
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [user_id, email_id, inbox_id, forwarder_id, created_at, message, id, status].hash
199
+ [email_id, inbox_id, user_id, forwarder_id, created_at, message, id, status].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -17,12 +17,12 @@ module MailSlurpClient
17
17
  class InboxReplierEventProjection
18
18
  attr_accessor :recipients
19
19
 
20
- attr_accessor :user_id
21
-
22
20
  attr_accessor :email_id
23
21
 
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :user_id
25
+
26
26
  attr_accessor :sent_id
27
27
 
28
28
  attr_accessor :replier_id
@@ -61,9 +61,9 @@ module MailSlurpClient
61
61
  def self.attribute_map
62
62
  {
63
63
  :'recipients' => :'recipients',
64
- :'user_id' => :'userId',
65
64
  :'email_id' => :'emailId',
66
65
  :'inbox_id' => :'inboxId',
66
+ :'user_id' => :'userId',
67
67
  :'sent_id' => :'sentId',
68
68
  :'replier_id' => :'replierId',
69
69
  :'created_at' => :'createdAt',
@@ -77,9 +77,9 @@ module MailSlurpClient
77
77
  def self.openapi_types
78
78
  {
79
79
  :'recipients' => :'Array<String>',
80
- :'user_id' => :'String',
81
80
  :'email_id' => :'String',
82
81
  :'inbox_id' => :'String',
82
+ :'user_id' => :'String',
83
83
  :'sent_id' => :'String',
84
84
  :'replier_id' => :'String',
85
85
  :'created_at' => :'DateTime',
@@ -93,9 +93,9 @@ module MailSlurpClient
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
95
  :'recipients',
96
- :'user_id',
97
96
  :'email_id',
98
97
  :'inbox_id',
98
+ :'user_id',
99
99
  :'sent_id',
100
100
  :'replier_id',
101
101
  :'message',
@@ -125,10 +125,6 @@ module MailSlurpClient
125
125
  end
126
126
  end
127
127
 
128
- if attributes.key?(:'user_id')
129
- self.user_id = attributes[:'user_id']
130
- end
131
-
132
128
  if attributes.key?(:'email_id')
133
129
  self.email_id = attributes[:'email_id']
134
130
  end
@@ -137,6 +133,10 @@ module MailSlurpClient
137
133
  self.inbox_id = attributes[:'inbox_id']
138
134
  end
139
135
 
136
+ if attributes.key?(:'user_id')
137
+ self.user_id = attributes[:'user_id']
138
+ end
139
+
140
140
  if attributes.key?(:'sent_id')
141
141
  self.sent_id = attributes[:'sent_id']
142
142
  end
@@ -198,9 +198,9 @@ module MailSlurpClient
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
200
  recipients == o.recipients &&
201
- user_id == o.user_id &&
202
201
  email_id == o.email_id &&
203
202
  inbox_id == o.inbox_id &&
203
+ user_id == o.user_id &&
204
204
  sent_id == o.sent_id &&
205
205
  replier_id == o.replier_id &&
206
206
  created_at == o.created_at &&
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [recipients, user_id, email_id, inbox_id, sent_id, replier_id, created_at, message, id, status].hash
221
+ [recipients, email_id, inbox_id, user_id, sent_id, replier_id, created_at, message, id, status].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -27,14 +27,14 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :number_of_elements
29
29
 
30
- attr_accessor :first
31
-
32
30
  attr_accessor :size
33
31
 
34
32
  attr_accessor :number
35
33
 
36
34
  attr_accessor :sort
37
35
 
36
+ attr_accessor :first
37
+
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
- :'first' => :'first',
50
49
  :'size' => :'size',
51
50
  :'number' => :'number',
52
51
  :'sort' => :'sort',
52
+ :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
- :'first' => :'Boolean',
67
66
  :'size' => :'Integer',
68
67
  :'number' => :'Integer',
69
68
  :'sort' => :'SortObject',
69
+ :'first' => :'Boolean',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -118,10 +118,6 @@ module MailSlurpClient
118
118
  self.number_of_elements = attributes[:'number_of_elements']
119
119
  end
120
120
 
121
- if attributes.key?(:'first')
122
- self.first = attributes[:'first']
123
- end
124
-
125
121
  if attributes.key?(:'size')
126
122
  self.size = attributes[:'size']
127
123
  end
@@ -134,6 +130,10 @@ module MailSlurpClient
134
130
  self.sort = attributes[:'sort']
135
131
  end
136
132
 
133
+ if attributes.key?(:'first')
134
+ self.first = attributes[:'first']
135
+ end
136
+
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -173,10 +173,10 @@ module MailSlurpClient
173
173
  total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
- first == o.first &&
177
176
  size == o.size &&
178
177
  number == o.number &&
179
178
  sort == o.sort &&
179
+ first == o.first &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, size, number, sort, first, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash