mailslurp_client 15.18.5 → 15.19.1
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/connector_controller_api.rb +260 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/imap_controller_api.rb +279 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +114 -0
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +62 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_dto.rb +42 -108
- data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +311 -0
- data/lib/mailslurp_client/models/connector_projection.rb +39 -43
- data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +293 -0
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +286 -0
- data/lib/mailslurp_client/models/create_connector_options.rb +38 -87
- data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +256 -0
- data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookups_options.rb +214 -0
- data/lib/mailslurp_client/models/domain_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_groups_dto.rb +213 -0
- data/lib/mailslurp_client/models/domain_information.rb +274 -0
- data/lib/mailslurp_client/models/email_preview_urls.rb +18 -4
- data/lib/mailslurp_client/models/email_projection.rb +19 -19
- data/lib/mailslurp_client/models/email_screenshot_result.rb +211 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/get_email_screenshot_options.rb +220 -0
- data/lib/mailslurp_client/models/imap_access_details.rb +273 -0
- data/lib/mailslurp_client/models/imap_email_projection.rb +239 -0
- data/lib/mailslurp_client/models/{create_connector_imap_options.rb → imap_server_fetch_item.rb} +55 -49
- data/lib/mailslurp_client/models/imap_server_fetch_result.rb +208 -0
- data/lib/mailslurp_client/models/{create_connector_imap_fetch_options.rb → imap_server_list_options.rb} +18 -16
- data/lib/mailslurp_client/models/imap_server_list_result.rb +213 -0
- data/lib/mailslurp_client/models/imap_server_search_options.rb +318 -0
- data/lib/mailslurp_client/models/imap_server_search_result.rb +213 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +16 -1
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +277 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/match_option.rb +4 -4
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/page_alias.rb +15 -15
- data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_complaint.rb +15 -15
- data/lib/mailslurp_client/models/page_connector.rb +15 -15
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
- data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
- data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
- data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- data/lib/mailslurp_client/models/sms_match_option.rb +2 -2
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/smtp_access_details.rb +329 -0
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +35 -35
- 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/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +21 -2
- metadata +23 -4
@@ -15,11 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class ThreadProjection
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# Updated at DateTime
|
22
|
-
attr_accessor :updated_at
|
18
|
+
# Thread subject
|
19
|
+
attr_accessor :subject
|
23
20
|
|
24
21
|
# Inbox ID
|
25
22
|
attr_accessor :inbox_id
|
@@ -39,8 +36,11 @@ module MailSlurpClient
|
|
39
36
|
# Alias ID
|
40
37
|
attr_accessor :alias_id
|
41
38
|
|
42
|
-
#
|
43
|
-
attr_accessor :
|
39
|
+
# Created at DateTime
|
40
|
+
attr_accessor :created_at
|
41
|
+
|
42
|
+
# Updated at DateTime
|
43
|
+
attr_accessor :updated_at
|
44
44
|
|
45
45
|
# Name of thread
|
46
46
|
attr_accessor :name
|
@@ -51,15 +51,15 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'
|
55
|
-
:'updated_at' => :'updatedAt',
|
54
|
+
:'subject' => :'subject',
|
56
55
|
:'inbox_id' => :'inboxId',
|
57
56
|
:'user_id' => :'userId',
|
58
57
|
:'to' => :'to',
|
59
58
|
:'bcc' => :'bcc',
|
60
59
|
:'cc' => :'cc',
|
61
60
|
:'alias_id' => :'aliasId',
|
62
|
-
:'
|
61
|
+
:'created_at' => :'createdAt',
|
62
|
+
:'updated_at' => :'updatedAt',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
65
65
|
}
|
@@ -68,15 +68,15 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'
|
72
|
-
:'updated_at' => :'DateTime',
|
71
|
+
:'subject' => :'String',
|
73
72
|
:'inbox_id' => :'String',
|
74
73
|
:'user_id' => :'String',
|
75
74
|
:'to' => :'Array<String>',
|
76
75
|
:'bcc' => :'Array<String>',
|
77
76
|
:'cc' => :'Array<String>',
|
78
77
|
:'alias_id' => :'String',
|
79
|
-
:'
|
78
|
+
:'created_at' => :'DateTime',
|
79
|
+
:'updated_at' => :'DateTime',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
82
82
|
}
|
@@ -103,12 +103,8 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'updated_at')
|
111
|
-
self.updated_at = attributes[:'updated_at']
|
106
|
+
if attributes.key?(:'subject')
|
107
|
+
self.subject = attributes[:'subject']
|
112
108
|
end
|
113
109
|
|
114
110
|
if attributes.key?(:'inbox_id')
|
@@ -141,8 +137,12 @@ module MailSlurpClient
|
|
141
137
|
self.alias_id = attributes[:'alias_id']
|
142
138
|
end
|
143
139
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
140
|
+
if attributes.key?(:'created_at')
|
141
|
+
self.created_at = attributes[:'created_at']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'updated_at')
|
145
|
+
self.updated_at = attributes[:'updated_at']
|
146
146
|
end
|
147
147
|
|
148
148
|
if attributes.key?(:'name')
|
@@ -158,14 +158,6 @@ module MailSlurpClient
|
|
158
158
|
# @return Array for valid properties with the reasons
|
159
159
|
def list_invalid_properties
|
160
160
|
invalid_properties = Array.new
|
161
|
-
if @created_at.nil?
|
162
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
|
-
if @updated_at.nil?
|
166
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
161
|
if @inbox_id.nil?
|
170
162
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
171
163
|
end
|
@@ -182,6 +174,14 @@ module MailSlurpClient
|
|
182
174
|
invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
|
183
175
|
end
|
184
176
|
|
177
|
+
if @created_at.nil?
|
178
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if @updated_at.nil?
|
182
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
183
|
+
end
|
184
|
+
|
185
185
|
if @id.nil?
|
186
186
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
187
187
|
end
|
@@ -192,12 +192,12 @@ module MailSlurpClient
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
-
return false if @created_at.nil?
|
196
|
-
return false if @updated_at.nil?
|
197
195
|
return false if @inbox_id.nil?
|
198
196
|
return false if @user_id.nil?
|
199
197
|
return false if @to.nil?
|
200
198
|
return false if @alias_id.nil?
|
199
|
+
return false if @created_at.nil?
|
200
|
+
return false if @updated_at.nil?
|
201
201
|
return false if @id.nil?
|
202
202
|
true
|
203
203
|
end
|
@@ -207,15 +207,15 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
|
211
|
-
updated_at == o.updated_at &&
|
210
|
+
subject == o.subject &&
|
212
211
|
inbox_id == o.inbox_id &&
|
213
212
|
user_id == o.user_id &&
|
214
213
|
to == o.to &&
|
215
214
|
bcc == o.bcc &&
|
216
215
|
cc == o.cc &&
|
217
216
|
alias_id == o.alias_id &&
|
218
|
-
|
217
|
+
created_at == o.created_at &&
|
218
|
+
updated_at == o.updated_at &&
|
219
219
|
name == o.name &&
|
220
220
|
id == o.id
|
221
221
|
end
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[subject, inbox_id, user_id, to, bcc, cc, alias_id, created_at, updated_at, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,8 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :inbox_id
|
21
19
|
|
22
20
|
attr_accessor :user_id
|
@@ -29,6 +27,8 @@ module MailSlurpClient
|
|
29
27
|
|
30
28
|
attr_accessor :seen_at
|
31
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
32
|
attr_accessor :name
|
33
33
|
|
34
34
|
attr_accessor :id
|
@@ -36,13 +36,13 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
-
:'created_at' => :'createdAt',
|
40
39
|
:'inbox_id' => :'inboxId',
|
41
40
|
:'user_id' => :'userId',
|
42
41
|
:'sent_email_id' => :'sentEmailId',
|
43
42
|
:'recipient' => :'recipient',
|
44
43
|
:'seen' => :'seen',
|
45
44
|
:'seen_at' => :'seenAt',
|
45
|
+
:'created_at' => :'createdAt',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'id' => :'id'
|
48
48
|
}
|
@@ -51,13 +51,13 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'created_at' => :'DateTime',
|
55
54
|
:'inbox_id' => :'String',
|
56
55
|
:'user_id' => :'String',
|
57
56
|
:'sent_email_id' => :'String',
|
58
57
|
:'recipient' => :'String',
|
59
58
|
:'seen' => :'Boolean',
|
60
59
|
:'seen_at' => :'DateTime',
|
60
|
+
:'created_at' => :'DateTime',
|
61
61
|
:'name' => :'String',
|
62
62
|
:'id' => :'String'
|
63
63
|
}
|
@@ -84,10 +84,6 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
-
if attributes.key?(:'created_at')
|
88
|
-
self.created_at = attributes[:'created_at']
|
89
|
-
end
|
90
|
-
|
91
87
|
if attributes.key?(:'inbox_id')
|
92
88
|
self.inbox_id = attributes[:'inbox_id']
|
93
89
|
end
|
@@ -112,6 +108,10 @@ module MailSlurpClient
|
|
112
108
|
self.seen_at = attributes[:'seen_at']
|
113
109
|
end
|
114
110
|
|
111
|
+
if attributes.key?(:'created_at')
|
112
|
+
self.created_at = attributes[:'created_at']
|
113
|
+
end
|
114
|
+
|
115
115
|
if attributes.key?(:'name')
|
116
116
|
self.name = attributes[:'name']
|
117
117
|
end
|
@@ -125,10 +125,6 @@ module MailSlurpClient
|
|
125
125
|
# @return Array for valid properties with the reasons
|
126
126
|
def list_invalid_properties
|
127
127
|
invalid_properties = Array.new
|
128
|
-
if @created_at.nil?
|
129
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
128
|
if @user_id.nil?
|
133
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
130
|
end
|
@@ -137,6 +133,10 @@ module MailSlurpClient
|
|
137
133
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if @created_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
140
|
if @id.nil?
|
141
141
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
142
142
|
end
|
@@ -147,9 +147,9 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if @created_at.nil?
|
151
150
|
return false if @user_id.nil?
|
152
151
|
return false if @seen.nil?
|
152
|
+
return false if @created_at.nil?
|
153
153
|
return false if @id.nil?
|
154
154
|
true
|
155
155
|
end
|
@@ -159,13 +159,13 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
-
created_at == o.created_at &&
|
163
162
|
inbox_id == o.inbox_id &&
|
164
163
|
user_id == o.user_id &&
|
165
164
|
sent_email_id == o.sent_email_id &&
|
166
165
|
recipient == o.recipient &&
|
167
166
|
seen == o.seen &&
|
168
167
|
seen_at == o.seen_at &&
|
168
|
+
created_at == o.created_at &&
|
169
169
|
name == o.name &&
|
170
170
|
id == o.id
|
171
171
|
end
|
@@ -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
|
-
[
|
182
|
+
[inbox_id, user_id, sent_email_id, recipient, seen, seen_at, created_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Unknown missed email projection
|
17
17
|
class UnknownMissedEmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :subject
|
19
19
|
|
20
20
|
attr_accessor :to
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :created_at
|
23
23
|
|
24
24
|
attr_accessor :id
|
25
25
|
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'created_at' => :'createdAt',
|
32
|
-
:'to' => :'to',
|
33
31
|
:'subject' => :'subject',
|
32
|
+
:'to' => :'to',
|
33
|
+
:'created_at' => :'createdAt',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'created_at' => :'DateTime',
|
43
|
-
:'to' => :'Array<String>',
|
44
42
|
:'subject' => :'String',
|
43
|
+
:'to' => :'Array<String>',
|
44
|
+
:'created_at' => :'DateTime',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -68,8 +68,8 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'
|
72
|
-
self.
|
71
|
+
if attributes.key?(:'subject')
|
72
|
+
self.subject = attributes[:'subject']
|
73
73
|
end
|
74
74
|
|
75
75
|
if attributes.key?(:'to')
|
@@ -78,8 +78,8 @@ module MailSlurpClient
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
-
if attributes.key?(:'
|
82
|
-
self.
|
81
|
+
if attributes.key?(:'created_at')
|
82
|
+
self.created_at = attributes[:'created_at']
|
83
83
|
end
|
84
84
|
|
85
85
|
if attributes.key?(:'id')
|
@@ -119,9 +119,9 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
created_at == o.created_at &&
|
123
|
-
to == o.to &&
|
124
122
|
subject == o.subject &&
|
123
|
+
to == o.to &&
|
124
|
+
created_at == o.created_at &&
|
125
125
|
id == o.id &&
|
126
126
|
from == o.from
|
127
127
|
end
|
@@ -135,7 +135,7 @@ module MailSlurpClient
|
|
135
135
|
# Calculates hash code according to all attributes.
|
136
136
|
# @return [Integer] Hash code
|
137
137
|
def hash
|
138
|
-
[
|
138
|
+
[subject, to, created_at, id, from].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|
@@ -15,10 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a webhook
|
17
17
|
class WebhookProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :updated_at
|
21
|
-
|
22
18
|
attr_accessor :url
|
23
19
|
|
24
20
|
attr_accessor :inbox_id
|
@@ -27,6 +23,10 @@ module MailSlurpClient
|
|
27
23
|
|
28
24
|
attr_accessor :phone_number_id
|
29
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
|
+
attr_accessor :updated_at
|
29
|
+
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
attr_accessor :id
|
@@ -56,12 +56,12 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'created_at' => :'createdAt',
|
60
|
-
:'updated_at' => :'updatedAt',
|
61
59
|
:'url' => :'url',
|
62
60
|
:'inbox_id' => :'inboxId',
|
63
61
|
:'event_name' => :'eventName',
|
64
62
|
:'phone_number_id' => :'phoneNumberId',
|
63
|
+
:'created_at' => :'createdAt',
|
64
|
+
:'updated_at' => :'updatedAt',
|
65
65
|
:'name' => :'name',
|
66
66
|
:'id' => :'id'
|
67
67
|
}
|
@@ -70,12 +70,12 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'created_at' => :'DateTime',
|
74
|
-
:'updated_at' => :'DateTime',
|
75
73
|
:'url' => :'String',
|
76
74
|
:'inbox_id' => :'String',
|
77
75
|
:'event_name' => :'String',
|
78
76
|
:'phone_number_id' => :'String',
|
77
|
+
:'created_at' => :'DateTime',
|
78
|
+
:'updated_at' => :'DateTime',
|
79
79
|
:'name' => :'String',
|
80
80
|
:'id' => :'String'
|
81
81
|
}
|
@@ -102,14 +102,6 @@ module MailSlurpClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
-
if attributes.key?(:'created_at')
|
106
|
-
self.created_at = attributes[:'created_at']
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes.key?(:'updated_at')
|
110
|
-
self.updated_at = attributes[:'updated_at']
|
111
|
-
end
|
112
|
-
|
113
105
|
if attributes.key?(:'url')
|
114
106
|
self.url = attributes[:'url']
|
115
107
|
end
|
@@ -126,6 +118,14 @@ module MailSlurpClient
|
|
126
118
|
self.phone_number_id = attributes[:'phone_number_id']
|
127
119
|
end
|
128
120
|
|
121
|
+
if attributes.key?(:'created_at')
|
122
|
+
self.created_at = attributes[:'created_at']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'updated_at')
|
126
|
+
self.updated_at = attributes[:'updated_at']
|
127
|
+
end
|
128
|
+
|
129
129
|
if attributes.key?(:'name')
|
130
130
|
self.name = attributes[:'name']
|
131
131
|
end
|
@@ -139,6 +139,10 @@ module MailSlurpClient
|
|
139
139
|
# @return Array for valid properties with the reasons
|
140
140
|
def list_invalid_properties
|
141
141
|
invalid_properties = Array.new
|
142
|
+
if @url.nil?
|
143
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
144
|
+
end
|
145
|
+
|
142
146
|
if @created_at.nil?
|
143
147
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
144
148
|
end
|
@@ -147,10 +151,6 @@ module MailSlurpClient
|
|
147
151
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
148
152
|
end
|
149
153
|
|
150
|
-
if @url.nil?
|
151
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
154
|
if @id.nil?
|
155
155
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
156
156
|
end
|
@@ -161,11 +161,11 @@ module MailSlurpClient
|
|
161
161
|
# Check to see if the all the properties in the model are valid
|
162
162
|
# @return true if the model is valid
|
163
163
|
def valid?
|
164
|
-
return false if @created_at.nil?
|
165
|
-
return false if @updated_at.nil?
|
166
164
|
return false if @url.nil?
|
167
165
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
168
166
|
return false unless event_name_validator.valid?(@event_name)
|
167
|
+
return false if @created_at.nil?
|
168
|
+
return false if @updated_at.nil?
|
169
169
|
return false if @id.nil?
|
170
170
|
true
|
171
171
|
end
|
@@ -185,12 +185,12 @@ module MailSlurpClient
|
|
185
185
|
def ==(o)
|
186
186
|
return true if self.equal?(o)
|
187
187
|
self.class == o.class &&
|
188
|
-
created_at == o.created_at &&
|
189
|
-
updated_at == o.updated_at &&
|
190
188
|
url == o.url &&
|
191
189
|
inbox_id == o.inbox_id &&
|
192
190
|
event_name == o.event_name &&
|
193
191
|
phone_number_id == o.phone_number_id &&
|
192
|
+
created_at == o.created_at &&
|
193
|
+
updated_at == o.updated_at &&
|
194
194
|
name == o.name &&
|
195
195
|
id == o.id
|
196
196
|
end
|
@@ -204,7 +204,7 @@ module MailSlurpClient
|
|
204
204
|
# Calculates hash code according to all attributes.
|
205
205
|
# @return [Integer] Hash code
|
206
206
|
def hash
|
207
|
-
[
|
207
|
+
[url, inbox_id, event_name, phone_number_id, created_at, updated_at, name, id].hash
|
208
208
|
end
|
209
209
|
|
210
210
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -40,7 +40,9 @@ require 'mailslurp_client/models/check_email_features_client_support_results'
|
|
40
40
|
require 'mailslurp_client/models/complaint'
|
41
41
|
require 'mailslurp_client/models/condition_option'
|
42
42
|
require 'mailslurp_client/models/connector_dto'
|
43
|
+
require 'mailslurp_client/models/connector_imap_connection_dto'
|
43
44
|
require 'mailslurp_client/models/connector_projection'
|
45
|
+
require 'mailslurp_client/models/connector_smtp_connection_dto'
|
44
46
|
require 'mailslurp_client/models/connector_sync_event_dto'
|
45
47
|
require 'mailslurp_client/models/connector_sync_event_projection'
|
46
48
|
require 'mailslurp_client/models/connector_sync_request_result'
|
@@ -53,9 +55,9 @@ require 'mailslurp_client/models/contact_projection'
|
|
53
55
|
require 'mailslurp_client/models/content_match_options'
|
54
56
|
require 'mailslurp_client/models/count_dto'
|
55
57
|
require 'mailslurp_client/models/create_alias_options'
|
56
|
-
require 'mailslurp_client/models/
|
57
|
-
require 'mailslurp_client/models/create_connector_imap_options'
|
58
|
+
require 'mailslurp_client/models/create_connector_imap_connection_options'
|
58
59
|
require 'mailslurp_client/models/create_connector_options'
|
60
|
+
require 'mailslurp_client/models/create_connector_smtp_connection_options'
|
59
61
|
require 'mailslurp_client/models/create_contact_options'
|
60
62
|
require 'mailslurp_client/models/create_domain_options'
|
61
63
|
require 'mailslurp_client/models/create_emergency_address_options'
|
@@ -70,10 +72,14 @@ require 'mailslurp_client/models/create_webhook_options'
|
|
70
72
|
require 'mailslurp_client/models/dns_lookup_options'
|
71
73
|
require 'mailslurp_client/models/dns_lookup_result'
|
72
74
|
require 'mailslurp_client/models/dns_lookup_results'
|
75
|
+
require 'mailslurp_client/models/dns_lookups_options'
|
73
76
|
require 'mailslurp_client/models/delivery_status_dto'
|
74
77
|
require 'mailslurp_client/models/describe_domain_options'
|
75
78
|
require 'mailslurp_client/models/describe_mail_server_domain_result'
|
76
79
|
require 'mailslurp_client/models/domain_dto'
|
80
|
+
require 'mailslurp_client/models/domain_group'
|
81
|
+
require 'mailslurp_client/models/domain_groups_dto'
|
82
|
+
require 'mailslurp_client/models/domain_information'
|
77
83
|
require 'mailslurp_client/models/domain_issues_dto'
|
78
84
|
require 'mailslurp_client/models/domain_name_record'
|
79
85
|
require 'mailslurp_client/models/domain_preview'
|
@@ -99,6 +105,7 @@ require 'mailslurp_client/models/email_preview'
|
|
99
105
|
require 'mailslurp_client/models/email_preview_urls'
|
100
106
|
require 'mailslurp_client/models/email_projection'
|
101
107
|
require 'mailslurp_client/models/email_recipients'
|
108
|
+
require 'mailslurp_client/models/email_screenshot_result'
|
102
109
|
require 'mailslurp_client/models/email_text_lines_result'
|
103
110
|
require 'mailslurp_client/models/email_validation_request_dto'
|
104
111
|
require 'mailslurp_client/models/email_verification_result'
|
@@ -125,6 +132,7 @@ require 'mailslurp_client/models/generate_mta_sts_record_options'
|
|
125
132
|
require 'mailslurp_client/models/generate_mta_sts_record_results'
|
126
133
|
require 'mailslurp_client/models/generate_tls_reporting_record_options'
|
127
134
|
require 'mailslurp_client/models/generate_tls_reporting_record_results'
|
135
|
+
require 'mailslurp_client/models/get_email_screenshot_options'
|
128
136
|
require 'mailslurp_client/models/gravatar_url'
|
129
137
|
require 'mailslurp_client/models/group_contacts_dto'
|
130
138
|
require 'mailslurp_client/models/group_dto'
|
@@ -132,8 +140,17 @@ require 'mailslurp_client/models/group_projection'
|
|
132
140
|
require 'mailslurp_client/models/html_validation_result'
|
133
141
|
require 'mailslurp_client/models/ip_address_result'
|
134
142
|
require 'mailslurp_client/models/image_issue'
|
143
|
+
require 'mailslurp_client/models/imap_access_details'
|
144
|
+
require 'mailslurp_client/models/imap_email_projection'
|
135
145
|
require 'mailslurp_client/models/imap_flag_operation_options'
|
146
|
+
require 'mailslurp_client/models/imap_server_fetch_item'
|
147
|
+
require 'mailslurp_client/models/imap_server_fetch_result'
|
148
|
+
require 'mailslurp_client/models/imap_server_list_options'
|
149
|
+
require 'mailslurp_client/models/imap_server_list_result'
|
150
|
+
require 'mailslurp_client/models/imap_server_search_options'
|
151
|
+
require 'mailslurp_client/models/imap_server_search_result'
|
136
152
|
require 'mailslurp_client/models/imap_smtp_access_details'
|
153
|
+
require 'mailslurp_client/models/imap_update_flags_options'
|
137
154
|
require 'mailslurp_client/models/inbox_by_email_address_result'
|
138
155
|
require 'mailslurp_client/models/inbox_by_name_result'
|
139
156
|
require 'mailslurp_client/models/inbox_dto'
|
@@ -232,6 +249,7 @@ require 'mailslurp_client/models/sms_match_option'
|
|
232
249
|
require 'mailslurp_client/models/sms_preview'
|
233
250
|
require 'mailslurp_client/models/sms_projection'
|
234
251
|
require 'mailslurp_client/models/sms_reply_options'
|
252
|
+
require 'mailslurp_client/models/smtp_access_details'
|
235
253
|
require 'mailslurp_client/models/sort_object'
|
236
254
|
require 'mailslurp_client/models/spelling_issue'
|
237
255
|
require 'mailslurp_client/models/template_dto'
|
@@ -303,6 +321,7 @@ require 'mailslurp_client/api/expired_controller_api'
|
|
303
321
|
require 'mailslurp_client/api/export_controller_api'
|
304
322
|
require 'mailslurp_client/api/form_controller_api'
|
305
323
|
require 'mailslurp_client/api/group_controller_api'
|
324
|
+
require 'mailslurp_client/api/imap_controller_api'
|
306
325
|
require 'mailslurp_client/api/inbox_controller_api'
|
307
326
|
require 'mailslurp_client/api/inbox_forwarder_controller_api'
|
308
327
|
require 'mailslurp_client/api/inbox_replier_controller_api'
|