mailslurp_client 15.19.9 → 15.19.11
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/models/alias_projection.rb +29 -29
- 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 +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- 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 +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_mailbox_status.rb +2 -4
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +0 -34
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
- 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/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- 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
- metadata +2 -2
@@ -15,6 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# SMS projection
|
17
17
|
class SmsProjection
|
18
|
+
attr_accessor :body
|
19
|
+
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
18
22
|
attr_accessor :user_id
|
19
23
|
|
20
24
|
attr_accessor :phone_number
|
@@ -23,21 +27,17 @@ module MailSlurpClient
|
|
23
27
|
|
24
28
|
attr_accessor :read
|
25
29
|
|
26
|
-
attr_accessor :body
|
27
|
-
|
28
|
-
attr_accessor :created_at
|
29
|
-
|
30
30
|
attr_accessor :id
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'body' => :'body',
|
36
|
+
:'created_at' => :'createdAt',
|
35
37
|
:'user_id' => :'userId',
|
36
38
|
:'phone_number' => :'phoneNumber',
|
37
39
|
:'from_number' => :'fromNumber',
|
38
40
|
:'read' => :'read',
|
39
|
-
:'body' => :'body',
|
40
|
-
:'created_at' => :'createdAt',
|
41
41
|
:'id' => :'id'
|
42
42
|
}
|
43
43
|
end
|
@@ -45,12 +45,12 @@ module MailSlurpClient
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
|
+
:'body' => :'String',
|
49
|
+
:'created_at' => :'DateTime',
|
48
50
|
:'user_id' => :'String',
|
49
51
|
:'phone_number' => :'String',
|
50
52
|
:'from_number' => :'String',
|
51
53
|
:'read' => :'Boolean',
|
52
|
-
:'body' => :'String',
|
53
|
-
:'created_at' => :'DateTime',
|
54
54
|
:'id' => :'String'
|
55
55
|
}
|
56
56
|
end
|
@@ -76,6 +76,14 @@ module MailSlurpClient
|
|
76
76
|
h[k.to_sym] = v
|
77
77
|
}
|
78
78
|
|
79
|
+
if attributes.key?(:'body')
|
80
|
+
self.body = attributes[:'body']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
79
87
|
if attributes.key?(:'user_id')
|
80
88
|
self.user_id = attributes[:'user_id']
|
81
89
|
end
|
@@ -92,14 +100,6 @@ module MailSlurpClient
|
|
92
100
|
self.read = attributes[:'read']
|
93
101
|
end
|
94
102
|
|
95
|
-
if attributes.key?(:'body')
|
96
|
-
self.body = attributes[:'body']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'created_at')
|
100
|
-
self.created_at = attributes[:'created_at']
|
101
|
-
end
|
102
|
-
|
103
103
|
if attributes.key?(:'id')
|
104
104
|
self.id = attributes[:'id']
|
105
105
|
end
|
@@ -109,6 +109,14 @@ module MailSlurpClient
|
|
109
109
|
# @return Array for valid properties with the reasons
|
110
110
|
def list_invalid_properties
|
111
111
|
invalid_properties = Array.new
|
112
|
+
if @body.nil?
|
113
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @created_at.nil?
|
117
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
118
|
+
end
|
119
|
+
|
112
120
|
if @user_id.nil?
|
113
121
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
114
122
|
end
|
@@ -125,14 +133,6 @@ module MailSlurpClient
|
|
125
133
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
126
134
|
end
|
127
135
|
|
128
|
-
if @body.nil?
|
129
|
-
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if @created_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
136
|
if @id.nil?
|
137
137
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
138
138
|
end
|
@@ -143,12 +143,12 @@ module MailSlurpClient
|
|
143
143
|
# Check to see if the all the properties in the model are valid
|
144
144
|
# @return true if the model is valid
|
145
145
|
def valid?
|
146
|
+
return false if @body.nil?
|
147
|
+
return false if @created_at.nil?
|
146
148
|
return false if @user_id.nil?
|
147
149
|
return false if @phone_number.nil?
|
148
150
|
return false if @from_number.nil?
|
149
151
|
return false if @read.nil?
|
150
|
-
return false if @body.nil?
|
151
|
-
return false if @created_at.nil?
|
152
152
|
return false if @id.nil?
|
153
153
|
true
|
154
154
|
end
|
@@ -158,12 +158,12 @@ module MailSlurpClient
|
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
+
body == o.body &&
|
162
|
+
created_at == o.created_at &&
|
161
163
|
user_id == o.user_id &&
|
162
164
|
phone_number == o.phone_number &&
|
163
165
|
from_number == o.from_number &&
|
164
166
|
read == o.read &&
|
165
|
-
body == o.body &&
|
166
|
-
created_at == o.created_at &&
|
167
167
|
id == o.id
|
168
168
|
end
|
169
169
|
|
@@ -176,7 +176,7 @@ module MailSlurpClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[user_id, phone_number, from_number, read,
|
179
|
+
[body, created_at, user_id, phone_number, from_number, read, id].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email template data
|
17
17
|
class TemplateProjection
|
18
|
-
attr_accessor :variables
|
19
|
-
|
20
18
|
attr_accessor :created_at
|
21
19
|
|
22
20
|
attr_accessor :updated_at
|
23
21
|
|
22
|
+
attr_accessor :variables
|
23
|
+
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
26
|
attr_accessor :id
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'variables' => :'variables',
|
32
31
|
:'created_at' => :'createdAt',
|
33
32
|
:'updated_at' => :'updatedAt',
|
33
|
+
:'variables' => :'variables',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'id' => :'id'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'variables' => :'Array<String>',
|
43
42
|
:'created_at' => :'DateTime',
|
44
43
|
:'updated_at' => :'DateTime',
|
44
|
+
:'variables' => :'Array<String>',
|
45
45
|
:'name' => :'String',
|
46
46
|
:'id' => :'String'
|
47
47
|
}
|
@@ -68,12 +68,6 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'variables')
|
72
|
-
if (value = attributes[:'variables']).is_a?(Array)
|
73
|
-
self.variables = value
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
71
|
if attributes.key?(:'created_at')
|
78
72
|
self.created_at = attributes[:'created_at']
|
79
73
|
end
|
@@ -82,6 +76,12 @@ module MailSlurpClient
|
|
82
76
|
self.updated_at = attributes[:'updated_at']
|
83
77
|
end
|
84
78
|
|
79
|
+
if attributes.key?(:'variables')
|
80
|
+
if (value = attributes[:'variables']).is_a?(Array)
|
81
|
+
self.variables = value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
85
|
if attributes.key?(:'name')
|
86
86
|
self.name = attributes[:'name']
|
87
87
|
end
|
@@ -95,10 +95,6 @@ module MailSlurpClient
|
|
95
95
|
# @return Array for valid properties with the reasons
|
96
96
|
def list_invalid_properties
|
97
97
|
invalid_properties = Array.new
|
98
|
-
if @variables.nil?
|
99
|
-
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
100
|
-
end
|
101
|
-
|
102
98
|
if @created_at.nil?
|
103
99
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
104
100
|
end
|
@@ -107,6 +103,10 @@ module MailSlurpClient
|
|
107
103
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
108
104
|
end
|
109
105
|
|
106
|
+
if @variables.nil?
|
107
|
+
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
108
|
+
end
|
109
|
+
|
110
110
|
if @name.nil?
|
111
111
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
112
112
|
end
|
@@ -121,9 +121,9 @@ module MailSlurpClient
|
|
121
121
|
# Check to see if the all the properties in the model are valid
|
122
122
|
# @return true if the model is valid
|
123
123
|
def valid?
|
124
|
-
return false if @variables.nil?
|
125
124
|
return false if @created_at.nil?
|
126
125
|
return false if @updated_at.nil?
|
126
|
+
return false if @variables.nil?
|
127
127
|
return false if @name.nil?
|
128
128
|
return false if @id.nil?
|
129
129
|
true
|
@@ -134,9 +134,9 @@ module MailSlurpClient
|
|
134
134
|
def ==(o)
|
135
135
|
return true if self.equal?(o)
|
136
136
|
self.class == o.class &&
|
137
|
-
variables == o.variables &&
|
138
137
|
created_at == o.created_at &&
|
139
138
|
updated_at == o.updated_at &&
|
139
|
+
variables == o.variables &&
|
140
140
|
name == o.name &&
|
141
141
|
id == o.id
|
142
142
|
end
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
150
150
|
# Calculates hash code according to all attributes.
|
151
151
|
# @return [Integer] Hash code
|
152
152
|
def hash
|
153
|
-
[
|
153
|
+
[created_at, updated_at, variables, name, id].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -15,6 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class ThreadProjection
|
18
|
+
# Created at DateTime
|
19
|
+
attr_accessor :created_at
|
20
|
+
|
21
|
+
# Updated at DateTime
|
22
|
+
attr_accessor :updated_at
|
23
|
+
|
18
24
|
# Inbox ID
|
19
25
|
attr_accessor :inbox_id
|
20
26
|
|
@@ -33,12 +39,6 @@ module MailSlurpClient
|
|
33
39
|
# Alias ID
|
34
40
|
attr_accessor :alias_id
|
35
41
|
|
36
|
-
# Created at DateTime
|
37
|
-
attr_accessor :created_at
|
38
|
-
|
39
|
-
# Updated at DateTime
|
40
|
-
attr_accessor :updated_at
|
41
|
-
|
42
42
|
# Thread subject
|
43
43
|
attr_accessor :subject
|
44
44
|
|
@@ -51,14 +51,14 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
+
:'created_at' => :'createdAt',
|
55
|
+
:'updated_at' => :'updatedAt',
|
54
56
|
:'inbox_id' => :'inboxId',
|
55
57
|
:'user_id' => :'userId',
|
56
58
|
:'to' => :'to',
|
57
59
|
:'bcc' => :'bcc',
|
58
60
|
:'cc' => :'cc',
|
59
61
|
:'alias_id' => :'aliasId',
|
60
|
-
:'created_at' => :'createdAt',
|
61
|
-
:'updated_at' => :'updatedAt',
|
62
62
|
:'subject' => :'subject',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
+
:'created_at' => :'DateTime',
|
72
|
+
:'updated_at' => :'DateTime',
|
71
73
|
:'inbox_id' => :'String',
|
72
74
|
:'user_id' => :'String',
|
73
75
|
:'to' => :'Array<String>',
|
74
76
|
:'bcc' => :'Array<String>',
|
75
77
|
:'cc' => :'Array<String>',
|
76
78
|
:'alias_id' => :'String',
|
77
|
-
:'created_at' => :'DateTime',
|
78
|
-
:'updated_at' => :'DateTime',
|
79
79
|
:'subject' => :'String',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
@@ -103,6 +103,14 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
+
if attributes.key?(:'created_at')
|
107
|
+
self.created_at = attributes[:'created_at']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'updated_at')
|
111
|
+
self.updated_at = attributes[:'updated_at']
|
112
|
+
end
|
113
|
+
|
106
114
|
if attributes.key?(:'inbox_id')
|
107
115
|
self.inbox_id = attributes[:'inbox_id']
|
108
116
|
end
|
@@ -133,14 +141,6 @@ module MailSlurpClient
|
|
133
141
|
self.alias_id = attributes[:'alias_id']
|
134
142
|
end
|
135
143
|
|
136
|
-
if attributes.key?(:'created_at')
|
137
|
-
self.created_at = attributes[:'created_at']
|
138
|
-
end
|
139
|
-
|
140
|
-
if attributes.key?(:'updated_at')
|
141
|
-
self.updated_at = attributes[:'updated_at']
|
142
|
-
end
|
143
|
-
|
144
144
|
if attributes.key?(:'subject')
|
145
145
|
self.subject = attributes[:'subject']
|
146
146
|
end
|
@@ -158,6 +158,14 @@ module MailSlurpClient
|
|
158
158
|
# @return Array for valid properties with the reasons
|
159
159
|
def list_invalid_properties
|
160
160
|
invalid_properties = Array.new
|
161
|
+
if @created_at.nil?
|
162
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
163
|
+
end
|
164
|
+
|
165
|
+
if @updated_at.nil?
|
166
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
167
|
+
end
|
168
|
+
|
161
169
|
if @inbox_id.nil?
|
162
170
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
163
171
|
end
|
@@ -174,14 +182,6 @@ module MailSlurpClient
|
|
174
182
|
invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
|
175
183
|
end
|
176
184
|
|
177
|
-
if @created_at.nil?
|
178
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
179
|
-
end
|
180
|
-
|
181
|
-
if @updated_at.nil?
|
182
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
183
|
-
end
|
184
|
-
|
185
185
|
if @id.nil?
|
186
186
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
187
187
|
end
|
@@ -192,12 +192,12 @@ module MailSlurpClient
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
+
return false if @created_at.nil?
|
196
|
+
return false if @updated_at.nil?
|
195
197
|
return false if @inbox_id.nil?
|
196
198
|
return false if @user_id.nil?
|
197
199
|
return false if @to.nil?
|
198
200
|
return false if @alias_id.nil?
|
199
|
-
return false if @created_at.nil?
|
200
|
-
return false if @updated_at.nil?
|
201
201
|
return false if @id.nil?
|
202
202
|
true
|
203
203
|
end
|
@@ -207,14 +207,14 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
+
created_at == o.created_at &&
|
211
|
+
updated_at == o.updated_at &&
|
210
212
|
inbox_id == o.inbox_id &&
|
211
213
|
user_id == o.user_id &&
|
212
214
|
to == o.to &&
|
213
215
|
bcc == o.bcc &&
|
214
216
|
cc == o.cc &&
|
215
217
|
alias_id == o.alias_id &&
|
216
|
-
created_at == o.created_at &&
|
217
|
-
updated_at == o.updated_at &&
|
218
218
|
subject == o.subject &&
|
219
219
|
name == o.name &&
|
220
220
|
id == o.id
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[inbox_id, user_id, to, bcc, cc, alias_id,
|
232
|
+
[created_at, updated_at, inbox_id, user_id, to, bcc, cc, alias_id, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :inbox_id
|
19
21
|
|
20
22
|
attr_accessor :user_id
|
@@ -27,8 +29,6 @@ module MailSlurpClient
|
|
27
29
|
|
28
30
|
attr_accessor :seen_at
|
29
31
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
32
|
attr_accessor :name
|
33
33
|
|
34
34
|
attr_accessor :id
|
@@ -36,13 +36,13 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
+
:'created_at' => :'createdAt',
|
39
40
|
:'inbox_id' => :'inboxId',
|
40
41
|
:'user_id' => :'userId',
|
41
42
|
:'sent_email_id' => :'sentEmailId',
|
42
43
|
:'recipient' => :'recipient',
|
43
44
|
:'seen' => :'seen',
|
44
45
|
:'seen_at' => :'seenAt',
|
45
|
-
:'created_at' => :'createdAt',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'id' => :'id'
|
48
48
|
}
|
@@ -51,13 +51,13 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
+
:'created_at' => :'DateTime',
|
54
55
|
:'inbox_id' => :'String',
|
55
56
|
:'user_id' => :'String',
|
56
57
|
:'sent_email_id' => :'String',
|
57
58
|
:'recipient' => :'String',
|
58
59
|
:'seen' => :'Boolean',
|
59
60
|
:'seen_at' => :'DateTime',
|
60
|
-
:'created_at' => :'DateTime',
|
61
61
|
:'name' => :'String',
|
62
62
|
:'id' => :'String'
|
63
63
|
}
|
@@ -84,6 +84,10 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
+
if attributes.key?(:'created_at')
|
88
|
+
self.created_at = attributes[:'created_at']
|
89
|
+
end
|
90
|
+
|
87
91
|
if attributes.key?(:'inbox_id')
|
88
92
|
self.inbox_id = attributes[:'inbox_id']
|
89
93
|
end
|
@@ -108,10 +112,6 @@ module MailSlurpClient
|
|
108
112
|
self.seen_at = attributes[:'seen_at']
|
109
113
|
end
|
110
114
|
|
111
|
-
if attributes.key?(:'created_at')
|
112
|
-
self.created_at = attributes[:'created_at']
|
113
|
-
end
|
114
|
-
|
115
115
|
if attributes.key?(:'name')
|
116
116
|
self.name = attributes[:'name']
|
117
117
|
end
|
@@ -125,6 +125,10 @@ module MailSlurpClient
|
|
125
125
|
# @return Array for valid properties with the reasons
|
126
126
|
def list_invalid_properties
|
127
127
|
invalid_properties = Array.new
|
128
|
+
if @created_at.nil?
|
129
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
|
+
end
|
131
|
+
|
128
132
|
if @user_id.nil?
|
129
133
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
134
|
end
|
@@ -133,10 +137,6 @@ module MailSlurpClient
|
|
133
137
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
134
138
|
end
|
135
139
|
|
136
|
-
if @created_at.nil?
|
137
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
140
|
if @id.nil?
|
141
141
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
142
142
|
end
|
@@ -147,9 +147,9 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
+
return false if @created_at.nil?
|
150
151
|
return false if @user_id.nil?
|
151
152
|
return false if @seen.nil?
|
152
|
-
return false if @created_at.nil?
|
153
153
|
return false if @id.nil?
|
154
154
|
true
|
155
155
|
end
|
@@ -159,13 +159,13 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
+
created_at == o.created_at &&
|
162
163
|
inbox_id == o.inbox_id &&
|
163
164
|
user_id == o.user_id &&
|
164
165
|
sent_email_id == o.sent_email_id &&
|
165
166
|
recipient == o.recipient &&
|
166
167
|
seen == o.seen &&
|
167
168
|
seen_at == o.seen_at &&
|
168
|
-
created_at == o.created_at &&
|
169
169
|
name == o.name &&
|
170
170
|
id == o.id
|
171
171
|
end
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[inbox_id, user_id, sent_email_id, recipient, seen, seen_at,
|
182
|
+
[created_at, inbox_id, user_id, sent_email_id, recipient, seen, seen_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Unknown missed email projection
|
17
17
|
class UnknownMissedEmailProjection
|
18
|
-
attr_accessor :to
|
19
|
-
|
20
18
|
attr_accessor :created_at
|
21
19
|
|
20
|
+
attr_accessor :to
|
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
|
-
:'to' => :'to',
|
32
31
|
:'created_at' => :'createdAt',
|
32
|
+
:'to' => :'to',
|
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
|
-
:'to' => :'Array<String>',
|
43
42
|
:'created_at' => :'DateTime',
|
43
|
+
:'to' => :'Array<String>',
|
44
44
|
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
@@ -68,16 +68,16 @@ 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?(:'to')
|
72
76
|
if (value = attributes[:'to']).is_a?(Array)
|
73
77
|
self.to = value
|
74
78
|
end
|
75
79
|
end
|
76
80
|
|
77
|
-
if attributes.key?(:'created_at')
|
78
|
-
self.created_at = attributes[:'created_at']
|
79
|
-
end
|
80
|
-
|
81
81
|
if attributes.key?(:'subject')
|
82
82
|
self.subject = attributes[:'subject']
|
83
83
|
end
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
to == o.to &&
|
123
122
|
created_at == o.created_at &&
|
123
|
+
to == o.to &&
|
124
124
|
subject == o.subject &&
|
125
125
|
id == o.id &&
|
126
126
|
from == o.from
|
@@ -135,7 +135,7 @@ module MailSlurpClient
|
|
135
135
|
# Calculates hash code according to all attributes.
|
136
136
|
# @return [Integer] Hash code
|
137
137
|
def hash
|
138
|
-
[
|
138
|
+
[created_at, to, subject, id, from].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|