mailslurp_client 15.7.15 → 15.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +9 -9
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +14 -13
- data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
- data/lib/mailslurp_client/models/email.rb +13 -4
- data/lib/mailslurp_client/models/email_projection.rb +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
- data/lib/mailslurp_client/models/group_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
- data/lib/mailslurp_client/models/inline_object1.rb +270 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +14 -4
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
- data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
- data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
- data/lib/mailslurp_client/models/sent_email_projection.rb +27 -18
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
@@ -21,18 +21,18 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
|
-
attr_accessor :user_id
|
25
|
-
|
26
24
|
attr_accessor :created_at
|
27
25
|
|
26
|
+
attr_accessor :user_id
|
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
|
-
:'
|
35
|
-
:'
|
34
|
+
:'created_at' => :'createdAt',
|
35
|
+
:'user_id' => :'userId'
|
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
|
-
:'
|
46
|
-
:'
|
45
|
+
:'created_at' => :'DateTime',
|
46
|
+
:'user_id' => :'String'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -80,13 +80,13 @@ module MailSlurpClient
|
|
80
80
|
self.subject = attributes[:'subject']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.key?(:'user_id')
|
84
|
-
self.user_id = attributes[:'user_id']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'created_at')
|
88
84
|
self.created_at = attributes[:'created_at']
|
89
85
|
end
|
86
|
+
|
87
|
+
if attributes.key?(:'user_id')
|
88
|
+
self.user_id = attributes[:'user_id']
|
89
|
+
end
|
90
90
|
end
|
91
91
|
|
92
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
id == o.id &&
|
121
121
|
from == o.from &&
|
122
122
|
subject == o.subject &&
|
123
|
-
|
124
|
-
|
123
|
+
created_at == o.created_at &&
|
124
|
+
user_id == o.user_id
|
125
125
|
end
|
126
126
|
|
127
127
|
# @see the `==` method
|
@@ -133,7 +133,7 @@ module MailSlurpClient
|
|
133
133
|
# Calculates hash code according to all attributes.
|
134
134
|
# @return [Integer] Hash code
|
135
135
|
def hash
|
136
|
-
[id, from, subject,
|
136
|
+
[id, from, subject, created_at, user_id].hash
|
137
137
|
end
|
138
138
|
|
139
139
|
# Builds the object from hash
|
@@ -42,6 +42,9 @@ module MailSlurpClient
|
|
42
42
|
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
|
43
43
|
attr_accessor :read_only
|
44
44
|
|
45
|
+
# Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions.
|
46
|
+
attr_accessor :virtual_inbox
|
47
|
+
|
45
48
|
class EnumAttributeValidator
|
46
49
|
attr_reader :datatype
|
47
50
|
attr_reader :allowable_values
|
@@ -75,7 +78,8 @@ module MailSlurpClient
|
|
75
78
|
:'tags' => :'tags',
|
76
79
|
:'team_access' => :'teamAccess',
|
77
80
|
:'inbox_type' => :'inboxType',
|
78
|
-
:'read_only' => :'readOnly'
|
81
|
+
:'read_only' => :'readOnly',
|
82
|
+
:'virtual_inbox' => :'virtualInbox'
|
79
83
|
}
|
80
84
|
end
|
81
85
|
|
@@ -90,7 +94,8 @@ module MailSlurpClient
|
|
90
94
|
:'tags' => :'Array<String>',
|
91
95
|
:'team_access' => :'Boolean',
|
92
96
|
:'inbox_type' => :'String',
|
93
|
-
:'read_only' => :'Boolean'
|
97
|
+
:'read_only' => :'Boolean',
|
98
|
+
:'virtual_inbox' => :'Boolean'
|
94
99
|
}
|
95
100
|
end
|
96
101
|
|
@@ -152,6 +157,10 @@ module MailSlurpClient
|
|
152
157
|
if attributes.key?(:'read_only')
|
153
158
|
self.read_only = attributes[:'read_only']
|
154
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'virtual_inbox')
|
162
|
+
self.virtual_inbox = attributes[:'virtual_inbox']
|
163
|
+
end
|
155
164
|
end
|
156
165
|
|
157
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -217,7 +226,8 @@ module MailSlurpClient
|
|
217
226
|
tags == o.tags &&
|
218
227
|
team_access == o.team_access &&
|
219
228
|
inbox_type == o.inbox_type &&
|
220
|
-
read_only == o.read_only
|
229
|
+
read_only == o.read_only &&
|
230
|
+
virtual_inbox == o.virtual_inbox
|
221
231
|
end
|
222
232
|
|
223
233
|
# @see the `==` method
|
@@ -229,7 +239,7 @@ module MailSlurpClient
|
|
229
239
|
# Calculates hash code according to all attributes.
|
230
240
|
# @return [Integer] Hash code
|
231
241
|
def hash
|
232
|
-
[id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only].hash
|
242
|
+
[id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
|
233
243
|
end
|
234
244
|
|
235
245
|
# Builds the object from hash
|
@@ -39,6 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Optionally use inbox name as display name for sender email address
|
40
40
|
attr_accessor :use_inbox_name
|
41
41
|
|
42
|
+
attr_accessor :html
|
43
|
+
|
42
44
|
class EnumAttributeValidator
|
43
45
|
attr_reader :datatype
|
44
46
|
attr_reader :allowable_values
|
@@ -71,7 +73,8 @@ module MailSlurpClient
|
|
71
73
|
:'template_variables' => :'templateVariables',
|
72
74
|
:'template' => :'template',
|
73
75
|
:'send_strategy' => :'sendStrategy',
|
74
|
-
:'use_inbox_name' => :'useInboxName'
|
76
|
+
:'use_inbox_name' => :'useInboxName',
|
77
|
+
:'html' => :'html'
|
75
78
|
}
|
76
79
|
end
|
77
80
|
|
@@ -85,7 +88,8 @@ module MailSlurpClient
|
|
85
88
|
:'template_variables' => :'Hash<String, Object>',
|
86
89
|
:'template' => :'String',
|
87
90
|
:'send_strategy' => :'String',
|
88
|
-
:'use_inbox_name' => :'Boolean'
|
91
|
+
:'use_inbox_name' => :'Boolean',
|
92
|
+
:'html' => :'Boolean'
|
89
93
|
}
|
90
94
|
end
|
91
95
|
|
@@ -145,6 +149,10 @@ module MailSlurpClient
|
|
145
149
|
if attributes.key?(:'use_inbox_name')
|
146
150
|
self.use_inbox_name = attributes[:'use_inbox_name']
|
147
151
|
end
|
152
|
+
|
153
|
+
if attributes.key?(:'html')
|
154
|
+
self.html = attributes[:'html']
|
155
|
+
end
|
148
156
|
end
|
149
157
|
|
150
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +202,8 @@ module MailSlurpClient
|
|
194
202
|
template_variables == o.template_variables &&
|
195
203
|
template == o.template &&
|
196
204
|
send_strategy == o.send_strategy &&
|
197
|
-
use_inbox_name == o.use_inbox_name
|
205
|
+
use_inbox_name == o.use_inbox_name &&
|
206
|
+
html == o.html
|
198
207
|
end
|
199
208
|
|
200
209
|
# @see the `==` method
|
@@ -206,7 +215,7 @@ module MailSlurpClient
|
|
206
215
|
# Calculates hash code according to all attributes.
|
207
216
|
# @return [Integer] Hash code
|
208
217
|
def hash
|
209
|
-
[body, is_html, charset, attachments, template_variables, template, send_strategy, use_inbox_name].hash
|
218
|
+
[body, is_html, charset, attachments, template_variables, template, send_strategy, use_inbox_name, html].hash
|
210
219
|
end
|
211
220
|
|
212
221
|
# Builds the object from hash
|
@@ -45,6 +45,8 @@ module MailSlurpClient
|
|
45
45
|
# Optionally use inbox name as display name for sender email address
|
46
46
|
attr_accessor :use_inbox_name
|
47
47
|
|
48
|
+
attr_accessor :html
|
49
|
+
|
48
50
|
class EnumAttributeValidator
|
49
51
|
attr_reader :datatype
|
50
52
|
attr_reader :allowable_values
|
@@ -79,7 +81,8 @@ module MailSlurpClient
|
|
79
81
|
:'template_variables' => :'templateVariables',
|
80
82
|
:'template' => :'template',
|
81
83
|
:'send_strategy' => :'sendStrategy',
|
82
|
-
:'use_inbox_name' => :'useInboxName'
|
84
|
+
:'use_inbox_name' => :'useInboxName',
|
85
|
+
:'html' => :'html'
|
83
86
|
}
|
84
87
|
end
|
85
88
|
|
@@ -95,7 +98,8 @@ module MailSlurpClient
|
|
95
98
|
:'template_variables' => :'Hash<String, Object>',
|
96
99
|
:'template' => :'String',
|
97
100
|
:'send_strategy' => :'String',
|
98
|
-
:'use_inbox_name' => :'Boolean'
|
101
|
+
:'use_inbox_name' => :'Boolean',
|
102
|
+
:'html' => :'Boolean'
|
99
103
|
}
|
100
104
|
end
|
101
105
|
|
@@ -163,6 +167,10 @@ module MailSlurpClient
|
|
163
167
|
if attributes.key?(:'use_inbox_name')
|
164
168
|
self.use_inbox_name = attributes[:'use_inbox_name']
|
165
169
|
end
|
170
|
+
|
171
|
+
if attributes.key?(:'html')
|
172
|
+
self.html = attributes[:'html']
|
173
|
+
end
|
166
174
|
end
|
167
175
|
|
168
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -214,7 +222,8 @@ module MailSlurpClient
|
|
214
222
|
template_variables == o.template_variables &&
|
215
223
|
template == o.template &&
|
216
224
|
send_strategy == o.send_strategy &&
|
217
|
-
use_inbox_name == o.use_inbox_name
|
225
|
+
use_inbox_name == o.use_inbox_name &&
|
226
|
+
html == o.html
|
218
227
|
end
|
219
228
|
|
220
229
|
# @see the `==` method
|
@@ -226,7 +235,7 @@ module MailSlurpClient
|
|
226
235
|
# Calculates hash code according to all attributes.
|
227
236
|
# @return [Integer] Hash code
|
228
237
|
def hash
|
229
|
-
[body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name].hash
|
238
|
+
[body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name, html].hash
|
230
239
|
end
|
231
240
|
|
232
241
|
# Builds the object from hash
|
@@ -55,6 +55,10 @@ module MailSlurpClient
|
|
55
55
|
|
56
56
|
attr_accessor :message_id
|
57
57
|
|
58
|
+
attr_accessor :virtual_send
|
59
|
+
|
60
|
+
attr_accessor :html
|
61
|
+
|
58
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
63
|
def self.attribute_map
|
60
64
|
{
|
@@ -74,7 +78,9 @@ module MailSlurpClient
|
|
74
78
|
:'is_html' => :'isHTML',
|
75
79
|
:'sent_at' => :'sentAt',
|
76
80
|
:'pixel_ids' => :'pixelIds',
|
77
|
-
:'message_id' => :'messageId'
|
81
|
+
:'message_id' => :'messageId',
|
82
|
+
:'virtual_send' => :'virtualSend',
|
83
|
+
:'html' => :'html'
|
78
84
|
}
|
79
85
|
end
|
80
86
|
|
@@ -97,7 +103,9 @@ module MailSlurpClient
|
|
97
103
|
:'is_html' => :'Boolean',
|
98
104
|
:'sent_at' => :'DateTime',
|
99
105
|
:'pixel_ids' => :'Array<String>',
|
100
|
-
:'message_id' => :'String'
|
106
|
+
:'message_id' => :'String',
|
107
|
+
:'virtual_send' => :'Boolean',
|
108
|
+
:'html' => :'Boolean'
|
101
109
|
}
|
102
110
|
end
|
103
111
|
|
@@ -199,6 +207,14 @@ module MailSlurpClient
|
|
199
207
|
if attributes.key?(:'message_id')
|
200
208
|
self.message_id = attributes[:'message_id']
|
201
209
|
end
|
210
|
+
|
211
|
+
if attributes.key?(:'virtual_send')
|
212
|
+
self.virtual_send = attributes[:'virtual_send']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'html')
|
216
|
+
self.html = attributes[:'html']
|
217
|
+
end
|
202
218
|
end
|
203
219
|
|
204
220
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -255,7 +271,9 @@ module MailSlurpClient
|
|
255
271
|
is_html == o.is_html &&
|
256
272
|
sent_at == o.sent_at &&
|
257
273
|
pixel_ids == o.pixel_ids &&
|
258
|
-
message_id == o.message_id
|
274
|
+
message_id == o.message_id &&
|
275
|
+
virtual_send == o.virtual_send &&
|
276
|
+
html == o.html
|
259
277
|
end
|
260
278
|
|
261
279
|
# @see the `==` method
|
@@ -267,7 +285,7 @@ module MailSlurpClient
|
|
267
285
|
# Calculates hash code according to all attributes.
|
268
286
|
# @return [Integer] Hash code
|
269
287
|
def hash
|
270
|
-
[id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id].hash
|
288
|
+
[id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id, virtual_send, html].hash
|
271
289
|
end
|
272
290
|
|
273
291
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
26
28
|
attr_accessor :inbox_id
|
27
29
|
|
28
30
|
attr_accessor :attachments
|
@@ -33,10 +35,10 @@ module MailSlurpClient
|
|
33
35
|
|
34
36
|
attr_accessor :cc
|
35
37
|
|
36
|
-
attr_accessor :created_at
|
37
|
-
|
38
38
|
attr_accessor :body_md5_hash
|
39
39
|
|
40
|
+
attr_accessor :virtual_send
|
41
|
+
|
40
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
43
|
def self.attribute_map
|
42
44
|
{
|
@@ -44,13 +46,14 @@ module MailSlurpClient
|
|
44
46
|
:'from' => :'from',
|
45
47
|
:'user_id' => :'userId',
|
46
48
|
:'subject' => :'subject',
|
49
|
+
:'created_at' => :'createdAt',
|
47
50
|
:'inbox_id' => :'inboxId',
|
48
51
|
:'attachments' => :'attachments',
|
49
52
|
:'to' => :'to',
|
50
53
|
:'bcc' => :'bcc',
|
51
54
|
:'cc' => :'cc',
|
52
|
-
:'
|
53
|
-
:'
|
55
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
56
|
+
:'virtual_send' => :'virtualSend'
|
54
57
|
}
|
55
58
|
end
|
56
59
|
|
@@ -61,13 +64,14 @@ module MailSlurpClient
|
|
61
64
|
:'from' => :'String',
|
62
65
|
:'user_id' => :'String',
|
63
66
|
:'subject' => :'String',
|
67
|
+
:'created_at' => :'DateTime',
|
64
68
|
:'inbox_id' => :'String',
|
65
69
|
:'attachments' => :'Array<String>',
|
66
70
|
:'to' => :'Array<String>',
|
67
71
|
:'bcc' => :'Array<String>',
|
68
72
|
:'cc' => :'Array<String>',
|
69
|
-
:'
|
70
|
-
:'
|
73
|
+
:'body_md5_hash' => :'String',
|
74
|
+
:'virtual_send' => :'Boolean'
|
71
75
|
}
|
72
76
|
end
|
73
77
|
|
@@ -108,6 +112,10 @@ module MailSlurpClient
|
|
108
112
|
self.subject = attributes[:'subject']
|
109
113
|
end
|
110
114
|
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
117
|
+
end
|
118
|
+
|
111
119
|
if attributes.key?(:'inbox_id')
|
112
120
|
self.inbox_id = attributes[:'inbox_id']
|
113
121
|
end
|
@@ -136,13 +144,13 @@ module MailSlurpClient
|
|
136
144
|
end
|
137
145
|
end
|
138
146
|
|
139
|
-
if attributes.key?(:'created_at')
|
140
|
-
self.created_at = attributes[:'created_at']
|
141
|
-
end
|
142
|
-
|
143
147
|
if attributes.key?(:'body_md5_hash')
|
144
148
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
145
149
|
end
|
150
|
+
|
151
|
+
if attributes.key?(:'virtual_send')
|
152
|
+
self.virtual_send = attributes[:'virtual_send']
|
153
|
+
end
|
146
154
|
end
|
147
155
|
|
148
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +165,10 @@ module MailSlurpClient
|
|
157
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
158
166
|
end
|
159
167
|
|
168
|
+
if @created_at.nil?
|
169
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
|
+
end
|
171
|
+
|
160
172
|
if @inbox_id.nil?
|
161
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
162
174
|
end
|
@@ -177,10 +189,6 @@ module MailSlurpClient
|
|
177
189
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
178
190
|
end
|
179
191
|
|
180
|
-
if @created_at.nil?
|
181
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
-
end
|
183
|
-
|
184
192
|
invalid_properties
|
185
193
|
end
|
186
194
|
|
@@ -189,12 +197,12 @@ module MailSlurpClient
|
|
189
197
|
def valid?
|
190
198
|
return false if @id.nil?
|
191
199
|
return false if @user_id.nil?
|
200
|
+
return false if @created_at.nil?
|
192
201
|
return false if @inbox_id.nil?
|
193
202
|
return false if @attachments.nil?
|
194
203
|
return false if @to.nil?
|
195
204
|
return false if @bcc.nil?
|
196
205
|
return false if @cc.nil?
|
197
|
-
return false if @created_at.nil?
|
198
206
|
true
|
199
207
|
end
|
200
208
|
|
@@ -207,13 +215,14 @@ module MailSlurpClient
|
|
207
215
|
from == o.from &&
|
208
216
|
user_id == o.user_id &&
|
209
217
|
subject == o.subject &&
|
218
|
+
created_at == o.created_at &&
|
210
219
|
inbox_id == o.inbox_id &&
|
211
220
|
attachments == o.attachments &&
|
212
221
|
to == o.to &&
|
213
222
|
bcc == o.bcc &&
|
214
223
|
cc == o.cc &&
|
215
|
-
|
216
|
-
|
224
|
+
body_md5_hash == o.body_md5_hash &&
|
225
|
+
virtual_send == o.virtual_send
|
217
226
|
end
|
218
227
|
|
219
228
|
# @see the `==` method
|
@@ -225,7 +234,7 @@ module MailSlurpClient
|
|
225
234
|
# Calculates hash code according to all attributes.
|
226
235
|
# @return [Integer] Hash code
|
227
236
|
def hash
|
228
|
-
[id, from, user_id, subject, inbox_id, attachments, to, bcc, cc,
|
237
|
+
[id, from, user_id, subject, created_at, inbox_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
|
229
238
|
end
|
230
239
|
|
231
240
|
# Builds the object from hash
|
@@ -21,6 +21,8 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
24
26
|
attr_accessor :user_id
|
25
27
|
|
26
28
|
attr_accessor :inbox_id
|
@@ -31,8 +33,6 @@ module MailSlurpClient
|
|
31
33
|
|
32
34
|
attr_accessor :cc
|
33
35
|
|
34
|
-
attr_accessor :created_at
|
35
|
-
|
36
36
|
attr_accessor :updated_at
|
37
37
|
|
38
38
|
attr_accessor :alias_id
|
@@ -43,12 +43,12 @@ module MailSlurpClient
|
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id',
|
45
45
|
:'subject' => :'subject',
|
46
|
+
:'created_at' => :'createdAt',
|
46
47
|
:'user_id' => :'userId',
|
47
48
|
:'inbox_id' => :'inboxId',
|
48
49
|
:'to' => :'to',
|
49
50
|
:'bcc' => :'bcc',
|
50
51
|
:'cc' => :'cc',
|
51
|
-
:'created_at' => :'createdAt',
|
52
52
|
:'updated_at' => :'updatedAt',
|
53
53
|
:'alias_id' => :'aliasId'
|
54
54
|
}
|
@@ -60,12 +60,12 @@ module MailSlurpClient
|
|
60
60
|
:'name' => :'String',
|
61
61
|
:'id' => :'String',
|
62
62
|
:'subject' => :'String',
|
63
|
+
:'created_at' => :'DateTime',
|
63
64
|
:'user_id' => :'String',
|
64
65
|
:'inbox_id' => :'String',
|
65
66
|
:'to' => :'Array<String>',
|
66
67
|
:'bcc' => :'Array<String>',
|
67
68
|
:'cc' => :'Array<String>',
|
68
|
-
:'created_at' => :'DateTime',
|
69
69
|
:'updated_at' => :'DateTime',
|
70
70
|
:'alias_id' => :'String'
|
71
71
|
}
|
@@ -104,6 +104,10 @@ module MailSlurpClient
|
|
104
104
|
self.subject = attributes[:'subject']
|
105
105
|
end
|
106
106
|
|
107
|
+
if attributes.key?(:'created_at')
|
108
|
+
self.created_at = attributes[:'created_at']
|
109
|
+
end
|
110
|
+
|
107
111
|
if attributes.key?(:'user_id')
|
108
112
|
self.user_id = attributes[:'user_id']
|
109
113
|
end
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
130
134
|
end
|
131
135
|
end
|
132
136
|
|
133
|
-
if attributes.key?(:'created_at')
|
134
|
-
self.created_at = attributes[:'created_at']
|
135
|
-
end
|
136
|
-
|
137
137
|
if attributes.key?(:'updated_at')
|
138
138
|
self.updated_at = attributes[:'updated_at']
|
139
139
|
end
|
@@ -151,6 +151,10 @@ module MailSlurpClient
|
|
151
151
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
152
152
|
end
|
153
153
|
|
154
|
+
if @created_at.nil?
|
155
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
156
|
+
end
|
157
|
+
|
154
158
|
if @user_id.nil?
|
155
159
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
156
160
|
end
|
@@ -163,10 +167,6 @@ module MailSlurpClient
|
|
163
167
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
164
168
|
end
|
165
169
|
|
166
|
-
if @created_at.nil?
|
167
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
170
|
if @updated_at.nil?
|
171
171
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
172
172
|
end
|
@@ -182,10 +182,10 @@ module MailSlurpClient
|
|
182
182
|
# @return true if the model is valid
|
183
183
|
def valid?
|
184
184
|
return false if @id.nil?
|
185
|
+
return false if @created_at.nil?
|
185
186
|
return false if @user_id.nil?
|
186
187
|
return false if @inbox_id.nil?
|
187
188
|
return false if @to.nil?
|
188
|
-
return false if @created_at.nil?
|
189
189
|
return false if @updated_at.nil?
|
190
190
|
return false if @alias_id.nil?
|
191
191
|
true
|
@@ -199,12 +199,12 @@ module MailSlurpClient
|
|
199
199
|
name == o.name &&
|
200
200
|
id == o.id &&
|
201
201
|
subject == o.subject &&
|
202
|
+
created_at == o.created_at &&
|
202
203
|
user_id == o.user_id &&
|
203
204
|
inbox_id == o.inbox_id &&
|
204
205
|
to == o.to &&
|
205
206
|
bcc == o.bcc &&
|
206
207
|
cc == o.cc &&
|
207
|
-
created_at == o.created_at &&
|
208
208
|
updated_at == o.updated_at &&
|
209
209
|
alias_id == o.alias_id
|
210
210
|
end
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[name, id, subject, user_id, inbox_id, to, bcc, cc,
|
221
|
+
[name, id, subject, created_at, user_id, inbox_id, to, bcc, cc, updated_at, alias_id].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
22
24
|
attr_accessor :user_id
|
23
25
|
|
24
26
|
attr_accessor :inbox_id
|
25
27
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
28
|
attr_accessor :recipient
|
29
29
|
|
30
30
|
attr_accessor :seen
|
@@ -38,9 +38,9 @@ module MailSlurpClient
|
|
38
38
|
{
|
39
39
|
:'name' => :'name',
|
40
40
|
:'id' => :'id',
|
41
|
+
:'created_at' => :'createdAt',
|
41
42
|
:'user_id' => :'userId',
|
42
43
|
:'inbox_id' => :'inboxId',
|
43
|
-
:'created_at' => :'createdAt',
|
44
44
|
:'recipient' => :'recipient',
|
45
45
|
:'seen' => :'seen',
|
46
46
|
:'seen_at' => :'seenAt',
|
@@ -53,9 +53,9 @@ module MailSlurpClient
|
|
53
53
|
{
|
54
54
|
:'name' => :'String',
|
55
55
|
:'id' => :'String',
|
56
|
+
:'created_at' => :'DateTime',
|
56
57
|
:'user_id' => :'String',
|
57
58
|
:'inbox_id' => :'String',
|
58
|
-
:'created_at' => :'DateTime',
|
59
59
|
:'recipient' => :'String',
|
60
60
|
:'seen' => :'Boolean',
|
61
61
|
:'seen_at' => :'DateTime',
|
@@ -92,6 +92,10 @@ module MailSlurpClient
|
|
92
92
|
self.id = attributes[:'id']
|
93
93
|
end
|
94
94
|
|
95
|
+
if attributes.key?(:'created_at')
|
96
|
+
self.created_at = attributes[:'created_at']
|
97
|
+
end
|
98
|
+
|
95
99
|
if attributes.key?(:'user_id')
|
96
100
|
self.user_id = attributes[:'user_id']
|
97
101
|
end
|
@@ -100,10 +104,6 @@ module MailSlurpClient
|
|
100
104
|
self.inbox_id = attributes[:'inbox_id']
|
101
105
|
end
|
102
106
|
|
103
|
-
if attributes.key?(:'created_at')
|
104
|
-
self.created_at = attributes[:'created_at']
|
105
|
-
end
|
106
|
-
|
107
107
|
if attributes.key?(:'recipient')
|
108
108
|
self.recipient = attributes[:'recipient']
|
109
109
|
end
|
@@ -129,14 +129,14 @@ module MailSlurpClient
|
|
129
129
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
130
130
|
end
|
131
131
|
|
132
|
-
if @user_id.nil?
|
133
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
132
|
if @created_at.nil?
|
137
133
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if @user_id.nil?
|
137
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
140
|
if @seen.nil?
|
141
141
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
142
142
|
end
|
@@ -148,8 +148,8 @@ module MailSlurpClient
|
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
|
-
return false if @user_id.nil?
|
152
151
|
return false if @created_at.nil?
|
152
|
+
return false if @user_id.nil?
|
153
153
|
return false if @seen.nil?
|
154
154
|
true
|
155
155
|
end
|
@@ -161,9 +161,9 @@ module MailSlurpClient
|
|
161
161
|
self.class == o.class &&
|
162
162
|
name == o.name &&
|
163
163
|
id == o.id &&
|
164
|
+
created_at == o.created_at &&
|
164
165
|
user_id == o.user_id &&
|
165
166
|
inbox_id == o.inbox_id &&
|
166
|
-
created_at == o.created_at &&
|
167
167
|
recipient == o.recipient &&
|
168
168
|
seen == o.seen &&
|
169
169
|
seen_at == o.seen_at &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[name, id, user_id, inbox_id,
|
182
|
+
[name, id, created_at, user_id, inbox_id, recipient, seen, seen_at, sent_email_id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|