sendmux-mailbox 2.0.0 → 2.0.2
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/CHANGELOG.md +39 -0
- data/lib/sendmux/mailbox/version.rb +1 -1
- data/lib/sendmux_mailbox_generated/models/mailbox_me.rb +14 -21
- data/lib/sendmux_mailbox_generated/models/mailbox_message.rb +145 -35
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response.rb +1 -1
- data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response.rb +1 -1
- data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message.rb +43 -49
- data/lib/sendmux_mailbox_generated/models/{mailbox_realtime_message_all_of_body.rb → mailbox_realtime_message_body.rb} +3 -3
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope.rb +1 -1
- data/lib/sendmux_mailbox_generated/models/mailbox_thread.rb +32 -39
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response.rb +1 -1
- data/lib/sendmux_mailbox_generated.rb +15 -6
- metadata +3 -8
- data/lib/sendmux_mailbox_generated/models/mailbox.rb +0 -284
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response_all_of_data.rb +0 -355
- data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response_all_of_data.rb +0 -286
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_rcpt_to_inner.rb +0 -185
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of_data.rb +0 -355
|
@@ -15,10 +15,13 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Sendmux::Mailbox::Generated
|
|
17
17
|
class MailboxRealtimeMessage < ApiModelBase
|
|
18
|
+
# Attachment metadata for this message. Each item includes a short-lived `download_url`; if it expires, fetch message metadata again.
|
|
18
19
|
attr_accessor :attachments
|
|
19
20
|
|
|
20
21
|
attr_accessor :bcc
|
|
21
22
|
|
|
23
|
+
attr_accessor :body
|
|
24
|
+
|
|
22
25
|
attr_accessor :cc
|
|
23
26
|
|
|
24
27
|
attr_accessor :flags
|
|
@@ -39,6 +42,8 @@ module Sendmux::Mailbox::Generated
|
|
|
39
42
|
|
|
40
43
|
attr_accessor :received_at
|
|
41
44
|
|
|
45
|
+
attr_accessor :rfc5322_message_id
|
|
46
|
+
|
|
42
47
|
attr_accessor :sent_at
|
|
43
48
|
|
|
44
49
|
attr_accessor :size_bytes
|
|
@@ -49,15 +54,12 @@ module Sendmux::Mailbox::Generated
|
|
|
49
54
|
|
|
50
55
|
attr_accessor :to
|
|
51
56
|
|
|
52
|
-
attr_accessor :body
|
|
53
|
-
|
|
54
|
-
attr_accessor :rfc5322_message_id
|
|
55
|
-
|
|
56
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
58
|
def self.attribute_map
|
|
58
59
|
{
|
|
59
60
|
:'attachments' => :'attachments',
|
|
60
61
|
:'bcc' => :'bcc',
|
|
62
|
+
:'body' => :'body',
|
|
61
63
|
:'cc' => :'cc',
|
|
62
64
|
:'flags' => :'flags',
|
|
63
65
|
:'folder_ids' => :'folder_ids',
|
|
@@ -67,13 +69,12 @@ module Sendmux::Mailbox::Generated
|
|
|
67
69
|
:'keywords' => :'keywords',
|
|
68
70
|
:'preview' => :'preview',
|
|
69
71
|
:'received_at' => :'received_at',
|
|
72
|
+
:'rfc5322_message_id' => :'rfc5322_message_id',
|
|
70
73
|
:'sent_at' => :'sent_at',
|
|
71
74
|
:'size_bytes' => :'size_bytes',
|
|
72
75
|
:'subject' => :'subject',
|
|
73
76
|
:'thread_id' => :'thread_id',
|
|
74
|
-
:'to' => :'to'
|
|
75
|
-
:'body' => :'body',
|
|
76
|
-
:'rfc5322_message_id' => :'rfc5322_message_id'
|
|
77
|
+
:'to' => :'to'
|
|
77
78
|
}
|
|
78
79
|
end
|
|
79
80
|
|
|
@@ -92,6 +93,7 @@ module Sendmux::Mailbox::Generated
|
|
|
92
93
|
{
|
|
93
94
|
:'attachments' => :'Array<MailboxAttachment>',
|
|
94
95
|
:'bcc' => :'Array<MailboxAddress>',
|
|
96
|
+
:'body' => :'MailboxRealtimeMessageBody',
|
|
95
97
|
:'cc' => :'Array<MailboxAddress>',
|
|
96
98
|
:'flags' => :'MailboxMessageFlags',
|
|
97
99
|
:'folder_ids' => :'Array<String>',
|
|
@@ -101,13 +103,12 @@ module Sendmux::Mailbox::Generated
|
|
|
101
103
|
:'keywords' => :'Array<String>',
|
|
102
104
|
:'preview' => :'String',
|
|
103
105
|
:'received_at' => :'String',
|
|
106
|
+
:'rfc5322_message_id' => :'String',
|
|
104
107
|
:'sent_at' => :'String',
|
|
105
108
|
:'size_bytes' => :'Integer',
|
|
106
109
|
:'subject' => :'String',
|
|
107
110
|
:'thread_id' => :'String',
|
|
108
|
-
:'to' => :'Array<MailboxAddress>'
|
|
109
|
-
:'body' => :'MailboxRealtimeMessageAllOfBody',
|
|
110
|
-
:'rfc5322_message_id' => :'String'
|
|
111
|
+
:'to' => :'Array<MailboxAddress>'
|
|
111
112
|
}
|
|
112
113
|
end
|
|
113
114
|
|
|
@@ -117,21 +118,14 @@ module Sendmux::Mailbox::Generated
|
|
|
117
118
|
:'from',
|
|
118
119
|
:'preview',
|
|
119
120
|
:'received_at',
|
|
121
|
+
:'rfc5322_message_id',
|
|
120
122
|
:'sent_at',
|
|
121
123
|
:'size_bytes',
|
|
122
124
|
:'subject',
|
|
123
125
|
:'thread_id',
|
|
124
|
-
:'rfc5322_message_id'
|
|
125
126
|
])
|
|
126
127
|
end
|
|
127
128
|
|
|
128
|
-
# List of class defined in allOf (OpenAPI v3)
|
|
129
|
-
def self.openapi_all_of
|
|
130
|
-
[
|
|
131
|
-
:'MailboxMessageSummary'
|
|
132
|
-
]
|
|
133
|
-
end
|
|
134
|
-
|
|
135
129
|
# Initializes the object
|
|
136
130
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
131
|
def initialize(attributes = {})
|
|
@@ -162,6 +156,12 @@ module Sendmux::Mailbox::Generated
|
|
|
162
156
|
self.bcc = nil
|
|
163
157
|
end
|
|
164
158
|
|
|
159
|
+
if attributes.key?(:'body')
|
|
160
|
+
self.body = attributes[:'body']
|
|
161
|
+
else
|
|
162
|
+
self.body = nil
|
|
163
|
+
end
|
|
164
|
+
|
|
165
165
|
if attributes.key?(:'cc')
|
|
166
166
|
if (value = attributes[:'cc']).is_a?(Array)
|
|
167
167
|
self.cc = value
|
|
@@ -222,6 +222,12 @@ module Sendmux::Mailbox::Generated
|
|
|
222
222
|
self.received_at = nil
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
+
if attributes.key?(:'rfc5322_message_id')
|
|
226
|
+
self.rfc5322_message_id = attributes[:'rfc5322_message_id']
|
|
227
|
+
else
|
|
228
|
+
self.rfc5322_message_id = nil
|
|
229
|
+
end
|
|
230
|
+
|
|
225
231
|
if attributes.key?(:'sent_at')
|
|
226
232
|
self.sent_at = attributes[:'sent_at']
|
|
227
233
|
else
|
|
@@ -253,18 +259,6 @@ module Sendmux::Mailbox::Generated
|
|
|
253
259
|
else
|
|
254
260
|
self.to = nil
|
|
255
261
|
end
|
|
256
|
-
|
|
257
|
-
if attributes.key?(:'body')
|
|
258
|
-
self.body = attributes[:'body']
|
|
259
|
-
else
|
|
260
|
-
self.body = nil
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
if attributes.key?(:'rfc5322_message_id')
|
|
264
|
-
self.rfc5322_message_id = attributes[:'rfc5322_message_id']
|
|
265
|
-
else
|
|
266
|
-
self.rfc5322_message_id = nil
|
|
267
|
-
end
|
|
268
262
|
end
|
|
269
263
|
|
|
270
264
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -276,6 +270,10 @@ module Sendmux::Mailbox::Generated
|
|
|
276
270
|
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
|
277
271
|
end
|
|
278
272
|
|
|
273
|
+
if @body.nil?
|
|
274
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
|
275
|
+
end
|
|
276
|
+
|
|
279
277
|
if @cc.nil?
|
|
280
278
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
|
281
279
|
end
|
|
@@ -304,10 +302,6 @@ module Sendmux::Mailbox::Generated
|
|
|
304
302
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
305
303
|
end
|
|
306
304
|
|
|
307
|
-
if @body.nil?
|
|
308
|
-
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
|
309
|
-
end
|
|
310
|
-
|
|
311
305
|
invalid_properties
|
|
312
306
|
end
|
|
313
307
|
|
|
@@ -316,6 +310,7 @@ module Sendmux::Mailbox::Generated
|
|
|
316
310
|
def valid?
|
|
317
311
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
318
312
|
return false if @bcc.nil?
|
|
313
|
+
return false if @body.nil?
|
|
319
314
|
return false if @cc.nil?
|
|
320
315
|
return false if @flags.nil?
|
|
321
316
|
return false if @folder_ids.nil?
|
|
@@ -323,7 +318,6 @@ module Sendmux::Mailbox::Generated
|
|
|
323
318
|
return false if @id.nil?
|
|
324
319
|
return false if @keywords.nil?
|
|
325
320
|
return false if @to.nil?
|
|
326
|
-
return false if @body.nil?
|
|
327
321
|
true
|
|
328
322
|
end
|
|
329
323
|
|
|
@@ -337,6 +331,16 @@ module Sendmux::Mailbox::Generated
|
|
|
337
331
|
@bcc = bcc
|
|
338
332
|
end
|
|
339
333
|
|
|
334
|
+
# Custom attribute writer method with validation
|
|
335
|
+
# @param [Object] body Value to be assigned
|
|
336
|
+
def body=(body)
|
|
337
|
+
if body.nil?
|
|
338
|
+
fail ArgumentError, 'body cannot be nil'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@body = body
|
|
342
|
+
end
|
|
343
|
+
|
|
340
344
|
# Custom attribute writer method with validation
|
|
341
345
|
# @param [Object] cc Value to be assigned
|
|
342
346
|
def cc=(cc)
|
|
@@ -407,16 +411,6 @@ module Sendmux::Mailbox::Generated
|
|
|
407
411
|
@to = to
|
|
408
412
|
end
|
|
409
413
|
|
|
410
|
-
# Custom attribute writer method with validation
|
|
411
|
-
# @param [Object] body Value to be assigned
|
|
412
|
-
def body=(body)
|
|
413
|
-
if body.nil?
|
|
414
|
-
fail ArgumentError, 'body cannot be nil'
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
@body = body
|
|
418
|
-
end
|
|
419
|
-
|
|
420
414
|
# Checks equality by comparing each attribute.
|
|
421
415
|
# @param [Object] Object to be compared
|
|
422
416
|
def ==(o)
|
|
@@ -424,6 +418,7 @@ module Sendmux::Mailbox::Generated
|
|
|
424
418
|
self.class == o.class &&
|
|
425
419
|
attachments == o.attachments &&
|
|
426
420
|
bcc == o.bcc &&
|
|
421
|
+
body == o.body &&
|
|
427
422
|
cc == o.cc &&
|
|
428
423
|
flags == o.flags &&
|
|
429
424
|
folder_ids == o.folder_ids &&
|
|
@@ -433,13 +428,12 @@ module Sendmux::Mailbox::Generated
|
|
|
433
428
|
keywords == o.keywords &&
|
|
434
429
|
preview == o.preview &&
|
|
435
430
|
received_at == o.received_at &&
|
|
431
|
+
rfc5322_message_id == o.rfc5322_message_id &&
|
|
436
432
|
sent_at == o.sent_at &&
|
|
437
433
|
size_bytes == o.size_bytes &&
|
|
438
434
|
subject == o.subject &&
|
|
439
435
|
thread_id == o.thread_id &&
|
|
440
|
-
to == o.to
|
|
441
|
-
body == o.body &&
|
|
442
|
-
rfc5322_message_id == o.rfc5322_message_id
|
|
436
|
+
to == o.to
|
|
443
437
|
end
|
|
444
438
|
|
|
445
439
|
# @see the `==` method
|
|
@@ -451,7 +445,7 @@ module Sendmux::Mailbox::Generated
|
|
|
451
445
|
# Calculates hash code according to all attributes.
|
|
452
446
|
# @return [Integer] Hash code
|
|
453
447
|
def hash
|
|
454
|
-
[attachments, bcc, cc, flags, folder_ids, from, has_attachments, id, keywords, preview, received_at, sent_at, size_bytes, subject, thread_id, to
|
|
448
|
+
[attachments, bcc, body, cc, flags, folder_ids, from, has_attachments, id, keywords, preview, received_at, rfc5322_message_id, sent_at, size_bytes, subject, thread_id, to].hash
|
|
455
449
|
end
|
|
456
450
|
|
|
457
451
|
# Builds the object from hash
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Sendmux::Mailbox::Generated
|
|
17
|
-
class
|
|
17
|
+
class MailboxRealtimeMessageBody < ApiModelBase
|
|
18
18
|
attr_accessor :html
|
|
19
19
|
|
|
20
20
|
attr_accessor :is_truncated
|
|
@@ -65,14 +65,14 @@ module Sendmux::Mailbox::Generated
|
|
|
65
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
66
|
def initialize(attributes = {})
|
|
67
67
|
if (!attributes.is_a?(Hash))
|
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Mailbox::Generated::
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Mailbox::Generated::MailboxRealtimeMessageBody` initialize method"
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
72
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
74
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Mailbox::Generated::
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Mailbox::Generated::MailboxRealtimeMessageBody`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
76
|
end
|
|
77
77
|
h[k.to_sym] = v
|
|
78
78
|
}
|
|
@@ -41,7 +41,7 @@ module Sendmux::Mailbox::Generated
|
|
|
41
41
|
def self.openapi_types
|
|
42
42
|
{
|
|
43
43
|
:'mail_from' => :'MailboxSubmissionEnvelopeAddress',
|
|
44
|
-
:'rcpt_to' => :'Array<
|
|
44
|
+
:'rcpt_to' => :'Array<MailboxSubmissionEnvelopeAddress>'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -26,6 +26,8 @@ module Sendmux::Mailbox::Generated
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :message_count
|
|
28
28
|
|
|
29
|
+
attr_accessor :message_ids
|
|
30
|
+
|
|
29
31
|
attr_accessor :participants
|
|
30
32
|
|
|
31
33
|
attr_accessor :states
|
|
@@ -34,8 +36,6 @@ module Sendmux::Mailbox::Generated
|
|
|
34
36
|
|
|
35
37
|
attr_accessor :unread_count
|
|
36
38
|
|
|
37
|
-
attr_accessor :message_ids
|
|
38
|
-
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
40
|
def self.attribute_map
|
|
41
41
|
{
|
|
@@ -44,11 +44,11 @@ module Sendmux::Mailbox::Generated
|
|
|
44
44
|
:'id' => :'id',
|
|
45
45
|
:'last_message' => :'last_message',
|
|
46
46
|
:'message_count' => :'message_count',
|
|
47
|
+
:'message_ids' => :'message_ids',
|
|
47
48
|
:'participants' => :'participants',
|
|
48
49
|
:'states' => :'states',
|
|
49
50
|
:'subject' => :'subject',
|
|
50
|
-
:'unread_count' => :'unread_count'
|
|
51
|
-
:'message_ids' => :'message_ids'
|
|
51
|
+
:'unread_count' => :'unread_count'
|
|
52
52
|
}
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -70,11 +70,11 @@ module Sendmux::Mailbox::Generated
|
|
|
70
70
|
:'id' => :'String',
|
|
71
71
|
:'last_message' => :'MailboxMessageSummary',
|
|
72
72
|
:'message_count' => :'Integer',
|
|
73
|
+
:'message_ids' => :'Array<String>',
|
|
73
74
|
:'participants' => :'Array<MailboxAddress>',
|
|
74
75
|
:'states' => :'MailboxThreadSummaryStates',
|
|
75
76
|
:'subject' => :'String',
|
|
76
|
-
:'unread_count' => :'Integer'
|
|
77
|
-
:'message_ids' => :'Array<String>'
|
|
77
|
+
:'unread_count' => :'Integer'
|
|
78
78
|
}
|
|
79
79
|
end
|
|
80
80
|
|
|
@@ -86,13 +86,6 @@ module Sendmux::Mailbox::Generated
|
|
|
86
86
|
])
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
# List of class defined in allOf (OpenAPI v3)
|
|
90
|
-
def self.openapi_all_of
|
|
91
|
-
[
|
|
92
|
-
:'MailboxThreadSummary'
|
|
93
|
-
]
|
|
94
|
-
end
|
|
95
|
-
|
|
96
89
|
# Initializes the object
|
|
97
90
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
98
91
|
def initialize(attributes = {})
|
|
@@ -141,6 +134,14 @@ module Sendmux::Mailbox::Generated
|
|
|
141
134
|
self.message_count = nil
|
|
142
135
|
end
|
|
143
136
|
|
|
137
|
+
if attributes.key?(:'message_ids')
|
|
138
|
+
if (value = attributes[:'message_ids']).is_a?(Array)
|
|
139
|
+
self.message_ids = value
|
|
140
|
+
end
|
|
141
|
+
else
|
|
142
|
+
self.message_ids = nil
|
|
143
|
+
end
|
|
144
|
+
|
|
144
145
|
if attributes.key?(:'participants')
|
|
145
146
|
if (value = attributes[:'participants']).is_a?(Array)
|
|
146
147
|
self.participants = value
|
|
@@ -166,14 +167,6 @@ module Sendmux::Mailbox::Generated
|
|
|
166
167
|
else
|
|
167
168
|
self.unread_count = nil
|
|
168
169
|
end
|
|
169
|
-
|
|
170
|
-
if attributes.key?(:'message_ids')
|
|
171
|
-
if (value = attributes[:'message_ids']).is_a?(Array)
|
|
172
|
-
self.message_ids = value
|
|
173
|
-
end
|
|
174
|
-
else
|
|
175
|
-
self.message_ids = nil
|
|
176
|
-
end
|
|
177
170
|
end
|
|
178
171
|
|
|
179
172
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -197,6 +190,10 @@ module Sendmux::Mailbox::Generated
|
|
|
197
190
|
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
|
198
191
|
end
|
|
199
192
|
|
|
193
|
+
if @message_ids.nil?
|
|
194
|
+
invalid_properties.push('invalid value for "message_ids", message_ids cannot be nil.')
|
|
195
|
+
end
|
|
196
|
+
|
|
200
197
|
if @participants.nil?
|
|
201
198
|
invalid_properties.push('invalid value for "participants", participants cannot be nil.')
|
|
202
199
|
end
|
|
@@ -209,10 +206,6 @@ module Sendmux::Mailbox::Generated
|
|
|
209
206
|
invalid_properties.push('invalid value for "unread_count", unread_count cannot be nil.')
|
|
210
207
|
end
|
|
211
208
|
|
|
212
|
-
if @message_ids.nil?
|
|
213
|
-
invalid_properties.push('invalid value for "message_ids", message_ids cannot be nil.')
|
|
214
|
-
end
|
|
215
|
-
|
|
216
209
|
invalid_properties
|
|
217
210
|
end
|
|
218
211
|
|
|
@@ -224,10 +217,10 @@ module Sendmux::Mailbox::Generated
|
|
|
224
217
|
return false if @has_attachments.nil?
|
|
225
218
|
return false if @id.nil?
|
|
226
219
|
return false if @message_count.nil?
|
|
220
|
+
return false if @message_ids.nil?
|
|
227
221
|
return false if @participants.nil?
|
|
228
222
|
return false if @states.nil?
|
|
229
223
|
return false if @unread_count.nil?
|
|
230
|
-
return false if @message_ids.nil?
|
|
231
224
|
true
|
|
232
225
|
end
|
|
233
226
|
|
|
@@ -271,6 +264,16 @@ module Sendmux::Mailbox::Generated
|
|
|
271
264
|
@message_count = message_count
|
|
272
265
|
end
|
|
273
266
|
|
|
267
|
+
# Custom attribute writer method with validation
|
|
268
|
+
# @param [Object] message_ids Value to be assigned
|
|
269
|
+
def message_ids=(message_ids)
|
|
270
|
+
if message_ids.nil?
|
|
271
|
+
fail ArgumentError, 'message_ids cannot be nil'
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
@message_ids = message_ids
|
|
275
|
+
end
|
|
276
|
+
|
|
274
277
|
# Custom attribute writer method with validation
|
|
275
278
|
# @param [Object] participants Value to be assigned
|
|
276
279
|
def participants=(participants)
|
|
@@ -301,16 +304,6 @@ module Sendmux::Mailbox::Generated
|
|
|
301
304
|
@unread_count = unread_count
|
|
302
305
|
end
|
|
303
306
|
|
|
304
|
-
# Custom attribute writer method with validation
|
|
305
|
-
# @param [Object] message_ids Value to be assigned
|
|
306
|
-
def message_ids=(message_ids)
|
|
307
|
-
if message_ids.nil?
|
|
308
|
-
fail ArgumentError, 'message_ids cannot be nil'
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
@message_ids = message_ids
|
|
312
|
-
end
|
|
313
|
-
|
|
314
307
|
# Checks equality by comparing each attribute.
|
|
315
308
|
# @param [Object] Object to be compared
|
|
316
309
|
def ==(o)
|
|
@@ -321,11 +314,11 @@ module Sendmux::Mailbox::Generated
|
|
|
321
314
|
id == o.id &&
|
|
322
315
|
last_message == o.last_message &&
|
|
323
316
|
message_count == o.message_count &&
|
|
317
|
+
message_ids == o.message_ids &&
|
|
324
318
|
participants == o.participants &&
|
|
325
319
|
states == o.states &&
|
|
326
320
|
subject == o.subject &&
|
|
327
|
-
unread_count == o.unread_count
|
|
328
|
-
message_ids == o.message_ids
|
|
321
|
+
unread_count == o.unread_count
|
|
329
322
|
end
|
|
330
323
|
|
|
331
324
|
# @see the `==` method
|
|
@@ -337,7 +330,7 @@ module Sendmux::Mailbox::Generated
|
|
|
337
330
|
# Calculates hash code according to all attributes.
|
|
338
331
|
# @return [Integer] Hash code
|
|
339
332
|
def hash
|
|
340
|
-
[folder_ids, has_attachments, id, last_message, message_count, participants, states, subject, unread_count
|
|
333
|
+
[folder_ids, has_attachments, id, last_message, message_count, message_ids, participants, states, subject, unread_count].hash
|
|
341
334
|
end
|
|
342
335
|
|
|
343
336
|
# Builds the object from hash
|
|
@@ -48,7 +48,7 @@ module Sendmux::Mailbox::Generated
|
|
|
48
48
|
{
|
|
49
49
|
:'meta' => :'MailboxThreadContentMeta',
|
|
50
50
|
:'ok' => :'Boolean',
|
|
51
|
-
:'data' => :'Array<
|
|
51
|
+
:'data' => :'Array<MailboxMessageContent>',
|
|
52
52
|
:'pagination' => :'CursorPagination'
|
|
53
53
|
}
|
|
54
54
|
end
|
|
@@ -33,7 +33,6 @@ require 'sendmux_mailbox_generated/models/create_mailbox_folder_body'
|
|
|
33
33
|
require 'sendmux_mailbox_generated/models/cursor_pagination'
|
|
34
34
|
require 'sendmux_mailbox_generated/models/granted_mailbox'
|
|
35
35
|
require 'sendmux_mailbox_generated/models/granted_mailbox_list_response'
|
|
36
|
-
require 'sendmux_mailbox_generated/models/mailbox'
|
|
37
36
|
require 'sendmux_mailbox_generated/models/mailbox_address'
|
|
38
37
|
require 'sendmux_mailbox_generated/models/mailbox_attachment'
|
|
39
38
|
require 'sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_body'
|
|
@@ -79,7 +78,6 @@ require 'sendmux_mailbox_generated/models/mailbox_message_content_body'
|
|
|
79
78
|
require 'sendmux_mailbox_generated/models/mailbox_message_content_dates'
|
|
80
79
|
require 'sendmux_mailbox_generated/models/mailbox_message_content_participants'
|
|
81
80
|
require 'sendmux_mailbox_generated/models/mailbox_message_content_response'
|
|
82
|
-
require 'sendmux_mailbox_generated/models/mailbox_message_content_response_all_of_data'
|
|
83
81
|
require 'sendmux_mailbox_generated/models/mailbox_message_content_states'
|
|
84
82
|
require 'sendmux_mailbox_generated/models/mailbox_message_count'
|
|
85
83
|
require 'sendmux_mailbox_generated/models/mailbox_message_count_response'
|
|
@@ -96,10 +94,9 @@ require 'sendmux_mailbox_generated/models/mailbox_quota_cursor_list_response'
|
|
|
96
94
|
require 'sendmux_mailbox_generated/models/mailbox_raw_body'
|
|
97
95
|
require 'sendmux_mailbox_generated/models/mailbox_raw_body_body'
|
|
98
96
|
require 'sendmux_mailbox_generated/models/mailbox_raw_body_response'
|
|
99
|
-
require 'sendmux_mailbox_generated/models/mailbox_raw_body_response_all_of_data'
|
|
100
97
|
require 'sendmux_mailbox_generated/models/mailbox_realtime_event'
|
|
101
98
|
require 'sendmux_mailbox_generated/models/mailbox_realtime_message'
|
|
102
|
-
require 'sendmux_mailbox_generated/models/
|
|
99
|
+
require 'sendmux_mailbox_generated/models/mailbox_realtime_message_body'
|
|
103
100
|
require 'sendmux_mailbox_generated/models/mailbox_search_snippet'
|
|
104
101
|
require 'sendmux_mailbox_generated/models/mailbox_search_snippets_result'
|
|
105
102
|
require 'sendmux_mailbox_generated/models/mailbox_search_snippets_result_response'
|
|
@@ -126,14 +123,12 @@ require 'sendmux_mailbox_generated/models/mailbox_submission_cursor_list_respons
|
|
|
126
123
|
require 'sendmux_mailbox_generated/models/mailbox_submission_delivery_status'
|
|
127
124
|
require 'sendmux_mailbox_generated/models/mailbox_submission_envelope'
|
|
128
125
|
require 'sendmux_mailbox_generated/models/mailbox_submission_envelope_address'
|
|
129
|
-
require 'sendmux_mailbox_generated/models/mailbox_submission_envelope_rcpt_to_inner'
|
|
130
126
|
require 'sendmux_mailbox_generated/models/mailbox_submission_response'
|
|
131
127
|
require 'sendmux_mailbox_generated/models/mailbox_sync_meta'
|
|
132
128
|
require 'sendmux_mailbox_generated/models/mailbox_thread'
|
|
133
129
|
require 'sendmux_mailbox_generated/models/mailbox_thread_content_meta'
|
|
134
130
|
require 'sendmux_mailbox_generated/models/mailbox_thread_content_meta_states'
|
|
135
131
|
require 'sendmux_mailbox_generated/models/mailbox_thread_content_response'
|
|
136
|
-
require 'sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of_data'
|
|
137
132
|
require 'sendmux_mailbox_generated/models/mailbox_thread_detail_response'
|
|
138
133
|
require 'sendmux_mailbox_generated/models/mailbox_thread_message_summary_cursor_list_response'
|
|
139
134
|
require 'sendmux_mailbox_generated/models/mailbox_thread_messages_meta'
|
|
@@ -178,3 +173,17 @@ module Sendmux::Mailbox::Generated
|
|
|
178
173
|
end
|
|
179
174
|
end
|
|
180
175
|
end
|
|
176
|
+
|
|
177
|
+
module Sendmux::Mailbox::Generated
|
|
178
|
+
# Deprecated model constants kept as aliases of their replacements until the next major release.
|
|
179
|
+
MailboxRealtimeMessageAllOfBody = MailboxRealtimeMessageBody
|
|
180
|
+
deprecate_constant :MailboxRealtimeMessageAllOfBody
|
|
181
|
+
MailboxMessageContentResponseAllOfData = MailboxMessageContent
|
|
182
|
+
deprecate_constant :MailboxMessageContentResponseAllOfData
|
|
183
|
+
MailboxRawBodyResponseAllOfData = MailboxRawBody
|
|
184
|
+
deprecate_constant :MailboxRawBodyResponseAllOfData
|
|
185
|
+
MailboxSubmissionEnvelopeRcptToInner = MailboxSubmissionEnvelopeAddress
|
|
186
|
+
deprecate_constant :MailboxSubmissionEnvelopeRcptToInner
|
|
187
|
+
MailboxThreadContentResponseAllOfData = MailboxMessageContent
|
|
188
|
+
deprecate_constant :MailboxThreadContentResponseAllOfData
|
|
189
|
+
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sendmux-mailbox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sendmux
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-09-
|
|
10
|
+
date: 2026-09-21 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: faraday
|
|
@@ -124,7 +124,6 @@ files:
|
|
|
124
124
|
- lib/sendmux_mailbox_generated/models/cursor_pagination.rb
|
|
125
125
|
- lib/sendmux_mailbox_generated/models/granted_mailbox.rb
|
|
126
126
|
- lib/sendmux_mailbox_generated/models/granted_mailbox_list_response.rb
|
|
127
|
-
- lib/sendmux_mailbox_generated/models/mailbox.rb
|
|
128
127
|
- lib/sendmux_mailbox_generated/models/mailbox_address.rb
|
|
129
128
|
- lib/sendmux_mailbox_generated/models/mailbox_attachment.rb
|
|
130
129
|
- lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_body.rb
|
|
@@ -170,7 +169,6 @@ files:
|
|
|
170
169
|
- lib/sendmux_mailbox_generated/models/mailbox_message_content_dates.rb
|
|
171
170
|
- lib/sendmux_mailbox_generated/models/mailbox_message_content_participants.rb
|
|
172
171
|
- lib/sendmux_mailbox_generated/models/mailbox_message_content_response.rb
|
|
173
|
-
- lib/sendmux_mailbox_generated/models/mailbox_message_content_response_all_of_data.rb
|
|
174
172
|
- lib/sendmux_mailbox_generated/models/mailbox_message_content_states.rb
|
|
175
173
|
- lib/sendmux_mailbox_generated/models/mailbox_message_count.rb
|
|
176
174
|
- lib/sendmux_mailbox_generated/models/mailbox_message_count_response.rb
|
|
@@ -187,10 +185,9 @@ files:
|
|
|
187
185
|
- lib/sendmux_mailbox_generated/models/mailbox_raw_body.rb
|
|
188
186
|
- lib/sendmux_mailbox_generated/models/mailbox_raw_body_body.rb
|
|
189
187
|
- lib/sendmux_mailbox_generated/models/mailbox_raw_body_response.rb
|
|
190
|
-
- lib/sendmux_mailbox_generated/models/mailbox_raw_body_response_all_of_data.rb
|
|
191
188
|
- lib/sendmux_mailbox_generated/models/mailbox_realtime_event.rb
|
|
192
189
|
- lib/sendmux_mailbox_generated/models/mailbox_realtime_message.rb
|
|
193
|
-
- lib/sendmux_mailbox_generated/models/
|
|
190
|
+
- lib/sendmux_mailbox_generated/models/mailbox_realtime_message_body.rb
|
|
194
191
|
- lib/sendmux_mailbox_generated/models/mailbox_search_snippet.rb
|
|
195
192
|
- lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result.rb
|
|
196
193
|
- lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result_response.rb
|
|
@@ -217,14 +214,12 @@ files:
|
|
|
217
214
|
- lib/sendmux_mailbox_generated/models/mailbox_submission_delivery_status.rb
|
|
218
215
|
- lib/sendmux_mailbox_generated/models/mailbox_submission_envelope.rb
|
|
219
216
|
- lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_address.rb
|
|
220
|
-
- lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_rcpt_to_inner.rb
|
|
221
217
|
- lib/sendmux_mailbox_generated/models/mailbox_submission_response.rb
|
|
222
218
|
- lib/sendmux_mailbox_generated/models/mailbox_sync_meta.rb
|
|
223
219
|
- lib/sendmux_mailbox_generated/models/mailbox_thread.rb
|
|
224
220
|
- lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta.rb
|
|
225
221
|
- lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta_states.rb
|
|
226
222
|
- lib/sendmux_mailbox_generated/models/mailbox_thread_content_response.rb
|
|
227
|
-
- lib/sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of_data.rb
|
|
228
223
|
- lib/sendmux_mailbox_generated/models/mailbox_thread_detail_response.rb
|
|
229
224
|
- lib/sendmux_mailbox_generated/models/mailbox_thread_message_summary_cursor_list_response.rb
|
|
230
225
|
- lib/sendmux_mailbox_generated/models/mailbox_thread_messages_meta.rb
|