mailslurp_client 15.17.40 → 15.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -22
- data/lib/mailslurp_client/api/email_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +175 -0
- data/lib/mailslurp_client/models/alias_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/check_email_body_results.rb +259 -0
- data/lib/mailslurp_client/models/connector_projection.rb +24 -24
- 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/email_projection.rb +21 -21
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/fake_email_dto.rb +305 -0
- data/lib/mailslurp_client/models/fake_email_preview.rb +291 -0
- data/lib/mailslurp_client/models/fake_email_result.rb +206 -0
- data/lib/mailslurp_client/models/image_issue.rb +282 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +15 -4
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/link_issue.rb +282 -0
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/new_fake_email_address_result.rb +211 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +44 -44
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/spelling_issue.rb +287 -0
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +41 -41
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +8 -0
- metadata +10 -2
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox replier event
|
17
17
|
class InboxReplierEventProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :recipients
|
21
19
|
|
22
|
-
attr_accessor :user_id
|
23
|
-
|
24
20
|
attr_accessor :email_id
|
25
21
|
|
26
22
|
attr_accessor :inbox_id
|
27
23
|
|
24
|
+
attr_accessor :user_id
|
25
|
+
|
28
26
|
attr_accessor :sent_id
|
29
27
|
|
30
28
|
attr_accessor :replier_id
|
31
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
32
|
attr_accessor :message
|
33
33
|
|
34
34
|
attr_accessor :id
|
@@ -60,13 +60,13 @@ module MailSlurpClient
|
|
60
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
|
-
:'created_at' => :'createdAt',
|
64
63
|
:'recipients' => :'recipients',
|
65
|
-
:'user_id' => :'userId',
|
66
64
|
:'email_id' => :'emailId',
|
67
65
|
:'inbox_id' => :'inboxId',
|
66
|
+
:'user_id' => :'userId',
|
68
67
|
:'sent_id' => :'sentId',
|
69
68
|
:'replier_id' => :'replierId',
|
69
|
+
:'created_at' => :'createdAt',
|
70
70
|
:'message' => :'message',
|
71
71
|
:'id' => :'id',
|
72
72
|
:'status' => :'status'
|
@@ -76,13 +76,13 @@ module MailSlurpClient
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
|
-
:'created_at' => :'DateTime',
|
80
79
|
:'recipients' => :'Array<String>',
|
81
|
-
:'user_id' => :'String',
|
82
80
|
:'email_id' => :'String',
|
83
81
|
:'inbox_id' => :'String',
|
82
|
+
:'user_id' => :'String',
|
84
83
|
:'sent_id' => :'String',
|
85
84
|
:'replier_id' => :'String',
|
85
|
+
:'created_at' => :'DateTime',
|
86
86
|
:'message' => :'String',
|
87
87
|
:'id' => :'String',
|
88
88
|
:'status' => :'String'
|
@@ -93,9 +93,9 @@ module MailSlurpClient
|
|
93
93
|
def self.openapi_nullable
|
94
94
|
Set.new([
|
95
95
|
:'recipients',
|
96
|
-
:'user_id',
|
97
96
|
:'email_id',
|
98
97
|
:'inbox_id',
|
98
|
+
:'user_id',
|
99
99
|
:'sent_id',
|
100
100
|
:'replier_id',
|
101
101
|
:'message',
|
@@ -119,20 +119,12 @@ module MailSlurpClient
|
|
119
119
|
h[k.to_sym] = v
|
120
120
|
}
|
121
121
|
|
122
|
-
if attributes.key?(:'created_at')
|
123
|
-
self.created_at = attributes[:'created_at']
|
124
|
-
end
|
125
|
-
|
126
122
|
if attributes.key?(:'recipients')
|
127
123
|
if (value = attributes[:'recipients']).is_a?(Array)
|
128
124
|
self.recipients = value
|
129
125
|
end
|
130
126
|
end
|
131
127
|
|
132
|
-
if attributes.key?(:'user_id')
|
133
|
-
self.user_id = attributes[:'user_id']
|
134
|
-
end
|
135
|
-
|
136
128
|
if attributes.key?(:'email_id')
|
137
129
|
self.email_id = attributes[:'email_id']
|
138
130
|
end
|
@@ -141,6 +133,10 @@ module MailSlurpClient
|
|
141
133
|
self.inbox_id = attributes[:'inbox_id']
|
142
134
|
end
|
143
135
|
|
136
|
+
if attributes.key?(:'user_id')
|
137
|
+
self.user_id = attributes[:'user_id']
|
138
|
+
end
|
139
|
+
|
144
140
|
if attributes.key?(:'sent_id')
|
145
141
|
self.sent_id = attributes[:'sent_id']
|
146
142
|
end
|
@@ -149,6 +145,10 @@ module MailSlurpClient
|
|
149
145
|
self.replier_id = attributes[:'replier_id']
|
150
146
|
end
|
151
147
|
|
148
|
+
if attributes.key?(:'created_at')
|
149
|
+
self.created_at = attributes[:'created_at']
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'message')
|
153
153
|
self.message = attributes[:'message']
|
154
154
|
end
|
@@ -197,13 +197,13 @@ module MailSlurpClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
-
created_at == o.created_at &&
|
201
200
|
recipients == o.recipients &&
|
202
|
-
user_id == o.user_id &&
|
203
201
|
email_id == o.email_id &&
|
204
202
|
inbox_id == o.inbox_id &&
|
203
|
+
user_id == o.user_id &&
|
205
204
|
sent_id == o.sent_id &&
|
206
205
|
replier_id == o.replier_id &&
|
206
|
+
created_at == o.created_at &&
|
207
207
|
message == o.message &&
|
208
208
|
id == o.id &&
|
209
209
|
status == o.status
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[
|
221
|
+
[recipients, email_id, inbox_id, user_id, sent_id, replier_id, created_at, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -0,0 +1,282 @@
|
|
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 LinkIssue
|
17
|
+
attr_accessor :url
|
18
|
+
|
19
|
+
attr_accessor :response_status
|
20
|
+
|
21
|
+
attr_accessor :severity
|
22
|
+
|
23
|
+
attr_accessor :message
|
24
|
+
|
25
|
+
class EnumAttributeValidator
|
26
|
+
attr_reader :datatype
|
27
|
+
attr_reader :allowable_values
|
28
|
+
|
29
|
+
def initialize(datatype, allowable_values)
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
31
|
+
case datatype.to_s
|
32
|
+
when /Integer/i
|
33
|
+
value.to_i
|
34
|
+
when /Float/i
|
35
|
+
value.to_f
|
36
|
+
else
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def valid?(value)
|
43
|
+
!value || allowable_values.include?(value)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'url' => :'url',
|
51
|
+
:'response_status' => :'responseStatus',
|
52
|
+
:'severity' => :'severity',
|
53
|
+
:'message' => :'message'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.openapi_types
|
59
|
+
{
|
60
|
+
:'url' => :'String',
|
61
|
+
:'response_status' => :'Integer',
|
62
|
+
:'severity' => :'String',
|
63
|
+
:'message' => :'String'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::LinkIssue` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::LinkIssue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'url')
|
89
|
+
self.url = attributes[:'url']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'response_status')
|
93
|
+
self.response_status = attributes[:'response_status']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'severity')
|
97
|
+
self.severity = attributes[:'severity']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'message')
|
101
|
+
self.message = attributes[:'message']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
invalid_properties = Array.new
|
109
|
+
if @url.nil?
|
110
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if @severity.nil?
|
114
|
+
invalid_properties.push('invalid value for "severity", severity cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if @message.nil?
|
118
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
119
|
+
end
|
120
|
+
|
121
|
+
invalid_properties
|
122
|
+
end
|
123
|
+
|
124
|
+
# Check to see if the all the properties in the model are valid
|
125
|
+
# @return true if the model is valid
|
126
|
+
def valid?
|
127
|
+
return false if @url.nil?
|
128
|
+
return false if @severity.nil?
|
129
|
+
severity_validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
|
130
|
+
return false unless severity_validator.valid?(@severity)
|
131
|
+
return false if @message.nil?
|
132
|
+
true
|
133
|
+
end
|
134
|
+
|
135
|
+
# Custom attribute writer method checking allowed values (enum).
|
136
|
+
# @param [Object] severity Object to be assigned
|
137
|
+
def severity=(severity)
|
138
|
+
validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
|
139
|
+
unless validator.valid?(severity)
|
140
|
+
fail ArgumentError, "invalid value for \"severity\", must be one of #{validator.allowable_values}."
|
141
|
+
end
|
142
|
+
@severity = severity
|
143
|
+
end
|
144
|
+
|
145
|
+
# Checks equality by comparing each attribute.
|
146
|
+
# @param [Object] Object to be compared
|
147
|
+
def ==(o)
|
148
|
+
return true if self.equal?(o)
|
149
|
+
self.class == o.class &&
|
150
|
+
url == o.url &&
|
151
|
+
response_status == o.response_status &&
|
152
|
+
severity == o.severity &&
|
153
|
+
message == o.message
|
154
|
+
end
|
155
|
+
|
156
|
+
# @see the `==` method
|
157
|
+
# @param [Object] Object to be compared
|
158
|
+
def eql?(o)
|
159
|
+
self == o
|
160
|
+
end
|
161
|
+
|
162
|
+
# Calculates hash code according to all attributes.
|
163
|
+
# @return [Integer] Hash code
|
164
|
+
def hash
|
165
|
+
[url, response_status, severity, message].hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Builds the object from hash
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
+
# @return [Object] Returns the model itself
|
171
|
+
def self.build_from_hash(attributes)
|
172
|
+
new.build_from_hash(attributes)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Builds the object from hash
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
+
# @return [Object] Returns the model itself
|
178
|
+
def build_from_hash(attributes)
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
180
|
+
self.class.openapi_types.each_pair do |key, type|
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
185
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
188
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
190
|
+
end
|
191
|
+
|
192
|
+
self
|
193
|
+
end
|
194
|
+
|
195
|
+
# Deserializes the data based on type
|
196
|
+
# @param string type Data type
|
197
|
+
# @param string value Value to be deserialized
|
198
|
+
# @return [Object] Deserialized data
|
199
|
+
def _deserialize(type, value)
|
200
|
+
case type.to_sym
|
201
|
+
when :DateTime
|
202
|
+
DateTime.parse(value)
|
203
|
+
when :Date
|
204
|
+
Date.parse(value)
|
205
|
+
when :String
|
206
|
+
value.to_s
|
207
|
+
when :Integer
|
208
|
+
value.to_i
|
209
|
+
when :Float
|
210
|
+
value.to_f
|
211
|
+
when :Boolean
|
212
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
+
true
|
214
|
+
else
|
215
|
+
false
|
216
|
+
end
|
217
|
+
when :Object
|
218
|
+
# generic object (usually a Hash), return directly
|
219
|
+
value
|
220
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
+
inner_type = Regexp.last_match[:inner_type]
|
222
|
+
value.map { |v| _deserialize(inner_type, v) }
|
223
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
+
k_type = Regexp.last_match[:k_type]
|
225
|
+
v_type = Regexp.last_match[:v_type]
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each do |k, v|
|
228
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
else # model
|
232
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Returns the string representation of the object
|
237
|
+
# @return [String] String presentation of the object
|
238
|
+
def to_s
|
239
|
+
to_hash.to_s
|
240
|
+
end
|
241
|
+
|
242
|
+
# to_body is an alias to to_hash (backward compatibility)
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
244
|
+
def to_body
|
245
|
+
to_hash
|
246
|
+
end
|
247
|
+
|
248
|
+
# Returns the object in the form of hash
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
250
|
+
def to_hash
|
251
|
+
hash = {}
|
252
|
+
self.class.attribute_map.each_pair do |attr, param|
|
253
|
+
value = self.send(attr)
|
254
|
+
if value.nil?
|
255
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
256
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
257
|
+
end
|
258
|
+
|
259
|
+
hash[param] = _to_hash(value)
|
260
|
+
end
|
261
|
+
hash
|
262
|
+
end
|
263
|
+
|
264
|
+
# Outputs non-array value in the form of hash
|
265
|
+
# For object, use to_hash. Otherwise, just return the value
|
266
|
+
# @param [Object] value Any valid value
|
267
|
+
# @return [Hash] Returns the value in the form of hash
|
268
|
+
def _to_hash(value)
|
269
|
+
if value.is_a?(Array)
|
270
|
+
value.compact.map { |v| _to_hash(v) }
|
271
|
+
elsif value.is_a?(Hash)
|
272
|
+
{}.tap do |hash|
|
273
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
274
|
+
end
|
275
|
+
elsif value.respond_to? :to_hash
|
276
|
+
value.to_hash
|
277
|
+
else
|
278
|
+
value
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# List unsubscribe recipient
|
17
17
|
class ListUnsubscribeRecipientProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
22
20
|
attr_accessor :domain_id
|
23
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'created_at' => :'createdAt',
|
30
29
|
:'email_address' => :'emailAddress',
|
31
30
|
:'domain_id' => :'domainId',
|
31
|
+
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
34
34
|
end
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'created_at' => :'DateTime',
|
40
39
|
:'email_address' => :'String',
|
41
40
|
:'domain_id' => :'String',
|
41
|
+
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -65,10 +65,6 @@ module MailSlurpClient
|
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
67
67
|
|
68
|
-
if attributes.key?(:'created_at')
|
69
|
-
self.created_at = attributes[:'created_at']
|
70
|
-
end
|
71
|
-
|
72
68
|
if attributes.key?(:'email_address')
|
73
69
|
self.email_address = attributes[:'email_address']
|
74
70
|
end
|
@@ -77,6 +73,10 @@ module MailSlurpClient
|
|
77
73
|
self.domain_id = attributes[:'domain_id']
|
78
74
|
end
|
79
75
|
|
76
|
+
if attributes.key?(:'created_at')
|
77
|
+
self.created_at = attributes[:'created_at']
|
78
|
+
end
|
79
|
+
|
80
80
|
if attributes.key?(:'id')
|
81
81
|
self.id = attributes[:'id']
|
82
82
|
end
|
@@ -86,14 +86,14 @@ module MailSlurpClient
|
|
86
86
|
# @return Array for valid properties with the reasons
|
87
87
|
def list_invalid_properties
|
88
88
|
invalid_properties = Array.new
|
89
|
-
if @created_at.nil?
|
90
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
89
|
if @email_address.nil?
|
94
90
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
95
91
|
end
|
96
92
|
|
93
|
+
if @created_at.nil?
|
94
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
97
|
if @id.nil?
|
98
98
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
99
|
end
|
@@ -104,8 +104,8 @@ module MailSlurpClient
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
-
return false if @created_at.nil?
|
108
107
|
return false if @email_address.nil?
|
108
|
+
return false if @created_at.nil?
|
109
109
|
return false if @id.nil?
|
110
110
|
true
|
111
111
|
end
|
@@ -115,9 +115,9 @@ module MailSlurpClient
|
|
115
115
|
def ==(o)
|
116
116
|
return true if self.equal?(o)
|
117
117
|
self.class == o.class &&
|
118
|
-
created_at == o.created_at &&
|
119
118
|
email_address == o.email_address &&
|
120
119
|
domain_id == o.domain_id &&
|
120
|
+
created_at == o.created_at &&
|
121
121
|
id == o.id
|
122
122
|
end
|
123
123
|
|
@@ -130,7 +130,7 @@ module MailSlurpClient
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Integer] Hash code
|
132
132
|
def hash
|
133
|
-
[
|
133
|
+
[email_address, domain_id, created_at, id].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :user_id
|
21
19
|
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -28,8 +28,8 @@ 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
31
|
:'user_id' => :'userId',
|
32
|
+
:'created_at' => :'createdAt',
|
33
33
|
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
@@ -39,8 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'created_at' => :'DateTime',
|
43
42
|
:'user_id' => :'String',
|
43
|
+
:'created_at' => :'DateTime',
|
44
44
|
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
@@ -71,14 +71,14 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
-
if attributes.key?(:'created_at')
|
75
|
-
self.created_at = attributes[:'created_at']
|
76
|
-
end
|
77
|
-
|
78
74
|
if attributes.key?(:'user_id')
|
79
75
|
self.user_id = attributes[:'user_id']
|
80
76
|
end
|
81
77
|
|
78
|
+
if attributes.key?(:'created_at')
|
79
|
+
self.created_at = attributes[:'created_at']
|
80
|
+
end
|
81
|
+
|
82
82
|
if attributes.key?(:'subject')
|
83
83
|
self.subject = attributes[:'subject']
|
84
84
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
def ==(o)
|
121
121
|
return true if self.equal?(o)
|
122
122
|
self.class == o.class &&
|
123
|
-
created_at == o.created_at &&
|
124
123
|
user_id == o.user_id &&
|
124
|
+
created_at == o.created_at &&
|
125
125
|
subject == o.subject &&
|
126
126
|
id == o.id &&
|
127
127
|
from == o.from
|
@@ -136,7 +136,7 @@ module MailSlurpClient
|
|
136
136
|
# Calculates hash code according to all attributes.
|
137
137
|
# @return [Integer] Hash code
|
138
138
|
def hash
|
139
|
-
[
|
139
|
+
[user_id, created_at, subject, id, from].hash
|
140
140
|
end
|
141
141
|
|
142
142
|
# Builds the object from hash
|