mailslurp_client 15.19.8 → 15.19.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/imap_mailbox_status.rb +1 -1
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +0 -34
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
- 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: 523e61e93eb1ed4ccf11a16f87620bb665869c89890ca7148a5abc8b216143a7
|
4
|
+
data.tar.gz: 9ffbe9fa9e2744164d1f16cab550eba1db7204c6d594090a1e865b66943e1ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1927f0e40b9263e964385f1a01bb0a515595532070463d0a3016aca8f2736347d47b7abd5075bf5acd0d7cd8da33d3b3abd575de95ce1dedfe9243d08c17c07
|
7
|
+
data.tar.gz: b61e9b0ad530d94580e501d0d05336fbbbfd67dc9ccb9ffbf2fec1aee7749effa93e8b5a305f036220913deed6b5cee16f5d501c74d01ae291675df146cdac63
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
+
attr_accessor :inbox_id
|
19
|
+
|
18
20
|
attr_accessor :email_address
|
19
21
|
|
20
22
|
attr_accessor :user_id
|
21
23
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
24
|
attr_accessor :use_threads
|
25
25
|
|
26
26
|
attr_accessor :created_at
|
@@ -34,9 +34,9 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
+
:'inbox_id' => :'inboxId',
|
37
38
|
:'email_address' => :'emailAddress',
|
38
39
|
:'user_id' => :'userId',
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
40
|
:'use_threads' => :'useThreads',
|
41
41
|
:'created_at' => :'createdAt',
|
42
42
|
:'updated_at' => :'updatedAt',
|
@@ -48,9 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
+
:'inbox_id' => :'String',
|
51
52
|
:'email_address' => :'String',
|
52
53
|
:'user_id' => :'String',
|
53
|
-
:'inbox_id' => :'String',
|
54
54
|
:'use_threads' => :'Boolean',
|
55
55
|
:'created_at' => :'DateTime',
|
56
56
|
:'updated_at' => :'DateTime',
|
@@ -80,6 +80,10 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
+
if attributes.key?(:'inbox_id')
|
84
|
+
self.inbox_id = attributes[:'inbox_id']
|
85
|
+
end
|
86
|
+
|
83
87
|
if attributes.key?(:'email_address')
|
84
88
|
self.email_address = attributes[:'email_address']
|
85
89
|
end
|
@@ -88,10 +92,6 @@ module MailSlurpClient
|
|
88
92
|
self.user_id = attributes[:'user_id']
|
89
93
|
end
|
90
94
|
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
93
|
-
end
|
94
|
-
|
95
95
|
if attributes.key?(:'use_threads')
|
96
96
|
self.use_threads = attributes[:'use_threads']
|
97
97
|
end
|
@@ -117,6 +117,10 @@ module MailSlurpClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
+
if @inbox_id.nil?
|
121
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
122
|
+
end
|
123
|
+
|
120
124
|
if @email_address.nil?
|
121
125
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
122
126
|
end
|
@@ -125,10 +129,6 @@ module MailSlurpClient
|
|
125
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
126
130
|
end
|
127
131
|
|
128
|
-
if @inbox_id.nil?
|
129
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
132
|
if @created_at.nil?
|
133
133
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
134
|
end
|
@@ -147,9 +147,9 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
+
return false if @inbox_id.nil?
|
150
151
|
return false if @email_address.nil?
|
151
152
|
return false if @user_id.nil?
|
152
|
-
return false if @inbox_id.nil?
|
153
153
|
return false if @created_at.nil?
|
154
154
|
return false if @updated_at.nil?
|
155
155
|
return false if @id.nil?
|
@@ -161,9 +161,9 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
inbox_id == o.inbox_id &&
|
164
165
|
email_address == o.email_address &&
|
165
166
|
user_id == o.user_id &&
|
166
|
-
inbox_id == o.inbox_id &&
|
167
167
|
use_threads == o.use_threads &&
|
168
168
|
created_at == o.created_at &&
|
169
169
|
updated_at == o.updated_at &&
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[email_address, user_id,
|
183
|
+
[inbox_id, email_address, user_id, use_threads, created_at, updated_at, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -17,12 +17,12 @@ module MailSlurpClient
|
|
17
17
|
class ConnectorProjection
|
18
18
|
attr_accessor :enabled
|
19
19
|
|
20
|
+
attr_accessor :inbox_id
|
21
|
+
|
20
22
|
attr_accessor :email_address
|
21
23
|
|
22
24
|
attr_accessor :user_id
|
23
25
|
|
24
|
-
attr_accessor :inbox_id
|
25
|
-
|
26
26
|
attr_accessor :sync_enabled
|
27
27
|
|
28
28
|
attr_accessor :sync_schedule_type
|
@@ -61,9 +61,9 @@ module MailSlurpClient
|
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
63
|
:'enabled' => :'enabled',
|
64
|
+
:'inbox_id' => :'inboxId',
|
64
65
|
:'email_address' => :'emailAddress',
|
65
66
|
:'user_id' => :'userId',
|
66
|
-
:'inbox_id' => :'inboxId',
|
67
67
|
:'sync_enabled' => :'syncEnabled',
|
68
68
|
:'sync_schedule_type' => :'syncScheduleType',
|
69
69
|
:'sync_interval' => :'syncInterval',
|
@@ -77,9 +77,9 @@ module MailSlurpClient
|
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
79
|
:'enabled' => :'Boolean',
|
80
|
+
:'inbox_id' => :'String',
|
80
81
|
:'email_address' => :'String',
|
81
82
|
:'user_id' => :'String',
|
82
|
-
:'inbox_id' => :'String',
|
83
83
|
:'sync_enabled' => :'Boolean',
|
84
84
|
:'sync_schedule_type' => :'String',
|
85
85
|
:'sync_interval' => :'Integer',
|
@@ -114,6 +114,10 @@ module MailSlurpClient
|
|
114
114
|
self.enabled = attributes[:'enabled']
|
115
115
|
end
|
116
116
|
|
117
|
+
if attributes.key?(:'inbox_id')
|
118
|
+
self.inbox_id = attributes[:'inbox_id']
|
119
|
+
end
|
120
|
+
|
117
121
|
if attributes.key?(:'email_address')
|
118
122
|
self.email_address = attributes[:'email_address']
|
119
123
|
end
|
@@ -122,10 +126,6 @@ module MailSlurpClient
|
|
122
126
|
self.user_id = attributes[:'user_id']
|
123
127
|
end
|
124
128
|
|
125
|
-
if attributes.key?(:'inbox_id')
|
126
|
-
self.inbox_id = attributes[:'inbox_id']
|
127
|
-
end
|
128
|
-
|
129
129
|
if attributes.key?(:'sync_enabled')
|
130
130
|
self.sync_enabled = attributes[:'sync_enabled']
|
131
131
|
end
|
@@ -155,14 +155,14 @@ module MailSlurpClient
|
|
155
155
|
# @return Array for valid properties with the reasons
|
156
156
|
def list_invalid_properties
|
157
157
|
invalid_properties = Array.new
|
158
|
-
if @user_id.nil?
|
159
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
158
|
if @inbox_id.nil?
|
163
159
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
164
160
|
end
|
165
161
|
|
162
|
+
if @user_id.nil?
|
163
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
164
|
+
end
|
165
|
+
|
166
166
|
if @sync_schedule_type.nil?
|
167
167
|
invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
|
168
168
|
end
|
@@ -177,8 +177,8 @@ module MailSlurpClient
|
|
177
177
|
# Check to see if the all the properties in the model are valid
|
178
178
|
# @return true if the model is valid
|
179
179
|
def valid?
|
180
|
-
return false if @user_id.nil?
|
181
180
|
return false if @inbox_id.nil?
|
181
|
+
return false if @user_id.nil?
|
182
182
|
return false if @sync_schedule_type.nil?
|
183
183
|
sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
|
184
184
|
return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
|
@@ -202,9 +202,9 @@ module MailSlurpClient
|
|
202
202
|
return true if self.equal?(o)
|
203
203
|
self.class == o.class &&
|
204
204
|
enabled == o.enabled &&
|
205
|
+
inbox_id == o.inbox_id &&
|
205
206
|
email_address == o.email_address &&
|
206
207
|
user_id == o.user_id &&
|
207
|
-
inbox_id == o.inbox_id &&
|
208
208
|
sync_enabled == o.sync_enabled &&
|
209
209
|
sync_schedule_type == o.sync_schedule_type &&
|
210
210
|
sync_interval == o.sync_interval &&
|
@@ -222,7 +222,7 @@ module MailSlurpClient
|
|
222
222
|
# Calculates hash code according to all attributes.
|
223
223
|
# @return [Integer] Hash code
|
224
224
|
def hash
|
225
|
-
[enabled, email_address, user_id,
|
225
|
+
[enabled, inbox_id, email_address, user_id, sync_enabled, sync_schedule_type, sync_interval, created_at, name, id].hash
|
226
226
|
end
|
227
227
|
|
228
228
|
# Builds the object from hash
|
@@ -96,10 +96,10 @@ module MailSlurpClient
|
|
96
96
|
# A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts.
|
97
97
|
attr_accessor :body_part_content_types
|
98
98
|
|
99
|
-
attr_accessor :html
|
100
|
-
|
101
99
|
attr_accessor :xamp_html
|
102
100
|
|
101
|
+
attr_accessor :html
|
102
|
+
|
103
103
|
# Attribute mapping from ruby-style variable name to JSON key.
|
104
104
|
def self.attribute_map
|
105
105
|
{
|
@@ -131,8 +131,8 @@ module MailSlurpClient
|
|
131
131
|
:'team_access' => :'teamAccess',
|
132
132
|
:'is_x_amp_html' => :'isXAmpHtml',
|
133
133
|
:'body_part_content_types' => :'bodyPartContentTypes',
|
134
|
-
:'
|
135
|
-
:'
|
134
|
+
:'xamp_html' => :'xampHtml',
|
135
|
+
:'html' => :'html'
|
136
136
|
}
|
137
137
|
end
|
138
138
|
|
@@ -167,8 +167,8 @@ module MailSlurpClient
|
|
167
167
|
:'team_access' => :'Boolean',
|
168
168
|
:'is_x_amp_html' => :'Boolean',
|
169
169
|
:'body_part_content_types' => :'Array<String>',
|
170
|
-
:'
|
171
|
-
:'
|
170
|
+
:'xamp_html' => :'Boolean',
|
171
|
+
:'html' => :'Boolean'
|
172
172
|
}
|
173
173
|
end
|
174
174
|
|
@@ -339,13 +339,13 @@ module MailSlurpClient
|
|
339
339
|
end
|
340
340
|
end
|
341
341
|
|
342
|
-
if attributes.key?(:'html')
|
343
|
-
self.html = attributes[:'html']
|
344
|
-
end
|
345
|
-
|
346
342
|
if attributes.key?(:'xamp_html')
|
347
343
|
self.xamp_html = attributes[:'xamp_html']
|
348
344
|
end
|
345
|
+
|
346
|
+
if attributes.key?(:'html')
|
347
|
+
self.html = attributes[:'html']
|
348
|
+
end
|
349
349
|
end
|
350
350
|
|
351
351
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -434,8 +434,8 @@ module MailSlurpClient
|
|
434
434
|
team_access == o.team_access &&
|
435
435
|
is_x_amp_html == o.is_x_amp_html &&
|
436
436
|
body_part_content_types == o.body_part_content_types &&
|
437
|
-
|
438
|
-
|
437
|
+
xamp_html == o.xamp_html &&
|
438
|
+
html == o.html
|
439
439
|
end
|
440
440
|
|
441
441
|
# @see the `==` method
|
@@ -447,7 +447,7 @@ module MailSlurpClient
|
|
447
447
|
# Calculates hash code according to all attributes.
|
448
448
|
# @return [Integer] Hash code
|
449
449
|
def hash
|
450
|
-
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types,
|
450
|
+
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, xamp_html, html].hash
|
451
451
|
end
|
452
452
|
|
453
453
|
# Builds the object from hash
|
@@ -20,7 +20,7 @@ module MailSlurpClient
|
|
20
20
|
# True if the mailbox is open in read-only mode.
|
21
21
|
attr_accessor :read_only
|
22
22
|
|
23
|
-
#
|
23
|
+
# Results map
|
24
24
|
attr_accessor :items
|
25
25
|
|
26
26
|
# The mailbox flags.
|
@@ -22,28 +22,6 @@ module MailSlurpClient
|
|
22
22
|
|
23
23
|
attr_accessor :seq_set
|
24
24
|
|
25
|
-
class EnumAttributeValidator
|
26
|
-
attr_reader :datatype
|
27
|
-
attr_reader :allowable_values
|
28
|
-
|
29
|
-
def initialize(datatype, allowable_values)
|
30
|
-
@allowable_values = allowable_values.map do |value|
|
31
|
-
case datatype.to_s
|
32
|
-
when /Integer/i
|
33
|
-
value.to_i
|
34
|
-
when /Float/i
|
35
|
-
value.to_f
|
36
|
-
else
|
37
|
-
value
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def valid?(value)
|
43
|
-
!value || allowable_values.include?(value)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
26
|
def self.attribute_map
|
49
27
|
{
|
@@ -122,21 +100,9 @@ module MailSlurpClient
|
|
122
100
|
# @return true if the model is valid
|
123
101
|
def valid?
|
124
102
|
return false if @operation.nil?
|
125
|
-
operation_validator = EnumAttributeValidator.new('String', ["FLAGS", "+FLAGS", "-FLAGS"])
|
126
|
-
return false unless operation_validator.valid?(@operation)
|
127
103
|
true
|
128
104
|
end
|
129
105
|
|
130
|
-
# Custom attribute writer method checking allowed values (enum).
|
131
|
-
# @param [Object] operation Object to be assigned
|
132
|
-
def operation=(operation)
|
133
|
-
validator = EnumAttributeValidator.new('String', ["FLAGS", "+FLAGS", "-FLAGS"])
|
134
|
-
unless validator.valid?(operation)
|
135
|
-
fail ArgumentError, "invalid value for \"operation\", must be one of #{validator.allowable_values}."
|
136
|
-
end
|
137
|
-
@operation = operation
|
138
|
-
end
|
139
|
-
|
140
106
|
# Checks equality by comparing each attribute.
|
141
107
|
# @param [Object] Object to be compared
|
142
108
|
def ==(o)
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :email_id
|
21
19
|
|
22
20
|
attr_accessor :inbox_id
|
23
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
attr_accessor :forwarder_id
|
25
25
|
|
26
26
|
attr_accessor :created_at
|
@@ -56,9 +56,9 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'user_id' => :'userId',
|
60
59
|
:'email_id' => :'emailId',
|
61
60
|
:'inbox_id' => :'inboxId',
|
61
|
+
:'user_id' => :'userId',
|
62
62
|
:'forwarder_id' => :'forwarderId',
|
63
63
|
:'created_at' => :'createdAt',
|
64
64
|
:'message' => :'message',
|
@@ -70,9 +70,9 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'user_id' => :'String',
|
74
73
|
:'email_id' => :'String',
|
75
74
|
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
76
76
|
:'forwarder_id' => :'String',
|
77
77
|
:'created_at' => :'DateTime',
|
78
78
|
:'message' => :'String',
|
@@ -84,9 +84,9 @@ module MailSlurpClient
|
|
84
84
|
# List of attributes with nullable: true
|
85
85
|
def self.openapi_nullable
|
86
86
|
Set.new([
|
87
|
-
:'user_id',
|
88
87
|
:'email_id',
|
89
88
|
:'inbox_id',
|
89
|
+
:'user_id',
|
90
90
|
:'forwarder_id',
|
91
91
|
:'message',
|
92
92
|
:'id',
|
@@ -109,10 +109,6 @@ module MailSlurpClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'user_id')
|
113
|
-
self.user_id = attributes[:'user_id']
|
114
|
-
end
|
115
|
-
|
116
112
|
if attributes.key?(:'email_id')
|
117
113
|
self.email_id = attributes[:'email_id']
|
118
114
|
end
|
@@ -121,6 +117,10 @@ module MailSlurpClient
|
|
121
117
|
self.inbox_id = attributes[:'inbox_id']
|
122
118
|
end
|
123
119
|
|
120
|
+
if attributes.key?(:'user_id')
|
121
|
+
self.user_id = attributes[:'user_id']
|
122
|
+
end
|
123
|
+
|
124
124
|
if attributes.key?(:'forwarder_id')
|
125
125
|
self.forwarder_id = attributes[:'forwarder_id']
|
126
126
|
end
|
@@ -177,9 +177,9 @@ module MailSlurpClient
|
|
177
177
|
def ==(o)
|
178
178
|
return true if self.equal?(o)
|
179
179
|
self.class == o.class &&
|
180
|
-
user_id == o.user_id &&
|
181
180
|
email_id == o.email_id &&
|
182
181
|
inbox_id == o.inbox_id &&
|
182
|
+
user_id == o.user_id &&
|
183
183
|
forwarder_id == o.forwarder_id &&
|
184
184
|
created_at == o.created_at &&
|
185
185
|
message == o.message &&
|
@@ -196,7 +196,7 @@ module MailSlurpClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[
|
199
|
+
[email_id, inbox_id, user_id, forwarder_id, created_at, message, id, status].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -17,12 +17,12 @@ module MailSlurpClient
|
|
17
17
|
class InboxReplierEventProjection
|
18
18
|
attr_accessor :recipients
|
19
19
|
|
20
|
-
attr_accessor :user_id
|
21
|
-
|
22
20
|
attr_accessor :email_id
|
23
21
|
|
24
22
|
attr_accessor :inbox_id
|
25
23
|
|
24
|
+
attr_accessor :user_id
|
25
|
+
|
26
26
|
attr_accessor :sent_id
|
27
27
|
|
28
28
|
attr_accessor :replier_id
|
@@ -61,9 +61,9 @@ module MailSlurpClient
|
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
63
|
:'recipients' => :'recipients',
|
64
|
-
:'user_id' => :'userId',
|
65
64
|
:'email_id' => :'emailId',
|
66
65
|
:'inbox_id' => :'inboxId',
|
66
|
+
:'user_id' => :'userId',
|
67
67
|
:'sent_id' => :'sentId',
|
68
68
|
:'replier_id' => :'replierId',
|
69
69
|
:'created_at' => :'createdAt',
|
@@ -77,9 +77,9 @@ module MailSlurpClient
|
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
79
|
:'recipients' => :'Array<String>',
|
80
|
-
:'user_id' => :'String',
|
81
80
|
:'email_id' => :'String',
|
82
81
|
:'inbox_id' => :'String',
|
82
|
+
:'user_id' => :'String',
|
83
83
|
:'sent_id' => :'String',
|
84
84
|
:'replier_id' => :'String',
|
85
85
|
:'created_at' => :'DateTime',
|
@@ -93,9 +93,9 @@ module MailSlurpClient
|
|
93
93
|
def self.openapi_nullable
|
94
94
|
Set.new([
|
95
95
|
:'recipients',
|
96
|
-
:'user_id',
|
97
96
|
:'email_id',
|
98
97
|
:'inbox_id',
|
98
|
+
:'user_id',
|
99
99
|
:'sent_id',
|
100
100
|
:'replier_id',
|
101
101
|
:'message',
|
@@ -125,10 +125,6 @@ module MailSlurpClient
|
|
125
125
|
end
|
126
126
|
end
|
127
127
|
|
128
|
-
if attributes.key?(:'user_id')
|
129
|
-
self.user_id = attributes[:'user_id']
|
130
|
-
end
|
131
|
-
|
132
128
|
if attributes.key?(:'email_id')
|
133
129
|
self.email_id = attributes[:'email_id']
|
134
130
|
end
|
@@ -137,6 +133,10 @@ module MailSlurpClient
|
|
137
133
|
self.inbox_id = attributes[:'inbox_id']
|
138
134
|
end
|
139
135
|
|
136
|
+
if attributes.key?(:'user_id')
|
137
|
+
self.user_id = attributes[:'user_id']
|
138
|
+
end
|
139
|
+
|
140
140
|
if attributes.key?(:'sent_id')
|
141
141
|
self.sent_id = attributes[:'sent_id']
|
142
142
|
end
|
@@ -198,9 +198,9 @@ module MailSlurpClient
|
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
200
|
recipients == o.recipients &&
|
201
|
-
user_id == o.user_id &&
|
202
201
|
email_id == o.email_id &&
|
203
202
|
inbox_id == o.inbox_id &&
|
203
|
+
user_id == o.user_id &&
|
204
204
|
sent_id == o.sent_id &&
|
205
205
|
replier_id == o.replier_id &&
|
206
206
|
created_at == o.created_at &&
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[recipients,
|
221
|
+
[recipients, email_id, inbox_id, user_id, sent_id, replier_id, created_at, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -22,10 +22,10 @@ module MailSlurpClient
|
|
22
22
|
|
23
23
|
attr_accessor :attachments
|
24
24
|
|
25
|
-
attr_accessor :user_id
|
26
|
-
|
27
25
|
attr_accessor :inbox_id
|
28
26
|
|
27
|
+
attr_accessor :user_id
|
28
|
+
|
29
29
|
attr_accessor :to
|
30
30
|
|
31
31
|
attr_accessor :bcc
|
@@ -45,8 +45,8 @@ module MailSlurpClient
|
|
45
45
|
:'from' => :'from',
|
46
46
|
:'subject' => :'subject',
|
47
47
|
:'attachments' => :'attachments',
|
48
|
-
:'user_id' => :'userId',
|
49
48
|
:'inbox_id' => :'inboxId',
|
49
|
+
:'user_id' => :'userId',
|
50
50
|
:'to' => :'to',
|
51
51
|
:'bcc' => :'bcc',
|
52
52
|
:'cc' => :'cc',
|
@@ -63,8 +63,8 @@ module MailSlurpClient
|
|
63
63
|
:'from' => :'String',
|
64
64
|
:'subject' => :'String',
|
65
65
|
:'attachments' => :'Array<String>',
|
66
|
-
:'user_id' => :'String',
|
67
66
|
:'inbox_id' => :'String',
|
67
|
+
:'user_id' => :'String',
|
68
68
|
:'to' => :'Array<String>',
|
69
69
|
:'bcc' => :'Array<String>',
|
70
70
|
:'cc' => :'Array<String>',
|
@@ -113,14 +113,14 @@ module MailSlurpClient
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'user_id')
|
117
|
-
self.user_id = attributes[:'user_id']
|
118
|
-
end
|
119
|
-
|
120
116
|
if attributes.key?(:'inbox_id')
|
121
117
|
self.inbox_id = attributes[:'inbox_id']
|
122
118
|
end
|
123
119
|
|
120
|
+
if attributes.key?(:'user_id')
|
121
|
+
self.user_id = attributes[:'user_id']
|
122
|
+
end
|
123
|
+
|
124
124
|
if attributes.key?(:'to')
|
125
125
|
if (value = attributes[:'to']).is_a?(Array)
|
126
126
|
self.to = value
|
@@ -164,14 +164,14 @@ module MailSlurpClient
|
|
164
164
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
165
165
|
end
|
166
166
|
|
167
|
-
if @user_id.nil?
|
168
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
169
|
-
end
|
170
|
-
|
171
167
|
if @inbox_id.nil?
|
172
168
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
173
169
|
end
|
174
170
|
|
171
|
+
if @user_id.nil?
|
172
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
175
|
if @to.nil?
|
176
176
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
177
177
|
end
|
@@ -200,8 +200,8 @@ module MailSlurpClient
|
|
200
200
|
def valid?
|
201
201
|
return false if @id.nil?
|
202
202
|
return false if @attachments.nil?
|
203
|
-
return false if @user_id.nil?
|
204
203
|
return false if @inbox_id.nil?
|
204
|
+
return false if @user_id.nil?
|
205
205
|
return false if @to.nil?
|
206
206
|
return false if @bcc.nil?
|
207
207
|
return false if @cc.nil?
|
@@ -219,8 +219,8 @@ module MailSlurpClient
|
|
219
219
|
from == o.from &&
|
220
220
|
subject == o.subject &&
|
221
221
|
attachments == o.attachments &&
|
222
|
-
user_id == o.user_id &&
|
223
222
|
inbox_id == o.inbox_id &&
|
223
|
+
user_id == o.user_id &&
|
224
224
|
to == o.to &&
|
225
225
|
bcc == o.bcc &&
|
226
226
|
cc == o.cc &&
|
@@ -238,7 +238,7 @@ module MailSlurpClient
|
|
238
238
|
# Calculates hash code according to all attributes.
|
239
239
|
# @return [Integer] Hash code
|
240
240
|
def hash
|
241
|
-
[id, from, subject, attachments,
|
241
|
+
[id, from, subject, attachments, inbox_id, user_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
|
242
242
|
end
|
243
243
|
|
244
244
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class ThreadProjection
|
18
|
-
# User ID
|
19
|
-
attr_accessor :user_id
|
20
|
-
|
21
18
|
# Inbox ID
|
22
19
|
attr_accessor :inbox_id
|
23
20
|
|
21
|
+
# User ID
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
# To recipients
|
25
25
|
attr_accessor :to
|
26
26
|
|
@@ -51,8 +51,8 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'user_id' => :'userId',
|
55
54
|
:'inbox_id' => :'inboxId',
|
55
|
+
:'user_id' => :'userId',
|
56
56
|
:'to' => :'to',
|
57
57
|
:'bcc' => :'bcc',
|
58
58
|
:'cc' => :'cc',
|
@@ -68,8 +68,8 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'user_id' => :'String',
|
72
71
|
:'inbox_id' => :'String',
|
72
|
+
:'user_id' => :'String',
|
73
73
|
:'to' => :'Array<String>',
|
74
74
|
:'bcc' => :'Array<String>',
|
75
75
|
:'cc' => :'Array<String>',
|
@@ -103,14 +103,14 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'user_id')
|
107
|
-
self.user_id = attributes[:'user_id']
|
108
|
-
end
|
109
|
-
|
110
106
|
if attributes.key?(:'inbox_id')
|
111
107
|
self.inbox_id = attributes[:'inbox_id']
|
112
108
|
end
|
113
109
|
|
110
|
+
if attributes.key?(:'user_id')
|
111
|
+
self.user_id = attributes[:'user_id']
|
112
|
+
end
|
113
|
+
|
114
114
|
if attributes.key?(:'to')
|
115
115
|
if (value = attributes[:'to']).is_a?(Array)
|
116
116
|
self.to = value
|
@@ -158,14 +158,14 @@ module MailSlurpClient
|
|
158
158
|
# @return Array for valid properties with the reasons
|
159
159
|
def list_invalid_properties
|
160
160
|
invalid_properties = Array.new
|
161
|
-
if @user_id.nil?
|
162
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
161
|
if @inbox_id.nil?
|
166
162
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
167
163
|
end
|
168
164
|
|
165
|
+
if @user_id.nil?
|
166
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
167
|
+
end
|
168
|
+
|
169
169
|
if @to.nil?
|
170
170
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
171
171
|
end
|
@@ -192,8 +192,8 @@ module MailSlurpClient
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
-
return false if @user_id.nil?
|
196
195
|
return false if @inbox_id.nil?
|
196
|
+
return false if @user_id.nil?
|
197
197
|
return false if @to.nil?
|
198
198
|
return false if @alias_id.nil?
|
199
199
|
return false if @created_at.nil?
|
@@ -207,8 +207,8 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
user_id == o.user_id &&
|
211
210
|
inbox_id == o.inbox_id &&
|
211
|
+
user_id == o.user_id &&
|
212
212
|
to == o.to &&
|
213
213
|
bcc == o.bcc &&
|
214
214
|
cc == o.cc &&
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[inbox_id, user_id, to, bcc, cc, alias_id, created_at, updated_at, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :inbox_id
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :sent_email_id
|
23
23
|
|
24
24
|
attr_accessor :recipient
|
25
25
|
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
-
:'sent_email_id' => :'sentEmailId',
|
40
|
-
:'user_id' => :'userId',
|
41
39
|
:'inbox_id' => :'inboxId',
|
40
|
+
:'user_id' => :'userId',
|
41
|
+
:'sent_email_id' => :'sentEmailId',
|
42
42
|
:'recipient' => :'recipient',
|
43
43
|
:'seen' => :'seen',
|
44
44
|
:'seen_at' => :'seenAt',
|
@@ -51,9 +51,9 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'sent_email_id' => :'String',
|
55
|
-
:'user_id' => :'String',
|
56
54
|
:'inbox_id' => :'String',
|
55
|
+
:'user_id' => :'String',
|
56
|
+
:'sent_email_id' => :'String',
|
57
57
|
:'recipient' => :'String',
|
58
58
|
:'seen' => :'Boolean',
|
59
59
|
:'seen_at' => :'DateTime',
|
@@ -84,16 +84,16 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
87
|
+
if attributes.key?(:'inbox_id')
|
88
|
+
self.inbox_id = attributes[:'inbox_id']
|
89
89
|
end
|
90
90
|
|
91
91
|
if attributes.key?(:'user_id')
|
92
92
|
self.user_id = attributes[:'user_id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'sent_email_id')
|
96
|
+
self.sent_email_id = attributes[:'sent_email_id']
|
97
97
|
end
|
98
98
|
|
99
99
|
if attributes.key?(:'recipient')
|
@@ -159,9 +159,9 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
-
sent_email_id == o.sent_email_id &&
|
163
|
-
user_id == o.user_id &&
|
164
162
|
inbox_id == o.inbox_id &&
|
163
|
+
user_id == o.user_id &&
|
164
|
+
sent_email_id == o.sent_email_id &&
|
165
165
|
recipient == o.recipient &&
|
166
166
|
seen == o.seen &&
|
167
167
|
seen_at == o.seen_at &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[
|
182
|
+
[inbox_id, user_id, sent_email_id, recipient, seen, seen_at, created_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# 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: 15.19.
|
4
|
+
version: 15.19.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-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
|