mailslurp_client 15.12.16 → 15.12.17

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 +89 -0
  3. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +83 -3
  4. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/{delivery_status.rb → delivery_status_dto.rb} +18 -4
  9. data/lib/mailslurp_client/models/email.rb +11 -1
  10. data/lib/mailslurp_client/models/email_preview.rb +11 -1
  11. data/lib/mailslurp_client/models/email_projection.rb +40 -31
  12. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  13. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
  15. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  16. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  17. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  18. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  19. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  20. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_delivery_status.rb +20 -20
  22. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  23. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  25. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  28. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  30. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  38. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  39. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  40. data/lib/mailslurp_client/models/sent_email_dto.rb +11 -1
  41. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
  42. data/lib/mailslurp_client/models/sort.rb +13 -13
  43. data/lib/mailslurp_client/models/thread_projection.rb +11 -11
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +1 -1
  48. metadata +3 -3
@@ -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_pages
27
25
 
28
26
  attr_accessor :total_elements
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_pages' => :'totalPages',
50
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<UnknownMissedEmailProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_pages' => :'Integer',
68
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,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_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
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_pages == o.total_pages &&
173
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_pages, total_elements, 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,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_pages
27
25
 
28
26
  attr_accessor :total_elements
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_pages' => :'totalPages',
50
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
66
  :'total_pages' => :'Integer',
68
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,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_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
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_pages == o.total_pages &&
173
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_pages, total_elements, 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,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_pages
27
25
 
28
26
  attr_accessor :total_elements
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_pages' => :'totalPages',
50
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
66
  :'total_pages' => :'Integer',
68
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,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_pages')
118
114
  self.total_pages = attributes[:'total_pages']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_elements = attributes[:'total_elements']
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_pages == o.total_pages &&
173
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_pages, total_elements, 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
 
@@ -75,6 +78,7 @@ module MailSlurpClient
75
78
  :'id' => :'id',
76
79
  :'user_id' => :'userId',
77
80
  :'inbox_id' => :'inboxId',
81
+ :'domain_id' => :'domainId',
78
82
  :'to' => :'to',
79
83
  :'from' => :'from',
80
84
  :'reply_to' => :'replyTo',
@@ -105,6 +109,7 @@ module MailSlurpClient
105
109
  :'id' => :'String',
106
110
  :'user_id' => :'String',
107
111
  :'inbox_id' => :'String',
112
+ :'domain_id' => :'String',
108
113
  :'to' => :'Array<String>',
109
114
  :'from' => :'String',
110
115
  :'reply_to' => :'String',
@@ -162,6 +167,10 @@ module MailSlurpClient
162
167
  self.inbox_id = attributes[:'inbox_id']
163
168
  end
164
169
 
170
+ if attributes.key?(:'domain_id')
171
+ self.domain_id = attributes[:'domain_id']
172
+ end
173
+
165
174
  if attributes.key?(:'to')
166
175
  if (value = attributes[:'to']).is_a?(Array)
167
176
  self.to = value
@@ -304,6 +313,7 @@ module MailSlurpClient
304
313
  id == o.id &&
305
314
  user_id == o.user_id &&
306
315
  inbox_id == o.inbox_id &&
316
+ domain_id == o.domain_id &&
307
317
  to == o.to &&
308
318
  from == o.from &&
309
319
  reply_to == o.reply_to &&
@@ -336,7 +346,7 @@ module MailSlurpClient
336
346
  # Calculates hash code according to all attributes.
337
347
  # @return [Integer] Hash code
338
348
  def 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
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
340
350
  end
341
351
 
342
352
  # Builds the object from hash
@@ -23,7 +23,7 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :created_at
26
+ attr_accessor :inbox_id
27
27
 
28
28
  attr_accessor :body_md5_hash
29
29
 
@@ -33,12 +33,12 @@ module MailSlurpClient
33
33
 
34
34
  attr_accessor :virtual_send
35
35
 
36
- attr_accessor :inbox_id
37
-
38
36
  attr_accessor :attachments
39
37
 
40
38
  attr_accessor :to
41
39
 
40
+ attr_accessor :created_at
41
+
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
@@ -46,14 +46,14 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
- :'created_at' => :'createdAt',
49
+ :'inbox_id' => :'inboxId',
50
50
  :'body_md5_hash' => :'bodyMD5Hash',
51
51
  :'bcc' => :'bcc',
52
52
  :'cc' => :'cc',
53
53
  :'virtual_send' => :'virtualSend',
54
- :'inbox_id' => :'inboxId',
55
54
  :'attachments' => :'attachments',
56
- :'to' => :'to'
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',
67
+ :'inbox_id' => :'String',
68
68
  :'body_md5_hash' => :'String',
69
69
  :'bcc' => :'Array<String>',
70
70
  :'cc' => :'Array<String>',
71
71
  :'virtual_send' => :'Boolean',
72
- :'inbox_id' => :'String',
73
72
  :'attachments' => :'Array<String>',
74
- :'to' => :'Array<String>'
73
+ :'to' => :'Array<String>',
74
+ :'created_at' => :'DateTime'
75
75
  }
76
76
  end
77
77
 
@@ -112,8 +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']
115
+ if attributes.key?(:'inbox_id')
116
+ self.inbox_id = attributes[:'inbox_id']
117
117
  end
118
118
 
119
119
  if attributes.key?(:'body_md5_hash')
@@ -136,10 +136,6 @@ module MailSlurpClient
136
136
  self.virtual_send = attributes[:'virtual_send']
137
137
  end
138
138
 
139
- if attributes.key?(:'inbox_id')
140
- self.inbox_id = attributes[:'inbox_id']
141
- end
142
-
143
139
  if attributes.key?(:'attachments')
144
140
  if (value = attributes[:'attachments']).is_a?(Array)
145
141
  self.attachments = value
@@ -151,6 +147,10 @@ module MailSlurpClient
151
147
  self.to = value
152
148
  end
153
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,8 +165,8 @@ 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 @inbox_id.nil?
169
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
170
170
  end
171
171
 
172
172
  if @bcc.nil?
@@ -181,10 +181,6 @@ module MailSlurpClient
181
181
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
182
182
  end
183
183
 
184
- if @inbox_id.nil?
185
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
186
- end
187
-
188
184
  if @attachments.nil?
189
185
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
190
186
  end
@@ -193,6 +189,10 @@ module MailSlurpClient
193
189
  invalid_properties.push('invalid value for "to", to cannot be nil.')
194
190
  end
195
191
 
192
+ if @created_at.nil?
193
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
194
+ end
195
+
196
196
  invalid_properties
197
197
  end
198
198
 
@@ -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?
204
+ return false if @inbox_id.nil?
205
205
  return false if @bcc.nil?
206
206
  return false if @cc.nil?
207
207
  return false if @virtual_send.nil?
208
- return false if @inbox_id.nil?
209
208
  return false if @attachments.nil?
210
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 &&
223
+ inbox_id == o.inbox_id &&
224
224
  body_md5_hash == o.body_md5_hash &&
225
225
  bcc == o.bcc &&
226
226
  cc == o.cc &&
227
227
  virtual_send == o.virtual_send &&
228
- inbox_id == o.inbox_id &&
229
228
  attachments == o.attachments &&
230
- to == o.to
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, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to].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