mailslurp_client 12.4.8 → 12.6.4
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.rb +13 -0
- data/lib/mailslurp_client/api/contact_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/email_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/group_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/inbox_controller_api.rb +238 -12
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +548 -0
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +75 -7
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +150 -4
- data/lib/mailslurp_client/api/template_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/tracking_controller_api.rb +218 -0
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/webhook_controller_api.rb +55 -1
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +3 -3
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +274 -0
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +215 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +3 -3
- data/lib/mailslurp_client/models/email.rb +11 -1
- data/lib/mailslurp_client/models/email_projection.rb +10 -1
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +353 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +211 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +223 -0
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +299 -0
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +299 -0
- data/lib/mailslurp_client/models/send_email_options.rb +11 -1
- data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +225 -0
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +303 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +289 -0
- data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +322 -0
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_result_entity.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +15 -2
@@ -182,7 +182,7 @@ module MailSlurpClient
|
|
182
182
|
# Check to see if the all the properties in the model are valid
|
183
183
|
# @return true if the model is valid
|
184
184
|
def valid?
|
185
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
185
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
186
186
|
return false unless event_name_validator.valid?(@event_name)
|
187
187
|
method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
|
188
188
|
return false unless method_validator.valid?(@method)
|
@@ -193,7 +193,7 @@ module MailSlurpClient
|
|
193
193
|
# Custom attribute writer method checking allowed values (enum).
|
194
194
|
# @param [Object] event_name Object to be assigned
|
195
195
|
def event_name=(event_name)
|
196
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
196
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
197
197
|
unless validator.valid?(event_name)
|
198
198
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
199
199
|
end
|
@@ -0,0 +1,322 @@
|
|
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
|
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
|
+
# EMAIL_OPENED webhook payload. Sent to your webhook url endpoint via HTTP POST when an email containing a tracking pixel is opened and the pixel image is loaded by a reader.
|
17
|
+
class WebhookEmailOpenedPayload
|
18
|
+
# Date time of event creation
|
19
|
+
attr_accessor :created_at
|
20
|
+
|
21
|
+
# Name of the event type webhook is being triggered for.
|
22
|
+
attr_accessor :event_name
|
23
|
+
|
24
|
+
# Id of the inbox that received an email
|
25
|
+
attr_accessor :inbox_id
|
26
|
+
|
27
|
+
# Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
|
28
|
+
attr_accessor :message_id
|
29
|
+
|
30
|
+
# ID of the tracking pixel
|
31
|
+
attr_accessor :pixel_id
|
32
|
+
|
33
|
+
# Email address for the recipient of the tracking pixel
|
34
|
+
attr_accessor :recipient
|
35
|
+
|
36
|
+
# ID of sent email
|
37
|
+
attr_accessor :sent_email_id
|
38
|
+
|
39
|
+
# ID of webhook entity being triggered
|
40
|
+
attr_accessor :webhook_id
|
41
|
+
|
42
|
+
# Name of the webhook being triggered
|
43
|
+
attr_accessor :webhook_name
|
44
|
+
|
45
|
+
class EnumAttributeValidator
|
46
|
+
attr_reader :datatype
|
47
|
+
attr_reader :allowable_values
|
48
|
+
|
49
|
+
def initialize(datatype, allowable_values)
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
51
|
+
case datatype.to_s
|
52
|
+
when /Integer/i
|
53
|
+
value.to_i
|
54
|
+
when /Float/i
|
55
|
+
value.to_f
|
56
|
+
else
|
57
|
+
value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def valid?(value)
|
63
|
+
!value || allowable_values.include?(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
68
|
+
def self.attribute_map
|
69
|
+
{
|
70
|
+
:'created_at' => :'createdAt',
|
71
|
+
:'event_name' => :'eventName',
|
72
|
+
:'inbox_id' => :'inboxId',
|
73
|
+
:'message_id' => :'messageId',
|
74
|
+
:'pixel_id' => :'pixelId',
|
75
|
+
:'recipient' => :'recipient',
|
76
|
+
:'sent_email_id' => :'sentEmailId',
|
77
|
+
:'webhook_id' => :'webhookId',
|
78
|
+
:'webhook_name' => :'webhookName'
|
79
|
+
}
|
80
|
+
end
|
81
|
+
|
82
|
+
# Attribute type mapping.
|
83
|
+
def self.openapi_types
|
84
|
+
{
|
85
|
+
:'created_at' => :'DateTime',
|
86
|
+
:'event_name' => :'String',
|
87
|
+
:'inbox_id' => :'String',
|
88
|
+
:'message_id' => :'String',
|
89
|
+
:'pixel_id' => :'String',
|
90
|
+
:'recipient' => :'String',
|
91
|
+
:'sent_email_id' => :'String',
|
92
|
+
:'webhook_id' => :'String',
|
93
|
+
:'webhook_name' => :'String'
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
# List of attributes with nullable: true
|
98
|
+
def self.openapi_nullable
|
99
|
+
Set.new([
|
100
|
+
])
|
101
|
+
end
|
102
|
+
|
103
|
+
# Initializes the object
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
def initialize(attributes = {})
|
106
|
+
if (!attributes.is_a?(Hash))
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::WebhookEmailOpenedPayload` initialize method"
|
108
|
+
end
|
109
|
+
|
110
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
112
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::WebhookEmailOpenedPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
114
|
+
end
|
115
|
+
h[k.to_sym] = v
|
116
|
+
}
|
117
|
+
|
118
|
+
if attributes.key?(:'created_at')
|
119
|
+
self.created_at = attributes[:'created_at']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'event_name')
|
123
|
+
self.event_name = attributes[:'event_name']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'inbox_id')
|
127
|
+
self.inbox_id = attributes[:'inbox_id']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'message_id')
|
131
|
+
self.message_id = attributes[:'message_id']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'pixel_id')
|
135
|
+
self.pixel_id = attributes[:'pixel_id']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'recipient')
|
139
|
+
self.recipient = attributes[:'recipient']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'sent_email_id')
|
143
|
+
self.sent_email_id = attributes[:'sent_email_id']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'webhook_id')
|
147
|
+
self.webhook_id = attributes[:'webhook_id']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.key?(:'webhook_name')
|
151
|
+
self.webhook_name = attributes[:'webhook_name']
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
156
|
+
# @return Array for valid properties with the reasons
|
157
|
+
def list_invalid_properties
|
158
|
+
invalid_properties = Array.new
|
159
|
+
invalid_properties
|
160
|
+
end
|
161
|
+
|
162
|
+
# Check to see if the all the properties in the model are valid
|
163
|
+
# @return true if the model is valid
|
164
|
+
def valid?
|
165
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
166
|
+
return false unless event_name_validator.valid?(@event_name)
|
167
|
+
true
|
168
|
+
end
|
169
|
+
|
170
|
+
# Custom attribute writer method checking allowed values (enum).
|
171
|
+
# @param [Object] event_name Object to be assigned
|
172
|
+
def event_name=(event_name)
|
173
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
174
|
+
unless validator.valid?(event_name)
|
175
|
+
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
176
|
+
end
|
177
|
+
@event_name = event_name
|
178
|
+
end
|
179
|
+
|
180
|
+
# Checks equality by comparing each attribute.
|
181
|
+
# @param [Object] Object to be compared
|
182
|
+
def ==(o)
|
183
|
+
return true if self.equal?(o)
|
184
|
+
self.class == o.class &&
|
185
|
+
created_at == o.created_at &&
|
186
|
+
event_name == o.event_name &&
|
187
|
+
inbox_id == o.inbox_id &&
|
188
|
+
message_id == o.message_id &&
|
189
|
+
pixel_id == o.pixel_id &&
|
190
|
+
recipient == o.recipient &&
|
191
|
+
sent_email_id == o.sent_email_id &&
|
192
|
+
webhook_id == o.webhook_id &&
|
193
|
+
webhook_name == o.webhook_name
|
194
|
+
end
|
195
|
+
|
196
|
+
# @see the `==` method
|
197
|
+
# @param [Object] Object to be compared
|
198
|
+
def eql?(o)
|
199
|
+
self == o
|
200
|
+
end
|
201
|
+
|
202
|
+
# Calculates hash code according to all attributes.
|
203
|
+
# @return [Integer] Hash code
|
204
|
+
def hash
|
205
|
+
[created_at, event_name, inbox_id, message_id, pixel_id, recipient, sent_email_id, webhook_id, webhook_name].hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Builds the object from hash
|
209
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
210
|
+
# @return [Object] Returns the model itself
|
211
|
+
def self.build_from_hash(attributes)
|
212
|
+
new.build_from_hash(attributes)
|
213
|
+
end
|
214
|
+
|
215
|
+
# Builds the object from hash
|
216
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
217
|
+
# @return [Object] Returns the model itself
|
218
|
+
def build_from_hash(attributes)
|
219
|
+
return nil unless attributes.is_a?(Hash)
|
220
|
+
self.class.openapi_types.each_pair do |key, type|
|
221
|
+
if type =~ /\AArray<(.*)>/i
|
222
|
+
# check to ensure the input is an array given that the attribute
|
223
|
+
# is documented as an array but the input is not
|
224
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
225
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
226
|
+
end
|
227
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
228
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
229
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
230
|
+
end
|
231
|
+
|
232
|
+
self
|
233
|
+
end
|
234
|
+
|
235
|
+
# Deserializes the data based on type
|
236
|
+
# @param string type Data type
|
237
|
+
# @param string value Value to be deserialized
|
238
|
+
# @return [Object] Deserialized data
|
239
|
+
def _deserialize(type, value)
|
240
|
+
case type.to_sym
|
241
|
+
when :DateTime
|
242
|
+
DateTime.parse(value)
|
243
|
+
when :Date
|
244
|
+
Date.parse(value)
|
245
|
+
when :String
|
246
|
+
value.to_s
|
247
|
+
when :Integer
|
248
|
+
value.to_i
|
249
|
+
when :Float
|
250
|
+
value.to_f
|
251
|
+
when :Boolean
|
252
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
253
|
+
true
|
254
|
+
else
|
255
|
+
false
|
256
|
+
end
|
257
|
+
when :Object
|
258
|
+
# generic object (usually a Hash), return directly
|
259
|
+
value
|
260
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
261
|
+
inner_type = Regexp.last_match[:inner_type]
|
262
|
+
value.map { |v| _deserialize(inner_type, v) }
|
263
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
264
|
+
k_type = Regexp.last_match[:k_type]
|
265
|
+
v_type = Regexp.last_match[:v_type]
|
266
|
+
{}.tap do |hash|
|
267
|
+
value.each do |k, v|
|
268
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
else # model
|
272
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
# Returns the string representation of the object
|
277
|
+
# @return [String] String presentation of the object
|
278
|
+
def to_s
|
279
|
+
to_hash.to_s
|
280
|
+
end
|
281
|
+
|
282
|
+
# to_body is an alias to to_hash (backward compatibility)
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
284
|
+
def to_body
|
285
|
+
to_hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Returns the object in the form of hash
|
289
|
+
# @return [Hash] Returns the object in the form of hash
|
290
|
+
def to_hash
|
291
|
+
hash = {}
|
292
|
+
self.class.attribute_map.each_pair do |attr, param|
|
293
|
+
value = self.send(attr)
|
294
|
+
if value.nil?
|
295
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
296
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
297
|
+
end
|
298
|
+
|
299
|
+
hash[param] = _to_hash(value)
|
300
|
+
end
|
301
|
+
hash
|
302
|
+
end
|
303
|
+
|
304
|
+
# Outputs non-array value in the form of hash
|
305
|
+
# For object, use to_hash. Otherwise, just return the value
|
306
|
+
# @param [Object] value Any valid value
|
307
|
+
# @return [Hash] Returns the value in the form of hash
|
308
|
+
def _to_hash(value)
|
309
|
+
if value.is_a?(Array)
|
310
|
+
value.compact.map { |v| _to_hash(v) }
|
311
|
+
elsif value.is_a?(Hash)
|
312
|
+
{}.tap do |hash|
|
313
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
314
|
+
end
|
315
|
+
elsif value.respond_to? :to_hash
|
316
|
+
value.to_hash
|
317
|
+
else
|
318
|
+
value
|
319
|
+
end
|
320
|
+
end
|
321
|
+
end
|
322
|
+
end
|
@@ -153,7 +153,7 @@ module MailSlurpClient
|
|
153
153
|
# Check to see if the all the properties in the model are valid
|
154
154
|
# @return true if the model is valid
|
155
155
|
def valid?
|
156
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
156
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
157
157
|
return false unless event_name_validator.valid?(@event_name)
|
158
158
|
true
|
159
159
|
end
|
@@ -161,7 +161,7 @@ module MailSlurpClient
|
|
161
161
|
# Custom attribute writer method checking allowed values (enum).
|
162
162
|
# @param [Object] event_name Object to be assigned
|
163
163
|
def event_name=(event_name)
|
164
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
164
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
165
165
|
unless validator.valid?(event_name)
|
166
166
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
167
167
|
end
|
@@ -228,7 +228,7 @@ module MailSlurpClient
|
|
228
228
|
return false if @contact_id.nil?
|
229
229
|
return false if @created_at.nil?
|
230
230
|
return false if @email_addresses.nil?
|
231
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
231
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
232
232
|
return false unless event_name_validator.valid?(@event_name)
|
233
233
|
return false if @tags.nil?
|
234
234
|
true
|
@@ -237,7 +237,7 @@ module MailSlurpClient
|
|
237
237
|
# Custom attribute writer method checking allowed values (enum).
|
238
238
|
# @param [Object] event_name Object to be assigned
|
239
239
|
def event_name=(event_name)
|
240
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
240
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
241
241
|
unless validator.valid?(event_name)
|
242
242
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
243
243
|
end
|
@@ -206,7 +206,7 @@ module MailSlurpClient
|
|
206
206
|
# Check to see if the all the properties in the model are valid
|
207
207
|
# @return true if the model is valid
|
208
208
|
def valid?
|
209
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
209
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
210
210
|
return false unless event_name_validator.valid?(@event_name)
|
211
211
|
true
|
212
212
|
end
|
@@ -214,7 +214,7 @@ module MailSlurpClient
|
|
214
214
|
# Custom attribute writer method checking allowed values (enum).
|
215
215
|
# @param [Object] event_name Object to be assigned
|
216
216
|
def event_name=(event_name)
|
217
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
217
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
218
218
|
unless validator.valid?(event_name)
|
219
219
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
220
220
|
end
|
@@ -234,7 +234,7 @@ module MailSlurpClient
|
|
234
234
|
return false if @updated_at.nil?
|
235
235
|
return false if @user_id.nil?
|
236
236
|
return false if @webhook_event.nil?
|
237
|
-
webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
237
|
+
webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
238
238
|
return false unless webhook_event_validator.valid?(@webhook_event)
|
239
239
|
return false if @webhook_id.nil?
|
240
240
|
return false if @webhook_url.nil?
|
@@ -254,7 +254,7 @@ module MailSlurpClient
|
|
254
254
|
# Custom attribute writer method checking allowed values (enum).
|
255
255
|
# @param [Object] webhook_event Object to be assigned
|
256
256
|
def webhook_event=(webhook_event)
|
257
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT"])
|
257
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
|
258
258
|
unless validator.valid?(webhook_event)
|
259
259
|
fail ArgumentError, "invalid value for \"webhook_event\", must be one of #{validator.allowable_values}."
|
260
260
|
end
|
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: 12.4
|
4
|
+
version: 12.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-05 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.
|
@@ -35,10 +35,12 @@ files:
|
|
35
35
|
- lib/mailslurp_client/api/form_controller_api.rb
|
36
36
|
- lib/mailslurp_client/api/group_controller_api.rb
|
37
37
|
- lib/mailslurp_client/api/inbox_controller_api.rb
|
38
|
+
- lib/mailslurp_client/api/inbox_ruleset_controller_api.rb
|
38
39
|
- lib/mailslurp_client/api/mail_server_controller_api.rb
|
39
40
|
- lib/mailslurp_client/api/missed_email_controller_api.rb
|
40
41
|
- lib/mailslurp_client/api/sent_emails_controller_api.rb
|
41
42
|
- lib/mailslurp_client/api/template_controller_api.rb
|
43
|
+
- lib/mailslurp_client/api/tracking_controller_api.rb
|
42
44
|
- lib/mailslurp_client/api/wait_for_controller_api.rb
|
43
45
|
- lib/mailslurp_client/api/webhook_controller_api.rb
|
44
46
|
- lib/mailslurp_client/api_client.rb
|
@@ -60,7 +62,9 @@ files:
|
|
60
62
|
- lib/mailslurp_client/models/create_domain_options.rb
|
61
63
|
- lib/mailslurp_client/models/create_group_options.rb
|
62
64
|
- lib/mailslurp_client/models/create_inbox_dto.rb
|
65
|
+
- lib/mailslurp_client/models/create_inbox_ruleset_options.rb
|
63
66
|
- lib/mailslurp_client/models/create_template_options.rb
|
67
|
+
- lib/mailslurp_client/models/create_tracking_pixel_options.rb
|
64
68
|
- lib/mailslurp_client/models/create_webhook_options.rb
|
65
69
|
- lib/mailslurp_client/models/describe_domain_options.rb
|
66
70
|
- lib/mailslurp_client/models/describe_mail_server_domain_result.rb
|
@@ -90,6 +94,9 @@ files:
|
|
90
94
|
- lib/mailslurp_client/models/html_validation_result.rb
|
91
95
|
- lib/mailslurp_client/models/inbox.rb
|
92
96
|
- lib/mailslurp_client/models/inbox_projection.rb
|
97
|
+
- lib/mailslurp_client/models/inbox_ruleset_dto.rb
|
98
|
+
- lib/mailslurp_client/models/inbox_ruleset_test_options.rb
|
99
|
+
- lib/mailslurp_client/models/inbox_ruleset_test_result.rb
|
93
100
|
- lib/mailslurp_client/models/ip_address_result.rb
|
94
101
|
- lib/mailslurp_client/models/match_option.rb
|
95
102
|
- lib/mailslurp_client/models/match_options.rb
|
@@ -106,11 +113,13 @@ files:
|
|
106
113
|
- lib/mailslurp_client/models/page_expired_inbox_record_projection.rb
|
107
114
|
- lib/mailslurp_client/models/page_group_projection.rb
|
108
115
|
- lib/mailslurp_client/models/page_inbox_projection.rb
|
116
|
+
- lib/mailslurp_client/models/page_inbox_ruleset_dto.rb
|
109
117
|
- lib/mailslurp_client/models/page_missed_email_projection.rb
|
110
118
|
- lib/mailslurp_client/models/page_organization_inbox_projection.rb
|
111
119
|
- lib/mailslurp_client/models/page_sent_email_projection.rb
|
112
120
|
- lib/mailslurp_client/models/page_template_projection.rb
|
113
121
|
- lib/mailslurp_client/models/page_thread_projection.rb
|
122
|
+
- lib/mailslurp_client/models/page_tracking_pixel_projection.rb
|
114
123
|
- lib/mailslurp_client/models/page_webhook_projection.rb
|
115
124
|
- lib/mailslurp_client/models/page_webhook_result.rb
|
116
125
|
- lib/mailslurp_client/models/pageable.rb
|
@@ -126,7 +135,10 @@ files:
|
|
126
135
|
- lib/mailslurp_client/models/template_dto.rb
|
127
136
|
- lib/mailslurp_client/models/template_projection.rb
|
128
137
|
- lib/mailslurp_client/models/template_variable.rb
|
138
|
+
- lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb
|
129
139
|
- lib/mailslurp_client/models/thread_projection.rb
|
140
|
+
- lib/mailslurp_client/models/tracking_pixel_dto.rb
|
141
|
+
- lib/mailslurp_client/models/tracking_pixel_projection.rb
|
130
142
|
- lib/mailslurp_client/models/unread_count.rb
|
131
143
|
- lib/mailslurp_client/models/update_alias_options.rb
|
132
144
|
- lib/mailslurp_client/models/update_domain_options.rb
|
@@ -138,6 +150,7 @@ files:
|
|
138
150
|
- lib/mailslurp_client/models/verify_email_address_options.rb
|
139
151
|
- lib/mailslurp_client/models/wait_for_conditions.rb
|
140
152
|
- lib/mailslurp_client/models/webhook_dto.rb
|
153
|
+
- lib/mailslurp_client/models/webhook_email_opened_payload.rb
|
141
154
|
- lib/mailslurp_client/models/webhook_new_attachment_payload.rb
|
142
155
|
- lib/mailslurp_client/models/webhook_new_contact_payload.rb
|
143
156
|
- lib/mailslurp_client/models/webhook_new_email_payload.rb
|