mailslurp_client 15.7.5 → 15.7.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +60 -0
  3. data/lib/mailslurp_client/api/webhook_controller_api.rb +233 -3
  4. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  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_recipient.rb +5 -0
  8. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  9. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/inbox_dto.rb +1 -1
  11. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  12. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  14. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  15. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  17. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  19. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  22. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  32. data/lib/mailslurp_client/models/sent_email_projection.rb +45 -45
  33. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  34. data/lib/mailslurp_client/models/thread_projection.rb +15 -15
  35. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +339 -0
  37. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +302 -0
  38. data/lib/mailslurp_client/models/webhook_dto.rb +3 -8
  39. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
  40. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
  41. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  42. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
  43. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
  44. data/lib/mailslurp_client/models/webhook_projection.rb +2 -7
  45. data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -7
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +2 -0
  48. metadata +4 -2
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
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
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookResultDto>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
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
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
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, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -23,20 +23,20 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
+ attr_accessor :body_md5_hash
27
+
28
+ attr_accessor :bcc
29
+
30
+ attr_accessor :cc
31
+
26
32
  attr_accessor :inbox_id
27
33
 
28
34
  attr_accessor :attachments
29
35
 
30
36
  attr_accessor :to
31
37
 
32
- attr_accessor :bcc
33
-
34
- attr_accessor :cc
35
-
36
38
  attr_accessor :created_at
37
39
 
38
- attr_accessor :body_md5_hash
39
-
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
@@ -44,13 +44,13 @@ module MailSlurpClient
44
44
  :'from' => :'from',
45
45
  :'user_id' => :'userId',
46
46
  :'subject' => :'subject',
47
+ :'body_md5_hash' => :'bodyMD5Hash',
48
+ :'bcc' => :'bcc',
49
+ :'cc' => :'cc',
47
50
  :'inbox_id' => :'inboxId',
48
51
  :'attachments' => :'attachments',
49
52
  :'to' => :'to',
50
- :'bcc' => :'bcc',
51
- :'cc' => :'cc',
52
- :'created_at' => :'createdAt',
53
- :'body_md5_hash' => :'bodyMD5Hash'
53
+ :'created_at' => :'createdAt'
54
54
  }
55
55
  end
56
56
 
@@ -61,13 +61,13 @@ module MailSlurpClient
61
61
  :'from' => :'String',
62
62
  :'user_id' => :'String',
63
63
  :'subject' => :'String',
64
+ :'body_md5_hash' => :'String',
65
+ :'bcc' => :'Array<String>',
66
+ :'cc' => :'Array<String>',
64
67
  :'inbox_id' => :'String',
65
68
  :'attachments' => :'Array<String>',
66
69
  :'to' => :'Array<String>',
67
- :'bcc' => :'Array<String>',
68
- :'cc' => :'Array<String>',
69
- :'created_at' => :'DateTime',
70
- :'body_md5_hash' => :'String'
70
+ :'created_at' => :'DateTime'
71
71
  }
72
72
  end
73
73
 
@@ -108,6 +108,22 @@ module MailSlurpClient
108
108
  self.subject = attributes[:'subject']
109
109
  end
110
110
 
111
+ if attributes.key?(:'body_md5_hash')
112
+ self.body_md5_hash = attributes[:'body_md5_hash']
113
+ end
114
+
115
+ if attributes.key?(:'bcc')
116
+ if (value = attributes[:'bcc']).is_a?(Array)
117
+ self.bcc = value
118
+ end
119
+ end
120
+
121
+ if attributes.key?(:'cc')
122
+ if (value = attributes[:'cc']).is_a?(Array)
123
+ self.cc = value
124
+ end
125
+ end
126
+
111
127
  if attributes.key?(:'inbox_id')
112
128
  self.inbox_id = attributes[:'inbox_id']
113
129
  end
@@ -124,25 +140,9 @@ module MailSlurpClient
124
140
  end
125
141
  end
126
142
 
127
- if attributes.key?(:'bcc')
128
- if (value = attributes[:'bcc']).is_a?(Array)
129
- self.bcc = value
130
- end
131
- end
132
-
133
- if attributes.key?(:'cc')
134
- if (value = attributes[:'cc']).is_a?(Array)
135
- self.cc = value
136
- end
137
- end
138
-
139
143
  if attributes.key?(:'created_at')
140
144
  self.created_at = attributes[:'created_at']
141
145
  end
142
-
143
- if attributes.key?(:'body_md5_hash')
144
- self.body_md5_hash = attributes[:'body_md5_hash']
145
- end
146
146
  end
147
147
 
148
148
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,6 +157,14 @@ module MailSlurpClient
157
157
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
158
158
  end
159
159
 
160
+ if @bcc.nil?
161
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
162
+ end
163
+
164
+ if @cc.nil?
165
+ invalid_properties.push('invalid value for "cc", cc cannot be nil.')
166
+ end
167
+
160
168
  if @inbox_id.nil?
161
169
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
162
170
  end
@@ -169,14 +177,6 @@ module MailSlurpClient
169
177
  invalid_properties.push('invalid value for "to", to cannot be nil.')
170
178
  end
171
179
 
172
- if @bcc.nil?
173
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
174
- end
175
-
176
- if @cc.nil?
177
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
178
- end
179
-
180
180
  if @created_at.nil?
181
181
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
182
  end
@@ -189,11 +189,11 @@ module MailSlurpClient
189
189
  def valid?
190
190
  return false if @id.nil?
191
191
  return false if @user_id.nil?
192
+ return false if @bcc.nil?
193
+ return false if @cc.nil?
192
194
  return false if @inbox_id.nil?
193
195
  return false if @attachments.nil?
194
196
  return false if @to.nil?
195
- return false if @bcc.nil?
196
- return false if @cc.nil?
197
197
  return false if @created_at.nil?
198
198
  true
199
199
  end
@@ -207,13 +207,13 @@ module MailSlurpClient
207
207
  from == o.from &&
208
208
  user_id == o.user_id &&
209
209
  subject == o.subject &&
210
+ body_md5_hash == o.body_md5_hash &&
211
+ bcc == o.bcc &&
212
+ cc == o.cc &&
210
213
  inbox_id == o.inbox_id &&
211
214
  attachments == o.attachments &&
212
215
  to == o.to &&
213
- bcc == o.bcc &&
214
- cc == o.cc &&
215
- created_at == o.created_at &&
216
- body_md5_hash == o.body_md5_hash
216
+ created_at == o.created_at
217
217
  end
218
218
 
219
219
  # @see the `==` method
@@ -225,7 +225,7 @@ module MailSlurpClient
225
225
  # Calculates hash code according to all attributes.
226
226
  # @return [Integer] Hash code
227
227
  def hash
228
- [id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash].hash
228
+ [id, from, user_id, subject, body_md5_hash, bcc, cc, inbox_id, attachments, to, created_at].hash
229
229
  end
230
230
 
231
231
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :created_at
22
-
23
21
  attr_accessor :variables
24
22
 
23
+ attr_accessor :created_at
24
+
25
25
  attr_accessor :updated_at
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,8 +29,8 @@ module MailSlurpClient
29
29
  {
30
30
  :'name' => :'name',
31
31
  :'id' => :'id',
32
- :'created_at' => :'createdAt',
33
32
  :'variables' => :'variables',
33
+ :'created_at' => :'createdAt',
34
34
  :'updated_at' => :'updatedAt'
35
35
  }
36
36
  end
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  {
41
41
  :'name' => :'String',
42
42
  :'id' => :'String',
43
- :'created_at' => :'DateTime',
44
43
  :'variables' => :'Array<String>',
44
+ :'created_at' => :'DateTime',
45
45
  :'updated_at' => :'DateTime'
46
46
  }
47
47
  end
@@ -75,16 +75,16 @@ module MailSlurpClient
75
75
  self.id = attributes[:'id']
76
76
  end
77
77
 
78
- if attributes.key?(:'created_at')
79
- self.created_at = attributes[:'created_at']
80
- end
81
-
82
78
  if attributes.key?(:'variables')
83
79
  if (value = attributes[:'variables']).is_a?(Array)
84
80
  self.variables = value
85
81
  end
86
82
  end
87
83
 
84
+ if attributes.key?(:'created_at')
85
+ self.created_at = attributes[:'created_at']
86
+ end
87
+
88
88
  if attributes.key?(:'updated_at')
89
89
  self.updated_at = attributes[:'updated_at']
90
90
  end
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  invalid_properties.push('invalid value for "id", id cannot be nil.')
103
103
  end
104
104
 
105
- if @created_at.nil?
106
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
107
- end
108
-
109
105
  if @variables.nil?
110
106
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
111
107
  end
112
108
 
109
+ if @created_at.nil?
110
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
+ end
112
+
113
113
  if @updated_at.nil?
114
114
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
115
115
  end
@@ -122,8 +122,8 @@ module MailSlurpClient
122
122
  def valid?
123
123
  return false if @name.nil?
124
124
  return false if @id.nil?
125
- return false if @created_at.nil?
126
125
  return false if @variables.nil?
126
+ return false if @created_at.nil?
127
127
  return false if @updated_at.nil?
128
128
  true
129
129
  end
@@ -135,8 +135,8 @@ module MailSlurpClient
135
135
  self.class == o.class &&
136
136
  name == o.name &&
137
137
  id == o.id &&
138
- created_at == o.created_at &&
139
138
  variables == o.variables &&
139
+ created_at == o.created_at &&
140
140
  updated_at == o.updated_at
141
141
  end
142
142
 
@@ -149,7 +149,7 @@ module MailSlurpClient
149
149
  # Calculates hash code according to all attributes.
150
150
  # @return [Integer] Hash code
151
151
  def hash
152
- [name, id, created_at, variables, updated_at].hash
152
+ [name, id, variables, created_at, updated_at].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :user_id
25
-
26
24
  attr_accessor :inbox_id
27
25
 
26
+ attr_accessor :user_id
27
+
28
28
  attr_accessor :to
29
29
 
30
30
  attr_accessor :bcc
@@ -43,8 +43,8 @@ module MailSlurpClient
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
45
  :'subject' => :'subject',
46
- :'user_id' => :'userId',
47
46
  :'inbox_id' => :'inboxId',
47
+ :'user_id' => :'userId',
48
48
  :'to' => :'to',
49
49
  :'bcc' => :'bcc',
50
50
  :'cc' => :'cc',
@@ -60,8 +60,8 @@ module MailSlurpClient
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
62
  :'subject' => :'String',
63
- :'user_id' => :'String',
64
63
  :'inbox_id' => :'String',
64
+ :'user_id' => :'String',
65
65
  :'to' => :'Array<String>',
66
66
  :'bcc' => :'Array<String>',
67
67
  :'cc' => :'Array<String>',
@@ -104,14 +104,14 @@ module MailSlurpClient
104
104
  self.subject = attributes[:'subject']
105
105
  end
106
106
 
107
- if attributes.key?(:'user_id')
108
- self.user_id = attributes[:'user_id']
109
- end
110
-
111
107
  if attributes.key?(:'inbox_id')
112
108
  self.inbox_id = attributes[:'inbox_id']
113
109
  end
114
110
 
111
+ if attributes.key?(:'user_id')
112
+ self.user_id = attributes[:'user_id']
113
+ end
114
+
115
115
  if attributes.key?(:'to')
116
116
  if (value = attributes[:'to']).is_a?(Array)
117
117
  self.to = value
@@ -151,14 +151,14 @@ module MailSlurpClient
151
151
  invalid_properties.push('invalid value for "id", id cannot be nil.')
152
152
  end
153
153
 
154
- if @user_id.nil?
155
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
156
- end
157
-
158
154
  if @inbox_id.nil?
159
155
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
160
156
  end
161
157
 
158
+ if @user_id.nil?
159
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
160
+ end
161
+
162
162
  if @to.nil?
163
163
  invalid_properties.push('invalid value for "to", to cannot be nil.')
164
164
  end
@@ -182,8 +182,8 @@ module MailSlurpClient
182
182
  # @return true if the model is valid
183
183
  def valid?
184
184
  return false if @id.nil?
185
- return false if @user_id.nil?
186
185
  return false if @inbox_id.nil?
186
+ return false if @user_id.nil?
187
187
  return false if @to.nil?
188
188
  return false if @created_at.nil?
189
189
  return false if @updated_at.nil?
@@ -199,8 +199,8 @@ module MailSlurpClient
199
199
  name == o.name &&
200
200
  id == o.id &&
201
201
  subject == o.subject &&
202
- user_id == o.user_id &&
203
202
  inbox_id == o.inbox_id &&
203
+ user_id == o.user_id &&
204
204
  to == o.to &&
205
205
  bcc == o.bcc &&
206
206
  cc == o.cc &&
@@ -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
- [name, id, subject, user_id, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
221
+ [name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :user_id
22
-
23
21
  attr_accessor :inbox_id
24
22
 
23
+ attr_accessor :user_id
24
+
25
25
  attr_accessor :created_at
26
26
 
27
27
  attr_accessor :recipient
@@ -37,8 +37,8 @@ module MailSlurpClient
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'id' => :'id',
40
- :'user_id' => :'userId',
41
40
  :'inbox_id' => :'inboxId',
41
+ :'user_id' => :'userId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'recipient' => :'recipient',
44
44
  :'seen' => :'seen',
@@ -52,8 +52,8 @@ module MailSlurpClient
52
52
  {
53
53
  :'name' => :'String',
54
54
  :'id' => :'String',
55
- :'user_id' => :'String',
56
55
  :'inbox_id' => :'String',
56
+ :'user_id' => :'String',
57
57
  :'created_at' => :'DateTime',
58
58
  :'recipient' => :'String',
59
59
  :'seen' => :'Boolean',
@@ -91,14 +91,14 @@ module MailSlurpClient
91
91
  self.id = attributes[:'id']
92
92
  end
93
93
 
94
- if attributes.key?(:'user_id')
95
- self.user_id = attributes[:'user_id']
96
- end
97
-
98
94
  if attributes.key?(:'inbox_id')
99
95
  self.inbox_id = attributes[:'inbox_id']
100
96
  end
101
97
 
98
+ if attributes.key?(:'user_id')
99
+ self.user_id = attributes[:'user_id']
100
+ end
101
+
102
102
  if attributes.key?(:'created_at')
103
103
  self.created_at = attributes[:'created_at']
104
104
  end
@@ -160,8 +160,8 @@ module MailSlurpClient
160
160
  self.class == o.class &&
161
161
  name == o.name &&
162
162
  id == o.id &&
163
- user_id == o.user_id &&
164
163
  inbox_id == o.inbox_id &&
164
+ user_id == o.user_id &&
165
165
  created_at == o.created_at &&
166
166
  recipient == o.recipient &&
167
167
  seen == o.seen &&
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [name, id, user_id, inbox_id, created_at, recipient, seen, seen_at, sent_email_id].hash
181
+ [name, id, inbox_id, user_id, created_at, recipient, seen, seen_at, sent_email_id].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash