mailslurp_client 16.1.5 → 16.2.0
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 +342 -0
- 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/create_totp_device_otp_auth_url_options.rb +271 -0
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +20 -20
- 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 +42 -42
- data/lib/mailslurp_client/models/totp_device_code_dto.rb +221 -0
- data/lib/mailslurp_client/models/totp_device_dto.rb +299 -0
- data/lib/mailslurp_client/models/totp_device_optional_dto.rb +206 -0
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +5 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5b4b6bf42a8a4d23d80cad63a8d4eb6cb7d104ca8d61f6e1d1101b130c9784e
|
4
|
+
data.tar.gz: be202e94ab59f21ef765716134722258ad6f52facd843341a41a91ae6dacd09c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf2b0aea992f3e0e58192ba13f6377998e303763dd537a02054039ce83825528ca9aa8d7eab37ef6646bb94871d4e00aa09680b6ff4f95f1c28f704f3e16dabe
|
7
|
+
data.tar.gz: 5115306bc8b51bf8c7f841add0bd5ecc9a03f50cdbc2cc0198fcf967b3fcb3fcfd6f7cdd26cc73dff6f5e2243fda036595d2462e39b65a4ddaf03c32b57d6063
|
@@ -0,0 +1,342 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class MFAControllerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a TOTP device from custom options
|
23
|
+
# Create a virtual TOTP device for custom options specifying all parameters of the TOTP device.
|
24
|
+
# @param create_totp_device_otp_auth_url_options [CreateTotpDeviceOtpAuthUrlOptions]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [TotpDeviceDto]
|
27
|
+
def create_totp_device_for_custom(create_totp_device_otp_auth_url_options, opts = {})
|
28
|
+
data, _status_code, _headers = create_totp_device_for_custom_with_http_info(create_totp_device_otp_auth_url_options, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a TOTP device from custom options
|
33
|
+
# Create a virtual TOTP device for custom options specifying all parameters of the TOTP device.
|
34
|
+
# @param create_totp_device_otp_auth_url_options [CreateTotpDeviceOtpAuthUrlOptions]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(TotpDeviceDto, Integer, Hash)>] TotpDeviceDto data, response status code and response headers
|
37
|
+
def create_totp_device_for_custom_with_http_info(create_totp_device_otp_auth_url_options, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: MFAControllerApi.create_totp_device_for_custom ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'create_totp_device_otp_auth_url_options' is set
|
42
|
+
if @api_client.config.client_side_validation && create_totp_device_otp_auth_url_options.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_totp_device_otp_auth_url_options' when calling MFAControllerApi.create_totp_device_for_custom"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/mfa/totp/device/custom'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_totp_device_otp_auth_url_options)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'TotpDeviceDto'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: MFAControllerApi#create_totp_device_for_custom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Create a TOTP device from an OTP Auth URL
|
87
|
+
# Create a virtual TOTP device for a given OTP Auth URL such as otpauth://totp/MyApp:alice@example.com?secret=ABC123&issuer=MyApp&period=30&digits=6&algorithm=SHA1. You can provider overrides in the options for each component of the URL.
|
88
|
+
# @param create_totp_device_otp_auth_url_options [CreateTotpDeviceOtpAuthUrlOptions]
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [TotpDeviceDto]
|
91
|
+
def create_totp_device_for_otp_auth_url(create_totp_device_otp_auth_url_options, opts = {})
|
92
|
+
data, _status_code, _headers = create_totp_device_for_otp_auth_url_with_http_info(create_totp_device_otp_auth_url_options, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Create a TOTP device from an OTP Auth URL
|
97
|
+
# Create a virtual TOTP device for a given OTP Auth URL such as otpauth://totp/MyApp:alice@example.com?secret=ABC123&issuer=MyApp&period=30&digits=6&algorithm=SHA1. You can provider overrides in the options for each component of the URL.
|
98
|
+
# @param create_totp_device_otp_auth_url_options [CreateTotpDeviceOtpAuthUrlOptions]
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(TotpDeviceDto, Integer, Hash)>] TotpDeviceDto data, response status code and response headers
|
101
|
+
def create_totp_device_for_otp_auth_url_with_http_info(create_totp_device_otp_auth_url_options, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: MFAControllerApi.create_totp_device_for_otp_auth_url ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'create_totp_device_otp_auth_url_options' is set
|
106
|
+
if @api_client.config.client_side_validation && create_totp_device_otp_auth_url_options.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'create_totp_device_otp_auth_url_options' when calling MFAControllerApi.create_totp_device_for_otp_auth_url"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/mfa/totp/device/otpAuthUrl'
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
119
|
+
# HTTP header 'Content-Type'
|
120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_totp_device_otp_auth_url_options)
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:return_type] || 'TotpDeviceDto'
|
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: MFAControllerApi#create_totp_device_for_otp_auth_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
|
150
|
+
# Get a TOTP device by ID
|
151
|
+
# Get Time-Based One-Time Password (TOTP) device by its ID.
|
152
|
+
# @param id [String]
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @return [TotpDeviceDto]
|
155
|
+
def get_totp_device(id, opts = {})
|
156
|
+
data, _status_code, _headers = get_totp_device_with_http_info(id, opts)
|
157
|
+
data
|
158
|
+
end
|
159
|
+
|
160
|
+
# Get a TOTP device by ID
|
161
|
+
# Get Time-Based One-Time Password (TOTP) device by its ID.
|
162
|
+
# @param id [String]
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @return [Array<(TotpDeviceDto, Integer, Hash)>] TotpDeviceDto data, response status code and response headers
|
165
|
+
def get_totp_device_with_http_info(id, opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: MFAControllerApi.get_totp_device ...'
|
168
|
+
end
|
169
|
+
# verify the required parameter 'id' is set
|
170
|
+
if @api_client.config.client_side_validation && id.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MFAControllerApi.get_totp_device"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = '/mfa/totp/device/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = opts[:query_params] || {}
|
178
|
+
|
179
|
+
# header parameters
|
180
|
+
header_params = opts[:header_params] || {}
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
183
|
+
|
184
|
+
# form parameters
|
185
|
+
form_params = opts[:form_params] || {}
|
186
|
+
|
187
|
+
# http body (model)
|
188
|
+
post_body = opts[:body]
|
189
|
+
|
190
|
+
# return_type
|
191
|
+
return_type = opts[:return_type] || 'TotpDeviceDto'
|
192
|
+
|
193
|
+
# auth_names
|
194
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
195
|
+
|
196
|
+
new_options = opts.merge(
|
197
|
+
:header_params => header_params,
|
198
|
+
:query_params => query_params,
|
199
|
+
:form_params => form_params,
|
200
|
+
:body => post_body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => return_type
|
203
|
+
)
|
204
|
+
|
205
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
|
+
if @api_client.config.debugging
|
207
|
+
@api_client.config.logger.debug "API called: MFAControllerApi#get_totp_device\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
|
+
end
|
209
|
+
return data, status_code, headers
|
210
|
+
end
|
211
|
+
|
212
|
+
# Get a TOTP device by username, issuer, or name. Returns empty if not found.
|
213
|
+
# Get Time-Based One-Time Password (TOTP) device by its username and issuer mapping.
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @option opts [String] :name Optional name filter
|
216
|
+
# @option opts [String] :issuer Optional issuer filter
|
217
|
+
# @option opts [String] :username Optional username filter
|
218
|
+
# @return [TotpDeviceOptionalDto]
|
219
|
+
def get_totp_device_by(opts = {})
|
220
|
+
data, _status_code, _headers = get_totp_device_by_with_http_info(opts)
|
221
|
+
data
|
222
|
+
end
|
223
|
+
|
224
|
+
# Get a TOTP device by username, issuer, or name. Returns empty if not found.
|
225
|
+
# Get Time-Based One-Time Password (TOTP) device by its username and issuer mapping.
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @option opts [String] :name Optional name filter
|
228
|
+
# @option opts [String] :issuer Optional issuer filter
|
229
|
+
# @option opts [String] :username Optional username filter
|
230
|
+
# @return [Array<(TotpDeviceOptionalDto, Integer, Hash)>] TotpDeviceOptionalDto data, response status code and response headers
|
231
|
+
def get_totp_device_by_with_http_info(opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: MFAControllerApi.get_totp_device_by ...'
|
234
|
+
end
|
235
|
+
# resource path
|
236
|
+
local_var_path = '/mfa/totp/device/by'
|
237
|
+
|
238
|
+
# query parameters
|
239
|
+
query_params = opts[:query_params] || {}
|
240
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
241
|
+
query_params[:'issuer'] = opts[:'issuer'] if !opts[:'issuer'].nil?
|
242
|
+
query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
|
243
|
+
|
244
|
+
# header parameters
|
245
|
+
header_params = opts[:header_params] || {}
|
246
|
+
# HTTP header 'Accept' (if needed)
|
247
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
248
|
+
|
249
|
+
# form parameters
|
250
|
+
form_params = opts[:form_params] || {}
|
251
|
+
|
252
|
+
# http body (model)
|
253
|
+
post_body = opts[:body]
|
254
|
+
|
255
|
+
# return_type
|
256
|
+
return_type = opts[:return_type] || 'TotpDeviceOptionalDto'
|
257
|
+
|
258
|
+
# auth_names
|
259
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
260
|
+
|
261
|
+
new_options = opts.merge(
|
262
|
+
:header_params => header_params,
|
263
|
+
:query_params => query_params,
|
264
|
+
:form_params => form_params,
|
265
|
+
:body => post_body,
|
266
|
+
:auth_names => auth_names,
|
267
|
+
:return_type => return_type
|
268
|
+
)
|
269
|
+
|
270
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: MFAControllerApi#get_totp_device_by\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
|
277
|
+
# Get a TOTP device code by device ID
|
278
|
+
# Get Time-Based One-Time Password for a device by its ID.
|
279
|
+
# @param id [String]
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @option opts [DateTime] :at
|
282
|
+
# @return [TotpDeviceCodeDto]
|
283
|
+
def get_totp_device_code(id, opts = {})
|
284
|
+
data, _status_code, _headers = get_totp_device_code_with_http_info(id, opts)
|
285
|
+
data
|
286
|
+
end
|
287
|
+
|
288
|
+
# Get a TOTP device code by device ID
|
289
|
+
# Get Time-Based One-Time Password for a device by its ID.
|
290
|
+
# @param id [String]
|
291
|
+
# @param [Hash] opts the optional parameters
|
292
|
+
# @option opts [DateTime] :at
|
293
|
+
# @return [Array<(TotpDeviceCodeDto, Integer, Hash)>] TotpDeviceCodeDto data, response status code and response headers
|
294
|
+
def get_totp_device_code_with_http_info(id, opts = {})
|
295
|
+
if @api_client.config.debugging
|
296
|
+
@api_client.config.logger.debug 'Calling API: MFAControllerApi.get_totp_device_code ...'
|
297
|
+
end
|
298
|
+
# verify the required parameter 'id' is set
|
299
|
+
if @api_client.config.client_side_validation && id.nil?
|
300
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MFAControllerApi.get_totp_device_code"
|
301
|
+
end
|
302
|
+
# resource path
|
303
|
+
local_var_path = '/mfa/totp/device/{id}/code'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = opts[:query_params] || {}
|
307
|
+
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
|
308
|
+
|
309
|
+
# header parameters
|
310
|
+
header_params = opts[:header_params] || {}
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
313
|
+
|
314
|
+
# form parameters
|
315
|
+
form_params = opts[:form_params] || {}
|
316
|
+
|
317
|
+
# http body (model)
|
318
|
+
post_body = opts[:body]
|
319
|
+
|
320
|
+
# return_type
|
321
|
+
return_type = opts[:return_type] || 'TotpDeviceCodeDto'
|
322
|
+
|
323
|
+
# auth_names
|
324
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
325
|
+
|
326
|
+
new_options = opts.merge(
|
327
|
+
:header_params => header_params,
|
328
|
+
:query_params => query_params,
|
329
|
+
:form_params => form_params,
|
330
|
+
:body => post_body,
|
331
|
+
:auth_names => auth_names,
|
332
|
+
:return_type => return_type
|
333
|
+
)
|
334
|
+
|
335
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "API called: MFAControllerApi#get_totp_device_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
341
|
+
end
|
342
|
+
end
|
@@ -15,6 +15,9 @@ 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
|
+
|
18
21
|
# Inbox ID
|
19
22
|
attr_accessor :inbox_id
|
20
23
|
|
@@ -39,9 +42,6 @@ module MailSlurpClient
|
|
39
42
|
# Alias ID
|
40
43
|
attr_accessor :alias_id
|
41
44
|
|
42
|
-
# Thread subject
|
43
|
-
attr_accessor :subject
|
44
|
-
|
45
45
|
# Name of thread
|
46
46
|
attr_accessor :name
|
47
47
|
|
@@ -51,6 +51,7 @@ 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',
|
54
55
|
:'inbox_id' => :'inboxId',
|
55
56
|
:'user_id' => :'userId',
|
56
57
|
:'updated_at' => :'updatedAt',
|
@@ -59,7 +60,6 @@ module MailSlurpClient
|
|
59
60
|
:'cc' => :'cc',
|
60
61
|
:'bcc' => :'bcc',
|
61
62
|
:'alias_id' => :'aliasId',
|
62
|
-
:'subject' => :'subject',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
65
65
|
}
|
@@ -68,6 +68,7 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
+
:'subject' => :'String',
|
71
72
|
:'inbox_id' => :'String',
|
72
73
|
:'user_id' => :'String',
|
73
74
|
:'updated_at' => :'DateTime',
|
@@ -76,7 +77,6 @@ module MailSlurpClient
|
|
76
77
|
:'cc' => :'Array<String>',
|
77
78
|
:'bcc' => :'Array<String>',
|
78
79
|
:'alias_id' => :'String',
|
79
|
-
:'subject' => :'String',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
82
82
|
}
|
@@ -103,6 +103,10 @@ 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
|
+
|
106
110
|
if attributes.key?(:'inbox_id')
|
107
111
|
self.inbox_id = attributes[:'inbox_id']
|
108
112
|
end
|
@@ -141,10 +145,6 @@ module MailSlurpClient
|
|
141
145
|
self.alias_id = attributes[:'alias_id']
|
142
146
|
end
|
143
147
|
|
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,6 +207,7 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
+
subject == o.subject &&
|
210
211
|
inbox_id == o.inbox_id &&
|
211
212
|
user_id == o.user_id &&
|
212
213
|
updated_at == o.updated_at &&
|
@@ -215,7 +216,6 @@ module MailSlurpClient
|
|
215
216
|
cc == o.cc &&
|
216
217
|
bcc == o.bcc &&
|
217
218
|
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
|
-
[inbox_id, user_id, updated_at, created_at, to, cc, bcc, alias_id,
|
232
|
+
[subject, inbox_id, user_id, updated_at, created_at, to, cc, bcc, alias_id, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
+
attr_accessor :subject
|
19
|
+
|
18
20
|
attr_accessor :sender
|
19
21
|
|
20
22
|
attr_accessor :created_at
|
@@ -23,18 +25,16 @@ module MailSlurpClient
|
|
23
25
|
|
24
26
|
attr_accessor :bounce_mta
|
25
27
|
|
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',
|
33
34
|
:'sender' => :'sender',
|
34
35
|
:'created_at' => :'createdAt',
|
35
36
|
:'bounce_type' => :'bounceType',
|
36
37
|
:'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',
|
45
46
|
:'sender' => :'String',
|
46
47
|
:'created_at' => :'DateTime',
|
47
48
|
:'bounce_type' => :'String',
|
48
49
|
:'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',
|
57
58
|
:'bounce_type',
|
58
59
|
:'bounce_mta',
|
59
|
-
:'subject',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,6 +75,10 @@ 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
|
+
|
78
82
|
if attributes.key?(:'sender')
|
79
83
|
self.sender = attributes[:'sender']
|
80
84
|
end
|
@@ -91,10 +95,6 @@ module MailSlurpClient
|
|
91
95
|
self.bounce_mta = attributes[:'bounce_mta']
|
92
96
|
end
|
93
97
|
|
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 &&
|
131
132
|
sender == o.sender &&
|
132
133
|
created_at == o.created_at &&
|
133
134
|
bounce_type == o.bounce_type &&
|
134
135
|
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
|
-
[sender, created_at, bounce_type, bounce_mta,
|
148
|
+
[subject, sender, created_at, bounce_type, bounce_mta, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|