mailslurp_client 15.8.0 → 15.11.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/form_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/inbox_controller_api.rb +75 -0
- data/lib/mailslurp_client/configuration.rb +2 -2
- data/lib/mailslurp_client/models/alias_projection.rb +18 -18
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +18 -13
- data/lib/mailslurp_client/models/create_webhook_options.rb +1 -1
- data/lib/mailslurp_client/models/email_preview.rb +5 -0
- data/lib/mailslurp_client/models/email_projection.rb +45 -35
- data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
- data/lib/mailslurp_client/models/missed_email.rb +37 -1
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +5 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +40 -35
- data/lib/mailslurp_client/models/template_projection.rb +18 -18
- data/lib/mailslurp_client/models/thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/webhook_dto.rb +1 -1
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +5 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
- data/lib/mailslurp_client/models/webhook_result_dto.rb +5 -0
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
# Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://api.mailslurp.com/schemas/webhook-payload for the payload schema.
|
16
|
+
# Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://ruby.api.mailslurp.com/schemas/webhook-payload for the payload schema.
|
17
17
|
class WebhookDto
|
18
18
|
# ID of the Webhook
|
19
19
|
attr_accessor :id
|
@@ -227,6 +227,10 @@ module MailSlurpClient
|
|
227
227
|
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
228
228
|
end
|
229
229
|
|
230
|
+
if @opt_out.nil?
|
231
|
+
invalid_properties.push('invalid value for "opt_out", opt_out cannot be nil.')
|
232
|
+
end
|
233
|
+
|
230
234
|
if @created_at.nil?
|
231
235
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
232
236
|
end
|
@@ -245,6 +249,7 @@ module MailSlurpClient
|
|
245
249
|
return false if @contact_id.nil?
|
246
250
|
return false if @email_addresses.nil?
|
247
251
|
return false if @tags.nil?
|
252
|
+
return false if @opt_out.nil?
|
248
253
|
return false if @created_at.nil?
|
249
254
|
true
|
250
255
|
end
|
@@ -25,10 +25,10 @@ module MailSlurpClient
|
|
25
25
|
|
26
26
|
attr_accessor :event_name
|
27
27
|
|
28
|
-
attr_accessor :updated_at
|
29
|
-
|
30
28
|
attr_accessor :created_at
|
31
29
|
|
30
|
+
attr_accessor :updated_at
|
31
|
+
|
32
32
|
class EnumAttributeValidator
|
33
33
|
attr_reader :datatype
|
34
34
|
attr_reader :allowable_values
|
@@ -59,8 +59,8 @@ module MailSlurpClient
|
|
59
59
|
:'url' => :'url',
|
60
60
|
:'inbox_id' => :'inboxId',
|
61
61
|
:'event_name' => :'eventName',
|
62
|
-
:'
|
63
|
-
:'
|
62
|
+
:'created_at' => :'createdAt',
|
63
|
+
:'updated_at' => :'updatedAt'
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -72,8 +72,8 @@ module MailSlurpClient
|
|
72
72
|
:'url' => :'String',
|
73
73
|
:'inbox_id' => :'String',
|
74
74
|
:'event_name' => :'String',
|
75
|
-
:'
|
76
|
-
:'
|
75
|
+
:'created_at' => :'DateTime',
|
76
|
+
:'updated_at' => :'DateTime'
|
77
77
|
}
|
78
78
|
end
|
79
79
|
|
@@ -118,13 +118,13 @@ module MailSlurpClient
|
|
118
118
|
self.event_name = attributes[:'event_name']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'updated_at')
|
122
|
-
self.updated_at = attributes[:'updated_at']
|
123
|
-
end
|
124
|
-
|
125
121
|
if attributes.key?(:'created_at')
|
126
122
|
self.created_at = attributes[:'created_at']
|
127
123
|
end
|
124
|
+
|
125
|
+
if attributes.key?(:'updated_at')
|
126
|
+
self.updated_at = attributes[:'updated_at']
|
127
|
+
end
|
128
128
|
end
|
129
129
|
|
130
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -139,14 +139,14 @@ module MailSlurpClient
|
|
139
139
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
140
140
|
end
|
141
141
|
|
142
|
-
if @updated_at.nil?
|
143
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
144
|
-
end
|
145
|
-
|
146
142
|
if @created_at.nil?
|
147
143
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
148
144
|
end
|
149
145
|
|
146
|
+
if @updated_at.nil?
|
147
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
148
|
+
end
|
149
|
+
|
150
150
|
invalid_properties
|
151
151
|
end
|
152
152
|
|
@@ -157,8 +157,8 @@ module MailSlurpClient
|
|
157
157
|
return false if @url.nil?
|
158
158
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
|
159
159
|
return false unless event_name_validator.valid?(@event_name)
|
160
|
-
return false if @updated_at.nil?
|
161
160
|
return false if @created_at.nil?
|
161
|
+
return false if @updated_at.nil?
|
162
162
|
true
|
163
163
|
end
|
164
164
|
|
@@ -182,8 +182,8 @@ module MailSlurpClient
|
|
182
182
|
url == o.url &&
|
183
183
|
inbox_id == o.inbox_id &&
|
184
184
|
event_name == o.event_name &&
|
185
|
-
|
186
|
-
|
185
|
+
created_at == o.created_at &&
|
186
|
+
updated_at == o.updated_at
|
187
187
|
end
|
188
188
|
|
189
189
|
# @see the `==` method
|
@@ -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, inbox_id, event_name, created_at, updated_at].hash
|
199
199
|
end
|
200
200
|
|
201
201
|
# Builds the object from hash
|
@@ -239,6 +239,10 @@ module MailSlurpClient
|
|
239
239
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
240
240
|
end
|
241
241
|
|
242
|
+
if @seen.nil?
|
243
|
+
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
244
|
+
end
|
245
|
+
|
242
246
|
invalid_properties
|
243
247
|
end
|
244
248
|
|
@@ -260,6 +264,7 @@ module MailSlurpClient
|
|
260
264
|
return false unless result_type_validator.valid?(@result_type)
|
261
265
|
return false if @created_at.nil?
|
262
266
|
return false if @updated_at.nil?
|
267
|
+
return false if @seen.nil?
|
263
268
|
true
|
264
269
|
end
|
265
270
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|