mailslurp_client 15.17.7 → 15.17.8
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/api/sms_controller_api.rb +56 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_projection.rb +24 -24
- data/lib/mailslurp_client/models/connector_projection.rb +18 -18
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- 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: 04cb04b6a92ea79a6a1b9bdeabab985e58d86becffc0478c1d30061d588e75ed
|
4
|
+
data.tar.gz: 2ac5c05bcffe13436ec0f0ee580cf67f0610c09a4907f06853104b4c19dffe69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5650e90e75bdc10929cd18721579638016fecec039b356c565b984d7bc76a4957a0905a6fd7f1fa1fcbbc856d04931dd9879f1af289dc8c9a4bbf0438e56f387
|
7
|
+
data.tar.gz: ef27ee06ff7c6b210c6e79aef0bfa12a7f8f713cae3ba2ea0239e3072fd9b7f073557a1fbbc5f762f5c639b22b3b2276aaaf30ee1722a3406df5fe29673cad4d
|
@@ -282,5 +282,61 @@ module MailSlurpClient
|
|
282
282
|
end
|
283
283
|
return data, status_code, headers
|
284
284
|
end
|
285
|
+
|
286
|
+
# Get unread SMS count
|
287
|
+
# Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [UnreadCount]
|
290
|
+
def get_unread_sms_count(opts = {})
|
291
|
+
data, _status_code, _headers = get_unread_sms_count_with_http_info(opts)
|
292
|
+
data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Get unread SMS count
|
296
|
+
# Get number of SMS unread. Unread means has not been viewed in dashboard or returned in an email API response
|
297
|
+
# @param [Hash] opts the optional parameters
|
298
|
+
# @return [Array<(UnreadCount, Integer, Hash)>] UnreadCount data, response status code and response headers
|
299
|
+
def get_unread_sms_count_with_http_info(opts = {})
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug 'Calling API: SmsControllerApi.get_unread_sms_count ...'
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '/sms/unreadCount'
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = opts[:query_params] || {}
|
308
|
+
|
309
|
+
# header parameters
|
310
|
+
header_params = opts[:header_params] || {}
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
313
|
+
|
314
|
+
# form parameters
|
315
|
+
form_params = opts[:form_params] || {}
|
316
|
+
|
317
|
+
# http body (model)
|
318
|
+
post_body = opts[:body]
|
319
|
+
|
320
|
+
# return_type
|
321
|
+
return_type = opts[:return_type] || 'UnreadCount'
|
322
|
+
|
323
|
+
# auth_names
|
324
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
325
|
+
|
326
|
+
new_options = opts.merge(
|
327
|
+
:header_params => header_params,
|
328
|
+
:query_params => query_params,
|
329
|
+
:form_params => form_params,
|
330
|
+
:body => post_body,
|
331
|
+
:auth_names => auth_names,
|
332
|
+
:return_type => return_type
|
333
|
+
)
|
334
|
+
|
335
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "API called: SmsControllerApi#get_unread_sms_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
285
341
|
end
|
286
342
|
end
|
@@ -20,9 +20,6 @@ module MailSlurpClient
|
|
20
20
|
# Content length of attachment in bytes
|
21
21
|
attr_accessor :content_length
|
22
22
|
|
23
|
-
# Content type of attachment.
|
24
|
-
attr_accessor :content_type
|
25
|
-
|
26
23
|
attr_accessor :user_id
|
27
24
|
|
28
25
|
attr_accessor :created_at
|
@@ -32,16 +29,19 @@ module MailSlurpClient
|
|
32
29
|
# Attachment ID
|
33
30
|
attr_accessor :attachment_id
|
34
31
|
|
32
|
+
# Content type of attachment.
|
33
|
+
attr_accessor :content_type
|
34
|
+
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
36
|
def self.attribute_map
|
37
37
|
{
|
38
38
|
:'name' => :'name',
|
39
39
|
:'content_length' => :'contentLength',
|
40
|
-
:'content_type' => :'contentType',
|
41
40
|
:'user_id' => :'userId',
|
42
41
|
:'created_at' => :'createdAt',
|
43
42
|
:'updated_at' => :'updatedAt',
|
44
|
-
:'attachment_id' => :'attachmentId'
|
43
|
+
:'attachment_id' => :'attachmentId',
|
44
|
+
:'content_type' => :'contentType'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -50,11 +50,11 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'content_length' => :'Integer',
|
53
|
-
:'content_type' => :'String',
|
54
53
|
:'user_id' => :'String',
|
55
54
|
:'created_at' => :'DateTime',
|
56
55
|
:'updated_at' => :'DateTime',
|
57
|
-
:'attachment_id' => :'String'
|
56
|
+
:'attachment_id' => :'String',
|
57
|
+
:'content_type' => :'String'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -63,7 +63,7 @@ module MailSlurpClient
|
|
63
63
|
Set.new([
|
64
64
|
:'name',
|
65
65
|
:'content_length',
|
66
|
-
:'content_type'
|
66
|
+
:'content_type'
|
67
67
|
])
|
68
68
|
end
|
69
69
|
|
@@ -90,10 +90,6 @@ module MailSlurpClient
|
|
90
90
|
self.content_length = attributes[:'content_length']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'content_type')
|
94
|
-
self.content_type = attributes[:'content_type']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.key?(:'user_id')
|
98
94
|
self.user_id = attributes[:'user_id']
|
99
95
|
end
|
@@ -109,6 +105,10 @@ module MailSlurpClient
|
|
109
105
|
if attributes.key?(:'attachment_id')
|
110
106
|
self.attachment_id = attributes[:'attachment_id']
|
111
107
|
end
|
108
|
+
|
109
|
+
if attributes.key?(:'content_type')
|
110
|
+
self.content_type = attributes[:'content_type']
|
111
|
+
end
|
112
112
|
end
|
113
113
|
|
114
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,11 +151,11 @@ module MailSlurpClient
|
|
151
151
|
self.class == o.class &&
|
152
152
|
name == o.name &&
|
153
153
|
content_length == o.content_length &&
|
154
|
-
content_type == o.content_type &&
|
155
154
|
user_id == o.user_id &&
|
156
155
|
created_at == o.created_at &&
|
157
156
|
updated_at == o.updated_at &&
|
158
|
-
attachment_id == o.attachment_id
|
157
|
+
attachment_id == o.attachment_id &&
|
158
|
+
content_type == o.content_type
|
159
159
|
end
|
160
160
|
|
161
161
|
# @see the `==` method
|
@@ -167,7 +167,7 @@ module MailSlurpClient
|
|
167
167
|
# Calculates hash code according to all attributes.
|
168
168
|
# @return [Integer] Hash code
|
169
169
|
def hash
|
170
|
-
[name, content_length,
|
170
|
+
[name, content_length, user_id, created_at, updated_at, attachment_id, content_type].hash
|
171
171
|
end
|
172
172
|
|
173
173
|
# Builds the object from hash
|
@@ -17,25 +17,25 @@ module MailSlurpClient
|
|
17
17
|
class BounceProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :sender
|
21
|
-
|
22
20
|
attr_accessor :subject
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :sender
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :created_at
|
27
25
|
|
28
26
|
attr_accessor :bounce_type
|
29
27
|
|
28
|
+
attr_accessor :bounce_mta
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'sender' => :'sender',
|
35
34
|
:'subject' => :'subject',
|
35
|
+
:'sender' => :'sender',
|
36
36
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'bounce_type' => :'bounceType',
|
38
|
+
:'bounce_mta' => :'bounceMta'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,11 +43,11 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'sender' => :'String',
|
47
46
|
:'subject' => :'String',
|
47
|
+
:'sender' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'bounce_type' => :'String',
|
50
|
+
:'bounce_mta' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module MailSlurpClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'subject',
|
58
|
-
:'
|
59
|
-
:'
|
58
|
+
:'bounce_type',
|
59
|
+
:'bounce_mta'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,25 +79,25 @@ module MailSlurpClient
|
|
79
79
|
self.id = attributes[:'id']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'sender')
|
83
|
-
self.sender = attributes[:'sender']
|
84
|
-
end
|
85
|
-
|
86
82
|
if attributes.key?(:'subject')
|
87
83
|
self.subject = attributes[:'subject']
|
88
84
|
end
|
89
85
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
86
|
+
if attributes.key?(:'sender')
|
87
|
+
self.sender = attributes[:'sender']
|
92
88
|
end
|
93
89
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
90
|
+
if attributes.key?(:'created_at')
|
91
|
+
self.created_at = attributes[:'created_at']
|
96
92
|
end
|
97
93
|
|
98
94
|
if attributes.key?(:'bounce_type')
|
99
95
|
self.bounce_type = attributes[:'bounce_type']
|
100
96
|
end
|
97
|
+
|
98
|
+
if attributes.key?(:'bounce_mta')
|
99
|
+
self.bounce_mta = attributes[:'bounce_mta']
|
100
|
+
end
|
101
101
|
end
|
102
102
|
|
103
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,11 +129,11 @@ module MailSlurpClient
|
|
129
129
|
return true if self.equal?(o)
|
130
130
|
self.class == o.class &&
|
131
131
|
id == o.id &&
|
132
|
-
sender == o.sender &&
|
133
132
|
subject == o.subject &&
|
133
|
+
sender == o.sender &&
|
134
134
|
created_at == o.created_at &&
|
135
|
-
|
136
|
-
|
135
|
+
bounce_type == o.bounce_type &&
|
136
|
+
bounce_mta == o.bounce_mta
|
137
137
|
end
|
138
138
|
|
139
139
|
# @see the `==` method
|
@@ -145,7 +145,7 @@ module MailSlurpClient
|
|
145
145
|
# Calculates hash code according to all attributes.
|
146
146
|
# @return [Integer] Hash code
|
147
147
|
def hash
|
148
|
-
[id,
|
148
|
+
[id, subject, sender, created_at, bounce_type, bounce_mta].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -23,14 +23,14 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
|
-
attr_accessor :sync_enabled
|
27
|
-
|
28
26
|
attr_accessor :connector_type
|
29
27
|
|
30
28
|
attr_accessor :sync_schedule_type
|
31
29
|
|
32
30
|
attr_accessor :sync_interval
|
33
31
|
|
32
|
+
attr_accessor :sync_enabled
|
33
|
+
|
34
34
|
class EnumAttributeValidator
|
35
35
|
attr_reader :datatype
|
36
36
|
attr_reader :allowable_values
|
@@ -60,10 +60,10 @@ module MailSlurpClient
|
|
60
60
|
:'inbox_id' => :'inboxId',
|
61
61
|
:'user_id' => :'userId',
|
62
62
|
:'created_at' => :'createdAt',
|
63
|
-
:'sync_enabled' => :'syncEnabled',
|
64
63
|
:'connector_type' => :'connectorType',
|
65
64
|
:'sync_schedule_type' => :'syncScheduleType',
|
66
|
-
:'sync_interval' => :'syncInterval'
|
65
|
+
:'sync_interval' => :'syncInterval',
|
66
|
+
:'sync_enabled' => :'syncEnabled'
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
@@ -74,10 +74,10 @@ module MailSlurpClient
|
|
74
74
|
:'inbox_id' => :'String',
|
75
75
|
:'user_id' => :'String',
|
76
76
|
:'created_at' => :'DateTime',
|
77
|
-
:'sync_enabled' => :'Boolean',
|
78
77
|
:'connector_type' => :'String',
|
79
78
|
:'sync_schedule_type' => :'String',
|
80
|
-
:'sync_interval' => :'Integer'
|
79
|
+
:'sync_interval' => :'Integer',
|
80
|
+
:'sync_enabled' => :'Boolean'
|
81
81
|
}
|
82
82
|
end
|
83
83
|
|
@@ -118,10 +118,6 @@ module MailSlurpClient
|
|
118
118
|
self.created_at = attributes[:'created_at']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'sync_enabled')
|
122
|
-
self.sync_enabled = attributes[:'sync_enabled']
|
123
|
-
end
|
124
|
-
|
125
121
|
if attributes.key?(:'connector_type')
|
126
122
|
self.connector_type = attributes[:'connector_type']
|
127
123
|
end
|
@@ -133,6 +129,10 @@ module MailSlurpClient
|
|
133
129
|
if attributes.key?(:'sync_interval')
|
134
130
|
self.sync_interval = attributes[:'sync_interval']
|
135
131
|
end
|
132
|
+
|
133
|
+
if attributes.key?(:'sync_enabled')
|
134
|
+
self.sync_enabled = attributes[:'sync_enabled']
|
135
|
+
end
|
136
136
|
end
|
137
137
|
|
138
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,10 +151,6 @@ module MailSlurpClient
|
|
151
151
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
152
152
|
end
|
153
153
|
|
154
|
-
if @sync_enabled.nil?
|
155
|
-
invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
154
|
if @connector_type.nil?
|
159
155
|
invalid_properties.push('invalid value for "connector_type", connector_type cannot be nil.')
|
160
156
|
end
|
@@ -163,6 +159,10 @@ module MailSlurpClient
|
|
163
159
|
invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
|
164
160
|
end
|
165
161
|
|
162
|
+
if @sync_enabled.nil?
|
163
|
+
invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
|
164
|
+
end
|
165
|
+
|
166
166
|
invalid_properties
|
167
167
|
end
|
168
168
|
|
@@ -172,13 +172,13 @@ module MailSlurpClient
|
|
172
172
|
return false if @inbox_id.nil?
|
173
173
|
return false if @user_id.nil?
|
174
174
|
return false if @created_at.nil?
|
175
|
-
return false if @sync_enabled.nil?
|
176
175
|
return false if @connector_type.nil?
|
177
176
|
connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
|
178
177
|
return false unless connector_type_validator.valid?(@connector_type)
|
179
178
|
return false if @sync_schedule_type.nil?
|
180
179
|
sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
|
181
180
|
return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
|
181
|
+
return false if @sync_enabled.nil?
|
182
182
|
true
|
183
183
|
end
|
184
184
|
|
@@ -211,10 +211,10 @@ module MailSlurpClient
|
|
211
211
|
inbox_id == o.inbox_id &&
|
212
212
|
user_id == o.user_id &&
|
213
213
|
created_at == o.created_at &&
|
214
|
-
sync_enabled == o.sync_enabled &&
|
215
214
|
connector_type == o.connector_type &&
|
216
215
|
sync_schedule_type == o.sync_schedule_type &&
|
217
|
-
sync_interval == o.sync_interval
|
216
|
+
sync_interval == o.sync_interval &&
|
217
|
+
sync_enabled == o.sync_enabled
|
218
218
|
end
|
219
219
|
|
220
220
|
# @see the `==` method
|
@@ -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
|
-
[id, inbox_id, user_id, created_at,
|
229
|
+
[id, inbox_id, user_id, created_at, connector_type, sync_schedule_type, sync_interval, sync_enabled].hash
|
230
230
|
end
|
231
231
|
|
232
232
|
# Builds the object from hash
|
@@ -33,10 +33,10 @@ module MailSlurpClient
|
|
33
33
|
|
34
34
|
attr_accessor :cc
|
35
35
|
|
36
|
-
attr_accessor :domain_id
|
37
|
-
|
38
36
|
attr_accessor :read
|
39
37
|
|
38
|
+
attr_accessor :domain_id
|
39
|
+
|
40
40
|
attr_accessor :body_excerpt
|
41
41
|
|
42
42
|
attr_accessor :team_access
|
@@ -55,8 +55,8 @@ module MailSlurpClient
|
|
55
55
|
:'to' => :'to',
|
56
56
|
:'bcc' => :'bcc',
|
57
57
|
:'cc' => :'cc',
|
58
|
-
:'domain_id' => :'domainId',
|
59
58
|
:'read' => :'read',
|
59
|
+
:'domain_id' => :'domainId',
|
60
60
|
:'body_excerpt' => :'bodyExcerpt',
|
61
61
|
:'team_access' => :'teamAccess',
|
62
62
|
:'body_md5_hash' => :'bodyMD5Hash'
|
@@ -75,8 +75,8 @@ module MailSlurpClient
|
|
75
75
|
:'to' => :'Array<String>',
|
76
76
|
:'bcc' => :'Array<String>',
|
77
77
|
:'cc' => :'Array<String>',
|
78
|
-
:'domain_id' => :'String',
|
79
78
|
:'read' => :'Boolean',
|
79
|
+
:'domain_id' => :'String',
|
80
80
|
:'body_excerpt' => :'String',
|
81
81
|
:'team_access' => :'Boolean',
|
82
82
|
:'body_md5_hash' => :'String'
|
@@ -156,14 +156,14 @@ module MailSlurpClient
|
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
159
|
-
if attributes.key?(:'domain_id')
|
160
|
-
self.domain_id = attributes[:'domain_id']
|
161
|
-
end
|
162
|
-
|
163
159
|
if attributes.key?(:'read')
|
164
160
|
self.read = attributes[:'read']
|
165
161
|
end
|
166
162
|
|
163
|
+
if attributes.key?(:'domain_id')
|
164
|
+
self.domain_id = attributes[:'domain_id']
|
165
|
+
end
|
166
|
+
|
167
167
|
if attributes.key?(:'body_excerpt')
|
168
168
|
self.body_excerpt = attributes[:'body_excerpt']
|
169
169
|
end
|
@@ -234,8 +234,8 @@ module MailSlurpClient
|
|
234
234
|
to == o.to &&
|
235
235
|
bcc == o.bcc &&
|
236
236
|
cc == o.cc &&
|
237
|
-
domain_id == o.domain_id &&
|
238
237
|
read == o.read &&
|
238
|
+
domain_id == o.domain_id &&
|
239
239
|
body_excerpt == o.body_excerpt &&
|
240
240
|
team_access == o.team_access &&
|
241
241
|
body_md5_hash == o.body_md5_hash
|
@@ -250,7 +250,7 @@ module MailSlurpClient
|
|
250
250
|
# Calculates hash code according to all attributes.
|
251
251
|
# @return [Integer] Hash code
|
252
252
|
def hash
|
253
|
-
[id, from, subject, inbox_id, attachments, created_at, to, bcc, cc,
|
253
|
+
[id, from, subject, inbox_id, attachments, created_at, to, bcc, cc, read, domain_id, body_excerpt, team_access, body_md5_hash].hash
|
254
254
|
end
|
255
255
|
|
256
256
|
# Builds the object from hash
|
@@ -21,22 +21,22 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :last
|
25
|
-
|
26
24
|
attr_accessor :total_elements
|
27
25
|
|
28
26
|
attr_accessor :total_pages
|
29
27
|
|
28
|
+
attr_accessor :last
|
29
|
+
|
30
30
|
attr_accessor :size
|
31
31
|
|
32
32
|
attr_accessor :number
|
33
33
|
|
34
34
|
attr_accessor :sort
|
35
35
|
|
36
|
-
attr_accessor :first
|
37
|
-
|
38
36
|
attr_accessor :number_of_elements
|
39
37
|
|
38
|
+
attr_accessor :first
|
39
|
+
|
40
40
|
attr_accessor :empty
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,14 +45,14 @@ module MailSlurpClient
|
|
45
45
|
:'content' => :'content',
|
46
46
|
:'pageable' => :'pageable',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'last' => :'last',
|
49
48
|
:'total_elements' => :'totalElements',
|
50
49
|
:'total_pages' => :'totalPages',
|
50
|
+
:'last' => :'last',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
54
|
-
:'first' => :'first',
|
55
54
|
:'number_of_elements' => :'numberOfElements',
|
55
|
+
:'first' => :'first',
|
56
56
|
:'empty' => :'empty'
|
57
57
|
}
|
58
58
|
end
|
@@ -63,14 +63,14 @@ module MailSlurpClient
|
|
63
63
|
:'content' => :'Array<AliasProjection>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
-
:'last' => :'Boolean',
|
67
66
|
:'total_elements' => :'Integer',
|
68
67
|
:'total_pages' => :'Integer',
|
68
|
+
:'last' => :'Boolean',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
72
|
-
:'first' => :'Boolean',
|
73
72
|
:'number_of_elements' => :'Integer',
|
73
|
+
:'first' => :'Boolean',
|
74
74
|
:'empty' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -110,10 +110,6 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'last')
|
114
|
-
self.last = attributes[:'last']
|
115
|
-
end
|
116
|
-
|
117
113
|
if attributes.key?(:'total_elements')
|
118
114
|
self.total_elements = attributes[:'total_elements']
|
119
115
|
end
|
@@ -122,6 +118,10 @@ module MailSlurpClient
|
|
122
118
|
self.total_pages = attributes[:'total_pages']
|
123
119
|
end
|
124
120
|
|
121
|
+
if attributes.key?(:'last')
|
122
|
+
self.last = attributes[:'last']
|
123
|
+
end
|
124
|
+
|
125
125
|
if attributes.key?(:'size')
|
126
126
|
self.size = attributes[:'size']
|
127
127
|
end
|
@@ -134,14 +134,14 @@ module MailSlurpClient
|
|
134
134
|
self.sort = attributes[:'sort']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'first')
|
138
|
-
self.first = attributes[:'first']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'number_of_elements')
|
142
138
|
self.number_of_elements = attributes[:'number_of_elements']
|
143
139
|
end
|
144
140
|
|
141
|
+
if attributes.key?(:'first')
|
142
|
+
self.first = attributes[:'first']
|
143
|
+
end
|
144
|
+
|
145
145
|
if attributes.key?(:'empty')
|
146
146
|
self.empty = attributes[:'empty']
|
147
147
|
end
|
@@ -168,14 +168,14 @@ module MailSlurpClient
|
|
168
168
|
content == o.content &&
|
169
169
|
pageable == o.pageable &&
|
170
170
|
total == o.total &&
|
171
|
-
last == o.last &&
|
172
171
|
total_elements == o.total_elements &&
|
173
172
|
total_pages == o.total_pages &&
|
173
|
+
last == o.last &&
|
174
174
|
size == o.size &&
|
175
175
|
number == o.number &&
|
176
176
|
sort == o.sort &&
|
177
|
-
first == o.first &&
|
178
177
|
number_of_elements == o.number_of_elements &&
|
178
|
+
first == o.first &&
|
179
179
|
empty == o.empty
|
180
180
|
end
|
181
181
|
|
@@ -188,7 +188,7 @@ module MailSlurpClient
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[content, pageable, total,
|
191
|
+
[content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|