mailslurp_client 15.12.17 → 15.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/phone_controller_api.rb +74 -0
  3. data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
  4. data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  8. data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
  9. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  10. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  11. data/lib/mailslurp_client/models/email_projection.rb +39 -39
  12. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  13. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  14. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  15. data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
  16. data/lib/mailslurp_client/models/page_complaint.rb +22 -22
  17. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  18. data/lib/mailslurp_client/models/page_delivery_status.rb +22 -22
  19. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  20. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  21. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  22. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  23. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  24. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  25. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  26. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  27. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  28. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  29. data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
  30. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  31. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  32. data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
  33. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  34. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  35. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  36. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  38. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  39. data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
  40. data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
  41. data/lib/mailslurp_client/models/sms_preview.rb +15 -1
  42. data/lib/mailslurp_client/models/sms_projection.rb +32 -18
  43. data/lib/mailslurp_client/models/sort.rb +13 -13
  44. data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
  45. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  46. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  47. data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
  48. data/lib/mailslurp_client/version.rb +1 -1
  49. data/lib/mailslurp_client.rb +3 -1
  50. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1dac26ff14eb4f9f64b3b514fc28d7d59db6b07c64c450992dd86916227922a
4
- data.tar.gz: ae952361f60c99bee1dfb8f37d6d2e71b7e7621cb3ef48467b22d1ef5bc397f6
3
+ metadata.gz: 3e9e7c3b829136e1149ac729f28d0bd3a7393d19b8dc9b3d3fd60bfa7cbfd16c
4
+ data.tar.gz: f541eb30817057627e722184398f6de3c7e2ef144a8126ef3127219254ba489d
5
5
  SHA512:
6
- metadata.gz: 82dc3c0abe03f28aeebe0ee2e006fc56e2deed8b115e7501fffa770791ed1269b753da2f4552ba06056093a4cf1f92a977256b6ce124f0e5b99fbe38810a52cd
7
- data.tar.gz: a6835141e04325e7a71ac696c4d5c988555857c72f722b741aa638418b0e4f2311f32f1b8056a9b0c7c4837be3214604fe3fe525360549a8d5e4d56569af6a64
6
+ metadata.gz: c41db2889b40b655a7790a6983034c2d3dd83052f54276b4d78946a26c1213c8fd1c029d5d32189f14b37db920ce8d32aa75c1ae06bd25d49c17233534979e5c
7
+ data.tar.gz: 2c1e4a2bb84475959cf60214a155121cfe70057357b0b1924dbdd8d487cf49e57c118e9a0d819b21ff44a174ba7d15a266d147085aed3c1a6af571b05f1c3fdc
@@ -362,6 +362,7 @@ module MailSlurpClient
362
362
  end
363
363
 
364
364
  # @param [Hash] opts the optional parameters
365
+ # @option opts [String] :phone_country Optional phone country
365
366
  # @option opts [Integer] :page Optional page index for list pagination (default to 0)
366
367
  # @option opts [Integer] :size Optional page size for list pagination (default to 20)
367
368
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
@@ -374,6 +375,7 @@ module MailSlurpClient
374
375
  end
375
376
 
376
377
  # @param [Hash] opts the optional parameters
378
+ # @option opts [String] :phone_country Optional phone country
377
379
  # @option opts [Integer] :page Optional page index for list pagination
378
380
  # @option opts [Integer] :size Optional page size for list pagination
379
381
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
@@ -384,6 +386,10 @@ module MailSlurpClient
384
386
  if @api_client.config.debugging
385
387
  @api_client.config.logger.debug 'Calling API: PhoneControllerApi.get_phone_numbers ...'
386
388
  end
389
+ allowable_values = ["US", "GB"]
390
+ if @api_client.config.client_side_validation && opts[:'phone_country'] && !allowable_values.include?(opts[:'phone_country'])
391
+ fail ArgumentError, "invalid value for \"phone_country\", must be one of #{allowable_values}"
392
+ end
387
393
  allowable_values = ["ASC", "DESC"]
388
394
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
389
395
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
@@ -393,6 +399,7 @@ module MailSlurpClient
393
399
 
394
400
  # query parameters
395
401
  query_params = opts[:query_params] || {}
402
+ query_params[:'phoneCountry'] = opts[:'phone_country'] if !opts[:'phone_country'].nil?
396
403
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
397
404
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
398
405
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
@@ -483,5 +490,72 @@ module MailSlurpClient
483
490
  end
484
491
  return data, status_code, headers
485
492
  end
493
+
494
+ # @param phone_number_id [String]
495
+ # @param test_phone_number_options [TestPhoneNumberOptions]
496
+ # @param [Hash] opts the optional parameters
497
+ # @option opts [String] :x_test_id
498
+ # @return [nil]
499
+ def test_phone_number_send_sms(phone_number_id, test_phone_number_options, opts = {})
500
+ test_phone_number_send_sms_with_http_info(phone_number_id, test_phone_number_options, opts)
501
+ nil
502
+ end
503
+
504
+ # @param phone_number_id [String]
505
+ # @param test_phone_number_options [TestPhoneNumberOptions]
506
+ # @param [Hash] opts the optional parameters
507
+ # @option opts [String] :x_test_id
508
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
509
+ def test_phone_number_send_sms_with_http_info(phone_number_id, test_phone_number_options, opts = {})
510
+ if @api_client.config.debugging
511
+ @api_client.config.logger.debug 'Calling API: PhoneControllerApi.test_phone_number_send_sms ...'
512
+ end
513
+ # verify the required parameter 'phone_number_id' is set
514
+ if @api_client.config.client_side_validation && phone_number_id.nil?
515
+ fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling PhoneControllerApi.test_phone_number_send_sms"
516
+ end
517
+ # verify the required parameter 'test_phone_number_options' is set
518
+ if @api_client.config.client_side_validation && test_phone_number_options.nil?
519
+ fail ArgumentError, "Missing the required parameter 'test_phone_number_options' when calling PhoneControllerApi.test_phone_number_send_sms"
520
+ end
521
+ # resource path
522
+ local_var_path = '/phone/numbers/{phoneNumberId}/test'.sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
523
+
524
+ # query parameters
525
+ query_params = opts[:query_params] || {}
526
+
527
+ # header parameters
528
+ header_params = opts[:header_params] || {}
529
+ # HTTP header 'Content-Type'
530
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
531
+ header_params[:'x-test-id'] = opts[:'x_test_id'] if !opts[:'x_test_id'].nil?
532
+
533
+ # form parameters
534
+ form_params = opts[:form_params] || {}
535
+
536
+ # http body (model)
537
+ post_body = opts[:body] || @api_client.object_to_http_body(test_phone_number_options)
538
+
539
+ # return_type
540
+ return_type = opts[:return_type]
541
+
542
+ # auth_names
543
+ auth_names = opts[:auth_names] || ['API_KEY']
544
+
545
+ new_options = opts.merge(
546
+ :header_params => header_params,
547
+ :query_params => query_params,
548
+ :form_params => form_params,
549
+ :body => post_body,
550
+ :auth_names => auth_names,
551
+ :return_type => return_type
552
+ )
553
+
554
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
555
+ if @api_client.config.debugging
556
+ @api_client.config.logger.debug "API called: PhoneControllerApi#test_phone_number_send_sms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
557
+ end
558
+ return data, status_code, headers
559
+ end
486
560
  end
487
561
  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 [SmsMessage]
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<(SmsMessage, Integer, Hash)>] SmsMessage data, response status code and response headers
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] || 'SmsMessage'
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
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
- attr_accessor :inbox_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :updated_at
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'inbox_id' => :'inboxId',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
- :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'updated_at' => :'updatedAt',
44
44
  :'use_threads' => :'useThreads'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'inbox_id' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
- :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'updated_at' => :'DateTime',
58
58
  :'use_threads' => :'Boolean'
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.email_address = attributes[:'email_address']
97
101
  end
98
102
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
101
- end
102
-
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -121,6 +121,10 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
+ if @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
134
  end
131
135
 
132
- if @inbox_id.nil?
133
- invalid_properties.push('invalid value for "inbox_id", inbox_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
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
+ return false if @inbox_id.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
- return false if @inbox_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,9 +163,9 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ inbox_id == o.inbox_id &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
- inbox_id == o.inbox_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, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
183
+ [name, id, inbox_id, user_id, email_address, created_at, updated_at, use_threads].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -20,6 +20,9 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
+ # Content type of attachment.
24
+ attr_accessor :content_type
25
+
23
26
  attr_accessor :user_id
24
27
 
25
28
  # Attachment ID
@@ -29,19 +32,16 @@ module MailSlurpClient
29
32
 
30
33
  attr_accessor :updated_at
31
34
 
32
- # Content type of attachment.
33
- attr_accessor :content_type
34
-
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
+ :'content_type' => :'contentType',
40
41
  :'user_id' => :'userId',
41
42
  :'attachment_id' => :'attachmentId',
42
43
  :'created_at' => :'createdAt',
43
- :'updated_at' => :'updatedAt',
44
- :'content_type' => :'contentType'
44
+ :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
+ :'content_type' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'attachment_id' => :'String',
55
56
  :'created_at' => :'DateTime',
56
- :'updated_at' => :'DateTime',
57
- :'content_type' => :'String'
57
+ :'updated_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -87,6 +87,10 @@ module MailSlurpClient
87
87
  self.content_length = attributes[:'content_length']
88
88
  end
89
89
 
90
+ if attributes.key?(:'content_type')
91
+ self.content_type = attributes[:'content_type']
92
+ end
93
+
90
94
  if attributes.key?(:'user_id')
91
95
  self.user_id = attributes[:'user_id']
92
96
  end
@@ -102,10 +106,6 @@ module MailSlurpClient
102
106
  if attributes.key?(:'updated_at')
103
107
  self.updated_at = attributes[:'updated_at']
104
108
  end
105
-
106
- if attributes.key?(:'content_type')
107
- self.content_type = attributes[:'content_type']
108
- end
109
109
  end
110
110
 
111
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -148,11 +148,11 @@ module MailSlurpClient
148
148
  self.class == o.class &&
149
149
  name == o.name &&
150
150
  content_length == o.content_length &&
151
+ content_type == o.content_type &&
151
152
  user_id == o.user_id &&
152
153
  attachment_id == o.attachment_id &&
153
154
  created_at == o.created_at &&
154
- updated_at == o.updated_at &&
155
- content_type == o.content_type
155
+ updated_at == o.updated_at
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module MailSlurpClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
167
+ [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :created_at
25
25
 
26
- attr_accessor :bounce_type
27
-
28
26
  attr_accessor :bounce_mta
29
27
 
28
+ attr_accessor :bounce_type
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
@@ -34,8 +34,8 @@ module MailSlurpClient
34
34
  :'sender' => :'sender',
35
35
  :'subject' => :'subject',
36
36
  :'created_at' => :'createdAt',
37
- :'bounce_type' => :'bounceType',
38
- :'bounce_mta' => :'bounceMta'
37
+ :'bounce_mta' => :'bounceMta',
38
+ :'bounce_type' => :'bounceType'
39
39
  }
40
40
  end
41
41
 
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'sender' => :'String',
47
47
  :'subject' => :'String',
48
48
  :'created_at' => :'DateTime',
49
- :'bounce_type' => :'String',
50
- :'bounce_mta' => :'String'
49
+ :'bounce_mta' => :'String',
50
+ :'bounce_type' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -88,13 +88,13 @@ module MailSlurpClient
88
88
  self.created_at = attributes[:'created_at']
89
89
  end
90
90
 
91
- if attributes.key?(:'bounce_type')
92
- self.bounce_type = attributes[:'bounce_type']
93
- end
94
-
95
91
  if attributes.key?(:'bounce_mta')
96
92
  self.bounce_mta = attributes[:'bounce_mta']
97
93
  end
94
+
95
+ if attributes.key?(:'bounce_type')
96
+ self.bounce_type = attributes[:'bounce_type']
97
+ end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,8 +129,8 @@ module MailSlurpClient
129
129
  sender == o.sender &&
130
130
  subject == o.subject &&
131
131
  created_at == o.created_at &&
132
- bounce_type == o.bounce_type &&
133
- bounce_mta == o.bounce_mta
132
+ bounce_mta == o.bounce_mta &&
133
+ bounce_type == o.bounce_type
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -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, sender, subject, created_at, bounce_type, bounce_mta].hash
145
+ [id, sender, subject, created_at, bounce_mta, bounce_type].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -17,6 +17,8 @@ module MailSlurpClient
17
17
  class BounceRecipientProjection
18
18
  attr_accessor :id
19
19
 
20
+ attr_accessor :action
21
+
20
22
  attr_accessor :status
21
23
 
22
24
  attr_accessor :sent_email_id
@@ -25,17 +27,15 @@ module MailSlurpClient
25
27
 
26
28
  attr_accessor :recipient
27
29
 
28
- attr_accessor :action
29
-
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
33
  :'id' => :'id',
34
+ :'action' => :'action',
34
35
  :'status' => :'status',
35
36
  :'sent_email_id' => :'sentEmailId',
36
37
  :'created_at' => :'createdAt',
37
- :'recipient' => :'recipient',
38
- :'action' => :'action'
38
+ :'recipient' => :'recipient'
39
39
  }
40
40
  end
41
41
 
@@ -43,11 +43,11 @@ module MailSlurpClient
43
43
  def self.openapi_types
44
44
  {
45
45
  :'id' => :'String',
46
+ :'action' => :'String',
46
47
  :'status' => :'String',
47
48
  :'sent_email_id' => :'String',
48
49
  :'created_at' => :'DateTime',
49
- :'recipient' => :'String',
50
- :'action' => :'String'
50
+ :'recipient' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -76,6 +76,10 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
+ if attributes.key?(:'action')
80
+ self.action = attributes[:'action']
81
+ end
82
+
79
83
  if attributes.key?(:'status')
80
84
  self.status = attributes[:'status']
81
85
  end
@@ -91,10 +95,6 @@ module MailSlurpClient
91
95
  if attributes.key?(:'recipient')
92
96
  self.recipient = attributes[:'recipient']
93
97
  end
94
-
95
- if attributes.key?(:'action')
96
- self.action = attributes[:'action']
97
- end
98
98
  end
99
99
 
100
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,11 +126,11 @@ module MailSlurpClient
126
126
  return true if self.equal?(o)
127
127
  self.class == o.class &&
128
128
  id == o.id &&
129
+ action == o.action &&
129
130
  status == o.status &&
130
131
  sent_email_id == o.sent_email_id &&
131
132
  created_at == o.created_at &&
132
- recipient == o.recipient &&
133
- action == o.action
133
+ recipient == o.recipient
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -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, status, sent_email_id, created_at, recipient, action].hash
145
+ [id, action, status, sent_email_id, created_at, recipient].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash