mailslurp_client 15.16.2 → 15.16.4
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/domain_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/email_projection.rb +28 -28
- 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_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_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/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +12 -12
- 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: 2818afe6d4f896b869934204a842292b9ba03dd8bd6dbc8a2d7011e2bc6c7bc7
|
4
|
+
data.tar.gz: d3f610bd841b0ce472bfe5dbc6eeb16e94d612075a6be1a6a4674cfd76152028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edf5f8dd3a6e5eddd536903e55cd7bdefb32706d7ab55a1e374bc9decc9101abd32178252f22a64b9fd13e3fdc5e5fff2e9a03cfb56f2fb9c02595e2ec22e26
|
7
|
+
data.tar.gz: 76d88c34e37b6e22b0e7c607a5eba44121cd6c7336be8fdd3e04b32a0bae77f15e0cfccada3e16c75f9924e3d2f4bc27f69f1f71a7523fc2f97f463899d2ea0d
|
@@ -269,6 +269,68 @@ module MailSlurpClient
|
|
269
269
|
return data, status_code, headers
|
270
270
|
end
|
271
271
|
|
272
|
+
# Get catch all wild card inbox for domain
|
273
|
+
# Get the catch all inbox for a domain for missed emails
|
274
|
+
# @param id [String]
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @return [InboxDto]
|
277
|
+
def get_domain_wildcard_catch_all_inbox(id, opts = {})
|
278
|
+
data, _status_code, _headers = get_domain_wildcard_catch_all_inbox_with_http_info(id, opts)
|
279
|
+
data
|
280
|
+
end
|
281
|
+
|
282
|
+
# Get catch all wild card inbox for domain
|
283
|
+
# Get the catch all inbox for a domain for missed emails
|
284
|
+
# @param id [String]
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
287
|
+
def get_domain_wildcard_catch_all_inbox_with_http_info(id, opts = {})
|
288
|
+
if @api_client.config.debugging
|
289
|
+
@api_client.config.logger.debug 'Calling API: DomainControllerApi.get_domain_wildcard_catch_all_inbox ...'
|
290
|
+
end
|
291
|
+
# verify the required parameter 'id' is set
|
292
|
+
if @api_client.config.client_side_validation && id.nil?
|
293
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DomainControllerApi.get_domain_wildcard_catch_all_inbox"
|
294
|
+
end
|
295
|
+
# resource path
|
296
|
+
local_var_path = '/domains/{id}/wildcard'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
297
|
+
|
298
|
+
# query parameters
|
299
|
+
query_params = opts[:query_params] || {}
|
300
|
+
|
301
|
+
# header parameters
|
302
|
+
header_params = opts[:header_params] || {}
|
303
|
+
# HTTP header 'Accept' (if needed)
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
305
|
+
|
306
|
+
# form parameters
|
307
|
+
form_params = opts[:form_params] || {}
|
308
|
+
|
309
|
+
# http body (model)
|
310
|
+
post_body = opts[:body]
|
311
|
+
|
312
|
+
# return_type
|
313
|
+
return_type = opts[:return_type] || 'InboxDto'
|
314
|
+
|
315
|
+
# auth_names
|
316
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
317
|
+
|
318
|
+
new_options = opts.merge(
|
319
|
+
:header_params => header_params,
|
320
|
+
:query_params => query_params,
|
321
|
+
:form_params => form_params,
|
322
|
+
:body => post_body,
|
323
|
+
:auth_names => auth_names,
|
324
|
+
:return_type => return_type
|
325
|
+
)
|
326
|
+
|
327
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
328
|
+
if @api_client.config.debugging
|
329
|
+
@api_client.config.logger.debug "API called: DomainControllerApi#get_domain_wildcard_catch_all_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
330
|
+
end
|
331
|
+
return data, status_code, headers
|
332
|
+
end
|
333
|
+
|
272
334
|
# Get domains
|
273
335
|
# List all custom domains you have created
|
274
336
|
# @param [Hash] opts the optional parameters
|
@@ -543,6 +543,7 @@ module MailSlurpClient
|
|
543
543
|
# Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
|
544
544
|
# @param email_address [String] Email address
|
545
545
|
# @param [Hash] opts the optional parameters
|
546
|
+
# @option opts [Boolean] :allow_catch_all
|
546
547
|
# @return [InboxExistsDto]
|
547
548
|
def does_inbox_exist(email_address, opts = {})
|
548
549
|
data, _status_code, _headers = does_inbox_exist_with_http_info(email_address, opts)
|
@@ -553,6 +554,7 @@ module MailSlurpClient
|
|
553
554
|
# Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
|
554
555
|
# @param email_address [String] Email address
|
555
556
|
# @param [Hash] opts the optional parameters
|
557
|
+
# @option opts [Boolean] :allow_catch_all
|
556
558
|
# @return [Array<(InboxExistsDto, Integer, Hash)>] InboxExistsDto data, response status code and response headers
|
557
559
|
def does_inbox_exist_with_http_info(email_address, opts = {})
|
558
560
|
if @api_client.config.debugging
|
@@ -568,6 +570,7 @@ module MailSlurpClient
|
|
568
570
|
# query parameters
|
569
571
|
query_params = opts[:query_params] || {}
|
570
572
|
query_params[:'emailAddress'] = email_address
|
573
|
+
query_params[:'allowCatchAll'] = opts[:'allow_catch_all'] if !opts[:'allow_catch_all'].nil?
|
571
574
|
|
572
575
|
# header parameters
|
573
576
|
header_params = opts[:header_params] || {}
|
@@ -20,6 +20,9 @@ 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
|
+
|
23
26
|
attr_accessor :user_id
|
24
27
|
|
25
28
|
attr_accessor :created_at
|
@@ -29,19 +32,16 @@ module MailSlurpClient
|
|
29
32
|
# Attachment ID
|
30
33
|
attr_accessor :attachment_id
|
31
34
|
|
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',
|
40
41
|
:'user_id' => :'userId',
|
41
42
|
:'created_at' => :'createdAt',
|
42
43
|
:'updated_at' => :'updatedAt',
|
43
|
-
:'attachment_id' => :'attachmentId'
|
44
|
-
:'content_type' => :'contentType'
|
44
|
+
:'attachment_id' => :'attachmentId'
|
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',
|
53
54
|
:'user_id' => :'String',
|
54
55
|
:'created_at' => :'DateTime',
|
55
56
|
:'updated_at' => :'DateTime',
|
56
|
-
:'attachment_id' => :'String'
|
57
|
-
:'content_type' => :'String'
|
57
|
+
:'attachment_id' => :'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,6 +90,10 @@ 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
|
+
|
93
97
|
if attributes.key?(:'user_id')
|
94
98
|
self.user_id = attributes[:'user_id']
|
95
99
|
end
|
@@ -105,10 +109,6 @@ module MailSlurpClient
|
|
105
109
|
if attributes.key?(:'attachment_id')
|
106
110
|
self.attachment_id = attributes[:'attachment_id']
|
107
111
|
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 &&
|
154
155
|
user_id == o.user_id &&
|
155
156
|
created_at == o.created_at &&
|
156
157
|
updated_at == o.updated_at &&
|
157
|
-
attachment_id == o.attachment_id
|
158
|
-
content_type == o.content_type
|
158
|
+
attachment_id == o.attachment_id
|
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, user_id, created_at, updated_at, attachment_id
|
170
|
+
[name, content_length, content_type, user_id, created_at, updated_at, attachment_id].hash
|
171
171
|
end
|
172
172
|
|
173
173
|
# Builds the object from hash
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :status
|
21
21
|
|
22
|
-
attr_accessor :sent_email_id
|
23
|
-
|
24
22
|
attr_accessor :created_at
|
25
23
|
|
24
|
+
attr_accessor :sent_email_id
|
25
|
+
|
26
26
|
attr_accessor :recipient
|
27
27
|
|
28
28
|
attr_accessor :action
|
@@ -32,8 +32,8 @@ module MailSlurpClient
|
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
34
|
:'status' => :'status',
|
35
|
-
:'sent_email_id' => :'sentEmailId',
|
36
35
|
:'created_at' => :'createdAt',
|
36
|
+
:'sent_email_id' => :'sentEmailId',
|
37
37
|
:'recipient' => :'recipient',
|
38
38
|
:'action' => :'action'
|
39
39
|
}
|
@@ -44,8 +44,8 @@ module MailSlurpClient
|
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
46
|
:'status' => :'String',
|
47
|
-
:'sent_email_id' => :'String',
|
48
47
|
:'created_at' => :'DateTime',
|
48
|
+
:'sent_email_id' => :'String',
|
49
49
|
:'recipient' => :'String',
|
50
50
|
:'action' => :'String'
|
51
51
|
}
|
@@ -83,14 +83,14 @@ module MailSlurpClient
|
|
83
83
|
self.status = attributes[:'status']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'sent_email_id')
|
87
|
-
self.sent_email_id = attributes[:'sent_email_id']
|
88
|
-
end
|
89
|
-
|
90
86
|
if attributes.key?(:'created_at')
|
91
87
|
self.created_at = attributes[:'created_at']
|
92
88
|
end
|
93
89
|
|
90
|
+
if attributes.key?(:'sent_email_id')
|
91
|
+
self.sent_email_id = attributes[:'sent_email_id']
|
92
|
+
end
|
93
|
+
|
94
94
|
if attributes.key?(:'recipient')
|
95
95
|
self.recipient = attributes[:'recipient']
|
96
96
|
end
|
@@ -130,8 +130,8 @@ module MailSlurpClient
|
|
130
130
|
self.class == o.class &&
|
131
131
|
id == o.id &&
|
132
132
|
status == o.status &&
|
133
|
-
sent_email_id == o.sent_email_id &&
|
134
133
|
created_at == o.created_at &&
|
134
|
+
sent_email_id == o.sent_email_id &&
|
135
135
|
recipient == o.recipient &&
|
136
136
|
action == o.action
|
137
137
|
end
|
@@ -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, status,
|
148
|
+
[id, status, created_at, sent_email_id, recipient, action].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :inbox_id
|
25
25
|
|
26
|
-
attr_accessor :attachments
|
27
|
-
|
28
26
|
attr_accessor :created_at
|
29
27
|
|
28
|
+
attr_accessor :attachments
|
29
|
+
|
30
30
|
attr_accessor :to
|
31
31
|
|
32
32
|
attr_accessor :bcc
|
@@ -35,14 +35,14 @@ module MailSlurpClient
|
|
35
35
|
|
36
36
|
attr_accessor :domain_id
|
37
37
|
|
38
|
-
attr_accessor :team_access
|
39
|
-
|
40
38
|
attr_accessor :body_md5_hash
|
41
39
|
|
42
40
|
attr_accessor :read
|
43
41
|
|
44
42
|
attr_accessor :body_excerpt
|
45
43
|
|
44
|
+
attr_accessor :team_access
|
45
|
+
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
def self.attribute_map
|
48
48
|
{
|
@@ -50,16 +50,16 @@ module MailSlurpClient
|
|
50
50
|
:'from' => :'from',
|
51
51
|
:'subject' => :'subject',
|
52
52
|
:'inbox_id' => :'inboxId',
|
53
|
-
:'attachments' => :'attachments',
|
54
53
|
:'created_at' => :'createdAt',
|
54
|
+
:'attachments' => :'attachments',
|
55
55
|
:'to' => :'to',
|
56
56
|
:'bcc' => :'bcc',
|
57
57
|
:'cc' => :'cc',
|
58
58
|
:'domain_id' => :'domainId',
|
59
|
-
:'team_access' => :'teamAccess',
|
60
59
|
:'body_md5_hash' => :'bodyMD5Hash',
|
61
60
|
:'read' => :'read',
|
62
|
-
:'body_excerpt' => :'bodyExcerpt'
|
61
|
+
:'body_excerpt' => :'bodyExcerpt',
|
62
|
+
:'team_access' => :'teamAccess'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -70,16 +70,16 @@ module MailSlurpClient
|
|
70
70
|
:'from' => :'String',
|
71
71
|
:'subject' => :'String',
|
72
72
|
:'inbox_id' => :'String',
|
73
|
-
:'attachments' => :'Array<String>',
|
74
73
|
:'created_at' => :'DateTime',
|
74
|
+
:'attachments' => :'Array<String>',
|
75
75
|
:'to' => :'Array<String>',
|
76
76
|
:'bcc' => :'Array<String>',
|
77
77
|
:'cc' => :'Array<String>',
|
78
78
|
:'domain_id' => :'String',
|
79
|
-
:'team_access' => :'Boolean',
|
80
79
|
:'body_md5_hash' => :'String',
|
81
80
|
:'read' => :'Boolean',
|
82
|
-
:'body_excerpt' => :'String'
|
81
|
+
:'body_excerpt' => :'String',
|
82
|
+
:'team_access' => :'Boolean'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -93,7 +93,7 @@ module MailSlurpClient
|
|
93
93
|
:'cc',
|
94
94
|
:'domain_id',
|
95
95
|
:'body_md5_hash',
|
96
|
-
:'body_excerpt'
|
96
|
+
:'body_excerpt',
|
97
97
|
])
|
98
98
|
end
|
99
99
|
|
@@ -128,16 +128,16 @@ module MailSlurpClient
|
|
128
128
|
self.inbox_id = attributes[:'inbox_id']
|
129
129
|
end
|
130
130
|
|
131
|
+
if attributes.key?(:'created_at')
|
132
|
+
self.created_at = attributes[:'created_at']
|
133
|
+
end
|
134
|
+
|
131
135
|
if attributes.key?(:'attachments')
|
132
136
|
if (value = attributes[:'attachments']).is_a?(Array)
|
133
137
|
self.attachments = value
|
134
138
|
end
|
135
139
|
end
|
136
140
|
|
137
|
-
if attributes.key?(:'created_at')
|
138
|
-
self.created_at = attributes[:'created_at']
|
139
|
-
end
|
140
|
-
|
141
141
|
if attributes.key?(:'to')
|
142
142
|
if (value = attributes[:'to']).is_a?(Array)
|
143
143
|
self.to = value
|
@@ -160,10 +160,6 @@ module MailSlurpClient
|
|
160
160
|
self.domain_id = attributes[:'domain_id']
|
161
161
|
end
|
162
162
|
|
163
|
-
if attributes.key?(:'team_access')
|
164
|
-
self.team_access = attributes[:'team_access']
|
165
|
-
end
|
166
|
-
|
167
163
|
if attributes.key?(:'body_md5_hash')
|
168
164
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
169
165
|
end
|
@@ -175,6 +171,10 @@ module MailSlurpClient
|
|
175
171
|
if attributes.key?(:'body_excerpt')
|
176
172
|
self.body_excerpt = attributes[:'body_excerpt']
|
177
173
|
end
|
174
|
+
|
175
|
+
if attributes.key?(:'team_access')
|
176
|
+
self.team_access = attributes[:'team_access']
|
177
|
+
end
|
178
178
|
end
|
179
179
|
|
180
180
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -197,14 +197,14 @@ module MailSlurpClient
|
|
197
197
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
198
198
|
end
|
199
199
|
|
200
|
-
if @team_access.nil?
|
201
|
-
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
202
|
-
end
|
203
|
-
|
204
200
|
if @read.nil?
|
205
201
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
206
202
|
end
|
207
203
|
|
204
|
+
if @team_access.nil?
|
205
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
206
|
+
end
|
207
|
+
|
208
208
|
invalid_properties
|
209
209
|
end
|
210
210
|
|
@@ -215,8 +215,8 @@ module MailSlurpClient
|
|
215
215
|
return false if @inbox_id.nil?
|
216
216
|
return false if @created_at.nil?
|
217
217
|
return false if @to.nil?
|
218
|
-
return false if @team_access.nil?
|
219
218
|
return false if @read.nil?
|
219
|
+
return false if @team_access.nil?
|
220
220
|
true
|
221
221
|
end
|
222
222
|
|
@@ -229,16 +229,16 @@ module MailSlurpClient
|
|
229
229
|
from == o.from &&
|
230
230
|
subject == o.subject &&
|
231
231
|
inbox_id == o.inbox_id &&
|
232
|
-
attachments == o.attachments &&
|
233
232
|
created_at == o.created_at &&
|
233
|
+
attachments == o.attachments &&
|
234
234
|
to == o.to &&
|
235
235
|
bcc == o.bcc &&
|
236
236
|
cc == o.cc &&
|
237
237
|
domain_id == o.domain_id &&
|
238
|
-
team_access == o.team_access &&
|
239
238
|
body_md5_hash == o.body_md5_hash &&
|
240
239
|
read == o.read &&
|
241
|
-
body_excerpt == o.body_excerpt
|
240
|
+
body_excerpt == o.body_excerpt &&
|
241
|
+
team_access == o.team_access
|
242
242
|
end
|
243
243
|
|
244
244
|
# @see the `==` method
|
@@ -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,
|
253
|
+
[id, from, subject, inbox_id, created_at, attachments, to, bcc, cc, domain_id, body_md5_hash, read, body_excerpt, team_access].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
|
+
|
24
26
|
attr_accessor :total_elements
|
25
27
|
|
26
28
|
attr_accessor :total_pages
|
27
29
|
|
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 :number_of_elements
|
37
|
-
|
38
36
|
attr_accessor :first
|
39
37
|
|
38
|
+
attr_accessor :number_of_elements
|
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',
|
48
49
|
:'total_elements' => :'totalElements',
|
49
50
|
:'total_pages' => :'totalPages',
|
50
|
-
:'last' => :'last',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
54
|
-
:'number_of_elements' => :'numberOfElements',
|
55
54
|
:'first' => :'first',
|
55
|
+
:'number_of_elements' => :'numberOfElements',
|
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',
|
66
67
|
:'total_elements' => :'Integer',
|
67
68
|
:'total_pages' => :'Integer',
|
68
|
-
:'last' => :'Boolean',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
72
|
-
:'number_of_elements' => :'Integer',
|
73
72
|
:'first' => :'Boolean',
|
73
|
+
:'number_of_elements' => :'Integer',
|
74
74
|
:'empty' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -110,6 +110,10 @@ 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
|
+
|
113
117
|
if attributes.key?(:'total_elements')
|
114
118
|
self.total_elements = attributes[:'total_elements']
|
115
119
|
end
|
@@ -118,10 +122,6 @@ module MailSlurpClient
|
|
118
122
|
self.total_pages = attributes[:'total_pages']
|
119
123
|
end
|
120
124
|
|
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?(:'number_of_elements')
|
138
|
-
self.number_of_elements = attributes[:'number_of_elements']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'first')
|
142
138
|
self.first = attributes[:'first']
|
143
139
|
end
|
144
140
|
|
141
|
+
if attributes.key?(:'number_of_elements')
|
142
|
+
self.number_of_elements = attributes[:'number_of_elements']
|
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 &&
|
171
172
|
total_elements == o.total_elements &&
|
172
173
|
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
|
-
number_of_elements == o.number_of_elements &&
|
178
177
|
first == o.first &&
|
178
|
+
number_of_elements == o.number_of_elements &&
|
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, total_elements, total_pages,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|