mailslurp_client 15.17.39 → 15.17.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -22
  3. data/lib/mailslurp_client/models/alias_projection.rb +39 -39
  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 +22 -22
  7. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  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.rb +13 -13
  11. data/lib/mailslurp_client/models/email_projection.rb +28 -28
  12. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
  13. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
  14. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  15. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  16. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  17. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  18. data/lib/mailslurp_client/models/sent_email_projection.rb +41 -41
  19. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  20. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  21. data/lib/mailslurp_client/models/thread_projection.rb +45 -45
  22. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
  23. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  24. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  25. data/lib/mailslurp_client/version.rb +1 -1
  26. metadata +2 -2
@@ -14,17 +14,19 @@ 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 :subject
22
+
21
23
  attr_accessor :from
22
24
 
23
- attr_accessor :inbox_id
25
+ attr_accessor :attachments
24
26
 
25
27
  attr_accessor :user_id
26
28
 
27
- attr_accessor :attachments
29
+ attr_accessor :inbox_id
28
30
 
29
31
  attr_accessor :to
30
32
 
@@ -32,8 +34,6 @@ module MailSlurpClient
32
34
 
33
35
  attr_accessor :cc
34
36
 
35
- attr_accessor :created_at
36
-
37
37
  attr_accessor :body_md5_hash
38
38
 
39
39
  attr_accessor :virtual_send
@@ -41,16 +41,16 @@ module MailSlurpClient
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
+ :'subject' => :'subject',
46
47
  :'from' => :'from',
47
- :'inbox_id' => :'inboxId',
48
- :'user_id' => :'userId',
49
48
  :'attachments' => :'attachments',
49
+ :'user_id' => :'userId',
50
+ :'inbox_id' => :'inboxId',
50
51
  :'to' => :'to',
51
52
  :'bcc' => :'bcc',
52
53
  :'cc' => :'cc',
53
- :'created_at' => :'createdAt',
54
54
  :'body_md5_hash' => :'bodyMD5Hash',
55
55
  :'virtual_send' => :'virtualSend'
56
56
  }
@@ -59,16 +59,16 @@ 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
+ :'subject' => :'String',
64
65
  :'from' => :'String',
65
- :'inbox_id' => :'String',
66
- :'user_id' => :'String',
67
66
  :'attachments' => :'Array<String>',
67
+ :'user_id' => :'String',
68
+ :'inbox_id' => :'String',
68
69
  :'to' => :'Array<String>',
69
70
  :'bcc' => :'Array<String>',
70
71
  :'cc' => :'Array<String>',
71
- :'created_at' => :'DateTime',
72
72
  :'body_md5_hash' => :'String',
73
73
  :'virtual_send' => :'Boolean'
74
74
  }
@@ -95,30 +95,34 @@ 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?(:'subject')
107
+ self.subject = attributes[:'subject']
108
+ end
109
+
106
110
  if attributes.key?(:'from')
107
111
  self.from = attributes[:'from']
108
112
  end
109
113
 
110
- if attributes.key?(:'inbox_id')
111
- self.inbox_id = attributes[:'inbox_id']
114
+ if attributes.key?(:'attachments')
115
+ if (value = attributes[:'attachments']).is_a?(Array)
116
+ self.attachments = value
117
+ end
112
118
  end
113
119
 
114
120
  if attributes.key?(:'user_id')
115
121
  self.user_id = attributes[:'user_id']
116
122
  end
117
123
 
118
- if attributes.key?(:'attachments')
119
- if (value = attributes[:'attachments']).is_a?(Array)
120
- self.attachments = value
121
- end
124
+ if attributes.key?(:'inbox_id')
125
+ self.inbox_id = attributes[:'inbox_id']
122
126
  end
123
127
 
124
128
  if attributes.key?(:'to')
@@ -139,10 +143,6 @@ module MailSlurpClient
139
143
  end
140
144
  end
141
145
 
142
- if attributes.key?(:'created_at')
143
- self.created_at = attributes[:'created_at']
144
- end
145
-
146
146
  if attributes.key?(:'body_md5_hash')
147
147
  self.body_md5_hash = attributes[:'body_md5_hash']
148
148
  end
@@ -156,20 +156,24 @@ 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
162
166
 
163
- if @inbox_id.nil?
164
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
167
+ if @attachments.nil?
168
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
165
169
  end
166
170
 
167
171
  if @user_id.nil?
168
172
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
169
173
  end
170
174
 
171
- if @attachments.nil?
172
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
175
+ if @inbox_id.nil?
176
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
173
177
  end
174
178
 
175
179
  if @to.nil?
@@ -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,14 +198,14 @@ 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
- return false if @inbox_id.nil?
203
- return false if @user_id.nil?
204
203
  return false if @attachments.nil?
204
+ return false if @user_id.nil?
205
+ return false if @inbox_id.nil?
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,16 +215,16 @@ 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
+ subject == o.subject &&
220
221
  from == o.from &&
221
- inbox_id == o.inbox_id &&
222
- user_id == o.user_id &&
223
222
  attachments == o.attachments &&
223
+ user_id == o.user_id &&
224
+ inbox_id == o.inbox_id &&
224
225
  to == o.to &&
225
226
  bcc == o.bcc &&
226
227
  cc == o.cc &&
227
- created_at == o.created_at &&
228
228
  body_md5_hash == o.body_md5_hash &&
229
229
  virtual_send == o.virtual_send
230
230
  end
@@ -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, from, inbox_id, user_id, attachments, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
241
+ [created_at, id, subject, from, attachments, user_id, inbox_id, 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,15 +15,18 @@ 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
20
 
21
- # Inbox ID
22
- attr_accessor :inbox_id
21
+ # Updated at DateTime
22
+ attr_accessor :updated_at
23
23
 
24
24
  # User ID
25
25
  attr_accessor :user_id
26
26
 
27
+ # Inbox ID
28
+ attr_accessor :inbox_id
29
+
27
30
  # To recipients
28
31
  attr_accessor :to
29
32
 
@@ -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',
55
- :'inbox_id' => :'inboxId',
54
+ :'created_at' => :'createdAt',
55
+ :'updated_at' => :'updatedAt',
56
56
  :'user_id' => :'userId',
57
+ :'inbox_id' => :'inboxId',
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',
72
- :'inbox_id' => :'String',
71
+ :'created_at' => :'DateTime',
72
+ :'updated_at' => :'DateTime',
73
73
  :'user_id' => :'String',
74
+ :'inbox_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,18 +103,22 @@ 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
108
  end
109
109
 
110
- if attributes.key?(:'inbox_id')
111
- self.inbox_id = attributes[:'inbox_id']
110
+ if attributes.key?(:'updated_at')
111
+ self.updated_at = attributes[:'updated_at']
112
112
  end
113
113
 
114
114
  if attributes.key?(:'user_id')
115
115
  self.user_id = attributes[:'user_id']
116
116
  end
117
117
 
118
+ if attributes.key?(:'inbox_id')
119
+ self.inbox_id = attributes[:'inbox_id']
120
+ end
121
+
118
122
  if attributes.key?(:'to')
119
123
  if (value = attributes[:'to']).is_a?(Array)
120
124
  self.to = value
@@ -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,14 +158,22 @@ 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 @inbox_id.nil?
162
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
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.')
163
167
  end
164
168
 
165
169
  if @user_id.nil?
166
170
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
167
171
  end
168
172
 
173
+ if @inbox_id.nil?
174
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
175
+ end
176
+
169
177
  if @to.nil?
170
178
  invalid_properties.push('invalid value for "to", to cannot be nil.')
171
179
  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 @inbox_id.nil?
195
+ return false if @created_at.nil?
196
+ return false if @updated_at.nil?
196
197
  return false if @user_id.nil?
198
+ return false if @inbox_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 &&
211
- inbox_id == o.inbox_id &&
210
+ created_at == o.created_at &&
211
+ updated_at == o.updated_at &&
212
212
  user_id == o.user_id &&
213
+ inbox_id == o.inbox_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, user_id, inbox_id, to, bcc, cc, alias_id, subject, name, id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash