mailslurp_client 16.2.4 → 16.2.5
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/models/email_projection.rb +11 -11
- data/lib/mailslurp_client/models/email_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/sent_email_projection.rb +11 -11
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c41806a0b062a054c3538d889f03361e7eb608411f2726ce7c206061a2ae2744
|
4
|
+
data.tar.gz: cc60b9a3482fbd168b407f974efc9bea2d1ab3b8fe5eb623249b2bdcfaeb090b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df11fad9308bbd0b467ab380235c83f5d56168e72e3fa0aa00bd70b3d3852be9a54d996fd17be5d917b5d9e9b60f0445f1ac5cbe6bb8b4761ad7707951c886c4
|
7
|
+
data.tar.gz: 7bececcfbfd8d537d75ca8d734886af39c541dc4a10f003e7e3b223e68185a3fbf34ea5fb0c880213a4886e386896d33d47d164cbd484b64b32a29ad65b216ce
|
@@ -15,10 +15,10 @@ 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 :recipients
|
19
|
-
|
20
18
|
attr_accessor :sender
|
21
19
|
|
20
|
+
attr_accessor :recipients
|
21
|
+
|
22
22
|
attr_accessor :attachments
|
23
23
|
|
24
24
|
attr_accessor :inbox_id
|
@@ -66,8 +66,8 @@ module MailSlurpClient
|
|
66
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
67
67
|
def self.attribute_map
|
68
68
|
{
|
69
|
-
:'recipients' => :'recipients',
|
70
69
|
:'sender' => :'sender',
|
70
|
+
:'recipients' => :'recipients',
|
71
71
|
:'attachments' => :'attachments',
|
72
72
|
:'inbox_id' => :'inboxId',
|
73
73
|
:'created_at' => :'createdAt',
|
@@ -96,8 +96,8 @@ module MailSlurpClient
|
|
96
96
|
# Attribute type mapping.
|
97
97
|
def self.openapi_types
|
98
98
|
{
|
99
|
-
:'recipients' => :'EmailRecipients',
|
100
99
|
:'sender' => :'Sender',
|
100
|
+
:'recipients' => :'EmailRecipients',
|
101
101
|
:'attachments' => :'Array<String>',
|
102
102
|
:'inbox_id' => :'String',
|
103
103
|
:'created_at' => :'DateTime',
|
@@ -126,8 +126,8 @@ module MailSlurpClient
|
|
126
126
|
# List of attributes with nullable: true
|
127
127
|
def self.openapi_nullable
|
128
128
|
Set.new([
|
129
|
-
:'recipients',
|
130
129
|
:'sender',
|
130
|
+
:'recipients',
|
131
131
|
:'attachments',
|
132
132
|
:'cc',
|
133
133
|
:'bcc',
|
@@ -162,14 +162,14 @@ module MailSlurpClient
|
|
162
162
|
h[k.to_sym] = v
|
163
163
|
}
|
164
164
|
|
165
|
-
if attributes.key?(:'recipients')
|
166
|
-
self.recipients = attributes[:'recipients']
|
167
|
-
end
|
168
|
-
|
169
165
|
if attributes.key?(:'sender')
|
170
166
|
self.sender = attributes[:'sender']
|
171
167
|
end
|
172
168
|
|
169
|
+
if attributes.key?(:'recipients')
|
170
|
+
self.recipients = attributes[:'recipients']
|
171
|
+
end
|
172
|
+
|
173
173
|
if attributes.key?(:'attachments')
|
174
174
|
if (value = attributes[:'attachments']).is_a?(Array)
|
175
175
|
self.attachments = value
|
@@ -317,8 +317,8 @@ module MailSlurpClient
|
|
317
317
|
def ==(o)
|
318
318
|
return true if self.equal?(o)
|
319
319
|
self.class == o.class &&
|
320
|
-
recipients == o.recipients &&
|
321
320
|
sender == o.sender &&
|
321
|
+
recipients == o.recipients &&
|
322
322
|
attachments == o.attachments &&
|
323
323
|
inbox_id == o.inbox_id &&
|
324
324
|
created_at == o.created_at &&
|
@@ -352,7 +352,7 @@ module MailSlurpClient
|
|
352
352
|
# Calculates hash code according to all attributes.
|
353
353
|
# @return [Integer] Hash code
|
354
354
|
def hash
|
355
|
-
[
|
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
|
356
356
|
end
|
357
357
|
|
358
358
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ 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
|
-
attr_accessor :recipients
|
19
|
-
|
20
18
|
attr_accessor :sender
|
21
19
|
|
20
|
+
attr_accessor :recipients
|
21
|
+
|
22
22
|
# Inbox ID
|
23
23
|
attr_accessor :inbox_id
|
24
24
|
|
@@ -75,8 +75,8 @@ module MailSlurpClient
|
|
75
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
76
76
|
def self.attribute_map
|
77
77
|
{
|
78
|
-
:'recipients' => :'recipients',
|
79
78
|
:'sender' => :'sender',
|
79
|
+
:'recipients' => :'recipients',
|
80
80
|
:'inbox_id' => :'inboxId',
|
81
81
|
:'user_id' => :'userId',
|
82
82
|
:'updated_at' => :'updatedAt',
|
@@ -101,8 +101,8 @@ module MailSlurpClient
|
|
101
101
|
# Attribute type mapping.
|
102
102
|
def self.openapi_types
|
103
103
|
{
|
104
|
-
:'recipients' => :'EmailRecipientsProjection',
|
105
104
|
:'sender' => :'SenderProjection',
|
105
|
+
:'recipients' => :'EmailRecipientsProjection',
|
106
106
|
:'inbox_id' => :'String',
|
107
107
|
:'user_id' => :'String',
|
108
108
|
:'updated_at' => :'DateTime',
|
@@ -145,14 +145,14 @@ module MailSlurpClient
|
|
145
145
|
h[k.to_sym] = v
|
146
146
|
}
|
147
147
|
|
148
|
-
if attributes.key?(:'recipients')
|
149
|
-
self.recipients = attributes[:'recipients']
|
150
|
-
end
|
151
|
-
|
152
148
|
if attributes.key?(:'sender')
|
153
149
|
self.sender = attributes[:'sender']
|
154
150
|
end
|
155
151
|
|
152
|
+
if attributes.key?(:'recipients')
|
153
|
+
self.recipients = attributes[:'recipients']
|
154
|
+
end
|
155
|
+
|
156
156
|
if attributes.key?(:'inbox_id')
|
157
157
|
self.inbox_id = attributes[:'inbox_id']
|
158
158
|
end
|
@@ -290,8 +290,8 @@ module MailSlurpClient
|
|
290
290
|
def ==(o)
|
291
291
|
return true if self.equal?(o)
|
292
292
|
self.class == o.class &&
|
293
|
-
recipients == o.recipients &&
|
294
293
|
sender == o.sender &&
|
294
|
+
recipients == o.recipients &&
|
295
295
|
inbox_id == o.inbox_id &&
|
296
296
|
user_id == o.user_id &&
|
297
297
|
updated_at == o.updated_at &&
|
@@ -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, inbox_id, user_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
|
@@ -20,11 +20,11 @@ module MailSlurpClient
|
|
20
20
|
|
21
21
|
attr_accessor :created
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :from_phone_number
|
24
24
|
|
25
25
|
attr_accessor :to_phone_number
|
26
26
|
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :message_direction
|
28
28
|
|
29
29
|
class EnumAttributeValidator
|
30
30
|
attr_reader :datatype
|
@@ -54,9 +54,9 @@ module MailSlurpClient
|
|
54
54
|
:'body' => :'body',
|
55
55
|
:'phone_number_id' => :'phoneNumberId',
|
56
56
|
:'created' => :'created',
|
57
|
-
:'
|
57
|
+
:'from_phone_number' => :'fromPhoneNumber',
|
58
58
|
:'to_phone_number' => :'toPhoneNumber',
|
59
|
-
:'
|
59
|
+
:'message_direction' => :'messageDirection'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -66,9 +66,9 @@ module MailSlurpClient
|
|
66
66
|
:'body' => :'String',
|
67
67
|
:'phone_number_id' => :'String',
|
68
68
|
:'created' => :'DateTime',
|
69
|
-
:'
|
69
|
+
:'from_phone_number' => :'String',
|
70
70
|
:'to_phone_number' => :'String',
|
71
|
-
:'
|
71
|
+
:'message_direction' => :'String'
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
@@ -105,16 +105,16 @@ module MailSlurpClient
|
|
105
105
|
self.created = attributes[:'created']
|
106
106
|
end
|
107
107
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
108
|
+
if attributes.key?(:'from_phone_number')
|
109
|
+
self.from_phone_number = attributes[:'from_phone_number']
|
110
110
|
end
|
111
111
|
|
112
112
|
if attributes.key?(:'to_phone_number')
|
113
113
|
self.to_phone_number = attributes[:'to_phone_number']
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
116
|
+
if attributes.key?(:'message_direction')
|
117
|
+
self.message_direction = attributes[:'message_direction']
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
@@ -134,16 +134,16 @@ module MailSlurpClient
|
|
134
134
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
135
135
|
end
|
136
136
|
|
137
|
-
if @
|
138
|
-
invalid_properties.push('invalid value for "
|
137
|
+
if @from_phone_number.nil?
|
138
|
+
invalid_properties.push('invalid value for "from_phone_number", from_phone_number cannot be nil.')
|
139
139
|
end
|
140
140
|
|
141
141
|
if @to_phone_number.nil?
|
142
142
|
invalid_properties.push('invalid value for "to_phone_number", to_phone_number cannot be nil.')
|
143
143
|
end
|
144
144
|
|
145
|
-
if @
|
146
|
-
invalid_properties.push('invalid value for "
|
145
|
+
if @message_direction.nil?
|
146
|
+
invalid_properties.push('invalid value for "message_direction", message_direction cannot be nil.')
|
147
147
|
end
|
148
148
|
|
149
149
|
invalid_properties
|
@@ -155,11 +155,11 @@ module MailSlurpClient
|
|
155
155
|
return false if @body.nil?
|
156
156
|
return false if @phone_number_id.nil?
|
157
157
|
return false if @created.nil?
|
158
|
+
return false if @from_phone_number.nil?
|
159
|
+
return false if @to_phone_number.nil?
|
158
160
|
return false if @message_direction.nil?
|
159
161
|
message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
|
160
162
|
return false unless message_direction_validator.valid?(@message_direction)
|
161
|
-
return false if @to_phone_number.nil?
|
162
|
-
return false if @from_phone_number.nil?
|
163
163
|
true
|
164
164
|
end
|
165
165
|
|
@@ -181,9 +181,9 @@ module MailSlurpClient
|
|
181
181
|
body == o.body &&
|
182
182
|
phone_number_id == o.phone_number_id &&
|
183
183
|
created == o.created &&
|
184
|
-
|
184
|
+
from_phone_number == o.from_phone_number &&
|
185
185
|
to_phone_number == o.to_phone_number &&
|
186
|
-
|
186
|
+
message_direction == o.message_direction
|
187
187
|
end
|
188
188
|
|
189
189
|
# @see the `==` method
|
@@ -195,7 +195,7 @@ module MailSlurpClient
|
|
195
195
|
# Calculates hash code according to all attributes.
|
196
196
|
# @return [Integer] Hash code
|
197
197
|
def hash
|
198
|
-
[body, phone_number_id, created,
|
198
|
+
[body, phone_number_id, created, from_phone_number, to_phone_number, message_direction].hash
|
199
199
|
end
|
200
200
|
|
201
201
|
# Builds the object from hash
|
@@ -16,12 +16,12 @@ module MailSlurpClient
|
|
16
16
|
class SentEmailProjection
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
-
attr_accessor :recipients
|
20
|
-
|
21
19
|
attr_accessor :from
|
22
20
|
|
23
21
|
attr_accessor :sender
|
24
22
|
|
23
|
+
attr_accessor :recipients
|
24
|
+
|
25
25
|
attr_accessor :subject
|
26
26
|
|
27
27
|
attr_accessor :attachments
|
@@ -56,9 +56,9 @@ module MailSlurpClient
|
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
58
|
:'id' => :'id',
|
59
|
-
:'recipients' => :'recipients',
|
60
59
|
:'from' => :'from',
|
61
60
|
:'sender' => :'sender',
|
61
|
+
:'recipients' => :'recipients',
|
62
62
|
:'subject' => :'subject',
|
63
63
|
:'attachments' => :'attachments',
|
64
64
|
:'inbox_id' => :'inboxId',
|
@@ -81,9 +81,9 @@ module MailSlurpClient
|
|
81
81
|
def self.openapi_types
|
82
82
|
{
|
83
83
|
:'id' => :'String',
|
84
|
-
:'recipients' => :'EmailRecipients',
|
85
84
|
:'from' => :'String',
|
86
85
|
:'sender' => :'Sender',
|
86
|
+
:'recipients' => :'EmailRecipients',
|
87
87
|
:'subject' => :'String',
|
88
88
|
:'attachments' => :'Array<String>',
|
89
89
|
:'inbox_id' => :'String',
|
@@ -105,9 +105,9 @@ module MailSlurpClient
|
|
105
105
|
# List of attributes with nullable: true
|
106
106
|
def self.openapi_nullable
|
107
107
|
Set.new([
|
108
|
-
:'recipients',
|
109
108
|
:'from',
|
110
109
|
:'sender',
|
110
|
+
:'recipients',
|
111
111
|
:'subject',
|
112
112
|
:'attachments',
|
113
113
|
:'message_id',
|
@@ -138,10 +138,6 @@ module MailSlurpClient
|
|
138
138
|
self.id = attributes[:'id']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.key?(:'recipients')
|
142
|
-
self.recipients = attributes[:'recipients']
|
143
|
-
end
|
144
|
-
|
145
141
|
if attributes.key?(:'from')
|
146
142
|
self.from = attributes[:'from']
|
147
143
|
end
|
@@ -150,6 +146,10 @@ module MailSlurpClient
|
|
150
146
|
self.sender = attributes[:'sender']
|
151
147
|
end
|
152
148
|
|
149
|
+
if attributes.key?(:'recipients')
|
150
|
+
self.recipients = attributes[:'recipients']
|
151
|
+
end
|
152
|
+
|
153
153
|
if attributes.key?(:'subject')
|
154
154
|
self.subject = attributes[:'subject']
|
155
155
|
end
|
@@ -263,9 +263,9 @@ module MailSlurpClient
|
|
263
263
|
return true if self.equal?(o)
|
264
264
|
self.class == o.class &&
|
265
265
|
id == o.id &&
|
266
|
-
recipients == o.recipients &&
|
267
266
|
from == o.from &&
|
268
267
|
sender == o.sender &&
|
268
|
+
recipients == o.recipients &&
|
269
269
|
subject == o.subject &&
|
270
270
|
attachments == o.attachments &&
|
271
271
|
inbox_id == o.inbox_id &&
|
@@ -292,7 +292,7 @@ module MailSlurpClient
|
|
292
292
|
# Calculates hash code according to all attributes.
|
293
293
|
# @return [Integer] Hash code
|
294
294
|
def hash
|
295
|
-
[id,
|
295
|
+
[id, from, sender, recipients, subject, attachments, inbox_id, user_id, created_at, to, cc, bcc, message_id, in_reply_to, body_excerpt, text_excerpt, body_md5_hash, virtual_send, thread_id].hash
|
296
296
|
end
|
297
297
|
|
298
298
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.2.
|
4
|
+
version: 16.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/ruby/ for full Ruby documentation. Get
|