mailslurp_client 15.12.14 → 15.12.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +104 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  4. data/lib/mailslurp_client/api/inbox_controller_api.rb +89 -0
  5. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +292 -0
  6. data/lib/mailslurp_client/api/webhook_controller_api.rb +3 -0
  7. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  8. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  9. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  10. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  11. data/lib/mailslurp_client/models/complaint.rb +289 -0
  12. data/lib/mailslurp_client/models/create_webhook_options.rb +3 -4
  13. data/lib/mailslurp_client/models/delivery_status_dto.rb +345 -0
  14. data/lib/mailslurp_client/models/email.rb +11 -1
  15. data/lib/mailslurp_client/models/email_preview.rb +11 -1
  16. data/lib/mailslurp_client/models/email_projection.rb +31 -22
  17. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  18. data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
  19. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  20. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  21. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  22. data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
  23. data/lib/mailslurp_client/models/page_complaint.rb +308 -0
  24. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  25. data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
  26. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  27. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  28. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  29. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  30. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  31. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  32. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  33. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  34. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  35. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  36. data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  38. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
  40. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  41. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  42. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  43. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  44. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  45. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  46. data/lib/mailslurp_client/models/sent_email_dto.rb +62 -1
  47. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/sort.rb +13 -13
  49. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  50. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
  51. data/lib/mailslurp_client/version.rb +1 -1
  52. data/lib/mailslurp_client.rb +4 -0
  53. metadata +9 -5
@@ -21,11 +21,11 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
24
+ attr_accessor :total_pages
25
25
 
26
26
  attr_accessor :total_elements
27
27
 
28
- attr_accessor :total_pages
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_elements' => :'totalElements',
50
48
  :'total_pages' => :'totalPages',
49
+ :'total_elements' => :'totalElements',
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<WebhookProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
- :'total_elements' => :'Integer',
68
66
  :'total_pages' => :'Integer',
67
+ :'total_elements' => :'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_pages')
114
+ self.total_pages = attributes[:'total_pages']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'total_elements')
118
118
  self.total_elements = attributes[:'total_elements']
119
119
  end
120
120
 
121
- if attributes.key?(:'total_pages')
122
- self.total_pages = attributes[:'total_pages']
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_elements == o.total_elements &&
173
171
  total_pages == o.total_pages &&
172
+ total_elements == o.total_elements &&
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_pages, total_elements, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,11 +21,11 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
24
+ attr_accessor :total_pages
25
25
 
26
26
  attr_accessor :total_elements
27
27
 
28
- attr_accessor :total_pages
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_elements' => :'totalElements',
50
48
  :'total_pages' => :'totalPages',
49
+ :'total_elements' => :'totalElements',
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_elements' => :'Integer',
68
66
  :'total_pages' => :'Integer',
67
+ :'total_elements' => :'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_pages')
114
+ self.total_pages = attributes[:'total_pages']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'total_elements')
118
118
  self.total_elements = attributes[:'total_elements']
119
119
  end
120
120
 
121
- if attributes.key?(:'total_pages')
122
- self.total_pages = attributes[:'total_pages']
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_elements == o.total_elements &&
173
171
  total_pages == o.total_pages &&
172
+ total_elements == o.total_elements &&
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_pages, total_elements, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -24,6 +24,9 @@ module MailSlurpClient
24
24
  # Inbox ID email was sent from
25
25
  attr_accessor :inbox_id
26
26
 
27
+ # Domain ID
28
+ attr_accessor :domain_id
29
+
27
30
  # Recipients email was sent to
28
31
  attr_accessor :to
29
32
 
@@ -45,6 +48,10 @@ module MailSlurpClient
45
48
 
46
49
  attr_accessor :body
47
50
 
51
+ attr_accessor :to_contacts
52
+
53
+ attr_accessor :to_group
54
+
48
55
  attr_accessor :charset
49
56
 
50
57
  attr_accessor :is_html
@@ -55,8 +62,14 @@ module MailSlurpClient
55
62
 
56
63
  attr_accessor :message_id
57
64
 
65
+ attr_accessor :message_ids
66
+
58
67
  attr_accessor :virtual_send
59
68
 
69
+ attr_accessor :template_id
70
+
71
+ attr_accessor :template_variables
72
+
60
73
  attr_accessor :html
61
74
 
62
75
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -65,6 +78,7 @@ module MailSlurpClient
65
78
  :'id' => :'id',
66
79
  :'user_id' => :'userId',
67
80
  :'inbox_id' => :'inboxId',
81
+ :'domain_id' => :'domainId',
68
82
  :'to' => :'to',
69
83
  :'from' => :'from',
70
84
  :'reply_to' => :'replyTo',
@@ -74,12 +88,17 @@ module MailSlurpClient
74
88
  :'subject' => :'subject',
75
89
  :'body_md5_hash' => :'bodyMD5Hash',
76
90
  :'body' => :'body',
91
+ :'to_contacts' => :'toContacts',
92
+ :'to_group' => :'toGroup',
77
93
  :'charset' => :'charset',
78
94
  :'is_html' => :'isHTML',
79
95
  :'sent_at' => :'sentAt',
80
96
  :'pixel_ids' => :'pixelIds',
81
97
  :'message_id' => :'messageId',
98
+ :'message_ids' => :'messageIds',
82
99
  :'virtual_send' => :'virtualSend',
100
+ :'template_id' => :'templateId',
101
+ :'template_variables' => :'templateVariables',
83
102
  :'html' => :'html'
84
103
  }
85
104
  end
@@ -90,6 +109,7 @@ module MailSlurpClient
90
109
  :'id' => :'String',
91
110
  :'user_id' => :'String',
92
111
  :'inbox_id' => :'String',
112
+ :'domain_id' => :'String',
93
113
  :'to' => :'Array<String>',
94
114
  :'from' => :'String',
95
115
  :'reply_to' => :'String',
@@ -99,12 +119,17 @@ module MailSlurpClient
99
119
  :'subject' => :'String',
100
120
  :'body_md5_hash' => :'String',
101
121
  :'body' => :'String',
122
+ :'to_contacts' => :'Array<String>',
123
+ :'to_group' => :'String',
102
124
  :'charset' => :'String',
103
125
  :'is_html' => :'Boolean',
104
126
  :'sent_at' => :'DateTime',
105
127
  :'pixel_ids' => :'Array<String>',
106
128
  :'message_id' => :'String',
129
+ :'message_ids' => :'Array<String>',
107
130
  :'virtual_send' => :'Boolean',
131
+ :'template_id' => :'String',
132
+ :'template_variables' => :'Hash<String, Object>',
108
133
  :'html' => :'Boolean'
109
134
  }
110
135
  end
@@ -142,6 +167,10 @@ module MailSlurpClient
142
167
  self.inbox_id = attributes[:'inbox_id']
143
168
  end
144
169
 
170
+ if attributes.key?(:'domain_id')
171
+ self.domain_id = attributes[:'domain_id']
172
+ end
173
+
145
174
  if attributes.key?(:'to')
146
175
  if (value = attributes[:'to']).is_a?(Array)
147
176
  self.to = value
@@ -186,6 +215,16 @@ module MailSlurpClient
186
215
  self.body = attributes[:'body']
187
216
  end
188
217
 
218
+ if attributes.key?(:'to_contacts')
219
+ if (value = attributes[:'to_contacts']).is_a?(Array)
220
+ self.to_contacts = value
221
+ end
222
+ end
223
+
224
+ if attributes.key?(:'to_group')
225
+ self.to_group = attributes[:'to_group']
226
+ end
227
+
189
228
  if attributes.key?(:'charset')
190
229
  self.charset = attributes[:'charset']
191
230
  end
@@ -208,10 +247,26 @@ module MailSlurpClient
208
247
  self.message_id = attributes[:'message_id']
209
248
  end
210
249
 
250
+ if attributes.key?(:'message_ids')
251
+ if (value = attributes[:'message_ids']).is_a?(Array)
252
+ self.message_ids = value
253
+ end
254
+ end
255
+
211
256
  if attributes.key?(:'virtual_send')
212
257
  self.virtual_send = attributes[:'virtual_send']
213
258
  end
214
259
 
260
+ if attributes.key?(:'template_id')
261
+ self.template_id = attributes[:'template_id']
262
+ end
263
+
264
+ if attributes.key?(:'template_variables')
265
+ if (value = attributes[:'template_variables']).is_a?(Hash)
266
+ self.template_variables = value
267
+ end
268
+ end
269
+
215
270
  if attributes.key?(:'html')
216
271
  self.html = attributes[:'html']
217
272
  end
@@ -258,6 +313,7 @@ module MailSlurpClient
258
313
  id == o.id &&
259
314
  user_id == o.user_id &&
260
315
  inbox_id == o.inbox_id &&
316
+ domain_id == o.domain_id &&
261
317
  to == o.to &&
262
318
  from == o.from &&
263
319
  reply_to == o.reply_to &&
@@ -267,12 +323,17 @@ module MailSlurpClient
267
323
  subject == o.subject &&
268
324
  body_md5_hash == o.body_md5_hash &&
269
325
  body == o.body &&
326
+ to_contacts == o.to_contacts &&
327
+ to_group == o.to_group &&
270
328
  charset == o.charset &&
271
329
  is_html == o.is_html &&
272
330
  sent_at == o.sent_at &&
273
331
  pixel_ids == o.pixel_ids &&
274
332
  message_id == o.message_id &&
333
+ message_ids == o.message_ids &&
275
334
  virtual_send == o.virtual_send &&
335
+ template_id == o.template_id &&
336
+ template_variables == o.template_variables &&
276
337
  html == o.html
277
338
  end
278
339
 
@@ -285,7 +346,7 @@ module MailSlurpClient
285
346
  # Calculates hash code according to all attributes.
286
347
  # @return [Integer] Hash code
287
348
  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
349
+ [id, user_id, inbox_id, domain_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
350
  end
290
351
 
291
352
  # Builds the object from hash
@@ -23,6 +23,8 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
+ attr_accessor :inbox_id
27
+
26
28
  attr_accessor :body_md5_hash
27
29
 
28
30
  attr_accessor :bcc
@@ -31,8 +33,6 @@ module MailSlurpClient
31
33
 
32
34
  attr_accessor :virtual_send
33
35
 
34
- attr_accessor :inbox_id
35
-
36
36
  attr_accessor :attachments
37
37
 
38
38
  attr_accessor :to
@@ -46,11 +46,11 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
+ :'inbox_id' => :'inboxId',
49
50
  :'body_md5_hash' => :'bodyMD5Hash',
50
51
  :'bcc' => :'bcc',
51
52
  :'cc' => :'cc',
52
53
  :'virtual_send' => :'virtualSend',
53
- :'inbox_id' => :'inboxId',
54
54
  :'attachments' => :'attachments',
55
55
  :'to' => :'to',
56
56
  :'created_at' => :'createdAt'
@@ -64,11 +64,11 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
+ :'inbox_id' => :'String',
67
68
  :'body_md5_hash' => :'String',
68
69
  :'bcc' => :'Array<String>',
69
70
  :'cc' => :'Array<String>',
70
71
  :'virtual_send' => :'Boolean',
71
- :'inbox_id' => :'String',
72
72
  :'attachments' => :'Array<String>',
73
73
  :'to' => :'Array<String>',
74
74
  :'created_at' => :'DateTime'
@@ -112,6 +112,10 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
+ if attributes.key?(:'inbox_id')
116
+ self.inbox_id = attributes[:'inbox_id']
117
+ end
118
+
115
119
  if attributes.key?(:'body_md5_hash')
116
120
  self.body_md5_hash = attributes[:'body_md5_hash']
117
121
  end
@@ -132,10 +136,6 @@ module MailSlurpClient
132
136
  self.virtual_send = attributes[:'virtual_send']
133
137
  end
134
138
 
135
- if attributes.key?(:'inbox_id')
136
- self.inbox_id = attributes[:'inbox_id']
137
- end
138
-
139
139
  if attributes.key?(:'attachments')
140
140
  if (value = attributes[:'attachments']).is_a?(Array)
141
141
  self.attachments = value
@@ -165,6 +165,10 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
+ if @inbox_id.nil?
169
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
170
+ end
171
+
168
172
  if @bcc.nil?
169
173
  invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
170
174
  end
@@ -177,10 +181,6 @@ module MailSlurpClient
177
181
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
178
182
  end
179
183
 
180
- if @inbox_id.nil?
181
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
182
- end
183
-
184
184
  if @attachments.nil?
185
185
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
186
186
  end
@@ -201,10 +201,10 @@ 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 @inbox_id.nil?
204
205
  return false if @bcc.nil?
205
206
  return false if @cc.nil?
206
207
  return false if @virtual_send.nil?
207
- return false if @inbox_id.nil?
208
208
  return false if @attachments.nil?
209
209
  return false if @to.nil?
210
210
  return false if @created_at.nil?
@@ -220,11 +220,11 @@ module MailSlurpClient
220
220
  from == o.from &&
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
+ inbox_id == o.inbox_id &&
223
224
  body_md5_hash == o.body_md5_hash &&
224
225
  bcc == o.bcc &&
225
226
  cc == o.cc &&
226
227
  virtual_send == o.virtual_send &&
227
- inbox_id == o.inbox_id &&
228
228
  attachments == o.attachments &&
229
229
  to == o.to &&
230
230
  created_at == o.created_at
@@ -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, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to, created_at].hash
242
+ [id, from, user_id, subject, inbox_id, body_md5_hash, bcc, cc, virtual_send, attachments, to, created_at].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -16,16 +16,16 @@ module MailSlurpClient
16
16
  class Sort
17
17
  attr_accessor :empty
18
18
 
19
- attr_accessor :sorted
20
-
21
19
  attr_accessor :unsorted
22
20
 
21
+ attr_accessor :sorted
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'empty' => :'empty',
27
- :'sorted' => :'sorted',
28
- :'unsorted' => :'unsorted'
27
+ :'unsorted' => :'unsorted',
28
+ :'sorted' => :'sorted'
29
29
  }
30
30
  end
31
31
 
@@ -33,8 +33,8 @@ module MailSlurpClient
33
33
  def self.openapi_types
34
34
  {
35
35
  :'empty' => :'Boolean',
36
- :'sorted' => :'Boolean',
37
- :'unsorted' => :'Boolean'
36
+ :'unsorted' => :'Boolean',
37
+ :'sorted' => :'Boolean'
38
38
  }
39
39
  end
40
40
 
@@ -63,13 +63,13 @@ module MailSlurpClient
63
63
  self.empty = attributes[:'empty']
64
64
  end
65
65
 
66
- if attributes.key?(:'sorted')
67
- self.sorted = attributes[:'sorted']
68
- end
69
-
70
66
  if attributes.key?(:'unsorted')
71
67
  self.unsorted = attributes[:'unsorted']
72
68
  end
69
+
70
+ if attributes.key?(:'sorted')
71
+ self.sorted = attributes[:'sorted']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,8 +91,8 @@ module MailSlurpClient
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
93
  empty == o.empty &&
94
- sorted == o.sorted &&
95
- unsorted == o.unsorted
94
+ unsorted == o.unsorted &&
95
+ sorted == o.sorted
96
96
  end
97
97
 
98
98
  # @see the `==` method
@@ -104,7 +104,7 @@ module MailSlurpClient
104
104
  # Calculates hash code according to all attributes.
105
105
  # @return [Integer] Hash code
106
106
  def hash
107
- [empty, sorted, unsorted].hash
107
+ [empty, unsorted, sorted].hash
108
108
  end
109
109
 
110
110
  # Builds the object from hash
@@ -27,10 +27,10 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :created_at
29
29
 
30
- attr_accessor :recipient
31
-
32
30
  attr_accessor :seen
33
31
 
32
+ attr_accessor :recipient
33
+
34
34
  attr_accessor :seen_at
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  :'inbox_id' => :'inboxId',
43
43
  :'sent_email_id' => :'sentEmailId',
44
44
  :'created_at' => :'createdAt',
45
- :'recipient' => :'recipient',
46
45
  :'seen' => :'seen',
46
+ :'recipient' => :'recipient',
47
47
  :'seen_at' => :'seenAt'
48
48
  }
49
49
  end
@@ -57,8 +57,8 @@ module MailSlurpClient
57
57
  :'inbox_id' => :'String',
58
58
  :'sent_email_id' => :'String',
59
59
  :'created_at' => :'DateTime',
60
- :'recipient' => :'String',
61
60
  :'seen' => :'Boolean',
61
+ :'recipient' => :'String',
62
62
  :'seen_at' => :'DateTime'
63
63
  }
64
64
  end
@@ -108,14 +108,14 @@ module MailSlurpClient
108
108
  self.created_at = attributes[:'created_at']
109
109
  end
110
110
 
111
- if attributes.key?(:'recipient')
112
- self.recipient = attributes[:'recipient']
113
- end
114
-
115
111
  if attributes.key?(:'seen')
116
112
  self.seen = attributes[:'seen']
117
113
  end
118
114
 
115
+ if attributes.key?(:'recipient')
116
+ self.recipient = attributes[:'recipient']
117
+ end
118
+
119
119
  if attributes.key?(:'seen_at')
120
120
  self.seen_at = attributes[:'seen_at']
121
121
  end
@@ -165,8 +165,8 @@ module MailSlurpClient
165
165
  inbox_id == o.inbox_id &&
166
166
  sent_email_id == o.sent_email_id &&
167
167
  created_at == o.created_at &&
168
- recipient == o.recipient &&
169
168
  seen == o.seen &&
169
+ recipient == o.recipient &&
170
170
  seen_at == o.seen_at
171
171
  end
172
172
 
@@ -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
- [name, id, user_id, inbox_id, sent_email_id, created_at, recipient, seen, seen_at].hash
182
+ [name, id, user_id, inbox_id, sent_email_id, created_at, seen, recipient, seen_at].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash