mailslurp_client 15.17.41 → 15.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +62 -0
  3. data/lib/mailslurp_client/api/tools_controller_api.rb +175 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +19 -19
  5. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +11 -11
  6. data/lib/mailslurp_client/models/check_email_body_results.rb +259 -0
  7. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  9. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  10. data/lib/mailslurp_client/models/fake_email_dto.rb +305 -0
  11. data/lib/mailslurp_client/models/fake_email_preview.rb +291 -0
  12. data/lib/mailslurp_client/models/fake_email_result.rb +206 -0
  13. data/lib/mailslurp_client/models/image_issue.rb +282 -0
  14. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +15 -4
  15. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  16. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +21 -21
  17. data/lib/mailslurp_client/models/link_issue.rb +282 -0
  18. data/lib/mailslurp_client/models/new_fake_email_address_result.rb +211 -0
  19. data/lib/mailslurp_client/models/sent_email_projection.rb +38 -38
  20. data/lib/mailslurp_client/models/spelling_issue.rb +287 -0
  21. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  22. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
  23. data/lib/mailslurp_client/version.rb +1 -1
  24. data/lib/mailslurp_client.rb +8 -0
  25. metadata +10 -2
@@ -18,24 +18,24 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :subject
21
+ attr_accessor :body_md5_hash
22
22
 
23
- attr_accessor :from
23
+ attr_accessor :user_id
24
24
 
25
- attr_accessor :attachments
25
+ attr_accessor :from
26
26
 
27
- attr_accessor :user_id
27
+ attr_accessor :subject
28
28
 
29
29
  attr_accessor :inbox_id
30
30
 
31
+ attr_accessor :attachments
32
+
31
33
  attr_accessor :to
32
34
 
33
35
  attr_accessor :bcc
34
36
 
35
37
  attr_accessor :cc
36
38
 
37
- attr_accessor :body_md5_hash
38
-
39
39
  attr_accessor :virtual_send
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -43,15 +43,15 @@ module MailSlurpClient
43
43
  {
44
44
  :'created_at' => :'createdAt',
45
45
  :'id' => :'id',
46
- :'subject' => :'subject',
47
- :'from' => :'from',
48
- :'attachments' => :'attachments',
46
+ :'body_md5_hash' => :'bodyMD5Hash',
49
47
  :'user_id' => :'userId',
48
+ :'from' => :'from',
49
+ :'subject' => :'subject',
50
50
  :'inbox_id' => :'inboxId',
51
+ :'attachments' => :'attachments',
51
52
  :'to' => :'to',
52
53
  :'bcc' => :'bcc',
53
54
  :'cc' => :'cc',
54
- :'body_md5_hash' => :'bodyMD5Hash',
55
55
  :'virtual_send' => :'virtualSend'
56
56
  }
57
57
  end
@@ -61,15 +61,15 @@ module MailSlurpClient
61
61
  {
62
62
  :'created_at' => :'DateTime',
63
63
  :'id' => :'String',
64
- :'subject' => :'String',
65
- :'from' => :'String',
66
- :'attachments' => :'Array<String>',
64
+ :'body_md5_hash' => :'String',
67
65
  :'user_id' => :'String',
66
+ :'from' => :'String',
67
+ :'subject' => :'String',
68
68
  :'inbox_id' => :'String',
69
+ :'attachments' => :'Array<String>',
69
70
  :'to' => :'Array<String>',
70
71
  :'bcc' => :'Array<String>',
71
72
  :'cc' => :'Array<String>',
72
- :'body_md5_hash' => :'String',
73
73
  :'virtual_send' => :'Boolean'
74
74
  }
75
75
  end
@@ -103,28 +103,32 @@ module MailSlurpClient
103
103
  self.id = attributes[:'id']
104
104
  end
105
105
 
106
- if attributes.key?(:'subject')
107
- self.subject = attributes[:'subject']
106
+ if attributes.key?(:'body_md5_hash')
107
+ self.body_md5_hash = attributes[:'body_md5_hash']
108
108
  end
109
109
 
110
- if attributes.key?(:'from')
111
- self.from = attributes[:'from']
110
+ if attributes.key?(:'user_id')
111
+ self.user_id = attributes[:'user_id']
112
112
  end
113
113
 
114
- if attributes.key?(:'attachments')
115
- if (value = attributes[:'attachments']).is_a?(Array)
116
- self.attachments = value
117
- end
114
+ if attributes.key?(:'from')
115
+ self.from = attributes[:'from']
118
116
  end
119
117
 
120
- if attributes.key?(:'user_id')
121
- self.user_id = attributes[:'user_id']
118
+ if attributes.key?(:'subject')
119
+ self.subject = attributes[:'subject']
122
120
  end
123
121
 
124
122
  if attributes.key?(:'inbox_id')
125
123
  self.inbox_id = attributes[:'inbox_id']
126
124
  end
127
125
 
126
+ if attributes.key?(:'attachments')
127
+ if (value = attributes[:'attachments']).is_a?(Array)
128
+ self.attachments = value
129
+ end
130
+ end
131
+
128
132
  if attributes.key?(:'to')
129
133
  if (value = attributes[:'to']).is_a?(Array)
130
134
  self.to = value
@@ -143,10 +147,6 @@ module MailSlurpClient
143
147
  end
144
148
  end
145
149
 
146
- if attributes.key?(:'body_md5_hash')
147
- self.body_md5_hash = attributes[:'body_md5_hash']
148
- end
149
-
150
150
  if attributes.key?(:'virtual_send')
151
151
  self.virtual_send = attributes[:'virtual_send']
152
152
  end
@@ -164,10 +164,6 @@ module MailSlurpClient
164
164
  invalid_properties.push('invalid value for "id", id cannot be nil.')
165
165
  end
166
166
 
167
- if @attachments.nil?
168
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
169
- end
170
-
171
167
  if @user_id.nil?
172
168
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
173
169
  end
@@ -176,6 +172,10 @@ module MailSlurpClient
176
172
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
177
173
  end
178
174
 
175
+ if @attachments.nil?
176
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
177
+ end
178
+
179
179
  if @to.nil?
180
180
  invalid_properties.push('invalid value for "to", to cannot be nil.')
181
181
  end
@@ -200,9 +200,9 @@ module MailSlurpClient
200
200
  def valid?
201
201
  return false if @created_at.nil?
202
202
  return false if @id.nil?
203
- return false if @attachments.nil?
204
203
  return false if @user_id.nil?
205
204
  return false if @inbox_id.nil?
205
+ return false if @attachments.nil?
206
206
  return false if @to.nil?
207
207
  return false if @bcc.nil?
208
208
  return false if @cc.nil?
@@ -217,15 +217,15 @@ module MailSlurpClient
217
217
  self.class == o.class &&
218
218
  created_at == o.created_at &&
219
219
  id == o.id &&
220
- subject == o.subject &&
221
- from == o.from &&
222
- attachments == o.attachments &&
220
+ body_md5_hash == o.body_md5_hash &&
223
221
  user_id == o.user_id &&
222
+ from == o.from &&
223
+ subject == o.subject &&
224
224
  inbox_id == o.inbox_id &&
225
+ attachments == o.attachments &&
225
226
  to == o.to &&
226
227
  bcc == o.bcc &&
227
228
  cc == o.cc &&
228
- body_md5_hash == o.body_md5_hash &&
229
229
  virtual_send == o.virtual_send
230
230
  end
231
231
 
@@ -238,7 +238,7 @@ module MailSlurpClient
238
238
  # Calculates hash code according to all attributes.
239
239
  # @return [Integer] Hash code
240
240
  def hash
241
- [created_at, id, subject, from, attachments, user_id, inbox_id, to, bcc, cc, body_md5_hash, virtual_send].hash
241
+ [created_at, id, body_md5_hash, user_id, from, subject, inbox_id, attachments, to, bcc, cc, virtual_send].hash
242
242
  end
243
243
 
244
244
  # Builds the object from hash
@@ -0,0 +1,287 @@
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 SpellingIssue
17
+ attr_accessor :group
18
+
19
+ attr_accessor :suggestion
20
+
21
+ attr_accessor :severity
22
+
23
+ attr_accessor :message
24
+
25
+ class EnumAttributeValidator
26
+ attr_reader :datatype
27
+ attr_reader :allowable_values
28
+
29
+ def initialize(datatype, allowable_values)
30
+ @allowable_values = allowable_values.map do |value|
31
+ case datatype.to_s
32
+ when /Integer/i
33
+ value.to_i
34
+ when /Float/i
35
+ value.to_f
36
+ else
37
+ value
38
+ end
39
+ end
40
+ end
41
+
42
+ def valid?(value)
43
+ !value || allowable_values.include?(value)
44
+ end
45
+ end
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'group' => :'group',
51
+ :'suggestion' => :'suggestion',
52
+ :'severity' => :'severity',
53
+ :'message' => :'message'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'group' => :'String',
61
+ :'suggestion' => :'String',
62
+ :'severity' => :'String',
63
+ :'message' => :'String'
64
+ }
65
+ end
66
+
67
+ # List of attributes with nullable: true
68
+ def self.openapi_nullable
69
+ Set.new([
70
+ ])
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ if (!attributes.is_a?(Hash))
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::SpellingIssue` initialize method"
78
+ end
79
+
80
+ # check to see if the attribute exists and convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!self.class.attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::SpellingIssue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'group')
89
+ self.group = attributes[:'group']
90
+ end
91
+
92
+ if attributes.key?(:'suggestion')
93
+ self.suggestion = attributes[:'suggestion']
94
+ end
95
+
96
+ if attributes.key?(:'severity')
97
+ self.severity = attributes[:'severity']
98
+ end
99
+
100
+ if attributes.key?(:'message')
101
+ self.message = attributes[:'message']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ invalid_properties = Array.new
109
+ if @group.nil?
110
+ invalid_properties.push('invalid value for "group", group cannot be nil.')
111
+ end
112
+
113
+ if @suggestion.nil?
114
+ invalid_properties.push('invalid value for "suggestion", suggestion cannot be nil.')
115
+ end
116
+
117
+ if @severity.nil?
118
+ invalid_properties.push('invalid value for "severity", severity cannot be nil.')
119
+ end
120
+
121
+ if @message.nil?
122
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
123
+ end
124
+
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ return false if @group.nil?
132
+ return false if @suggestion.nil?
133
+ return false if @severity.nil?
134
+ severity_validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
135
+ return false unless severity_validator.valid?(@severity)
136
+ return false if @message.nil?
137
+ true
138
+ end
139
+
140
+ # Custom attribute writer method checking allowed values (enum).
141
+ # @param [Object] severity Object to be assigned
142
+ def severity=(severity)
143
+ validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
144
+ unless validator.valid?(severity)
145
+ fail ArgumentError, "invalid value for \"severity\", must be one of #{validator.allowable_values}."
146
+ end
147
+ @severity = severity
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ group == o.group &&
156
+ suggestion == o.suggestion &&
157
+ severity == o.severity &&
158
+ message == o.message
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Integer] Hash code
169
+ def hash
170
+ [group, suggestion, severity, message].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def self.build_from_hash(attributes)
177
+ new.build_from_hash(attributes)
178
+ end
179
+
180
+ # Builds the object from hash
181
+ # @param [Hash] attributes Model attributes in the form of hash
182
+ # @return [Object] Returns the model itself
183
+ def build_from_hash(attributes)
184
+ return nil unless attributes.is_a?(Hash)
185
+ self.class.openapi_types.each_pair do |key, type|
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the attribute
188
+ # is documented as an array but the input is not
189
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
190
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
191
+ end
192
+ elsif !attributes[self.class.attribute_map[key]].nil?
193
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
195
+ end
196
+
197
+ self
198
+ end
199
+
200
+ # Deserializes the data based on type
201
+ # @param string type Data type
202
+ # @param string value Value to be deserialized
203
+ # @return [Object] Deserialized data
204
+ def _deserialize(type, value)
205
+ case type.to_sym
206
+ when :DateTime
207
+ DateTime.parse(value)
208
+ when :Date
209
+ Date.parse(value)
210
+ when :String
211
+ value.to_s
212
+ when :Integer
213
+ value.to_i
214
+ when :Float
215
+ value.to_f
216
+ when :Boolean
217
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
218
+ true
219
+ else
220
+ false
221
+ end
222
+ when :Object
223
+ # generic object (usually a Hash), return directly
224
+ value
225
+ when /\AArray<(?<inner_type>.+)>\z/
226
+ inner_type = Regexp.last_match[:inner_type]
227
+ value.map { |v| _deserialize(inner_type, v) }
228
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
229
+ k_type = Regexp.last_match[:k_type]
230
+ v_type = Regexp.last_match[:v_type]
231
+ {}.tap do |hash|
232
+ value.each do |k, v|
233
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
234
+ end
235
+ end
236
+ else # model
237
+ MailSlurpClient.const_get(type).build_from_hash(value)
238
+ end
239
+ end
240
+
241
+ # Returns the string representation of the object
242
+ # @return [String] String presentation of the object
243
+ def to_s
244
+ to_hash.to_s
245
+ end
246
+
247
+ # to_body is an alias to to_hash (backward compatibility)
248
+ # @return [Hash] Returns the object in the form of hash
249
+ def to_body
250
+ to_hash
251
+ end
252
+
253
+ # Returns the object in the form of hash
254
+ # @return [Hash] Returns the object in the form of hash
255
+ def to_hash
256
+ hash = {}
257
+ self.class.attribute_map.each_pair do |attr, param|
258
+ value = self.send(attr)
259
+ if value.nil?
260
+ is_nullable = self.class.openapi_nullable.include?(attr)
261
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
262
+ end
263
+
264
+ hash[param] = _to_hash(value)
265
+ end
266
+ hash
267
+ end
268
+
269
+ # Outputs non-array value in the form of hash
270
+ # For object, use to_hash. Otherwise, just return the value
271
+ # @param [Object] value Any valid value
272
+ # @return [Hash] Returns the value in the form of hash
273
+ def _to_hash(value)
274
+ if value.is_a?(Array)
275
+ value.compact.map { |v| _to_hash(v) }
276
+ elsif value.is_a?(Hash)
277
+ {}.tap do |hash|
278
+ value.each { |k, v| hash[k] = _to_hash(v) }
279
+ end
280
+ elsif value.respond_to? :to_hash
281
+ value.to_hash
282
+ else
283
+ value
284
+ end
285
+ end
286
+ end
287
+ end
@@ -21,12 +21,12 @@ module MailSlurpClient
21
21
  # Updated at DateTime
22
22
  attr_accessor :updated_at
23
23
 
24
- # User ID
25
- attr_accessor :user_id
26
-
27
24
  # Inbox ID
28
25
  attr_accessor :inbox_id
29
26
 
27
+ # User ID
28
+ attr_accessor :user_id
29
+
30
30
  # To recipients
31
31
  attr_accessor :to
32
32
 
@@ -53,8 +53,8 @@ module MailSlurpClient
53
53
  {
54
54
  :'created_at' => :'createdAt',
55
55
  :'updated_at' => :'updatedAt',
56
- :'user_id' => :'userId',
57
56
  :'inbox_id' => :'inboxId',
57
+ :'user_id' => :'userId',
58
58
  :'to' => :'to',
59
59
  :'bcc' => :'bcc',
60
60
  :'cc' => :'cc',
@@ -70,8 +70,8 @@ module MailSlurpClient
70
70
  {
71
71
  :'created_at' => :'DateTime',
72
72
  :'updated_at' => :'DateTime',
73
- :'user_id' => :'String',
74
73
  :'inbox_id' => :'String',
74
+ :'user_id' => :'String',
75
75
  :'to' => :'Array<String>',
76
76
  :'bcc' => :'Array<String>',
77
77
  :'cc' => :'Array<String>',
@@ -111,14 +111,14 @@ module MailSlurpClient
111
111
  self.updated_at = attributes[:'updated_at']
112
112
  end
113
113
 
114
- if attributes.key?(:'user_id')
115
- self.user_id = attributes[:'user_id']
116
- end
117
-
118
114
  if attributes.key?(:'inbox_id')
119
115
  self.inbox_id = attributes[:'inbox_id']
120
116
  end
121
117
 
118
+ if attributes.key?(:'user_id')
119
+ self.user_id = attributes[:'user_id']
120
+ end
121
+
122
122
  if attributes.key?(:'to')
123
123
  if (value = attributes[:'to']).is_a?(Array)
124
124
  self.to = value
@@ -166,14 +166,14 @@ module MailSlurpClient
166
166
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
167
167
  end
168
168
 
169
- if @user_id.nil?
170
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
- end
172
-
173
169
  if @inbox_id.nil?
174
170
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
175
171
  end
176
172
 
173
+ if @user_id.nil?
174
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
175
+ end
176
+
177
177
  if @to.nil?
178
178
  invalid_properties.push('invalid value for "to", to cannot be nil.')
179
179
  end
@@ -194,8 +194,8 @@ module MailSlurpClient
194
194
  def valid?
195
195
  return false if @created_at.nil?
196
196
  return false if @updated_at.nil?
197
- return false if @user_id.nil?
198
197
  return false if @inbox_id.nil?
198
+ return false if @user_id.nil?
199
199
  return false if @to.nil?
200
200
  return false if @alias_id.nil?
201
201
  return false if @id.nil?
@@ -209,8 +209,8 @@ module MailSlurpClient
209
209
  self.class == o.class &&
210
210
  created_at == o.created_at &&
211
211
  updated_at == o.updated_at &&
212
- user_id == o.user_id &&
213
212
  inbox_id == o.inbox_id &&
213
+ user_id == o.user_id &&
214
214
  to == o.to &&
215
215
  bcc == o.bcc &&
216
216
  cc == o.cc &&
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [created_at, updated_at, user_id, inbox_id, to, bcc, cc, alias_id, subject, name, id].hash
232
+ [created_at, updated_at, inbox_id, user_id, to, bcc, cc, alias_id, subject, name, id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -17,11 +17,11 @@ module MailSlurpClient
17
17
  class TrackingPixelProjection
18
18
  attr_accessor :created_at
19
19
 
20
- attr_accessor :sent_email_id
20
+ attr_accessor :inbox_id
21
21
 
22
22
  attr_accessor :user_id
23
23
 
24
- attr_accessor :inbox_id
24
+ attr_accessor :sent_email_id
25
25
 
26
26
  attr_accessor :recipient
27
27
 
@@ -37,9 +37,9 @@ module MailSlurpClient
37
37
  def self.attribute_map
38
38
  {
39
39
  :'created_at' => :'createdAt',
40
- :'sent_email_id' => :'sentEmailId',
41
- :'user_id' => :'userId',
42
40
  :'inbox_id' => :'inboxId',
41
+ :'user_id' => :'userId',
42
+ :'sent_email_id' => :'sentEmailId',
43
43
  :'recipient' => :'recipient',
44
44
  :'seen' => :'seen',
45
45
  :'seen_at' => :'seenAt',
@@ -52,9 +52,9 @@ module MailSlurpClient
52
52
  def self.openapi_types
53
53
  {
54
54
  :'created_at' => :'DateTime',
55
- :'sent_email_id' => :'String',
56
- :'user_id' => :'String',
57
55
  :'inbox_id' => :'String',
56
+ :'user_id' => :'String',
57
+ :'sent_email_id' => :'String',
58
58
  :'recipient' => :'String',
59
59
  :'seen' => :'Boolean',
60
60
  :'seen_at' => :'DateTime',
@@ -88,16 +88,16 @@ module MailSlurpClient
88
88
  self.created_at = attributes[:'created_at']
89
89
  end
90
90
 
91
- if attributes.key?(:'sent_email_id')
92
- self.sent_email_id = attributes[:'sent_email_id']
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
93
  end
94
94
 
95
95
  if attributes.key?(:'user_id')
96
96
  self.user_id = attributes[:'user_id']
97
97
  end
98
98
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
99
+ if attributes.key?(:'sent_email_id')
100
+ self.sent_email_id = attributes[:'sent_email_id']
101
101
  end
102
102
 
103
103
  if attributes.key?(:'recipient')
@@ -160,9 +160,9 @@ module MailSlurpClient
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
162
  created_at == o.created_at &&
163
- sent_email_id == o.sent_email_id &&
164
- user_id == o.user_id &&
165
163
  inbox_id == o.inbox_id &&
164
+ user_id == o.user_id &&
165
+ sent_email_id == o.sent_email_id &&
166
166
  recipient == o.recipient &&
167
167
  seen == o.seen &&
168
168
  seen_at == o.seen_at &&
@@ -179,7 +179,7 @@ module MailSlurpClient
179
179
  # Calculates hash code according to all attributes.
180
180
  # @return [Integer] Hash code
181
181
  def hash
182
- [created_at, sent_email_id, user_id, inbox_id, recipient, seen, seen_at, name, id].hash
182
+ [created_at, inbox_id, user_id, sent_email_id, recipient, seen, seen_at, name, id].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.17.41'
14
+ VERSION = '15.18.1'
15
15
  end