mailslurp_client 15.13.32 → 15.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +0 -4
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +76 -0
  4. data/lib/mailslurp_client/api/inbox_controller_api.rb +131 -5
  5. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +145 -0
  6. data/lib/mailslurp_client/api/missed_email_controller_api.rb +6 -6
  7. data/lib/mailslurp_client/models/alias_dto.rb +5 -0
  8. data/lib/mailslurp_client/models/alias_projection.rb +13 -13
  9. data/lib/mailslurp_client/models/attachment_entity.rb +0 -1
  10. data/lib/mailslurp_client/models/attachment_projection.rb +3 -0
  11. data/lib/mailslurp_client/models/bounce_projection.rb +3 -0
  12. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +3 -0
  13. data/lib/mailslurp_client/models/bounced_email_dto.rb +12 -0
  14. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +10 -0
  15. data/lib/mailslurp_client/models/contact_dto.rb +7 -0
  16. data/lib/mailslurp_client/models/contact_projection.rb +5 -0
  17. data/lib/mailslurp_client/models/create_alias_options.rb +2 -0
  18. data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
  19. data/lib/mailslurp_client/models/create_group_options.rb +1 -0
  20. data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -0
  21. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +2 -0
  22. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -0
  23. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -0
  24. data/lib/mailslurp_client/models/domain_dto.rb +1 -0
  25. data/lib/mailslurp_client/models/domain_preview.rb +1 -0
  26. data/lib/mailslurp_client/models/email.rb +1 -0
  27. data/lib/mailslurp_client/models/email_preview.rb +1 -0
  28. data/lib/mailslurp_client/models/email_projection.rb +35 -27
  29. data/lib/mailslurp_client/models/{email_validation_request.rb → email_validation_request_dto.rb} +8 -3
  30. data/lib/mailslurp_client/models/email_verification_result.rb +1 -0
  31. data/lib/mailslurp_client/models/expiration_defaults.rb +3 -0
  32. data/lib/mailslurp_client/models/export_options.rb +5 -0
  33. data/lib/mailslurp_client/models/forward_email_options.rb +20 -4
  34. data/lib/mailslurp_client/models/group_dto.rb +1 -0
  35. data/lib/mailslurp_client/models/group_projection.rb +1 -0
  36. data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
  37. data/lib/mailslurp_client/models/inbox_by_name_result.rb +1 -0
  38. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +316 -0
  39. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +250 -0
  40. data/lib/mailslurp_client/models/match_options.rb +2 -0
  41. data/lib/mailslurp_client/models/{missed_email.rb → missed_email_dto.rb} +16 -3
  42. data/lib/mailslurp_client/models/missed_email_projection.rb +3 -0
  43. data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -0
  44. data/lib/mailslurp_client/models/page_email_validation_request.rb +1 -1
  45. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +308 -0
  46. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +308 -0
  47. data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
  48. data/lib/mailslurp_client/models/recipient.rb +1 -0
  49. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +6 -0
  50. data/lib/mailslurp_client/models/reply_to_email_options.rb +8 -0
  51. data/lib/mailslurp_client/models/scheduled_job.rb +2 -2
  52. data/lib/mailslurp_client/models/scheduled_job_dto.rb +371 -0
  53. data/lib/mailslurp_client/models/send_email_options.rb +20 -0
  54. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -0
  55. data/lib/mailslurp_client/models/sent_email_projection.rb +48 -48
  56. data/lib/mailslurp_client/models/simple_send_email_options.rb +3 -0
  57. data/lib/mailslurp_client/models/sms_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/template_projection.rb +20 -20
  59. data/lib/mailslurp_client/models/thread_projection.rb +26 -26
  60. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +4 -0
  61. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  62. data/lib/mailslurp_client/models/update_alias_options.rb +1 -0
  63. data/lib/mailslurp_client/models/update_domain_options.rb +1 -0
  64. data/lib/mailslurp_client/models/verify_email_address_options.rb +3 -0
  65. data/lib/mailslurp_client/models/wait_for_conditions.rb +8 -0
  66. data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +8 -0
  67. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +3 -0
  68. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +1 -0
  69. data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +1 -0
  70. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +1 -0
  71. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +1 -0
  72. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +1 -0
  73. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -0
  74. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -0
  75. data/lib/mailslurp_client/models/webhook_projection.rb +13 -13
  76. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  77. data/lib/mailslurp_client/models/webhook_result_dto.rb +6 -0
  78. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  79. data/lib/mailslurp_client/models/webhook_test_response.rb +2 -0
  80. data/lib/mailslurp_client/models/webhook_test_result.rb +1 -0
  81. data/lib/mailslurp_client/version.rb +1 -1
  82. data/lib/mailslurp_client.rb +7 -2
  83. metadata +9 -4
@@ -25,19 +25,19 @@ module MailSlurpClient
25
25
 
26
26
  attr_accessor :inbox_id
27
27
 
28
- attr_accessor :attachments
29
-
30
- attr_accessor :to
28
+ attr_accessor :body_md5_hash
31
29
 
32
30
  attr_accessor :bcc
33
31
 
34
32
  attr_accessor :cc
35
33
 
36
- attr_accessor :created_at
34
+ attr_accessor :virtual_send
37
35
 
38
- attr_accessor :body_md5_hash
36
+ attr_accessor :attachments
39
37
 
40
- attr_accessor :virtual_send
38
+ attr_accessor :created_at
39
+
40
+ attr_accessor :to
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
@@ -47,13 +47,13 @@ module MailSlurpClient
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
49
  :'inbox_id' => :'inboxId',
50
- :'attachments' => :'attachments',
51
- :'to' => :'to',
50
+ :'body_md5_hash' => :'bodyMD5Hash',
52
51
  :'bcc' => :'bcc',
53
52
  :'cc' => :'cc',
53
+ :'virtual_send' => :'virtualSend',
54
+ :'attachments' => :'attachments',
54
55
  :'created_at' => :'createdAt',
55
- :'body_md5_hash' => :'bodyMD5Hash',
56
- :'virtual_send' => :'virtualSend'
56
+ :'to' => :'to'
57
57
  }
58
58
  end
59
59
 
@@ -65,13 +65,13 @@ module MailSlurpClient
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
67
  :'inbox_id' => :'String',
68
- :'attachments' => :'Array<String>',
69
- :'to' => :'Array<String>',
68
+ :'body_md5_hash' => :'String',
70
69
  :'bcc' => :'Array<String>',
71
70
  :'cc' => :'Array<String>',
71
+ :'virtual_send' => :'Boolean',
72
+ :'attachments' => :'Array<String>',
72
73
  :'created_at' => :'DateTime',
73
- :'body_md5_hash' => :'String',
74
- :'virtual_send' => :'Boolean'
74
+ :'to' => :'Array<String>'
75
75
  }
76
76
  end
77
77
 
@@ -116,16 +116,8 @@ module MailSlurpClient
116
116
  self.inbox_id = attributes[:'inbox_id']
117
117
  end
118
118
 
119
- if attributes.key?(:'attachments')
120
- if (value = attributes[:'attachments']).is_a?(Array)
121
- self.attachments = value
122
- end
123
- end
124
-
125
- if attributes.key?(:'to')
126
- if (value = attributes[:'to']).is_a?(Array)
127
- self.to = value
128
- end
119
+ if attributes.key?(:'body_md5_hash')
120
+ self.body_md5_hash = attributes[:'body_md5_hash']
129
121
  end
130
122
 
131
123
  if attributes.key?(:'bcc')
@@ -140,16 +132,24 @@ module MailSlurpClient
140
132
  end
141
133
  end
142
134
 
143
- if attributes.key?(:'created_at')
144
- self.created_at = attributes[:'created_at']
135
+ if attributes.key?(:'virtual_send')
136
+ self.virtual_send = attributes[:'virtual_send']
145
137
  end
146
138
 
147
- if attributes.key?(:'body_md5_hash')
148
- self.body_md5_hash = attributes[:'body_md5_hash']
139
+ if attributes.key?(:'attachments')
140
+ if (value = attributes[:'attachments']).is_a?(Array)
141
+ self.attachments = value
142
+ end
149
143
  end
150
144
 
151
- if attributes.key?(:'virtual_send')
152
- self.virtual_send = attributes[:'virtual_send']
145
+ if attributes.key?(:'created_at')
146
+ self.created_at = attributes[:'created_at']
147
+ end
148
+
149
+ if attributes.key?(:'to')
150
+ if (value = attributes[:'to']).is_a?(Array)
151
+ self.to = value
152
+ end
153
153
  end
154
154
  end
155
155
 
@@ -169,14 +169,6 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
170
170
  end
171
171
 
172
- if @attachments.nil?
173
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
174
- end
175
-
176
- if @to.nil?
177
- invalid_properties.push('invalid value for "to", to cannot be nil.')
178
- end
179
-
180
172
  if @bcc.nil?
181
173
  invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
182
174
  end
@@ -185,12 +177,20 @@ module MailSlurpClient
185
177
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
186
178
  end
187
179
 
180
+ if @virtual_send.nil?
181
+ invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
182
+ end
183
+
184
+ if @attachments.nil?
185
+ invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
186
+ end
187
+
188
188
  if @created_at.nil?
189
189
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
190
190
  end
191
191
 
192
- if @virtual_send.nil?
193
- invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
192
+ if @to.nil?
193
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
194
194
  end
195
195
 
196
196
  invalid_properties
@@ -202,12 +202,12 @@ module MailSlurpClient
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
204
  return false if @inbox_id.nil?
205
- return false if @attachments.nil?
206
- return false if @to.nil?
207
205
  return false if @bcc.nil?
208
206
  return false if @cc.nil?
209
- return false if @created_at.nil?
210
207
  return false if @virtual_send.nil?
208
+ return false if @attachments.nil?
209
+ return false if @created_at.nil?
210
+ return false if @to.nil?
211
211
  true
212
212
  end
213
213
 
@@ -221,13 +221,13 @@ module MailSlurpClient
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
223
  inbox_id == o.inbox_id &&
224
- attachments == o.attachments &&
225
- to == o.to &&
224
+ body_md5_hash == o.body_md5_hash &&
226
225
  bcc == o.bcc &&
227
226
  cc == o.cc &&
227
+ virtual_send == o.virtual_send &&
228
+ attachments == o.attachments &&
228
229
  created_at == o.created_at &&
229
- body_md5_hash == o.body_md5_hash &&
230
- virtual_send == o.virtual_send
230
+ to == o.to
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, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
242
+ [id, from, user_id, subject, inbox_id, body_md5_hash, bcc, cc, virtual_send, attachments, created_at, to].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -50,6 +50,9 @@ module MailSlurpClient
50
50
  # List of attributes with nullable: true
51
51
  def self.openapi_nullable
52
52
  Set.new([
53
+ :'sender_id',
54
+ :'body',
55
+ :'subject'
53
56
  ])
54
57
  end
55
58
 
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :user_id
23
23
 
24
- attr_accessor :phone_number
25
-
26
24
  attr_accessor :created_at
27
25
 
26
+ attr_accessor :phone_number
27
+
28
28
  attr_accessor :from_number
29
29
 
30
30
  attr_accessor :read
@@ -35,8 +35,8 @@ module MailSlurpClient
35
35
  :'id' => :'id',
36
36
  :'body' => :'body',
37
37
  :'user_id' => :'userId',
38
- :'phone_number' => :'phoneNumber',
39
38
  :'created_at' => :'createdAt',
39
+ :'phone_number' => :'phoneNumber',
40
40
  :'from_number' => :'fromNumber',
41
41
  :'read' => :'read'
42
42
  }
@@ -48,8 +48,8 @@ module MailSlurpClient
48
48
  :'id' => :'String',
49
49
  :'body' => :'String',
50
50
  :'user_id' => :'String',
51
- :'phone_number' => :'String',
52
51
  :'created_at' => :'DateTime',
52
+ :'phone_number' => :'String',
53
53
  :'from_number' => :'String',
54
54
  :'read' => :'Boolean'
55
55
  }
@@ -88,14 +88,14 @@ module MailSlurpClient
88
88
  self.user_id = attributes[:'user_id']
89
89
  end
90
90
 
91
- if attributes.key?(:'phone_number')
92
- self.phone_number = attributes[:'phone_number']
93
- end
94
-
95
91
  if attributes.key?(:'created_at')
96
92
  self.created_at = attributes[:'created_at']
97
93
  end
98
94
 
95
+ if attributes.key?(:'phone_number')
96
+ self.phone_number = attributes[:'phone_number']
97
+ end
98
+
99
99
  if attributes.key?(:'from_number')
100
100
  self.from_number = attributes[:'from_number']
101
101
  end
@@ -121,14 +121,14 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
122
122
  end
123
123
 
124
- if @phone_number.nil?
125
- invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
126
- end
127
-
128
124
  if @created_at.nil?
129
125
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
130
126
  end
131
127
 
128
+ if @phone_number.nil?
129
+ invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
130
+ end
131
+
132
132
  if @from_number.nil?
133
133
  invalid_properties.push('invalid value for "from_number", from_number cannot be nil.')
134
134
  end
@@ -146,8 +146,8 @@ module MailSlurpClient
146
146
  return false if @id.nil?
147
147
  return false if @body.nil?
148
148
  return false if @user_id.nil?
149
- return false if @phone_number.nil?
150
149
  return false if @created_at.nil?
150
+ return false if @phone_number.nil?
151
151
  return false if @from_number.nil?
152
152
  return false if @read.nil?
153
153
  true
@@ -161,8 +161,8 @@ module MailSlurpClient
161
161
  id == o.id &&
162
162
  body == o.body &&
163
163
  user_id == o.user_id &&
164
- phone_number == o.phone_number &&
165
164
  created_at == o.created_at &&
165
+ phone_number == o.phone_number &&
166
166
  from_number == o.from_number &&
167
167
  read == o.read
168
168
  end
@@ -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
- [id, body, user_id, phone_number, created_at, from_number, read].hash
179
+ [id, body, user_id, created_at, phone_number, from_number, read].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -19,20 +19,20 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :variables
23
-
24
22
  attr_accessor :created_at
25
23
 
26
24
  attr_accessor :updated_at
27
25
 
26
+ attr_accessor :variables
27
+
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
31
  :'name' => :'name',
32
32
  :'id' => :'id',
33
- :'variables' => :'variables',
34
33
  :'created_at' => :'createdAt',
35
- :'updated_at' => :'updatedAt'
34
+ :'updated_at' => :'updatedAt',
35
+ :'variables' => :'variables'
36
36
  }
37
37
  end
38
38
 
@@ -41,9 +41,9 @@ module MailSlurpClient
41
41
  {
42
42
  :'name' => :'String',
43
43
  :'id' => :'String',
44
- :'variables' => :'Array<String>',
45
44
  :'created_at' => :'DateTime',
46
- :'updated_at' => :'DateTime'
45
+ :'updated_at' => :'DateTime',
46
+ :'variables' => :'Array<String>'
47
47
  }
48
48
  end
49
49
 
@@ -76,12 +76,6 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'variables')
80
- if (value = attributes[:'variables']).is_a?(Array)
81
- self.variables = value
82
- end
83
- end
84
-
85
79
  if attributes.key?(:'created_at')
86
80
  self.created_at = attributes[:'created_at']
87
81
  end
@@ -89,6 +83,12 @@ module MailSlurpClient
89
83
  if attributes.key?(:'updated_at')
90
84
  self.updated_at = attributes[:'updated_at']
91
85
  end
86
+
87
+ if attributes.key?(:'variables')
88
+ if (value = attributes[:'variables']).is_a?(Array)
89
+ self.variables = value
90
+ end
91
+ end
92
92
  end
93
93
 
94
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,10 +103,6 @@ module MailSlurpClient
103
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
104
104
  end
105
105
 
106
- if @variables.nil?
107
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
- end
109
-
110
106
  if @created_at.nil?
111
107
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
112
108
  end
@@ -115,6 +111,10 @@ module MailSlurpClient
115
111
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
116
112
  end
117
113
 
114
+ if @variables.nil?
115
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
116
+ end
117
+
118
118
  invalid_properties
119
119
  end
120
120
 
@@ -123,9 +123,9 @@ module MailSlurpClient
123
123
  def valid?
124
124
  return false if @name.nil?
125
125
  return false if @id.nil?
126
- return false if @variables.nil?
127
126
  return false if @created_at.nil?
128
127
  return false if @updated_at.nil?
128
+ return false if @variables.nil?
129
129
  true
130
130
  end
131
131
 
@@ -136,9 +136,9 @@ module MailSlurpClient
136
136
  self.class == o.class &&
137
137
  name == o.name &&
138
138
  id == o.id &&
139
- variables == o.variables &&
140
139
  created_at == o.created_at &&
141
- updated_at == o.updated_at
140
+ updated_at == o.updated_at &&
141
+ variables == o.variables
142
142
  end
143
143
 
144
144
  # @see the `==` method
@@ -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
- [name, id, variables, created_at, updated_at].hash
153
+ [name, id, created_at, updated_at, variables].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -30,6 +30,12 @@ module MailSlurpClient
30
30
  # User ID
31
31
  attr_accessor :user_id
32
32
 
33
+ # Created at DateTime
34
+ attr_accessor :created_at
35
+
36
+ # Updated at DateTime
37
+ attr_accessor :updated_at
38
+
33
39
  # To recipients
34
40
  attr_accessor :to
35
41
 
@@ -39,12 +45,6 @@ module MailSlurpClient
39
45
  # CC recipients
40
46
  attr_accessor :cc
41
47
 
42
- # Created at DateTime
43
- attr_accessor :created_at
44
-
45
- # Updated at DateTime
46
- attr_accessor :updated_at
47
-
48
48
  # Alias ID
49
49
  attr_accessor :alias_id
50
50
 
@@ -56,11 +56,11 @@ module MailSlurpClient
56
56
  :'subject' => :'subject',
57
57
  :'inbox_id' => :'inboxId',
58
58
  :'user_id' => :'userId',
59
+ :'created_at' => :'createdAt',
60
+ :'updated_at' => :'updatedAt',
59
61
  :'to' => :'to',
60
62
  :'bcc' => :'bcc',
61
63
  :'cc' => :'cc',
62
- :'created_at' => :'createdAt',
63
- :'updated_at' => :'updatedAt',
64
64
  :'alias_id' => :'aliasId'
65
65
  }
66
66
  end
@@ -73,11 +73,11 @@ module MailSlurpClient
73
73
  :'subject' => :'String',
74
74
  :'inbox_id' => :'String',
75
75
  :'user_id' => :'String',
76
+ :'created_at' => :'DateTime',
77
+ :'updated_at' => :'DateTime',
76
78
  :'to' => :'Array<String>',
77
79
  :'bcc' => :'Array<String>',
78
80
  :'cc' => :'Array<String>',
79
- :'created_at' => :'DateTime',
80
- :'updated_at' => :'DateTime',
81
81
  :'alias_id' => :'String'
82
82
  }
83
83
  end
@@ -123,6 +123,14 @@ module MailSlurpClient
123
123
  self.user_id = attributes[:'user_id']
124
124
  end
125
125
 
126
+ if attributes.key?(:'created_at')
127
+ self.created_at = attributes[:'created_at']
128
+ end
129
+
130
+ if attributes.key?(:'updated_at')
131
+ self.updated_at = attributes[:'updated_at']
132
+ end
133
+
126
134
  if attributes.key?(:'to')
127
135
  if (value = attributes[:'to']).is_a?(Array)
128
136
  self.to = value
@@ -141,14 +149,6 @@ module MailSlurpClient
141
149
  end
142
150
  end
143
151
 
144
- if attributes.key?(:'created_at')
145
- self.created_at = attributes[:'created_at']
146
- end
147
-
148
- if attributes.key?(:'updated_at')
149
- self.updated_at = attributes[:'updated_at']
150
- end
151
-
152
152
  if attributes.key?(:'alias_id')
153
153
  self.alias_id = attributes[:'alias_id']
154
154
  end
@@ -170,10 +170,6 @@ module MailSlurpClient
170
170
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
171
  end
172
172
 
173
- if @to.nil?
174
- invalid_properties.push('invalid value for "to", to cannot be nil.')
175
- end
176
-
177
173
  if @created_at.nil?
178
174
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
179
175
  end
@@ -182,6 +178,10 @@ module MailSlurpClient
182
178
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
183
179
  end
184
180
 
181
+ if @to.nil?
182
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
183
+ end
184
+
185
185
  if @alias_id.nil?
186
186
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
187
187
  end
@@ -195,9 +195,9 @@ module MailSlurpClient
195
195
  return false if @id.nil?
196
196
  return false if @inbox_id.nil?
197
197
  return false if @user_id.nil?
198
- return false if @to.nil?
199
198
  return false if @created_at.nil?
200
199
  return false if @updated_at.nil?
200
+ return false if @to.nil?
201
201
  return false if @alias_id.nil?
202
202
  true
203
203
  end
@@ -212,11 +212,11 @@ module MailSlurpClient
212
212
  subject == o.subject &&
213
213
  inbox_id == o.inbox_id &&
214
214
  user_id == o.user_id &&
215
+ created_at == o.created_at &&
216
+ updated_at == o.updated_at &&
215
217
  to == o.to &&
216
218
  bcc == o.bcc &&
217
219
  cc == o.cc &&
218
- created_at == o.created_at &&
219
- updated_at == o.updated_at &&
220
220
  alias_id == o.alias_id
221
221
  end
222
222
 
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
232
+ [name, id, subject, inbox_id, user_id, created_at, updated_at, to, bcc, cc, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -66,6 +66,10 @@ module MailSlurpClient
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
+ :'recipient',
70
+ :'inbox_id',
71
+ :'sent_email_id',
72
+ :'seen_at',
69
73
  ])
70
74
  end
71
75
 
@@ -21,18 +21,18 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :to
25
-
26
24
  attr_accessor :created_at
27
25
 
26
+ attr_accessor :to
27
+
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
31
  :'id' => :'id',
32
32
  :'from' => :'from',
33
33
  :'subject' => :'subject',
34
- :'to' => :'to',
35
- :'created_at' => :'createdAt'
34
+ :'created_at' => :'createdAt',
35
+ :'to' => :'to'
36
36
  }
37
37
  end
38
38
 
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  :'id' => :'String',
43
43
  :'from' => :'String',
44
44
  :'subject' => :'String',
45
- :'to' => :'Array<String>',
46
- :'created_at' => :'DateTime'
45
+ :'created_at' => :'DateTime',
46
+ :'to' => :'Array<String>'
47
47
  }
48
48
  end
49
49
 
@@ -80,15 +80,15 @@ module MailSlurpClient
80
80
  self.subject = attributes[:'subject']
81
81
  end
82
82
 
83
+ if attributes.key?(:'created_at')
84
+ self.created_at = attributes[:'created_at']
85
+ end
86
+
83
87
  if attributes.key?(:'to')
84
88
  if (value = attributes[:'to']).is_a?(Array)
85
89
  self.to = value
86
90
  end
87
91
  end
88
-
89
- if attributes.key?(:'created_at')
90
- self.created_at = attributes[:'created_at']
91
- end
92
92
  end
93
93
 
94
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,8 +122,8 @@ module MailSlurpClient
122
122
  id == o.id &&
123
123
  from == o.from &&
124
124
  subject == o.subject &&
125
- to == o.to &&
126
- created_at == o.created_at
125
+ created_at == o.created_at &&
126
+ to == o.to
127
127
  end
128
128
 
129
129
  # @see the `==` method
@@ -135,7 +135,7 @@ module MailSlurpClient
135
135
  # Calculates hash code according to all attributes.
136
136
  # @return [Integer] Hash code
137
137
  def hash
138
- [id, from, subject, to, created_at].hash
138
+ [id, from, subject, created_at, to].hash
139
139
  end
140
140
 
141
141
  # Builds the object from hash
@@ -35,6 +35,7 @@ module MailSlurpClient
35
35
  # List of attributes with nullable: true
36
36
  def self.openapi_nullable
37
37
  Set.new([
38
+ :'name'
38
39
  ])
39
40
  end
40
41
 
@@ -34,6 +34,7 @@ module MailSlurpClient
34
34
  # List of attributes with nullable: true
35
35
  def self.openapi_nullable
36
36
  Set.new([
37
+ :'catch_all_inbox_id'
37
38
  ])
38
39
  end
39
40
 
@@ -46,6 +46,9 @@ module MailSlurpClient
46
46
  # List of attributes with nullable: true
47
47
  def self.openapi_nullable
48
48
  Set.new([
49
+ :'mail_server_domain',
50
+ :'sender_email_address',
51
+ :'port'
49
52
  ])
50
53
  end
51
54
 
@@ -102,6 +102,14 @@ module MailSlurpClient
102
102
  # List of attributes with nullable: true
103
103
  def self.openapi_nullable
104
104
  Set.new([
105
+ :'count',
106
+ :'delay_timeout',
107
+ :'unread_only',
108
+ :'count_type',
109
+ :'matches',
110
+ :'sort_direction',
111
+ :'since',
112
+ :'before'
105
113
  ])
106
114
  end
107
115