mailslurp_client 15.19.11 → 15.19.12
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/imap_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +57 -0
- data/lib/mailslurp_client/models/alias_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +30 -30
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/email_projection.rb +21 -21
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_server_get_result.rb +206 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +41 -41
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +21 -21
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86b70a90c101a253cc2011a78b07956609de76b9bb98a119367ee3215879100c
|
4
|
+
data.tar.gz: 8fcadb7ec7e9da409fbb3e95de63804450f2f53f71c185972382b9f0b1d0e885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c229e693c26bda57a048e7d5a260aa0ee43f03f2540c48a55f74a62270b813646642bd02f3560282372ee351ed6fddf14cd6a2b9920574583914cb8f0b9623e2
|
7
|
+
data.tar.gz: 4a0f33a018a5e719a3d8004453cea3f5f07e9929a68cd1e311fd2cfa24a5f45602655edba48d29055b92a996a77c239f6f2948490ff77d7161bed1ab0d016451
|
@@ -83,6 +83,70 @@ module MailSlurpClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
+
# Get a message by email ID
|
87
|
+
# @param email_id [String] Email ID to get
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :inbox_id Inbox ID to search
|
90
|
+
# @return [ImapServerGetResult]
|
91
|
+
def imap_server_get(email_id, opts = {})
|
92
|
+
data, _status_code, _headers = imap_server_get_with_http_info(email_id, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Get a message by email ID
|
97
|
+
# @param email_id [String] Email ID to get
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :inbox_id Inbox ID to search
|
100
|
+
# @return [Array<(ImapServerGetResult, Integer, Hash)>] ImapServerGetResult data, response status code and response headers
|
101
|
+
def imap_server_get_with_http_info(email_id, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_get ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'email_id' is set
|
106
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling ImapControllerApi.imap_server_get"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/imap/server/get'
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
query_params[:'emailId'] = email_id
|
115
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:body]
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:return_type] || 'ImapServerGetResult'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type
|
141
|
+
)
|
142
|
+
|
143
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: ImapControllerApi#imap_server_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
|
86
150
|
# List messages in an inbox
|
87
151
|
# @param imap_server_list_options [ImapServerListOptions]
|
88
152
|
# @param [Hash] opts the optional parameters
|
@@ -1433,6 +1433,63 @@ module MailSlurpClient
|
|
1433
1433
|
return data, status_code, headers
|
1434
1434
|
end
|
1435
1435
|
|
1436
|
+
# Get IMAP and SMTP access details in .env format
|
1437
|
+
# @param [Hash] opts the optional parameters
|
1438
|
+
# @option opts [String] :inbox_id Inbox ID
|
1439
|
+
# @return [String]
|
1440
|
+
def get_imap_smtp_access_env(opts = {})
|
1441
|
+
data, _status_code, _headers = get_imap_smtp_access_env_with_http_info(opts)
|
1442
|
+
data
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
# Get IMAP and SMTP access details in .env format
|
1446
|
+
# @param [Hash] opts the optional parameters
|
1447
|
+
# @option opts [String] :inbox_id Inbox ID
|
1448
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
1449
|
+
def get_imap_smtp_access_env_with_http_info(opts = {})
|
1450
|
+
if @api_client.config.debugging
|
1451
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_imap_smtp_access_env ...'
|
1452
|
+
end
|
1453
|
+
# resource path
|
1454
|
+
local_var_path = '/inboxes/imap-smtp-access/env'
|
1455
|
+
|
1456
|
+
# query parameters
|
1457
|
+
query_params = opts[:query_params] || {}
|
1458
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
1459
|
+
|
1460
|
+
# header parameters
|
1461
|
+
header_params = opts[:header_params] || {}
|
1462
|
+
# HTTP header 'Accept' (if needed)
|
1463
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1464
|
+
|
1465
|
+
# form parameters
|
1466
|
+
form_params = opts[:form_params] || {}
|
1467
|
+
|
1468
|
+
# http body (model)
|
1469
|
+
post_body = opts[:body]
|
1470
|
+
|
1471
|
+
# return_type
|
1472
|
+
return_type = opts[:return_type] || 'String'
|
1473
|
+
|
1474
|
+
# auth_names
|
1475
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1476
|
+
|
1477
|
+
new_options = opts.merge(
|
1478
|
+
:header_params => header_params,
|
1479
|
+
:query_params => query_params,
|
1480
|
+
:form_params => form_params,
|
1481
|
+
:body => post_body,
|
1482
|
+
:auth_names => auth_names,
|
1483
|
+
:return_type => return_type
|
1484
|
+
)
|
1485
|
+
|
1486
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1487
|
+
if @api_client.config.debugging
|
1488
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_imap_smtp_access_env\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1489
|
+
end
|
1490
|
+
return data, status_code, headers
|
1491
|
+
end
|
1492
|
+
|
1436
1493
|
# Get Inbox. Returns properties of an inbox.
|
1437
1494
|
# Returns an inbox's properties, including its email address and ID.
|
1438
1495
|
# @param inbox_id [String]
|
@@ -15,17 +15,17 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :user_id
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :email_address
|
21
21
|
|
22
22
|
attr_accessor :inbox_id
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :use_threads
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :created_at
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :updated_at
|
29
29
|
|
30
30
|
attr_accessor :name
|
31
31
|
|
@@ -34,12 +34,12 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'created_at' => :'createdAt',
|
38
|
-
:'updated_at' => :'updatedAt',
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
|
-
:'email_address' => :'emailAddress',
|
41
37
|
:'user_id' => :'userId',
|
38
|
+
:'email_address' => :'emailAddress',
|
39
|
+
:'inbox_id' => :'inboxId',
|
42
40
|
:'use_threads' => :'useThreads',
|
41
|
+
:'created_at' => :'createdAt',
|
42
|
+
:'updated_at' => :'updatedAt',
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id'
|
45
45
|
}
|
@@ -48,12 +48,12 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'created_at' => :'DateTime',
|
52
|
-
:'updated_at' => :'DateTime',
|
53
|
-
:'inbox_id' => :'String',
|
54
|
-
:'email_address' => :'String',
|
55
51
|
:'user_id' => :'String',
|
52
|
+
:'email_address' => :'String',
|
53
|
+
:'inbox_id' => :'String',
|
56
54
|
:'use_threads' => :'Boolean',
|
55
|
+
:'created_at' => :'DateTime',
|
56
|
+
:'updated_at' => :'DateTime',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'id' => :'String'
|
59
59
|
}
|
@@ -80,28 +80,28 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
83
|
+
if attributes.key?(:'user_id')
|
84
|
+
self.user_id = attributes[:'user_id']
|
85
85
|
end
|
86
86
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
87
|
+
if attributes.key?(:'email_address')
|
88
|
+
self.email_address = attributes[:'email_address']
|
89
89
|
end
|
90
90
|
|
91
91
|
if attributes.key?(:'inbox_id')
|
92
92
|
self.inbox_id = attributes[:'inbox_id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'use_threads')
|
96
|
+
self.use_threads = attributes[:'use_threads']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'created_at')
|
100
|
+
self.created_at = attributes[:'created_at']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'updated_at')
|
104
|
+
self.updated_at = attributes[:'updated_at']
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.key?(:'name')
|
@@ -117,24 +117,24 @@ 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 @
|
121
|
-
invalid_properties.push('invalid value for "
|
120
|
+
if @user_id.nil?
|
121
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
-
if @
|
125
|
-
invalid_properties.push('invalid value for "
|
124
|
+
if @email_address.nil?
|
125
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
126
126
|
end
|
127
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
|
131
131
|
|
132
|
-
if @
|
133
|
-
invalid_properties.push('invalid value for "
|
132
|
+
if @created_at.nil?
|
133
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
134
|
end
|
135
135
|
|
136
|
-
if @
|
137
|
-
invalid_properties.push('invalid value for "
|
136
|
+
if @updated_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
138
|
end
|
139
139
|
|
140
140
|
if @id.nil?
|
@@ -147,11 +147,11 @@ 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
|
+
return false if @email_address.nil?
|
152
|
+
return false if @inbox_id.nil?
|
150
153
|
return false if @created_at.nil?
|
151
154
|
return false if @updated_at.nil?
|
152
|
-
return false if @inbox_id.nil?
|
153
|
-
return false if @email_address.nil?
|
154
|
-
return false if @user_id.nil?
|
155
155
|
return false if @id.nil?
|
156
156
|
true
|
157
157
|
end
|
@@ -161,12 +161,12 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
created_at == o.created_at &&
|
165
|
-
updated_at == o.updated_at &&
|
166
|
-
inbox_id == o.inbox_id &&
|
167
|
-
email_address == o.email_address &&
|
168
164
|
user_id == o.user_id &&
|
165
|
+
email_address == o.email_address &&
|
166
|
+
inbox_id == o.inbox_id &&
|
169
167
|
use_threads == o.use_threads &&
|
168
|
+
created_at == o.created_at &&
|
169
|
+
updated_at == o.updated_at &&
|
170
170
|
name == o.name &&
|
171
171
|
id == o.id
|
172
172
|
end
|
@@ -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
|
+
[user_id, email_address, inbox_id, use_threads, created_at, updated_at, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -15,10 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email attachment data
|
17
17
|
class AttachmentProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :updated_at
|
21
|
-
|
22
18
|
attr_accessor :user_id
|
23
19
|
|
24
20
|
# Content ID of attachment.
|
@@ -27,6 +23,10 @@ module MailSlurpClient
|
|
27
23
|
# Attachment ID
|
28
24
|
attr_accessor :attachment_id
|
29
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
|
+
attr_accessor :updated_at
|
29
|
+
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
# Content length of attachment in bytes
|
@@ -38,11 +38,11 @@ module MailSlurpClient
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'created_at' => :'createdAt',
|
42
|
-
:'updated_at' => :'updatedAt',
|
43
41
|
:'user_id' => :'userId',
|
44
42
|
:'content_id' => :'contentId',
|
45
43
|
:'attachment_id' => :'attachmentId',
|
44
|
+
:'created_at' => :'createdAt',
|
45
|
+
:'updated_at' => :'updatedAt',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'content_length' => :'contentLength',
|
48
48
|
:'content_type' => :'contentType'
|
@@ -52,11 +52,11 @@ module MailSlurpClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'created_at' => :'DateTime',
|
56
|
-
:'updated_at' => :'DateTime',
|
57
55
|
:'user_id' => :'String',
|
58
56
|
:'content_id' => :'String',
|
59
57
|
:'attachment_id' => :'String',
|
58
|
+
:'created_at' => :'DateTime',
|
59
|
+
:'updated_at' => :'DateTime',
|
60
60
|
:'name' => :'String',
|
61
61
|
:'content_length' => :'Integer',
|
62
62
|
:'content_type' => :'String'
|
@@ -88,14 +88,6 @@ module MailSlurpClient
|
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
90
90
|
|
91
|
-
if attributes.key?(:'created_at')
|
92
|
-
self.created_at = attributes[:'created_at']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'updated_at')
|
96
|
-
self.updated_at = attributes[:'updated_at']
|
97
|
-
end
|
98
|
-
|
99
91
|
if attributes.key?(:'user_id')
|
100
92
|
self.user_id = attributes[:'user_id']
|
101
93
|
end
|
@@ -108,6 +100,14 @@ module MailSlurpClient
|
|
108
100
|
self.attachment_id = attributes[:'attachment_id']
|
109
101
|
end
|
110
102
|
|
103
|
+
if attributes.key?(:'created_at')
|
104
|
+
self.created_at = attributes[:'created_at']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'updated_at')
|
108
|
+
self.updated_at = attributes[:'updated_at']
|
109
|
+
end
|
110
|
+
|
111
111
|
if attributes.key?(:'name')
|
112
112
|
self.name = attributes[:'name']
|
113
113
|
end
|
@@ -125,14 +125,6 @@ module MailSlurpClient
|
|
125
125
|
# @return Array for valid properties with the reasons
|
126
126
|
def list_invalid_properties
|
127
127
|
invalid_properties = Array.new
|
128
|
-
if @created_at.nil?
|
129
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if @updated_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
128
|
if @user_id.nil?
|
137
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
138
130
|
end
|
@@ -141,16 +133,24 @@ module MailSlurpClient
|
|
141
133
|
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
142
134
|
end
|
143
135
|
|
136
|
+
if @created_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @updated_at.nil?
|
141
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
144
|
invalid_properties
|
145
145
|
end
|
146
146
|
|
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 @created_at.nil?
|
151
|
-
return false if @updated_at.nil?
|
152
150
|
return false if @user_id.nil?
|
153
151
|
return false if @attachment_id.nil?
|
152
|
+
return false if @created_at.nil?
|
153
|
+
return false if @updated_at.nil?
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -159,11 +159,11 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
-
created_at == o.created_at &&
|
163
|
-
updated_at == o.updated_at &&
|
164
162
|
user_id == o.user_id &&
|
165
163
|
content_id == o.content_id &&
|
166
164
|
attachment_id == o.attachment_id &&
|
165
|
+
created_at == o.created_at &&
|
166
|
+
updated_at == o.updated_at &&
|
167
167
|
name == o.name &&
|
168
168
|
content_length == o.content_length &&
|
169
169
|
content_type == o.content_type
|
@@ -178,7 +178,7 @@ module MailSlurpClient
|
|
178
178
|
# Calculates hash code according to all attributes.
|
179
179
|
# @return [Integer] Hash code
|
180
180
|
def hash
|
181
|
-
[
|
181
|
+
[user_id, content_id, attachment_id, created_at, updated_at, name, content_length, content_type].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# Builds the object from hash
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :sender
|
21
19
|
|
20
|
+
attr_accessor :bounce_mta
|
21
|
+
|
22
22
|
attr_accessor :bounce_type
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :created_at
|
25
25
|
|
26
26
|
attr_accessor :subject
|
27
27
|
|
@@ -30,10 +30,10 @@ module MailSlurpClient
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'created_at' => :'createdAt',
|
34
33
|
:'sender' => :'sender',
|
35
|
-
:'bounce_type' => :'bounceType',
|
36
34
|
:'bounce_mta' => :'bounceMta',
|
35
|
+
:'bounce_type' => :'bounceType',
|
36
|
+
:'created_at' => :'createdAt',
|
37
37
|
:'subject' => :'subject',
|
38
38
|
:'id' => :'id'
|
39
39
|
}
|
@@ -42,10 +42,10 @@ module MailSlurpClient
|
|
42
42
|
# Attribute type mapping.
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
|
-
:'created_at' => :'DateTime',
|
46
45
|
:'sender' => :'String',
|
47
|
-
:'bounce_type' => :'String',
|
48
46
|
:'bounce_mta' => :'String',
|
47
|
+
:'bounce_type' => :'String',
|
48
|
+
:'created_at' => :'DateTime',
|
49
49
|
:'subject' => :'String',
|
50
50
|
:'id' => :'String'
|
51
51
|
}
|
@@ -54,8 +54,8 @@ module MailSlurpClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'bounce_type',
|
58
57
|
:'bounce_mta',
|
58
|
+
:'bounce_type',
|
59
59
|
:'subject',
|
60
60
|
])
|
61
61
|
end
|
@@ -75,20 +75,20 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'created_at')
|
79
|
-
self.created_at = attributes[:'created_at']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'sender')
|
83
79
|
self.sender = attributes[:'sender']
|
84
80
|
end
|
85
81
|
|
82
|
+
if attributes.key?(:'bounce_mta')
|
83
|
+
self.bounce_mta = attributes[:'bounce_mta']
|
84
|
+
end
|
85
|
+
|
86
86
|
if attributes.key?(:'bounce_type')
|
87
87
|
self.bounce_type = attributes[:'bounce_type']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
90
|
+
if attributes.key?(:'created_at')
|
91
|
+
self.created_at = attributes[:'created_at']
|
92
92
|
end
|
93
93
|
|
94
94
|
if attributes.key?(:'subject')
|
@@ -104,22 +104,22 @@ module MailSlurpClient
|
|
104
104
|
# @return Array for valid properties with the reasons
|
105
105
|
def list_invalid_properties
|
106
106
|
invalid_properties = Array.new
|
107
|
-
if @created_at.nil?
|
108
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
107
|
if @sender.nil?
|
112
108
|
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
113
109
|
end
|
114
110
|
|
111
|
+
if @created_at.nil?
|
112
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
113
|
+
end
|
114
|
+
|
115
115
|
invalid_properties
|
116
116
|
end
|
117
117
|
|
118
118
|
# Check to see if the all the properties in the model are valid
|
119
119
|
# @return true if the model is valid
|
120
120
|
def valid?
|
121
|
-
return false if @created_at.nil?
|
122
121
|
return false if @sender.nil?
|
122
|
+
return false if @created_at.nil?
|
123
123
|
true
|
124
124
|
end
|
125
125
|
|
@@ -128,10 +128,10 @@ module MailSlurpClient
|
|
128
128
|
def ==(o)
|
129
129
|
return true if self.equal?(o)
|
130
130
|
self.class == o.class &&
|
131
|
-
created_at == o.created_at &&
|
132
131
|
sender == o.sender &&
|
133
|
-
bounce_type == o.bounce_type &&
|
134
132
|
bounce_mta == o.bounce_mta &&
|
133
|
+
bounce_type == o.bounce_type &&
|
134
|
+
created_at == o.created_at &&
|
135
135
|
subject == o.subject &&
|
136
136
|
id == o.id
|
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
|
-
[
|
148
|
+
[sender, bounce_mta, bounce_type, created_at, subject, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|