mailslurp_client 15.17.41 → 15.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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 +19 -19
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +11 -11
- data/lib/mailslurp_client/models/check_email_body_results.rb +259 -0
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- 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 +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/link_issue.rb +282 -0
- data/lib/mailslurp_client/models/new_fake_email_address_result.rb +211 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +38 -38
- data/lib/mailslurp_client/models/spelling_issue.rb +287 -0
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +8 -0
- metadata +10 -2
@@ -0,0 +1,259 @@
|
|
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 CheckEmailBodyResults
|
17
|
+
attr_accessor :has_issues
|
18
|
+
|
19
|
+
attr_accessor :link_issues
|
20
|
+
|
21
|
+
attr_accessor :image_issues
|
22
|
+
|
23
|
+
attr_accessor :spelling_issues
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'has_issues' => :'hasIssues',
|
29
|
+
:'link_issues' => :'linkIssues',
|
30
|
+
:'image_issues' => :'imageIssues',
|
31
|
+
:'spelling_issues' => :'spellingIssues'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'has_issues' => :'Boolean',
|
39
|
+
:'link_issues' => :'Array<LinkIssue>',
|
40
|
+
:'image_issues' => :'Array<ImageIssue>',
|
41
|
+
:'spelling_issues' => :'Array<SpellingIssue>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CheckEmailBodyResults` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CheckEmailBodyResults`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'has_issues')
|
67
|
+
self.has_issues = attributes[:'has_issues']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'link_issues')
|
71
|
+
if (value = attributes[:'link_issues']).is_a?(Array)
|
72
|
+
self.link_issues = value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'image_issues')
|
77
|
+
if (value = attributes[:'image_issues']).is_a?(Array)
|
78
|
+
self.image_issues = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'spelling_issues')
|
83
|
+
if (value = attributes[:'spelling_issues']).is_a?(Array)
|
84
|
+
self.spelling_issues = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
90
|
+
# @return Array for valid properties with the reasons
|
91
|
+
def list_invalid_properties
|
92
|
+
invalid_properties = Array.new
|
93
|
+
if @has_issues.nil?
|
94
|
+
invalid_properties.push('invalid value for "has_issues", has_issues cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @link_issues.nil?
|
98
|
+
invalid_properties.push('invalid value for "link_issues", link_issues cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @image_issues.nil?
|
102
|
+
invalid_properties.push('invalid value for "image_issues", image_issues cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if @spelling_issues.nil?
|
106
|
+
invalid_properties.push('invalid value for "spelling_issues", spelling_issues cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
invalid_properties
|
110
|
+
end
|
111
|
+
|
112
|
+
# Check to see if the all the properties in the model are valid
|
113
|
+
# @return true if the model is valid
|
114
|
+
def valid?
|
115
|
+
return false if @has_issues.nil?
|
116
|
+
return false if @link_issues.nil?
|
117
|
+
return false if @image_issues.nil?
|
118
|
+
return false if @spelling_issues.nil?
|
119
|
+
true
|
120
|
+
end
|
121
|
+
|
122
|
+
# Checks equality by comparing each attribute.
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def ==(o)
|
125
|
+
return true if self.equal?(o)
|
126
|
+
self.class == o.class &&
|
127
|
+
has_issues == o.has_issues &&
|
128
|
+
link_issues == o.link_issues &&
|
129
|
+
image_issues == o.image_issues &&
|
130
|
+
spelling_issues == o.spelling_issues
|
131
|
+
end
|
132
|
+
|
133
|
+
# @see the `==` method
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def eql?(o)
|
136
|
+
self == o
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Integer] Hash code
|
141
|
+
def hash
|
142
|
+
[has_issues, link_issues, image_issues, spelling_issues].hash
|
143
|
+
end
|
144
|
+
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def self.build_from_hash(attributes)
|
149
|
+
new.build_from_hash(attributes)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
self.class.openapi_types.each_pair do |key, type|
|
158
|
+
if type =~ /\AArray<(.*)>/i
|
159
|
+
# check to ensure the input is an array given that the attribute
|
160
|
+
# is documented as an array but the input is not
|
161
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
163
|
+
end
|
164
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
165
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
167
|
+
end
|
168
|
+
|
169
|
+
self
|
170
|
+
end
|
171
|
+
|
172
|
+
# Deserializes the data based on type
|
173
|
+
# @param string type Data type
|
174
|
+
# @param string value Value to be deserialized
|
175
|
+
# @return [Object] Deserialized data
|
176
|
+
def _deserialize(type, value)
|
177
|
+
case type.to_sym
|
178
|
+
when :DateTime
|
179
|
+
DateTime.parse(value)
|
180
|
+
when :Date
|
181
|
+
Date.parse(value)
|
182
|
+
when :String
|
183
|
+
value.to_s
|
184
|
+
when :Integer
|
185
|
+
value.to_i
|
186
|
+
when :Float
|
187
|
+
value.to_f
|
188
|
+
when :Boolean
|
189
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
190
|
+
true
|
191
|
+
else
|
192
|
+
false
|
193
|
+
end
|
194
|
+
when :Object
|
195
|
+
# generic object (usually a Hash), return directly
|
196
|
+
value
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
200
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each do |k, v|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
else # model
|
209
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the string representation of the object
|
214
|
+
# @return [String] String presentation of the object
|
215
|
+
def to_s
|
216
|
+
to_hash.to_s
|
217
|
+
end
|
218
|
+
|
219
|
+
# to_body is an alias to to_hash (backward compatibility)
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
221
|
+
def to_body
|
222
|
+
to_hash
|
223
|
+
end
|
224
|
+
|
225
|
+
# Returns the object in the form of hash
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
227
|
+
def to_hash
|
228
|
+
hash = {}
|
229
|
+
self.class.attribute_map.each_pair do |attr, param|
|
230
|
+
value = self.send(attr)
|
231
|
+
if value.nil?
|
232
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
233
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
234
|
+
end
|
235
|
+
|
236
|
+
hash[param] = _to_hash(value)
|
237
|
+
end
|
238
|
+
hash
|
239
|
+
end
|
240
|
+
|
241
|
+
# Outputs non-array value in the form of hash
|
242
|
+
# For object, use to_hash. Otherwise, just return the value
|
243
|
+
# @param [Object] value Any valid value
|
244
|
+
# @return [Hash] Returns the value in the form of hash
|
245
|
+
def _to_hash(value)
|
246
|
+
if value.is_a?(Array)
|
247
|
+
value.compact.map { |v| _to_hash(v) }
|
248
|
+
elsif value.is_a?(Hash)
|
249
|
+
{}.tap do |hash|
|
250
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
251
|
+
end
|
252
|
+
elsif value.respond_to? :to_hash
|
253
|
+
value.to_hash
|
254
|
+
else
|
255
|
+
value
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class ConnectorProjection
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
|
-
attr_accessor :user_id
|
21
|
-
|
22
20
|
attr_accessor :inbox_id
|
23
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
attr_accessor :sync_enabled
|
25
25
|
|
26
26
|
attr_accessor :connector_type
|
@@ -57,8 +57,8 @@ module MailSlurpClient
|
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
59
|
:'created_at' => :'createdAt',
|
60
|
-
:'user_id' => :'userId',
|
61
60
|
:'inbox_id' => :'inboxId',
|
61
|
+
:'user_id' => :'userId',
|
62
62
|
:'sync_enabled' => :'syncEnabled',
|
63
63
|
:'connector_type' => :'connectorType',
|
64
64
|
:'sync_schedule_type' => :'syncScheduleType',
|
@@ -71,8 +71,8 @@ module MailSlurpClient
|
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
73
|
:'created_at' => :'DateTime',
|
74
|
-
:'user_id' => :'String',
|
75
74
|
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
76
76
|
:'sync_enabled' => :'Boolean',
|
77
77
|
:'connector_type' => :'String',
|
78
78
|
:'sync_schedule_type' => :'String',
|
@@ -106,14 +106,14 @@ module MailSlurpClient
|
|
106
106
|
self.created_at = attributes[:'created_at']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'user_id')
|
110
|
-
self.user_id = attributes[:'user_id']
|
111
|
-
end
|
112
|
-
|
113
109
|
if attributes.key?(:'inbox_id')
|
114
110
|
self.inbox_id = attributes[:'inbox_id']
|
115
111
|
end
|
116
112
|
|
113
|
+
if attributes.key?(:'user_id')
|
114
|
+
self.user_id = attributes[:'user_id']
|
115
|
+
end
|
116
|
+
|
117
117
|
if attributes.key?(:'sync_enabled')
|
118
118
|
self.sync_enabled = attributes[:'sync_enabled']
|
119
119
|
end
|
@@ -143,14 +143,14 @@ module MailSlurpClient
|
|
143
143
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
144
144
|
end
|
145
145
|
|
146
|
-
if @user_id.nil?
|
147
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
148
|
-
end
|
149
|
-
|
150
146
|
if @inbox_id.nil?
|
151
147
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
152
148
|
end
|
153
149
|
|
150
|
+
if @user_id.nil?
|
151
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
152
|
+
end
|
153
|
+
|
154
154
|
if @sync_enabled.nil?
|
155
155
|
invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
|
156
156
|
end
|
@@ -170,8 +170,8 @@ module MailSlurpClient
|
|
170
170
|
# @return true if the model is valid
|
171
171
|
def valid?
|
172
172
|
return false if @created_at.nil?
|
173
|
-
return false if @user_id.nil?
|
174
173
|
return false if @inbox_id.nil?
|
174
|
+
return false if @user_id.nil?
|
175
175
|
return false if @sync_enabled.nil?
|
176
176
|
return false if @connector_type.nil?
|
177
177
|
connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
|
@@ -208,8 +208,8 @@ module MailSlurpClient
|
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
210
|
created_at == o.created_at &&
|
211
|
-
user_id == o.user_id &&
|
212
211
|
inbox_id == o.inbox_id &&
|
212
|
+
user_id == o.user_id &&
|
213
213
|
sync_enabled == o.sync_enabled &&
|
214
214
|
connector_type == o.connector_type &&
|
215
215
|
sync_schedule_type == o.sync_schedule_type &&
|
@@ -226,7 +226,7 @@ module MailSlurpClient
|
|
226
226
|
# Calculates hash code according to all attributes.
|
227
227
|
# @return [Integer] Hash code
|
228
228
|
def hash
|
229
|
-
[created_at,
|
229
|
+
[created_at, inbox_id, user_id, sync_enabled, connector_type, sync_schedule_type, sync_interval, id].hash
|
230
230
|
end
|
231
231
|
|
232
232
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class EmailProjection
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
|
-
attr_accessor :attachments
|
21
|
-
|
22
20
|
attr_accessor :inbox_id
|
23
21
|
|
22
|
+
attr_accessor :attachments
|
23
|
+
|
24
24
|
attr_accessor :to
|
25
25
|
|
26
26
|
attr_accessor :domain_id
|
@@ -49,8 +49,8 @@ module MailSlurpClient
|
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
51
|
:'created_at' => :'createdAt',
|
52
|
-
:'attachments' => :'attachments',
|
53
52
|
:'inbox_id' => :'inboxId',
|
53
|
+
:'attachments' => :'attachments',
|
54
54
|
:'to' => :'to',
|
55
55
|
:'domain_id' => :'domainId',
|
56
56
|
:'bcc' => :'bcc',
|
@@ -70,8 +70,8 @@ module MailSlurpClient
|
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
72
|
:'created_at' => :'DateTime',
|
73
|
-
:'attachments' => :'Array<String>',
|
74
73
|
:'inbox_id' => :'String',
|
74
|
+
:'attachments' => :'Array<String>',
|
75
75
|
:'to' => :'Array<String>',
|
76
76
|
:'domain_id' => :'String',
|
77
77
|
:'bcc' => :'Array<String>',
|
@@ -121,16 +121,16 @@ module MailSlurpClient
|
|
121
121
|
self.created_at = attributes[:'created_at']
|
122
122
|
end
|
123
123
|
|
124
|
+
if attributes.key?(:'inbox_id')
|
125
|
+
self.inbox_id = attributes[:'inbox_id']
|
126
|
+
end
|
127
|
+
|
124
128
|
if attributes.key?(:'attachments')
|
125
129
|
if (value = attributes[:'attachments']).is_a?(Array)
|
126
130
|
self.attachments = value
|
127
131
|
end
|
128
132
|
end
|
129
133
|
|
130
|
-
if attributes.key?(:'inbox_id')
|
131
|
-
self.inbox_id = attributes[:'inbox_id']
|
132
|
-
end
|
133
|
-
|
134
134
|
if attributes.key?(:'to')
|
135
135
|
if (value = attributes[:'to']).is_a?(Array)
|
136
136
|
self.to = value
|
@@ -235,8 +235,8 @@ module MailSlurpClient
|
|
235
235
|
return true if self.equal?(o)
|
236
236
|
self.class == o.class &&
|
237
237
|
created_at == o.created_at &&
|
238
|
-
attachments == o.attachments &&
|
239
238
|
inbox_id == o.inbox_id &&
|
239
|
+
attachments == o.attachments &&
|
240
240
|
to == o.to &&
|
241
241
|
domain_id == o.domain_id &&
|
242
242
|
bcc == o.bcc &&
|
@@ -260,7 +260,7 @@ module MailSlurpClient
|
|
260
260
|
# Calculates hash code according to all attributes.
|
261
261
|
# @return [Integer] Hash code
|
262
262
|
def hash
|
263
|
-
[created_at,
|
263
|
+
[created_at, inbox_id, attachments, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt, subject, id, from].hash
|
264
264
|
end
|
265
265
|
|
266
266
|
# Builds the object from hash
|
@@ -17,18 +17,18 @@ module MailSlurpClient
|
|
17
17
|
class ExpiredInboxRecordProjection
|
18
18
|
attr_accessor :created_at
|
19
19
|
|
20
|
-
attr_accessor :email_address
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :email_address
|
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
29
|
:'created_at' => :'createdAt',
|
30
|
-
:'email_address' => :'emailAddress',
|
31
30
|
:'user_id' => :'userId',
|
31
|
+
:'email_address' => :'emailAddress',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
34
34
|
end
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'created_at' => :'DateTime',
|
40
|
-
:'email_address' => :'String',
|
41
40
|
:'user_id' => :'String',
|
41
|
+
:'email_address' => :'String',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
self.created_at = attributes[:'created_at']
|
69
69
|
end
|
70
70
|
|
71
|
-
if attributes.key?(:'email_address')
|
72
|
-
self.email_address = attributes[:'email_address']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'user_id')
|
76
72
|
self.user_id = attributes[:'user_id']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'email_address')
|
76
|
+
self.email_address = attributes[:'email_address']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'id')
|
80
80
|
self.id = attributes[:'id']
|
81
81
|
end
|
@@ -89,14 +89,14 @@ module MailSlurpClient
|
|
89
89
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
90
90
|
end
|
91
91
|
|
92
|
-
if @email_address.nil?
|
93
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
92
|
if @user_id.nil?
|
97
93
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
94
|
end
|
99
95
|
|
96
|
+
if @email_address.nil?
|
97
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
100
|
if @id.nil?
|
101
101
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
102
102
|
end
|
@@ -108,8 +108,8 @@ module MailSlurpClient
|
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
110
|
return false if @created_at.nil?
|
111
|
-
return false if @email_address.nil?
|
112
111
|
return false if @user_id.nil?
|
112
|
+
return false if @email_address.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
122
|
created_at == o.created_at &&
|
123
|
-
email_address == o.email_address &&
|
124
123
|
user_id == o.user_id &&
|
124
|
+
email_address == o.email_address &&
|
125
125
|
id == o.id
|
126
126
|
end
|
127
127
|
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[created_at,
|
137
|
+
[created_at, user_id, email_address, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|