mailslurp_client 15.19.1 → 15.19.3
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 +65 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- 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 +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_email_projection.rb +25 -1
- data/lib/mailslurp_client/models/imap_mailbox_status.rb +367 -0
- data/lib/mailslurp_client/models/imap_server_status_options.rb +241 -0
- data/lib/mailslurp_client/models/imap_server_status_result.rb +207 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/page_alias.rb +15 -15
- data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_complaint.rb +15 -15
- data/lib/mailslurp_client/models/page_connector.rb +15 -15
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
- data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
- data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
- data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
- 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 +35 -35
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260088d920786f04925c0ec99c781cdedb09e80e47ea5b6bc5198d7038848732
|
4
|
+
data.tar.gz: 4b56857701bbe94375c1fa705f5dd7d7084fa4dbcc54c52f3fe714cc37ffcb86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 246b48285660c7d0df8094e01944aebab82363bb9200875fe68a8fce9aa63f1cff759a8c66660d5dd14cef21d037741f7cb2b18e4d411a680b0c0922261eb7a7
|
7
|
+
data.tar.gz: ca1a0ebdfdc949c74b5ce5c9d78a73a6f71d90b1c0ceb2f4bb3e5353875f7d7bf5db7f5ee8ea5966374e5bb0139a77ae651c29dfa0080d56c35e6deb5359b17d
|
@@ -213,6 +213,71 @@ module MailSlurpClient
|
|
213
213
|
return data, status_code, headers
|
214
214
|
end
|
215
215
|
|
216
|
+
# Get status for mailbox
|
217
|
+
# @param imap_server_status_options [ImapServerStatusOptions]
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [String] :inbox_id Inbox ID to list
|
220
|
+
# @return [ImapServerStatusResult]
|
221
|
+
def imap_server_status(imap_server_status_options, opts = {})
|
222
|
+
data, _status_code, _headers = imap_server_status_with_http_info(imap_server_status_options, opts)
|
223
|
+
data
|
224
|
+
end
|
225
|
+
|
226
|
+
# Get status for mailbox
|
227
|
+
# @param imap_server_status_options [ImapServerStatusOptions]
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @option opts [String] :inbox_id Inbox ID to list
|
230
|
+
# @return [Array<(ImapServerStatusResult, Integer, Hash)>] ImapServerStatusResult data, response status code and response headers
|
231
|
+
def imap_server_status_with_http_info(imap_server_status_options, opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_status ...'
|
234
|
+
end
|
235
|
+
# verify the required parameter 'imap_server_status_options' is set
|
236
|
+
if @api_client.config.client_side_validation && imap_server_status_options.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'imap_server_status_options' when calling ImapControllerApi.imap_server_status"
|
238
|
+
end
|
239
|
+
# resource path
|
240
|
+
local_var_path = '/imap/server/status'
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = opts[:query_params] || {}
|
244
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
245
|
+
|
246
|
+
# header parameters
|
247
|
+
header_params = opts[:header_params] || {}
|
248
|
+
# HTTP header 'Accept' (if needed)
|
249
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
250
|
+
# HTTP header 'Content-Type'
|
251
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
252
|
+
|
253
|
+
# form parameters
|
254
|
+
form_params = opts[:form_params] || {}
|
255
|
+
|
256
|
+
# http body (model)
|
257
|
+
post_body = opts[:body] || @api_client.object_to_http_body(imap_server_status_options)
|
258
|
+
|
259
|
+
# return_type
|
260
|
+
return_type = opts[:return_type] || 'ImapServerStatusResult'
|
261
|
+
|
262
|
+
# auth_names
|
263
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
264
|
+
|
265
|
+
new_options = opts.merge(
|
266
|
+
:header_params => header_params,
|
267
|
+
:query_params => query_params,
|
268
|
+
:form_params => form_params,
|
269
|
+
:body => post_body,
|
270
|
+
:auth_names => auth_names,
|
271
|
+
:return_type => return_type
|
272
|
+
)
|
273
|
+
|
274
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug "API called: ImapControllerApi#imap_server_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
|
+
end
|
278
|
+
return data, status_code, headers
|
279
|
+
end
|
280
|
+
|
216
281
|
# Update message flags
|
217
282
|
# @param imap_update_flags_options [ImapUpdateFlagsOptions]
|
218
283
|
# @param [Hash] opts the optional parameters
|
@@ -15,6 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
20
|
+
attr_accessor :updated_at
|
21
|
+
|
18
22
|
attr_accessor :inbox_id
|
19
23
|
|
20
24
|
attr_accessor :user_id
|
@@ -23,10 +27,6 @@ module MailSlurpClient
|
|
23
27
|
|
24
28
|
attr_accessor :use_threads
|
25
29
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
|
-
attr_accessor :updated_at
|
29
|
-
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
attr_accessor :id
|
@@ -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',
|
37
39
|
:'inbox_id' => :'inboxId',
|
38
40
|
:'user_id' => :'userId',
|
39
41
|
:'email_address' => :'emailAddress',
|
40
42
|
:'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',
|
51
53
|
:'inbox_id' => :'String',
|
52
54
|
:'user_id' => :'String',
|
53
55
|
:'email_address' => :'String',
|
54
56
|
:'use_threads' => :'Boolean',
|
55
|
-
:'created_at' => :'DateTime',
|
56
|
-
:'updated_at' => :'DateTime',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'id' => :'String'
|
59
59
|
}
|
@@ -80,6 +80,14 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'updated_at')
|
88
|
+
self.updated_at = attributes[:'updated_at']
|
89
|
+
end
|
90
|
+
|
83
91
|
if attributes.key?(:'inbox_id')
|
84
92
|
self.inbox_id = attributes[:'inbox_id']
|
85
93
|
end
|
@@ -96,14 +104,6 @@ module MailSlurpClient
|
|
96
104
|
self.use_threads = attributes[:'use_threads']
|
97
105
|
end
|
98
106
|
|
99
|
-
if attributes.key?(:'created_at')
|
100
|
-
self.created_at = attributes[:'created_at']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'updated_at')
|
104
|
-
self.updated_at = attributes[:'updated_at']
|
105
|
-
end
|
106
|
-
|
107
107
|
if attributes.key?(:'name')
|
108
108
|
self.name = attributes[:'name']
|
109
109
|
end
|
@@ -117,6 +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 @created_at.nil?
|
121
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
|
+
if @updated_at.nil?
|
125
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
126
|
+
end
|
127
|
+
|
120
128
|
if @inbox_id.nil?
|
121
129
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
122
130
|
end
|
@@ -129,14 +137,6 @@ module MailSlurpClient
|
|
129
137
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
130
138
|
end
|
131
139
|
|
132
|
-
if @created_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @updated_at.nil?
|
137
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
140
|
if @id.nil?
|
141
141
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
142
142
|
end
|
@@ -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 @created_at.nil?
|
151
|
+
return false if @updated_at.nil?
|
150
152
|
return false if @inbox_id.nil?
|
151
153
|
return false if @user_id.nil?
|
152
154
|
return false if @email_address.nil?
|
153
|
-
return false if @created_at.nil?
|
154
|
-
return false if @updated_at.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 &&
|
164
166
|
inbox_id == o.inbox_id &&
|
165
167
|
user_id == o.user_id &&
|
166
168
|
email_address == o.email_address &&
|
167
169
|
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
|
-
[inbox_id, user_id, email_address, use_threads,
|
183
|
+
[created_at, updated_at, inbox_id, user_id, email_address, use_threads, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -15,6 +15,10 @@ 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
|
+
|
18
22
|
attr_accessor :user_id
|
19
23
|
|
20
24
|
# Content ID of attachment.
|
@@ -23,10 +27,6 @@ module MailSlurpClient
|
|
23
27
|
# Attachment ID
|
24
28
|
attr_accessor :attachment_id
|
25
29
|
|
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',
|
41
43
|
:'user_id' => :'userId',
|
42
44
|
:'content_id' => :'contentId',
|
43
45
|
:'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',
|
55
57
|
:'user_id' => :'String',
|
56
58
|
:'content_id' => :'String',
|
57
59
|
:'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,6 +88,14 @@ 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
|
+
|
91
99
|
if attributes.key?(:'user_id')
|
92
100
|
self.user_id = attributes[:'user_id']
|
93
101
|
end
|
@@ -100,14 +108,6 @@ module MailSlurpClient
|
|
100
108
|
self.attachment_id = attributes[:'attachment_id']
|
101
109
|
end
|
102
110
|
|
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 @user_id.nil?
|
129
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if @attachment_id.nil?
|
133
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
128
|
if @created_at.nil?
|
137
129
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
130
|
end
|
@@ -141,16 +133,24 @@ module MailSlurpClient
|
|
141
133
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
142
134
|
end
|
143
135
|
|
136
|
+
if @user_id.nil?
|
137
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @attachment_id.nil?
|
141
|
+
invalid_properties.push('invalid value for "attachment_id", attachment_id 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 @user_id.nil?
|
151
|
-
return false if @attachment_id.nil?
|
152
150
|
return false if @created_at.nil?
|
153
151
|
return false if @updated_at.nil?
|
152
|
+
return false if @user_id.nil?
|
153
|
+
return false if @attachment_id.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 &&
|
162
164
|
user_id == o.user_id &&
|
163
165
|
content_id == o.content_id &&
|
164
166
|
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
|
+
[created_at, updated_at, user_id, content_id, attachment_id, name, content_length, content_type].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :sender
|
21
21
|
|
@@ -23,18 +23,18 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :bounce_type
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :subject
|
27
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
|
-
:'
|
33
|
+
:'created_at' => :'createdAt',
|
34
34
|
:'sender' => :'sender',
|
35
35
|
:'bounce_mta' => :'bounceMta',
|
36
36
|
:'bounce_type' => :'bounceType',
|
37
|
-
:'
|
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
|
-
:'
|
45
|
+
:'created_at' => :'DateTime',
|
46
46
|
:'sender' => :'String',
|
47
47
|
:'bounce_mta' => :'String',
|
48
48
|
:'bounce_type' => :'String',
|
49
|
-
:'
|
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_mta',
|
59
58
|
:'bounce_type',
|
59
|
+
:'subject',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,8 +75,8 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'created_at')
|
79
|
+
self.created_at = attributes[:'created_at']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'sender')
|
@@ -91,8 +91,8 @@ module MailSlurpClient
|
|
91
91
|
self.bounce_type = attributes[:'bounce_type']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'subject')
|
95
|
+
self.subject = attributes[:'subject']
|
96
96
|
end
|
97
97
|
|
98
98
|
if attributes.key?(:'id')
|
@@ -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 @sender.nil?
|
108
|
-
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
107
|
if @created_at.nil?
|
112
108
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
113
109
|
end
|
114
110
|
|
111
|
+
if @sender.nil?
|
112
|
+
invalid_properties.push('invalid value for "sender", sender 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 @sender.nil?
|
122
121
|
return false if @created_at.nil?
|
122
|
+
return false if @sender.nil?
|
123
123
|
true
|
124
124
|
end
|
125
125
|
|
@@ -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
|
-
|
131
|
+
created_at == o.created_at &&
|
132
132
|
sender == o.sender &&
|
133
133
|
bounce_mta == o.bounce_mta &&
|
134
134
|
bounce_type == o.bounce_type &&
|
135
|
-
|
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
|
+
[created_at, sender, bounce_mta, bounce_type, subject, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced recipient
|
17
17
|
class BounceRecipientProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :sent_email_id
|
19
21
|
|
20
22
|
attr_accessor :recipient
|
@@ -23,8 +25,6 @@ module MailSlurpClient
|
|
23
25
|
|
24
26
|
attr_accessor :bounce_type
|
25
27
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
28
|
attr_accessor :id
|
29
29
|
|
30
30
|
attr_accessor :status
|
@@ -32,11 +32,11 @@ module MailSlurpClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'created_at' => :'createdAt',
|
35
36
|
:'sent_email_id' => :'sentEmailId',
|
36
37
|
:'recipient' => :'recipient',
|
37
38
|
:'action' => :'action',
|
38
39
|
:'bounce_type' => :'bounceType',
|
39
|
-
:'created_at' => :'createdAt',
|
40
40
|
:'id' => :'id',
|
41
41
|
:'status' => :'status'
|
42
42
|
}
|
@@ -45,11 +45,11 @@ module MailSlurpClient
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
|
+
:'created_at' => :'DateTime',
|
48
49
|
:'sent_email_id' => :'String',
|
49
50
|
:'recipient' => :'String',
|
50
51
|
:'action' => :'String',
|
51
52
|
:'bounce_type' => :'String',
|
52
|
-
:'created_at' => :'DateTime',
|
53
53
|
:'id' => :'String',
|
54
54
|
:'status' => :'String'
|
55
55
|
}
|
@@ -80,6 +80,10 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
83
87
|
if attributes.key?(:'sent_email_id')
|
84
88
|
self.sent_email_id = attributes[:'sent_email_id']
|
85
89
|
end
|
@@ -96,10 +100,6 @@ module MailSlurpClient
|
|
96
100
|
self.bounce_type = attributes[:'bounce_type']
|
97
101
|
end
|
98
102
|
|
99
|
-
if attributes.key?(:'created_at')
|
100
|
-
self.created_at = attributes[:'created_at']
|
101
|
-
end
|
102
|
-
|
103
103
|
if attributes.key?(:'id')
|
104
104
|
self.id = attributes[:'id']
|
105
105
|
end
|
@@ -113,22 +113,22 @@ module MailSlurpClient
|
|
113
113
|
# @return Array for valid properties with the reasons
|
114
114
|
def list_invalid_properties
|
115
115
|
invalid_properties = Array.new
|
116
|
-
if @recipient.nil?
|
117
|
-
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
116
|
if @created_at.nil?
|
121
117
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
118
|
end
|
123
119
|
|
120
|
+
if @recipient.nil?
|
121
|
+
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
124
|
invalid_properties
|
125
125
|
end
|
126
126
|
|
127
127
|
# Check to see if the all the properties in the model are valid
|
128
128
|
# @return true if the model is valid
|
129
129
|
def valid?
|
130
|
-
return false if @recipient.nil?
|
131
130
|
return false if @created_at.nil?
|
131
|
+
return false if @recipient.nil?
|
132
132
|
true
|
133
133
|
end
|
134
134
|
|
@@ -137,11 +137,11 @@ module MailSlurpClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
+
created_at == o.created_at &&
|
140
141
|
sent_email_id == o.sent_email_id &&
|
141
142
|
recipient == o.recipient &&
|
142
143
|
action == o.action &&
|
143
144
|
bounce_type == o.bounce_type &&
|
144
|
-
created_at == o.created_at &&
|
145
145
|
id == o.id &&
|
146
146
|
status == o.status
|
147
147
|
end
|
@@ -155,7 +155,7 @@ module MailSlurpClient
|
|
155
155
|
# Calculates hash code according to all attributes.
|
156
156
|
# @return [Integer] Hash code
|
157
157
|
def hash
|
158
|
-
[sent_email_id, recipient, action, bounce_type,
|
158
|
+
[created_at, sent_email_id, recipient, action, bounce_type, id, status].hash
|
159
159
|
end
|
160
160
|
|
161
161
|
# Builds the object from hash
|