mailslurp_client 15.13.0 → 15.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +27 -27
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +32 -18
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89fc2b7730fb84ebf8de954f5115e453d5e822306164a491f169f531190563df
|
4
|
+
data.tar.gz: dbfa6ab3418b3fa360f3a8df1d67e023aa0d759a440719b1a9c3c57420fb1035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0490a8569dbbfa2d47bfa2e173bf3437265ed3a1a9d9d14edc0314c40c63d885d248421975b734ba1c75cb3eab35abbee3810228a248e2b111f9716fe1e2c5e
|
7
|
+
data.tar.gz: a8fc803bd768b8b30091116d9f37643add26f881b968df17c66f61d9426facf3e9de0007997281c54ceeec4df635427b411d88d0c795b279f78cfe4c7e963a64
|
@@ -483,5 +483,69 @@ module MailSlurpClient
|
|
483
483
|
end
|
484
484
|
return data, status_code, headers
|
485
485
|
end
|
486
|
+
|
487
|
+
# @param phone_number_id [String]
|
488
|
+
# @param test_phone_number_options [TestPhoneNumberOptions]
|
489
|
+
# @param [Hash] opts the optional parameters
|
490
|
+
# @return [nil]
|
491
|
+
def test_phone_number_send_sms(phone_number_id, test_phone_number_options, opts = {})
|
492
|
+
test_phone_number_send_sms_with_http_info(phone_number_id, test_phone_number_options, opts)
|
493
|
+
nil
|
494
|
+
end
|
495
|
+
|
496
|
+
# @param phone_number_id [String]
|
497
|
+
# @param test_phone_number_options [TestPhoneNumberOptions]
|
498
|
+
# @param [Hash] opts the optional parameters
|
499
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
500
|
+
def test_phone_number_send_sms_with_http_info(phone_number_id, test_phone_number_options, opts = {})
|
501
|
+
if @api_client.config.debugging
|
502
|
+
@api_client.config.logger.debug 'Calling API: PhoneControllerApi.test_phone_number_send_sms ...'
|
503
|
+
end
|
504
|
+
# verify the required parameter 'phone_number_id' is set
|
505
|
+
if @api_client.config.client_side_validation && phone_number_id.nil?
|
506
|
+
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling PhoneControllerApi.test_phone_number_send_sms"
|
507
|
+
end
|
508
|
+
# verify the required parameter 'test_phone_number_options' is set
|
509
|
+
if @api_client.config.client_side_validation && test_phone_number_options.nil?
|
510
|
+
fail ArgumentError, "Missing the required parameter 'test_phone_number_options' when calling PhoneControllerApi.test_phone_number_send_sms"
|
511
|
+
end
|
512
|
+
# resource path
|
513
|
+
local_var_path = '/phone/numbers/{phoneNumberId}/test'.sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
514
|
+
|
515
|
+
# query parameters
|
516
|
+
query_params = opts[:query_params] || {}
|
517
|
+
|
518
|
+
# header parameters
|
519
|
+
header_params = opts[:header_params] || {}
|
520
|
+
# HTTP header 'Content-Type'
|
521
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
522
|
+
|
523
|
+
# form parameters
|
524
|
+
form_params = opts[:form_params] || {}
|
525
|
+
|
526
|
+
# http body (model)
|
527
|
+
post_body = opts[:body] || @api_client.object_to_http_body(test_phone_number_options)
|
528
|
+
|
529
|
+
# return_type
|
530
|
+
return_type = opts[:return_type]
|
531
|
+
|
532
|
+
# auth_names
|
533
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
534
|
+
|
535
|
+
new_options = opts.merge(
|
536
|
+
:header_params => header_params,
|
537
|
+
:query_params => query_params,
|
538
|
+
:form_params => form_params,
|
539
|
+
:body => post_body,
|
540
|
+
:auth_names => auth_names,
|
541
|
+
:return_type => return_type
|
542
|
+
)
|
543
|
+
|
544
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
545
|
+
if @api_client.config.debugging
|
546
|
+
@api_client.config.logger.debug "API called: PhoneControllerApi#test_phone_number_send_sms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
547
|
+
end
|
548
|
+
return data, status_code, headers
|
549
|
+
end
|
486
550
|
end
|
487
551
|
end
|
@@ -140,7 +140,7 @@ module MailSlurpClient
|
|
140
140
|
# Returns a SMS summary object with content.
|
141
141
|
# @param sms_id [String]
|
142
142
|
# @param [Hash] opts the optional parameters
|
143
|
-
# @return [
|
143
|
+
# @return [SmsDto]
|
144
144
|
def get_sms_message(sms_id, opts = {})
|
145
145
|
data, _status_code, _headers = get_sms_message_with_http_info(sms_id, opts)
|
146
146
|
data
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
150
150
|
# Returns a SMS summary object with content.
|
151
151
|
# @param sms_id [String]
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
|
-
# @return [Array<(
|
153
|
+
# @return [Array<(SmsDto, Integer, Hash)>] SmsDto data, response status code and response headers
|
154
154
|
def get_sms_message_with_http_info(sms_id, opts = {})
|
155
155
|
if @api_client.config.debugging
|
156
156
|
@api_client.config.logger.debug 'Calling API: SmsControllerApi.get_sms_message ...'
|
@@ -177,7 +177,7 @@ module MailSlurpClient
|
|
177
177
|
post_body = opts[:body]
|
178
178
|
|
179
179
|
# return_type
|
180
|
-
return_type = opts[:return_type] || '
|
180
|
+
return_type = opts[:return_type] || 'SmsDto'
|
181
181
|
|
182
182
|
# auth_names
|
183
183
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -260,6 +260,70 @@ module MailSlurpClient
|
|
260
260
|
return data, status_code, headers
|
261
261
|
end
|
262
262
|
|
263
|
+
# Wait for the latest SMS message to match the provided filter conditions such as body contains keyword.
|
264
|
+
# Wait until a phone number meets given conditions or return immediately if already met
|
265
|
+
# @param wait_for_single_sms_options [WaitForSingleSmsOptions]
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @return [SmsDto]
|
268
|
+
def wait_for_latest_sms(wait_for_single_sms_options, opts = {})
|
269
|
+
data, _status_code, _headers = wait_for_latest_sms_with_http_info(wait_for_single_sms_options, opts)
|
270
|
+
data
|
271
|
+
end
|
272
|
+
|
273
|
+
# Wait for the latest SMS message to match the provided filter conditions such as body contains keyword.
|
274
|
+
# Wait until a phone number meets given conditions or return immediately if already met
|
275
|
+
# @param wait_for_single_sms_options [WaitForSingleSmsOptions]
|
276
|
+
# @param [Hash] opts the optional parameters
|
277
|
+
# @return [Array<(SmsDto, Integer, Hash)>] SmsDto data, response status code and response headers
|
278
|
+
def wait_for_latest_sms_with_http_info(wait_for_single_sms_options, opts = {})
|
279
|
+
if @api_client.config.debugging
|
280
|
+
@api_client.config.logger.debug 'Calling API: WaitForControllerApi.wait_for_latest_sms ...'
|
281
|
+
end
|
282
|
+
# verify the required parameter 'wait_for_single_sms_options' is set
|
283
|
+
if @api_client.config.client_side_validation && wait_for_single_sms_options.nil?
|
284
|
+
fail ArgumentError, "Missing the required parameter 'wait_for_single_sms_options' when calling WaitForControllerApi.wait_for_latest_sms"
|
285
|
+
end
|
286
|
+
# resource path
|
287
|
+
local_var_path = '/waitForLatestSms'
|
288
|
+
|
289
|
+
# query parameters
|
290
|
+
query_params = opts[:query_params] || {}
|
291
|
+
|
292
|
+
# header parameters
|
293
|
+
header_params = opts[:header_params] || {}
|
294
|
+
# HTTP header 'Accept' (if needed)
|
295
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
296
|
+
# HTTP header 'Content-Type'
|
297
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
298
|
+
|
299
|
+
# form parameters
|
300
|
+
form_params = opts[:form_params] || {}
|
301
|
+
|
302
|
+
# http body (model)
|
303
|
+
post_body = opts[:body] || @api_client.object_to_http_body(wait_for_single_sms_options)
|
304
|
+
|
305
|
+
# return_type
|
306
|
+
return_type = opts[:return_type] || 'SmsDto'
|
307
|
+
|
308
|
+
# auth_names
|
309
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
310
|
+
|
311
|
+
new_options = opts.merge(
|
312
|
+
:header_params => header_params,
|
313
|
+
:query_params => query_params,
|
314
|
+
:form_params => form_params,
|
315
|
+
:body => post_body,
|
316
|
+
:auth_names => auth_names,
|
317
|
+
:return_type => return_type
|
318
|
+
)
|
319
|
+
|
320
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
321
|
+
if @api_client.config.debugging
|
322
|
+
@api_client.config.logger.debug "API called: WaitForControllerApi#wait_for_latest_sms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
323
|
+
end
|
324
|
+
return data, status_code, headers
|
325
|
+
end
|
326
|
+
|
263
327
|
# Wait or return list of emails that match simple matching patterns
|
264
328
|
# Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method.
|
265
329
|
# @param inbox_id [String] Id of the inbox we are fetching emails from
|
@@ -153,6 +153,76 @@ module MailSlurpClient
|
|
153
153
|
return data, status_code, headers
|
154
154
|
end
|
155
155
|
|
156
|
+
# Attach a WebHook URL to a phone number
|
157
|
+
# Get notified whenever a phone number receives an SMS via a WebHook URL.
|
158
|
+
# @param phone_number_id [String]
|
159
|
+
# @param create_webhook_options [CreateWebhookOptions]
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [WebhookDto]
|
162
|
+
def create_webhook_for_phone_number(phone_number_id, create_webhook_options, opts = {})
|
163
|
+
data, _status_code, _headers = create_webhook_for_phone_number_with_http_info(phone_number_id, create_webhook_options, opts)
|
164
|
+
data
|
165
|
+
end
|
166
|
+
|
167
|
+
# Attach a WebHook URL to a phone number
|
168
|
+
# Get notified whenever a phone number receives an SMS via a WebHook URL.
|
169
|
+
# @param phone_number_id [String]
|
170
|
+
# @param create_webhook_options [CreateWebhookOptions]
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [Array<(WebhookDto, Integer, Hash)>] WebhookDto data, response status code and response headers
|
173
|
+
def create_webhook_for_phone_number_with_http_info(phone_number_id, create_webhook_options, opts = {})
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug 'Calling API: WebhookControllerApi.create_webhook_for_phone_number ...'
|
176
|
+
end
|
177
|
+
# verify the required parameter 'phone_number_id' is set
|
178
|
+
if @api_client.config.client_side_validation && phone_number_id.nil?
|
179
|
+
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling WebhookControllerApi.create_webhook_for_phone_number"
|
180
|
+
end
|
181
|
+
# verify the required parameter 'create_webhook_options' is set
|
182
|
+
if @api_client.config.client_side_validation && create_webhook_options.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'create_webhook_options' when calling WebhookControllerApi.create_webhook_for_phone_number"
|
184
|
+
end
|
185
|
+
# resource path
|
186
|
+
local_var_path = '/phone/numbers/{phoneNumberId}/webhooks'.sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
187
|
+
|
188
|
+
# query parameters
|
189
|
+
query_params = opts[:query_params] || {}
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = opts[:header_params] || {}
|
193
|
+
# HTTP header 'Accept' (if needed)
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
195
|
+
# HTTP header 'Content-Type'
|
196
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
197
|
+
|
198
|
+
# form parameters
|
199
|
+
form_params = opts[:form_params] || {}
|
200
|
+
|
201
|
+
# http body (model)
|
202
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_webhook_options)
|
203
|
+
|
204
|
+
# return_type
|
205
|
+
return_type = opts[:return_type] || 'WebhookDto'
|
206
|
+
|
207
|
+
# auth_names
|
208
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
209
|
+
|
210
|
+
new_options = opts.merge(
|
211
|
+
:header_params => header_params,
|
212
|
+
:query_params => query_params,
|
213
|
+
:form_params => form_params,
|
214
|
+
:body => post_body,
|
215
|
+
:auth_names => auth_names,
|
216
|
+
:return_type => return_type
|
217
|
+
)
|
218
|
+
|
219
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
220
|
+
if @api_client.config.debugging
|
221
|
+
@api_client.config.logger.debug "API called: WebhookControllerApi#create_webhook_for_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
222
|
+
end
|
223
|
+
return data, status_code, headers
|
224
|
+
end
|
225
|
+
|
156
226
|
# Delete all webhooks
|
157
227
|
# @param [Hash] opts the optional parameters
|
158
228
|
# @option opts [DateTime] :before before
|
@@ -21,10 +21,10 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :inbox_id
|
23
23
|
|
24
|
-
attr_accessor :user_id
|
25
|
-
|
26
24
|
attr_accessor :email_address
|
27
25
|
|
26
|
+
attr_accessor :user_id
|
27
|
+
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :updated_at
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
:'name' => :'name',
|
38
38
|
:'id' => :'id',
|
39
39
|
:'inbox_id' => :'inboxId',
|
40
|
-
:'user_id' => :'userId',
|
41
40
|
:'email_address' => :'emailAddress',
|
41
|
+
:'user_id' => :'userId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
43
|
:'updated_at' => :'updatedAt',
|
44
44
|
:'use_threads' => :'useThreads'
|
@@ -51,8 +51,8 @@ module MailSlurpClient
|
|
51
51
|
:'name' => :'String',
|
52
52
|
:'id' => :'String',
|
53
53
|
:'inbox_id' => :'String',
|
54
|
-
:'user_id' => :'String',
|
55
54
|
:'email_address' => :'String',
|
55
|
+
:'user_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
57
|
:'updated_at' => :'DateTime',
|
58
58
|
:'use_threads' => :'Boolean'
|
@@ -92,14 +92,14 @@ module MailSlurpClient
|
|
92
92
|
self.inbox_id = attributes[:'inbox_id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'user_id')
|
96
|
-
self.user_id = attributes[:'user_id']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'email_address')
|
100
96
|
self.email_address = attributes[:'email_address']
|
101
97
|
end
|
102
98
|
|
99
|
+
if attributes.key?(:'user_id')
|
100
|
+
self.user_id = attributes[:'user_id']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'created_at')
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
@@ -125,14 +125,14 @@ module MailSlurpClient
|
|
125
125
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
126
126
|
end
|
127
127
|
|
128
|
-
if @user_id.nil?
|
129
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
128
|
if @email_address.nil?
|
133
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
134
130
|
end
|
135
131
|
|
132
|
+
if @user_id.nil?
|
133
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
136
|
if @created_at.nil?
|
137
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
138
|
end
|
@@ -149,8 +149,8 @@ module MailSlurpClient
|
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
151
|
return false if @inbox_id.nil?
|
152
|
-
return false if @user_id.nil?
|
153
152
|
return false if @email_address.nil?
|
153
|
+
return false if @user_id.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @updated_at.nil?
|
156
156
|
true
|
@@ -164,8 +164,8 @@ module MailSlurpClient
|
|
164
164
|
name == o.name &&
|
165
165
|
id == o.id &&
|
166
166
|
inbox_id == o.inbox_id &&
|
167
|
-
user_id == o.user_id &&
|
168
167
|
email_address == o.email_address &&
|
168
|
+
user_id == o.user_id &&
|
169
169
|
created_at == o.created_at &&
|
170
170
|
updated_at == o.updated_at &&
|
171
171
|
use_threads == o.use_threads
|
@@ -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
|
-
[name, id, inbox_id,
|
183
|
+
[name, id, inbox_id, email_address, user_id, created_at, updated_at, use_threads].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class BounceProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :sender
|
21
|
-
|
22
20
|
attr_accessor :subject
|
23
21
|
|
22
|
+
attr_accessor :sender
|
23
|
+
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
26
|
attr_accessor :bounce_type
|
@@ -31,8 +31,8 @@ module MailSlurpClient
|
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'sender' => :'sender',
|
35
34
|
:'subject' => :'subject',
|
35
|
+
:'sender' => :'sender',
|
36
36
|
:'created_at' => :'createdAt',
|
37
37
|
:'bounce_type' => :'bounceType',
|
38
38
|
:'bounce_mta' => :'bounceMta'
|
@@ -43,8 +43,8 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'sender' => :'String',
|
47
46
|
:'subject' => :'String',
|
47
|
+
:'sender' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
49
|
:'bounce_type' => :'String',
|
50
50
|
:'bounce_mta' => :'String'
|
@@ -76,14 +76,14 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'sender')
|
80
|
-
self.sender = attributes[:'sender']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'subject')
|
84
80
|
self.subject = attributes[:'subject']
|
85
81
|
end
|
86
82
|
|
83
|
+
if attributes.key?(:'sender')
|
84
|
+
self.sender = attributes[:'sender']
|
85
|
+
end
|
86
|
+
|
87
87
|
if attributes.key?(:'created_at')
|
88
88
|
self.created_at = attributes[:'created_at']
|
89
89
|
end
|
@@ -126,8 +126,8 @@ module MailSlurpClient
|
|
126
126
|
return true if self.equal?(o)
|
127
127
|
self.class == o.class &&
|
128
128
|
id == o.id &&
|
129
|
-
sender == o.sender &&
|
130
129
|
subject == o.subject &&
|
130
|
+
sender == o.sender &&
|
131
131
|
created_at == o.created_at &&
|
132
132
|
bounce_type == o.bounce_type &&
|
133
133
|
bounce_mta == o.bounce_mta
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id,
|
145
|
+
[id, subject, sender, created_at, bounce_type, bounce_mta].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -21,8 +21,6 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
|
-
attr_accessor :first_name
|
25
|
-
|
26
24
|
attr_accessor :last_name
|
27
25
|
|
28
26
|
attr_accessor :company
|
@@ -31,17 +29,19 @@ module MailSlurpClient
|
|
31
29
|
|
32
30
|
attr_accessor :opt_out
|
33
31
|
|
32
|
+
attr_accessor :first_name
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'id' => :'id',
|
38
38
|
:'group_id' => :'groupId',
|
39
39
|
:'created_at' => :'createdAt',
|
40
|
-
:'first_name' => :'firstName',
|
41
40
|
:'last_name' => :'lastName',
|
42
41
|
:'company' => :'company',
|
43
42
|
:'email_addresses' => :'emailAddresses',
|
44
|
-
:'opt_out' => :'optOut'
|
43
|
+
:'opt_out' => :'optOut',
|
44
|
+
:'first_name' => :'firstName'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -51,11 +51,11 @@ module MailSlurpClient
|
|
51
51
|
:'id' => :'String',
|
52
52
|
:'group_id' => :'String',
|
53
53
|
:'created_at' => :'DateTime',
|
54
|
-
:'first_name' => :'String',
|
55
54
|
:'last_name' => :'String',
|
56
55
|
:'company' => :'String',
|
57
56
|
:'email_addresses' => :'Array<String>',
|
58
|
-
:'opt_out' => :'Boolean'
|
57
|
+
:'opt_out' => :'Boolean',
|
58
|
+
:'first_name' => :'String'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -92,10 +92,6 @@ module MailSlurpClient
|
|
92
92
|
self.created_at = attributes[:'created_at']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'first_name')
|
96
|
-
self.first_name = attributes[:'first_name']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'last_name')
|
100
96
|
self.last_name = attributes[:'last_name']
|
101
97
|
end
|
@@ -113,6 +109,10 @@ module MailSlurpClient
|
|
113
109
|
if attributes.key?(:'opt_out')
|
114
110
|
self.opt_out = attributes[:'opt_out']
|
115
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'first_name')
|
114
|
+
self.first_name = attributes[:'first_name']
|
115
|
+
end
|
116
116
|
end
|
117
117
|
|
118
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,11 +151,11 @@ module MailSlurpClient
|
|
151
151
|
id == o.id &&
|
152
152
|
group_id == o.group_id &&
|
153
153
|
created_at == o.created_at &&
|
154
|
-
first_name == o.first_name &&
|
155
154
|
last_name == o.last_name &&
|
156
155
|
company == o.company &&
|
157
156
|
email_addresses == o.email_addresses &&
|
158
|
-
opt_out == o.opt_out
|
157
|
+
opt_out == o.opt_out &&
|
158
|
+
first_name == o.first_name
|
159
159
|
end
|
160
160
|
|
161
161
|
# @see the `==` method
|
@@ -167,7 +167,7 @@ module MailSlurpClient
|
|
167
167
|
# Calculates hash code according to all attributes.
|
168
168
|
# @return [Integer] Hash code
|
169
169
|
def hash
|
170
|
-
[id, group_id, created_at,
|
170
|
+
[id, group_id, created_at, last_name, company, email_addresses, opt_out, first_name].hash
|
171
171
|
end
|
172
172
|
|
173
173
|
# Builds the object from hash
|
@@ -35,14 +35,14 @@ module MailSlurpClient
|
|
35
35
|
|
36
36
|
attr_accessor :domain_id
|
37
37
|
|
38
|
-
attr_accessor :team_access
|
39
|
-
|
40
|
-
attr_accessor :read
|
41
|
-
|
42
38
|
attr_accessor :body_md5_hash
|
43
39
|
|
44
40
|
attr_accessor :body_excerpt
|
45
41
|
|
42
|
+
attr_accessor :read
|
43
|
+
|
44
|
+
attr_accessor :team_access
|
45
|
+
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
def self.attribute_map
|
48
48
|
{
|
@@ -56,10 +56,10 @@ module MailSlurpClient
|
|
56
56
|
:'bcc' => :'bcc',
|
57
57
|
:'cc' => :'cc',
|
58
58
|
:'domain_id' => :'domainId',
|
59
|
-
:'team_access' => :'teamAccess',
|
60
|
-
:'read' => :'read',
|
61
59
|
:'body_md5_hash' => :'bodyMD5Hash',
|
62
|
-
:'body_excerpt' => :'bodyExcerpt'
|
60
|
+
:'body_excerpt' => :'bodyExcerpt',
|
61
|
+
:'read' => :'read',
|
62
|
+
:'team_access' => :'teamAccess'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -76,10 +76,10 @@ module MailSlurpClient
|
|
76
76
|
:'bcc' => :'Array<String>',
|
77
77
|
:'cc' => :'Array<String>',
|
78
78
|
:'domain_id' => :'String',
|
79
|
-
:'team_access' => :'Boolean',
|
80
|
-
:'read' => :'Boolean',
|
81
79
|
:'body_md5_hash' => :'String',
|
82
|
-
:'body_excerpt' => :'String'
|
80
|
+
:'body_excerpt' => :'String',
|
81
|
+
:'read' => :'Boolean',
|
82
|
+
:'team_access' => :'Boolean'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -152,14 +152,6 @@ module MailSlurpClient
|
|
152
152
|
self.domain_id = attributes[:'domain_id']
|
153
153
|
end
|
154
154
|
|
155
|
-
if attributes.key?(:'team_access')
|
156
|
-
self.team_access = attributes[:'team_access']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.key?(:'read')
|
160
|
-
self.read = attributes[:'read']
|
161
|
-
end
|
162
|
-
|
163
155
|
if attributes.key?(:'body_md5_hash')
|
164
156
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
165
157
|
end
|
@@ -167,6 +159,14 @@ module MailSlurpClient
|
|
167
159
|
if attributes.key?(:'body_excerpt')
|
168
160
|
self.body_excerpt = attributes[:'body_excerpt']
|
169
161
|
end
|
162
|
+
|
163
|
+
if attributes.key?(:'read')
|
164
|
+
self.read = attributes[:'read']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'team_access')
|
168
|
+
self.team_access = attributes[:'team_access']
|
169
|
+
end
|
170
170
|
end
|
171
171
|
|
172
172
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -189,14 +189,14 @@ module MailSlurpClient
|
|
189
189
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
190
190
|
end
|
191
191
|
|
192
|
-
if @team_access.nil?
|
193
|
-
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
194
|
-
end
|
195
|
-
|
196
192
|
if @read.nil?
|
197
193
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
198
194
|
end
|
199
195
|
|
196
|
+
if @team_access.nil?
|
197
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
198
|
+
end
|
199
|
+
|
200
200
|
invalid_properties
|
201
201
|
end
|
202
202
|
|
@@ -207,8 +207,8 @@ module MailSlurpClient
|
|
207
207
|
return false if @inbox_id.nil?
|
208
208
|
return false if @to.nil?
|
209
209
|
return false if @created_at.nil?
|
210
|
-
return false if @team_access.nil?
|
211
210
|
return false if @read.nil?
|
211
|
+
return false if @team_access.nil?
|
212
212
|
true
|
213
213
|
end
|
214
214
|
|
@@ -227,10 +227,10 @@ module MailSlurpClient
|
|
227
227
|
bcc == o.bcc &&
|
228
228
|
cc == o.cc &&
|
229
229
|
domain_id == o.domain_id &&
|
230
|
-
team_access == o.team_access &&
|
231
|
-
read == o.read &&
|
232
230
|
body_md5_hash == o.body_md5_hash &&
|
233
|
-
body_excerpt == o.body_excerpt
|
231
|
+
body_excerpt == o.body_excerpt &&
|
232
|
+
read == o.read &&
|
233
|
+
team_access == o.team_access
|
234
234
|
end
|
235
235
|
|
236
236
|
# @see the `==` method
|
@@ -242,7 +242,7 @@ module MailSlurpClient
|
|
242
242
|
# Calculates hash code according to all attributes.
|
243
243
|
# @return [Integer] Hash code
|
244
244
|
def hash
|
245
|
-
[id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, domain_id,
|
245
|
+
[id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, domain_id, body_md5_hash, body_excerpt, read, team_access].hash
|
246
246
|
end
|
247
247
|
|
248
248
|
# Builds the object from hash
|