mailslurp_client 15.19.2 → 15.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/imap_controller_api.rb +65 -0
  3. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  4. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  5. data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  11. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/imap_email_projection.rb +25 -1
  13. data/lib/mailslurp_client/models/imap_mailbox_status.rb +367 -0
  14. data/lib/mailslurp_client/models/imap_server_status_options.rb +241 -0
  15. data/lib/mailslurp_client/models/imap_server_status_result.rb +207 -0
  16. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
  18. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  19. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  20. data/lib/mailslurp_client/models/page_alias.rb +15 -15
  21. data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
  22. data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
  23. data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
  24. data/lib/mailslurp_client/models/page_complaint.rb +15 -15
  25. data/lib/mailslurp_client/models/page_connector.rb +15 -15
  26. data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
  27. data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
  28. data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
  29. data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
  30. data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
  32. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
  33. data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
  34. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
  35. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
  36. data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
  37. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
  38. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
  39. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
  40. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
  41. data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
  42. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
  43. data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
  44. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
  45. data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
  46. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
  47. data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
  49. data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
  50. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
  51. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
  52. data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
  53. data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
  54. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  55. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
  56. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  57. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  58. data/lib/mailslurp_client/models/thread_projection.rb +35 -35
  59. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  61. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  62. data/lib/mailslurp_client/version.rb +1 -1
  63. data/lib/mailslurp_client.rb +3 -0
  64. metadata +5 -2
@@ -14,14 +14,14 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class SentEmailProjection
17
- attr_accessor :subject
17
+ attr_accessor :created_at
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :body_md5_hash
22
-
23
21
  attr_accessor :from
24
22
 
23
+ attr_accessor :subject
24
+
25
25
  attr_accessor :inbox_id
26
26
 
27
27
  attr_accessor :user_id
@@ -34,24 +34,24 @@ module MailSlurpClient
34
34
 
35
35
  attr_accessor :cc
36
36
 
37
- attr_accessor :created_at
37
+ attr_accessor :body_md5_hash
38
38
 
39
39
  attr_accessor :virtual_send
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'subject' => :'subject',
44
+ :'created_at' => :'createdAt',
45
45
  :'id' => :'id',
46
- :'body_md5_hash' => :'bodyMD5Hash',
47
46
  :'from' => :'from',
47
+ :'subject' => :'subject',
48
48
  :'inbox_id' => :'inboxId',
49
49
  :'user_id' => :'userId',
50
50
  :'attachments' => :'attachments',
51
51
  :'to' => :'to',
52
52
  :'bcc' => :'bcc',
53
53
  :'cc' => :'cc',
54
- :'created_at' => :'createdAt',
54
+ :'body_md5_hash' => :'bodyMD5Hash',
55
55
  :'virtual_send' => :'virtualSend'
56
56
  }
57
57
  end
@@ -59,17 +59,17 @@ module MailSlurpClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'subject' => :'String',
62
+ :'created_at' => :'DateTime',
63
63
  :'id' => :'String',
64
- :'body_md5_hash' => :'String',
65
64
  :'from' => :'String',
65
+ :'subject' => :'String',
66
66
  :'inbox_id' => :'String',
67
67
  :'user_id' => :'String',
68
68
  :'attachments' => :'Array<String>',
69
69
  :'to' => :'Array<String>',
70
70
  :'bcc' => :'Array<String>',
71
71
  :'cc' => :'Array<String>',
72
- :'created_at' => :'DateTime',
72
+ :'body_md5_hash' => :'String',
73
73
  :'virtual_send' => :'Boolean'
74
74
  }
75
75
  end
@@ -95,22 +95,22 @@ module MailSlurpClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'subject')
99
- self.subject = attributes[:'subject']
98
+ if attributes.key?(:'created_at')
99
+ self.created_at = attributes[:'created_at']
100
100
  end
101
101
 
102
102
  if attributes.key?(:'id')
103
103
  self.id = attributes[:'id']
104
104
  end
105
105
 
106
- if attributes.key?(:'body_md5_hash')
107
- self.body_md5_hash = attributes[:'body_md5_hash']
108
- end
109
-
110
106
  if attributes.key?(:'from')
111
107
  self.from = attributes[:'from']
112
108
  end
113
109
 
110
+ if attributes.key?(:'subject')
111
+ self.subject = attributes[:'subject']
112
+ end
113
+
114
114
  if attributes.key?(:'inbox_id')
115
115
  self.inbox_id = attributes[:'inbox_id']
116
116
  end
@@ -143,8 +143,8 @@ module MailSlurpClient
143
143
  end
144
144
  end
145
145
 
146
- if attributes.key?(:'created_at')
147
- self.created_at = attributes[:'created_at']
146
+ if attributes.key?(:'body_md5_hash')
147
+ self.body_md5_hash = attributes[:'body_md5_hash']
148
148
  end
149
149
 
150
150
  if attributes.key?(:'virtual_send')
@@ -156,6 +156,10 @@ module MailSlurpClient
156
156
  # @return Array for valid properties with the reasons
157
157
  def list_invalid_properties
158
158
  invalid_properties = Array.new
159
+ if @created_at.nil?
160
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
161
+ end
162
+
159
163
  if @id.nil?
160
164
  invalid_properties.push('invalid value for "id", id cannot be nil.')
161
165
  end
@@ -184,10 +188,6 @@ module MailSlurpClient
184
188
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
185
189
  end
186
190
 
187
- if @created_at.nil?
188
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
189
- end
190
-
191
191
  if @virtual_send.nil?
192
192
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
193
193
  end
@@ -198,6 +198,7 @@ module MailSlurpClient
198
198
  # Check to see if the all the properties in the model are valid
199
199
  # @return true if the model is valid
200
200
  def valid?
201
+ return false if @created_at.nil?
201
202
  return false if @id.nil?
202
203
  return false if @inbox_id.nil?
203
204
  return false if @user_id.nil?
@@ -205,7 +206,6 @@ module MailSlurpClient
205
206
  return false if @to.nil?
206
207
  return false if @bcc.nil?
207
208
  return false if @cc.nil?
208
- return false if @created_at.nil?
209
209
  return false if @virtual_send.nil?
210
210
  true
211
211
  end
@@ -215,17 +215,17 @@ module MailSlurpClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
- subject == o.subject &&
218
+ created_at == o.created_at &&
219
219
  id == o.id &&
220
- body_md5_hash == o.body_md5_hash &&
221
220
  from == o.from &&
221
+ subject == o.subject &&
222
222
  inbox_id == o.inbox_id &&
223
223
  user_id == o.user_id &&
224
224
  attachments == o.attachments &&
225
225
  to == o.to &&
226
226
  bcc == o.bcc &&
227
227
  cc == o.cc &&
228
- created_at == o.created_at &&
228
+ body_md5_hash == o.body_md5_hash &&
229
229
  virtual_send == o.virtual_send
230
230
  end
231
231
 
@@ -238,7 +238,7 @@ module MailSlurpClient
238
238
  # Calculates hash code according to all attributes.
239
239
  # @return [Integer] Hash code
240
240
  def hash
241
- [subject, id, body_md5_hash, from, inbox_id, user_id, attachments, to, bcc, cc, created_at, virtual_send].hash
241
+ [created_at, id, from, subject, inbox_id, user_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
242
242
  end
243
243
 
244
244
  # Builds the object from hash
@@ -15,6 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # SMS projection
17
17
  class SmsProjection
18
+ attr_accessor :body
19
+
20
+ attr_accessor :created_at
21
+
18
22
  attr_accessor :user_id
19
23
 
20
24
  attr_accessor :phone_number
@@ -23,21 +27,17 @@ module MailSlurpClient
23
27
 
24
28
  attr_accessor :read
25
29
 
26
- attr_accessor :body
27
-
28
- attr_accessor :created_at
29
-
30
30
  attr_accessor :id
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'body' => :'body',
36
+ :'created_at' => :'createdAt',
35
37
  :'user_id' => :'userId',
36
38
  :'phone_number' => :'phoneNumber',
37
39
  :'from_number' => :'fromNumber',
38
40
  :'read' => :'read',
39
- :'body' => :'body',
40
- :'created_at' => :'createdAt',
41
41
  :'id' => :'id'
42
42
  }
43
43
  end
@@ -45,12 +45,12 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
+ :'body' => :'String',
49
+ :'created_at' => :'DateTime',
48
50
  :'user_id' => :'String',
49
51
  :'phone_number' => :'String',
50
52
  :'from_number' => :'String',
51
53
  :'read' => :'Boolean',
52
- :'body' => :'String',
53
- :'created_at' => :'DateTime',
54
54
  :'id' => :'String'
55
55
  }
56
56
  end
@@ -76,6 +76,14 @@ module MailSlurpClient
76
76
  h[k.to_sym] = v
77
77
  }
78
78
 
79
+ if attributes.key?(:'body')
80
+ self.body = attributes[:'body']
81
+ end
82
+
83
+ if attributes.key?(:'created_at')
84
+ self.created_at = attributes[:'created_at']
85
+ end
86
+
79
87
  if attributes.key?(:'user_id')
80
88
  self.user_id = attributes[:'user_id']
81
89
  end
@@ -92,14 +100,6 @@ module MailSlurpClient
92
100
  self.read = attributes[:'read']
93
101
  end
94
102
 
95
- if attributes.key?(:'body')
96
- self.body = attributes[:'body']
97
- end
98
-
99
- if attributes.key?(:'created_at')
100
- self.created_at = attributes[:'created_at']
101
- end
102
-
103
103
  if attributes.key?(:'id')
104
104
  self.id = attributes[:'id']
105
105
  end
@@ -109,6 +109,14 @@ module MailSlurpClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if @body.nil?
113
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
114
+ end
115
+
116
+ if @created_at.nil?
117
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
118
+ end
119
+
112
120
  if @user_id.nil?
113
121
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
114
122
  end
@@ -125,14 +133,6 @@ module MailSlurpClient
125
133
  invalid_properties.push('invalid value for "read", read cannot be nil.')
126
134
  end
127
135
 
128
- if @body.nil?
129
- invalid_properties.push('invalid value for "body", body cannot be nil.')
130
- end
131
-
132
- if @created_at.nil?
133
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
- end
135
-
136
136
  if @id.nil?
137
137
  invalid_properties.push('invalid value for "id", id cannot be nil.')
138
138
  end
@@ -143,12 +143,12 @@ module MailSlurpClient
143
143
  # Check to see if the all the properties in the model are valid
144
144
  # @return true if the model is valid
145
145
  def valid?
146
+ return false if @body.nil?
147
+ return false if @created_at.nil?
146
148
  return false if @user_id.nil?
147
149
  return false if @phone_number.nil?
148
150
  return false if @from_number.nil?
149
151
  return false if @read.nil?
150
- return false if @body.nil?
151
- return false if @created_at.nil?
152
152
  return false if @id.nil?
153
153
  true
154
154
  end
@@ -158,12 +158,12 @@ module MailSlurpClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
+ body == o.body &&
162
+ created_at == o.created_at &&
161
163
  user_id == o.user_id &&
162
164
  phone_number == o.phone_number &&
163
165
  from_number == o.from_number &&
164
166
  read == o.read &&
165
- body == o.body &&
166
- created_at == o.created_at &&
167
167
  id == o.id
168
168
  end
169
169
 
@@ -176,7 +176,7 @@ module MailSlurpClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [user_id, phone_number, from_number, read, body, created_at, id].hash
179
+ [body, created_at, user_id, phone_number, from_number, read, id].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email template data
17
17
  class TemplateProjection
18
- attr_accessor :variables
19
-
20
18
  attr_accessor :created_at
21
19
 
22
20
  attr_accessor :updated_at
23
21
 
22
+ attr_accessor :variables
23
+
24
24
  attr_accessor :name
25
25
 
26
26
  attr_accessor :id
@@ -28,9 +28,9 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'variables' => :'variables',
32
31
  :'created_at' => :'createdAt',
33
32
  :'updated_at' => :'updatedAt',
33
+ :'variables' => :'variables',
34
34
  :'name' => :'name',
35
35
  :'id' => :'id'
36
36
  }
@@ -39,9 +39,9 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'variables' => :'Array<String>',
43
42
  :'created_at' => :'DateTime',
44
43
  :'updated_at' => :'DateTime',
44
+ :'variables' => :'Array<String>',
45
45
  :'name' => :'String',
46
46
  :'id' => :'String'
47
47
  }
@@ -68,12 +68,6 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'variables')
72
- if (value = attributes[:'variables']).is_a?(Array)
73
- self.variables = value
74
- end
75
- end
76
-
77
71
  if attributes.key?(:'created_at')
78
72
  self.created_at = attributes[:'created_at']
79
73
  end
@@ -82,6 +76,12 @@ module MailSlurpClient
82
76
  self.updated_at = attributes[:'updated_at']
83
77
  end
84
78
 
79
+ if attributes.key?(:'variables')
80
+ if (value = attributes[:'variables']).is_a?(Array)
81
+ self.variables = value
82
+ end
83
+ end
84
+
85
85
  if attributes.key?(:'name')
86
86
  self.name = attributes[:'name']
87
87
  end
@@ -95,10 +95,6 @@ module MailSlurpClient
95
95
  # @return Array for valid properties with the reasons
96
96
  def list_invalid_properties
97
97
  invalid_properties = Array.new
98
- if @variables.nil?
99
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
100
- end
101
-
102
98
  if @created_at.nil?
103
99
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
104
100
  end
@@ -107,6 +103,10 @@ module MailSlurpClient
107
103
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
108
104
  end
109
105
 
106
+ if @variables.nil?
107
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
+ end
109
+
110
110
  if @name.nil?
111
111
  invalid_properties.push('invalid value for "name", name cannot be nil.')
112
112
  end
@@ -121,9 +121,9 @@ module MailSlurpClient
121
121
  # Check to see if the all the properties in the model are valid
122
122
  # @return true if the model is valid
123
123
  def valid?
124
- return false if @variables.nil?
125
124
  return false if @created_at.nil?
126
125
  return false if @updated_at.nil?
126
+ return false if @variables.nil?
127
127
  return false if @name.nil?
128
128
  return false if @id.nil?
129
129
  true
@@ -134,9 +134,9 @@ module MailSlurpClient
134
134
  def ==(o)
135
135
  return true if self.equal?(o)
136
136
  self.class == o.class &&
137
- variables == o.variables &&
138
137
  created_at == o.created_at &&
139
138
  updated_at == o.updated_at &&
139
+ variables == o.variables &&
140
140
  name == o.name &&
141
141
  id == o.id
142
142
  end
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [variables, created_at, updated_at, name, id].hash
153
+ [created_at, updated_at, variables, name, id].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -15,8 +15,11 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A thread is a message thread created for a message received by an alias
17
17
  class ThreadProjection
18
- # Thread subject
19
- attr_accessor :subject
18
+ # Created at DateTime
19
+ attr_accessor :created_at
20
+
21
+ # Updated at DateTime
22
+ attr_accessor :updated_at
20
23
 
21
24
  # Inbox ID
22
25
  attr_accessor :inbox_id
@@ -36,11 +39,8 @@ module MailSlurpClient
36
39
  # Alias ID
37
40
  attr_accessor :alias_id
38
41
 
39
- # Created at DateTime
40
- attr_accessor :created_at
41
-
42
- # Updated at DateTime
43
- attr_accessor :updated_at
42
+ # Thread subject
43
+ attr_accessor :subject
44
44
 
45
45
  # Name of thread
46
46
  attr_accessor :name
@@ -51,15 +51,15 @@ module MailSlurpClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'subject' => :'subject',
54
+ :'created_at' => :'createdAt',
55
+ :'updated_at' => :'updatedAt',
55
56
  :'inbox_id' => :'inboxId',
56
57
  :'user_id' => :'userId',
57
58
  :'to' => :'to',
58
59
  :'bcc' => :'bcc',
59
60
  :'cc' => :'cc',
60
61
  :'alias_id' => :'aliasId',
61
- :'created_at' => :'createdAt',
62
- :'updated_at' => :'updatedAt',
62
+ :'subject' => :'subject',
63
63
  :'name' => :'name',
64
64
  :'id' => :'id'
65
65
  }
@@ -68,15 +68,15 @@ module MailSlurpClient
68
68
  # Attribute type mapping.
69
69
  def self.openapi_types
70
70
  {
71
- :'subject' => :'String',
71
+ :'created_at' => :'DateTime',
72
+ :'updated_at' => :'DateTime',
72
73
  :'inbox_id' => :'String',
73
74
  :'user_id' => :'String',
74
75
  :'to' => :'Array<String>',
75
76
  :'bcc' => :'Array<String>',
76
77
  :'cc' => :'Array<String>',
77
78
  :'alias_id' => :'String',
78
- :'created_at' => :'DateTime',
79
- :'updated_at' => :'DateTime',
79
+ :'subject' => :'String',
80
80
  :'name' => :'String',
81
81
  :'id' => :'String'
82
82
  }
@@ -103,8 +103,12 @@ module MailSlurpClient
103
103
  h[k.to_sym] = v
104
104
  }
105
105
 
106
- if attributes.key?(:'subject')
107
- self.subject = attributes[:'subject']
106
+ if attributes.key?(:'created_at')
107
+ self.created_at = attributes[:'created_at']
108
+ end
109
+
110
+ if attributes.key?(:'updated_at')
111
+ self.updated_at = attributes[:'updated_at']
108
112
  end
109
113
 
110
114
  if attributes.key?(:'inbox_id')
@@ -137,12 +141,8 @@ module MailSlurpClient
137
141
  self.alias_id = attributes[:'alias_id']
138
142
  end
139
143
 
140
- if attributes.key?(:'created_at')
141
- self.created_at = attributes[:'created_at']
142
- end
143
-
144
- if attributes.key?(:'updated_at')
145
- self.updated_at = attributes[:'updated_at']
144
+ if attributes.key?(:'subject')
145
+ self.subject = attributes[:'subject']
146
146
  end
147
147
 
148
148
  if attributes.key?(:'name')
@@ -158,6 +158,14 @@ module MailSlurpClient
158
158
  # @return Array for valid properties with the reasons
159
159
  def list_invalid_properties
160
160
  invalid_properties = Array.new
161
+ if @created_at.nil?
162
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
163
+ end
164
+
165
+ if @updated_at.nil?
166
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
167
+ end
168
+
161
169
  if @inbox_id.nil?
162
170
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
163
171
  end
@@ -174,14 +182,6 @@ module MailSlurpClient
174
182
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
175
183
  end
176
184
 
177
- if @created_at.nil?
178
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
179
- end
180
-
181
- if @updated_at.nil?
182
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
183
- end
184
-
185
185
  if @id.nil?
186
186
  invalid_properties.push('invalid value for "id", id cannot be nil.')
187
187
  end
@@ -192,12 +192,12 @@ module MailSlurpClient
192
192
  # Check to see if the all the properties in the model are valid
193
193
  # @return true if the model is valid
194
194
  def valid?
195
+ return false if @created_at.nil?
196
+ return false if @updated_at.nil?
195
197
  return false if @inbox_id.nil?
196
198
  return false if @user_id.nil?
197
199
  return false if @to.nil?
198
200
  return false if @alias_id.nil?
199
- return false if @created_at.nil?
200
- return false if @updated_at.nil?
201
201
  return false if @id.nil?
202
202
  true
203
203
  end
@@ -207,15 +207,15 @@ module MailSlurpClient
207
207
  def ==(o)
208
208
  return true if self.equal?(o)
209
209
  self.class == o.class &&
210
- subject == o.subject &&
210
+ created_at == o.created_at &&
211
+ updated_at == o.updated_at &&
211
212
  inbox_id == o.inbox_id &&
212
213
  user_id == o.user_id &&
213
214
  to == o.to &&
214
215
  bcc == o.bcc &&
215
216
  cc == o.cc &&
216
217
  alias_id == o.alias_id &&
217
- created_at == o.created_at &&
218
- updated_at == o.updated_at &&
218
+ subject == o.subject &&
219
219
  name == o.name &&
220
220
  id == o.id
221
221
  end
@@ -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
- [subject, inbox_id, user_id, to, bcc, cc, alias_id, created_at, updated_at, name, id].hash
232
+ [created_at, updated_at, inbox_id, user_id, to, bcc, cc, alias_id, subject, name, id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash