mailslurp_client 15.1.4 → 15.2.4
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/attachment_controller_api.rb +5 -5
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +7 -7
- data/lib/mailslurp_client/api/email_controller_api.rb +35 -35
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_projection.rb +18 -18
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/group_projection.rb +13 -13
- data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +27 -27
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +18 -18
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
@@ -19,8 +19,6 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :from
|
21
21
|
|
22
|
-
attr_accessor :created_at
|
23
|
-
|
24
22
|
attr_accessor :subject
|
25
23
|
|
26
24
|
attr_accessor :inbox_id
|
@@ -33,6 +31,8 @@ module MailSlurpClient
|
|
33
31
|
|
34
32
|
attr_accessor :cc
|
35
33
|
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
36
|
attr_accessor :team_access
|
37
37
|
|
38
38
|
attr_accessor :read
|
@@ -46,13 +46,13 @@ module MailSlurpClient
|
|
46
46
|
{
|
47
47
|
:'id' => :'id',
|
48
48
|
:'from' => :'from',
|
49
|
-
:'created_at' => :'createdAt',
|
50
49
|
:'subject' => :'subject',
|
51
50
|
:'inbox_id' => :'inboxId',
|
52
51
|
:'to' => :'to',
|
53
52
|
:'attachments' => :'attachments',
|
54
53
|
:'bcc' => :'bcc',
|
55
54
|
:'cc' => :'cc',
|
55
|
+
:'created_at' => :'createdAt',
|
56
56
|
:'team_access' => :'teamAccess',
|
57
57
|
:'read' => :'read',
|
58
58
|
:'body_md5_hash' => :'bodyMD5Hash',
|
@@ -65,13 +65,13 @@ module MailSlurpClient
|
|
65
65
|
{
|
66
66
|
:'id' => :'String',
|
67
67
|
:'from' => :'String',
|
68
|
-
:'created_at' => :'DateTime',
|
69
68
|
:'subject' => :'String',
|
70
69
|
:'inbox_id' => :'String',
|
71
70
|
:'to' => :'Array<String>',
|
72
71
|
:'attachments' => :'Array<String>',
|
73
72
|
:'bcc' => :'Array<String>',
|
74
73
|
:'cc' => :'Array<String>',
|
74
|
+
:'created_at' => :'DateTime',
|
75
75
|
:'team_access' => :'Boolean',
|
76
76
|
:'read' => :'Boolean',
|
77
77
|
:'body_md5_hash' => :'String',
|
@@ -108,10 +108,6 @@ module MailSlurpClient
|
|
108
108
|
self.from = attributes[:'from']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'created_at')
|
112
|
-
self.created_at = attributes[:'created_at']
|
113
|
-
end
|
114
|
-
|
115
111
|
if attributes.key?(:'subject')
|
116
112
|
self.subject = attributes[:'subject']
|
117
113
|
end
|
@@ -144,6 +140,10 @@ module MailSlurpClient
|
|
144
140
|
end
|
145
141
|
end
|
146
142
|
|
143
|
+
if attributes.key?(:'created_at')
|
144
|
+
self.created_at = attributes[:'created_at']
|
145
|
+
end
|
146
|
+
|
147
147
|
if attributes.key?(:'team_access')
|
148
148
|
self.team_access = attributes[:'team_access']
|
149
149
|
end
|
@@ -169,10 +169,6 @@ module MailSlurpClient
|
|
169
169
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
170
170
|
end
|
171
171
|
|
172
|
-
if @created_at.nil?
|
173
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
174
|
-
end
|
175
|
-
|
176
172
|
if @inbox_id.nil?
|
177
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
178
174
|
end
|
@@ -181,6 +177,10 @@ module MailSlurpClient
|
|
181
177
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
178
|
end
|
183
179
|
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
184
184
|
invalid_properties
|
185
185
|
end
|
186
186
|
|
@@ -188,9 +188,9 @@ module MailSlurpClient
|
|
188
188
|
# @return true if the model is valid
|
189
189
|
def valid?
|
190
190
|
return false if @id.nil?
|
191
|
-
return false if @created_at.nil?
|
192
191
|
return false if @inbox_id.nil?
|
193
192
|
return false if @to.nil?
|
193
|
+
return false if @created_at.nil?
|
194
194
|
true
|
195
195
|
end
|
196
196
|
|
@@ -201,13 +201,13 @@ module MailSlurpClient
|
|
201
201
|
self.class == o.class &&
|
202
202
|
id == o.id &&
|
203
203
|
from == o.from &&
|
204
|
-
created_at == o.created_at &&
|
205
204
|
subject == o.subject &&
|
206
205
|
inbox_id == o.inbox_id &&
|
207
206
|
to == o.to &&
|
208
207
|
attachments == o.attachments &&
|
209
208
|
bcc == o.bcc &&
|
210
209
|
cc == o.cc &&
|
210
|
+
created_at == o.created_at &&
|
211
211
|
team_access == o.team_access &&
|
212
212
|
read == o.read &&
|
213
213
|
body_md5_hash == o.body_md5_hash &&
|
@@ -223,7 +223,7 @@ module MailSlurpClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[id, from,
|
226
|
+
[id, from, subject, inbox_id, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -16,19 +16,19 @@ module MailSlurpClient
|
|
16
16
|
class ExpiredInboxRecordProjection
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :email_address
|
20
20
|
|
21
21
|
attr_accessor :user_id
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :created_at
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
28
|
:'id' => :'id',
|
29
|
-
:'
|
29
|
+
:'email_address' => :'emailAddress',
|
30
30
|
:'user_id' => :'userId',
|
31
|
-
:'
|
31
|
+
:'created_at' => :'createdAt'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'id' => :'String',
|
39
|
-
:'
|
39
|
+
:'email_address' => :'String',
|
40
40
|
:'user_id' => :'String',
|
41
|
-
:'
|
41
|
+
:'created_at' => :'DateTime'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -67,16 +67,16 @@ module MailSlurpClient
|
|
67
67
|
self.id = attributes[:'id']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.key?(:'
|
71
|
-
self.
|
70
|
+
if attributes.key?(:'email_address')
|
71
|
+
self.email_address = attributes[:'email_address']
|
72
72
|
end
|
73
73
|
|
74
74
|
if attributes.key?(:'user_id')
|
75
75
|
self.user_id = attributes[:'user_id']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'created_at')
|
79
|
+
self.created_at = attributes[:'created_at']
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
@@ -88,16 +88,16 @@ module MailSlurpClient
|
|
88
88
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
89
89
|
end
|
90
90
|
|
91
|
-
if @
|
92
|
-
invalid_properties.push('invalid value for "
|
91
|
+
if @email_address.nil?
|
92
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
93
93
|
end
|
94
94
|
|
95
95
|
if @user_id.nil?
|
96
96
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
97
97
|
end
|
98
98
|
|
99
|
-
if @
|
100
|
-
invalid_properties.push('invalid value for "
|
99
|
+
if @created_at.nil?
|
100
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
101
101
|
end
|
102
102
|
|
103
103
|
invalid_properties
|
@@ -107,9 +107,9 @@ module MailSlurpClient
|
|
107
107
|
# @return true if the model is valid
|
108
108
|
def valid?
|
109
109
|
return false if @id.nil?
|
110
|
-
return false if @created_at.nil?
|
111
|
-
return false if @user_id.nil?
|
112
110
|
return false if @email_address.nil?
|
111
|
+
return false if @user_id.nil?
|
112
|
+
return false if @created_at.nil?
|
113
113
|
true
|
114
114
|
end
|
115
115
|
|
@@ -119,9 +119,9 @@ module MailSlurpClient
|
|
119
119
|
return true if self.equal?(o)
|
120
120
|
self.class == o.class &&
|
121
121
|
id == o.id &&
|
122
|
-
|
122
|
+
email_address == o.email_address &&
|
123
123
|
user_id == o.user_id &&
|
124
|
-
|
124
|
+
created_at == o.created_at
|
125
125
|
end
|
126
126
|
|
127
127
|
# @see the `==` method
|
@@ -133,7 +133,7 @@ module MailSlurpClient
|
|
133
133
|
# Calculates hash code according to all attributes.
|
134
134
|
# @return [Integer] Hash code
|
135
135
|
def hash
|
136
|
-
[id,
|
136
|
+
[id, email_address, user_id, created_at].hash
|
137
137
|
end
|
138
138
|
|
139
139
|
# Builds the object from hash
|
@@ -18,17 +18,17 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
attr_accessor :created_at
|
22
|
-
|
23
21
|
attr_accessor :description
|
24
22
|
|
23
|
+
attr_accessor :created_at
|
24
|
+
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
28
|
:'name' => :'name',
|
29
29
|
:'id' => :'id',
|
30
|
-
:'
|
31
|
-
:'
|
30
|
+
:'description' => :'description',
|
31
|
+
:'created_at' => :'createdAt'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
{
|
38
38
|
:'name' => :'String',
|
39
39
|
:'id' => :'String',
|
40
|
-
:'
|
41
|
-
:'
|
40
|
+
:'description' => :'String',
|
41
|
+
:'created_at' => :'DateTime'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -71,13 +71,13 @@ module MailSlurpClient
|
|
71
71
|
self.id = attributes[:'id']
|
72
72
|
end
|
73
73
|
|
74
|
-
if attributes.key?(:'created_at')
|
75
|
-
self.created_at = attributes[:'created_at']
|
76
|
-
end
|
77
|
-
|
78
74
|
if attributes.key?(:'description')
|
79
75
|
self.description = attributes[:'description']
|
80
76
|
end
|
77
|
+
|
78
|
+
if attributes.key?(:'created_at')
|
79
|
+
self.created_at = attributes[:'created_at']
|
80
|
+
end
|
81
81
|
end
|
82
82
|
|
83
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,8 +115,8 @@ module MailSlurpClient
|
|
115
115
|
self.class == o.class &&
|
116
116
|
name == o.name &&
|
117
117
|
id == o.id &&
|
118
|
-
|
119
|
-
|
118
|
+
description == o.description &&
|
119
|
+
created_at == o.created_at
|
120
120
|
end
|
121
121
|
|
122
122
|
# @see the `==` method
|
@@ -128,7 +128,7 @@ module MailSlurpClient
|
|
128
128
|
# Calculates hash code according to all attributes.
|
129
129
|
# @return [Integer] Hash code
|
130
130
|
def hash
|
131
|
-
[name, id,
|
131
|
+
[name, id, description, created_at].hash
|
132
132
|
end
|
133
133
|
|
134
134
|
# Builds the object from hash
|
@@ -18,20 +18,20 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :from
|
20
20
|
|
21
|
-
attr_accessor :created_at
|
22
|
-
|
23
21
|
attr_accessor :subject
|
24
22
|
|
25
23
|
attr_accessor :user_id
|
26
24
|
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
30
|
:'id' => :'id',
|
31
31
|
:'from' => :'from',
|
32
|
-
:'created_at' => :'createdAt',
|
33
32
|
:'subject' => :'subject',
|
34
|
-
:'user_id' => :'userId'
|
33
|
+
:'user_id' => :'userId',
|
34
|
+
:'created_at' => :'createdAt'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -40,9 +40,9 @@ module MailSlurpClient
|
|
40
40
|
{
|
41
41
|
:'id' => :'String',
|
42
42
|
:'from' => :'String',
|
43
|
-
:'created_at' => :'DateTime',
|
44
43
|
:'subject' => :'String',
|
45
|
-
:'user_id' => :'String'
|
44
|
+
:'user_id' => :'String',
|
45
|
+
:'created_at' => :'DateTime'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -75,10 +75,6 @@ module MailSlurpClient
|
|
75
75
|
self.from = attributes[:'from']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'created_at')
|
79
|
-
self.created_at = attributes[:'created_at']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'subject')
|
83
79
|
self.subject = attributes[:'subject']
|
84
80
|
end
|
@@ -86,6 +82,10 @@ module MailSlurpClient
|
|
86
82
|
if attributes.key?(:'user_id')
|
87
83
|
self.user_id = attributes[:'user_id']
|
88
84
|
end
|
85
|
+
|
86
|
+
if attributes.key?(:'created_at')
|
87
|
+
self.created_at = attributes[:'created_at']
|
88
|
+
end
|
89
89
|
end
|
90
90
|
|
91
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -118,9 +118,9 @@ module MailSlurpClient
|
|
118
118
|
self.class == o.class &&
|
119
119
|
id == o.id &&
|
120
120
|
from == o.from &&
|
121
|
-
created_at == o.created_at &&
|
122
121
|
subject == o.subject &&
|
123
|
-
user_id == o.user_id
|
122
|
+
user_id == o.user_id &&
|
123
|
+
created_at == o.created_at
|
124
124
|
end
|
125
125
|
|
126
126
|
# @see the `==` method
|
@@ -132,7 +132,7 @@ module MailSlurpClient
|
|
132
132
|
# Calculates hash code according to all attributes.
|
133
133
|
# @return [Integer] Hash code
|
134
134
|
def hash
|
135
|
-
[id, from,
|
135
|
+
[id, from, subject, user_id, created_at].hash
|
136
136
|
end
|
137
137
|
|
138
138
|
# Builds the object from hash
|
@@ -23,8 +23,6 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
26
|
attr_accessor :inbox_id
|
29
27
|
|
30
28
|
attr_accessor :to
|
@@ -35,6 +33,8 @@ module MailSlurpClient
|
|
35
33
|
|
36
34
|
attr_accessor :cc
|
37
35
|
|
36
|
+
attr_accessor :created_at
|
37
|
+
|
38
38
|
attr_accessor :body_md5_hash
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,12 +44,12 @@ module MailSlurpClient
|
|
44
44
|
:'from' => :'from',
|
45
45
|
:'user_id' => :'userId',
|
46
46
|
:'subject' => :'subject',
|
47
|
-
:'created_at' => :'createdAt',
|
48
47
|
:'inbox_id' => :'inboxId',
|
49
48
|
:'to' => :'to',
|
50
49
|
:'attachments' => :'attachments',
|
51
50
|
:'bcc' => :'bcc',
|
52
51
|
:'cc' => :'cc',
|
52
|
+
:'created_at' => :'createdAt',
|
53
53
|
:'body_md5_hash' => :'bodyMD5Hash'
|
54
54
|
}
|
55
55
|
end
|
@@ -61,12 +61,12 @@ module MailSlurpClient
|
|
61
61
|
:'from' => :'String',
|
62
62
|
:'user_id' => :'String',
|
63
63
|
:'subject' => :'String',
|
64
|
-
:'created_at' => :'DateTime',
|
65
64
|
:'inbox_id' => :'String',
|
66
65
|
:'to' => :'Array<String>',
|
67
66
|
:'attachments' => :'Array<String>',
|
68
67
|
:'bcc' => :'Array<String>',
|
69
68
|
:'cc' => :'Array<String>',
|
69
|
+
:'created_at' => :'DateTime',
|
70
70
|
:'body_md5_hash' => :'String'
|
71
71
|
}
|
72
72
|
end
|
@@ -108,10 +108,6 @@ module MailSlurpClient
|
|
108
108
|
self.subject = attributes[:'subject']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'created_at')
|
112
|
-
self.created_at = attributes[:'created_at']
|
113
|
-
end
|
114
|
-
|
115
111
|
if attributes.key?(:'inbox_id')
|
116
112
|
self.inbox_id = attributes[:'inbox_id']
|
117
113
|
end
|
@@ -140,6 +136,10 @@ module MailSlurpClient
|
|
140
136
|
end
|
141
137
|
end
|
142
138
|
|
139
|
+
if attributes.key?(:'created_at')
|
140
|
+
self.created_at = attributes[:'created_at']
|
141
|
+
end
|
142
|
+
|
143
143
|
if attributes.key?(:'body_md5_hash')
|
144
144
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
145
145
|
end
|
@@ -157,10 +157,6 @@ module MailSlurpClient
|
|
157
157
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
158
158
|
end
|
159
159
|
|
160
|
-
if @created_at.nil?
|
161
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
162
|
-
end
|
163
|
-
|
164
160
|
if @inbox_id.nil?
|
165
161
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
166
162
|
end
|
@@ -181,6 +177,10 @@ module MailSlurpClient
|
|
181
177
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
182
178
|
end
|
183
179
|
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
184
184
|
invalid_properties
|
185
185
|
end
|
186
186
|
|
@@ -189,12 +189,12 @@ module MailSlurpClient
|
|
189
189
|
def valid?
|
190
190
|
return false if @id.nil?
|
191
191
|
return false if @user_id.nil?
|
192
|
-
return false if @created_at.nil?
|
193
192
|
return false if @inbox_id.nil?
|
194
193
|
return false if @to.nil?
|
195
194
|
return false if @attachments.nil?
|
196
195
|
return false if @bcc.nil?
|
197
196
|
return false if @cc.nil?
|
197
|
+
return false if @created_at.nil?
|
198
198
|
true
|
199
199
|
end
|
200
200
|
|
@@ -207,12 +207,12 @@ module MailSlurpClient
|
|
207
207
|
from == o.from &&
|
208
208
|
user_id == o.user_id &&
|
209
209
|
subject == o.subject &&
|
210
|
-
created_at == o.created_at &&
|
211
210
|
inbox_id == o.inbox_id &&
|
212
211
|
to == o.to &&
|
213
212
|
attachments == o.attachments &&
|
214
213
|
bcc == o.bcc &&
|
215
214
|
cc == o.cc &&
|
215
|
+
created_at == o.created_at &&
|
216
216
|
body_md5_hash == o.body_md5_hash
|
217
217
|
end
|
218
218
|
|
@@ -225,7 +225,7 @@ module MailSlurpClient
|
|
225
225
|
# Calculates hash code according to all attributes.
|
226
226
|
# @return [Integer] Hash code
|
227
227
|
def hash
|
228
|
-
[id, from, user_id, subject,
|
228
|
+
[id, from, user_id, subject, inbox_id, to, attachments, bcc, cc, created_at, body_md5_hash].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -19,20 +19,20 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :created_at
|
23
|
-
|
24
22
|
attr_accessor :subject
|
25
23
|
|
26
|
-
attr_accessor :user_id
|
27
|
-
|
28
24
|
attr_accessor :inbox_id
|
29
25
|
|
26
|
+
attr_accessor :user_id
|
27
|
+
|
30
28
|
attr_accessor :to
|
31
29
|
|
32
30
|
attr_accessor :bcc
|
33
31
|
|
34
32
|
attr_accessor :cc
|
35
33
|
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
36
|
attr_accessor :updated_at
|
37
37
|
|
38
38
|
attr_accessor :alias_id
|
@@ -42,13 +42,13 @@ module MailSlurpClient
|
|
42
42
|
{
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id',
|
45
|
-
:'created_at' => :'createdAt',
|
46
45
|
:'subject' => :'subject',
|
47
|
-
:'user_id' => :'userId',
|
48
46
|
:'inbox_id' => :'inboxId',
|
47
|
+
:'user_id' => :'userId',
|
49
48
|
:'to' => :'to',
|
50
49
|
:'bcc' => :'bcc',
|
51
50
|
:'cc' => :'cc',
|
51
|
+
:'created_at' => :'createdAt',
|
52
52
|
:'updated_at' => :'updatedAt',
|
53
53
|
:'alias_id' => :'aliasId'
|
54
54
|
}
|
@@ -59,13 +59,13 @@ module MailSlurpClient
|
|
59
59
|
{
|
60
60
|
:'name' => :'String',
|
61
61
|
:'id' => :'String',
|
62
|
-
:'created_at' => :'DateTime',
|
63
62
|
:'subject' => :'String',
|
64
|
-
:'user_id' => :'String',
|
65
63
|
:'inbox_id' => :'String',
|
64
|
+
:'user_id' => :'String',
|
66
65
|
:'to' => :'Array<String>',
|
67
66
|
:'bcc' => :'Array<String>',
|
68
67
|
:'cc' => :'Array<String>',
|
68
|
+
:'created_at' => :'DateTime',
|
69
69
|
:'updated_at' => :'DateTime',
|
70
70
|
:'alias_id' => :'String'
|
71
71
|
}
|
@@ -100,22 +100,18 @@ module MailSlurpClient
|
|
100
100
|
self.id = attributes[:'id']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'created_at')
|
104
|
-
self.created_at = attributes[:'created_at']
|
105
|
-
end
|
106
|
-
|
107
103
|
if attributes.key?(:'subject')
|
108
104
|
self.subject = attributes[:'subject']
|
109
105
|
end
|
110
106
|
|
111
|
-
if attributes.key?(:'user_id')
|
112
|
-
self.user_id = attributes[:'user_id']
|
113
|
-
end
|
114
|
-
|
115
107
|
if attributes.key?(:'inbox_id')
|
116
108
|
self.inbox_id = attributes[:'inbox_id']
|
117
109
|
end
|
118
110
|
|
111
|
+
if attributes.key?(:'user_id')
|
112
|
+
self.user_id = attributes[:'user_id']
|
113
|
+
end
|
114
|
+
|
119
115
|
if attributes.key?(:'to')
|
120
116
|
if (value = attributes[:'to']).is_a?(Array)
|
121
117
|
self.to = value
|
@@ -134,6 +130,10 @@ module MailSlurpClient
|
|
134
130
|
end
|
135
131
|
end
|
136
132
|
|
133
|
+
if attributes.key?(:'created_at')
|
134
|
+
self.created_at = attributes[:'created_at']
|
135
|
+
end
|
136
|
+
|
137
137
|
if attributes.key?(:'updated_at')
|
138
138
|
self.updated_at = attributes[:'updated_at']
|
139
139
|
end
|
@@ -151,22 +151,22 @@ module MailSlurpClient
|
|
151
151
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
152
152
|
end
|
153
153
|
|
154
|
-
if @
|
155
|
-
invalid_properties.push('invalid value for "
|
154
|
+
if @inbox_id.nil?
|
155
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
156
156
|
end
|
157
157
|
|
158
158
|
if @user_id.nil?
|
159
159
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
160
160
|
end
|
161
161
|
|
162
|
-
if @inbox_id.nil?
|
163
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
162
|
if @to.nil?
|
167
163
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
168
164
|
end
|
169
165
|
|
166
|
+
if @created_at.nil?
|
167
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
168
|
+
end
|
169
|
+
|
170
170
|
if @updated_at.nil?
|
171
171
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
172
172
|
end
|
@@ -182,10 +182,10 @@ module MailSlurpClient
|
|
182
182
|
# @return true if the model is valid
|
183
183
|
def valid?
|
184
184
|
return false if @id.nil?
|
185
|
-
return false if @created_at.nil?
|
186
|
-
return false if @user_id.nil?
|
187
185
|
return false if @inbox_id.nil?
|
186
|
+
return false if @user_id.nil?
|
188
187
|
return false if @to.nil?
|
188
|
+
return false if @created_at.nil?
|
189
189
|
return false if @updated_at.nil?
|
190
190
|
return false if @alias_id.nil?
|
191
191
|
true
|
@@ -198,13 +198,13 @@ module MailSlurpClient
|
|
198
198
|
self.class == o.class &&
|
199
199
|
name == o.name &&
|
200
200
|
id == o.id &&
|
201
|
-
created_at == o.created_at &&
|
202
201
|
subject == o.subject &&
|
203
|
-
user_id == o.user_id &&
|
204
202
|
inbox_id == o.inbox_id &&
|
203
|
+
user_id == o.user_id &&
|
205
204
|
to == o.to &&
|
206
205
|
bcc == o.bcc &&
|
207
206
|
cc == o.cc &&
|
207
|
+
created_at == o.created_at &&
|
208
208
|
updated_at == o.updated_at &&
|
209
209
|
alias_id == o.alias_id
|
210
210
|
end
|
@@ -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
|
-
[name, id,
|
221
|
+
[name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|