mailslurp_client 15.17.39 → 15.17.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -22
- data/lib/mailslurp_client/models/alias_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_projection.rb +24 -24
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +28 -28
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +41 -41
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +45 -45
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
@@ -15,10 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Connector
|
17
17
|
class ConnectorProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
+
attr_accessor :inbox_id
|
23
|
+
|
22
24
|
attr_accessor :sync_enabled
|
23
25
|
|
24
26
|
attr_accessor :connector_type
|
@@ -27,8 +29,6 @@ module MailSlurpClient
|
|
27
29
|
|
28
30
|
attr_accessor :sync_interval
|
29
31
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
32
|
attr_accessor :id
|
33
33
|
|
34
34
|
class EnumAttributeValidator
|
@@ -56,13 +56,13 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'
|
59
|
+
:'created_at' => :'createdAt',
|
60
60
|
:'user_id' => :'userId',
|
61
|
+
:'inbox_id' => :'inboxId',
|
61
62
|
:'sync_enabled' => :'syncEnabled',
|
62
63
|
:'connector_type' => :'connectorType',
|
63
64
|
:'sync_schedule_type' => :'syncScheduleType',
|
64
65
|
:'sync_interval' => :'syncInterval',
|
65
|
-
:'created_at' => :'createdAt',
|
66
66
|
:'id' => :'id'
|
67
67
|
}
|
68
68
|
end
|
@@ -70,13 +70,13 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'
|
73
|
+
:'created_at' => :'DateTime',
|
74
74
|
:'user_id' => :'String',
|
75
|
+
:'inbox_id' => :'String',
|
75
76
|
:'sync_enabled' => :'Boolean',
|
76
77
|
:'connector_type' => :'String',
|
77
78
|
:'sync_schedule_type' => :'String',
|
78
79
|
:'sync_interval' => :'Integer',
|
79
|
-
:'created_at' => :'DateTime',
|
80
80
|
:'id' => :'String'
|
81
81
|
}
|
82
82
|
end
|
@@ -102,14 +102,18 @@ module MailSlurpClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
105
|
+
if attributes.key?(:'created_at')
|
106
|
+
self.created_at = attributes[:'created_at']
|
107
107
|
end
|
108
108
|
|
109
109
|
if attributes.key?(:'user_id')
|
110
110
|
self.user_id = attributes[:'user_id']
|
111
111
|
end
|
112
112
|
|
113
|
+
if attributes.key?(:'inbox_id')
|
114
|
+
self.inbox_id = attributes[:'inbox_id']
|
115
|
+
end
|
116
|
+
|
113
117
|
if attributes.key?(:'sync_enabled')
|
114
118
|
self.sync_enabled = attributes[:'sync_enabled']
|
115
119
|
end
|
@@ -126,10 +130,6 @@ module MailSlurpClient
|
|
126
130
|
self.sync_interval = attributes[:'sync_interval']
|
127
131
|
end
|
128
132
|
|
129
|
-
if attributes.key?(:'created_at')
|
130
|
-
self.created_at = attributes[:'created_at']
|
131
|
-
end
|
132
|
-
|
133
133
|
if attributes.key?(:'id')
|
134
134
|
self.id = attributes[:'id']
|
135
135
|
end
|
@@ -139,14 +139,18 @@ module MailSlurpClient
|
|
139
139
|
# @return Array for valid properties with the reasons
|
140
140
|
def list_invalid_properties
|
141
141
|
invalid_properties = Array.new
|
142
|
-
if @
|
143
|
-
invalid_properties.push('invalid value for "
|
142
|
+
if @created_at.nil?
|
143
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
144
144
|
end
|
145
145
|
|
146
146
|
if @user_id.nil?
|
147
147
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
148
148
|
end
|
149
149
|
|
150
|
+
if @inbox_id.nil?
|
151
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
152
|
+
end
|
153
|
+
|
150
154
|
if @sync_enabled.nil?
|
151
155
|
invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
|
152
156
|
end
|
@@ -159,18 +163,15 @@ module MailSlurpClient
|
|
159
163
|
invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
|
160
164
|
end
|
161
165
|
|
162
|
-
if @created_at.nil?
|
163
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
166
|
invalid_properties
|
167
167
|
end
|
168
168
|
|
169
169
|
# Check to see if the all the properties in the model are valid
|
170
170
|
# @return true if the model is valid
|
171
171
|
def valid?
|
172
|
-
return false if @
|
172
|
+
return false if @created_at.nil?
|
173
173
|
return false if @user_id.nil?
|
174
|
+
return false if @inbox_id.nil?
|
174
175
|
return false if @sync_enabled.nil?
|
175
176
|
return false if @connector_type.nil?
|
176
177
|
connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
|
@@ -178,7 +179,6 @@ module MailSlurpClient
|
|
178
179
|
return false if @sync_schedule_type.nil?
|
179
180
|
sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
|
180
181
|
return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
|
181
|
-
return false if @created_at.nil?
|
182
182
|
true
|
183
183
|
end
|
184
184
|
|
@@ -207,13 +207,13 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
|
210
|
+
created_at == o.created_at &&
|
211
211
|
user_id == o.user_id &&
|
212
|
+
inbox_id == o.inbox_id &&
|
212
213
|
sync_enabled == o.sync_enabled &&
|
213
214
|
connector_type == o.connector_type &&
|
214
215
|
sync_schedule_type == o.sync_schedule_type &&
|
215
216
|
sync_interval == o.sync_interval &&
|
216
|
-
created_at == o.created_at &&
|
217
217
|
id == o.id
|
218
218
|
end
|
219
219
|
|
@@ -226,7 +226,7 @@ module MailSlurpClient
|
|
226
226
|
# Calculates hash code according to all attributes.
|
227
227
|
# @return [Integer] Hash code
|
228
228
|
def hash
|
229
|
-
[
|
229
|
+
[created_at, user_id, inbox_id, sync_enabled, connector_type, sync_schedule_type, sync_interval, id].hash
|
230
230
|
end
|
231
231
|
|
232
232
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# ConnectorSyncEventProjection
|
17
17
|
class ConnectorSyncEventProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :connector_id
|
19
21
|
|
20
22
|
attr_accessor :sync_count
|
21
23
|
|
22
24
|
attr_accessor :sync_status
|
23
25
|
|
24
|
-
attr_accessor :created_at
|
25
|
-
|
26
26
|
attr_accessor :message
|
27
27
|
|
28
28
|
attr_accessor :id
|
@@ -52,10 +52,10 @@ module MailSlurpClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
+
:'created_at' => :'createdAt',
|
55
56
|
:'connector_id' => :'connectorId',
|
56
57
|
:'sync_count' => :'syncCount',
|
57
58
|
:'sync_status' => :'syncStatus',
|
58
|
-
:'created_at' => :'createdAt',
|
59
59
|
:'message' => :'message',
|
60
60
|
:'id' => :'id'
|
61
61
|
}
|
@@ -64,10 +64,10 @@ module MailSlurpClient
|
|
64
64
|
# Attribute type mapping.
|
65
65
|
def self.openapi_types
|
66
66
|
{
|
67
|
+
:'created_at' => :'DateTime',
|
67
68
|
:'connector_id' => :'String',
|
68
69
|
:'sync_count' => :'Integer',
|
69
70
|
:'sync_status' => :'String',
|
70
|
-
:'created_at' => :'DateTime',
|
71
71
|
:'message' => :'String',
|
72
72
|
:'id' => :'String'
|
73
73
|
}
|
@@ -94,6 +94,10 @@ module MailSlurpClient
|
|
94
94
|
h[k.to_sym] = v
|
95
95
|
}
|
96
96
|
|
97
|
+
if attributes.key?(:'created_at')
|
98
|
+
self.created_at = attributes[:'created_at']
|
99
|
+
end
|
100
|
+
|
97
101
|
if attributes.key?(:'connector_id')
|
98
102
|
self.connector_id = attributes[:'connector_id']
|
99
103
|
end
|
@@ -106,10 +110,6 @@ module MailSlurpClient
|
|
106
110
|
self.sync_status = attributes[:'sync_status']
|
107
111
|
end
|
108
112
|
|
109
|
-
if attributes.key?(:'created_at')
|
110
|
-
self.created_at = attributes[:'created_at']
|
111
|
-
end
|
112
|
-
|
113
113
|
if attributes.key?(:'message')
|
114
114
|
self.message = attributes[:'message']
|
115
115
|
end
|
@@ -123,6 +123,10 @@ module MailSlurpClient
|
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
126
|
+
if @created_at.nil?
|
127
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
128
|
+
end
|
129
|
+
|
126
130
|
if @connector_id.nil?
|
127
131
|
invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
|
128
132
|
end
|
@@ -135,22 +139,18 @@ module MailSlurpClient
|
|
135
139
|
invalid_properties.push('invalid value for "sync_status", sync_status cannot be nil.')
|
136
140
|
end
|
137
141
|
|
138
|
-
if @created_at.nil?
|
139
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
140
|
-
end
|
141
|
-
|
142
142
|
invalid_properties
|
143
143
|
end
|
144
144
|
|
145
145
|
# Check to see if the all the properties in the model are valid
|
146
146
|
# @return true if the model is valid
|
147
147
|
def valid?
|
148
|
+
return false if @created_at.nil?
|
148
149
|
return false if @connector_id.nil?
|
149
150
|
return false if @sync_count.nil?
|
150
151
|
return false if @sync_status.nil?
|
151
152
|
sync_status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "INTERNAL_ERROR", "SUBSCRIPTION_ERROR", "CONNECTION_ERROR", "NOT_FOUND"])
|
152
153
|
return false unless sync_status_validator.valid?(@sync_status)
|
153
|
-
return false if @created_at.nil?
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -169,10 +169,10 @@ module MailSlurpClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
+
created_at == o.created_at &&
|
172
173
|
connector_id == o.connector_id &&
|
173
174
|
sync_count == o.sync_count &&
|
174
175
|
sync_status == o.sync_status &&
|
175
|
-
created_at == o.created_at &&
|
176
176
|
message == o.message &&
|
177
177
|
id == o.id
|
178
178
|
end
|
@@ -186,7 +186,7 @@ module MailSlurpClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[connector_id, sync_count, sync_status,
|
189
|
+
[created_at, connector_id, sync_count, sync_status, message, id].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email contact for address book
|
17
17
|
class ContactProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :email_address
|
19
21
|
|
20
22
|
attr_accessor :email_addresses
|
@@ -27,8 +29,6 @@ module MailSlurpClient
|
|
27
29
|
|
28
30
|
attr_accessor :opt_out
|
29
31
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
32
|
attr_accessor :id
|
33
33
|
|
34
34
|
attr_accessor :group_id
|
@@ -36,13 +36,13 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
+
:'created_at' => :'createdAt',
|
39
40
|
:'email_address' => :'emailAddress',
|
40
41
|
:'email_addresses' => :'emailAddresses',
|
41
42
|
:'first_name' => :'firstName',
|
42
43
|
:'last_name' => :'lastName',
|
43
44
|
:'company' => :'company',
|
44
45
|
:'opt_out' => :'optOut',
|
45
|
-
:'created_at' => :'createdAt',
|
46
46
|
:'id' => :'id',
|
47
47
|
:'group_id' => :'groupId'
|
48
48
|
}
|
@@ -51,13 +51,13 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
+
:'created_at' => :'DateTime',
|
54
55
|
:'email_address' => :'String',
|
55
56
|
:'email_addresses' => :'Array<String>',
|
56
57
|
:'first_name' => :'String',
|
57
58
|
:'last_name' => :'String',
|
58
59
|
:'company' => :'String',
|
59
60
|
:'opt_out' => :'Boolean',
|
60
|
-
:'created_at' => :'DateTime',
|
61
61
|
:'id' => :'String',
|
62
62
|
:'group_id' => :'String'
|
63
63
|
}
|
@@ -91,6 +91,10 @@ module MailSlurpClient
|
|
91
91
|
h[k.to_sym] = v
|
92
92
|
}
|
93
93
|
|
94
|
+
if attributes.key?(:'created_at')
|
95
|
+
self.created_at = attributes[:'created_at']
|
96
|
+
end
|
97
|
+
|
94
98
|
if attributes.key?(:'email_address')
|
95
99
|
self.email_address = attributes[:'email_address']
|
96
100
|
end
|
@@ -117,10 +121,6 @@ module MailSlurpClient
|
|
117
121
|
self.opt_out = attributes[:'opt_out']
|
118
122
|
end
|
119
123
|
|
120
|
-
if attributes.key?(:'created_at')
|
121
|
-
self.created_at = attributes[:'created_at']
|
122
|
-
end
|
123
|
-
|
124
124
|
if attributes.key?(:'id')
|
125
125
|
self.id = attributes[:'id']
|
126
126
|
end
|
@@ -158,13 +158,13 @@ module MailSlurpClient
|
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
+
created_at == o.created_at &&
|
161
162
|
email_address == o.email_address &&
|
162
163
|
email_addresses == o.email_addresses &&
|
163
164
|
first_name == o.first_name &&
|
164
165
|
last_name == o.last_name &&
|
165
166
|
company == o.company &&
|
166
167
|
opt_out == o.opt_out &&
|
167
|
-
created_at == o.created_at &&
|
168
168
|
id == o.id &&
|
169
169
|
group_id == o.group_id
|
170
170
|
end
|
@@ -178,7 +178,7 @@ module MailSlurpClient
|
|
178
178
|
# Calculates hash code according to all attributes.
|
179
179
|
# @return [Integer] Hash code
|
180
180
|
def hash
|
181
|
-
[email_address, email_addresses, first_name, last_name, company, opt_out,
|
181
|
+
[created_at, email_address, email_addresses, first_name, last_name, company, opt_out, id, group_id].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# 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 :xamp_html
|
100
|
-
|
101
99
|
attr_accessor :html
|
102
100
|
|
101
|
+
attr_accessor :xamp_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
|
+
:'html' => :'html',
|
135
|
+
:'xamp_html' => :'xampHtml'
|
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
|
+
:'html' => :'Boolean',
|
171
|
+
:'xamp_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?(:'xamp_html')
|
343
|
-
self.xamp_html = attributes[:'xamp_html']
|
344
|
-
end
|
345
|
-
|
346
342
|
if attributes.key?(:'html')
|
347
343
|
self.html = attributes[:'html']
|
348
344
|
end
|
345
|
+
|
346
|
+
if attributes.key?(:'xamp_html')
|
347
|
+
self.xamp_html = attributes[:'xamp_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
|
+
html == o.html &&
|
438
|
+
xamp_html == o.xamp_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, html, xamp_html].hash
|
451
451
|
end
|
452
452
|
|
453
453
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ 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 :
|
19
|
-
|
20
|
-
attr_accessor :inbox_id
|
18
|
+
attr_accessor :created_at
|
21
19
|
|
22
20
|
attr_accessor :attachments
|
23
21
|
|
22
|
+
attr_accessor :inbox_id
|
23
|
+
|
24
24
|
attr_accessor :to
|
25
25
|
|
26
26
|
attr_accessor :domain_id
|
@@ -39,7 +39,7 @@ module MailSlurpClient
|
|
39
39
|
|
40
40
|
attr_accessor :text_excerpt
|
41
41
|
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :subject
|
43
43
|
|
44
44
|
attr_accessor :id
|
45
45
|
|
@@ -48,9 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'
|
52
|
-
:'inbox_id' => :'inboxId',
|
51
|
+
:'created_at' => :'createdAt',
|
53
52
|
:'attachments' => :'attachments',
|
53
|
+
:'inbox_id' => :'inboxId',
|
54
54
|
:'to' => :'to',
|
55
55
|
:'domain_id' => :'domainId',
|
56
56
|
:'bcc' => :'bcc',
|
@@ -60,7 +60,7 @@ module MailSlurpClient
|
|
60
60
|
:'team_access' => :'teamAccess',
|
61
61
|
:'body_md5_hash' => :'bodyMD5Hash',
|
62
62
|
:'text_excerpt' => :'textExcerpt',
|
63
|
-
:'
|
63
|
+
:'subject' => :'subject',
|
64
64
|
:'id' => :'id',
|
65
65
|
:'from' => :'from'
|
66
66
|
}
|
@@ -69,9 +69,9 @@ module MailSlurpClient
|
|
69
69
|
# Attribute type mapping.
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
|
-
:'
|
73
|
-
:'inbox_id' => :'String',
|
72
|
+
:'created_at' => :'DateTime',
|
74
73
|
:'attachments' => :'Array<String>',
|
74
|
+
:'inbox_id' => :'String',
|
75
75
|
:'to' => :'Array<String>',
|
76
76
|
:'domain_id' => :'String',
|
77
77
|
:'bcc' => :'Array<String>',
|
@@ -81,7 +81,7 @@ module MailSlurpClient
|
|
81
81
|
:'team_access' => :'Boolean',
|
82
82
|
:'body_md5_hash' => :'String',
|
83
83
|
:'text_excerpt' => :'String',
|
84
|
-
:'
|
84
|
+
:'subject' => :'String',
|
85
85
|
:'id' => :'String',
|
86
86
|
:'from' => :'String'
|
87
87
|
}
|
@@ -90,7 +90,6 @@ module MailSlurpClient
|
|
90
90
|
# List of attributes with nullable: true
|
91
91
|
def self.openapi_nullable
|
92
92
|
Set.new([
|
93
|
-
:'subject',
|
94
93
|
:'attachments',
|
95
94
|
:'domain_id',
|
96
95
|
:'bcc',
|
@@ -98,6 +97,7 @@ module MailSlurpClient
|
|
98
97
|
:'body_excerpt',
|
99
98
|
:'body_md5_hash',
|
100
99
|
:'text_excerpt',
|
100
|
+
:'subject',
|
101
101
|
:'from'
|
102
102
|
])
|
103
103
|
end
|
@@ -117,12 +117,8 @@ module MailSlurpClient
|
|
117
117
|
h[k.to_sym] = v
|
118
118
|
}
|
119
119
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'inbox_id')
|
125
|
-
self.inbox_id = attributes[:'inbox_id']
|
120
|
+
if attributes.key?(:'created_at')
|
121
|
+
self.created_at = attributes[:'created_at']
|
126
122
|
end
|
127
123
|
|
128
124
|
if attributes.key?(:'attachments')
|
@@ -131,6 +127,10 @@ module MailSlurpClient
|
|
131
127
|
end
|
132
128
|
end
|
133
129
|
|
130
|
+
if attributes.key?(:'inbox_id')
|
131
|
+
self.inbox_id = attributes[:'inbox_id']
|
132
|
+
end
|
133
|
+
|
134
134
|
if attributes.key?(:'to')
|
135
135
|
if (value = attributes[:'to']).is_a?(Array)
|
136
136
|
self.to = value
|
@@ -173,8 +173,8 @@ module MailSlurpClient
|
|
173
173
|
self.text_excerpt = attributes[:'text_excerpt']
|
174
174
|
end
|
175
175
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
176
|
+
if attributes.key?(:'subject')
|
177
|
+
self.subject = attributes[:'subject']
|
178
178
|
end
|
179
179
|
|
180
180
|
if attributes.key?(:'id')
|
@@ -190,6 +190,10 @@ module MailSlurpClient
|
|
190
190
|
# @return Array for valid properties with the reasons
|
191
191
|
def list_invalid_properties
|
192
192
|
invalid_properties = Array.new
|
193
|
+
if @created_at.nil?
|
194
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
195
|
+
end
|
196
|
+
|
193
197
|
if @inbox_id.nil?
|
194
198
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
195
199
|
end
|
@@ -206,10 +210,6 @@ module MailSlurpClient
|
|
206
210
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
207
211
|
end
|
208
212
|
|
209
|
-
if @created_at.nil?
|
210
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
211
|
-
end
|
212
|
-
|
213
213
|
if @id.nil?
|
214
214
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
215
215
|
end
|
@@ -220,11 +220,11 @@ module MailSlurpClient
|
|
220
220
|
# Check to see if the all the properties in the model are valid
|
221
221
|
# @return true if the model is valid
|
222
222
|
def valid?
|
223
|
+
return false if @created_at.nil?
|
223
224
|
return false if @inbox_id.nil?
|
224
225
|
return false if @to.nil?
|
225
226
|
return false if @read.nil?
|
226
227
|
return false if @team_access.nil?
|
227
|
-
return false if @created_at.nil?
|
228
228
|
return false if @id.nil?
|
229
229
|
true
|
230
230
|
end
|
@@ -234,9 +234,9 @@ module MailSlurpClient
|
|
234
234
|
def ==(o)
|
235
235
|
return true if self.equal?(o)
|
236
236
|
self.class == o.class &&
|
237
|
-
|
238
|
-
inbox_id == o.inbox_id &&
|
237
|
+
created_at == o.created_at &&
|
239
238
|
attachments == o.attachments &&
|
239
|
+
inbox_id == o.inbox_id &&
|
240
240
|
to == o.to &&
|
241
241
|
domain_id == o.domain_id &&
|
242
242
|
bcc == o.bcc &&
|
@@ -246,7 +246,7 @@ module MailSlurpClient
|
|
246
246
|
team_access == o.team_access &&
|
247
247
|
body_md5_hash == o.body_md5_hash &&
|
248
248
|
text_excerpt == o.text_excerpt &&
|
249
|
-
|
249
|
+
subject == o.subject &&
|
250
250
|
id == o.id &&
|
251
251
|
from == o.from
|
252
252
|
end
|
@@ -260,7 +260,7 @@ module MailSlurpClient
|
|
260
260
|
# Calculates hash code according to all attributes.
|
261
261
|
# @return [Integer] Hash code
|
262
262
|
def hash
|
263
|
-
[
|
263
|
+
[created_at, attachments, inbox_id, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt, subject, id, from].hash
|
264
264
|
end
|
265
265
|
|
266
266
|
# Builds the object from hash
|