mailslurp_client 15.12.12 → 15.12.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) 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/webhook_controller_api.rb +68 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/create_contact_options.rb +7 -0
  8. data/lib/mailslurp_client/models/create_domain_options.rb +3 -0
  9. data/lib/mailslurp_client/models/create_inbox_dto.rb +10 -0
  10. data/lib/mailslurp_client/models/create_webhook_options.rb +22 -7
  11. data/lib/mailslurp_client/models/email.rb +15 -0
  12. data/lib/mailslurp_client/models/email_analysis.rb +5 -0
  13. data/lib/mailslurp_client/models/email_preview.rb +6 -5
  14. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  15. data/lib/mailslurp_client/models/inbox_dto.rb +7 -0
  16. data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
  17. data/lib/mailslurp_client/models/organization_inbox_projection.rb +4 -0
  18. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  19. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  20. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  21. data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
  22. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  23. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  24. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  25. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  26. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  27. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  28. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  29. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  30. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  31. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  32. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  33. data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
  34. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  35. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  36. data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  38. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  39. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  40. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  41. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  42. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  43. data/lib/mailslurp_client/models/sent_email_dto.rb +52 -1
  44. data/lib/mailslurp_client/models/sent_email_projection.rb +67 -67
  45. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  46. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  47. data/lib/mailslurp_client/models/update_inbox_options.rb +5 -0
  48. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -0
  49. data/lib/mailslurp_client/models/webhook_dto.rb +18 -9
  50. data/lib/mailslurp_client/models/webhook_header_name_value.rb +228 -0
  51. data/lib/mailslurp_client/models/webhook_headers.rb +215 -0
  52. data/lib/mailslurp_client/version.rb +1 -1
  53. data/lib/mailslurp_client.rb +2 -0
  54. metadata +4 -2
@@ -21,11 +21,11 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
24
+ attr_accessor :total_elements
25
25
 
26
26
  attr_accessor :total_pages
27
27
 
28
- attr_accessor :total_elements
28
+ attr_accessor :last
29
29
 
30
30
  attr_accessor :size
31
31
 
@@ -33,10 +33,10 @@ module MailSlurpClient
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :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
- :'total_pages' => :'totalPages',
50
48
  :'total_elements' => :'totalElements',
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
- :'total_pages' => :'Integer',
68
66
  :'total_elements' => :'Integer',
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,16 +110,16 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
113
+ if attributes.key?(:'total_elements')
114
+ self.total_elements = attributes[:'total_elements']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'total_pages')
118
118
  self.total_pages = attributes[:'total_pages']
119
119
  end
120
120
 
121
- if attributes.key?(:'total_elements')
122
- self.total_elements = attributes[:'total_elements']
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
123
  end
124
124
 
125
125
  if attributes.key?(:'size')
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'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
- total_pages == o.total_pages &&
173
171
  total_elements == o.total_elements &&
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_pages, total_elements, 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
@@ -45,6 +45,10 @@ module MailSlurpClient
45
45
 
46
46
  attr_accessor :body
47
47
 
48
+ attr_accessor :to_contacts
49
+
50
+ attr_accessor :to_group
51
+
48
52
  attr_accessor :charset
49
53
 
50
54
  attr_accessor :is_html
@@ -55,8 +59,14 @@ module MailSlurpClient
55
59
 
56
60
  attr_accessor :message_id
57
61
 
62
+ attr_accessor :message_ids
63
+
58
64
  attr_accessor :virtual_send
59
65
 
66
+ attr_accessor :template_id
67
+
68
+ attr_accessor :template_variables
69
+
60
70
  attr_accessor :html
61
71
 
62
72
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -74,12 +84,17 @@ module MailSlurpClient
74
84
  :'subject' => :'subject',
75
85
  :'body_md5_hash' => :'bodyMD5Hash',
76
86
  :'body' => :'body',
87
+ :'to_contacts' => :'toContacts',
88
+ :'to_group' => :'toGroup',
77
89
  :'charset' => :'charset',
78
90
  :'is_html' => :'isHTML',
79
91
  :'sent_at' => :'sentAt',
80
92
  :'pixel_ids' => :'pixelIds',
81
93
  :'message_id' => :'messageId',
94
+ :'message_ids' => :'messageIds',
82
95
  :'virtual_send' => :'virtualSend',
96
+ :'template_id' => :'templateId',
97
+ :'template_variables' => :'templateVariables',
83
98
  :'html' => :'html'
84
99
  }
85
100
  end
@@ -99,12 +114,17 @@ module MailSlurpClient
99
114
  :'subject' => :'String',
100
115
  :'body_md5_hash' => :'String',
101
116
  :'body' => :'String',
117
+ :'to_contacts' => :'Array<String>',
118
+ :'to_group' => :'String',
102
119
  :'charset' => :'String',
103
120
  :'is_html' => :'Boolean',
104
121
  :'sent_at' => :'DateTime',
105
122
  :'pixel_ids' => :'Array<String>',
106
123
  :'message_id' => :'String',
124
+ :'message_ids' => :'Array<String>',
107
125
  :'virtual_send' => :'Boolean',
126
+ :'template_id' => :'String',
127
+ :'template_variables' => :'Hash<String, Object>',
108
128
  :'html' => :'Boolean'
109
129
  }
110
130
  end
@@ -186,6 +206,16 @@ module MailSlurpClient
186
206
  self.body = attributes[:'body']
187
207
  end
188
208
 
209
+ if attributes.key?(:'to_contacts')
210
+ if (value = attributes[:'to_contacts']).is_a?(Array)
211
+ self.to_contacts = value
212
+ end
213
+ end
214
+
215
+ if attributes.key?(:'to_group')
216
+ self.to_group = attributes[:'to_group']
217
+ end
218
+
189
219
  if attributes.key?(:'charset')
190
220
  self.charset = attributes[:'charset']
191
221
  end
@@ -208,10 +238,26 @@ module MailSlurpClient
208
238
  self.message_id = attributes[:'message_id']
209
239
  end
210
240
 
241
+ if attributes.key?(:'message_ids')
242
+ if (value = attributes[:'message_ids']).is_a?(Array)
243
+ self.message_ids = value
244
+ end
245
+ end
246
+
211
247
  if attributes.key?(:'virtual_send')
212
248
  self.virtual_send = attributes[:'virtual_send']
213
249
  end
214
250
 
251
+ if attributes.key?(:'template_id')
252
+ self.template_id = attributes[:'template_id']
253
+ end
254
+
255
+ if attributes.key?(:'template_variables')
256
+ if (value = attributes[:'template_variables']).is_a?(Hash)
257
+ self.template_variables = value
258
+ end
259
+ end
260
+
215
261
  if attributes.key?(:'html')
216
262
  self.html = attributes[:'html']
217
263
  end
@@ -267,12 +313,17 @@ module MailSlurpClient
267
313
  subject == o.subject &&
268
314
  body_md5_hash == o.body_md5_hash &&
269
315
  body == o.body &&
316
+ to_contacts == o.to_contacts &&
317
+ to_group == o.to_group &&
270
318
  charset == o.charset &&
271
319
  is_html == o.is_html &&
272
320
  sent_at == o.sent_at &&
273
321
  pixel_ids == o.pixel_ids &&
274
322
  message_id == o.message_id &&
323
+ message_ids == o.message_ids &&
275
324
  virtual_send == o.virtual_send &&
325
+ template_id == o.template_id &&
326
+ template_variables == o.template_variables &&
276
327
  html == o.html
277
328
  end
278
329
 
@@ -285,7 +336,7 @@ module MailSlurpClient
285
336
  # Calculates hash code according to all attributes.
286
337
  # @return [Integer] Hash code
287
338
  def hash
288
- [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id, virtual_send, html].hash
339
+ [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, to_contacts, to_group, charset, is_html, sent_at, pixel_ids, message_id, message_ids, virtual_send, template_id, template_variables, html].hash
289
340
  end
290
341
 
291
342
  # Builds the object from hash
@@ -23,21 +23,21 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :created_at
26
+ attr_accessor :body_md5_hash
27
27
 
28
- attr_accessor :attachments
28
+ attr_accessor :bcc
29
29
 
30
- attr_accessor :inbox_id
30
+ attr_accessor :cc
31
31
 
32
- attr_accessor :to
32
+ attr_accessor :virtual_send
33
33
 
34
- attr_accessor :bcc
34
+ attr_accessor :inbox_id
35
35
 
36
- attr_accessor :cc
36
+ attr_accessor :attachments
37
37
 
38
- attr_accessor :body_md5_hash
38
+ attr_accessor :to
39
39
 
40
- attr_accessor :virtual_send
40
+ attr_accessor :created_at
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
@@ -46,14 +46,14 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
- :'created_at' => :'createdAt',
50
- :'attachments' => :'attachments',
51
- :'inbox_id' => :'inboxId',
52
- :'to' => :'to',
49
+ :'body_md5_hash' => :'bodyMD5Hash',
53
50
  :'bcc' => :'bcc',
54
51
  :'cc' => :'cc',
55
- :'body_md5_hash' => :'bodyMD5Hash',
56
- :'virtual_send' => :'virtualSend'
52
+ :'virtual_send' => :'virtualSend',
53
+ :'inbox_id' => :'inboxId',
54
+ :'attachments' => :'attachments',
55
+ :'to' => :'to',
56
+ :'created_at' => :'createdAt'
57
57
  }
58
58
  end
59
59
 
@@ -64,14 +64,14 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
- :'created_at' => :'DateTime',
68
- :'attachments' => :'Array<String>',
69
- :'inbox_id' => :'String',
70
- :'to' => :'Array<String>',
67
+ :'body_md5_hash' => :'String',
71
68
  :'bcc' => :'Array<String>',
72
69
  :'cc' => :'Array<String>',
73
- :'body_md5_hash' => :'String',
74
- :'virtual_send' => :'Boolean'
70
+ :'virtual_send' => :'Boolean',
71
+ :'inbox_id' => :'String',
72
+ :'attachments' => :'Array<String>',
73
+ :'to' => :'Array<String>',
74
+ :'created_at' => :'DateTime'
75
75
  }
76
76
  end
77
77
 
@@ -112,24 +112,8 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'created_at')
116
- self.created_at = attributes[:'created_at']
117
- end
118
-
119
- if attributes.key?(:'attachments')
120
- if (value = attributes[:'attachments']).is_a?(Array)
121
- self.attachments = value
122
- end
123
- end
124
-
125
- if attributes.key?(:'inbox_id')
126
- self.inbox_id = attributes[:'inbox_id']
127
- end
128
-
129
- if attributes.key?(:'to')
130
- if (value = attributes[:'to']).is_a?(Array)
131
- self.to = value
132
- end
115
+ if attributes.key?(:'body_md5_hash')
116
+ self.body_md5_hash = attributes[:'body_md5_hash']
133
117
  end
134
118
 
135
119
  if attributes.key?(:'bcc')
@@ -144,13 +128,29 @@ module MailSlurpClient
144
128
  end
145
129
  end
146
130
 
147
- if attributes.key?(:'body_md5_hash')
148
- self.body_md5_hash = attributes[:'body_md5_hash']
149
- end
150
-
151
131
  if attributes.key?(:'virtual_send')
152
132
  self.virtual_send = attributes[:'virtual_send']
153
133
  end
134
+
135
+ if attributes.key?(:'inbox_id')
136
+ self.inbox_id = attributes[:'inbox_id']
137
+ end
138
+
139
+ if attributes.key?(:'attachments')
140
+ if (value = attributes[:'attachments']).is_a?(Array)
141
+ self.attachments = value
142
+ end
143
+ end
144
+
145
+ if attributes.key?(:'to')
146
+ if (value = attributes[:'to']).is_a?(Array)
147
+ self.to = value
148
+ end
149
+ end
150
+
151
+ if attributes.key?(:'created_at')
152
+ self.created_at = attributes[:'created_at']
153
+ end
154
154
  end
155
155
 
156
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,32 +165,32 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
- if @created_at.nil?
169
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
168
+ if @bcc.nil?
169
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
170
170
  end
171
171
 
172
- if @attachments.nil?
173
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
172
+ if @cc.nil?
173
+ invalid_properties.push('invalid value for "cc", cc cannot be nil.')
174
174
  end
175
175
 
176
- if @inbox_id.nil?
177
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
176
+ if @virtual_send.nil?
177
+ invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
178
178
  end
179
179
 
180
- if @to.nil?
181
- invalid_properties.push('invalid value for "to", to cannot be nil.')
180
+ if @inbox_id.nil?
181
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
182
182
  end
183
183
 
184
- if @bcc.nil?
185
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
184
+ if @attachments.nil?
185
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
186
186
  end
187
187
 
188
- if @cc.nil?
189
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
188
+ if @to.nil?
189
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
190
190
  end
191
191
 
192
- if @virtual_send.nil?
193
- invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
192
+ if @created_at.nil?
193
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
194
194
  end
195
195
 
196
196
  invalid_properties
@@ -201,13 +201,13 @@ module MailSlurpClient
201
201
  def valid?
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
- return false if @created_at.nil?
205
- return false if @attachments.nil?
206
- return false if @inbox_id.nil?
207
- return false if @to.nil?
208
204
  return false if @bcc.nil?
209
205
  return false if @cc.nil?
210
206
  return false if @virtual_send.nil?
207
+ return false if @inbox_id.nil?
208
+ return false if @attachments.nil?
209
+ return false if @to.nil?
210
+ return false if @created_at.nil?
211
211
  true
212
212
  end
213
213
 
@@ -220,14 +220,14 @@ module MailSlurpClient
220
220
  from == o.from &&
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
- created_at == o.created_at &&
224
- attachments == o.attachments &&
225
- inbox_id == o.inbox_id &&
226
- to == o.to &&
223
+ body_md5_hash == o.body_md5_hash &&
227
224
  bcc == o.bcc &&
228
225
  cc == o.cc &&
229
- body_md5_hash == o.body_md5_hash &&
230
- virtual_send == o.virtual_send
226
+ virtual_send == o.virtual_send &&
227
+ inbox_id == o.inbox_id &&
228
+ attachments == o.attachments &&
229
+ to == o.to &&
230
+ created_at == o.created_at
231
231
  end
232
232
 
233
233
  # @see the `==` method
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, created_at, attachments, inbox_id, to, bcc, cc, body_md5_hash, virtual_send].hash
242
+ [id, from, user_id, subject, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to, created_at].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -24,12 +24,12 @@ module MailSlurpClient
24
24
  # Thread subject
25
25
  attr_accessor :subject
26
26
 
27
- # User ID
28
- attr_accessor :user_id
29
-
30
27
  # Inbox ID
31
28
  attr_accessor :inbox_id
32
29
 
30
+ # User ID
31
+ attr_accessor :user_id
32
+
33
33
  # To recipients
34
34
  attr_accessor :to
35
35
 
@@ -54,8 +54,8 @@ module MailSlurpClient
54
54
  :'name' => :'name',
55
55
  :'id' => :'id',
56
56
  :'subject' => :'subject',
57
- :'user_id' => :'userId',
58
57
  :'inbox_id' => :'inboxId',
58
+ :'user_id' => :'userId',
59
59
  :'to' => :'to',
60
60
  :'created_at' => :'createdAt',
61
61
  :'updated_at' => :'updatedAt',
@@ -71,8 +71,8 @@ module MailSlurpClient
71
71
  :'name' => :'String',
72
72
  :'id' => :'String',
73
73
  :'subject' => :'String',
74
- :'user_id' => :'String',
75
74
  :'inbox_id' => :'String',
75
+ :'user_id' => :'String',
76
76
  :'to' => :'Array<String>',
77
77
  :'created_at' => :'DateTime',
78
78
  :'updated_at' => :'DateTime',
@@ -115,14 +115,14 @@ module MailSlurpClient
115
115
  self.subject = attributes[:'subject']
116
116
  end
117
117
 
118
- if attributes.key?(:'user_id')
119
- self.user_id = attributes[:'user_id']
120
- end
121
-
122
118
  if attributes.key?(:'inbox_id')
123
119
  self.inbox_id = attributes[:'inbox_id']
124
120
  end
125
121
 
122
+ if attributes.key?(:'user_id')
123
+ self.user_id = attributes[:'user_id']
124
+ end
125
+
126
126
  if attributes.key?(:'to')
127
127
  if (value = attributes[:'to']).is_a?(Array)
128
128
  self.to = value
@@ -162,14 +162,14 @@ module MailSlurpClient
162
162
  invalid_properties.push('invalid value for "id", id cannot be nil.')
163
163
  end
164
164
 
165
- if @user_id.nil?
166
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
167
- end
168
-
169
165
  if @inbox_id.nil?
170
166
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
167
  end
172
168
 
169
+ if @user_id.nil?
170
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
+ end
172
+
173
173
  if @to.nil?
174
174
  invalid_properties.push('invalid value for "to", to cannot be nil.')
175
175
  end
@@ -193,8 +193,8 @@ module MailSlurpClient
193
193
  # @return true if the model is valid
194
194
  def valid?
195
195
  return false if @id.nil?
196
- return false if @user_id.nil?
197
196
  return false if @inbox_id.nil?
197
+ return false if @user_id.nil?
198
198
  return false if @to.nil?
199
199
  return false if @created_at.nil?
200
200
  return false if @updated_at.nil?
@@ -210,8 +210,8 @@ module MailSlurpClient
210
210
  name == o.name &&
211
211
  id == o.id &&
212
212
  subject == o.subject &&
213
- user_id == o.user_id &&
214
213
  inbox_id == o.inbox_id &&
214
+ user_id == o.user_id &&
215
215
  to == o.to &&
216
216
  created_at == o.created_at &&
217
217
  updated_at == o.updated_at &&
@@ -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
- [name, id, subject, user_id, inbox_id, to, created_at, updated_at, bcc, cc, alias_id].hash
232
+ [name, id, subject, inbox_id, user_id, to, created_at, updated_at, bcc, cc, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash