mailslurp_client 15.19.12 → 15.19.13
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/email_controller_api.rb +65 -2
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +10 -10
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/sent_email_projection.rb +17 -17
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- 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: 4acb145f88af1078f8631a5eb9300cd6ff9ef841a1f9189cc31623310cb7319e
|
4
|
+
data.tar.gz: 4ef3e3016135270de2c58390cd23b6d87478452f63a2288b026d940253d05817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0cdd13689926f8394089b5abb4072cd37714926cca8f6138c17b4e3559d3d30bb7c9be253e59e2e653d656126f5d8e2305518d02fd51b90c7812af8d21a419b
|
7
|
+
data.tar.gz: cc8293b566178ddd66b215cf373a3cbe3e801789d38db0f8f3daa10904e41a84ab8ad5c6f74041de34434033e1478db2aee7a81ff6cf4712f870189b2754ae84
|
@@ -2293,6 +2293,7 @@ module MailSlurpClient
|
|
2293
2293
|
# Get unread email count
|
2294
2294
|
# Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
|
2295
2295
|
# @param [Hash] opts the optional parameters
|
2296
|
+
# @option opts [String] :inbox_id Optional inbox ID filter
|
2296
2297
|
# @return [UnreadCount]
|
2297
2298
|
def get_unread_email_count(opts = {})
|
2298
2299
|
data, _status_code, _headers = get_unread_email_count_with_http_info(opts)
|
@@ -2302,6 +2303,7 @@ module MailSlurpClient
|
|
2302
2303
|
# Get unread email count
|
2303
2304
|
# Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
|
2304
2305
|
# @param [Hash] opts the optional parameters
|
2306
|
+
# @option opts [String] :inbox_id Optional inbox ID filter
|
2305
2307
|
# @return [Array<(UnreadCount, Integer, Hash)>] UnreadCount data, response status code and response headers
|
2306
2308
|
def get_unread_email_count_with_http_info(opts = {})
|
2307
2309
|
if @api_client.config.debugging
|
@@ -2312,6 +2314,7 @@ module MailSlurpClient
|
|
2312
2314
|
|
2313
2315
|
# query parameters
|
2314
2316
|
query_params = opts[:query_params] || {}
|
2317
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
2315
2318
|
|
2316
2319
|
# header parameters
|
2317
2320
|
header_params = opts[:header_params] || {}
|
@@ -2346,7 +2349,67 @@ module MailSlurpClient
|
|
2346
2349
|
return data, status_code, headers
|
2347
2350
|
end
|
2348
2351
|
|
2349
|
-
# Mark
|
2352
|
+
# Mark all emails as read or unread
|
2353
|
+
# Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
|
2354
|
+
# @param [Hash] opts the optional parameters
|
2355
|
+
# @option opts [Boolean] :read What value to assign to email read property. Default true. (default to true)
|
2356
|
+
# @option opts [String] :inbox_id Optional inbox ID filter
|
2357
|
+
# @return [nil]
|
2358
|
+
def mark_all_as_read(opts = {})
|
2359
|
+
mark_all_as_read_with_http_info(opts)
|
2360
|
+
nil
|
2361
|
+
end
|
2362
|
+
|
2363
|
+
# Mark all emails as read or unread
|
2364
|
+
# Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
|
2365
|
+
# @param [Hash] opts the optional parameters
|
2366
|
+
# @option opts [Boolean] :read What value to assign to email read property. Default true.
|
2367
|
+
# @option opts [String] :inbox_id Optional inbox ID filter
|
2368
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2369
|
+
def mark_all_as_read_with_http_info(opts = {})
|
2370
|
+
if @api_client.config.debugging
|
2371
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.mark_all_as_read ...'
|
2372
|
+
end
|
2373
|
+
# resource path
|
2374
|
+
local_var_path = '/emails/read'
|
2375
|
+
|
2376
|
+
# query parameters
|
2377
|
+
query_params = opts[:query_params] || {}
|
2378
|
+
query_params[:'read'] = opts[:'read'] if !opts[:'read'].nil?
|
2379
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
2380
|
+
|
2381
|
+
# header parameters
|
2382
|
+
header_params = opts[:header_params] || {}
|
2383
|
+
|
2384
|
+
# form parameters
|
2385
|
+
form_params = opts[:form_params] || {}
|
2386
|
+
|
2387
|
+
# http body (model)
|
2388
|
+
post_body = opts[:body]
|
2389
|
+
|
2390
|
+
# return_type
|
2391
|
+
return_type = opts[:return_type]
|
2392
|
+
|
2393
|
+
# auth_names
|
2394
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
2395
|
+
|
2396
|
+
new_options = opts.merge(
|
2397
|
+
:header_params => header_params,
|
2398
|
+
:query_params => query_params,
|
2399
|
+
:form_params => form_params,
|
2400
|
+
:body => post_body,
|
2401
|
+
:auth_names => auth_names,
|
2402
|
+
:return_type => return_type
|
2403
|
+
)
|
2404
|
+
|
2405
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2406
|
+
if @api_client.config.debugging
|
2407
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#mark_all_as_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2408
|
+
end
|
2409
|
+
return data, status_code, headers
|
2410
|
+
end
|
2411
|
+
|
2412
|
+
# Mark an email as read or unread
|
2350
2413
|
# Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
|
2351
2414
|
# @param email_id [String]
|
2352
2415
|
# @param [Hash] opts the optional parameters
|
@@ -2357,7 +2420,7 @@ module MailSlurpClient
|
|
2357
2420
|
data
|
2358
2421
|
end
|
2359
2422
|
|
2360
|
-
# Mark an email as read
|
2423
|
+
# Mark an email as read or unread
|
2361
2424
|
# Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
|
2362
2425
|
# @param email_id [String]
|
2363
2426
|
# @param [Hash] opts the optional parameters
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :inbox_id
|
23
23
|
|
24
24
|
attr_accessor :use_threads
|
@@ -34,8 +34,8 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'user_id' => :'userId',
|
38
37
|
:'email_address' => :'emailAddress',
|
38
|
+
:'user_id' => :'userId',
|
39
39
|
:'inbox_id' => :'inboxId',
|
40
40
|
:'use_threads' => :'useThreads',
|
41
41
|
:'created_at' => :'createdAt',
|
@@ -48,8 +48,8 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'user_id' => :'String',
|
52
51
|
:'email_address' => :'String',
|
52
|
+
:'user_id' => :'String',
|
53
53
|
:'inbox_id' => :'String',
|
54
54
|
:'use_threads' => :'Boolean',
|
55
55
|
:'created_at' => :'DateTime',
|
@@ -80,14 +80,14 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'user_id')
|
84
|
-
self.user_id = attributes[:'user_id']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'email_address')
|
88
84
|
self.email_address = attributes[:'email_address']
|
89
85
|
end
|
90
86
|
|
87
|
+
if attributes.key?(:'user_id')
|
88
|
+
self.user_id = attributes[:'user_id']
|
89
|
+
end
|
90
|
+
|
91
91
|
if attributes.key?(:'inbox_id')
|
92
92
|
self.inbox_id = attributes[:'inbox_id']
|
93
93
|
end
|
@@ -117,14 +117,14 @@ module MailSlurpClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @user_id.nil?
|
121
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
120
|
if @email_address.nil?
|
125
121
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
126
122
|
end
|
127
123
|
|
124
|
+
if @user_id.nil?
|
125
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
126
|
+
end
|
127
|
+
|
128
128
|
if @inbox_id.nil?
|
129
129
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
130
130
|
end
|
@@ -147,8 +147,8 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if @user_id.nil?
|
151
150
|
return false if @email_address.nil?
|
151
|
+
return false if @user_id.nil?
|
152
152
|
return false if @inbox_id.nil?
|
153
153
|
return false if @created_at.nil?
|
154
154
|
return false if @updated_at.nil?
|
@@ -161,8 +161,8 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
user_id == o.user_id &&
|
165
164
|
email_address == o.email_address &&
|
165
|
+
user_id == o.user_id &&
|
166
166
|
inbox_id == o.inbox_id &&
|
167
167
|
use_threads == o.use_threads &&
|
168
168
|
created_at == o.created_at &&
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[
|
183
|
+
[email_address, user_id, inbox_id, use_threads, created_at, updated_at, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class ConnectorProjection
|
18
18
|
attr_accessor :enabled
|
19
19
|
|
20
|
-
attr_accessor :user_id
|
21
|
-
|
22
20
|
attr_accessor :email_address
|
23
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
attr_accessor :inbox_id
|
25
25
|
|
26
26
|
attr_accessor :sync_enabled
|
@@ -61,8 +61,8 @@ module MailSlurpClient
|
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
63
|
:'enabled' => :'enabled',
|
64
|
-
:'user_id' => :'userId',
|
65
64
|
:'email_address' => :'emailAddress',
|
65
|
+
:'user_id' => :'userId',
|
66
66
|
:'inbox_id' => :'inboxId',
|
67
67
|
:'sync_enabled' => :'syncEnabled',
|
68
68
|
:'sync_schedule_type' => :'syncScheduleType',
|
@@ -77,8 +77,8 @@ module MailSlurpClient
|
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
79
|
:'enabled' => :'Boolean',
|
80
|
-
:'user_id' => :'String',
|
81
80
|
:'email_address' => :'String',
|
81
|
+
:'user_id' => :'String',
|
82
82
|
:'inbox_id' => :'String',
|
83
83
|
:'sync_enabled' => :'Boolean',
|
84
84
|
:'sync_schedule_type' => :'String',
|
@@ -114,14 +114,14 @@ module MailSlurpClient
|
|
114
114
|
self.enabled = attributes[:'enabled']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'user_id')
|
118
|
-
self.user_id = attributes[:'user_id']
|
119
|
-
end
|
120
|
-
|
121
117
|
if attributes.key?(:'email_address')
|
122
118
|
self.email_address = attributes[:'email_address']
|
123
119
|
end
|
124
120
|
|
121
|
+
if attributes.key?(:'user_id')
|
122
|
+
self.user_id = attributes[:'user_id']
|
123
|
+
end
|
124
|
+
|
125
125
|
if attributes.key?(:'inbox_id')
|
126
126
|
self.inbox_id = attributes[:'inbox_id']
|
127
127
|
end
|
@@ -202,8 +202,8 @@ module MailSlurpClient
|
|
202
202
|
return true if self.equal?(o)
|
203
203
|
self.class == o.class &&
|
204
204
|
enabled == o.enabled &&
|
205
|
-
user_id == o.user_id &&
|
206
205
|
email_address == o.email_address &&
|
206
|
+
user_id == o.user_id &&
|
207
207
|
inbox_id == o.inbox_id &&
|
208
208
|
sync_enabled == o.sync_enabled &&
|
209
209
|
sync_schedule_type == o.sync_schedule_type &&
|
@@ -222,7 +222,7 @@ module MailSlurpClient
|
|
222
222
|
# Calculates hash code according to all attributes.
|
223
223
|
# @return [Integer] Hash code
|
224
224
|
def hash
|
225
|
-
[enabled,
|
225
|
+
[enabled, email_address, user_id, inbox_id, sync_enabled, sync_schedule_type, sync_interval, created_at, name, id].hash
|
226
226
|
end
|
227
227
|
|
228
228
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ 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 :inbox_id
|
19
|
-
|
20
18
|
attr_accessor :attachments
|
21
19
|
|
20
|
+
attr_accessor :inbox_id
|
21
|
+
|
22
22
|
attr_accessor :to
|
23
23
|
|
24
24
|
attr_accessor :domain_id
|
@@ -48,8 +48,8 @@ module MailSlurpClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'inbox_id' => :'inboxId',
|
52
51
|
:'attachments' => :'attachments',
|
52
|
+
:'inbox_id' => :'inboxId',
|
53
53
|
:'to' => :'to',
|
54
54
|
:'domain_id' => :'domainId',
|
55
55
|
:'bcc' => :'bcc',
|
@@ -69,8 +69,8 @@ module MailSlurpClient
|
|
69
69
|
# Attribute type mapping.
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
|
-
:'inbox_id' => :'String',
|
73
72
|
:'attachments' => :'Array<String>',
|
73
|
+
:'inbox_id' => :'String',
|
74
74
|
:'to' => :'Array<String>',
|
75
75
|
:'domain_id' => :'String',
|
76
76
|
:'bcc' => :'Array<String>',
|
@@ -117,16 +117,16 @@ module MailSlurpClient
|
|
117
117
|
h[k.to_sym] = v
|
118
118
|
}
|
119
119
|
|
120
|
-
if attributes.key?(:'inbox_id')
|
121
|
-
self.inbox_id = attributes[:'inbox_id']
|
122
|
-
end
|
123
|
-
|
124
120
|
if attributes.key?(:'attachments')
|
125
121
|
if (value = attributes[:'attachments']).is_a?(Array)
|
126
122
|
self.attachments = value
|
127
123
|
end
|
128
124
|
end
|
129
125
|
|
126
|
+
if attributes.key?(:'inbox_id')
|
127
|
+
self.inbox_id = attributes[:'inbox_id']
|
128
|
+
end
|
129
|
+
|
130
130
|
if attributes.key?(:'to')
|
131
131
|
if (value = attributes[:'to']).is_a?(Array)
|
132
132
|
self.to = value
|
@@ -234,8 +234,8 @@ module MailSlurpClient
|
|
234
234
|
def ==(o)
|
235
235
|
return true if self.equal?(o)
|
236
236
|
self.class == o.class &&
|
237
|
-
inbox_id == o.inbox_id &&
|
238
237
|
attachments == o.attachments &&
|
238
|
+
inbox_id == o.inbox_id &&
|
239
239
|
to == o.to &&
|
240
240
|
domain_id == o.domain_id &&
|
241
241
|
bcc == o.bcc &&
|
@@ -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
|
+
[attachments, inbox_id, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt, created_at, subject, id, from].hash
|
264
264
|
end
|
265
265
|
|
266
266
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -26,8 +26,8 @@ module MailSlurpClient
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'user_id' => :'userId',
|
30
29
|
:'email_address' => :'emailAddress',
|
30
|
+
:'user_id' => :'userId',
|
31
31
|
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
@@ -36,8 +36,8 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'user_id' => :'String',
|
40
39
|
:'email_address' => :'String',
|
40
|
+
:'user_id' => :'String',
|
41
41
|
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'user_id')
|
68
|
-
self.user_id = attributes[:'user_id']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'email_address')
|
72
68
|
self.email_address = attributes[:'email_address']
|
73
69
|
end
|
74
70
|
|
71
|
+
if attributes.key?(:'user_id')
|
72
|
+
self.user_id = attributes[:'user_id']
|
73
|
+
end
|
74
|
+
|
75
75
|
if attributes.key?(:'created_at')
|
76
76
|
self.created_at = attributes[:'created_at']
|
77
77
|
end
|
@@ -85,14 +85,14 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
-
if @user_id.nil?
|
89
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
88
|
if @email_address.nil?
|
93
89
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
90
|
end
|
95
91
|
|
92
|
+
if @user_id.nil?
|
93
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
96
|
if @created_at.nil?
|
97
97
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
98
|
end
|
@@ -107,8 +107,8 @@ module MailSlurpClient
|
|
107
107
|
# Check to see if the all the properties in the model are valid
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
|
-
return false if @user_id.nil?
|
111
110
|
return false if @email_address.nil?
|
111
|
+
return false if @user_id.nil?
|
112
112
|
return false if @created_at.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
user_id == o.user_id &&
|
123
122
|
email_address == o.email_address &&
|
123
|
+
user_id == o.user_id &&
|
124
124
|
created_at == o.created_at &&
|
125
125
|
id == o.id
|
126
126
|
end
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[
|
137
|
+
[email_address, user_id, created_at, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -18,10 +18,10 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :page_size
|
20
20
|
|
21
|
-
attr_accessor :unpaged
|
22
|
-
|
23
21
|
attr_accessor :paged
|
24
22
|
|
23
|
+
attr_accessor :unpaged
|
24
|
+
|
25
25
|
attr_accessor :offset
|
26
26
|
|
27
27
|
attr_accessor :sort
|
@@ -31,8 +31,8 @@ module MailSlurpClient
|
|
31
31
|
{
|
32
32
|
:'page_number' => :'pageNumber',
|
33
33
|
:'page_size' => :'pageSize',
|
34
|
-
:'unpaged' => :'unpaged',
|
35
34
|
:'paged' => :'paged',
|
35
|
+
:'unpaged' => :'unpaged',
|
36
36
|
:'offset' => :'offset',
|
37
37
|
:'sort' => :'sort'
|
38
38
|
}
|
@@ -43,8 +43,8 @@ module MailSlurpClient
|
|
43
43
|
{
|
44
44
|
:'page_number' => :'Integer',
|
45
45
|
:'page_size' => :'Integer',
|
46
|
-
:'unpaged' => :'Boolean',
|
47
46
|
:'paged' => :'Boolean',
|
47
|
+
:'unpaged' => :'Boolean',
|
48
48
|
:'offset' => :'Integer',
|
49
49
|
:'sort' => :'SortObject'
|
50
50
|
}
|
@@ -79,14 +79,14 @@ module MailSlurpClient
|
|
79
79
|
self.page_size = attributes[:'page_size']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'unpaged')
|
83
|
-
self.unpaged = attributes[:'unpaged']
|
84
|
-
end
|
85
|
-
|
86
82
|
if attributes.key?(:'paged')
|
87
83
|
self.paged = attributes[:'paged']
|
88
84
|
end
|
89
85
|
|
86
|
+
if attributes.key?(:'unpaged')
|
87
|
+
self.unpaged = attributes[:'unpaged']
|
88
|
+
end
|
89
|
+
|
90
90
|
if attributes.key?(:'offset')
|
91
91
|
self.offset = attributes[:'offset']
|
92
92
|
end
|
@@ -116,8 +116,8 @@ module MailSlurpClient
|
|
116
116
|
self.class == o.class &&
|
117
117
|
page_number == o.page_number &&
|
118
118
|
page_size == o.page_size &&
|
119
|
-
unpaged == o.unpaged &&
|
120
119
|
paged == o.paged &&
|
120
|
+
unpaged == o.unpaged &&
|
121
121
|
offset == o.offset &&
|
122
122
|
sort == o.sort
|
123
123
|
end
|
@@ -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
|
-
[page_number, page_size,
|
134
|
+
[page_number, page_size, paged, unpaged, offset, sort].hash
|
135
135
|
end
|
136
136
|
|
137
137
|
# Builds the object from hash
|
@@ -20,12 +20,12 @@ module MailSlurpClient
|
|
20
20
|
|
21
21
|
attr_accessor :subject
|
22
22
|
|
23
|
+
attr_accessor :attachments
|
24
|
+
|
23
25
|
attr_accessor :user_id
|
24
26
|
|
25
27
|
attr_accessor :inbox_id
|
26
28
|
|
27
|
-
attr_accessor :attachments
|
28
|
-
|
29
29
|
attr_accessor :to
|
30
30
|
|
31
31
|
attr_accessor :bcc
|
@@ -44,9 +44,9 @@ module MailSlurpClient
|
|
44
44
|
:'id' => :'id',
|
45
45
|
:'from' => :'from',
|
46
46
|
:'subject' => :'subject',
|
47
|
+
:'attachments' => :'attachments',
|
47
48
|
:'user_id' => :'userId',
|
48
49
|
:'inbox_id' => :'inboxId',
|
49
|
-
:'attachments' => :'attachments',
|
50
50
|
:'to' => :'to',
|
51
51
|
:'bcc' => :'bcc',
|
52
52
|
:'cc' => :'cc',
|
@@ -62,9 +62,9 @@ module MailSlurpClient
|
|
62
62
|
:'id' => :'String',
|
63
63
|
:'from' => :'String',
|
64
64
|
:'subject' => :'String',
|
65
|
+
:'attachments' => :'Array<String>',
|
65
66
|
:'user_id' => :'String',
|
66
67
|
:'inbox_id' => :'String',
|
67
|
-
:'attachments' => :'Array<String>',
|
68
68
|
:'to' => :'Array<String>',
|
69
69
|
:'bcc' => :'Array<String>',
|
70
70
|
:'cc' => :'Array<String>',
|
@@ -107,6 +107,12 @@ module MailSlurpClient
|
|
107
107
|
self.subject = attributes[:'subject']
|
108
108
|
end
|
109
109
|
|
110
|
+
if attributes.key?(:'attachments')
|
111
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
112
|
+
self.attachments = value
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
110
116
|
if attributes.key?(:'user_id')
|
111
117
|
self.user_id = attributes[:'user_id']
|
112
118
|
end
|
@@ -115,12 +121,6 @@ module MailSlurpClient
|
|
115
121
|
self.inbox_id = attributes[:'inbox_id']
|
116
122
|
end
|
117
123
|
|
118
|
-
if attributes.key?(:'attachments')
|
119
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
120
|
-
self.attachments = value
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
124
|
if attributes.key?(:'to')
|
125
125
|
if (value = attributes[:'to']).is_a?(Array)
|
126
126
|
self.to = value
|
@@ -160,6 +160,10 @@ module MailSlurpClient
|
|
160
160
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
161
161
|
end
|
162
162
|
|
163
|
+
if @attachments.nil?
|
164
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
165
|
+
end
|
166
|
+
|
163
167
|
if @user_id.nil?
|
164
168
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
165
169
|
end
|
@@ -168,10 +172,6 @@ module MailSlurpClient
|
|
168
172
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
169
173
|
end
|
170
174
|
|
171
|
-
if @attachments.nil?
|
172
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
173
|
-
end
|
174
|
-
|
175
175
|
if @to.nil?
|
176
176
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
177
177
|
end
|
@@ -199,9 +199,9 @@ module MailSlurpClient
|
|
199
199
|
# @return true if the model is valid
|
200
200
|
def valid?
|
201
201
|
return false if @id.nil?
|
202
|
+
return false if @attachments.nil?
|
202
203
|
return false if @user_id.nil?
|
203
204
|
return false if @inbox_id.nil?
|
204
|
-
return false if @attachments.nil?
|
205
205
|
return false if @to.nil?
|
206
206
|
return false if @bcc.nil?
|
207
207
|
return false if @cc.nil?
|
@@ -218,9 +218,9 @@ module MailSlurpClient
|
|
218
218
|
id == o.id &&
|
219
219
|
from == o.from &&
|
220
220
|
subject == o.subject &&
|
221
|
+
attachments == o.attachments &&
|
221
222
|
user_id == o.user_id &&
|
222
223
|
inbox_id == o.inbox_id &&
|
223
|
-
attachments == o.attachments &&
|
224
224
|
to == o.to &&
|
225
225
|
bcc == o.bcc &&
|
226
226
|
cc == o.cc &&
|
@@ -238,7 +238,7 @@ module MailSlurpClient
|
|
238
238
|
# Calculates hash code according to all attributes.
|
239
239
|
# @return [Integer] Hash code
|
240
240
|
def hash
|
241
|
-
[id, from, subject, user_id, inbox_id,
|
241
|
+
[id, from, subject, attachments, user_id, inbox_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
|
242
242
|
end
|
243
243
|
|
244
244
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
+
attr_accessor :sent_email_id
|
19
|
+
|
18
20
|
attr_accessor :user_id
|
19
21
|
|
20
22
|
attr_accessor :inbox_id
|
21
23
|
|
22
|
-
attr_accessor :sent_email_id
|
23
|
-
|
24
24
|
attr_accessor :recipient
|
25
25
|
|
26
26
|
attr_accessor :seen
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
+
:'sent_email_id' => :'sentEmailId',
|
39
40
|
:'user_id' => :'userId',
|
40
41
|
:'inbox_id' => :'inboxId',
|
41
|
-
:'sent_email_id' => :'sentEmailId',
|
42
42
|
:'recipient' => :'recipient',
|
43
43
|
:'seen' => :'seen',
|
44
44
|
:'seen_at' => :'seenAt',
|
@@ -51,9 +51,9 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
+
:'sent_email_id' => :'String',
|
54
55
|
:'user_id' => :'String',
|
55
56
|
:'inbox_id' => :'String',
|
56
|
-
:'sent_email_id' => :'String',
|
57
57
|
:'recipient' => :'String',
|
58
58
|
:'seen' => :'Boolean',
|
59
59
|
:'seen_at' => :'DateTime',
|
@@ -84,6 +84,10 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
+
if attributes.key?(:'sent_email_id')
|
88
|
+
self.sent_email_id = attributes[:'sent_email_id']
|
89
|
+
end
|
90
|
+
|
87
91
|
if attributes.key?(:'user_id')
|
88
92
|
self.user_id = attributes[:'user_id']
|
89
93
|
end
|
@@ -92,10 +96,6 @@ module MailSlurpClient
|
|
92
96
|
self.inbox_id = attributes[:'inbox_id']
|
93
97
|
end
|
94
98
|
|
95
|
-
if attributes.key?(:'sent_email_id')
|
96
|
-
self.sent_email_id = attributes[:'sent_email_id']
|
97
|
-
end
|
98
|
-
|
99
99
|
if attributes.key?(:'recipient')
|
100
100
|
self.recipient = attributes[:'recipient']
|
101
101
|
end
|
@@ -159,9 +159,9 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
+
sent_email_id == o.sent_email_id &&
|
162
163
|
user_id == o.user_id &&
|
163
164
|
inbox_id == o.inbox_id &&
|
164
|
-
sent_email_id == o.sent_email_id &&
|
165
165
|
recipient == o.recipient &&
|
166
166
|
seen == o.seen &&
|
167
167
|
seen_at == o.seen_at &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[user_id, inbox_id,
|
182
|
+
[sent_email_id, user_id, inbox_id, recipient, seen, seen_at, created_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.19.
|
4
|
+
version: 15.19.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/ruby/ for full Ruby documentation. Get
|