mailslurp_client 15.19.12 → 15.19.14
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/email_controller_api.rb +68 -2
- data/lib/mailslurp_client/api/inbox_controller_api.rb +182 -2
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_access_details.rb +61 -1
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +61 -1
- data/lib/mailslurp_client/models/imap_smtp_access_servers.rb +254 -0
- data/lib/mailslurp_client/models/inbox_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_connector.rb +10 -10
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/sent_email_projection.rb +21 -21
- data/lib/mailslurp_client/models/server_endpoints.rb +255 -0
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/update_imap_access_options.rb +220 -0
- data/lib/mailslurp_client/models/update_smtp_access_options.rb +220 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +4 -0
- metadata +6 -2
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -26,8 +26,8 @@ module MailSlurpClient
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'user_id' => :'userId',
|
30
29
|
:'email_address' => :'emailAddress',
|
30
|
+
:'user_id' => :'userId',
|
31
31
|
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
@@ -36,8 +36,8 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'user_id' => :'String',
|
40
39
|
:'email_address' => :'String',
|
40
|
+
:'user_id' => :'String',
|
41
41
|
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'user_id')
|
68
|
-
self.user_id = attributes[:'user_id']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'email_address')
|
72
68
|
self.email_address = attributes[:'email_address']
|
73
69
|
end
|
74
70
|
|
71
|
+
if attributes.key?(:'user_id')
|
72
|
+
self.user_id = attributes[:'user_id']
|
73
|
+
end
|
74
|
+
|
75
75
|
if attributes.key?(:'created_at')
|
76
76
|
self.created_at = attributes[:'created_at']
|
77
77
|
end
|
@@ -85,14 +85,14 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
-
if @user_id.nil?
|
89
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
88
|
if @email_address.nil?
|
93
89
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
90
|
end
|
95
91
|
|
92
|
+
if @user_id.nil?
|
93
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
96
|
if @created_at.nil?
|
97
97
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
98
|
end
|
@@ -107,8 +107,8 @@ module MailSlurpClient
|
|
107
107
|
# Check to see if the all the properties in the model are valid
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
|
-
return false if @user_id.nil?
|
111
110
|
return false if @email_address.nil?
|
111
|
+
return false if @user_id.nil?
|
112
112
|
return false if @created_at.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
user_id == o.user_id &&
|
123
122
|
email_address == o.email_address &&
|
123
|
+
user_id == o.user_id &&
|
124
124
|
created_at == o.created_at &&
|
125
125
|
id == o.id
|
126
126
|
end
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[
|
137
|
+
[email_address, user_id, created_at, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -15,6 +15,18 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Access details for inbox using IMAP
|
17
17
|
class ImapAccessDetails
|
18
|
+
# Secure TLS IMAP server host domain
|
19
|
+
attr_accessor :secure_imap_server_host
|
20
|
+
|
21
|
+
# Secure TLS IMAP server host port
|
22
|
+
attr_accessor :secure_imap_server_port
|
23
|
+
|
24
|
+
# Secure TLS IMAP username for login
|
25
|
+
attr_accessor :secure_imap_username
|
26
|
+
|
27
|
+
# Secure TLS IMAP password for login
|
28
|
+
attr_accessor :secure_imap_password
|
29
|
+
|
18
30
|
# IMAP server host domain
|
19
31
|
attr_accessor :imap_server_host
|
20
32
|
|
@@ -33,6 +45,10 @@ module MailSlurpClient
|
|
33
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
46
|
def self.attribute_map
|
35
47
|
{
|
48
|
+
:'secure_imap_server_host' => :'secureImapServerHost',
|
49
|
+
:'secure_imap_server_port' => :'secureImapServerPort',
|
50
|
+
:'secure_imap_username' => :'secureImapUsername',
|
51
|
+
:'secure_imap_password' => :'secureImapPassword',
|
36
52
|
:'imap_server_host' => :'imapServerHost',
|
37
53
|
:'imap_server_port' => :'imapServerPort',
|
38
54
|
:'imap_username' => :'imapUsername',
|
@@ -44,6 +60,10 @@ module MailSlurpClient
|
|
44
60
|
# Attribute type mapping.
|
45
61
|
def self.openapi_types
|
46
62
|
{
|
63
|
+
:'secure_imap_server_host' => :'String',
|
64
|
+
:'secure_imap_server_port' => :'Integer',
|
65
|
+
:'secure_imap_username' => :'String',
|
66
|
+
:'secure_imap_password' => :'String',
|
47
67
|
:'imap_server_host' => :'String',
|
48
68
|
:'imap_server_port' => :'Integer',
|
49
69
|
:'imap_username' => :'String',
|
@@ -73,6 +93,22 @@ module MailSlurpClient
|
|
73
93
|
h[k.to_sym] = v
|
74
94
|
}
|
75
95
|
|
96
|
+
if attributes.key?(:'secure_imap_server_host')
|
97
|
+
self.secure_imap_server_host = attributes[:'secure_imap_server_host']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'secure_imap_server_port')
|
101
|
+
self.secure_imap_server_port = attributes[:'secure_imap_server_port']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'secure_imap_username')
|
105
|
+
self.secure_imap_username = attributes[:'secure_imap_username']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'secure_imap_password')
|
109
|
+
self.secure_imap_password = attributes[:'secure_imap_password']
|
110
|
+
end
|
111
|
+
|
76
112
|
if attributes.key?(:'imap_server_host')
|
77
113
|
self.imap_server_host = attributes[:'imap_server_host']
|
78
114
|
end
|
@@ -98,6 +134,22 @@ module MailSlurpClient
|
|
98
134
|
# @return Array for valid properties with the reasons
|
99
135
|
def list_invalid_properties
|
100
136
|
invalid_properties = Array.new
|
137
|
+
if @secure_imap_server_host.nil?
|
138
|
+
invalid_properties.push('invalid value for "secure_imap_server_host", secure_imap_server_host cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @secure_imap_server_port.nil?
|
142
|
+
invalid_properties.push('invalid value for "secure_imap_server_port", secure_imap_server_port cannot be nil.')
|
143
|
+
end
|
144
|
+
|
145
|
+
if @secure_imap_username.nil?
|
146
|
+
invalid_properties.push('invalid value for "secure_imap_username", secure_imap_username cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @secure_imap_password.nil?
|
150
|
+
invalid_properties.push('invalid value for "secure_imap_password", secure_imap_password cannot be nil.')
|
151
|
+
end
|
152
|
+
|
101
153
|
if @imap_server_host.nil?
|
102
154
|
invalid_properties.push('invalid value for "imap_server_host", imap_server_host cannot be nil.')
|
103
155
|
end
|
@@ -124,6 +176,10 @@ module MailSlurpClient
|
|
124
176
|
# Check to see if the all the properties in the model are valid
|
125
177
|
# @return true if the model is valid
|
126
178
|
def valid?
|
179
|
+
return false if @secure_imap_server_host.nil?
|
180
|
+
return false if @secure_imap_server_port.nil?
|
181
|
+
return false if @secure_imap_username.nil?
|
182
|
+
return false if @secure_imap_password.nil?
|
127
183
|
return false if @imap_server_host.nil?
|
128
184
|
return false if @imap_server_port.nil?
|
129
185
|
return false if @imap_username.nil?
|
@@ -137,6 +193,10 @@ module MailSlurpClient
|
|
137
193
|
def ==(o)
|
138
194
|
return true if self.equal?(o)
|
139
195
|
self.class == o.class &&
|
196
|
+
secure_imap_server_host == o.secure_imap_server_host &&
|
197
|
+
secure_imap_server_port == o.secure_imap_server_port &&
|
198
|
+
secure_imap_username == o.secure_imap_username &&
|
199
|
+
secure_imap_password == o.secure_imap_password &&
|
140
200
|
imap_server_host == o.imap_server_host &&
|
141
201
|
imap_server_port == o.imap_server_port &&
|
142
202
|
imap_username == o.imap_username &&
|
@@ -153,7 +213,7 @@ module MailSlurpClient
|
|
153
213
|
# Calculates hash code according to all attributes.
|
154
214
|
# @return [Integer] Hash code
|
155
215
|
def hash
|
156
|
-
[imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox].hash
|
216
|
+
[secure_imap_server_host, secure_imap_server_port, secure_imap_username, secure_imap_password, imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox].hash
|
157
217
|
end
|
158
218
|
|
159
219
|
# Builds the object from hash
|
@@ -39,6 +39,18 @@ module MailSlurpClient
|
|
39
39
|
# SMTP password for login
|
40
40
|
attr_accessor :smtp_password
|
41
41
|
|
42
|
+
# Secure TLS IMAP server host domain
|
43
|
+
attr_accessor :secure_imap_server_host
|
44
|
+
|
45
|
+
# Secure TLS IMAP server host port
|
46
|
+
attr_accessor :secure_imap_server_port
|
47
|
+
|
48
|
+
# Secure TLS IMAP username for login
|
49
|
+
attr_accessor :secure_imap_username
|
50
|
+
|
51
|
+
# Secure TLS IMAP password for login
|
52
|
+
attr_accessor :secure_imap_password
|
53
|
+
|
42
54
|
# IMAP server host domain
|
43
55
|
attr_accessor :imap_server_host
|
44
56
|
|
@@ -68,6 +80,10 @@ module MailSlurpClient
|
|
68
80
|
:'smtp_server_port' => :'smtpServerPort',
|
69
81
|
:'smtp_username' => :'smtpUsername',
|
70
82
|
:'smtp_password' => :'smtpPassword',
|
83
|
+
:'secure_imap_server_host' => :'secureImapServerHost',
|
84
|
+
:'secure_imap_server_port' => :'secureImapServerPort',
|
85
|
+
:'secure_imap_username' => :'secureImapUsername',
|
86
|
+
:'secure_imap_password' => :'secureImapPassword',
|
71
87
|
:'imap_server_host' => :'imapServerHost',
|
72
88
|
:'imap_server_port' => :'imapServerPort',
|
73
89
|
:'imap_username' => :'imapUsername',
|
@@ -88,6 +104,10 @@ module MailSlurpClient
|
|
88
104
|
:'smtp_server_port' => :'Integer',
|
89
105
|
:'smtp_username' => :'String',
|
90
106
|
:'smtp_password' => :'String',
|
107
|
+
:'secure_imap_server_host' => :'String',
|
108
|
+
:'secure_imap_server_port' => :'Integer',
|
109
|
+
:'secure_imap_username' => :'String',
|
110
|
+
:'secure_imap_password' => :'String',
|
91
111
|
:'imap_server_host' => :'String',
|
92
112
|
:'imap_server_port' => :'Integer',
|
93
113
|
:'imap_username' => :'String',
|
@@ -151,6 +171,22 @@ module MailSlurpClient
|
|
151
171
|
self.smtp_password = attributes[:'smtp_password']
|
152
172
|
end
|
153
173
|
|
174
|
+
if attributes.key?(:'secure_imap_server_host')
|
175
|
+
self.secure_imap_server_host = attributes[:'secure_imap_server_host']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.key?(:'secure_imap_server_port')
|
179
|
+
self.secure_imap_server_port = attributes[:'secure_imap_server_port']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'secure_imap_username')
|
183
|
+
self.secure_imap_username = attributes[:'secure_imap_username']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'secure_imap_password')
|
187
|
+
self.secure_imap_password = attributes[:'secure_imap_password']
|
188
|
+
end
|
189
|
+
|
154
190
|
if attributes.key?(:'imap_server_host')
|
155
191
|
self.imap_server_host = attributes[:'imap_server_host']
|
156
192
|
end
|
@@ -212,6 +248,22 @@ module MailSlurpClient
|
|
212
248
|
invalid_properties.push('invalid value for "smtp_password", smtp_password cannot be nil.')
|
213
249
|
end
|
214
250
|
|
251
|
+
if @secure_imap_server_host.nil?
|
252
|
+
invalid_properties.push('invalid value for "secure_imap_server_host", secure_imap_server_host cannot be nil.')
|
253
|
+
end
|
254
|
+
|
255
|
+
if @secure_imap_server_port.nil?
|
256
|
+
invalid_properties.push('invalid value for "secure_imap_server_port", secure_imap_server_port cannot be nil.')
|
257
|
+
end
|
258
|
+
|
259
|
+
if @secure_imap_username.nil?
|
260
|
+
invalid_properties.push('invalid value for "secure_imap_username", secure_imap_username cannot be nil.')
|
261
|
+
end
|
262
|
+
|
263
|
+
if @secure_imap_password.nil?
|
264
|
+
invalid_properties.push('invalid value for "secure_imap_password", secure_imap_password cannot be nil.')
|
265
|
+
end
|
266
|
+
|
215
267
|
if @imap_server_host.nil?
|
216
268
|
invalid_properties.push('invalid value for "imap_server_host", imap_server_host cannot be nil.')
|
217
269
|
end
|
@@ -246,6 +298,10 @@ module MailSlurpClient
|
|
246
298
|
return false if @smtp_server_port.nil?
|
247
299
|
return false if @smtp_username.nil?
|
248
300
|
return false if @smtp_password.nil?
|
301
|
+
return false if @secure_imap_server_host.nil?
|
302
|
+
return false if @secure_imap_server_port.nil?
|
303
|
+
return false if @secure_imap_username.nil?
|
304
|
+
return false if @secure_imap_password.nil?
|
249
305
|
return false if @imap_server_host.nil?
|
250
306
|
return false if @imap_server_port.nil?
|
251
307
|
return false if @imap_username.nil?
|
@@ -267,6 +323,10 @@ module MailSlurpClient
|
|
267
323
|
smtp_server_port == o.smtp_server_port &&
|
268
324
|
smtp_username == o.smtp_username &&
|
269
325
|
smtp_password == o.smtp_password &&
|
326
|
+
secure_imap_server_host == o.secure_imap_server_host &&
|
327
|
+
secure_imap_server_port == o.secure_imap_server_port &&
|
328
|
+
secure_imap_username == o.secure_imap_username &&
|
329
|
+
secure_imap_password == o.secure_imap_password &&
|
270
330
|
imap_server_host == o.imap_server_host &&
|
271
331
|
imap_server_port == o.imap_server_port &&
|
272
332
|
imap_username == o.imap_username &&
|
@@ -284,7 +344,7 @@ module MailSlurpClient
|
|
284
344
|
# Calculates hash code according to all attributes.
|
285
345
|
# @return [Integer] Hash code
|
286
346
|
def hash
|
287
|
-
[secure_smtp_server_host, secure_smtp_server_port, secure_smtp_username, secure_smtp_password, smtp_server_host, smtp_server_port, smtp_username, smtp_password, imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox, mail_from_domain].hash
|
347
|
+
[secure_smtp_server_host, secure_smtp_server_port, secure_smtp_username, secure_smtp_password, smtp_server_host, smtp_server_port, smtp_username, smtp_password, secure_imap_server_host, secure_imap_server_port, secure_imap_username, secure_imap_password, imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox, mail_from_domain].hash
|
288
348
|
end
|
289
349
|
|
290
350
|
# Builds the object from hash
|
@@ -0,0 +1,254 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
# IMAP and SMTP server endpoints for MailSlurp
|
17
|
+
class ImapSmtpAccessServers
|
18
|
+
attr_accessor :imap_server
|
19
|
+
|
20
|
+
attr_accessor :secure_imap_server
|
21
|
+
|
22
|
+
attr_accessor :smtp_server
|
23
|
+
|
24
|
+
attr_accessor :secure_smtp_server
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'imap_server' => :'imapServer',
|
30
|
+
:'secure_imap_server' => :'secureImapServer',
|
31
|
+
:'smtp_server' => :'smtpServer',
|
32
|
+
:'secure_smtp_server' => :'secureSmtpServer'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'imap_server' => :'ServerEndpoints',
|
40
|
+
:'secure_imap_server' => :'ServerEndpoints',
|
41
|
+
:'smtp_server' => :'ServerEndpoints',
|
42
|
+
:'secure_smtp_server' => :'ServerEndpoints'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ImapSmtpAccessServers` initialize method"
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ImapSmtpAccessServers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'imap_server')
|
68
|
+
self.imap_server = attributes[:'imap_server']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'secure_imap_server')
|
72
|
+
self.secure_imap_server = attributes[:'secure_imap_server']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'smtp_server')
|
76
|
+
self.smtp_server = attributes[:'smtp_server']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'secure_smtp_server')
|
80
|
+
self.secure_smtp_server = attributes[:'secure_smtp_server']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
+
# @return Array for valid properties with the reasons
|
86
|
+
def list_invalid_properties
|
87
|
+
invalid_properties = Array.new
|
88
|
+
if @imap_server.nil?
|
89
|
+
invalid_properties.push('invalid value for "imap_server", imap_server cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @secure_imap_server.nil?
|
93
|
+
invalid_properties.push('invalid value for "secure_imap_server", secure_imap_server cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @smtp_server.nil?
|
97
|
+
invalid_properties.push('invalid value for "smtp_server", smtp_server cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @secure_smtp_server.nil?
|
101
|
+
invalid_properties.push('invalid value for "secure_smtp_server", secure_smtp_server cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
invalid_properties
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check to see if the all the properties in the model are valid
|
108
|
+
# @return true if the model is valid
|
109
|
+
def valid?
|
110
|
+
return false if @imap_server.nil?
|
111
|
+
return false if @secure_imap_server.nil?
|
112
|
+
return false if @smtp_server.nil?
|
113
|
+
return false if @secure_smtp_server.nil?
|
114
|
+
true
|
115
|
+
end
|
116
|
+
|
117
|
+
# Checks equality by comparing each attribute.
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def ==(o)
|
120
|
+
return true if self.equal?(o)
|
121
|
+
self.class == o.class &&
|
122
|
+
imap_server == o.imap_server &&
|
123
|
+
secure_imap_server == o.secure_imap_server &&
|
124
|
+
smtp_server == o.smtp_server &&
|
125
|
+
secure_smtp_server == o.secure_smtp_server
|
126
|
+
end
|
127
|
+
|
128
|
+
# @see the `==` method
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def eql?(o)
|
131
|
+
self == o
|
132
|
+
end
|
133
|
+
|
134
|
+
# Calculates hash code according to all attributes.
|
135
|
+
# @return [Integer] Hash code
|
136
|
+
def hash
|
137
|
+
[imap_server, secure_imap_server, smtp_server, secure_smtp_server].hash
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def self.build_from_hash(attributes)
|
144
|
+
new.build_from_hash(attributes)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Builds the object from hash
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
+
# @return [Object] Returns the model itself
|
150
|
+
def build_from_hash(attributes)
|
151
|
+
return nil unless attributes.is_a?(Hash)
|
152
|
+
self.class.openapi_types.each_pair do |key, type|
|
153
|
+
if type =~ /\AArray<(.*)>/i
|
154
|
+
# check to ensure the input is an array given that the attribute
|
155
|
+
# is documented as an array but the input is not
|
156
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
157
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
158
|
+
end
|
159
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
160
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
161
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
162
|
+
end
|
163
|
+
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def _deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :DateTime
|
174
|
+
DateTime.parse(value)
|
175
|
+
when :Date
|
176
|
+
Date.parse(value)
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :Boolean
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else # model
|
204
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the string representation of the object
|
209
|
+
# @return [String] String presentation of the object
|
210
|
+
def to_s
|
211
|
+
to_hash.to_s
|
212
|
+
end
|
213
|
+
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_body
|
217
|
+
to_hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = self.send(attr)
|
226
|
+
if value.nil?
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
229
|
+
end
|
230
|
+
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Outputs non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
# @param [Object] value Any valid value
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
240
|
+
def _to_hash(value)
|
241
|
+
if value.is_a?(Array)
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
243
|
+
elsif value.is_a?(Hash)
|
244
|
+
{}.tap do |hash|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
+
end
|
247
|
+
elsif value.respond_to? :to_hash
|
248
|
+
value.to_hash
|
249
|
+
else
|
250
|
+
value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts and do not support IMAP or POP3. `SMTP` inboxes use a custom mail server at `
|
16
|
+
# Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Inboxes are either `SMTP` or `HTTP` mailboxes. The default, `HTTP` inboxes, use AWS SES to process emails and are best suited as test email accounts and do not support IMAP or POP3. `SMTP` inboxes use a custom mail server at `mxslurp.click` and support SMTP login, IMAP and POP3. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments. Inboxes may have a description, name, and tags for display purposes. You can also favourite an inbox for easier searching.
|
17
17
|
class InboxDto
|
18
18
|
# ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
|
19
19
|
attr_accessor :id
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :email_id
|
21
19
|
|
22
20
|
attr_accessor :inbox_id
|
23
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
attr_accessor :forwarder_id
|
25
25
|
|
26
26
|
attr_accessor :created_at
|
@@ -56,9 +56,9 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'user_id' => :'userId',
|
60
59
|
:'email_id' => :'emailId',
|
61
60
|
:'inbox_id' => :'inboxId',
|
61
|
+
:'user_id' => :'userId',
|
62
62
|
:'forwarder_id' => :'forwarderId',
|
63
63
|
:'created_at' => :'createdAt',
|
64
64
|
:'message' => :'message',
|
@@ -70,9 +70,9 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'user_id' => :'String',
|
74
73
|
:'email_id' => :'String',
|
75
74
|
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
76
76
|
:'forwarder_id' => :'String',
|
77
77
|
:'created_at' => :'DateTime',
|
78
78
|
:'message' => :'String',
|
@@ -84,9 +84,9 @@ module MailSlurpClient
|
|
84
84
|
# List of attributes with nullable: true
|
85
85
|
def self.openapi_nullable
|
86
86
|
Set.new([
|
87
|
-
:'user_id',
|
88
87
|
:'email_id',
|
89
88
|
:'inbox_id',
|
89
|
+
:'user_id',
|
90
90
|
:'forwarder_id',
|
91
91
|
:'message',
|
92
92
|
:'id',
|
@@ -109,10 +109,6 @@ module MailSlurpClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'user_id')
|
113
|
-
self.user_id = attributes[:'user_id']
|
114
|
-
end
|
115
|
-
|
116
112
|
if attributes.key?(:'email_id')
|
117
113
|
self.email_id = attributes[:'email_id']
|
118
114
|
end
|
@@ -121,6 +117,10 @@ module MailSlurpClient
|
|
121
117
|
self.inbox_id = attributes[:'inbox_id']
|
122
118
|
end
|
123
119
|
|
120
|
+
if attributes.key?(:'user_id')
|
121
|
+
self.user_id = attributes[:'user_id']
|
122
|
+
end
|
123
|
+
|
124
124
|
if attributes.key?(:'forwarder_id')
|
125
125
|
self.forwarder_id = attributes[:'forwarder_id']
|
126
126
|
end
|
@@ -177,9 +177,9 @@ module MailSlurpClient
|
|
177
177
|
def ==(o)
|
178
178
|
return true if self.equal?(o)
|
179
179
|
self.class == o.class &&
|
180
|
-
user_id == o.user_id &&
|
181
180
|
email_id == o.email_id &&
|
182
181
|
inbox_id == o.inbox_id &&
|
182
|
+
user_id == o.user_id &&
|
183
183
|
forwarder_id == o.forwarder_id &&
|
184
184
|
created_at == o.created_at &&
|
185
185
|
message == o.message &&
|
@@ -196,7 +196,7 @@ module MailSlurpClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[
|
199
|
+
[email_id, inbox_id, user_id, forwarder_id, created_at, message, id, status].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|