mailslurp_client 15.7.13 → 15.7.16
Sign up to get free protection for your applications and to get access to all the features.
- 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_entity.rb +1 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +16 -15
- data/lib/mailslurp_client/models/bounce_projection.rb +1 -0
- data/lib/mailslurp_client/models/bounce_recipient.rb +1 -0
- data/lib/mailslurp_client/models/contact_dto.rb +1 -0
- data/lib/mailslurp_client/models/contact_projection.rb +14 -13
- data/lib/mailslurp_client/models/count_dto.rb +1 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
- data/lib/mailslurp_client/models/create_group_options.rb +1 -0
- data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
- data/lib/mailslurp_client/models/create_template_options.rb +1 -0
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -0
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -0
- data/lib/mailslurp_client/models/email.rb +13 -4
- data/lib/mailslurp_client/models/email_preview_urls.rb +1 -0
- data/lib/mailslurp_client/models/email_projection.rb +32 -32
- data/lib/mailslurp_client/models/email_validation_request.rb +1 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -18
- data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -0
- data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -0
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -0
- data/lib/mailslurp_client/models/gravatar_url.rb +1 -0
- data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -0
- data/lib/mailslurp_client/models/group_dto.rb +1 -0
- data/lib/mailslurp_client/models/group_projection.rb +1 -0
- data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +9 -0
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_id_item.rb +1 -0
- data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_preview.rb +12 -1
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -0
- data/lib/mailslurp_client/models/inline_object1.rb +270 -0
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -0
- data/lib/mailslurp_client/models/missed_email.rb +1 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -13
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +15 -4
- data/lib/mailslurp_client/models/recipient.rb +1 -0
- 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 +38 -29
- data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
- data/lib/mailslurp_client/models/template_dto.rb +1 -0
- data/lib/mailslurp_client/models/template_projection.rb +1 -0
- data/lib/mailslurp_client/models/template_variable.rb +1 -0
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +16 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
- data/lib/mailslurp_client/models/unread_count.rb +1 -0
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
- data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
- data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
- data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
@@ -23,20 +23,22 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :created_at
|
27
27
|
|
28
28
|
attr_accessor :inbox_id
|
29
29
|
|
30
|
+
attr_accessor :attachments
|
31
|
+
|
30
32
|
attr_accessor :to
|
31
33
|
|
32
34
|
attr_accessor :bcc
|
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',
|
47
|
-
:'
|
49
|
+
:'created_at' => :'createdAt',
|
48
50
|
:'inbox_id' => :'inboxId',
|
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',
|
64
|
-
:'
|
67
|
+
:'created_at' => :'DateTime',
|
65
68
|
:'inbox_id' => :'String',
|
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,16 +112,20 @@ module MailSlurpClient
|
|
108
112
|
self.subject = attributes[:'subject']
|
109
113
|
end
|
110
114
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
|
113
|
-
self.attachments = value
|
114
|
-
end
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
115
117
|
end
|
116
118
|
|
117
119
|
if attributes.key?(:'inbox_id')
|
118
120
|
self.inbox_id = attributes[:'inbox_id']
|
119
121
|
end
|
120
122
|
|
123
|
+
if attributes.key?(:'attachments')
|
124
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
125
|
+
self.attachments = value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
121
129
|
if attributes.key?(:'to')
|
122
130
|
if (value = attributes[:'to']).is_a?(Array)
|
123
131
|
self.to = value
|
@@ -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,14 +165,18 @@ module MailSlurpClient
|
|
157
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
158
166
|
end
|
159
167
|
|
160
|
-
if @
|
161
|
-
invalid_properties.push('invalid value for "
|
168
|
+
if @created_at.nil?
|
169
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
162
170
|
end
|
163
171
|
|
164
172
|
if @inbox_id.nil?
|
165
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
166
174
|
end
|
167
175
|
|
176
|
+
if @attachments.nil?
|
177
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
178
|
+
end
|
179
|
+
|
168
180
|
if @to.nil?
|
169
181
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
170
182
|
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?
|
192
|
-
return false if @
|
200
|
+
return false if @created_at.nil?
|
193
201
|
return false if @inbox_id.nil?
|
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 &&
|
210
|
-
|
218
|
+
created_at == o.created_at &&
|
211
219
|
inbox_id == o.inbox_id &&
|
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,
|
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
|
@@ -13,17 +13,18 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Tracking pixel data
|
16
17
|
class TrackingPixelProjection
|
17
18
|
attr_accessor :name
|
18
19
|
|
19
20
|
attr_accessor :id
|
20
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
21
24
|
attr_accessor :user_id
|
22
25
|
|
23
26
|
attr_accessor :inbox_id
|
24
27
|
|
25
|
-
attr_accessor :created_at
|
26
|
-
|
27
28
|
attr_accessor :recipient
|
28
29
|
|
29
30
|
attr_accessor :seen
|
@@ -37,9 +38,9 @@ module MailSlurpClient
|
|
37
38
|
{
|
38
39
|
:'name' => :'name',
|
39
40
|
:'id' => :'id',
|
41
|
+
:'created_at' => :'createdAt',
|
40
42
|
:'user_id' => :'userId',
|
41
43
|
:'inbox_id' => :'inboxId',
|
42
|
-
:'created_at' => :'createdAt',
|
43
44
|
:'recipient' => :'recipient',
|
44
45
|
:'seen' => :'seen',
|
45
46
|
:'seen_at' => :'seenAt',
|
@@ -52,9 +53,9 @@ module MailSlurpClient
|
|
52
53
|
{
|
53
54
|
:'name' => :'String',
|
54
55
|
:'id' => :'String',
|
56
|
+
:'created_at' => :'DateTime',
|
55
57
|
:'user_id' => :'String',
|
56
58
|
:'inbox_id' => :'String',
|
57
|
-
:'created_at' => :'DateTime',
|
58
59
|
:'recipient' => :'String',
|
59
60
|
:'seen' => :'Boolean',
|
60
61
|
:'seen_at' => :'DateTime',
|
@@ -91,6 +92,10 @@ module MailSlurpClient
|
|
91
92
|
self.id = attributes[:'id']
|
92
93
|
end
|
93
94
|
|
95
|
+
if attributes.key?(:'created_at')
|
96
|
+
self.created_at = attributes[:'created_at']
|
97
|
+
end
|
98
|
+
|
94
99
|
if attributes.key?(:'user_id')
|
95
100
|
self.user_id = attributes[:'user_id']
|
96
101
|
end
|
@@ -99,10 +104,6 @@ module MailSlurpClient
|
|
99
104
|
self.inbox_id = attributes[:'inbox_id']
|
100
105
|
end
|
101
106
|
|
102
|
-
if attributes.key?(:'created_at')
|
103
|
-
self.created_at = attributes[:'created_at']
|
104
|
-
end
|
105
|
-
|
106
107
|
if attributes.key?(:'recipient')
|
107
108
|
self.recipient = attributes[:'recipient']
|
108
109
|
end
|
@@ -128,14 +129,14 @@ module MailSlurpClient
|
|
128
129
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
129
130
|
end
|
130
131
|
|
131
|
-
if @user_id.nil?
|
132
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
132
|
if @created_at.nil?
|
136
133
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
137
134
|
end
|
138
135
|
|
136
|
+
if @user_id.nil?
|
137
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
138
|
+
end
|
139
|
+
|
139
140
|
if @seen.nil?
|
140
141
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
141
142
|
end
|
@@ -147,8 +148,8 @@ module MailSlurpClient
|
|
147
148
|
# @return true if the model is valid
|
148
149
|
def valid?
|
149
150
|
return false if @id.nil?
|
150
|
-
return false if @user_id.nil?
|
151
151
|
return false if @created_at.nil?
|
152
|
+
return false if @user_id.nil?
|
152
153
|
return false if @seen.nil?
|
153
154
|
true
|
154
155
|
end
|
@@ -160,9 +161,9 @@ module MailSlurpClient
|
|
160
161
|
self.class == o.class &&
|
161
162
|
name == o.name &&
|
162
163
|
id == o.id &&
|
164
|
+
created_at == o.created_at &&
|
163
165
|
user_id == o.user_id &&
|
164
166
|
inbox_id == o.inbox_id &&
|
165
|
-
created_at == o.created_at &&
|
166
167
|
recipient == o.recipient &&
|
167
168
|
seen == o.seen &&
|
168
169
|
seen_at == o.seen_at &&
|
@@ -178,7 +179,7 @@ module MailSlurpClient
|
|
178
179
|
# Calculates hash code according to all attributes.
|
179
180
|
# @return [Integer] Hash code
|
180
181
|
def hash
|
181
|
-
[name, id, user_id, inbox_id,
|
182
|
+
[name, id, created_at, user_id, inbox_id, recipient, seen, seen_at, sent_email_id].hash
|
182
183
|
end
|
183
184
|
|
184
185
|
# Builds the object from hash
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Unknown missed email projection
|
16
17
|
class UnknownMissedEmailProjection
|
17
18
|
attr_accessor :id
|
18
19
|
|
@@ -20,18 +21,18 @@ module MailSlurpClient
|
|
20
21
|
|
21
22
|
attr_accessor :subject
|
22
23
|
|
23
|
-
attr_accessor :to
|
24
|
-
|
25
24
|
attr_accessor :created_at
|
26
25
|
|
26
|
+
attr_accessor :to
|
27
|
+
|
27
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
29
|
def self.attribute_map
|
29
30
|
{
|
30
31
|
:'id' => :'id',
|
31
32
|
:'from' => :'from',
|
32
33
|
:'subject' => :'subject',
|
33
|
-
:'
|
34
|
-
:'
|
34
|
+
:'created_at' => :'createdAt',
|
35
|
+
:'to' => :'to'
|
35
36
|
}
|
36
37
|
end
|
37
38
|
|
@@ -41,8 +42,8 @@ module MailSlurpClient
|
|
41
42
|
:'id' => :'String',
|
42
43
|
:'from' => :'String',
|
43
44
|
:'subject' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
45
|
+
:'created_at' => :'DateTime',
|
46
|
+
:'to' => :'Array<String>'
|
46
47
|
}
|
47
48
|
end
|
48
49
|
|
@@ -79,15 +80,15 @@ module MailSlurpClient
|
|
79
80
|
self.subject = attributes[:'subject']
|
80
81
|
end
|
81
82
|
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
82
87
|
if attributes.key?(:'to')
|
83
88
|
if (value = attributes[:'to']).is_a?(Array)
|
84
89
|
self.to = value
|
85
90
|
end
|
86
91
|
end
|
87
|
-
|
88
|
-
if attributes.key?(:'created_at')
|
89
|
-
self.created_at = attributes[:'created_at']
|
90
|
-
end
|
91
92
|
end
|
92
93
|
|
93
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,8 +122,8 @@ module MailSlurpClient
|
|
121
122
|
id == o.id &&
|
122
123
|
from == o.from &&
|
123
124
|
subject == o.subject &&
|
124
|
-
|
125
|
-
|
125
|
+
created_at == o.created_at &&
|
126
|
+
to == o.to
|
126
127
|
end
|
127
128
|
|
128
129
|
# @see the `==` method
|
@@ -134,7 +135,7 @@ module MailSlurpClient
|
|
134
135
|
# Calculates hash code according to all attributes.
|
135
136
|
# @return [Integer] Hash code
|
136
137
|
def hash
|
137
|
-
[id, from, subject,
|
138
|
+
[id, from, subject, created_at, to].hash
|
138
139
|
end
|
139
140
|
|
140
141
|
# Builds the object from hash
|
@@ -21,12 +21,12 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :url
|
23
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
24
26
|
attr_accessor :inbox_id
|
25
27
|
|
26
28
|
attr_accessor :event_name
|
27
29
|
|
28
|
-
attr_accessor :created_at
|
29
|
-
|
30
30
|
attr_accessor :updated_at
|
31
31
|
|
32
32
|
class EnumAttributeValidator
|
@@ -57,9 +57,9 @@ module MailSlurpClient
|
|
57
57
|
:'name' => :'name',
|
58
58
|
:'id' => :'id',
|
59
59
|
:'url' => :'url',
|
60
|
+
:'created_at' => :'createdAt',
|
60
61
|
:'inbox_id' => :'inboxId',
|
61
62
|
:'event_name' => :'eventName',
|
62
|
-
:'created_at' => :'createdAt',
|
63
63
|
:'updated_at' => :'updatedAt'
|
64
64
|
}
|
65
65
|
end
|
@@ -70,9 +70,9 @@ module MailSlurpClient
|
|
70
70
|
:'name' => :'String',
|
71
71
|
:'id' => :'String',
|
72
72
|
:'url' => :'String',
|
73
|
+
:'created_at' => :'DateTime',
|
73
74
|
:'inbox_id' => :'String',
|
74
75
|
:'event_name' => :'String',
|
75
|
-
:'created_at' => :'DateTime',
|
76
76
|
:'updated_at' => :'DateTime'
|
77
77
|
}
|
78
78
|
end
|
@@ -110,6 +110,10 @@ module MailSlurpClient
|
|
110
110
|
self.url = attributes[:'url']
|
111
111
|
end
|
112
112
|
|
113
|
+
if attributes.key?(:'created_at')
|
114
|
+
self.created_at = attributes[:'created_at']
|
115
|
+
end
|
116
|
+
|
113
117
|
if attributes.key?(:'inbox_id')
|
114
118
|
self.inbox_id = attributes[:'inbox_id']
|
115
119
|
end
|
@@ -118,10 +122,6 @@ module MailSlurpClient
|
|
118
122
|
self.event_name = attributes[:'event_name']
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'created_at')
|
122
|
-
self.created_at = attributes[:'created_at']
|
123
|
-
end
|
124
|
-
|
125
125
|
if attributes.key?(:'updated_at')
|
126
126
|
self.updated_at = attributes[:'updated_at']
|
127
127
|
end
|
@@ -155,9 +155,9 @@ module MailSlurpClient
|
|
155
155
|
def valid?
|
156
156
|
return false if @id.nil?
|
157
157
|
return false if @url.nil?
|
158
|
+
return false if @created_at.nil?
|
158
159
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
|
159
160
|
return false unless event_name_validator.valid?(@event_name)
|
160
|
-
return false if @created_at.nil?
|
161
161
|
return false if @updated_at.nil?
|
162
162
|
true
|
163
163
|
end
|
@@ -180,9 +180,9 @@ module MailSlurpClient
|
|
180
180
|
name == o.name &&
|
181
181
|
id == o.id &&
|
182
182
|
url == o.url &&
|
183
|
+
created_at == o.created_at &&
|
183
184
|
inbox_id == o.inbox_id &&
|
184
185
|
event_name == o.event_name &&
|
185
|
-
created_at == o.created_at &&
|
186
186
|
updated_at == o.updated_at
|
187
187
|
end
|
188
188
|
|
@@ -195,7 +195,7 @@ module MailSlurpClient
|
|
195
195
|
# Calculates hash code according to all attributes.
|
196
196
|
# @return [Integer] Hash code
|
197
197
|
def hash
|
198
|
-
[name, id, url, inbox_id, event_name,
|
198
|
+
[name, id, url, created_at, inbox_id, event_name, updated_at].hash
|
199
199
|
end
|
200
200
|
|
201
201
|
# Builds the object from hash
|