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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52fee281288fcc4072f349bbd49dd32d6fb763ce7b77efbf454a58ce0fa63a6b
|
|
4
|
+
data.tar.gz: 1f53099b6fed64ff77e170ec9ede688cb281a4f5635b0f3ad83df58b057a1687
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ae2f5deeca6328c6a2c9b0886d7b99a73538220c347dd046107f8c40d48a6919033e37e2d95fffe57c01efef1608bd994cc384019ead35cd29f323eeede11ea
|
|
7
|
+
data.tar.gz: 39361890506cffbdc10716a6c2ba1013749c831f9ec24806dc35bb4d73a2e073250a5c823bb579338863d8d0c5ab1c68e6d76d4291caee66679364e879410055
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.2](https://github.com/Sendmux/sendmux-sdk/compare/ruby-mailbox/v2.0.1...ruby-mailbox/v2.0.2) (2026-09-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
|
|
8
|
+
* **Regenerated models:** `mailbox_get_message` and `mailbox_update_message` results (`MailboxMessageDetailResponse#data`, a `Sendmux::Mailbox::Generated::MailboxMessage`) now carry `message_id`, `in_reply_to` and `references` (`Array<String>`, angle brackets removed) and `reply_to` (`Array<MailboxAddress>`), matching the deployed app schema; 2.0.1 had no attributes for those four fields, so they were dropped on deserialisation and reply and threading headers were unreachable from the typed result. `mailbox_list_content` returns `data` typed as the canonical `MailboxMessageContent`, `mailbox_get_thread_content` returns `data` typed as `Array<MailboxMessageContent>`, `mailbox_list_body` returns `data` typed as `MailboxRawBody`, and `MailboxSubmissionEnvelope#rcpt_to` (`mailbox_get_submission`, `mailbox_list_submissions`) is `Array<MailboxSubmissionEnvelopeAddress>`, instead of the generator's `…AllOfData` and `…RcptToInner` copies of those classes. The wire format is unchanged, and `from`, `raw_body` and `send_scope` are unchanged. The four new attributes are required, so a `MailboxMessage` you construct yourself (fixtures, mocks, wrappers) must now supply them — assigning `nil` or omitting one raises `ArgumentError` — while reading API results is unaffected ([ea211b7](https://github.com/Sendmux/sendmux-sdk/commit/ea211b70ecc1d22404c441ee5fa0d791c7c14e1d)).
|
|
9
|
+
|
|
10
|
+
### Deprecated
|
|
11
|
+
|
|
12
|
+
* `Sendmux::Mailbox::Generated::MailboxMessageContentResponseAllOfData` and `MailboxThreadContentResponseAllOfData` are now deprecated constants aliasing `MailboxMessageContent`, `MailboxRawBodyResponseAllOfData` aliases `MailboxRawBody`, and `MailboxSubmissionEnvelopeRcptToInner` aliases `MailboxSubmissionEnvelopeAddress`. Referencing an old constant still works and, with `Warning[:deprecated]` enabled (`ruby -W:deprecated`), warns that it is deprecated; the aliases are removed in the next major, 3.0 ([ea211b7](https://github.com/Sendmux/sendmux-sdk/commit/ea211b70ecc1d22404c441ee5fa0d791c7c14e1d)).
|
|
13
|
+
|
|
14
|
+
## Verification behind each claim
|
|
15
|
+
|
|
16
|
+
- Operation → model mapping from `packages/ruby/mailbox/lib/sendmux_mailbox_generated/api/*.rb` at f6629095: `mailbox_get_message`/`mailbox_update_message` → `MailboxMessageDetailResponse` (`data: MailboxMessage`, `models/mailbox_message_detail_response.rb:48`); `mailbox_list_content` → `MailboxMessageContentResponse`; `mailbox_get_thread_content` → `MailboxThreadContentResponse`; `mailbox_list_body` → `MailboxRawBodyResponse`; `mailbox_get_submission`/`mailbox_list_submissions` → `MailboxSubmission#envelope` (`models/mailbox_submission.rb:71`).
|
|
17
|
+
- ea211b7 diff: `models/mailbox_message.rb` +118 (four `attr_accessor`s, `Array<String>`/`Array<MailboxAddress>` types, `cannot be nil` validators and writers); `models/mailbox_thread_content_response.rb` `Array<MailboxThreadContentResponseAllOfData>` → `Array<MailboxMessageContent>`; four `…all_of_data.rb`/`…rcpt_to_inner.rb` files deleted (1190 lines); `sendmux_mailbox_generated.rb` adds the four `deprecate_constant` aliases.
|
|
18
|
+
- Isolated install of the built gem (`.claude/artifacts/l22/ruby-mailbox/smoke.log`): types and aliases as stated, 4 deprecation warnings under `-W:deprecated`, `m.message_id = nil` → `ArgumentError: message_id cannot be nil`, `MailboxMessage.new({})` → `ArgumentError: bcc cannot be nil` (first required attribute in order; the four new ones are required too — `openapi_nullable` excludes them).
|
|
19
|
+
- Published `sendmux-mailbox-2.0.1.gem` vs the candidate: 12 member differences, exactly `CHANGELOG.md`, `version.rb`, the five regenerated models, the loader and the four removed copies (`diff-published-2.0.1-vs-candidate-2.0.2.txt`).
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **ruby-mailbox:** regenerate mailbox models from the deployed v1.8.250 schema ([ea211b7](https://github.com/Sendmux/sendmux-sdk/commit/ea211b70ecc1d22404c441ee5fa0d791c7c14e1d))
|
|
24
|
+
|
|
25
|
+
## [2.0.1](https://github.com/Sendmux/sendmux-sdk/compare/ruby-mailbox/v2.0.0...ruby-mailbox/v2.0.1) (2026-09-20)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Deprecated
|
|
29
|
+
|
|
30
|
+
* `Sendmux::Mailbox::Generated::MailboxRealtimeMessageAllOfBody` is now a deprecated constant aliasing `Sendmux::Mailbox::Generated::MailboxRealtimeMessageBody`, the class of `MailboxRealtimeMessage#body`. Referencing the old constant still works and, with `Warning[:deprecated]` enabled (`ruby -W:deprecated`), warns that it is deprecated; the alias is removed in the next major, 3.0 ([f1108bf](https://github.com/Sendmux/sendmux-sdk/commit/f1108bf40f6c1ff3f3948b49c9ae9dd22b33b3d9)).
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
* Models are regenerated from the deployed flattened response schemas (docs 86b0f45): `MailboxMe`, `MailboxMessage`, `MailboxRealtimeMessage` and `MailboxThread` are flat objects instead of `allOf` compositions and carry the same attributes, so the wire format is unchanged, `MailboxRealtimeMessageBody` is the generated name of the realtime message body, and those four classes no longer define the generator's `openapi_all_of` introspection method. The `Sendmux::Mailbox::Generated::Mailbox` model, which no operation, README, guide or test referenced, is removed without a deprecation period; `mailbox_get_me` keeps returning `MailboxMe`, which carries the same attributes plus `quota_used_bytes` ([9c05be1](https://github.com/Sendmux/sendmux-sdk/commit/9c05be1bdad88fdcbbbeedf174adce01a6a48ae7)).
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* regenerate SDKs from the deployed flattened response schemas (docs 86b0f45) ([628b161](https://github.com/Sendmux/sendmux-sdk/commit/628b161d2692775ac1f4830c1d64c024ba04ed83))
|
|
39
|
+
* **ruby-mailbox:** keep MailboxRealtimeMessageAllOfBody as a deprecated constant ([f1108bf](https://github.com/Sendmux/sendmux-sdk/commit/f1108bf40f6c1ff3f3948b49c9ae9dd22b33b3d9))
|
|
40
|
+
* **ruby-mailbox:** regenerate flattened mailbox response models ([9c05be1](https://github.com/Sendmux/sendmux-sdk/commit/9c05be1bdad88fdcbbbeedf174adce01a6a48ae7))
|
|
41
|
+
|
|
3
42
|
## [2.0.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-mailbox/v1.4.0...ruby-mailbox/v2.0.0) (2026-09-19)
|
|
4
43
|
|
|
5
44
|
### Changed
|
|
@@ -30,14 +30,14 @@ module Sendmux::Mailbox::Generated
|
|
|
30
30
|
# Storage quota in bytes. Current writable tiers are 1 GB, 5 GB, and 50 GB.
|
|
31
31
|
attr_accessor :quota_bytes
|
|
32
32
|
|
|
33
|
+
# Live storage usage in bytes. Omitted when usage is temporarily unavailable.
|
|
34
|
+
attr_accessor :quota_used_bytes
|
|
35
|
+
|
|
33
36
|
attr_accessor :send_scope
|
|
34
37
|
|
|
35
38
|
# active | suspended | deleted
|
|
36
39
|
attr_accessor :status
|
|
37
40
|
|
|
38
|
-
# Live storage usage in bytes. Omitted when usage is temporarily unavailable.
|
|
39
|
-
attr_accessor :quota_used_bytes
|
|
40
|
-
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
@@ -46,9 +46,9 @@ module Sendmux::Mailbox::Generated
|
|
|
46
46
|
:'email' => :'email',
|
|
47
47
|
:'id' => :'id',
|
|
48
48
|
:'quota_bytes' => :'quota_bytes',
|
|
49
|
+
:'quota_used_bytes' => :'quota_used_bytes',
|
|
49
50
|
:'send_scope' => :'send_scope',
|
|
50
|
-
:'status' => :'status'
|
|
51
|
-
:'quota_used_bytes' => :'quota_used_bytes'
|
|
51
|
+
:'status' => :'status'
|
|
52
52
|
}
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -70,9 +70,9 @@ module Sendmux::Mailbox::Generated
|
|
|
70
70
|
:'email' => :'String',
|
|
71
71
|
:'id' => :'String',
|
|
72
72
|
:'quota_bytes' => :'Integer',
|
|
73
|
+
:'quota_used_bytes' => :'Integer',
|
|
73
74
|
:'send_scope' => :'MailboxSendScope',
|
|
74
|
-
:'status' => :'String'
|
|
75
|
-
:'quota_used_bytes' => :'Integer'
|
|
75
|
+
:'status' => :'String'
|
|
76
76
|
}
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -85,13 +85,6 @@ module Sendmux::Mailbox::Generated
|
|
|
85
85
|
])
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
# List of class defined in allOf (OpenAPI v3)
|
|
89
|
-
def self.openapi_all_of
|
|
90
|
-
[
|
|
91
|
-
:'Mailbox'
|
|
92
|
-
]
|
|
93
|
-
end
|
|
94
|
-
|
|
95
88
|
# Initializes the object
|
|
96
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
97
90
|
def initialize(attributes = {})
|
|
@@ -138,6 +131,10 @@ module Sendmux::Mailbox::Generated
|
|
|
138
131
|
self.quota_bytes = nil
|
|
139
132
|
end
|
|
140
133
|
|
|
134
|
+
if attributes.key?(:'quota_used_bytes')
|
|
135
|
+
self.quota_used_bytes = attributes[:'quota_used_bytes']
|
|
136
|
+
end
|
|
137
|
+
|
|
141
138
|
if attributes.key?(:'send_scope')
|
|
142
139
|
self.send_scope = attributes[:'send_scope']
|
|
143
140
|
else
|
|
@@ -149,10 +146,6 @@ module Sendmux::Mailbox::Generated
|
|
|
149
146
|
else
|
|
150
147
|
self.status = nil
|
|
151
148
|
end
|
|
152
|
-
|
|
153
|
-
if attributes.key?(:'quota_used_bytes')
|
|
154
|
-
self.quota_used_bytes = attributes[:'quota_used_bytes']
|
|
155
|
-
end
|
|
156
149
|
end
|
|
157
150
|
|
|
158
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -240,9 +233,9 @@ module Sendmux::Mailbox::Generated
|
|
|
240
233
|
email == o.email &&
|
|
241
234
|
id == o.id &&
|
|
242
235
|
quota_bytes == o.quota_bytes &&
|
|
236
|
+
quota_used_bytes == o.quota_used_bytes &&
|
|
243
237
|
send_scope == o.send_scope &&
|
|
244
|
-
status == o.status
|
|
245
|
-
quota_used_bytes == o.quota_used_bytes
|
|
238
|
+
status == o.status
|
|
246
239
|
end
|
|
247
240
|
|
|
248
241
|
# @see the `==` method
|
|
@@ -254,7 +247,7 @@ module Sendmux::Mailbox::Generated
|
|
|
254
247
|
# Calculates hash code according to all attributes.
|
|
255
248
|
# @return [Integer] Hash code
|
|
256
249
|
def hash
|
|
257
|
-
[created_at, display_name, email, id, quota_bytes, send_scope, status
|
|
250
|
+
[created_at, display_name, email, id, quota_bytes, quota_used_bytes, send_scope, status].hash
|
|
258
251
|
end
|
|
259
252
|
|
|
260
253
|
# Builds the object from hash
|
|
@@ -15,6 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Sendmux::Mailbox::Generated
|
|
17
17
|
class MailboxMessage < 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
|
|
@@ -29,30 +30,42 @@ module Sendmux::Mailbox::Generated
|
|
|
29
30
|
|
|
30
31
|
attr_accessor :has_attachments
|
|
31
32
|
|
|
33
|
+
attr_accessor :html_body
|
|
34
|
+
|
|
32
35
|
# Message ID
|
|
33
36
|
attr_accessor :id
|
|
34
37
|
|
|
38
|
+
# `In-Reply-To` header values, with the surrounding angle brackets removed — the message this one replies to. Empty when the message is not a reply.
|
|
39
|
+
attr_accessor :in_reply_to
|
|
40
|
+
|
|
35
41
|
# Active message keywords, including system flags and custom labels.
|
|
36
42
|
attr_accessor :keywords
|
|
37
43
|
|
|
44
|
+
# `Message-ID` header values for this message, with the surrounding angle brackets removed. Empty when the message carries no `Message-ID`.
|
|
45
|
+
attr_accessor :message_id
|
|
46
|
+
|
|
38
47
|
attr_accessor :preview
|
|
39
48
|
|
|
40
49
|
attr_accessor :received_at
|
|
41
50
|
|
|
51
|
+
# `References` header values, with the surrounding angle brackets removed — the ancestor chain of this message, oldest first. Empty when the message starts a conversation.
|
|
52
|
+
attr_accessor :references
|
|
53
|
+
|
|
54
|
+
# `Reply-To` addresses. Address replies here rather than to `from` whenever this is non-empty. Empty when the message carries no `Reply-To`.
|
|
55
|
+
attr_accessor :reply_to
|
|
56
|
+
|
|
42
57
|
attr_accessor :sent_at
|
|
43
58
|
|
|
44
59
|
attr_accessor :size_bytes
|
|
45
60
|
|
|
46
61
|
attr_accessor :subject
|
|
47
62
|
|
|
63
|
+
attr_accessor :text_body
|
|
64
|
+
|
|
48
65
|
attr_accessor :thread_id
|
|
49
66
|
|
|
50
67
|
attr_accessor :to
|
|
51
68
|
|
|
52
|
-
attr_accessor :html_body
|
|
53
|
-
|
|
54
|
-
attr_accessor :text_body
|
|
55
|
-
|
|
56
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
70
|
def self.attribute_map
|
|
58
71
|
{
|
|
@@ -63,17 +76,21 @@ module Sendmux::Mailbox::Generated
|
|
|
63
76
|
:'folder_ids' => :'folder_ids',
|
|
64
77
|
:'from' => :'from',
|
|
65
78
|
:'has_attachments' => :'has_attachments',
|
|
79
|
+
:'html_body' => :'html_body',
|
|
66
80
|
:'id' => :'id',
|
|
81
|
+
:'in_reply_to' => :'in_reply_to',
|
|
67
82
|
:'keywords' => :'keywords',
|
|
83
|
+
:'message_id' => :'message_id',
|
|
68
84
|
:'preview' => :'preview',
|
|
69
85
|
:'received_at' => :'received_at',
|
|
86
|
+
:'references' => :'references',
|
|
87
|
+
:'reply_to' => :'reply_to',
|
|
70
88
|
:'sent_at' => :'sent_at',
|
|
71
89
|
:'size_bytes' => :'size_bytes',
|
|
72
90
|
:'subject' => :'subject',
|
|
91
|
+
:'text_body' => :'text_body',
|
|
73
92
|
:'thread_id' => :'thread_id',
|
|
74
|
-
:'to' => :'to'
|
|
75
|
-
:'html_body' => :'html_body',
|
|
76
|
-
:'text_body' => :'text_body'
|
|
93
|
+
:'to' => :'to'
|
|
77
94
|
}
|
|
78
95
|
end
|
|
79
96
|
|
|
@@ -97,17 +114,21 @@ module Sendmux::Mailbox::Generated
|
|
|
97
114
|
:'folder_ids' => :'Array<String>',
|
|
98
115
|
:'from' => :'MailboxAddress',
|
|
99
116
|
:'has_attachments' => :'Boolean',
|
|
117
|
+
:'html_body' => :'String',
|
|
100
118
|
:'id' => :'String',
|
|
119
|
+
:'in_reply_to' => :'Array<String>',
|
|
101
120
|
:'keywords' => :'Array<String>',
|
|
121
|
+
:'message_id' => :'Array<String>',
|
|
102
122
|
:'preview' => :'String',
|
|
103
123
|
:'received_at' => :'String',
|
|
124
|
+
:'references' => :'Array<String>',
|
|
125
|
+
:'reply_to' => :'Array<MailboxAddress>',
|
|
104
126
|
:'sent_at' => :'String',
|
|
105
127
|
:'size_bytes' => :'Integer',
|
|
106
128
|
:'subject' => :'String',
|
|
129
|
+
:'text_body' => :'String',
|
|
107
130
|
:'thread_id' => :'String',
|
|
108
|
-
:'to' => :'Array<MailboxAddress>'
|
|
109
|
-
:'html_body' => :'String',
|
|
110
|
-
:'text_body' => :'String'
|
|
131
|
+
:'to' => :'Array<MailboxAddress>'
|
|
111
132
|
}
|
|
112
133
|
end
|
|
113
134
|
|
|
@@ -115,24 +136,17 @@ module Sendmux::Mailbox::Generated
|
|
|
115
136
|
def self.openapi_nullable
|
|
116
137
|
Set.new([
|
|
117
138
|
:'from',
|
|
139
|
+
:'html_body',
|
|
118
140
|
:'preview',
|
|
119
141
|
:'received_at',
|
|
120
142
|
:'sent_at',
|
|
121
143
|
:'size_bytes',
|
|
122
144
|
:'subject',
|
|
145
|
+
:'text_body',
|
|
123
146
|
:'thread_id',
|
|
124
|
-
:'html_body',
|
|
125
|
-
:'text_body'
|
|
126
147
|
])
|
|
127
148
|
end
|
|
128
149
|
|
|
129
|
-
# List of class defined in allOf (OpenAPI v3)
|
|
130
|
-
def self.openapi_all_of
|
|
131
|
-
[
|
|
132
|
-
:'MailboxMessageSummary'
|
|
133
|
-
]
|
|
134
|
-
end
|
|
135
|
-
|
|
136
150
|
# Initializes the object
|
|
137
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
152
|
def initialize(attributes = {})
|
|
@@ -197,12 +211,26 @@ module Sendmux::Mailbox::Generated
|
|
|
197
211
|
self.has_attachments = nil
|
|
198
212
|
end
|
|
199
213
|
|
|
214
|
+
if attributes.key?(:'html_body')
|
|
215
|
+
self.html_body = attributes[:'html_body']
|
|
216
|
+
else
|
|
217
|
+
self.html_body = nil
|
|
218
|
+
end
|
|
219
|
+
|
|
200
220
|
if attributes.key?(:'id')
|
|
201
221
|
self.id = attributes[:'id']
|
|
202
222
|
else
|
|
203
223
|
self.id = nil
|
|
204
224
|
end
|
|
205
225
|
|
|
226
|
+
if attributes.key?(:'in_reply_to')
|
|
227
|
+
if (value = attributes[:'in_reply_to']).is_a?(Array)
|
|
228
|
+
self.in_reply_to = value
|
|
229
|
+
end
|
|
230
|
+
else
|
|
231
|
+
self.in_reply_to = nil
|
|
232
|
+
end
|
|
233
|
+
|
|
206
234
|
if attributes.key?(:'keywords')
|
|
207
235
|
if (value = attributes[:'keywords']).is_a?(Array)
|
|
208
236
|
self.keywords = value
|
|
@@ -211,6 +239,14 @@ module Sendmux::Mailbox::Generated
|
|
|
211
239
|
self.keywords = nil
|
|
212
240
|
end
|
|
213
241
|
|
|
242
|
+
if attributes.key?(:'message_id')
|
|
243
|
+
if (value = attributes[:'message_id']).is_a?(Array)
|
|
244
|
+
self.message_id = value
|
|
245
|
+
end
|
|
246
|
+
else
|
|
247
|
+
self.message_id = nil
|
|
248
|
+
end
|
|
249
|
+
|
|
214
250
|
if attributes.key?(:'preview')
|
|
215
251
|
self.preview = attributes[:'preview']
|
|
216
252
|
else
|
|
@@ -223,6 +259,22 @@ module Sendmux::Mailbox::Generated
|
|
|
223
259
|
self.received_at = nil
|
|
224
260
|
end
|
|
225
261
|
|
|
262
|
+
if attributes.key?(:'references')
|
|
263
|
+
if (value = attributes[:'references']).is_a?(Array)
|
|
264
|
+
self.references = value
|
|
265
|
+
end
|
|
266
|
+
else
|
|
267
|
+
self.references = nil
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'reply_to')
|
|
271
|
+
if (value = attributes[:'reply_to']).is_a?(Array)
|
|
272
|
+
self.reply_to = value
|
|
273
|
+
end
|
|
274
|
+
else
|
|
275
|
+
self.reply_to = nil
|
|
276
|
+
end
|
|
277
|
+
|
|
226
278
|
if attributes.key?(:'sent_at')
|
|
227
279
|
self.sent_at = attributes[:'sent_at']
|
|
228
280
|
else
|
|
@@ -241,6 +293,12 @@ module Sendmux::Mailbox::Generated
|
|
|
241
293
|
self.subject = nil
|
|
242
294
|
end
|
|
243
295
|
|
|
296
|
+
if attributes.key?(:'text_body')
|
|
297
|
+
self.text_body = attributes[:'text_body']
|
|
298
|
+
else
|
|
299
|
+
self.text_body = nil
|
|
300
|
+
end
|
|
301
|
+
|
|
244
302
|
if attributes.key?(:'thread_id')
|
|
245
303
|
self.thread_id = attributes[:'thread_id']
|
|
246
304
|
else
|
|
@@ -254,18 +312,6 @@ module Sendmux::Mailbox::Generated
|
|
|
254
312
|
else
|
|
255
313
|
self.to = nil
|
|
256
314
|
end
|
|
257
|
-
|
|
258
|
-
if attributes.key?(:'html_body')
|
|
259
|
-
self.html_body = attributes[:'html_body']
|
|
260
|
-
else
|
|
261
|
-
self.html_body = nil
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
if attributes.key?(:'text_body')
|
|
265
|
-
self.text_body = attributes[:'text_body']
|
|
266
|
-
else
|
|
267
|
-
self.text_body = nil
|
|
268
|
-
end
|
|
269
315
|
end
|
|
270
316
|
|
|
271
317
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -297,10 +343,26 @@ module Sendmux::Mailbox::Generated
|
|
|
297
343
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
298
344
|
end
|
|
299
345
|
|
|
346
|
+
if @in_reply_to.nil?
|
|
347
|
+
invalid_properties.push('invalid value for "in_reply_to", in_reply_to cannot be nil.')
|
|
348
|
+
end
|
|
349
|
+
|
|
300
350
|
if @keywords.nil?
|
|
301
351
|
invalid_properties.push('invalid value for "keywords", keywords cannot be nil.')
|
|
302
352
|
end
|
|
303
353
|
|
|
354
|
+
if @message_id.nil?
|
|
355
|
+
invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
if @references.nil?
|
|
359
|
+
invalid_properties.push('invalid value for "references", references cannot be nil.')
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
if @reply_to.nil?
|
|
363
|
+
invalid_properties.push('invalid value for "reply_to", reply_to cannot be nil.')
|
|
364
|
+
end
|
|
365
|
+
|
|
304
366
|
if @to.nil?
|
|
305
367
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
306
368
|
end
|
|
@@ -318,7 +380,11 @@ module Sendmux::Mailbox::Generated
|
|
|
318
380
|
return false if @folder_ids.nil?
|
|
319
381
|
return false if @has_attachments.nil?
|
|
320
382
|
return false if @id.nil?
|
|
383
|
+
return false if @in_reply_to.nil?
|
|
321
384
|
return false if @keywords.nil?
|
|
385
|
+
return false if @message_id.nil?
|
|
386
|
+
return false if @references.nil?
|
|
387
|
+
return false if @reply_to.nil?
|
|
322
388
|
return false if @to.nil?
|
|
323
389
|
true
|
|
324
390
|
end
|
|
@@ -383,6 +449,16 @@ module Sendmux::Mailbox::Generated
|
|
|
383
449
|
@id = id
|
|
384
450
|
end
|
|
385
451
|
|
|
452
|
+
# Custom attribute writer method with validation
|
|
453
|
+
# @param [Object] in_reply_to Value to be assigned
|
|
454
|
+
def in_reply_to=(in_reply_to)
|
|
455
|
+
if in_reply_to.nil?
|
|
456
|
+
fail ArgumentError, 'in_reply_to cannot be nil'
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
@in_reply_to = in_reply_to
|
|
460
|
+
end
|
|
461
|
+
|
|
386
462
|
# Custom attribute writer method with validation
|
|
387
463
|
# @param [Object] keywords Value to be assigned
|
|
388
464
|
def keywords=(keywords)
|
|
@@ -393,6 +469,36 @@ module Sendmux::Mailbox::Generated
|
|
|
393
469
|
@keywords = keywords
|
|
394
470
|
end
|
|
395
471
|
|
|
472
|
+
# Custom attribute writer method with validation
|
|
473
|
+
# @param [Object] message_id Value to be assigned
|
|
474
|
+
def message_id=(message_id)
|
|
475
|
+
if message_id.nil?
|
|
476
|
+
fail ArgumentError, 'message_id cannot be nil'
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
@message_id = message_id
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# Custom attribute writer method with validation
|
|
483
|
+
# @param [Object] references Value to be assigned
|
|
484
|
+
def references=(references)
|
|
485
|
+
if references.nil?
|
|
486
|
+
fail ArgumentError, 'references cannot be nil'
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
@references = references
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Custom attribute writer method with validation
|
|
493
|
+
# @param [Object] reply_to Value to be assigned
|
|
494
|
+
def reply_to=(reply_to)
|
|
495
|
+
if reply_to.nil?
|
|
496
|
+
fail ArgumentError, 'reply_to cannot be nil'
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
@reply_to = reply_to
|
|
500
|
+
end
|
|
501
|
+
|
|
396
502
|
# Custom attribute writer method with validation
|
|
397
503
|
# @param [Object] to Value to be assigned
|
|
398
504
|
def to=(to)
|
|
@@ -415,17 +521,21 @@ module Sendmux::Mailbox::Generated
|
|
|
415
521
|
folder_ids == o.folder_ids &&
|
|
416
522
|
from == o.from &&
|
|
417
523
|
has_attachments == o.has_attachments &&
|
|
524
|
+
html_body == o.html_body &&
|
|
418
525
|
id == o.id &&
|
|
526
|
+
in_reply_to == o.in_reply_to &&
|
|
419
527
|
keywords == o.keywords &&
|
|
528
|
+
message_id == o.message_id &&
|
|
420
529
|
preview == o.preview &&
|
|
421
530
|
received_at == o.received_at &&
|
|
531
|
+
references == o.references &&
|
|
532
|
+
reply_to == o.reply_to &&
|
|
422
533
|
sent_at == o.sent_at &&
|
|
423
534
|
size_bytes == o.size_bytes &&
|
|
424
535
|
subject == o.subject &&
|
|
536
|
+
text_body == o.text_body &&
|
|
425
537
|
thread_id == o.thread_id &&
|
|
426
|
-
to == o.to
|
|
427
|
-
html_body == o.html_body &&
|
|
428
|
-
text_body == o.text_body
|
|
538
|
+
to == o.to
|
|
429
539
|
end
|
|
430
540
|
|
|
431
541
|
# @see the `==` method
|
|
@@ -437,7 +547,7 @@ module Sendmux::Mailbox::Generated
|
|
|
437
547
|
# Calculates hash code according to all attributes.
|
|
438
548
|
# @return [Integer] Hash code
|
|
439
549
|
def hash
|
|
440
|
-
[attachments, bcc, cc, flags, folder_ids, from, has_attachments, id, keywords, preview, received_at, sent_at, size_bytes, subject, thread_id, to
|
|
550
|
+
[attachments, bcc, cc, flags, folder_ids, from, has_attachments, html_body, id, in_reply_to, keywords, message_id, preview, received_at, references, reply_to, sent_at, size_bytes, subject, text_body, thread_id, to].hash
|
|
441
551
|
end
|
|
442
552
|
|
|
443
553
|
# Builds the object from hash
|