mailslurp_client 15.20.0 → 15.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
- data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +381 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
- data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/email.rb +12 -1
- data/lib/mailslurp_client/models/email_preview.rb +15 -5
- data/lib/mailslurp_client/models/email_projection.rb +35 -25
- data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/emergency_address.rb +2 -2
- data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +29 -29
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
- data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
- data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- 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/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +16 -0
- metadata +18 -2
@@ -67,6 +67,8 @@ module MailSlurpClient
|
|
67
67
|
|
68
68
|
attr_accessor :plus_address
|
69
69
|
|
70
|
+
attr_accessor :size_bytes
|
71
|
+
|
70
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
73
|
def self.attribute_map
|
72
74
|
{
|
@@ -88,7 +90,8 @@ module MailSlurpClient
|
|
88
90
|
:'recipients' => :'recipients',
|
89
91
|
:'favourite' => :'favourite',
|
90
92
|
:'body_part_content_types' => :'bodyPartContentTypes',
|
91
|
-
:'plus_address' => :'plusAddress'
|
93
|
+
:'plus_address' => :'plusAddress',
|
94
|
+
:'size_bytes' => :'sizeBytes'
|
92
95
|
}
|
93
96
|
end
|
94
97
|
|
@@ -113,7 +116,8 @@ module MailSlurpClient
|
|
113
116
|
:'recipients' => :'EmailRecipients',
|
114
117
|
:'favourite' => :'Boolean',
|
115
118
|
:'body_part_content_types' => :'Array<String>',
|
116
|
-
:'plus_address' => :'String'
|
119
|
+
:'plus_address' => :'String',
|
120
|
+
:'size_bytes' => :'Integer'
|
117
121
|
}
|
118
122
|
end
|
119
123
|
|
@@ -135,7 +139,8 @@ module MailSlurpClient
|
|
135
139
|
:'recipients',
|
136
140
|
:'favourite',
|
137
141
|
:'body_part_content_types',
|
138
|
-
:'plus_address'
|
142
|
+
:'plus_address',
|
143
|
+
:'size_bytes'
|
139
144
|
])
|
140
145
|
end
|
141
146
|
|
@@ -239,6 +244,10 @@ module MailSlurpClient
|
|
239
244
|
if attributes.key?(:'plus_address')
|
240
245
|
self.plus_address = attributes[:'plus_address']
|
241
246
|
end
|
247
|
+
|
248
|
+
if attributes.key?(:'size_bytes')
|
249
|
+
self.size_bytes = attributes[:'size_bytes']
|
250
|
+
end
|
242
251
|
end
|
243
252
|
|
244
253
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -292,7 +301,8 @@ module MailSlurpClient
|
|
292
301
|
recipients == o.recipients &&
|
293
302
|
favourite == o.favourite &&
|
294
303
|
body_part_content_types == o.body_part_content_types &&
|
295
|
-
plus_address == o.plus_address
|
304
|
+
plus_address == o.plus_address &&
|
305
|
+
size_bytes == o.size_bytes
|
296
306
|
end
|
297
307
|
|
298
308
|
# @see the `==` method
|
@@ -304,7 +314,7 @@ module MailSlurpClient
|
|
304
314
|
# Calculates hash code according to all attributes.
|
305
315
|
# @return [Integer] Hash code
|
306
316
|
def hash
|
307
|
-
[id, inbox_id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments, thread_id, message_id, in_reply_to, sender, recipients, favourite, body_part_content_types, plus_address].hash
|
317
|
+
[id, inbox_id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments, thread_id, message_id, in_reply_to, sender, recipients, favourite, body_part_content_types, plus_address, size_bytes].hash
|
308
318
|
end
|
309
319
|
|
310
320
|
# Builds the object from hash
|
@@ -15,10 +15,6 @@ 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 :subject
|
19
|
-
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
18
|
attr_accessor :sender
|
23
19
|
|
24
20
|
attr_accessor :recipients
|
@@ -27,6 +23,8 @@ module MailSlurpClient
|
|
27
23
|
|
28
24
|
attr_accessor :inbox_id
|
29
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
30
28
|
attr_accessor :to
|
31
29
|
|
32
30
|
attr_accessor :cc
|
@@ -41,6 +39,8 @@ module MailSlurpClient
|
|
41
39
|
|
42
40
|
attr_accessor :plus_address
|
43
41
|
|
42
|
+
attr_accessor :size_bytes
|
43
|
+
|
44
44
|
attr_accessor :in_reply_to
|
45
45
|
|
46
46
|
attr_accessor :read
|
@@ -55,6 +55,8 @@ module MailSlurpClient
|
|
55
55
|
|
56
56
|
attr_accessor :team_access
|
57
57
|
|
58
|
+
attr_accessor :subject
|
59
|
+
|
58
60
|
attr_accessor :id
|
59
61
|
|
60
62
|
attr_accessor :thread_id
|
@@ -64,12 +66,11 @@ module MailSlurpClient
|
|
64
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
67
|
def self.attribute_map
|
66
68
|
{
|
67
|
-
:'subject' => :'subject',
|
68
|
-
:'created_at' => :'createdAt',
|
69
69
|
:'sender' => :'sender',
|
70
70
|
:'recipients' => :'recipients',
|
71
71
|
:'attachments' => :'attachments',
|
72
72
|
:'inbox_id' => :'inboxId',
|
73
|
+
:'created_at' => :'createdAt',
|
73
74
|
:'to' => :'to',
|
74
75
|
:'cc' => :'cc',
|
75
76
|
:'bcc' => :'bcc',
|
@@ -77,6 +78,7 @@ module MailSlurpClient
|
|
77
78
|
:'domain_id' => :'domainId',
|
78
79
|
:'favourite' => :'favourite',
|
79
80
|
:'plus_address' => :'plusAddress',
|
81
|
+
:'size_bytes' => :'sizeBytes',
|
80
82
|
:'in_reply_to' => :'inReplyTo',
|
81
83
|
:'read' => :'read',
|
82
84
|
:'body_excerpt' => :'bodyExcerpt',
|
@@ -84,6 +86,7 @@ module MailSlurpClient
|
|
84
86
|
:'body_part_content_types' => :'bodyPartContentTypes',
|
85
87
|
:'body_md5_hash' => :'bodyMD5Hash',
|
86
88
|
:'team_access' => :'teamAccess',
|
89
|
+
:'subject' => :'subject',
|
87
90
|
:'id' => :'id',
|
88
91
|
:'thread_id' => :'threadId',
|
89
92
|
:'from' => :'from'
|
@@ -93,12 +96,11 @@ module MailSlurpClient
|
|
93
96
|
# Attribute type mapping.
|
94
97
|
def self.openapi_types
|
95
98
|
{
|
96
|
-
:'subject' => :'String',
|
97
|
-
:'created_at' => :'DateTime',
|
98
99
|
:'sender' => :'Sender',
|
99
100
|
:'recipients' => :'EmailRecipients',
|
100
101
|
:'attachments' => :'Array<String>',
|
101
102
|
:'inbox_id' => :'String',
|
103
|
+
:'created_at' => :'DateTime',
|
102
104
|
:'to' => :'Array<String>',
|
103
105
|
:'cc' => :'Array<String>',
|
104
106
|
:'bcc' => :'Array<String>',
|
@@ -106,6 +108,7 @@ module MailSlurpClient
|
|
106
108
|
:'domain_id' => :'String',
|
107
109
|
:'favourite' => :'Boolean',
|
108
110
|
:'plus_address' => :'String',
|
111
|
+
:'size_bytes' => :'Integer',
|
109
112
|
:'in_reply_to' => :'String',
|
110
113
|
:'read' => :'Boolean',
|
111
114
|
:'body_excerpt' => :'String',
|
@@ -113,6 +116,7 @@ module MailSlurpClient
|
|
113
116
|
:'body_part_content_types' => :'Array<String>',
|
114
117
|
:'body_md5_hash' => :'String',
|
115
118
|
:'team_access' => :'Boolean',
|
119
|
+
:'subject' => :'String',
|
116
120
|
:'id' => :'String',
|
117
121
|
:'thread_id' => :'String',
|
118
122
|
:'from' => :'String'
|
@@ -122,7 +126,6 @@ module MailSlurpClient
|
|
122
126
|
# List of attributes with nullable: true
|
123
127
|
def self.openapi_nullable
|
124
128
|
Set.new([
|
125
|
-
:'subject',
|
126
129
|
:'sender',
|
127
130
|
:'recipients',
|
128
131
|
:'attachments',
|
@@ -132,11 +135,13 @@ module MailSlurpClient
|
|
132
135
|
:'domain_id',
|
133
136
|
:'favourite',
|
134
137
|
:'plus_address',
|
138
|
+
:'size_bytes',
|
135
139
|
:'in_reply_to',
|
136
140
|
:'body_excerpt',
|
137
141
|
:'text_excerpt',
|
138
142
|
:'body_part_content_types',
|
139
143
|
:'body_md5_hash',
|
144
|
+
:'subject',
|
140
145
|
:'thread_id',
|
141
146
|
:'from'
|
142
147
|
])
|
@@ -157,14 +162,6 @@ module MailSlurpClient
|
|
157
162
|
h[k.to_sym] = v
|
158
163
|
}
|
159
164
|
|
160
|
-
if attributes.key?(:'subject')
|
161
|
-
self.subject = attributes[:'subject']
|
162
|
-
end
|
163
|
-
|
164
|
-
if attributes.key?(:'created_at')
|
165
|
-
self.created_at = attributes[:'created_at']
|
166
|
-
end
|
167
|
-
|
168
165
|
if attributes.key?(:'sender')
|
169
166
|
self.sender = attributes[:'sender']
|
170
167
|
end
|
@@ -183,6 +180,10 @@ module MailSlurpClient
|
|
183
180
|
self.inbox_id = attributes[:'inbox_id']
|
184
181
|
end
|
185
182
|
|
183
|
+
if attributes.key?(:'created_at')
|
184
|
+
self.created_at = attributes[:'created_at']
|
185
|
+
end
|
186
|
+
|
186
187
|
if attributes.key?(:'to')
|
187
188
|
if (value = attributes[:'to']).is_a?(Array)
|
188
189
|
self.to = value
|
@@ -217,6 +218,10 @@ module MailSlurpClient
|
|
217
218
|
self.plus_address = attributes[:'plus_address']
|
218
219
|
end
|
219
220
|
|
221
|
+
if attributes.key?(:'size_bytes')
|
222
|
+
self.size_bytes = attributes[:'size_bytes']
|
223
|
+
end
|
224
|
+
|
220
225
|
if attributes.key?(:'in_reply_to')
|
221
226
|
self.in_reply_to = attributes[:'in_reply_to']
|
222
227
|
end
|
@@ -247,6 +252,10 @@ module MailSlurpClient
|
|
247
252
|
self.team_access = attributes[:'team_access']
|
248
253
|
end
|
249
254
|
|
255
|
+
if attributes.key?(:'subject')
|
256
|
+
self.subject = attributes[:'subject']
|
257
|
+
end
|
258
|
+
|
250
259
|
if attributes.key?(:'id')
|
251
260
|
self.id = attributes[:'id']
|
252
261
|
end
|
@@ -264,14 +273,14 @@ module MailSlurpClient
|
|
264
273
|
# @return Array for valid properties with the reasons
|
265
274
|
def list_invalid_properties
|
266
275
|
invalid_properties = Array.new
|
267
|
-
if @created_at.nil?
|
268
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
269
|
-
end
|
270
|
-
|
271
276
|
if @inbox_id.nil?
|
272
277
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
273
278
|
end
|
274
279
|
|
280
|
+
if @created_at.nil?
|
281
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
282
|
+
end
|
283
|
+
|
275
284
|
if @to.nil?
|
276
285
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
277
286
|
end
|
@@ -294,8 +303,8 @@ module MailSlurpClient
|
|
294
303
|
# Check to see if the all the properties in the model are valid
|
295
304
|
# @return true if the model is valid
|
296
305
|
def valid?
|
297
|
-
return false if @created_at.nil?
|
298
306
|
return false if @inbox_id.nil?
|
307
|
+
return false if @created_at.nil?
|
299
308
|
return false if @to.nil?
|
300
309
|
return false if @read.nil?
|
301
310
|
return false if @team_access.nil?
|
@@ -308,12 +317,11 @@ module MailSlurpClient
|
|
308
317
|
def ==(o)
|
309
318
|
return true if self.equal?(o)
|
310
319
|
self.class == o.class &&
|
311
|
-
subject == o.subject &&
|
312
|
-
created_at == o.created_at &&
|
313
320
|
sender == o.sender &&
|
314
321
|
recipients == o.recipients &&
|
315
322
|
attachments == o.attachments &&
|
316
323
|
inbox_id == o.inbox_id &&
|
324
|
+
created_at == o.created_at &&
|
317
325
|
to == o.to &&
|
318
326
|
cc == o.cc &&
|
319
327
|
bcc == o.bcc &&
|
@@ -321,6 +329,7 @@ module MailSlurpClient
|
|
321
329
|
domain_id == o.domain_id &&
|
322
330
|
favourite == o.favourite &&
|
323
331
|
plus_address == o.plus_address &&
|
332
|
+
size_bytes == o.size_bytes &&
|
324
333
|
in_reply_to == o.in_reply_to &&
|
325
334
|
read == o.read &&
|
326
335
|
body_excerpt == o.body_excerpt &&
|
@@ -328,6 +337,7 @@ module MailSlurpClient
|
|
328
337
|
body_part_content_types == o.body_part_content_types &&
|
329
338
|
body_md5_hash == o.body_md5_hash &&
|
330
339
|
team_access == o.team_access &&
|
340
|
+
subject == o.subject &&
|
331
341
|
id == o.id &&
|
332
342
|
thread_id == o.thread_id &&
|
333
343
|
from == o.from
|
@@ -342,7 +352,7 @@ module MailSlurpClient
|
|
342
352
|
# Calculates hash code according to all attributes.
|
343
353
|
# @return [Integer] Hash code
|
344
354
|
def hash
|
345
|
-
[
|
355
|
+
[sender, recipients, attachments, inbox_id, created_at, to, cc, bcc, message_id, domain_id, favourite, plus_address, size_bytes, in_reply_to, read, body_excerpt, text_excerpt, body_part_content_types, body_md5_hash, team_access, subject, id, thread_id, from].hash
|
346
356
|
end
|
347
357
|
|
348
358
|
# Builds the object from hash
|
@@ -15,18 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# An email thread is a message thread created for a email based on Message-ID, In-Reply-To, and References headers
|
17
17
|
class EmailThreadProjection
|
18
|
-
# Thread topic subject
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
|
-
# Created at DateTime
|
22
|
-
attr_accessor :created_at
|
23
|
-
|
24
|
-
# Updated at DateTime
|
25
|
-
attr_accessor :updated_at
|
26
|
-
|
27
|
-
# Has unread
|
28
|
-
attr_accessor :unread
|
29
|
-
|
30
18
|
attr_accessor :sender
|
31
19
|
|
32
20
|
attr_accessor :recipients
|
@@ -37,6 +25,12 @@ module MailSlurpClient
|
|
37
25
|
# Inbox ID
|
38
26
|
attr_accessor :inbox_id
|
39
27
|
|
28
|
+
# Updated at DateTime
|
29
|
+
attr_accessor :updated_at
|
30
|
+
|
31
|
+
# Created at DateTime
|
32
|
+
attr_accessor :created_at
|
33
|
+
|
40
34
|
# To recipients
|
41
35
|
attr_accessor :to
|
42
36
|
|
@@ -49,6 +43,9 @@ module MailSlurpClient
|
|
49
43
|
# Has attachments
|
50
44
|
attr_accessor :has_attachments
|
51
45
|
|
46
|
+
# Has unread
|
47
|
+
attr_accessor :unread
|
48
|
+
|
52
49
|
# Number of messages in the thread
|
53
50
|
attr_accessor :message_count
|
54
51
|
|
@@ -66,6 +63,9 @@ module MailSlurpClient
|
|
66
63
|
|
67
64
|
attr_accessor :last_sender
|
68
65
|
|
66
|
+
# Thread topic subject
|
67
|
+
attr_accessor :subject
|
68
|
+
|
69
69
|
# ID of email thread
|
70
70
|
attr_accessor :id
|
71
71
|
|
@@ -75,24 +75,24 @@ module MailSlurpClient
|
|
75
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
76
76
|
def self.attribute_map
|
77
77
|
{
|
78
|
-
:'subject' => :'subject',
|
79
|
-
:'created_at' => :'createdAt',
|
80
|
-
:'updated_at' => :'updatedAt',
|
81
|
-
:'unread' => :'unread',
|
82
78
|
:'sender' => :'sender',
|
83
79
|
:'recipients' => :'recipients',
|
84
80
|
:'user_id' => :'userId',
|
85
81
|
:'inbox_id' => :'inboxId',
|
82
|
+
:'updated_at' => :'updatedAt',
|
83
|
+
:'created_at' => :'createdAt',
|
86
84
|
:'to' => :'to',
|
87
85
|
:'cc' => :'cc',
|
88
86
|
:'bcc' => :'bcc',
|
89
87
|
:'has_attachments' => :'hasAttachments',
|
88
|
+
:'unread' => :'unread',
|
90
89
|
:'message_count' => :'messageCount',
|
91
90
|
:'last_body_excerpt' => :'lastBodyExcerpt',
|
92
91
|
:'last_text_excerpt' => :'lastTextExcerpt',
|
93
92
|
:'last_created_at' => :'lastCreatedAt',
|
94
93
|
:'last_from' => :'lastFrom',
|
95
94
|
:'last_sender' => :'lastSender',
|
95
|
+
:'subject' => :'subject',
|
96
96
|
:'id' => :'id',
|
97
97
|
:'from' => :'from'
|
98
98
|
}
|
@@ -101,24 +101,24 @@ module MailSlurpClient
|
|
101
101
|
# Attribute type mapping.
|
102
102
|
def self.openapi_types
|
103
103
|
{
|
104
|
-
:'subject' => :'String',
|
105
|
-
:'created_at' => :'DateTime',
|
106
|
-
:'updated_at' => :'DateTime',
|
107
|
-
:'unread' => :'Boolean',
|
108
104
|
:'sender' => :'SenderProjection',
|
109
105
|
:'recipients' => :'EmailRecipientsProjection',
|
110
106
|
:'user_id' => :'String',
|
111
107
|
:'inbox_id' => :'String',
|
108
|
+
:'updated_at' => :'DateTime',
|
109
|
+
:'created_at' => :'DateTime',
|
112
110
|
:'to' => :'Array<String>',
|
113
111
|
:'cc' => :'Array<String>',
|
114
112
|
:'bcc' => :'Array<String>',
|
115
113
|
:'has_attachments' => :'Boolean',
|
114
|
+
:'unread' => :'Boolean',
|
116
115
|
:'message_count' => :'Integer',
|
117
116
|
:'last_body_excerpt' => :'String',
|
118
117
|
:'last_text_excerpt' => :'String',
|
119
118
|
:'last_created_at' => :'DateTime',
|
120
119
|
:'last_from' => :'String',
|
121
120
|
:'last_sender' => :'SenderProjection',
|
121
|
+
:'subject' => :'String',
|
122
122
|
:'id' => :'String',
|
123
123
|
:'from' => :'String'
|
124
124
|
}
|
@@ -145,22 +145,6 @@ module MailSlurpClient
|
|
145
145
|
h[k.to_sym] = v
|
146
146
|
}
|
147
147
|
|
148
|
-
if attributes.key?(:'subject')
|
149
|
-
self.subject = attributes[:'subject']
|
150
|
-
end
|
151
|
-
|
152
|
-
if attributes.key?(:'created_at')
|
153
|
-
self.created_at = attributes[:'created_at']
|
154
|
-
end
|
155
|
-
|
156
|
-
if attributes.key?(:'updated_at')
|
157
|
-
self.updated_at = attributes[:'updated_at']
|
158
|
-
end
|
159
|
-
|
160
|
-
if attributes.key?(:'unread')
|
161
|
-
self.unread = attributes[:'unread']
|
162
|
-
end
|
163
|
-
|
164
148
|
if attributes.key?(:'sender')
|
165
149
|
self.sender = attributes[:'sender']
|
166
150
|
end
|
@@ -177,6 +161,14 @@ module MailSlurpClient
|
|
177
161
|
self.inbox_id = attributes[:'inbox_id']
|
178
162
|
end
|
179
163
|
|
164
|
+
if attributes.key?(:'updated_at')
|
165
|
+
self.updated_at = attributes[:'updated_at']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'created_at')
|
169
|
+
self.created_at = attributes[:'created_at']
|
170
|
+
end
|
171
|
+
|
180
172
|
if attributes.key?(:'to')
|
181
173
|
if (value = attributes[:'to']).is_a?(Array)
|
182
174
|
self.to = value
|
@@ -199,6 +191,10 @@ module MailSlurpClient
|
|
199
191
|
self.has_attachments = attributes[:'has_attachments']
|
200
192
|
end
|
201
193
|
|
194
|
+
if attributes.key?(:'unread')
|
195
|
+
self.unread = attributes[:'unread']
|
196
|
+
end
|
197
|
+
|
202
198
|
if attributes.key?(:'message_count')
|
203
199
|
self.message_count = attributes[:'message_count']
|
204
200
|
end
|
@@ -223,6 +219,10 @@ module MailSlurpClient
|
|
223
219
|
self.last_sender = attributes[:'last_sender']
|
224
220
|
end
|
225
221
|
|
222
|
+
if attributes.key?(:'subject')
|
223
|
+
self.subject = attributes[:'subject']
|
224
|
+
end
|
225
|
+
|
226
226
|
if attributes.key?(:'id')
|
227
227
|
self.id = attributes[:'id']
|
228
228
|
end
|
@@ -236,20 +236,16 @@ module MailSlurpClient
|
|
236
236
|
# @return Array for valid properties with the reasons
|
237
237
|
def list_invalid_properties
|
238
238
|
invalid_properties = Array.new
|
239
|
-
if @
|
240
|
-
invalid_properties.push('invalid value for "
|
239
|
+
if @user_id.nil?
|
240
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
241
241
|
end
|
242
242
|
|
243
243
|
if @updated_at.nil?
|
244
244
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
245
245
|
end
|
246
246
|
|
247
|
-
if @
|
248
|
-
invalid_properties.push('invalid value for "
|
249
|
-
end
|
250
|
-
|
251
|
-
if @user_id.nil?
|
252
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
247
|
+
if @created_at.nil?
|
248
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
253
249
|
end
|
254
250
|
|
255
251
|
if @to.nil?
|
@@ -260,6 +256,10 @@ module MailSlurpClient
|
|
260
256
|
invalid_properties.push('invalid value for "has_attachments", has_attachments cannot be nil.')
|
261
257
|
end
|
262
258
|
|
259
|
+
if @unread.nil?
|
260
|
+
invalid_properties.push('invalid value for "unread", unread cannot be nil.')
|
261
|
+
end
|
262
|
+
|
263
263
|
if @message_count.nil?
|
264
264
|
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
265
265
|
end
|
@@ -274,12 +274,12 @@ module MailSlurpClient
|
|
274
274
|
# Check to see if the all the properties in the model are valid
|
275
275
|
# @return true if the model is valid
|
276
276
|
def valid?
|
277
|
-
return false if @created_at.nil?
|
278
|
-
return false if @updated_at.nil?
|
279
|
-
return false if @unread.nil?
|
280
277
|
return false if @user_id.nil?
|
278
|
+
return false if @updated_at.nil?
|
279
|
+
return false if @created_at.nil?
|
281
280
|
return false if @to.nil?
|
282
281
|
return false if @has_attachments.nil?
|
282
|
+
return false if @unread.nil?
|
283
283
|
return false if @message_count.nil?
|
284
284
|
return false if @id.nil?
|
285
285
|
true
|
@@ -290,24 +290,24 @@ module MailSlurpClient
|
|
290
290
|
def ==(o)
|
291
291
|
return true if self.equal?(o)
|
292
292
|
self.class == o.class &&
|
293
|
-
subject == o.subject &&
|
294
|
-
created_at == o.created_at &&
|
295
|
-
updated_at == o.updated_at &&
|
296
|
-
unread == o.unread &&
|
297
293
|
sender == o.sender &&
|
298
294
|
recipients == o.recipients &&
|
299
295
|
user_id == o.user_id &&
|
300
296
|
inbox_id == o.inbox_id &&
|
297
|
+
updated_at == o.updated_at &&
|
298
|
+
created_at == o.created_at &&
|
301
299
|
to == o.to &&
|
302
300
|
cc == o.cc &&
|
303
301
|
bcc == o.bcc &&
|
304
302
|
has_attachments == o.has_attachments &&
|
303
|
+
unread == o.unread &&
|
305
304
|
message_count == o.message_count &&
|
306
305
|
last_body_excerpt == o.last_body_excerpt &&
|
307
306
|
last_text_excerpt == o.last_text_excerpt &&
|
308
307
|
last_created_at == o.last_created_at &&
|
309
308
|
last_from == o.last_from &&
|
310
309
|
last_sender == o.last_sender &&
|
310
|
+
subject == o.subject &&
|
311
311
|
id == o.id &&
|
312
312
|
from == o.from
|
313
313
|
end
|
@@ -321,7 +321,7 @@ module MailSlurpClient
|
|
321
321
|
# Calculates hash code according to all attributes.
|
322
322
|
# @return [Integer] Hash code
|
323
323
|
def hash
|
324
|
-
[
|
324
|
+
[sender, recipients, user_id, inbox_id, updated_at, created_at, to, cc, bcc, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender, subject, id, from].hash
|
325
325
|
end
|
326
326
|
|
327
327
|
# Builds the object from hash
|
@@ -246,7 +246,7 @@ module MailSlurpClient
|
|
246
246
|
return false if @region.nil?
|
247
247
|
return false if @postal_code.nil?
|
248
248
|
return false if @phone_country.nil?
|
249
|
-
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
249
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
|
250
250
|
return false unless phone_country_validator.valid?(@phone_country)
|
251
251
|
return false if @account_sid.nil?
|
252
252
|
return false if @created_at.nil?
|
@@ -257,7 +257,7 @@ module MailSlurpClient
|
|
257
257
|
# Custom attribute writer method checking allowed values (enum).
|
258
258
|
# @param [Object] phone_country Object to be assigned
|
259
259
|
def phone_country=(phone_country)
|
260
|
-
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
260
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
|
261
261
|
unless validator.valid?(phone_country)
|
262
262
|
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
263
263
|
end
|
@@ -119,7 +119,7 @@ module MailSlurpClient
|
|
119
119
|
return false if @id.nil?
|
120
120
|
return false if @address1.nil?
|
121
121
|
return false if @phone_country.nil?
|
122
|
-
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
122
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
|
123
123
|
return false unless phone_country_validator.valid?(@phone_country)
|
124
124
|
true
|
125
125
|
end
|
@@ -127,7 +127,7 @@ module MailSlurpClient
|
|
127
127
|
# Custom attribute writer method checking allowed values (enum).
|
128
128
|
# @param [Object] phone_country Object to be assigned
|
129
129
|
def phone_country=(phone_country)
|
130
|
-
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
130
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
|
131
131
|
unless validator.valid?(phone_country)
|
132
132
|
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
133
133
|
end
|