mailslurp_client 15.19.21 → 15.19.22
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/imap_controller_api.rb +61 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
- data/lib/mailslurp_client/models/alias_projection.rb +38 -38
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- 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/domain_name_record.rb +16 -4
- data/lib/mailslurp_client/models/email_available_result.rb +211 -0
- data/lib/mailslurp_client/models/email_projection.rb +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_server_mailbox_result.rb +221 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- 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/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_connector.rb +10 -10
- data/lib/mailslurp_client/models/page_connector_sync_events.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 +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_replier_events.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 +10 -10
- 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 +10 -10
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
- 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/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +31 -31
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- 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 +2 -0
- metadata +4 -2
@@ -0,0 +1,211 @@
|
|
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 EmailAvailableResult
|
17
|
+
attr_accessor :available
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'available' => :'available'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'available' => :'Boolean'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# List of attributes with nullable: true
|
34
|
+
def self.openapi_nullable
|
35
|
+
Set.new([
|
36
|
+
])
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
if (!attributes.is_a?(Hash))
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::EmailAvailableResult` initialize method"
|
44
|
+
end
|
45
|
+
|
46
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::EmailAvailableResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
+
end
|
51
|
+
h[k.to_sym] = v
|
52
|
+
}
|
53
|
+
|
54
|
+
if attributes.key?(:'available')
|
55
|
+
self.available = attributes[:'available']
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properties with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
if @available.nil?
|
64
|
+
invalid_properties.push('invalid value for "available", available cannot be nil.')
|
65
|
+
end
|
66
|
+
|
67
|
+
invalid_properties
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
def valid?
|
73
|
+
return false if @available.nil?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Checks equality by comparing each attribute.
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def ==(o)
|
80
|
+
return true if self.equal?(o)
|
81
|
+
self.class == o.class &&
|
82
|
+
available == o.available
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see the `==` method
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def eql?(o)
|
88
|
+
self == o
|
89
|
+
end
|
90
|
+
|
91
|
+
# Calculates hash code according to all attributes.
|
92
|
+
# @return [Integer] Hash code
|
93
|
+
def hash
|
94
|
+
[available].hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Builds the object from hash
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
# @return [Object] Returns the model itself
|
100
|
+
def self.build_from_hash(attributes)
|
101
|
+
new.build_from_hash(attributes)
|
102
|
+
end
|
103
|
+
|
104
|
+
# Builds the object from hash
|
105
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
106
|
+
# @return [Object] Returns the model itself
|
107
|
+
def build_from_hash(attributes)
|
108
|
+
return nil unless attributes.is_a?(Hash)
|
109
|
+
self.class.openapi_types.each_pair do |key, type|
|
110
|
+
if type =~ /\AArray<(.*)>/i
|
111
|
+
# check to ensure the input is an array given that the attribute
|
112
|
+
# is documented as an array but the input is not
|
113
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
114
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
115
|
+
end
|
116
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
117
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
118
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
119
|
+
end
|
120
|
+
|
121
|
+
self
|
122
|
+
end
|
123
|
+
|
124
|
+
# Deserializes the data based on type
|
125
|
+
# @param string type Data type
|
126
|
+
# @param string value Value to be deserialized
|
127
|
+
# @return [Object] Deserialized data
|
128
|
+
def _deserialize(type, value)
|
129
|
+
case type.to_sym
|
130
|
+
when :DateTime
|
131
|
+
DateTime.parse(value)
|
132
|
+
when :Date
|
133
|
+
Date.parse(value)
|
134
|
+
when :String
|
135
|
+
value.to_s
|
136
|
+
when :Integer
|
137
|
+
value.to_i
|
138
|
+
when :Float
|
139
|
+
value.to_f
|
140
|
+
when :Boolean
|
141
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
142
|
+
true
|
143
|
+
else
|
144
|
+
false
|
145
|
+
end
|
146
|
+
when :Object
|
147
|
+
# generic object (usually a Hash), return directly
|
148
|
+
value
|
149
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
150
|
+
inner_type = Regexp.last_match[:inner_type]
|
151
|
+
value.map { |v| _deserialize(inner_type, v) }
|
152
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
153
|
+
k_type = Regexp.last_match[:k_type]
|
154
|
+
v_type = Regexp.last_match[:v_type]
|
155
|
+
{}.tap do |hash|
|
156
|
+
value.each do |k, v|
|
157
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
else # model
|
161
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the string representation of the object
|
166
|
+
# @return [String] String presentation of the object
|
167
|
+
def to_s
|
168
|
+
to_hash.to_s
|
169
|
+
end
|
170
|
+
|
171
|
+
# to_body is an alias to to_hash (backward compatibility)
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_body
|
174
|
+
to_hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Returns the object in the form of hash
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_hash
|
180
|
+
hash = {}
|
181
|
+
self.class.attribute_map.each_pair do |attr, param|
|
182
|
+
value = self.send(attr)
|
183
|
+
if value.nil?
|
184
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
185
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
186
|
+
end
|
187
|
+
|
188
|
+
hash[param] = _to_hash(value)
|
189
|
+
end
|
190
|
+
hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Outputs non-array value in the form of hash
|
194
|
+
# For object, use to_hash. Otherwise, just return the value
|
195
|
+
# @param [Object] value Any valid value
|
196
|
+
# @return [Hash] Returns the value in the form of hash
|
197
|
+
def _to_hash(value)
|
198
|
+
if value.is_a?(Array)
|
199
|
+
value.compact.map { |v| _to_hash(v) }
|
200
|
+
elsif value.is_a?(Hash)
|
201
|
+
{}.tap do |hash|
|
202
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
203
|
+
end
|
204
|
+
elsif value.respond_to? :to_hash
|
205
|
+
value.to_hash
|
206
|
+
else
|
207
|
+
value
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
|
17
17
|
class EmailProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :attachments
|
19
21
|
|
20
22
|
attr_accessor :inbox_id
|
@@ -37,8 +39,6 @@ module MailSlurpClient
|
|
37
39
|
|
38
40
|
attr_accessor :text_excerpt
|
39
41
|
|
40
|
-
attr_accessor :created_at
|
41
|
-
|
42
42
|
attr_accessor :subject
|
43
43
|
|
44
44
|
attr_accessor :id
|
@@ -48,6 +48,7 @@ module MailSlurpClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
+
:'created_at' => :'createdAt',
|
51
52
|
:'attachments' => :'attachments',
|
52
53
|
:'inbox_id' => :'inboxId',
|
53
54
|
:'to' => :'to',
|
@@ -59,7 +60,6 @@ module MailSlurpClient
|
|
59
60
|
:'team_access' => :'teamAccess',
|
60
61
|
:'body_md5_hash' => :'bodyMD5Hash',
|
61
62
|
:'text_excerpt' => :'textExcerpt',
|
62
|
-
:'created_at' => :'createdAt',
|
63
63
|
:'subject' => :'subject',
|
64
64
|
:'id' => :'id',
|
65
65
|
:'from' => :'from'
|
@@ -69,6 +69,7 @@ module MailSlurpClient
|
|
69
69
|
# Attribute type mapping.
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
|
+
:'created_at' => :'DateTime',
|
72
73
|
:'attachments' => :'Array<String>',
|
73
74
|
:'inbox_id' => :'String',
|
74
75
|
:'to' => :'Array<String>',
|
@@ -80,7 +81,6 @@ module MailSlurpClient
|
|
80
81
|
:'team_access' => :'Boolean',
|
81
82
|
:'body_md5_hash' => :'String',
|
82
83
|
:'text_excerpt' => :'String',
|
83
|
-
:'created_at' => :'DateTime',
|
84
84
|
:'subject' => :'String',
|
85
85
|
:'id' => :'String',
|
86
86
|
:'from' => :'String'
|
@@ -117,6 +117,10 @@ module MailSlurpClient
|
|
117
117
|
h[k.to_sym] = v
|
118
118
|
}
|
119
119
|
|
120
|
+
if attributes.key?(:'created_at')
|
121
|
+
self.created_at = attributes[:'created_at']
|
122
|
+
end
|
123
|
+
|
120
124
|
if attributes.key?(:'attachments')
|
121
125
|
if (value = attributes[:'attachments']).is_a?(Array)
|
122
126
|
self.attachments = value
|
@@ -169,10 +173,6 @@ module MailSlurpClient
|
|
169
173
|
self.text_excerpt = attributes[:'text_excerpt']
|
170
174
|
end
|
171
175
|
|
172
|
-
if attributes.key?(:'created_at')
|
173
|
-
self.created_at = attributes[:'created_at']
|
174
|
-
end
|
175
|
-
|
176
176
|
if attributes.key?(:'subject')
|
177
177
|
self.subject = attributes[:'subject']
|
178
178
|
end
|
@@ -190,6 +190,10 @@ module MailSlurpClient
|
|
190
190
|
# @return Array for valid properties with the reasons
|
191
191
|
def list_invalid_properties
|
192
192
|
invalid_properties = Array.new
|
193
|
+
if @created_at.nil?
|
194
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
195
|
+
end
|
196
|
+
|
193
197
|
if @inbox_id.nil?
|
194
198
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
195
199
|
end
|
@@ -206,10 +210,6 @@ module MailSlurpClient
|
|
206
210
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
207
211
|
end
|
208
212
|
|
209
|
-
if @created_at.nil?
|
210
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
211
|
-
end
|
212
|
-
|
213
213
|
if @id.nil?
|
214
214
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
215
215
|
end
|
@@ -220,11 +220,11 @@ module MailSlurpClient
|
|
220
220
|
# Check to see if the all the properties in the model are valid
|
221
221
|
# @return true if the model is valid
|
222
222
|
def valid?
|
223
|
+
return false if @created_at.nil?
|
223
224
|
return false if @inbox_id.nil?
|
224
225
|
return false if @to.nil?
|
225
226
|
return false if @read.nil?
|
226
227
|
return false if @team_access.nil?
|
227
|
-
return false if @created_at.nil?
|
228
228
|
return false if @id.nil?
|
229
229
|
true
|
230
230
|
end
|
@@ -234,6 +234,7 @@ module MailSlurpClient
|
|
234
234
|
def ==(o)
|
235
235
|
return true if self.equal?(o)
|
236
236
|
self.class == o.class &&
|
237
|
+
created_at == o.created_at &&
|
237
238
|
attachments == o.attachments &&
|
238
239
|
inbox_id == o.inbox_id &&
|
239
240
|
to == o.to &&
|
@@ -245,7 +246,6 @@ module MailSlurpClient
|
|
245
246
|
team_access == o.team_access &&
|
246
247
|
body_md5_hash == o.body_md5_hash &&
|
247
248
|
text_excerpt == o.text_excerpt &&
|
248
|
-
created_at == o.created_at &&
|
249
249
|
subject == o.subject &&
|
250
250
|
id == o.id &&
|
251
251
|
from == o.from
|
@@ -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
|
-
[attachments, inbox_id, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt,
|
263
|
+
[created_at, attachments, inbox_id, 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
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :email_address
|
19
21
|
|
20
22
|
attr_accessor :user_id
|
21
23
|
|
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',
|
29
30
|
:'email_address' => :'emailAddress',
|
30
31
|
:'user_id' => :'userId',
|
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',
|
39
40
|
:'email_address' => :'String',
|
40
41
|
:'user_id' => :'String',
|
41
|
-
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -64,6 +64,10 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
+
if attributes.key?(:'created_at')
|
68
|
+
self.created_at = attributes[:'created_at']
|
69
|
+
end
|
70
|
+
|
67
71
|
if attributes.key?(:'email_address')
|
68
72
|
self.email_address = attributes[:'email_address']
|
69
73
|
end
|
@@ -72,10 +76,6 @@ module MailSlurpClient
|
|
72
76
|
self.user_id = attributes[:'user_id']
|
73
77
|
end
|
74
78
|
|
75
|
-
if attributes.key?(:'created_at')
|
76
|
-
self.created_at = attributes[:'created_at']
|
77
|
-
end
|
78
|
-
|
79
79
|
if attributes.key?(:'id')
|
80
80
|
self.id = attributes[:'id']
|
81
81
|
end
|
@@ -85,6 +85,10 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
+
if @created_at.nil?
|
89
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
90
|
+
end
|
91
|
+
|
88
92
|
if @email_address.nil?
|
89
93
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
90
94
|
end
|
@@ -93,10 +97,6 @@ module MailSlurpClient
|
|
93
97
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
94
98
|
end
|
95
99
|
|
96
|
-
if @created_at.nil?
|
97
|
-
invalid_properties.push('invalid value for "created_at", created_at 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
|
@@ -107,9 +107,9 @@ module MailSlurpClient
|
|
107
107
|
# Check to see if the all the properties in the model are valid
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
|
+
return false if @created_at.nil?
|
110
111
|
return false if @email_address.nil?
|
111
112
|
return false if @user_id.nil?
|
112
|
-
return false if @created_at.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -119,9 +119,9 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
+
created_at == o.created_at &&
|
122
123
|
email_address == o.email_address &&
|
123
124
|
user_id == o.user_id &&
|
124
|
-
created_at == o.created_at &&
|
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
|
-
[email_address, user_id,
|
137
|
+
[created_at, email_address, user_id, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -14,23 +14,23 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class ImapEmailProjection
|
17
|
+
attr_accessor :created_at
|
18
|
+
|
17
19
|
attr_accessor :read
|
18
20
|
|
19
21
|
attr_accessor :uid
|
20
22
|
|
21
23
|
attr_accessor :seq_num
|
22
24
|
|
23
|
-
attr_accessor :created_at
|
24
|
-
|
25
25
|
attr_accessor :id
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
+
:'created_at' => :'createdAt',
|
30
31
|
:'read' => :'read',
|
31
32
|
:'uid' => :'uid',
|
32
33
|
:'seq_num' => :'seqNum',
|
33
|
-
:'created_at' => :'createdAt',
|
34
34
|
:'id' => :'id'
|
35
35
|
}
|
36
36
|
end
|
@@ -38,10 +38,10 @@ module MailSlurpClient
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
+
:'created_at' => :'DateTime',
|
41
42
|
:'read' => :'Boolean',
|
42
43
|
:'uid' => :'Integer',
|
43
44
|
:'seq_num' => :'Integer',
|
44
|
-
:'created_at' => :'DateTime',
|
45
45
|
:'id' => :'String'
|
46
46
|
}
|
47
47
|
end
|
@@ -68,6 +68,10 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
+
if attributes.key?(:'created_at')
|
72
|
+
self.created_at = attributes[:'created_at']
|
73
|
+
end
|
74
|
+
|
71
75
|
if attributes.key?(:'read')
|
72
76
|
self.read = attributes[:'read']
|
73
77
|
end
|
@@ -80,10 +84,6 @@ module MailSlurpClient
|
|
80
84
|
self.seq_num = attributes[:'seq_num']
|
81
85
|
end
|
82
86
|
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
87
|
if attributes.key?(:'id')
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
@@ -93,6 +93,10 @@ module MailSlurpClient
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
+
if @created_at.nil?
|
97
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
|
+
end
|
99
|
+
|
96
100
|
if @uid.nil?
|
97
101
|
invalid_properties.push('invalid value for "uid", uid cannot be nil.')
|
98
102
|
end
|
@@ -101,10 +105,6 @@ module MailSlurpClient
|
|
101
105
|
invalid_properties.push('invalid value for "seq_num", seq_num cannot be nil.')
|
102
106
|
end
|
103
107
|
|
104
|
-
if @created_at.nil?
|
105
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
106
|
-
end
|
107
|
-
|
108
108
|
if @id.nil?
|
109
109
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
110
110
|
end
|
@@ -115,9 +115,9 @@ module MailSlurpClient
|
|
115
115
|
# Check to see if the all the properties in the model are valid
|
116
116
|
# @return true if the model is valid
|
117
117
|
def valid?
|
118
|
+
return false if @created_at.nil?
|
118
119
|
return false if @uid.nil?
|
119
120
|
return false if @seq_num.nil?
|
120
|
-
return false if @created_at.nil?
|
121
121
|
return false if @id.nil?
|
122
122
|
true
|
123
123
|
end
|
@@ -127,10 +127,10 @@ module MailSlurpClient
|
|
127
127
|
def ==(o)
|
128
128
|
return true if self.equal?(o)
|
129
129
|
self.class == o.class &&
|
130
|
+
created_at == o.created_at &&
|
130
131
|
read == o.read &&
|
131
132
|
uid == o.uid &&
|
132
133
|
seq_num == o.seq_num &&
|
133
|
-
created_at == o.created_at &&
|
134
134
|
id == o.id
|
135
135
|
end
|
136
136
|
|
@@ -143,7 +143,7 @@ module MailSlurpClient
|
|
143
143
|
# Calculates hash code according to all attributes.
|
144
144
|
# @return [Integer] Hash code
|
145
145
|
def hash
|
146
|
-
[read, uid, seq_num,
|
146
|
+
[created_at, read, uid, seq_num, id].hash
|
147
147
|
end
|
148
148
|
|
149
149
|
# Builds the object from hash
|