mailslurp_client 15.19.8 → 15.19.9
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/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_mailbox_status.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/sent_email_projection.rb +24 -24
- 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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '07490dc21c90253a0d0cc02008952950ce2f58facd510136ef990fd2323abbe1'
|
4
|
+
data.tar.gz: cbcaf4525319b657b76ef5ef6d09107a2f7ebaa1ab819d4496a972bd4356780a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e128649f733114fc22d73d8bcdd7cdc808567a11d6579fd28ac2a9c4ceeeaef8eb8ce67d0a5d738b009e38c801a2b19dbc9dff17e05be076e3d27fa6e79a204c
|
7
|
+
data.tar.gz: 7cbf8d9e306c049fc87c456509fe902265ad4ade6d0cb8eec894dce9636ee9194c17ea6dacc8b80e151d12e058a34f3be89373cd244aa7b4f18096b0d95264e0
|
@@ -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
|
@@ -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.
|
@@ -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
|
@@ -15,17 +15,17 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox replier event
|
17
17
|
class InboxReplierEventProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :replier_id
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :recipients
|
21
21
|
|
22
22
|
attr_accessor :email_id
|
23
23
|
|
24
24
|
attr_accessor :inbox_id
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :user_id
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :sent_id
|
29
29
|
|
30
30
|
attr_accessor :created_at
|
31
31
|
|
@@ -60,12 +60,12 @@ module MailSlurpClient
|
|
60
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
|
+
:'replier_id' => :'replierId',
|
63
64
|
:'recipients' => :'recipients',
|
64
|
-
:'user_id' => :'userId',
|
65
65
|
:'email_id' => :'emailId',
|
66
66
|
:'inbox_id' => :'inboxId',
|
67
|
+
:'user_id' => :'userId',
|
67
68
|
:'sent_id' => :'sentId',
|
68
|
-
:'replier_id' => :'replierId',
|
69
69
|
:'created_at' => :'createdAt',
|
70
70
|
:'message' => :'message',
|
71
71
|
:'id' => :'id',
|
@@ -76,12 +76,12 @@ module MailSlurpClient
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
|
+
:'replier_id' => :'String',
|
79
80
|
:'recipients' => :'Array<String>',
|
80
|
-
:'user_id' => :'String',
|
81
81
|
:'email_id' => :'String',
|
82
82
|
:'inbox_id' => :'String',
|
83
|
+
:'user_id' => :'String',
|
83
84
|
:'sent_id' => :'String',
|
84
|
-
:'replier_id' => :'String',
|
85
85
|
:'created_at' => :'DateTime',
|
86
86
|
:'message' => :'String',
|
87
87
|
:'id' => :'String',
|
@@ -92,12 +92,12 @@ module MailSlurpClient
|
|
92
92
|
# List of attributes with nullable: true
|
93
93
|
def self.openapi_nullable
|
94
94
|
Set.new([
|
95
|
+
:'replier_id',
|
95
96
|
:'recipients',
|
96
|
-
:'user_id',
|
97
97
|
:'email_id',
|
98
98
|
:'inbox_id',
|
99
|
+
:'user_id',
|
99
100
|
:'sent_id',
|
100
|
-
:'replier_id',
|
101
101
|
:'message',
|
102
102
|
:'id',
|
103
103
|
:'status'
|
@@ -119,16 +119,16 @@ module MailSlurpClient
|
|
119
119
|
h[k.to_sym] = v
|
120
120
|
}
|
121
121
|
|
122
|
+
if attributes.key?(:'replier_id')
|
123
|
+
self.replier_id = attributes[:'replier_id']
|
124
|
+
end
|
125
|
+
|
122
126
|
if attributes.key?(:'recipients')
|
123
127
|
if (value = attributes[:'recipients']).is_a?(Array)
|
124
128
|
self.recipients = value
|
125
129
|
end
|
126
130
|
end
|
127
131
|
|
128
|
-
if attributes.key?(:'user_id')
|
129
|
-
self.user_id = attributes[:'user_id']
|
130
|
-
end
|
131
|
-
|
132
132
|
if attributes.key?(:'email_id')
|
133
133
|
self.email_id = attributes[:'email_id']
|
134
134
|
end
|
@@ -137,12 +137,12 @@ module MailSlurpClient
|
|
137
137
|
self.inbox_id = attributes[:'inbox_id']
|
138
138
|
end
|
139
139
|
|
140
|
-
if attributes.key?(:'
|
141
|
-
self.
|
140
|
+
if attributes.key?(:'user_id')
|
141
|
+
self.user_id = attributes[:'user_id']
|
142
142
|
end
|
143
143
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
144
|
+
if attributes.key?(:'sent_id')
|
145
|
+
self.sent_id = attributes[:'sent_id']
|
146
146
|
end
|
147
147
|
|
148
148
|
if attributes.key?(:'created_at')
|
@@ -197,12 +197,12 @@ module MailSlurpClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
+
replier_id == o.replier_id &&
|
200
201
|
recipients == o.recipients &&
|
201
|
-
user_id == o.user_id &&
|
202
202
|
email_id == o.email_id &&
|
203
203
|
inbox_id == o.inbox_id &&
|
204
|
+
user_id == o.user_id &&
|
204
205
|
sent_id == o.sent_id &&
|
205
|
-
replier_id == o.replier_id &&
|
206
206
|
created_at == o.created_at &&
|
207
207
|
message == o.message &&
|
208
208
|
id == o.id &&
|
@@ -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
|
-
[
|
221
|
+
[replier_id, recipients, email_id, inbox_id, user_id, sent_id, created_at, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -16,14 +16,16 @@ module MailSlurpClient
|
|
16
16
|
class SentEmailProjection
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
+
attr_accessor :user_id
|
20
|
+
|
21
|
+
attr_accessor :body_md5_hash
|
22
|
+
|
19
23
|
attr_accessor :from
|
20
24
|
|
21
25
|
attr_accessor :subject
|
22
26
|
|
23
27
|
attr_accessor :attachments
|
24
28
|
|
25
|
-
attr_accessor :user_id
|
26
|
-
|
27
29
|
attr_accessor :inbox_id
|
28
30
|
|
29
31
|
attr_accessor :to
|
@@ -34,24 +36,22 @@ module MailSlurpClient
|
|
34
36
|
|
35
37
|
attr_accessor :created_at
|
36
38
|
|
37
|
-
attr_accessor :body_md5_hash
|
38
|
-
|
39
39
|
attr_accessor :virtual_send
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
44
|
:'id' => :'id',
|
45
|
+
:'user_id' => :'userId',
|
46
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
45
47
|
:'from' => :'from',
|
46
48
|
:'subject' => :'subject',
|
47
49
|
:'attachments' => :'attachments',
|
48
|
-
:'user_id' => :'userId',
|
49
50
|
:'inbox_id' => :'inboxId',
|
50
51
|
:'to' => :'to',
|
51
52
|
:'bcc' => :'bcc',
|
52
53
|
:'cc' => :'cc',
|
53
54
|
:'created_at' => :'createdAt',
|
54
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
55
55
|
:'virtual_send' => :'virtualSend'
|
56
56
|
}
|
57
57
|
end
|
@@ -60,16 +60,16 @@ module MailSlurpClient
|
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
62
|
:'id' => :'String',
|
63
|
+
:'user_id' => :'String',
|
64
|
+
:'body_md5_hash' => :'String',
|
63
65
|
:'from' => :'String',
|
64
66
|
:'subject' => :'String',
|
65
67
|
:'attachments' => :'Array<String>',
|
66
|
-
:'user_id' => :'String',
|
67
68
|
:'inbox_id' => :'String',
|
68
69
|
:'to' => :'Array<String>',
|
69
70
|
:'bcc' => :'Array<String>',
|
70
71
|
:'cc' => :'Array<String>',
|
71
72
|
:'created_at' => :'DateTime',
|
72
|
-
:'body_md5_hash' => :'String',
|
73
73
|
:'virtual_send' => :'Boolean'
|
74
74
|
}
|
75
75
|
end
|
@@ -99,6 +99,14 @@ module MailSlurpClient
|
|
99
99
|
self.id = attributes[:'id']
|
100
100
|
end
|
101
101
|
|
102
|
+
if attributes.key?(:'user_id')
|
103
|
+
self.user_id = attributes[:'user_id']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'body_md5_hash')
|
107
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
108
|
+
end
|
109
|
+
|
102
110
|
if attributes.key?(:'from')
|
103
111
|
self.from = attributes[:'from']
|
104
112
|
end
|
@@ -113,10 +121,6 @@ module MailSlurpClient
|
|
113
121
|
end
|
114
122
|
end
|
115
123
|
|
116
|
-
if attributes.key?(:'user_id')
|
117
|
-
self.user_id = attributes[:'user_id']
|
118
|
-
end
|
119
|
-
|
120
124
|
if attributes.key?(:'inbox_id')
|
121
125
|
self.inbox_id = attributes[:'inbox_id']
|
122
126
|
end
|
@@ -143,10 +147,6 @@ module MailSlurpClient
|
|
143
147
|
self.created_at = attributes[:'created_at']
|
144
148
|
end
|
145
149
|
|
146
|
-
if attributes.key?(:'body_md5_hash')
|
147
|
-
self.body_md5_hash = attributes[:'body_md5_hash']
|
148
|
-
end
|
149
|
-
|
150
150
|
if attributes.key?(:'virtual_send')
|
151
151
|
self.virtual_send = attributes[:'virtual_send']
|
152
152
|
end
|
@@ -160,14 +160,14 @@ module MailSlurpClient
|
|
160
160
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
161
161
|
end
|
162
162
|
|
163
|
-
if @attachments.nil?
|
164
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
165
|
-
end
|
166
|
-
|
167
163
|
if @user_id.nil?
|
168
164
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
169
165
|
end
|
170
166
|
|
167
|
+
if @attachments.nil?
|
168
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
169
|
+
end
|
170
|
+
|
171
171
|
if @inbox_id.nil?
|
172
172
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
173
173
|
end
|
@@ -199,8 +199,8 @@ module MailSlurpClient
|
|
199
199
|
# @return true if the model is valid
|
200
200
|
def valid?
|
201
201
|
return false if @id.nil?
|
202
|
-
return false if @attachments.nil?
|
203
202
|
return false if @user_id.nil?
|
203
|
+
return false if @attachments.nil?
|
204
204
|
return false if @inbox_id.nil?
|
205
205
|
return false if @to.nil?
|
206
206
|
return false if @bcc.nil?
|
@@ -216,16 +216,16 @@ module MailSlurpClient
|
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
218
|
id == o.id &&
|
219
|
+
user_id == o.user_id &&
|
220
|
+
body_md5_hash == o.body_md5_hash &&
|
219
221
|
from == o.from &&
|
220
222
|
subject == o.subject &&
|
221
223
|
attachments == o.attachments &&
|
222
|
-
user_id == o.user_id &&
|
223
224
|
inbox_id == o.inbox_id &&
|
224
225
|
to == o.to &&
|
225
226
|
bcc == o.bcc &&
|
226
227
|
cc == o.cc &&
|
227
228
|
created_at == o.created_at &&
|
228
|
-
body_md5_hash == o.body_md5_hash &&
|
229
229
|
virtual_send == o.virtual_send
|
230
230
|
end
|
231
231
|
|
@@ -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, user_id, body_md5_hash, from, subject, attachments, inbox_id, to, bcc, cc, created_at, 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
|