mailslurp_client 15.8.0 → 15.11.0
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/form_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/inbox_controller_api.rb +75 -0
- data/lib/mailslurp_client/configuration.rb +2 -2
- data/lib/mailslurp_client/models/alias_projection.rb +18 -18
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +18 -13
- data/lib/mailslurp_client/models/create_webhook_options.rb +1 -1
- data/lib/mailslurp_client/models/email_preview.rb +5 -0
- data/lib/mailslurp_client/models/email_projection.rb +45 -35
- data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
- data/lib/mailslurp_client/models/missed_email.rb +37 -1
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +5 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +40 -35
- data/lib/mailslurp_client/models/template_projection.rb +18 -18
- data/lib/mailslurp_client/models/thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/webhook_dto.rb +1 -1
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +5 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
- data/lib/mailslurp_client/models/webhook_result_dto.rb +5 -0
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
@@ -27,6 +27,12 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :to
|
29
29
|
|
30
|
+
attr_accessor :bcc
|
31
|
+
|
32
|
+
attr_accessor :cc
|
33
|
+
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
30
36
|
attr_accessor :team_access
|
31
37
|
|
32
38
|
attr_accessor :read
|
@@ -35,12 +41,6 @@ module MailSlurpClient
|
|
35
41
|
|
36
42
|
attr_accessor :body_excerpt
|
37
43
|
|
38
|
-
attr_accessor :created_at
|
39
|
-
|
40
|
-
attr_accessor :bcc
|
41
|
-
|
42
|
-
attr_accessor :cc
|
43
|
-
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
@@ -50,13 +50,13 @@ module MailSlurpClient
|
|
50
50
|
:'inbox_id' => :'inboxId',
|
51
51
|
:'attachments' => :'attachments',
|
52
52
|
:'to' => :'to',
|
53
|
+
:'bcc' => :'bcc',
|
54
|
+
:'cc' => :'cc',
|
55
|
+
:'created_at' => :'createdAt',
|
53
56
|
:'team_access' => :'teamAccess',
|
54
57
|
:'read' => :'read',
|
55
58
|
:'body_md5_hash' => :'bodyMD5Hash',
|
56
|
-
:'body_excerpt' => :'bodyExcerpt'
|
57
|
-
:'created_at' => :'createdAt',
|
58
|
-
:'bcc' => :'bcc',
|
59
|
-
:'cc' => :'cc'
|
59
|
+
:'body_excerpt' => :'bodyExcerpt'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -69,13 +69,13 @@ module MailSlurpClient
|
|
69
69
|
:'inbox_id' => :'String',
|
70
70
|
:'attachments' => :'Array<String>',
|
71
71
|
:'to' => :'Array<String>',
|
72
|
+
:'bcc' => :'Array<String>',
|
73
|
+
:'cc' => :'Array<String>',
|
74
|
+
:'created_at' => :'DateTime',
|
72
75
|
:'team_access' => :'Boolean',
|
73
76
|
:'read' => :'Boolean',
|
74
77
|
:'body_md5_hash' => :'String',
|
75
|
-
:'body_excerpt' => :'String'
|
76
|
-
:'created_at' => :'DateTime',
|
77
|
-
:'bcc' => :'Array<String>',
|
78
|
-
:'cc' => :'Array<String>'
|
78
|
+
:'body_excerpt' => :'String'
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
@@ -128,6 +128,22 @@ module MailSlurpClient
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
+
if attributes.key?(:'bcc')
|
132
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
133
|
+
self.bcc = value
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'cc')
|
138
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
139
|
+
self.cc = value
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'created_at')
|
144
|
+
self.created_at = attributes[:'created_at']
|
145
|
+
end
|
146
|
+
|
131
147
|
if attributes.key?(:'team_access')
|
132
148
|
self.team_access = attributes[:'team_access']
|
133
149
|
end
|
@@ -143,22 +159,6 @@ module MailSlurpClient
|
|
143
159
|
if attributes.key?(:'body_excerpt')
|
144
160
|
self.body_excerpt = attributes[:'body_excerpt']
|
145
161
|
end
|
146
|
-
|
147
|
-
if attributes.key?(:'created_at')
|
148
|
-
self.created_at = attributes[:'created_at']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.key?(:'bcc')
|
152
|
-
if (value = attributes[:'bcc']).is_a?(Array)
|
153
|
-
self.bcc = value
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
if attributes.key?(:'cc')
|
158
|
-
if (value = attributes[:'cc']).is_a?(Array)
|
159
|
-
self.cc = value
|
160
|
-
end
|
161
|
-
end
|
162
162
|
end
|
163
163
|
|
164
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,6 +181,14 @@ module MailSlurpClient
|
|
181
181
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
182
|
end
|
183
183
|
|
184
|
+
if @team_access.nil?
|
185
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @read.nil?
|
189
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
190
|
+
end
|
191
|
+
|
184
192
|
invalid_properties
|
185
193
|
end
|
186
194
|
|
@@ -191,6 +199,8 @@ module MailSlurpClient
|
|
191
199
|
return false if @inbox_id.nil?
|
192
200
|
return false if @to.nil?
|
193
201
|
return false if @created_at.nil?
|
202
|
+
return false if @team_access.nil?
|
203
|
+
return false if @read.nil?
|
194
204
|
true
|
195
205
|
end
|
196
206
|
|
@@ -205,13 +215,13 @@ module MailSlurpClient
|
|
205
215
|
inbox_id == o.inbox_id &&
|
206
216
|
attachments == o.attachments &&
|
207
217
|
to == o.to &&
|
218
|
+
bcc == o.bcc &&
|
219
|
+
cc == o.cc &&
|
220
|
+
created_at == o.created_at &&
|
208
221
|
team_access == o.team_access &&
|
209
222
|
read == o.read &&
|
210
223
|
body_md5_hash == o.body_md5_hash &&
|
211
|
-
body_excerpt == o.body_excerpt
|
212
|
-
created_at == o.created_at &&
|
213
|
-
bcc == o.bcc &&
|
214
|
-
cc == o.cc
|
224
|
+
body_excerpt == o.body_excerpt
|
215
225
|
end
|
216
226
|
|
217
227
|
# @see the `==` method
|
@@ -223,7 +233,7 @@ module MailSlurpClient
|
|
223
233
|
# Calculates hash code according to all attributes.
|
224
234
|
# @return [Integer] Hash code
|
225
235
|
def hash
|
226
|
-
[id, from, subject, inbox_id, attachments, to,
|
236
|
+
[id, from, subject, inbox_id, attachments, to, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
|
227
237
|
end
|
228
238
|
|
229
239
|
# Builds the object from hash
|
@@ -183,6 +183,10 @@ module MailSlurpClient
|
|
183
183
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
184
184
|
end
|
185
185
|
|
186
|
+
if @virtual_inbox.nil?
|
187
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
188
|
+
end
|
189
|
+
|
186
190
|
invalid_properties
|
187
191
|
end
|
188
192
|
|
@@ -195,6 +199,7 @@ module MailSlurpClient
|
|
195
199
|
return false if @team_access.nil?
|
196
200
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
197
201
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
202
|
+
return false if @virtual_inbox.nil?
|
198
203
|
true
|
199
204
|
end
|
200
205
|
|
@@ -27,6 +27,14 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :from
|
29
29
|
|
30
|
+
attr_accessor :raw_url
|
31
|
+
|
32
|
+
attr_accessor :raw_key
|
33
|
+
|
34
|
+
attr_accessor :raw_bucket
|
35
|
+
|
36
|
+
attr_accessor :can_restore
|
37
|
+
|
30
38
|
attr_accessor :to
|
31
39
|
|
32
40
|
attr_accessor :cc
|
@@ -48,6 +56,10 @@ module MailSlurpClient
|
|
48
56
|
:'body_excerpt' => :'bodyExcerpt',
|
49
57
|
:'attachment_count' => :'attachmentCount',
|
50
58
|
:'from' => :'from',
|
59
|
+
:'raw_url' => :'rawUrl',
|
60
|
+
:'raw_key' => :'rawKey',
|
61
|
+
:'raw_bucket' => :'rawBucket',
|
62
|
+
:'can_restore' => :'canRestore',
|
51
63
|
:'to' => :'to',
|
52
64
|
:'cc' => :'cc',
|
53
65
|
:'bcc' => :'bcc',
|
@@ -66,6 +78,10 @@ module MailSlurpClient
|
|
66
78
|
:'body_excerpt' => :'String',
|
67
79
|
:'attachment_count' => :'Integer',
|
68
80
|
:'from' => :'String',
|
81
|
+
:'raw_url' => :'String',
|
82
|
+
:'raw_key' => :'String',
|
83
|
+
:'raw_bucket' => :'String',
|
84
|
+
:'can_restore' => :'Boolean',
|
69
85
|
:'to' => :'Array<String>',
|
70
86
|
:'cc' => :'Array<String>',
|
71
87
|
:'bcc' => :'Array<String>',
|
@@ -120,6 +136,22 @@ module MailSlurpClient
|
|
120
136
|
self.from = attributes[:'from']
|
121
137
|
end
|
122
138
|
|
139
|
+
if attributes.key?(:'raw_url')
|
140
|
+
self.raw_url = attributes[:'raw_url']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'raw_key')
|
144
|
+
self.raw_key = attributes[:'raw_key']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'raw_bucket')
|
148
|
+
self.raw_bucket = attributes[:'raw_bucket']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'can_restore')
|
152
|
+
self.can_restore = attributes[:'can_restore']
|
153
|
+
end
|
154
|
+
|
123
155
|
if attributes.key?(:'to')
|
124
156
|
if (value = attributes[:'to']).is_a?(Array)
|
125
157
|
self.to = value
|
@@ -212,6 +244,10 @@ module MailSlurpClient
|
|
212
244
|
body_excerpt == o.body_excerpt &&
|
213
245
|
attachment_count == o.attachment_count &&
|
214
246
|
from == o.from &&
|
247
|
+
raw_url == o.raw_url &&
|
248
|
+
raw_key == o.raw_key &&
|
249
|
+
raw_bucket == o.raw_bucket &&
|
250
|
+
can_restore == o.can_restore &&
|
215
251
|
to == o.to &&
|
216
252
|
cc == o.cc &&
|
217
253
|
bcc == o.bcc &&
|
@@ -229,7 +265,7 @@ module MailSlurpClient
|
|
229
265
|
# Calculates hash code according to all attributes.
|
230
266
|
# @return [Integer] Hash code
|
231
267
|
def hash
|
232
|
-
[id, user_id, subject, body_excerpt, attachment_count, from, to, cc, bcc, inbox_ids, created_at, updated_at].hash
|
268
|
+
[id, user_id, subject, body_excerpt, attachment_count, from, raw_url, raw_key, raw_bucket, can_restore, to, cc, bcc, inbox_ids, created_at, updated_at].hash
|
233
269
|
end
|
234
270
|
|
235
271
|
# Builds the object from hash
|
@@ -187,6 +187,10 @@ module MailSlurpClient
|
|
187
187
|
invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
|
188
188
|
end
|
189
189
|
|
190
|
+
if @virtual_inbox.nil?
|
191
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
192
|
+
end
|
193
|
+
|
190
194
|
invalid_properties
|
191
195
|
end
|
192
196
|
|
@@ -200,6 +204,7 @@ module MailSlurpClient
|
|
200
204
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
201
205
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
202
206
|
return false if @read_only.nil?
|
207
|
+
return false if @virtual_inbox.nil?
|
203
208
|
true
|
204
209
|
end
|
205
210
|
|
@@ -23,20 +23,20 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :to
|
27
|
-
|
28
26
|
attr_accessor :inbox_id
|
29
27
|
|
30
28
|
attr_accessor :attachments
|
31
29
|
|
32
|
-
attr_accessor :
|
33
|
-
|
34
|
-
attr_accessor :created_at
|
30
|
+
attr_accessor :to
|
35
31
|
|
36
32
|
attr_accessor :bcc
|
37
33
|
|
38
34
|
attr_accessor :cc
|
39
35
|
|
36
|
+
attr_accessor :created_at
|
37
|
+
|
38
|
+
attr_accessor :body_md5_hash
|
39
|
+
|
40
40
|
attr_accessor :virtual_send
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,13 +46,13 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'to' => :'to',
|
50
49
|
:'inbox_id' => :'inboxId',
|
51
50
|
:'attachments' => :'attachments',
|
52
|
-
:'
|
53
|
-
:'created_at' => :'createdAt',
|
51
|
+
:'to' => :'to',
|
54
52
|
:'bcc' => :'bcc',
|
55
53
|
:'cc' => :'cc',
|
54
|
+
:'created_at' => :'createdAt',
|
55
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
56
56
|
:'virtual_send' => :'virtualSend'
|
57
57
|
}
|
58
58
|
end
|
@@ -64,13 +64,13 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'to' => :'Array<String>',
|
68
67
|
:'inbox_id' => :'String',
|
69
68
|
:'attachments' => :'Array<String>',
|
70
|
-
:'
|
71
|
-
:'created_at' => :'DateTime',
|
69
|
+
:'to' => :'Array<String>',
|
72
70
|
:'bcc' => :'Array<String>',
|
73
71
|
:'cc' => :'Array<String>',
|
72
|
+
:'created_at' => :'DateTime',
|
73
|
+
:'body_md5_hash' => :'String',
|
74
74
|
:'virtual_send' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -112,12 +112,6 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'to')
|
116
|
-
if (value = attributes[:'to']).is_a?(Array)
|
117
|
-
self.to = value
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
115
|
if attributes.key?(:'inbox_id')
|
122
116
|
self.inbox_id = attributes[:'inbox_id']
|
123
117
|
end
|
@@ -128,12 +122,10 @@ module MailSlurpClient
|
|
128
122
|
end
|
129
123
|
end
|
130
124
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
if attributes.key?(:'created_at')
|
136
|
-
self.created_at = attributes[:'created_at']
|
125
|
+
if attributes.key?(:'to')
|
126
|
+
if (value = attributes[:'to']).is_a?(Array)
|
127
|
+
self.to = value
|
128
|
+
end
|
137
129
|
end
|
138
130
|
|
139
131
|
if attributes.key?(:'bcc')
|
@@ -148,6 +140,14 @@ module MailSlurpClient
|
|
148
140
|
end
|
149
141
|
end
|
150
142
|
|
143
|
+
if attributes.key?(:'created_at')
|
144
|
+
self.created_at = attributes[:'created_at']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'body_md5_hash')
|
148
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
149
|
+
end
|
150
|
+
|
151
151
|
if attributes.key?(:'virtual_send')
|
152
152
|
self.virtual_send = attributes[:'virtual_send']
|
153
153
|
end
|
@@ -165,10 +165,6 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @to.nil?
|
169
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
168
|
if @inbox_id.nil?
|
173
169
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
174
170
|
end
|
@@ -177,8 +173,8 @@ module MailSlurpClient
|
|
177
173
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
178
174
|
end
|
179
175
|
|
180
|
-
if @
|
181
|
-
invalid_properties.push('invalid value for "
|
176
|
+
if @to.nil?
|
177
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
178
|
end
|
183
179
|
|
184
180
|
if @bcc.nil?
|
@@ -189,6 +185,14 @@ module MailSlurpClient
|
|
189
185
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
190
186
|
end
|
191
187
|
|
188
|
+
if @created_at.nil?
|
189
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
|
+
if @virtual_send.nil?
|
193
|
+
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
194
|
+
end
|
195
|
+
|
192
196
|
invalid_properties
|
193
197
|
end
|
194
198
|
|
@@ -197,12 +201,13 @@ module MailSlurpClient
|
|
197
201
|
def valid?
|
198
202
|
return false if @id.nil?
|
199
203
|
return false if @user_id.nil?
|
200
|
-
return false if @to.nil?
|
201
204
|
return false if @inbox_id.nil?
|
202
205
|
return false if @attachments.nil?
|
203
|
-
return false if @
|
206
|
+
return false if @to.nil?
|
204
207
|
return false if @bcc.nil?
|
205
208
|
return false if @cc.nil?
|
209
|
+
return false if @created_at.nil?
|
210
|
+
return false if @virtual_send.nil?
|
206
211
|
true
|
207
212
|
end
|
208
213
|
|
@@ -215,13 +220,13 @@ module MailSlurpClient
|
|
215
220
|
from == o.from &&
|
216
221
|
user_id == o.user_id &&
|
217
222
|
subject == o.subject &&
|
218
|
-
to == o.to &&
|
219
223
|
inbox_id == o.inbox_id &&
|
220
224
|
attachments == o.attachments &&
|
221
|
-
|
222
|
-
created_at == o.created_at &&
|
225
|
+
to == o.to &&
|
223
226
|
bcc == o.bcc &&
|
224
227
|
cc == o.cc &&
|
228
|
+
created_at == o.created_at &&
|
229
|
+
body_md5_hash == o.body_md5_hash &&
|
225
230
|
virtual_send == o.virtual_send
|
226
231
|
end
|
227
232
|
|
@@ -234,7 +239,7 @@ module MailSlurpClient
|
|
234
239
|
# Calculates hash code according to all attributes.
|
235
240
|
# @return [Integer] Hash code
|
236
241
|
def hash
|
237
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
|
238
243
|
end
|
239
244
|
|
240
245
|
# Builds the object from hash
|
@@ -19,20 +19,20 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :updated_at
|
23
|
-
|
24
22
|
attr_accessor :created_at
|
25
23
|
|
26
24
|
attr_accessor :variables
|
27
25
|
|
26
|
+
attr_accessor :updated_at
|
27
|
+
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'name' => :'name',
|
32
32
|
:'id' => :'id',
|
33
|
-
:'updated_at' => :'updatedAt',
|
34
33
|
:'created_at' => :'createdAt',
|
35
|
-
:'variables' => :'variables'
|
34
|
+
:'variables' => :'variables',
|
35
|
+
:'updated_at' => :'updatedAt'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -41,9 +41,9 @@ module MailSlurpClient
|
|
41
41
|
{
|
42
42
|
:'name' => :'String',
|
43
43
|
:'id' => :'String',
|
44
|
-
:'updated_at' => :'DateTime',
|
45
44
|
:'created_at' => :'DateTime',
|
46
|
-
:'variables' => :'Array<String>'
|
45
|
+
:'variables' => :'Array<String>',
|
46
|
+
:'updated_at' => :'DateTime'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -76,10 +76,6 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'updated_at')
|
80
|
-
self.updated_at = attributes[:'updated_at']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'created_at')
|
84
80
|
self.created_at = attributes[:'created_at']
|
85
81
|
end
|
@@ -89,6 +85,10 @@ module MailSlurpClient
|
|
89
85
|
self.variables = value
|
90
86
|
end
|
91
87
|
end
|
88
|
+
|
89
|
+
if attributes.key?(:'updated_at')
|
90
|
+
self.updated_at = attributes[:'updated_at']
|
91
|
+
end
|
92
92
|
end
|
93
93
|
|
94
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -103,10 +103,6 @@ module MailSlurpClient
|
|
103
103
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
104
104
|
end
|
105
105
|
|
106
|
-
if @updated_at.nil?
|
107
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
108
|
-
end
|
109
|
-
|
110
106
|
if @created_at.nil?
|
111
107
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
112
108
|
end
|
@@ -115,6 +111,10 @@ module MailSlurpClient
|
|
115
111
|
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
116
112
|
end
|
117
113
|
|
114
|
+
if @updated_at.nil?
|
115
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
116
|
+
end
|
117
|
+
|
118
118
|
invalid_properties
|
119
119
|
end
|
120
120
|
|
@@ -123,9 +123,9 @@ module MailSlurpClient
|
|
123
123
|
def valid?
|
124
124
|
return false if @name.nil?
|
125
125
|
return false if @id.nil?
|
126
|
-
return false if @updated_at.nil?
|
127
126
|
return false if @created_at.nil?
|
128
127
|
return false if @variables.nil?
|
128
|
+
return false if @updated_at.nil?
|
129
129
|
true
|
130
130
|
end
|
131
131
|
|
@@ -136,9 +136,9 @@ module MailSlurpClient
|
|
136
136
|
self.class == o.class &&
|
137
137
|
name == o.name &&
|
138
138
|
id == o.id &&
|
139
|
-
updated_at == o.updated_at &&
|
140
139
|
created_at == o.created_at &&
|
141
|
-
variables == o.variables
|
140
|
+
variables == o.variables &&
|
141
|
+
updated_at == o.updated_at
|
142
142
|
end
|
143
143
|
|
144
144
|
# @see the `==` method
|
@@ -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
|
-
[name, id,
|
153
|
+
[name, id, created_at, variables, updated_at].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -33,18 +33,18 @@ module MailSlurpClient
|
|
33
33
|
# To recipients
|
34
34
|
attr_accessor :to
|
35
35
|
|
36
|
-
# Updated at DateTime
|
37
|
-
attr_accessor :updated_at
|
38
|
-
|
39
|
-
# Created at DateTime
|
40
|
-
attr_accessor :created_at
|
41
|
-
|
42
36
|
# BCC recipients
|
43
37
|
attr_accessor :bcc
|
44
38
|
|
45
39
|
# CC recipients
|
46
40
|
attr_accessor :cc
|
47
41
|
|
42
|
+
# Created at DateTime
|
43
|
+
attr_accessor :created_at
|
44
|
+
|
45
|
+
# Updated at DateTime
|
46
|
+
attr_accessor :updated_at
|
47
|
+
|
48
48
|
# Alias ID
|
49
49
|
attr_accessor :alias_id
|
50
50
|
|
@@ -57,10 +57,10 @@ module MailSlurpClient
|
|
57
57
|
:'inbox_id' => :'inboxId',
|
58
58
|
:'user_id' => :'userId',
|
59
59
|
:'to' => :'to',
|
60
|
-
:'updated_at' => :'updatedAt',
|
61
|
-
:'created_at' => :'createdAt',
|
62
60
|
:'bcc' => :'bcc',
|
63
61
|
:'cc' => :'cc',
|
62
|
+
:'created_at' => :'createdAt',
|
63
|
+
:'updated_at' => :'updatedAt',
|
64
64
|
:'alias_id' => :'aliasId'
|
65
65
|
}
|
66
66
|
end
|
@@ -74,10 +74,10 @@ module MailSlurpClient
|
|
74
74
|
:'inbox_id' => :'String',
|
75
75
|
:'user_id' => :'String',
|
76
76
|
:'to' => :'Array<String>',
|
77
|
-
:'updated_at' => :'DateTime',
|
78
|
-
:'created_at' => :'DateTime',
|
79
77
|
:'bcc' => :'Array<String>',
|
80
78
|
:'cc' => :'Array<String>',
|
79
|
+
:'created_at' => :'DateTime',
|
80
|
+
:'updated_at' => :'DateTime',
|
81
81
|
:'alias_id' => :'String'
|
82
82
|
}
|
83
83
|
end
|
@@ -129,14 +129,6 @@ module MailSlurpClient
|
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
132
|
-
if attributes.key?(:'updated_at')
|
133
|
-
self.updated_at = attributes[:'updated_at']
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes.key?(:'created_at')
|
137
|
-
self.created_at = attributes[:'created_at']
|
138
|
-
end
|
139
|
-
|
140
132
|
if attributes.key?(:'bcc')
|
141
133
|
if (value = attributes[:'bcc']).is_a?(Array)
|
142
134
|
self.bcc = value
|
@@ -149,6 +141,14 @@ module MailSlurpClient
|
|
149
141
|
end
|
150
142
|
end
|
151
143
|
|
144
|
+
if attributes.key?(:'created_at')
|
145
|
+
self.created_at = attributes[:'created_at']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'updated_at')
|
149
|
+
self.updated_at = attributes[:'updated_at']
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'alias_id')
|
153
153
|
self.alias_id = attributes[:'alias_id']
|
154
154
|
end
|
@@ -174,14 +174,14 @@ module MailSlurpClient
|
|
174
174
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
175
175
|
end
|
176
176
|
|
177
|
-
if @updated_at.nil?
|
178
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
179
|
-
end
|
180
|
-
|
181
177
|
if @created_at.nil?
|
182
178
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
183
179
|
end
|
184
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 @alias_id.nil?
|
186
186
|
invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
|
187
187
|
end
|
@@ -196,8 +196,8 @@ module MailSlurpClient
|
|
196
196
|
return false if @inbox_id.nil?
|
197
197
|
return false if @user_id.nil?
|
198
198
|
return false if @to.nil?
|
199
|
-
return false if @updated_at.nil?
|
200
199
|
return false if @created_at.nil?
|
200
|
+
return false if @updated_at.nil?
|
201
201
|
return false if @alias_id.nil?
|
202
202
|
true
|
203
203
|
end
|
@@ -213,10 +213,10 @@ module MailSlurpClient
|
|
213
213
|
inbox_id == o.inbox_id &&
|
214
214
|
user_id == o.user_id &&
|
215
215
|
to == o.to &&
|
216
|
-
updated_at == o.updated_at &&
|
217
|
-
created_at == o.created_at &&
|
218
216
|
bcc == o.bcc &&
|
219
217
|
cc == o.cc &&
|
218
|
+
created_at == o.created_at &&
|
219
|
+
updated_at == o.updated_at &&
|
220
220
|
alias_id == o.alias_id
|
221
221
|
end
|
222
222
|
|
@@ -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
|
-
[name, id, subject, inbox_id, user_id, to,
|
232
|
+
[name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|