mailslurp_client 15.7.15 → 15.8.0
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 +5 -2
- data/lib/mailslurp_client/api/template_controller_api.rb +28 -16
- data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -10
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/alias_projection.rb +27 -27
- data/lib/mailslurp_client/models/attachment_projection.rb +22 -22
- 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/create_template_options.rb +3 -1
- data/lib/mailslurp_client/models/email.rb +13 -4
- data/lib/mailslurp_client/models/email_projection.rb +35 -35
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +2 -0
- 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/organization_inbox_projection.rb +14 -4
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- 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 +41 -32
- data/lib/mailslurp_client/models/template_dto.rb +5 -0
- data/lib/mailslurp_client/models/template_projection.rb +18 -18
- data/lib/mailslurp_client/models/template_variable.rb +2 -0
- data/lib/mailslurp_client/models/thread_projection.rb +49 -38
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
- data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +225 -0
- data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +211 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -0
- metadata +5 -2
@@ -20,28 +20,28 @@ module MailSlurpClient
|
|
20
20
|
# Content length of attachment in bytes
|
21
21
|
attr_accessor :content_length
|
22
22
|
|
23
|
-
# Content type of attachment.
|
24
|
-
attr_accessor :content_type
|
25
|
-
|
26
23
|
attr_accessor :user_id
|
27
24
|
|
28
25
|
# Attachment ID
|
29
26
|
attr_accessor :attachment_id
|
30
27
|
|
28
|
+
attr_accessor :updated_at
|
29
|
+
|
31
30
|
attr_accessor :created_at
|
32
31
|
|
33
|
-
|
32
|
+
# Content type of attachment.
|
33
|
+
attr_accessor :content_type
|
34
34
|
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
36
|
def self.attribute_map
|
37
37
|
{
|
38
38
|
:'name' => :'name',
|
39
39
|
:'content_length' => :'contentLength',
|
40
|
-
:'content_type' => :'contentType',
|
41
40
|
:'user_id' => :'userId',
|
42
41
|
:'attachment_id' => :'attachmentId',
|
42
|
+
:'updated_at' => :'updatedAt',
|
43
43
|
:'created_at' => :'createdAt',
|
44
|
-
:'
|
44
|
+
:'content_type' => :'contentType'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -50,11 +50,11 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'content_length' => :'Integer',
|
53
|
-
:'content_type' => :'String',
|
54
53
|
:'user_id' => :'String',
|
55
54
|
:'attachment_id' => :'String',
|
55
|
+
:'updated_at' => :'DateTime',
|
56
56
|
:'created_at' => :'DateTime',
|
57
|
-
:'
|
57
|
+
:'content_type' => :'String'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -87,10 +87,6 @@ module MailSlurpClient
|
|
87
87
|
self.content_length = attributes[:'content_length']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'content_type')
|
91
|
-
self.content_type = attributes[:'content_type']
|
92
|
-
end
|
93
|
-
|
94
90
|
if attributes.key?(:'user_id')
|
95
91
|
self.user_id = attributes[:'user_id']
|
96
92
|
end
|
@@ -99,12 +95,16 @@ module MailSlurpClient
|
|
99
95
|
self.attachment_id = attributes[:'attachment_id']
|
100
96
|
end
|
101
97
|
|
98
|
+
if attributes.key?(:'updated_at')
|
99
|
+
self.updated_at = attributes[:'updated_at']
|
100
|
+
end
|
101
|
+
|
102
102
|
if attributes.key?(:'created_at')
|
103
103
|
self.created_at = attributes[:'created_at']
|
104
104
|
end
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
106
|
+
if attributes.key?(:'content_type')
|
107
|
+
self.content_type = attributes[:'content_type']
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
@@ -120,14 +120,14 @@ module MailSlurpClient
|
|
120
120
|
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
121
121
|
end
|
122
122
|
|
123
|
-
if @created_at.nil?
|
124
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
125
|
-
end
|
126
|
-
|
127
123
|
if @updated_at.nil?
|
128
124
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
129
125
|
end
|
130
126
|
|
127
|
+
if @created_at.nil?
|
128
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
131
|
invalid_properties
|
132
132
|
end
|
133
133
|
|
@@ -136,8 +136,8 @@ module MailSlurpClient
|
|
136
136
|
def valid?
|
137
137
|
return false if @user_id.nil?
|
138
138
|
return false if @attachment_id.nil?
|
139
|
-
return false if @created_at.nil?
|
140
139
|
return false if @updated_at.nil?
|
140
|
+
return false if @created_at.nil?
|
141
141
|
true
|
142
142
|
end
|
143
143
|
|
@@ -148,11 +148,11 @@ module MailSlurpClient
|
|
148
148
|
self.class == o.class &&
|
149
149
|
name == o.name &&
|
150
150
|
content_length == o.content_length &&
|
151
|
-
content_type == o.content_type &&
|
152
151
|
user_id == o.user_id &&
|
153
152
|
attachment_id == o.attachment_id &&
|
153
|
+
updated_at == o.updated_at &&
|
154
154
|
created_at == o.created_at &&
|
155
|
-
|
155
|
+
content_type == o.content_type
|
156
156
|
end
|
157
157
|
|
158
158
|
# @see the `==` method
|
@@ -164,7 +164,7 @@ module MailSlurpClient
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[name, content_length,
|
167
|
+
[name, content_length, user_id, attachment_id, updated_at, created_at, content_type].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|
@@ -13,11 +13,14 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Email contact for address book
|
16
17
|
class ContactProjection
|
17
18
|
attr_accessor :id
|
18
19
|
|
19
20
|
attr_accessor :group_id
|
20
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
21
24
|
attr_accessor :first_name
|
22
25
|
|
23
26
|
attr_accessor :last_name
|
@@ -28,19 +31,17 @@ module MailSlurpClient
|
|
28
31
|
|
29
32
|
attr_accessor :opt_out
|
30
33
|
|
31
|
-
attr_accessor :created_at
|
32
|
-
|
33
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
35
|
def self.attribute_map
|
35
36
|
{
|
36
37
|
:'id' => :'id',
|
37
38
|
:'group_id' => :'groupId',
|
39
|
+
:'created_at' => :'createdAt',
|
38
40
|
:'first_name' => :'firstName',
|
39
41
|
:'last_name' => :'lastName',
|
40
42
|
:'company' => :'company',
|
41
43
|
:'email_addresses' => :'emailAddresses',
|
42
|
-
:'opt_out' => :'optOut'
|
43
|
-
:'created_at' => :'createdAt'
|
44
|
+
:'opt_out' => :'optOut'
|
44
45
|
}
|
45
46
|
end
|
46
47
|
|
@@ -49,12 +50,12 @@ module MailSlurpClient
|
|
49
50
|
{
|
50
51
|
:'id' => :'String',
|
51
52
|
:'group_id' => :'String',
|
53
|
+
:'created_at' => :'DateTime',
|
52
54
|
:'first_name' => :'String',
|
53
55
|
:'last_name' => :'String',
|
54
56
|
:'company' => :'String',
|
55
57
|
:'email_addresses' => :'Array<String>',
|
56
|
-
:'opt_out' => :'Boolean'
|
57
|
-
:'created_at' => :'DateTime'
|
58
|
+
:'opt_out' => :'Boolean'
|
58
59
|
}
|
59
60
|
end
|
60
61
|
|
@@ -87,6 +88,10 @@ module MailSlurpClient
|
|
87
88
|
self.group_id = attributes[:'group_id']
|
88
89
|
end
|
89
90
|
|
91
|
+
if attributes.key?(:'created_at')
|
92
|
+
self.created_at = attributes[:'created_at']
|
93
|
+
end
|
94
|
+
|
90
95
|
if attributes.key?(:'first_name')
|
91
96
|
self.first_name = attributes[:'first_name']
|
92
97
|
end
|
@@ -108,10 +113,6 @@ module MailSlurpClient
|
|
108
113
|
if attributes.key?(:'opt_out')
|
109
114
|
self.opt_out = attributes[:'opt_out']
|
110
115
|
end
|
111
|
-
|
112
|
-
if attributes.key?(:'created_at')
|
113
|
-
self.created_at = attributes[:'created_at']
|
114
|
-
end
|
115
116
|
end
|
116
117
|
|
117
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -144,12 +145,12 @@ module MailSlurpClient
|
|
144
145
|
self.class == o.class &&
|
145
146
|
id == o.id &&
|
146
147
|
group_id == o.group_id &&
|
148
|
+
created_at == o.created_at &&
|
147
149
|
first_name == o.first_name &&
|
148
150
|
last_name == o.last_name &&
|
149
151
|
company == o.company &&
|
150
152
|
email_addresses == o.email_addresses &&
|
151
|
-
opt_out == o.opt_out
|
152
|
-
created_at == o.created_at
|
153
|
+
opt_out == o.opt_out
|
153
154
|
end
|
154
155
|
|
155
156
|
# @see the `==` method
|
@@ -161,7 +162,7 @@ module MailSlurpClient
|
|
161
162
|
# Calculates hash code according to all attributes.
|
162
163
|
# @return [Integer] Hash code
|
163
164
|
def hash
|
164
|
-
[id, group_id, first_name, last_name, company, email_addresses, opt_out
|
165
|
+
[id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
|
165
166
|
end
|
166
167
|
|
167
168
|
# Builds the object from hash
|
@@ -45,6 +45,9 @@ module MailSlurpClient
|
|
45
45
|
# Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
|
46
46
|
attr_accessor :inbox_type
|
47
47
|
|
48
|
+
# Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
|
49
|
+
attr_accessor :virtual_inbox
|
50
|
+
|
48
51
|
class EnumAttributeValidator
|
49
52
|
attr_reader :datatype
|
50
53
|
attr_reader :allowable_values
|
@@ -79,7 +82,8 @@ module MailSlurpClient
|
|
79
82
|
:'favourite' => :'favourite',
|
80
83
|
:'expires_in' => :'expiresIn',
|
81
84
|
:'allow_team_access' => :'allowTeamAccess',
|
82
|
-
:'inbox_type' => :'inboxType'
|
85
|
+
:'inbox_type' => :'inboxType',
|
86
|
+
:'virtual_inbox' => :'virtualInbox'
|
83
87
|
}
|
84
88
|
end
|
85
89
|
|
@@ -95,7 +99,8 @@ module MailSlurpClient
|
|
95
99
|
:'favourite' => :'Boolean',
|
96
100
|
:'expires_in' => :'Integer',
|
97
101
|
:'allow_team_access' => :'Boolean',
|
98
|
-
:'inbox_type' => :'String'
|
102
|
+
:'inbox_type' => :'String',
|
103
|
+
:'virtual_inbox' => :'Boolean'
|
99
104
|
}
|
100
105
|
end
|
101
106
|
|
@@ -161,6 +166,10 @@ module MailSlurpClient
|
|
161
166
|
if attributes.key?(:'inbox_type')
|
162
167
|
self.inbox_type = attributes[:'inbox_type']
|
163
168
|
end
|
169
|
+
|
170
|
+
if attributes.key?(:'virtual_inbox')
|
171
|
+
self.virtual_inbox = attributes[:'virtual_inbox']
|
172
|
+
end
|
164
173
|
end
|
165
174
|
|
166
175
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -202,7 +211,8 @@ module MailSlurpClient
|
|
202
211
|
favourite == o.favourite &&
|
203
212
|
expires_in == o.expires_in &&
|
204
213
|
allow_team_access == o.allow_team_access &&
|
205
|
-
inbox_type == o.inbox_type
|
214
|
+
inbox_type == o.inbox_type &&
|
215
|
+
virtual_inbox == o.virtual_inbox
|
206
216
|
end
|
207
217
|
|
208
218
|
# @see the `==` method
|
@@ -214,7 +224,7 @@ module MailSlurpClient
|
|
214
224
|
# Calculates hash code according to all attributes.
|
215
225
|
# @return [Integer] Hash code
|
216
226
|
def hash
|
217
|
-
[email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type].hash
|
227
|
+
[email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type, virtual_inbox].hash
|
218
228
|
end
|
219
229
|
|
220
230
|
# Builds the object from hash
|
@@ -13,10 +13,12 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
#
|
16
|
+
# Create template options
|
17
17
|
class CreateTemplateOptions
|
18
|
+
# Name of template
|
18
19
|
attr_accessor :name
|
19
20
|
|
21
|
+
# Template content. Can include moustache style variables such as {{var_name}}
|
20
22
|
attr_accessor :content
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -81,6 +81,8 @@ module MailSlurpClient
|
|
81
81
|
# Can the email be accessed by organization team members
|
82
82
|
attr_accessor :team_access
|
83
83
|
|
84
|
+
attr_accessor :html
|
85
|
+
|
84
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
87
|
def self.attribute_map
|
86
88
|
{
|
@@ -106,7 +108,8 @@ module MailSlurpClient
|
|
106
108
|
:'created_at' => :'createdAt',
|
107
109
|
:'updated_at' => :'updatedAt',
|
108
110
|
:'read' => :'read',
|
109
|
-
:'team_access' => :'teamAccess'
|
111
|
+
:'team_access' => :'teamAccess',
|
112
|
+
:'html' => :'html'
|
110
113
|
}
|
111
114
|
end
|
112
115
|
|
@@ -135,7 +138,8 @@ module MailSlurpClient
|
|
135
138
|
:'created_at' => :'DateTime',
|
136
139
|
:'updated_at' => :'DateTime',
|
137
140
|
:'read' => :'Boolean',
|
138
|
-
:'team_access' => :'Boolean'
|
141
|
+
:'team_access' => :'Boolean',
|
142
|
+
:'html' => :'Boolean'
|
139
143
|
}
|
140
144
|
end
|
141
145
|
|
@@ -261,6 +265,10 @@ module MailSlurpClient
|
|
261
265
|
if attributes.key?(:'team_access')
|
262
266
|
self.team_access = attributes[:'team_access']
|
263
267
|
end
|
268
|
+
|
269
|
+
if attributes.key?(:'html')
|
270
|
+
self.html = attributes[:'html']
|
271
|
+
end
|
264
272
|
end
|
265
273
|
|
266
274
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -343,7 +351,8 @@ module MailSlurpClient
|
|
343
351
|
created_at == o.created_at &&
|
344
352
|
updated_at == o.updated_at &&
|
345
353
|
read == o.read &&
|
346
|
-
team_access == o.team_access
|
354
|
+
team_access == o.team_access &&
|
355
|
+
html == o.html
|
347
356
|
end
|
348
357
|
|
349
358
|
# @see the `==` method
|
@@ -355,7 +364,7 @@ module MailSlurpClient
|
|
355
364
|
# Calculates hash code according to all attributes.
|
356
365
|
# @return [Integer] Hash code
|
357
366
|
def hash
|
358
|
-
[id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access].hash
|
367
|
+
[id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
|
359
368
|
end
|
360
369
|
|
361
370
|
# Builds the object from hash
|
@@ -27,12 +27,6 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :to
|
29
29
|
|
30
|
-
attr_accessor :bcc
|
31
|
-
|
32
|
-
attr_accessor :cc
|
33
|
-
|
34
|
-
attr_accessor :created_at
|
35
|
-
|
36
30
|
attr_accessor :team_access
|
37
31
|
|
38
32
|
attr_accessor :read
|
@@ -41,6 +35,12 @@ module MailSlurpClient
|
|
41
35
|
|
42
36
|
attr_accessor :body_excerpt
|
43
37
|
|
38
|
+
attr_accessor :created_at
|
39
|
+
|
40
|
+
attr_accessor :bcc
|
41
|
+
|
42
|
+
attr_accessor :cc
|
43
|
+
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
@@ -50,13 +50,13 @@ module MailSlurpClient
|
|
50
50
|
:'inbox_id' => :'inboxId',
|
51
51
|
:'attachments' => :'attachments',
|
52
52
|
:'to' => :'to',
|
53
|
-
:'bcc' => :'bcc',
|
54
|
-
:'cc' => :'cc',
|
55
|
-
:'created_at' => :'createdAt',
|
56
53
|
:'team_access' => :'teamAccess',
|
57
54
|
:'read' => :'read',
|
58
55
|
:'body_md5_hash' => :'bodyMD5Hash',
|
59
|
-
:'body_excerpt' => :'bodyExcerpt'
|
56
|
+
:'body_excerpt' => :'bodyExcerpt',
|
57
|
+
:'created_at' => :'createdAt',
|
58
|
+
:'bcc' => :'bcc',
|
59
|
+
:'cc' => :'cc'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -69,13 +69,13 @@ module MailSlurpClient
|
|
69
69
|
:'inbox_id' => :'String',
|
70
70
|
:'attachments' => :'Array<String>',
|
71
71
|
:'to' => :'Array<String>',
|
72
|
-
:'bcc' => :'Array<String>',
|
73
|
-
:'cc' => :'Array<String>',
|
74
|
-
:'created_at' => :'DateTime',
|
75
72
|
:'team_access' => :'Boolean',
|
76
73
|
:'read' => :'Boolean',
|
77
74
|
:'body_md5_hash' => :'String',
|
78
|
-
:'body_excerpt' => :'String'
|
75
|
+
:'body_excerpt' => :'String',
|
76
|
+
:'created_at' => :'DateTime',
|
77
|
+
:'bcc' => :'Array<String>',
|
78
|
+
:'cc' => :'Array<String>'
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
@@ -128,22 +128,6 @@ module MailSlurpClient
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
-
if attributes.key?(:'bcc')
|
132
|
-
if (value = attributes[:'bcc']).is_a?(Array)
|
133
|
-
self.bcc = value
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.key?(:'cc')
|
138
|
-
if (value = attributes[:'cc']).is_a?(Array)
|
139
|
-
self.cc = value
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes.key?(:'created_at')
|
144
|
-
self.created_at = attributes[:'created_at']
|
145
|
-
end
|
146
|
-
|
147
131
|
if attributes.key?(:'team_access')
|
148
132
|
self.team_access = attributes[:'team_access']
|
149
133
|
end
|
@@ -159,6 +143,22 @@ module MailSlurpClient
|
|
159
143
|
if attributes.key?(:'body_excerpt')
|
160
144
|
self.body_excerpt = attributes[:'body_excerpt']
|
161
145
|
end
|
146
|
+
|
147
|
+
if attributes.key?(:'created_at')
|
148
|
+
self.created_at = attributes[:'created_at']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'bcc')
|
152
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
153
|
+
self.bcc = value
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'cc')
|
158
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
159
|
+
self.cc = value
|
160
|
+
end
|
161
|
+
end
|
162
162
|
end
|
163
163
|
|
164
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -205,13 +205,13 @@ module MailSlurpClient
|
|
205
205
|
inbox_id == o.inbox_id &&
|
206
206
|
attachments == o.attachments &&
|
207
207
|
to == o.to &&
|
208
|
-
bcc == o.bcc &&
|
209
|
-
cc == o.cc &&
|
210
|
-
created_at == o.created_at &&
|
211
208
|
team_access == o.team_access &&
|
212
209
|
read == o.read &&
|
213
210
|
body_md5_hash == o.body_md5_hash &&
|
214
|
-
body_excerpt == o.body_excerpt
|
211
|
+
body_excerpt == o.body_excerpt &&
|
212
|
+
created_at == o.created_at &&
|
213
|
+
bcc == o.bcc &&
|
214
|
+
cc == o.cc
|
215
215
|
end
|
216
216
|
|
217
217
|
# @see the `==` method
|
@@ -223,7 +223,7 @@ module MailSlurpClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[id, from, subject, inbox_id, attachments, to,
|
226
|
+
[id, from, subject, inbox_id, attachments, to, team_access, read, body_md5_hash, body_excerpt, created_at, bcc, cc].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -15,8 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Result from calling expire on any inboxes that have applicable expiration dates given current time.
|
17
17
|
class FlushExpiredInboxesResult
|
18
|
+
# Inbox IDs affected by expiration
|
18
19
|
attr_accessor :inbox_ids
|
19
20
|
|
21
|
+
# DateTime to filter inboxes so that those expiring before this time are expired
|
20
22
|
attr_accessor :expire_before
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -48,6 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# 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.
|
49
49
|
attr_accessor :read_only
|
50
50
|
|
51
|
+
# 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.
|
52
|
+
attr_accessor :virtual_inbox
|
53
|
+
|
51
54
|
class EnumAttributeValidator
|
52
55
|
attr_reader :datatype
|
53
56
|
attr_reader :allowable_values
|
@@ -83,7 +86,8 @@ module MailSlurpClient
|
|
83
86
|
:'favourite' => :'favourite',
|
84
87
|
:'tags' => :'tags',
|
85
88
|
:'inbox_type' => :'inboxType',
|
86
|
-
:'read_only' => :'readOnly'
|
89
|
+
:'read_only' => :'readOnly',
|
90
|
+
:'virtual_inbox' => :'virtualInbox'
|
87
91
|
}
|
88
92
|
end
|
89
93
|
|
@@ -100,7 +104,8 @@ module MailSlurpClient
|
|
100
104
|
:'favourite' => :'Boolean',
|
101
105
|
:'tags' => :'Array<String>',
|
102
106
|
:'inbox_type' => :'String',
|
103
|
-
:'read_only' => :'Boolean'
|
107
|
+
:'read_only' => :'Boolean',
|
108
|
+
:'virtual_inbox' => :'Boolean'
|
104
109
|
}
|
105
110
|
end
|
106
111
|
|
@@ -170,6 +175,10 @@ module MailSlurpClient
|
|
170
175
|
if attributes.key?(:'read_only')
|
171
176
|
self.read_only = attributes[:'read_only']
|
172
177
|
end
|
178
|
+
|
179
|
+
if attributes.key?(:'virtual_inbox')
|
180
|
+
self.virtual_inbox = attributes[:'virtual_inbox']
|
181
|
+
end
|
173
182
|
end
|
174
183
|
|
175
184
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -196,6 +205,10 @@ module MailSlurpClient
|
|
196
205
|
invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
|
197
206
|
end
|
198
207
|
|
208
|
+
if @virtual_inbox.nil?
|
209
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
210
|
+
end
|
211
|
+
|
199
212
|
invalid_properties
|
200
213
|
end
|
201
214
|
|
@@ -209,6 +222,7 @@ module MailSlurpClient
|
|
209
222
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
210
223
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
211
224
|
return false if @read_only.nil?
|
225
|
+
return false if @virtual_inbox.nil?
|
212
226
|
true
|
213
227
|
end
|
214
228
|
|
@@ -237,7 +251,8 @@ module MailSlurpClient
|
|
237
251
|
favourite == o.favourite &&
|
238
252
|
tags == o.tags &&
|
239
253
|
inbox_type == o.inbox_type &&
|
240
|
-
read_only == o.read_only
|
254
|
+
read_only == o.read_only &&
|
255
|
+
virtual_inbox == o.virtual_inbox
|
241
256
|
end
|
242
257
|
|
243
258
|
# @see the `==` method
|
@@ -249,7 +264,7 @@ module MailSlurpClient
|
|
249
264
|
# Calculates hash code according to all attributes.
|
250
265
|
# @return [Integer] Hash code
|
251
266
|
def hash
|
252
|
-
[id, user_id, created_at, name, description, email_address, expires_at, favourite, tags, inbox_type, read_only].hash
|
267
|
+
[id, user_id, created_at, name, description, email_address, expires_at, favourite, tags, inbox_type, read_only, virtual_inbox].hash
|
253
268
|
end
|
254
269
|
|
255
270
|
# Builds the object from hash
|
@@ -39,6 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
|
40
40
|
attr_accessor :inbox_type
|
41
41
|
|
42
|
+
# 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.
|
43
|
+
attr_accessor :virtual_inbox
|
44
|
+
|
42
45
|
# Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
|
43
46
|
attr_accessor :expires_at
|
44
47
|
|
@@ -75,6 +78,7 @@ module MailSlurpClient
|
|
75
78
|
:'tags' => :'tags',
|
76
79
|
:'team_access' => :'teamAccess',
|
77
80
|
:'inbox_type' => :'inboxType',
|
81
|
+
:'virtual_inbox' => :'virtualInbox',
|
78
82
|
:'expires_at' => :'expiresAt'
|
79
83
|
}
|
80
84
|
end
|
@@ -90,6 +94,7 @@ module MailSlurpClient
|
|
90
94
|
:'tags' => :'Array<String>',
|
91
95
|
:'team_access' => :'Boolean',
|
92
96
|
:'inbox_type' => :'String',
|
97
|
+
:'virtual_inbox' => :'Boolean',
|
93
98
|
:'expires_at' => :'String'
|
94
99
|
}
|
95
100
|
end
|
@@ -149,6 +154,10 @@ module MailSlurpClient
|
|
149
154
|
self.inbox_type = attributes[:'inbox_type']
|
150
155
|
end
|
151
156
|
|
157
|
+
if attributes.key?(:'virtual_inbox')
|
158
|
+
self.virtual_inbox = attributes[:'virtual_inbox']
|
159
|
+
end
|
160
|
+
|
152
161
|
if attributes.key?(:'expires_at')
|
153
162
|
self.expires_at = attributes[:'expires_at']
|
154
163
|
end
|
@@ -212,6 +221,7 @@ module MailSlurpClient
|
|
212
221
|
tags == o.tags &&
|
213
222
|
team_access == o.team_access &&
|
214
223
|
inbox_type == o.inbox_type &&
|
224
|
+
virtual_inbox == o.virtual_inbox &&
|
215
225
|
expires_at == o.expires_at
|
216
226
|
end
|
217
227
|
|
@@ -224,7 +234,7 @@ module MailSlurpClient
|
|
224
234
|
# Calculates hash code according to all attributes.
|
225
235
|
# @return [Integer] Hash code
|
226
236
|
def hash
|
227
|
-
[id, email_address, created_at, favourite, name, tags, team_access, inbox_type, expires_at].hash
|
237
|
+
[id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
|
228
238
|
end
|
229
239
|
|
230
240
|
# Builds the object from hash
|