mailslurp_client 16.2.0 → 16.2.1
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/mfa_controller_api.rb +15 -4
- data/lib/mailslurp_client/models/alias_thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +11 -11
- data/lib/mailslurp_client/models/email_thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +30 -30
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- 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: 046f54f4c97fa71f3c64ab19a82f73c7b315d130ae7232823d0ee2131711e0a7
|
4
|
+
data.tar.gz: 90cd94daa6768eb68fe9f075fc109d8baed4ec9f444789eedf24074925a283ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8bb97482670eaf091366ea9e40cb13986358ef4b28db5fd3c64fb7dfe1ebbd4f14e726fffc5bba4a06b7b9f9ac1fd331bb200744a8dc56bcf1cf08f31dfecf6
|
7
|
+
data.tar.gz: ec578c686fb969a865972b4488966a91f01459d26d3242c4dd29d8fc5eb66af2ebd34a32472181c100477ece42eafa35eeecd6a87105762513a1ce33f7fe780d
|
@@ -276,9 +276,10 @@ module MailSlurpClient
|
|
276
276
|
|
277
277
|
# Get a TOTP device code by device ID
|
278
278
|
# Get Time-Based One-Time Password for a device by its ID.
|
279
|
-
# @param id [String]
|
279
|
+
# @param id [String] ID of the TOTP device to get the code for
|
280
280
|
# @param [Hash] opts the optional parameters
|
281
|
-
# @option opts [DateTime] :at
|
281
|
+
# @option opts [DateTime] :at Optional time to get code for. If not provided, current time is used.
|
282
|
+
# @option opts [Integer] :min_seconds_until_expire Optional minimum time until code expires. Will hold thread open until period reached. (default to 5)
|
282
283
|
# @return [TotpDeviceCodeDto]
|
283
284
|
def get_totp_device_code(id, opts = {})
|
284
285
|
data, _status_code, _headers = get_totp_device_code_with_http_info(id, opts)
|
@@ -287,9 +288,10 @@ module MailSlurpClient
|
|
287
288
|
|
288
289
|
# Get a TOTP device code by device ID
|
289
290
|
# Get Time-Based One-Time Password for a device by its ID.
|
290
|
-
# @param id [String]
|
291
|
+
# @param id [String] ID of the TOTP device to get the code for
|
291
292
|
# @param [Hash] opts the optional parameters
|
292
|
-
# @option opts [DateTime] :at
|
293
|
+
# @option opts [DateTime] :at Optional time to get code for. If not provided, current time is used.
|
294
|
+
# @option opts [Integer] :min_seconds_until_expire Optional minimum time until code expires. Will hold thread open until period reached.
|
293
295
|
# @return [Array<(TotpDeviceCodeDto, Integer, Hash)>] TotpDeviceCodeDto data, response status code and response headers
|
294
296
|
def get_totp_device_code_with_http_info(id, opts = {})
|
295
297
|
if @api_client.config.debugging
|
@@ -299,12 +301,21 @@ module MailSlurpClient
|
|
299
301
|
if @api_client.config.client_side_validation && id.nil?
|
300
302
|
fail ArgumentError, "Missing the required parameter 'id' when calling MFAControllerApi.get_totp_device_code"
|
301
303
|
end
|
304
|
+
if @api_client.config.client_side_validation && !opts[:'min_seconds_until_expire'].nil? && opts[:'min_seconds_until_expire'] > 30
|
305
|
+
fail ArgumentError, 'invalid value for "opts[:"min_seconds_until_expire"]" when calling MFAControllerApi.get_totp_device_code, must be smaller than or equal to 30.'
|
306
|
+
end
|
307
|
+
|
308
|
+
if @api_client.config.client_side_validation && !opts[:'min_seconds_until_expire'].nil? && opts[:'min_seconds_until_expire'] < 1
|
309
|
+
fail ArgumentError, 'invalid value for "opts[:"min_seconds_until_expire"]" when calling MFAControllerApi.get_totp_device_code, must be greater than or equal to 1.'
|
310
|
+
end
|
311
|
+
|
302
312
|
# resource path
|
303
313
|
local_var_path = '/mfa/totp/device/{id}/code'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
304
314
|
|
305
315
|
# query parameters
|
306
316
|
query_params = opts[:query_params] || {}
|
307
317
|
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
|
318
|
+
query_params[:'minSecondsUntilExpire'] = opts[:'min_seconds_until_expire'] if !opts[:'min_seconds_until_expire'].nil?
|
308
319
|
|
309
320
|
# header parameters
|
310
321
|
header_params = opts[:header_params] || {}
|
@@ -15,9 +15,6 @@ 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 AliasThreadProjection
|
18
|
-
# Thread subject
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
18
|
# Inbox ID
|
22
19
|
attr_accessor :inbox_id
|
23
20
|
|
@@ -42,6 +39,9 @@ module MailSlurpClient
|
|
42
39
|
# Alias ID
|
43
40
|
attr_accessor :alias_id
|
44
41
|
|
42
|
+
# Thread subject
|
43
|
+
attr_accessor :subject
|
44
|
+
|
45
45
|
# Name of thread
|
46
46
|
attr_accessor :name
|
47
47
|
|
@@ -51,7 +51,6 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'subject' => :'subject',
|
55
54
|
:'inbox_id' => :'inboxId',
|
56
55
|
:'user_id' => :'userId',
|
57
56
|
:'updated_at' => :'updatedAt',
|
@@ -60,6 +59,7 @@ module MailSlurpClient
|
|
60
59
|
:'cc' => :'cc',
|
61
60
|
:'bcc' => :'bcc',
|
62
61
|
:'alias_id' => :'aliasId',
|
62
|
+
:'subject' => :'subject',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
65
65
|
}
|
@@ -68,7 +68,6 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'subject' => :'String',
|
72
71
|
:'inbox_id' => :'String',
|
73
72
|
:'user_id' => :'String',
|
74
73
|
:'updated_at' => :'DateTime',
|
@@ -77,6 +76,7 @@ module MailSlurpClient
|
|
77
76
|
:'cc' => :'Array<String>',
|
78
77
|
:'bcc' => :'Array<String>',
|
79
78
|
:'alias_id' => :'String',
|
79
|
+
:'subject' => :'String',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
82
82
|
}
|
@@ -103,10 +103,6 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'subject')
|
107
|
-
self.subject = attributes[:'subject']
|
108
|
-
end
|
109
|
-
|
110
106
|
if attributes.key?(:'inbox_id')
|
111
107
|
self.inbox_id = attributes[:'inbox_id']
|
112
108
|
end
|
@@ -145,6 +141,10 @@ module MailSlurpClient
|
|
145
141
|
self.alias_id = attributes[:'alias_id']
|
146
142
|
end
|
147
143
|
|
144
|
+
if attributes.key?(:'subject')
|
145
|
+
self.subject = attributes[:'subject']
|
146
|
+
end
|
147
|
+
|
148
148
|
if attributes.key?(:'name')
|
149
149
|
self.name = attributes[:'name']
|
150
150
|
end
|
@@ -207,7 +207,6 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
subject == o.subject &&
|
211
210
|
inbox_id == o.inbox_id &&
|
212
211
|
user_id == o.user_id &&
|
213
212
|
updated_at == o.updated_at &&
|
@@ -216,6 +215,7 @@ module MailSlurpClient
|
|
216
215
|
cc == o.cc &&
|
217
216
|
bcc == o.bcc &&
|
218
217
|
alias_id == o.alias_id &&
|
218
|
+
subject == o.subject &&
|
219
219
|
name == o.name &&
|
220
220
|
id == o.id
|
221
221
|
end
|
@@ -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, updated_at, created_at, to, cc, bcc, alias_id, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,8 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
-
attr_accessor :subject
|
19
|
-
|
20
18
|
attr_accessor :sender
|
21
19
|
|
22
20
|
attr_accessor :created_at
|
@@ -25,16 +23,18 @@ module MailSlurpClient
|
|
25
23
|
|
26
24
|
attr_accessor :bounce_mta
|
27
25
|
|
26
|
+
attr_accessor :subject
|
27
|
+
|
28
28
|
attr_accessor :id
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'subject' => :'subject',
|
34
33
|
:'sender' => :'sender',
|
35
34
|
:'created_at' => :'createdAt',
|
36
35
|
:'bounce_type' => :'bounceType',
|
37
36
|
:'bounce_mta' => :'bounceMta',
|
37
|
+
:'subject' => :'subject',
|
38
38
|
:'id' => :'id'
|
39
39
|
}
|
40
40
|
end
|
@@ -42,11 +42,11 @@ module MailSlurpClient
|
|
42
42
|
# Attribute type mapping.
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
|
-
:'subject' => :'String',
|
46
45
|
:'sender' => :'String',
|
47
46
|
:'created_at' => :'DateTime',
|
48
47
|
:'bounce_type' => :'String',
|
49
48
|
:'bounce_mta' => :'String',
|
49
|
+
:'subject' => :'String',
|
50
50
|
:'id' => :'String'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,9 +54,9 @@ module MailSlurpClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'subject',
|
58
57
|
:'bounce_type',
|
59
58
|
:'bounce_mta',
|
59
|
+
:'subject',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,10 +75,6 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'subject')
|
79
|
-
self.subject = attributes[:'subject']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'sender')
|
83
79
|
self.sender = attributes[:'sender']
|
84
80
|
end
|
@@ -95,6 +91,10 @@ module MailSlurpClient
|
|
95
91
|
self.bounce_mta = attributes[:'bounce_mta']
|
96
92
|
end
|
97
93
|
|
94
|
+
if attributes.key?(:'subject')
|
95
|
+
self.subject = attributes[:'subject']
|
96
|
+
end
|
97
|
+
|
98
98
|
if attributes.key?(:'id')
|
99
99
|
self.id = attributes[:'id']
|
100
100
|
end
|
@@ -128,11 +128,11 @@ module MailSlurpClient
|
|
128
128
|
def ==(o)
|
129
129
|
return true if self.equal?(o)
|
130
130
|
self.class == o.class &&
|
131
|
-
subject == o.subject &&
|
132
131
|
sender == o.sender &&
|
133
132
|
created_at == o.created_at &&
|
134
133
|
bounce_type == o.bounce_type &&
|
135
134
|
bounce_mta == o.bounce_mta &&
|
135
|
+
subject == o.subject &&
|
136
136
|
id == o.id
|
137
137
|
end
|
138
138
|
|
@@ -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
|
-
[
|
148
|
+
[sender, created_at, bounce_type, bounce_mta, subject, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -114,10 +114,10 @@ module MailSlurpClient
|
|
114
114
|
# Size of raw email message in bytes
|
115
115
|
attr_accessor :size_bytes
|
116
116
|
|
117
|
-
attr_accessor :xamp_html
|
118
|
-
|
119
117
|
attr_accessor :html
|
120
118
|
|
119
|
+
attr_accessor :xamp_html
|
120
|
+
|
121
121
|
# Attribute mapping from ruby-style variable name to JSON key.
|
122
122
|
def self.attribute_map
|
123
123
|
{
|
@@ -155,8 +155,8 @@ module MailSlurpClient
|
|
155
155
|
:'in_reply_to' => :'inReplyTo',
|
156
156
|
:'favourite' => :'favourite',
|
157
157
|
:'size_bytes' => :'sizeBytes',
|
158
|
-
:'
|
159
|
-
:'
|
158
|
+
:'html' => :'html',
|
159
|
+
:'xamp_html' => :'xampHtml'
|
160
160
|
}
|
161
161
|
end
|
162
162
|
|
@@ -197,8 +197,8 @@ module MailSlurpClient
|
|
197
197
|
:'in_reply_to' => :'String',
|
198
198
|
:'favourite' => :'Boolean',
|
199
199
|
:'size_bytes' => :'Integer',
|
200
|
-
:'
|
201
|
-
:'
|
200
|
+
:'html' => :'Boolean',
|
201
|
+
:'xamp_html' => :'Boolean'
|
202
202
|
}
|
203
203
|
end
|
204
204
|
|
@@ -399,13 +399,13 @@ module MailSlurpClient
|
|
399
399
|
self.size_bytes = attributes[:'size_bytes']
|
400
400
|
end
|
401
401
|
|
402
|
-
if attributes.key?(:'xamp_html')
|
403
|
-
self.xamp_html = attributes[:'xamp_html']
|
404
|
-
end
|
405
|
-
|
406
402
|
if attributes.key?(:'html')
|
407
403
|
self.html = attributes[:'html']
|
408
404
|
end
|
405
|
+
|
406
|
+
if attributes.key?(:'xamp_html')
|
407
|
+
self.xamp_html = attributes[:'xamp_html']
|
408
|
+
end
|
409
409
|
end
|
410
410
|
|
411
411
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -500,8 +500,8 @@ module MailSlurpClient
|
|
500
500
|
in_reply_to == o.in_reply_to &&
|
501
501
|
favourite == o.favourite &&
|
502
502
|
size_bytes == o.size_bytes &&
|
503
|
-
|
504
|
-
|
503
|
+
html == o.html &&
|
504
|
+
xamp_html == o.xamp_html
|
505
505
|
end
|
506
506
|
|
507
507
|
# @see the `==` method
|
@@ -513,7 +513,7 @@ module MailSlurpClient
|
|
513
513
|
# Calculates hash code according to all attributes.
|
514
514
|
# @return [Integer] Hash code
|
515
515
|
def hash
|
516
|
-
[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, external_id, message_id, thread_id, in_reply_to, favourite, size_bytes,
|
516
|
+
[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, external_id, message_id, thread_id, in_reply_to, favourite, size_bytes, html, xamp_html].hash
|
517
517
|
end
|
518
518
|
|
519
519
|
# Builds the object from hash
|
@@ -15,8 +15,6 @@ 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 :subject
|
19
|
-
|
20
18
|
attr_accessor :sender
|
21
19
|
|
22
20
|
attr_accessor :recipients
|
@@ -57,6 +55,8 @@ module MailSlurpClient
|
|
57
55
|
|
58
56
|
attr_accessor :team_access
|
59
57
|
|
58
|
+
attr_accessor :subject
|
59
|
+
|
60
60
|
attr_accessor :id
|
61
61
|
|
62
62
|
attr_accessor :thread_id
|
@@ -66,7 +66,6 @@ module MailSlurpClient
|
|
66
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
67
67
|
def self.attribute_map
|
68
68
|
{
|
69
|
-
:'subject' => :'subject',
|
70
69
|
:'sender' => :'sender',
|
71
70
|
:'recipients' => :'recipients',
|
72
71
|
:'attachments' => :'attachments',
|
@@ -87,6 +86,7 @@ module MailSlurpClient
|
|
87
86
|
:'body_part_content_types' => :'bodyPartContentTypes',
|
88
87
|
:'body_md5_hash' => :'bodyMD5Hash',
|
89
88
|
:'team_access' => :'teamAccess',
|
89
|
+
:'subject' => :'subject',
|
90
90
|
:'id' => :'id',
|
91
91
|
:'thread_id' => :'threadId',
|
92
92
|
:'from' => :'from'
|
@@ -96,7 +96,6 @@ module MailSlurpClient
|
|
96
96
|
# Attribute type mapping.
|
97
97
|
def self.openapi_types
|
98
98
|
{
|
99
|
-
:'subject' => :'String',
|
100
99
|
:'sender' => :'Sender',
|
101
100
|
:'recipients' => :'EmailRecipients',
|
102
101
|
:'attachments' => :'Array<String>',
|
@@ -117,6 +116,7 @@ module MailSlurpClient
|
|
117
116
|
:'body_part_content_types' => :'Array<String>',
|
118
117
|
:'body_md5_hash' => :'String',
|
119
118
|
:'team_access' => :'Boolean',
|
119
|
+
:'subject' => :'String',
|
120
120
|
:'id' => :'String',
|
121
121
|
:'thread_id' => :'String',
|
122
122
|
:'from' => :'String'
|
@@ -126,7 +126,6 @@ module MailSlurpClient
|
|
126
126
|
# List of attributes with nullable: true
|
127
127
|
def self.openapi_nullable
|
128
128
|
Set.new([
|
129
|
-
:'subject',
|
130
129
|
:'sender',
|
131
130
|
:'recipients',
|
132
131
|
:'attachments',
|
@@ -142,6 +141,7 @@ module MailSlurpClient
|
|
142
141
|
:'text_excerpt',
|
143
142
|
:'body_part_content_types',
|
144
143
|
:'body_md5_hash',
|
144
|
+
:'subject',
|
145
145
|
:'thread_id',
|
146
146
|
:'from'
|
147
147
|
])
|
@@ -162,10 +162,6 @@ module MailSlurpClient
|
|
162
162
|
h[k.to_sym] = v
|
163
163
|
}
|
164
164
|
|
165
|
-
if attributes.key?(:'subject')
|
166
|
-
self.subject = attributes[:'subject']
|
167
|
-
end
|
168
|
-
|
169
165
|
if attributes.key?(:'sender')
|
170
166
|
self.sender = attributes[:'sender']
|
171
167
|
end
|
@@ -256,6 +252,10 @@ module MailSlurpClient
|
|
256
252
|
self.team_access = attributes[:'team_access']
|
257
253
|
end
|
258
254
|
|
255
|
+
if attributes.key?(:'subject')
|
256
|
+
self.subject = attributes[:'subject']
|
257
|
+
end
|
258
|
+
|
259
259
|
if attributes.key?(:'id')
|
260
260
|
self.id = attributes[:'id']
|
261
261
|
end
|
@@ -317,7 +317,6 @@ module MailSlurpClient
|
|
317
317
|
def ==(o)
|
318
318
|
return true if self.equal?(o)
|
319
319
|
self.class == o.class &&
|
320
|
-
subject == o.subject &&
|
321
320
|
sender == o.sender &&
|
322
321
|
recipients == o.recipients &&
|
323
322
|
attachments == o.attachments &&
|
@@ -338,6 +337,7 @@ module MailSlurpClient
|
|
338
337
|
body_part_content_types == o.body_part_content_types &&
|
339
338
|
body_md5_hash == o.body_md5_hash &&
|
340
339
|
team_access == o.team_access &&
|
340
|
+
subject == o.subject &&
|
341
341
|
id == o.id &&
|
342
342
|
thread_id == o.thread_id &&
|
343
343
|
from == o.from
|
@@ -352,7 +352,7 @@ module MailSlurpClient
|
|
352
352
|
# Calculates hash code according to all attributes.
|
353
353
|
# @return [Integer] Hash code
|
354
354
|
def hash
|
355
|
-
[
|
355
|
+
[sender, recipients, attachments, inbox_id, created_at, to, cc, bcc, message_id, domain_id, favourite, plus_address, size_bytes, in_reply_to, read, body_excerpt, text_excerpt, body_part_content_types, body_md5_hash, team_access, subject, id, thread_id, from].hash
|
356
356
|
end
|
357
357
|
|
358
358
|
# Builds the object from hash
|
@@ -15,9 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# An email thread is a message thread created for a email based on Message-ID, In-Reply-To, and References headers
|
17
17
|
class EmailThreadProjection
|
18
|
-
# Thread topic subject
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
18
|
attr_accessor :sender
|
22
19
|
|
23
20
|
attr_accessor :recipients
|
@@ -66,6 +63,9 @@ module MailSlurpClient
|
|
66
63
|
|
67
64
|
attr_accessor :last_sender
|
68
65
|
|
66
|
+
# Thread topic subject
|
67
|
+
attr_accessor :subject
|
68
|
+
|
69
69
|
# ID of email thread
|
70
70
|
attr_accessor :id
|
71
71
|
|
@@ -75,7 +75,6 @@ module MailSlurpClient
|
|
75
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
76
76
|
def self.attribute_map
|
77
77
|
{
|
78
|
-
:'subject' => :'subject',
|
79
78
|
:'sender' => :'sender',
|
80
79
|
:'recipients' => :'recipients',
|
81
80
|
:'inbox_id' => :'inboxId',
|
@@ -93,6 +92,7 @@ module MailSlurpClient
|
|
93
92
|
:'last_created_at' => :'lastCreatedAt',
|
94
93
|
:'last_from' => :'lastFrom',
|
95
94
|
:'last_sender' => :'lastSender',
|
95
|
+
:'subject' => :'subject',
|
96
96
|
:'id' => :'id',
|
97
97
|
:'from' => :'from'
|
98
98
|
}
|
@@ -101,7 +101,6 @@ module MailSlurpClient
|
|
101
101
|
# Attribute type mapping.
|
102
102
|
def self.openapi_types
|
103
103
|
{
|
104
|
-
:'subject' => :'String',
|
105
104
|
:'sender' => :'SenderProjection',
|
106
105
|
:'recipients' => :'EmailRecipientsProjection',
|
107
106
|
:'inbox_id' => :'String',
|
@@ -119,6 +118,7 @@ module MailSlurpClient
|
|
119
118
|
:'last_created_at' => :'DateTime',
|
120
119
|
:'last_from' => :'String',
|
121
120
|
:'last_sender' => :'SenderProjection',
|
121
|
+
:'subject' => :'String',
|
122
122
|
:'id' => :'String',
|
123
123
|
:'from' => :'String'
|
124
124
|
}
|
@@ -145,10 +145,6 @@ module MailSlurpClient
|
|
145
145
|
h[k.to_sym] = v
|
146
146
|
}
|
147
147
|
|
148
|
-
if attributes.key?(:'subject')
|
149
|
-
self.subject = attributes[:'subject']
|
150
|
-
end
|
151
|
-
|
152
148
|
if attributes.key?(:'sender')
|
153
149
|
self.sender = attributes[:'sender']
|
154
150
|
end
|
@@ -223,6 +219,10 @@ module MailSlurpClient
|
|
223
219
|
self.last_sender = attributes[:'last_sender']
|
224
220
|
end
|
225
221
|
|
222
|
+
if attributes.key?(:'subject')
|
223
|
+
self.subject = attributes[:'subject']
|
224
|
+
end
|
225
|
+
|
226
226
|
if attributes.key?(:'id')
|
227
227
|
self.id = attributes[:'id']
|
228
228
|
end
|
@@ -290,7 +290,6 @@ module MailSlurpClient
|
|
290
290
|
def ==(o)
|
291
291
|
return true if self.equal?(o)
|
292
292
|
self.class == o.class &&
|
293
|
-
subject == o.subject &&
|
294
293
|
sender == o.sender &&
|
295
294
|
recipients == o.recipients &&
|
296
295
|
inbox_id == o.inbox_id &&
|
@@ -308,6 +307,7 @@ module MailSlurpClient
|
|
308
307
|
last_created_at == o.last_created_at &&
|
309
308
|
last_from == o.last_from &&
|
310
309
|
last_sender == o.last_sender &&
|
310
|
+
subject == o.subject &&
|
311
311
|
id == o.id &&
|
312
312
|
from == o.from
|
313
313
|
end
|
@@ -321,7 +321,7 @@ module MailSlurpClient
|
|
321
321
|
# Calculates hash code according to all attributes.
|
322
322
|
# @return [Integer] Hash code
|
323
323
|
def hash
|
324
|
-
[
|
324
|
+
[sender, recipients, inbox_id, user_id, updated_at, created_at, to, cc, bcc, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender, subject, id, from].hash
|
325
325
|
end
|
326
326
|
|
327
327
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
-
attr_accessor :subject
|
19
|
-
|
20
18
|
attr_accessor :user_id
|
21
19
|
|
22
20
|
attr_accessor :created_at
|
23
21
|
|
22
|
+
attr_accessor :subject
|
23
|
+
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
attr_accessor :from
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'subject' => :'subject',
|
32
31
|
:'user_id' => :'userId',
|
33
32
|
:'created_at' => :'createdAt',
|
33
|
+
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'subject' => :'String',
|
43
42
|
:'user_id' => :'String',
|
44
43
|
:'created_at' => :'DateTime',
|
44
|
+
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -50,8 +50,8 @@ module MailSlurpClient
|
|
50
50
|
# List of attributes with nullable: true
|
51
51
|
def self.openapi_nullable
|
52
52
|
Set.new([
|
53
|
-
:'subject',
|
54
53
|
:'user_id',
|
54
|
+
:'subject',
|
55
55
|
:'from'
|
56
56
|
])
|
57
57
|
end
|
@@ -71,10 +71,6 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
-
if attributes.key?(:'subject')
|
75
|
-
self.subject = attributes[:'subject']
|
76
|
-
end
|
77
|
-
|
78
74
|
if attributes.key?(:'user_id')
|
79
75
|
self.user_id = attributes[:'user_id']
|
80
76
|
end
|
@@ -83,6 +79,10 @@ module MailSlurpClient
|
|
83
79
|
self.created_at = attributes[:'created_at']
|
84
80
|
end
|
85
81
|
|
82
|
+
if attributes.key?(:'subject')
|
83
|
+
self.subject = attributes[:'subject']
|
84
|
+
end
|
85
|
+
|
86
86
|
if attributes.key?(:'id')
|
87
87
|
self.id = attributes[:'id']
|
88
88
|
end
|
@@ -120,9 +120,9 @@ module MailSlurpClient
|
|
120
120
|
def ==(o)
|
121
121
|
return true if self.equal?(o)
|
122
122
|
self.class == o.class &&
|
123
|
-
subject == o.subject &&
|
124
123
|
user_id == o.user_id &&
|
125
124
|
created_at == o.created_at &&
|
125
|
+
subject == o.subject &&
|
126
126
|
id == o.id &&
|
127
127
|
from == o.from
|
128
128
|
end
|
@@ -136,7 +136,7 @@ module MailSlurpClient
|
|
136
136
|
# Calculates hash code according to all attributes.
|
137
137
|
# @return [Integer] Hash code
|
138
138
|
def hash
|
139
|
-
[
|
139
|
+
[user_id, created_at, subject, id, from].hash
|
140
140
|
end
|
141
141
|
|
142
142
|
# Builds the object from hash
|
@@ -14,12 +14,12 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class PageableObject
|
17
|
+
attr_accessor :page_size
|
18
|
+
|
17
19
|
attr_accessor :paged
|
18
20
|
|
19
21
|
attr_accessor :page_number
|
20
22
|
|
21
|
-
attr_accessor :page_size
|
22
|
-
|
23
23
|
attr_accessor :unpaged
|
24
24
|
|
25
25
|
attr_accessor :offset
|
@@ -29,9 +29,9 @@ module MailSlurpClient
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
+
:'page_size' => :'pageSize',
|
32
33
|
:'paged' => :'paged',
|
33
34
|
:'page_number' => :'pageNumber',
|
34
|
-
:'page_size' => :'pageSize',
|
35
35
|
:'unpaged' => :'unpaged',
|
36
36
|
:'offset' => :'offset',
|
37
37
|
:'sort' => :'sort'
|
@@ -41,9 +41,9 @@ module MailSlurpClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
|
+
:'page_size' => :'Integer',
|
44
45
|
:'paged' => :'Boolean',
|
45
46
|
:'page_number' => :'Integer',
|
46
|
-
:'page_size' => :'Integer',
|
47
47
|
:'unpaged' => :'Boolean',
|
48
48
|
:'offset' => :'Integer',
|
49
49
|
:'sort' => :'SortObject'
|
@@ -71,6 +71,10 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
+
if attributes.key?(:'page_size')
|
75
|
+
self.page_size = attributes[:'page_size']
|
76
|
+
end
|
77
|
+
|
74
78
|
if attributes.key?(:'paged')
|
75
79
|
self.paged = attributes[:'paged']
|
76
80
|
end
|
@@ -79,10 +83,6 @@ module MailSlurpClient
|
|
79
83
|
self.page_number = attributes[:'page_number']
|
80
84
|
end
|
81
85
|
|
82
|
-
if attributes.key?(:'page_size')
|
83
|
-
self.page_size = attributes[:'page_size']
|
84
|
-
end
|
85
|
-
|
86
86
|
if attributes.key?(:'unpaged')
|
87
87
|
self.unpaged = attributes[:'unpaged']
|
88
88
|
end
|
@@ -114,9 +114,9 @@ module MailSlurpClient
|
|
114
114
|
def ==(o)
|
115
115
|
return true if self.equal?(o)
|
116
116
|
self.class == o.class &&
|
117
|
+
page_size == o.page_size &&
|
117
118
|
paged == o.paged &&
|
118
119
|
page_number == o.page_number &&
|
119
|
-
page_size == o.page_size &&
|
120
120
|
unpaged == o.unpaged &&
|
121
121
|
offset == o.offset &&
|
122
122
|
sort == o.sort
|
@@ -131,7 +131,7 @@ module MailSlurpClient
|
|
131
131
|
# Calculates hash code according to all attributes.
|
132
132
|
# @return [Integer] Hash code
|
133
133
|
def hash
|
134
|
-
[paged, page_number,
|
134
|
+
[page_size, paged, page_number, unpaged, offset, sort].hash
|
135
135
|
end
|
136
136
|
|
137
137
|
# Builds the object from hash
|
@@ -14,8 +14,6 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class PhoneMessageThreadProjection
|
17
|
-
attr_accessor :last_body
|
18
|
-
|
19
17
|
attr_accessor :phone_number
|
20
18
|
|
21
19
|
attr_accessor :phone_number_id
|
@@ -24,6 +22,8 @@ module MailSlurpClient
|
|
24
22
|
|
25
23
|
attr_accessor :last_message_direction
|
26
24
|
|
25
|
+
attr_accessor :last_body
|
26
|
+
|
27
27
|
attr_accessor :last_created
|
28
28
|
|
29
29
|
class EnumAttributeValidator
|
@@ -51,11 +51,11 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'last_body' => :'lastBody',
|
55
54
|
:'phone_number' => :'phoneNumber',
|
56
55
|
:'phone_number_id' => :'phoneNumberId',
|
57
56
|
:'other_phone_number' => :'otherPhoneNumber',
|
58
57
|
:'last_message_direction' => :'lastMessageDirection',
|
58
|
+
:'last_body' => :'lastBody',
|
59
59
|
:'last_created' => :'lastCreated'
|
60
60
|
}
|
61
61
|
end
|
@@ -63,11 +63,11 @@ module MailSlurpClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'last_body' => :'String',
|
67
66
|
:'phone_number' => :'String',
|
68
67
|
:'phone_number_id' => :'String',
|
69
68
|
:'other_phone_number' => :'String',
|
70
69
|
:'last_message_direction' => :'String',
|
70
|
+
:'last_body' => :'String',
|
71
71
|
:'last_created' => :'DateTime'
|
72
72
|
}
|
73
73
|
end
|
@@ -93,10 +93,6 @@ module MailSlurpClient
|
|
93
93
|
h[k.to_sym] = v
|
94
94
|
}
|
95
95
|
|
96
|
-
if attributes.key?(:'last_body')
|
97
|
-
self.last_body = attributes[:'last_body']
|
98
|
-
end
|
99
|
-
|
100
96
|
if attributes.key?(:'phone_number')
|
101
97
|
self.phone_number = attributes[:'phone_number']
|
102
98
|
end
|
@@ -113,6 +109,10 @@ module MailSlurpClient
|
|
113
109
|
self.last_message_direction = attributes[:'last_message_direction']
|
114
110
|
end
|
115
111
|
|
112
|
+
if attributes.key?(:'last_body')
|
113
|
+
self.last_body = attributes[:'last_body']
|
114
|
+
end
|
115
|
+
|
116
116
|
if attributes.key?(:'last_created')
|
117
117
|
self.last_created = attributes[:'last_created']
|
118
118
|
end
|
@@ -122,10 +122,6 @@ module MailSlurpClient
|
|
122
122
|
# @return Array for valid properties with the reasons
|
123
123
|
def list_invalid_properties
|
124
124
|
invalid_properties = Array.new
|
125
|
-
if @last_body.nil?
|
126
|
-
invalid_properties.push('invalid value for "last_body", last_body cannot be nil.')
|
127
|
-
end
|
128
|
-
|
129
125
|
if @phone_number.nil?
|
130
126
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
131
127
|
end
|
@@ -142,6 +138,10 @@ module MailSlurpClient
|
|
142
138
|
invalid_properties.push('invalid value for "last_message_direction", last_message_direction cannot be nil.')
|
143
139
|
end
|
144
140
|
|
141
|
+
if @last_body.nil?
|
142
|
+
invalid_properties.push('invalid value for "last_body", last_body cannot be nil.')
|
143
|
+
end
|
144
|
+
|
145
145
|
if @last_created.nil?
|
146
146
|
invalid_properties.push('invalid value for "last_created", last_created cannot be nil.')
|
147
147
|
end
|
@@ -152,13 +152,13 @@ module MailSlurpClient
|
|
152
152
|
# Check to see if the all the properties in the model are valid
|
153
153
|
# @return true if the model is valid
|
154
154
|
def valid?
|
155
|
-
return false if @last_body.nil?
|
156
155
|
return false if @phone_number.nil?
|
157
156
|
return false if @phone_number_id.nil?
|
158
157
|
return false if @other_phone_number.nil?
|
159
158
|
return false if @last_message_direction.nil?
|
160
159
|
last_message_direction_validator = EnumAttributeValidator.new('String', ["OUTBOUND", "INBOUND"])
|
161
160
|
return false unless last_message_direction_validator.valid?(@last_message_direction)
|
161
|
+
return false if @last_body.nil?
|
162
162
|
return false if @last_created.nil?
|
163
163
|
true
|
164
164
|
end
|
@@ -178,11 +178,11 @@ module MailSlurpClient
|
|
178
178
|
def ==(o)
|
179
179
|
return true if self.equal?(o)
|
180
180
|
self.class == o.class &&
|
181
|
-
last_body == o.last_body &&
|
182
181
|
phone_number == o.phone_number &&
|
183
182
|
phone_number_id == o.phone_number_id &&
|
184
183
|
other_phone_number == o.other_phone_number &&
|
185
184
|
last_message_direction == o.last_message_direction &&
|
185
|
+
last_body == o.last_body &&
|
186
186
|
last_created == o.last_created
|
187
187
|
end
|
188
188
|
|
@@ -195,7 +195,7 @@ module MailSlurpClient
|
|
195
195
|
# Calculates hash code according to all attributes.
|
196
196
|
# @return [Integer] Hash code
|
197
197
|
def hash
|
198
|
-
[
|
198
|
+
[phone_number, phone_number_id, other_phone_number, last_message_direction, last_body, last_created].hash
|
199
199
|
end
|
200
200
|
|
201
201
|
# Builds the object from hash
|
@@ -14,13 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SentEmailProjection
|
17
|
-
attr_accessor :subject
|
18
|
-
|
19
17
|
attr_accessor :id
|
20
18
|
|
21
|
-
attr_accessor :
|
22
|
-
|
23
|
-
attr_accessor :in_reply_to
|
19
|
+
attr_accessor :subject
|
24
20
|
|
25
21
|
attr_accessor :from
|
26
22
|
|
@@ -44,6 +40,8 @@ module MailSlurpClient
|
|
44
40
|
|
45
41
|
attr_accessor :message_id
|
46
42
|
|
43
|
+
attr_accessor :in_reply_to
|
44
|
+
|
47
45
|
attr_accessor :body_excerpt
|
48
46
|
|
49
47
|
attr_accessor :text_excerpt
|
@@ -52,13 +50,13 @@ module MailSlurpClient
|
|
52
50
|
|
53
51
|
attr_accessor :virtual_send
|
54
52
|
|
53
|
+
attr_accessor :thread_id
|
54
|
+
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'subject' => :'subject',
|
59
58
|
:'id' => :'id',
|
60
|
-
:'
|
61
|
-
:'in_reply_to' => :'inReplyTo',
|
59
|
+
:'subject' => :'subject',
|
62
60
|
:'from' => :'from',
|
63
61
|
:'sender' => :'sender',
|
64
62
|
:'recipients' => :'recipients',
|
@@ -70,20 +68,20 @@ module MailSlurpClient
|
|
70
68
|
:'cc' => :'cc',
|
71
69
|
:'bcc' => :'bcc',
|
72
70
|
:'message_id' => :'messageId',
|
71
|
+
:'in_reply_to' => :'inReplyTo',
|
73
72
|
:'body_excerpt' => :'bodyExcerpt',
|
74
73
|
:'text_excerpt' => :'textExcerpt',
|
75
74
|
:'body_md5_hash' => :'bodyMD5Hash',
|
76
|
-
:'virtual_send' => :'virtualSend'
|
75
|
+
:'virtual_send' => :'virtualSend',
|
76
|
+
:'thread_id' => :'threadId'
|
77
77
|
}
|
78
78
|
end
|
79
79
|
|
80
80
|
# Attribute type mapping.
|
81
81
|
def self.openapi_types
|
82
82
|
{
|
83
|
-
:'subject' => :'String',
|
84
83
|
:'id' => :'String',
|
85
|
-
:'
|
86
|
-
:'in_reply_to' => :'String',
|
84
|
+
:'subject' => :'String',
|
87
85
|
:'from' => :'String',
|
88
86
|
:'sender' => :'Sender',
|
89
87
|
:'recipients' => :'EmailRecipients',
|
@@ -95,10 +93,12 @@ module MailSlurpClient
|
|
95
93
|
:'cc' => :'Array<String>',
|
96
94
|
:'bcc' => :'Array<String>',
|
97
95
|
:'message_id' => :'String',
|
96
|
+
:'in_reply_to' => :'String',
|
98
97
|
:'body_excerpt' => :'String',
|
99
98
|
:'text_excerpt' => :'String',
|
100
99
|
:'body_md5_hash' => :'String',
|
101
|
-
:'virtual_send' => :'Boolean'
|
100
|
+
:'virtual_send' => :'Boolean',
|
101
|
+
:'thread_id' => :'String'
|
102
102
|
}
|
103
103
|
end
|
104
104
|
|
@@ -106,16 +106,16 @@ module MailSlurpClient
|
|
106
106
|
def self.openapi_nullable
|
107
107
|
Set.new([
|
108
108
|
:'subject',
|
109
|
-
:'thread_id',
|
110
|
-
:'in_reply_to',
|
111
109
|
:'from',
|
112
110
|
:'sender',
|
113
111
|
:'recipients',
|
114
112
|
:'attachments',
|
115
113
|
:'message_id',
|
114
|
+
:'in_reply_to',
|
116
115
|
:'body_excerpt',
|
117
116
|
:'text_excerpt',
|
118
117
|
:'body_md5_hash',
|
118
|
+
:'thread_id'
|
119
119
|
])
|
120
120
|
end
|
121
121
|
|
@@ -134,20 +134,12 @@ module MailSlurpClient
|
|
134
134
|
h[k.to_sym] = v
|
135
135
|
}
|
136
136
|
|
137
|
-
if attributes.key?(:'subject')
|
138
|
-
self.subject = attributes[:'subject']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'id')
|
142
138
|
self.id = attributes[:'id']
|
143
139
|
end
|
144
140
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
-
end
|
148
|
-
|
149
|
-
if attributes.key?(:'in_reply_to')
|
150
|
-
self.in_reply_to = attributes[:'in_reply_to']
|
141
|
+
if attributes.key?(:'subject')
|
142
|
+
self.subject = attributes[:'subject']
|
151
143
|
end
|
152
144
|
|
153
145
|
if attributes.key?(:'from')
|
@@ -202,6 +194,10 @@ module MailSlurpClient
|
|
202
194
|
self.message_id = attributes[:'message_id']
|
203
195
|
end
|
204
196
|
|
197
|
+
if attributes.key?(:'in_reply_to')
|
198
|
+
self.in_reply_to = attributes[:'in_reply_to']
|
199
|
+
end
|
200
|
+
|
205
201
|
if attributes.key?(:'body_excerpt')
|
206
202
|
self.body_excerpt = attributes[:'body_excerpt']
|
207
203
|
end
|
@@ -217,6 +213,10 @@ module MailSlurpClient
|
|
217
213
|
if attributes.key?(:'virtual_send')
|
218
214
|
self.virtual_send = attributes[:'virtual_send']
|
219
215
|
end
|
216
|
+
|
217
|
+
if attributes.key?(:'thread_id')
|
218
|
+
self.thread_id = attributes[:'thread_id']
|
219
|
+
end
|
220
220
|
end
|
221
221
|
|
222
222
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -277,10 +277,8 @@ module MailSlurpClient
|
|
277
277
|
def ==(o)
|
278
278
|
return true if self.equal?(o)
|
279
279
|
self.class == o.class &&
|
280
|
-
subject == o.subject &&
|
281
280
|
id == o.id &&
|
282
|
-
|
283
|
-
in_reply_to == o.in_reply_to &&
|
281
|
+
subject == o.subject &&
|
284
282
|
from == o.from &&
|
285
283
|
sender == o.sender &&
|
286
284
|
recipients == o.recipients &&
|
@@ -292,10 +290,12 @@ module MailSlurpClient
|
|
292
290
|
cc == o.cc &&
|
293
291
|
bcc == o.bcc &&
|
294
292
|
message_id == o.message_id &&
|
293
|
+
in_reply_to == o.in_reply_to &&
|
295
294
|
body_excerpt == o.body_excerpt &&
|
296
295
|
text_excerpt == o.text_excerpt &&
|
297
296
|
body_md5_hash == o.body_md5_hash &&
|
298
|
-
virtual_send == o.virtual_send
|
297
|
+
virtual_send == o.virtual_send &&
|
298
|
+
thread_id == o.thread_id
|
299
299
|
end
|
300
300
|
|
301
301
|
# @see the `==` method
|
@@ -307,7 +307,7 @@ module MailSlurpClient
|
|
307
307
|
# Calculates hash code according to all attributes.
|
308
308
|
# @return [Integer] Hash code
|
309
309
|
def hash
|
310
|
-
[
|
310
|
+
[id, subject, from, sender, recipients, attachments, inbox_id, user_id, created_at, to, cc, bcc, message_id, in_reply_to, body_excerpt, text_excerpt, body_md5_hash, virtual_send, thread_id].hash
|
311
311
|
end
|
312
312
|
|
313
313
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Unknown missed email projection
|
17
17
|
class UnknownMissedEmailProjection
|
18
|
-
attr_accessor :subject
|
19
|
-
|
20
18
|
attr_accessor :created_at
|
21
19
|
|
22
20
|
attr_accessor :to
|
23
21
|
|
22
|
+
attr_accessor :subject
|
23
|
+
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
attr_accessor :from
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'subject' => :'subject',
|
32
31
|
:'created_at' => :'createdAt',
|
33
32
|
:'to' => :'to',
|
33
|
+
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'subject' => :'String',
|
43
42
|
:'created_at' => :'DateTime',
|
44
43
|
:'to' => :'Array<String>',
|
44
|
+
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -68,10 +68,6 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'subject')
|
72
|
-
self.subject = attributes[:'subject']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'created_at')
|
76
72
|
self.created_at = attributes[:'created_at']
|
77
73
|
end
|
@@ -82,6 +78,10 @@ module MailSlurpClient
|
|
82
78
|
end
|
83
79
|
end
|
84
80
|
|
81
|
+
if attributes.key?(:'subject')
|
82
|
+
self.subject = attributes[:'subject']
|
83
|
+
end
|
84
|
+
|
85
85
|
if attributes.key?(:'id')
|
86
86
|
self.id = attributes[:'id']
|
87
87
|
end
|
@@ -119,9 +119,9 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
subject == o.subject &&
|
123
122
|
created_at == o.created_at &&
|
124
123
|
to == o.to &&
|
124
|
+
subject == o.subject &&
|
125
125
|
id == o.id &&
|
126
126
|
from == o.from
|
127
127
|
end
|
@@ -135,7 +135,7 @@ module MailSlurpClient
|
|
135
135
|
# Calculates hash code according to all attributes.
|
136
136
|
# @return [Integer] Hash code
|
137
137
|
def hash
|
138
|
-
[
|
138
|
+
[created_at, to, subject, id, from].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|