mailslurp_client 15.14.0 → 15.15.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/bounce_controller_api.rb +76 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +131 -5
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +145 -0
- data/lib/mailslurp_client/models/contact_projection.rb +26 -26
- data/lib/mailslurp_client/models/forward_email_options.rb +16 -5
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +316 -0
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +250 -0
- 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_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 +308 -0
- data/lib/mailslurp_client/models/page_inbox_projection.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 +308 -0
- 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 +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- 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/scheduled_job.rb +2 -2
- data/lib/mailslurp_client/models/scheduled_job_dto.rb +371 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +5 -0
- metadata +7 -2
@@ -0,0 +1,371 @@
|
|
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
|
+
class ScheduledJobDto
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
attr_accessor :user_id
|
20
|
+
|
21
|
+
attr_accessor :inbox_id
|
22
|
+
|
23
|
+
attr_accessor :job_id
|
24
|
+
|
25
|
+
attr_accessor :group_id
|
26
|
+
|
27
|
+
attr_accessor :trigger_id
|
28
|
+
|
29
|
+
attr_accessor :status
|
30
|
+
|
31
|
+
attr_accessor :send_at_timestamp
|
32
|
+
|
33
|
+
attr_accessor :created_at
|
34
|
+
|
35
|
+
attr_accessor :updated_at
|
36
|
+
|
37
|
+
class EnumAttributeValidator
|
38
|
+
attr_reader :datatype
|
39
|
+
attr_reader :allowable_values
|
40
|
+
|
41
|
+
def initialize(datatype, allowable_values)
|
42
|
+
@allowable_values = allowable_values.map do |value|
|
43
|
+
case datatype.to_s
|
44
|
+
when /Integer/i
|
45
|
+
value.to_i
|
46
|
+
when /Float/i
|
47
|
+
value.to_f
|
48
|
+
else
|
49
|
+
value
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def valid?(value)
|
55
|
+
!value || allowable_values.include?(value)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
60
|
+
def self.attribute_map
|
61
|
+
{
|
62
|
+
:'id' => :'id',
|
63
|
+
:'user_id' => :'userId',
|
64
|
+
:'inbox_id' => :'inboxId',
|
65
|
+
:'job_id' => :'jobId',
|
66
|
+
:'group_id' => :'groupId',
|
67
|
+
:'trigger_id' => :'triggerId',
|
68
|
+
:'status' => :'status',
|
69
|
+
:'send_at_timestamp' => :'sendAtTimestamp',
|
70
|
+
:'created_at' => :'createdAt',
|
71
|
+
:'updated_at' => :'updatedAt'
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# Attribute type mapping.
|
76
|
+
def self.openapi_types
|
77
|
+
{
|
78
|
+
:'id' => :'String',
|
79
|
+
:'user_id' => :'String',
|
80
|
+
:'inbox_id' => :'String',
|
81
|
+
:'job_id' => :'String',
|
82
|
+
:'group_id' => :'String',
|
83
|
+
:'trigger_id' => :'String',
|
84
|
+
:'status' => :'String',
|
85
|
+
:'send_at_timestamp' => :'DateTime',
|
86
|
+
:'created_at' => :'DateTime',
|
87
|
+
:'updated_at' => :'DateTime'
|
88
|
+
}
|
89
|
+
end
|
90
|
+
|
91
|
+
# List of attributes with nullable: true
|
92
|
+
def self.openapi_nullable
|
93
|
+
Set.new([
|
94
|
+
])
|
95
|
+
end
|
96
|
+
|
97
|
+
# Initializes the object
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
def initialize(attributes = {})
|
100
|
+
if (!attributes.is_a?(Hash))
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ScheduledJobDto` initialize method"
|
102
|
+
end
|
103
|
+
|
104
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
105
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
106
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ScheduledJobDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
108
|
+
end
|
109
|
+
h[k.to_sym] = v
|
110
|
+
}
|
111
|
+
|
112
|
+
if attributes.key?(:'id')
|
113
|
+
self.id = attributes[:'id']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'user_id')
|
117
|
+
self.user_id = attributes[:'user_id']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'inbox_id')
|
121
|
+
self.inbox_id = attributes[:'inbox_id']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'job_id')
|
125
|
+
self.job_id = attributes[:'job_id']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'group_id')
|
129
|
+
self.group_id = attributes[:'group_id']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'trigger_id')
|
133
|
+
self.trigger_id = attributes[:'trigger_id']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'status')
|
137
|
+
self.status = attributes[:'status']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'send_at_timestamp')
|
141
|
+
self.send_at_timestamp = attributes[:'send_at_timestamp']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'created_at')
|
145
|
+
self.created_at = attributes[:'created_at']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'updated_at')
|
149
|
+
self.updated_at = attributes[:'updated_at']
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
154
|
+
# @return Array for valid properties with the reasons
|
155
|
+
def list_invalid_properties
|
156
|
+
invalid_properties = Array.new
|
157
|
+
if @id.nil?
|
158
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
159
|
+
end
|
160
|
+
|
161
|
+
if @user_id.nil?
|
162
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
163
|
+
end
|
164
|
+
|
165
|
+
if @inbox_id.nil?
|
166
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
167
|
+
end
|
168
|
+
|
169
|
+
if @job_id.nil?
|
170
|
+
invalid_properties.push('invalid value for "job_id", job_id cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
|
+
if @group_id.nil?
|
174
|
+
invalid_properties.push('invalid value for "group_id", group_id cannot be nil.')
|
175
|
+
end
|
176
|
+
|
177
|
+
if @trigger_id.nil?
|
178
|
+
invalid_properties.push('invalid value for "trigger_id", trigger_id cannot be nil.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if @status.nil?
|
182
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
183
|
+
end
|
184
|
+
|
185
|
+
if @send_at_timestamp.nil?
|
186
|
+
invalid_properties.push('invalid value for "send_at_timestamp", send_at_timestamp cannot be nil.')
|
187
|
+
end
|
188
|
+
|
189
|
+
if @created_at.nil?
|
190
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
191
|
+
end
|
192
|
+
|
193
|
+
if @updated_at.nil?
|
194
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
195
|
+
end
|
196
|
+
|
197
|
+
invalid_properties
|
198
|
+
end
|
199
|
+
|
200
|
+
# Check to see if the all the properties in the model are valid
|
201
|
+
# @return true if the model is valid
|
202
|
+
def valid?
|
203
|
+
return false if @id.nil?
|
204
|
+
return false if @user_id.nil?
|
205
|
+
return false if @inbox_id.nil?
|
206
|
+
return false if @job_id.nil?
|
207
|
+
return false if @group_id.nil?
|
208
|
+
return false if @trigger_id.nil?
|
209
|
+
return false if @status.nil?
|
210
|
+
status_validator = EnumAttributeValidator.new('String', ["SUBMITTED", "COMPLETED", "FAILED", "CANCELLED"])
|
211
|
+
return false unless status_validator.valid?(@status)
|
212
|
+
return false if @send_at_timestamp.nil?
|
213
|
+
return false if @created_at.nil?
|
214
|
+
return false if @updated_at.nil?
|
215
|
+
true
|
216
|
+
end
|
217
|
+
|
218
|
+
# Custom attribute writer method checking allowed values (enum).
|
219
|
+
# @param [Object] status Object to be assigned
|
220
|
+
def status=(status)
|
221
|
+
validator = EnumAttributeValidator.new('String', ["SUBMITTED", "COMPLETED", "FAILED", "CANCELLED"])
|
222
|
+
unless validator.valid?(status)
|
223
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
224
|
+
end
|
225
|
+
@status = status
|
226
|
+
end
|
227
|
+
|
228
|
+
# Checks equality by comparing each attribute.
|
229
|
+
# @param [Object] Object to be compared
|
230
|
+
def ==(o)
|
231
|
+
return true if self.equal?(o)
|
232
|
+
self.class == o.class &&
|
233
|
+
id == o.id &&
|
234
|
+
user_id == o.user_id &&
|
235
|
+
inbox_id == o.inbox_id &&
|
236
|
+
job_id == o.job_id &&
|
237
|
+
group_id == o.group_id &&
|
238
|
+
trigger_id == o.trigger_id &&
|
239
|
+
status == o.status &&
|
240
|
+
send_at_timestamp == o.send_at_timestamp &&
|
241
|
+
created_at == o.created_at &&
|
242
|
+
updated_at == o.updated_at
|
243
|
+
end
|
244
|
+
|
245
|
+
# @see the `==` method
|
246
|
+
# @param [Object] Object to be compared
|
247
|
+
def eql?(o)
|
248
|
+
self == o
|
249
|
+
end
|
250
|
+
|
251
|
+
# Calculates hash code according to all attributes.
|
252
|
+
# @return [Integer] Hash code
|
253
|
+
def hash
|
254
|
+
[id, user_id, inbox_id, job_id, group_id, trigger_id, status, send_at_timestamp, created_at, updated_at].hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Builds the object from hash
|
258
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
259
|
+
# @return [Object] Returns the model itself
|
260
|
+
def self.build_from_hash(attributes)
|
261
|
+
new.build_from_hash(attributes)
|
262
|
+
end
|
263
|
+
|
264
|
+
# Builds the object from hash
|
265
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
266
|
+
# @return [Object] Returns the model itself
|
267
|
+
def build_from_hash(attributes)
|
268
|
+
return nil unless attributes.is_a?(Hash)
|
269
|
+
self.class.openapi_types.each_pair do |key, type|
|
270
|
+
if type =~ /\AArray<(.*)>/i
|
271
|
+
# check to ensure the input is an array given that the attribute
|
272
|
+
# is documented as an array but the input is not
|
273
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
274
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
275
|
+
end
|
276
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
277
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
278
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
279
|
+
end
|
280
|
+
|
281
|
+
self
|
282
|
+
end
|
283
|
+
|
284
|
+
# Deserializes the data based on type
|
285
|
+
# @param string type Data type
|
286
|
+
# @param string value Value to be deserialized
|
287
|
+
# @return [Object] Deserialized data
|
288
|
+
def _deserialize(type, value)
|
289
|
+
case type.to_sym
|
290
|
+
when :DateTime
|
291
|
+
DateTime.parse(value)
|
292
|
+
when :Date
|
293
|
+
Date.parse(value)
|
294
|
+
when :String
|
295
|
+
value.to_s
|
296
|
+
when :Integer
|
297
|
+
value.to_i
|
298
|
+
when :Float
|
299
|
+
value.to_f
|
300
|
+
when :Boolean
|
301
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
302
|
+
true
|
303
|
+
else
|
304
|
+
false
|
305
|
+
end
|
306
|
+
when :Object
|
307
|
+
# generic object (usually a Hash), return directly
|
308
|
+
value
|
309
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
310
|
+
inner_type = Regexp.last_match[:inner_type]
|
311
|
+
value.map { |v| _deserialize(inner_type, v) }
|
312
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
313
|
+
k_type = Regexp.last_match[:k_type]
|
314
|
+
v_type = Regexp.last_match[:v_type]
|
315
|
+
{}.tap do |hash|
|
316
|
+
value.each do |k, v|
|
317
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
else # model
|
321
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
# Returns the string representation of the object
|
326
|
+
# @return [String] String presentation of the object
|
327
|
+
def to_s
|
328
|
+
to_hash.to_s
|
329
|
+
end
|
330
|
+
|
331
|
+
# to_body is an alias to to_hash (backward compatibility)
|
332
|
+
# @return [Hash] Returns the object in the form of hash
|
333
|
+
def to_body
|
334
|
+
to_hash
|
335
|
+
end
|
336
|
+
|
337
|
+
# Returns the object in the form of hash
|
338
|
+
# @return [Hash] Returns the object in the form of hash
|
339
|
+
def to_hash
|
340
|
+
hash = {}
|
341
|
+
self.class.attribute_map.each_pair do |attr, param|
|
342
|
+
value = self.send(attr)
|
343
|
+
if value.nil?
|
344
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
345
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
346
|
+
end
|
347
|
+
|
348
|
+
hash[param] = _to_hash(value)
|
349
|
+
end
|
350
|
+
hash
|
351
|
+
end
|
352
|
+
|
353
|
+
# Outputs non-array value in the form of hash
|
354
|
+
# For object, use to_hash. Otherwise, just return the value
|
355
|
+
# @param [Object] value Any valid value
|
356
|
+
# @return [Hash] Returns the value in the form of hash
|
357
|
+
def _to_hash(value)
|
358
|
+
if value.is_a?(Array)
|
359
|
+
value.compact.map { |v| _to_hash(v) }
|
360
|
+
elsif value.is_a?(Hash)
|
361
|
+
{}.tap do |hash|
|
362
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
363
|
+
end
|
364
|
+
elsif value.respond_to? :to_hash
|
365
|
+
value.to_hash
|
366
|
+
else
|
367
|
+
value
|
368
|
+
end
|
369
|
+
end
|
370
|
+
end
|
371
|
+
end
|
@@ -23,22 +23,22 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
|
-
attr_accessor :attachments
|
29
|
-
|
30
26
|
attr_accessor :inbox_id
|
31
27
|
|
32
|
-
attr_accessor :
|
28
|
+
attr_accessor :body_md5_hash
|
33
29
|
|
34
30
|
attr_accessor :bcc
|
35
31
|
|
36
32
|
attr_accessor :cc
|
37
33
|
|
38
|
-
attr_accessor :body_md5_hash
|
39
|
-
|
40
34
|
attr_accessor :virtual_send
|
41
35
|
|
36
|
+
attr_accessor :attachments
|
37
|
+
|
38
|
+
attr_accessor :created_at
|
39
|
+
|
40
|
+
attr_accessor :to
|
41
|
+
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
43
|
def self.attribute_map
|
44
44
|
{
|
@@ -46,14 +46,14 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'created_at' => :'createdAt',
|
50
|
-
:'attachments' => :'attachments',
|
51
49
|
:'inbox_id' => :'inboxId',
|
52
|
-
:'
|
50
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
53
51
|
:'bcc' => :'bcc',
|
54
52
|
:'cc' => :'cc',
|
55
|
-
:'
|
56
|
-
:'
|
53
|
+
:'virtual_send' => :'virtualSend',
|
54
|
+
:'attachments' => :'attachments',
|
55
|
+
:'created_at' => :'createdAt',
|
56
|
+
:'to' => :'to'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'created_at' => :'DateTime',
|
68
|
-
:'attachments' => :'Array<String>',
|
69
67
|
:'inbox_id' => :'String',
|
70
|
-
:'
|
68
|
+
:'body_md5_hash' => :'String',
|
71
69
|
:'bcc' => :'Array<String>',
|
72
70
|
:'cc' => :'Array<String>',
|
73
|
-
:'
|
74
|
-
:'
|
71
|
+
:'virtual_send' => :'Boolean',
|
72
|
+
:'attachments' => :'Array<String>',
|
73
|
+
:'created_at' => :'DateTime',
|
74
|
+
:'to' => :'Array<String>'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
@@ -112,24 +112,12 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'created_at')
|
116
|
-
self.created_at = attributes[:'created_at']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'attachments')
|
120
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
121
|
-
self.attachments = value
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
115
|
if attributes.key?(:'inbox_id')
|
126
116
|
self.inbox_id = attributes[:'inbox_id']
|
127
117
|
end
|
128
118
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
|
131
|
-
self.to = value
|
132
|
-
end
|
119
|
+
if attributes.key?(:'body_md5_hash')
|
120
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
133
121
|
end
|
134
122
|
|
135
123
|
if attributes.key?(:'bcc')
|
@@ -144,13 +132,25 @@ module MailSlurpClient
|
|
144
132
|
end
|
145
133
|
end
|
146
134
|
|
147
|
-
if attributes.key?(:'body_md5_hash')
|
148
|
-
self.body_md5_hash = attributes[:'body_md5_hash']
|
149
|
-
end
|
150
|
-
|
151
135
|
if attributes.key?(:'virtual_send')
|
152
136
|
self.virtual_send = attributes[:'virtual_send']
|
153
137
|
end
|
138
|
+
|
139
|
+
if attributes.key?(:'attachments')
|
140
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
141
|
+
self.attachments = value
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'created_at')
|
146
|
+
self.created_at = attributes[:'created_at']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'to')
|
150
|
+
if (value = attributes[:'to']).is_a?(Array)
|
151
|
+
self.to = value
|
152
|
+
end
|
153
|
+
end
|
154
154
|
end
|
155
155
|
|
156
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -165,22 +165,10 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @created_at.nil?
|
169
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
|
-
if @attachments.nil?
|
173
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
174
|
-
end
|
175
|
-
|
176
168
|
if @inbox_id.nil?
|
177
169
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
178
170
|
end
|
179
171
|
|
180
|
-
if @to.nil?
|
181
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
|
-
end
|
183
|
-
|
184
172
|
if @bcc.nil?
|
185
173
|
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
186
174
|
end
|
@@ -193,6 +181,18 @@ module MailSlurpClient
|
|
193
181
|
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
194
182
|
end
|
195
183
|
|
184
|
+
if @attachments.nil?
|
185
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @created_at.nil?
|
189
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
|
+
if @to.nil?
|
193
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
194
|
+
end
|
195
|
+
|
196
196
|
invalid_properties
|
197
197
|
end
|
198
198
|
|
@@ -201,13 +201,13 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
-
return false if @created_at.nil?
|
205
|
-
return false if @attachments.nil?
|
206
204
|
return false if @inbox_id.nil?
|
207
|
-
return false if @to.nil?
|
208
205
|
return false if @bcc.nil?
|
209
206
|
return false if @cc.nil?
|
210
207
|
return false if @virtual_send.nil?
|
208
|
+
return false if @attachments.nil?
|
209
|
+
return false if @created_at.nil?
|
210
|
+
return false if @to.nil?
|
211
211
|
true
|
212
212
|
end
|
213
213
|
|
@@ -220,14 +220,14 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
-
created_at == o.created_at &&
|
224
|
-
attachments == o.attachments &&
|
225
223
|
inbox_id == o.inbox_id &&
|
226
|
-
|
224
|
+
body_md5_hash == o.body_md5_hash &&
|
227
225
|
bcc == o.bcc &&
|
228
226
|
cc == o.cc &&
|
229
|
-
|
230
|
-
|
227
|
+
virtual_send == o.virtual_send &&
|
228
|
+
attachments == o.attachments &&
|
229
|
+
created_at == o.created_at &&
|
230
|
+
to == o.to
|
231
231
|
end
|
232
232
|
|
233
233
|
# @see the `==` method
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, inbox_id, body_md5_hash, bcc, cc, virtual_send, attachments, created_at, to].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -16,16 +16,16 @@ module MailSlurpClient
|
|
16
16
|
class Sort
|
17
17
|
attr_accessor :empty
|
18
18
|
|
19
|
-
attr_accessor :unsorted
|
20
|
-
|
21
19
|
attr_accessor :sorted
|
22
20
|
|
21
|
+
attr_accessor :unsorted
|
22
|
+
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
26
|
:'empty' => :'empty',
|
27
|
-
:'
|
28
|
-
:'
|
27
|
+
:'sorted' => :'sorted',
|
28
|
+
:'unsorted' => :'unsorted'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
@@ -33,8 +33,8 @@ module MailSlurpClient
|
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
35
|
:'empty' => :'Boolean',
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'sorted' => :'Boolean',
|
37
|
+
:'unsorted' => :'Boolean'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -63,13 +63,13 @@ module MailSlurpClient
|
|
63
63
|
self.empty = attributes[:'empty']
|
64
64
|
end
|
65
65
|
|
66
|
-
if attributes.key?(:'unsorted')
|
67
|
-
self.unsorted = attributes[:'unsorted']
|
68
|
-
end
|
69
|
-
|
70
66
|
if attributes.key?(:'sorted')
|
71
67
|
self.sorted = attributes[:'sorted']
|
72
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'unsorted')
|
71
|
+
self.unsorted = attributes[:'unsorted']
|
72
|
+
end
|
73
73
|
end
|
74
74
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,8 +91,8 @@ module MailSlurpClient
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
empty == o.empty &&
|
94
|
-
|
95
|
-
|
94
|
+
sorted == o.sorted &&
|
95
|
+
unsorted == o.unsorted
|
96
96
|
end
|
97
97
|
|
98
98
|
# @see the `==` method
|
@@ -104,7 +104,7 @@ module MailSlurpClient
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Integer] Hash code
|
106
106
|
def hash
|
107
|
-
[empty,
|
107
|
+
[empty, sorted, unsorted].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -93,6 +93,7 @@ require 'mailslurp_client/models/inbox_by_name_result'
|
|
93
93
|
require 'mailslurp_client/models/inbox_dto'
|
94
94
|
require 'mailslurp_client/models/inbox_exists_dto'
|
95
95
|
require 'mailslurp_client/models/inbox_forwarder_dto'
|
96
|
+
require 'mailslurp_client/models/inbox_forwarder_event_projection'
|
96
97
|
require 'mailslurp_client/models/inbox_forwarder_test_options'
|
97
98
|
require 'mailslurp_client/models/inbox_forwarder_test_result'
|
98
99
|
require 'mailslurp_client/models/inbox_id_item'
|
@@ -104,6 +105,7 @@ require 'mailslurp_client/models/inbox_ruleset_test_result'
|
|
104
105
|
require 'mailslurp_client/models/inline_object'
|
105
106
|
require 'mailslurp_client/models/inline_object1'
|
106
107
|
require 'mailslurp_client/models/json_schema_dto'
|
108
|
+
require 'mailslurp_client/models/list_unsubscribe_recipient_projection'
|
107
109
|
require 'mailslurp_client/models/match_option'
|
108
110
|
require 'mailslurp_client/models/match_options'
|
109
111
|
require 'mailslurp_client/models/missed_email_dto'
|
@@ -123,8 +125,10 @@ require 'mailslurp_client/models/page_email_validation_request'
|
|
123
125
|
require 'mailslurp_client/models/page_expired_inbox_record_projection'
|
124
126
|
require 'mailslurp_client/models/page_group_projection'
|
125
127
|
require 'mailslurp_client/models/page_inbox_forwarder_dto'
|
128
|
+
require 'mailslurp_client/models/page_inbox_forwarder_events'
|
126
129
|
require 'mailslurp_client/models/page_inbox_projection'
|
127
130
|
require 'mailslurp_client/models/page_inbox_ruleset_dto'
|
131
|
+
require 'mailslurp_client/models/page_list_unsubscribe_recipients'
|
128
132
|
require 'mailslurp_client/models/page_missed_email_projection'
|
129
133
|
require 'mailslurp_client/models/page_organization_inbox_projection'
|
130
134
|
require 'mailslurp_client/models/page_phone_number_projection'
|
@@ -147,6 +151,7 @@ require 'mailslurp_client/models/recipient'
|
|
147
151
|
require 'mailslurp_client/models/reply_to_alias_email_options'
|
148
152
|
require 'mailslurp_client/models/reply_to_email_options'
|
149
153
|
require 'mailslurp_client/models/scheduled_job'
|
154
|
+
require 'mailslurp_client/models/scheduled_job_dto'
|
150
155
|
require 'mailslurp_client/models/send_email_options'
|
151
156
|
require 'mailslurp_client/models/send_smtp_envelope_options'
|
152
157
|
require 'mailslurp_client/models/send_with_queue_result'
|