mailslurp_client 15.12.15 → 15.12.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  3. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +212 -0
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  7. data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  9. data/lib/mailslurp_client/models/complaint.rb +289 -0
  10. data/lib/mailslurp_client/models/create_webhook_options.rb +0 -5
  11. data/lib/mailslurp_client/models/delivery_status.rb +331 -0
  12. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  13. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  15. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  16. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  17. data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
  18. data/lib/mailslurp_client/models/page_complaint.rb +308 -0
  19. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  20. data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
  21. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  22. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  23. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  24. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  25. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  26. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  27. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  28. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  29. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  30. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  31. data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
  32. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  33. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  34. data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
  35. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  36. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  38. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  39. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  40. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  41. data/lib/mailslurp_client/models/sent_email_projection.rb +18 -18
  42. data/lib/mailslurp_client/models/thread_projection.rb +20 -20
  43. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  44. data/lib/mailslurp_client/version.rb +1 -1
  45. data/lib/mailslurp_client.rb +4 -0
  46. metadata +9 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b8e7e366076b52e650de96ef4978c5a3aa66496afc619770c3ec9729b4589eb
4
- data.tar.gz: 8bb32eb87a3d0d93aa92862d382f1fa2ea1c62341225dfe2ce9047bae43be7aa
3
+ metadata.gz: db8e97b69df32cf2d3d1b05a3abbf221b10d3ae316797ddf7b7ab6621982d43b
4
+ data.tar.gz: 473249ad3e4a85771f550c8cd0ee92ae2ed36ce1d7674caca208d4bc79beb95f
5
5
  SHA512:
6
- metadata.gz: 7847af2adeaee0f7c7f058b7364225a3455c5ad8cee0ba6bd1e79e3ea0e0b170e3d356234db273c171651e5e7a0778d29f9633112554930f66b807f3fe758eb0
7
- data.tar.gz: cae9e3474cf492b809b9b2cfe2bce0fe98e05939b9cccad3832513a52e7981f69c3386ac52f75892974f7443247d84875d6137278fd75663c85e5ed7a7ea0150
6
+ metadata.gz: d8a1bea553e9d274a097d316cea53d89000b57bd9310e6b12363d893ea50c567d3ee5d2b56492601cf15090339dd839a295e0ff91bfe3764037e14f49e58c511
7
+ data.tar.gz: b7c74ae25aed2bc8847b704580cd4a99deb1eff427068a3f048943b52c003970e3a0ab6519acc1b1767779a22e225335e1458fe9189a0d9b6b9cd11a1ce2a36f
@@ -364,5 +364,84 @@ module MailSlurpClient
364
364
  end
365
365
  return data, status_code, headers
366
366
  end
367
+
368
+ # Get paginated list of complaints.
369
+ # SMTP complaints made against your account
370
+ # @param [Hash] opts the optional parameters
371
+ # @option opts [Integer] :page Optional page index (default to 0)
372
+ # @option opts [Integer] :size Optional page size (default to 20)
373
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
374
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
375
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
376
+ # @return [PageComplaint]
377
+ def get_complaints(opts = {})
378
+ data, _status_code, _headers = get_complaints_with_http_info(opts)
379
+ data
380
+ end
381
+
382
+ # Get paginated list of complaints.
383
+ # SMTP complaints made against your account
384
+ # @param [Hash] opts the optional parameters
385
+ # @option opts [Integer] :page Optional page index
386
+ # @option opts [Integer] :size Optional page size
387
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
388
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
389
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
390
+ # @return [Array<(PageComplaint, Integer, Hash)>] PageComplaint data, response status code and response headers
391
+ def get_complaints_with_http_info(opts = {})
392
+ if @api_client.config.debugging
393
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_complaints ...'
394
+ end
395
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
396
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling BounceControllerApi.get_complaints, must be smaller than or equal to 100.'
397
+ end
398
+
399
+ allowable_values = ["ASC", "DESC"]
400
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
401
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
402
+ end
403
+ # resource path
404
+ local_var_path = '/bounce/complaints'
405
+
406
+ # query parameters
407
+ query_params = opts[:query_params] || {}
408
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
409
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
410
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
411
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
412
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
413
+
414
+ # header parameters
415
+ header_params = opts[:header_params] || {}
416
+ # HTTP header 'Accept' (if needed)
417
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
418
+
419
+ # form parameters
420
+ form_params = opts[:form_params] || {}
421
+
422
+ # http body (model)
423
+ post_body = opts[:body]
424
+
425
+ # return_type
426
+ return_type = opts[:return_type] || 'PageComplaint'
427
+
428
+ # auth_names
429
+ auth_names = opts[:auth_names] || ['API_KEY']
430
+
431
+ new_options = opts.merge(
432
+ :header_params => header_params,
433
+ :query_params => query_params,
434
+ :form_params => form_params,
435
+ :body => post_body,
436
+ :auth_names => auth_names,
437
+ :return_type => return_type
438
+ )
439
+
440
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug "API called: BounceControllerApi#get_complaints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
443
+ end
444
+ return data, status_code, headers
445
+ end
367
446
  end
368
447
  end
@@ -329,6 +329,218 @@ module MailSlurpClient
329
329
  return data, status_code, headers
330
330
  end
331
331
 
332
+ # Get a sent email delivery status
333
+ # @param delivery_id [String]
334
+ # @param [Hash] opts the optional parameters
335
+ # @return [DeliveryStatus]
336
+ def get_sent_delivery_status(delivery_id, opts = {})
337
+ data, _status_code, _headers = get_sent_delivery_status_with_http_info(delivery_id, opts)
338
+ data
339
+ end
340
+
341
+ # Get a sent email delivery status
342
+ # @param delivery_id [String]
343
+ # @param [Hash] opts the optional parameters
344
+ # @return [Array<(DeliveryStatus, Integer, Hash)>] DeliveryStatus data, response status code and response headers
345
+ def get_sent_delivery_status_with_http_info(delivery_id, opts = {})
346
+ if @api_client.config.debugging
347
+ @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_status ...'
348
+ end
349
+ # verify the required parameter 'delivery_id' is set
350
+ if @api_client.config.client_side_validation && delivery_id.nil?
351
+ fail ArgumentError, "Missing the required parameter 'delivery_id' when calling SentEmailsControllerApi.get_sent_delivery_status"
352
+ end
353
+ # resource path
354
+ local_var_path = '/sent/delivery-status/{deliveryId}'.sub('{' + 'deliveryId' + '}', CGI.escape(delivery_id.to_s))
355
+
356
+ # query parameters
357
+ query_params = opts[:query_params] || {}
358
+
359
+ # header parameters
360
+ header_params = opts[:header_params] || {}
361
+ # HTTP header 'Accept' (if needed)
362
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
363
+
364
+ # form parameters
365
+ form_params = opts[:form_params] || {}
366
+
367
+ # http body (model)
368
+ post_body = opts[:body]
369
+
370
+ # return_type
371
+ return_type = opts[:return_type] || 'DeliveryStatus'
372
+
373
+ # auth_names
374
+ auth_names = opts[:auth_names] || ['API_KEY']
375
+
376
+ new_options = opts.merge(
377
+ :header_params => header_params,
378
+ :query_params => query_params,
379
+ :form_params => form_params,
380
+ :body => post_body,
381
+ :auth_names => auth_names,
382
+ :return_type => return_type
383
+ )
384
+
385
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
386
+ if @api_client.config.debugging
387
+ @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_delivery_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
388
+ end
389
+ return data, status_code, headers
390
+ end
391
+
392
+ # Get all sent email delivery statuses
393
+ # @param [Hash] opts the optional parameters
394
+ # @option opts [Integer] :page Optional page index in delivery status list pagination (default to 0)
395
+ # @option opts [Integer] :size Optional page size in delivery status list pagination (default to 20)
396
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
397
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
398
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
399
+ # @return [PageDeliveryStatus]
400
+ def get_sent_delivery_statuses(opts = {})
401
+ data, _status_code, _headers = get_sent_delivery_statuses_with_http_info(opts)
402
+ data
403
+ end
404
+
405
+ # Get all sent email delivery statuses
406
+ # @param [Hash] opts the optional parameters
407
+ # @option opts [Integer] :page Optional page index in delivery status list pagination
408
+ # @option opts [Integer] :size Optional page size in delivery status list pagination
409
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
410
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
411
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
412
+ # @return [Array<(PageDeliveryStatus, Integer, Hash)>] PageDeliveryStatus data, response status code and response headers
413
+ def get_sent_delivery_statuses_with_http_info(opts = {})
414
+ if @api_client.config.debugging
415
+ @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_statuses ...'
416
+ end
417
+ allowable_values = ["ASC", "DESC"]
418
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
419
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
420
+ end
421
+ # resource path
422
+ local_var_path = '/sent/delivery-status'
423
+
424
+ # query parameters
425
+ query_params = opts[:query_params] || {}
426
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
427
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
428
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
429
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
430
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
431
+
432
+ # header parameters
433
+ header_params = opts[:header_params] || {}
434
+ # HTTP header 'Accept' (if needed)
435
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
436
+
437
+ # form parameters
438
+ form_params = opts[:form_params] || {}
439
+
440
+ # http body (model)
441
+ post_body = opts[:body]
442
+
443
+ # return_type
444
+ return_type = opts[:return_type] || 'PageDeliveryStatus'
445
+
446
+ # auth_names
447
+ auth_names = opts[:auth_names] || ['API_KEY']
448
+
449
+ new_options = opts.merge(
450
+ :header_params => header_params,
451
+ :query_params => query_params,
452
+ :form_params => form_params,
453
+ :body => post_body,
454
+ :auth_names => auth_names,
455
+ :return_type => return_type
456
+ )
457
+
458
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
459
+ if @api_client.config.debugging
460
+ @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_delivery_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
461
+ end
462
+ return data, status_code, headers
463
+ end
464
+
465
+ # Get all sent email delivery statuses
466
+ # @param sent_id [String]
467
+ # @param [Hash] opts the optional parameters
468
+ # @option opts [Integer] :page Optional page index in delivery status list pagination (default to 0)
469
+ # @option opts [Integer] :size Optional page size in delivery status list pagination (default to 20)
470
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
471
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
472
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
473
+ # @return [PageDeliveryStatus]
474
+ def get_sent_delivery_statuses_by_sent_id(sent_id, opts = {})
475
+ data, _status_code, _headers = get_sent_delivery_statuses_by_sent_id_with_http_info(sent_id, opts)
476
+ data
477
+ end
478
+
479
+ # Get all sent email delivery statuses
480
+ # @param sent_id [String]
481
+ # @param [Hash] opts the optional parameters
482
+ # @option opts [Integer] :page Optional page index in delivery status list pagination
483
+ # @option opts [Integer] :size Optional page size in delivery status list pagination
484
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
485
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
486
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
487
+ # @return [Array<(PageDeliveryStatus, Integer, Hash)>] PageDeliveryStatus data, response status code and response headers
488
+ def get_sent_delivery_statuses_by_sent_id_with_http_info(sent_id, opts = {})
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug 'Calling API: SentEmailsControllerApi.get_sent_delivery_statuses_by_sent_id ...'
491
+ end
492
+ # verify the required parameter 'sent_id' is set
493
+ if @api_client.config.client_side_validation && sent_id.nil?
494
+ fail ArgumentError, "Missing the required parameter 'sent_id' when calling SentEmailsControllerApi.get_sent_delivery_statuses_by_sent_id"
495
+ end
496
+ allowable_values = ["ASC", "DESC"]
497
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
498
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
499
+ end
500
+ # resource path
501
+ local_var_path = '/sent/{sentId}/delivery-status'.sub('{' + 'sentId' + '}', CGI.escape(sent_id.to_s))
502
+
503
+ # query parameters
504
+ query_params = opts[:query_params] || {}
505
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
506
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
507
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
508
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
509
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
510
+
511
+ # header parameters
512
+ header_params = opts[:header_params] || {}
513
+ # HTTP header 'Accept' (if needed)
514
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
515
+
516
+ # form parameters
517
+ form_params = opts[:form_params] || {}
518
+
519
+ # http body (model)
520
+ post_body = opts[:body]
521
+
522
+ # return_type
523
+ return_type = opts[:return_type] || 'PageDeliveryStatus'
524
+
525
+ # auth_names
526
+ auth_names = opts[:auth_names] || ['API_KEY']
527
+
528
+ new_options = opts.merge(
529
+ :header_params => header_params,
530
+ :query_params => query_params,
531
+ :form_params => form_params,
532
+ :body => post_body,
533
+ :auth_names => auth_names,
534
+ :return_type => return_type
535
+ )
536
+
537
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
538
+ if @api_client.config.debugging
539
+ @api_client.config.logger.debug "API called: SentEmailsControllerApi#get_sent_delivery_statuses_by_sent_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
+ end
541
+ return data, status_code, headers
542
+ end
543
+
332
544
  # Get sent email receipt
333
545
  # @param id [String]
334
546
  # @param [Hash] opts the optional parameters
@@ -155,6 +155,7 @@ module MailSlurpClient
155
155
 
156
156
  # Delete all webhooks
157
157
  # @param [Hash] opts the optional parameters
158
+ # @option opts [DateTime] :before before
158
159
  # @return [nil]
159
160
  def delete_all_webhooks(opts = {})
160
161
  delete_all_webhooks_with_http_info(opts)
@@ -163,6 +164,7 @@ module MailSlurpClient
163
164
 
164
165
  # Delete all webhooks
165
166
  # @param [Hash] opts the optional parameters
167
+ # @option opts [DateTime] :before before
166
168
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
167
169
  def delete_all_webhooks_with_http_info(opts = {})
168
170
  if @api_client.config.debugging
@@ -173,6 +175,7 @@ module MailSlurpClient
173
175
 
174
176
  # query parameters
175
177
  query_params = opts[:query_params] || {}
178
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
176
179
 
177
180
  # header parameters
178
181
  header_params = opts[:header_params] || {}
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :inbox_id
23
-
24
22
  attr_accessor :user_id
25
23
 
26
24
  attr_accessor :email_address
27
25
 
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',
40
39
  :'user_id' => :'userId',
41
40
  :'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',
54
53
  :'user_id' => :'String',
55
54
  :'email_address' => :'String',
55
+ :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'updated_at' => :'DateTime',
58
58
  :'use_threads' => :'Boolean'
@@ -88,10 +88,6 @@ 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
-
95
91
  if attributes.key?(:'user_id')
96
92
  self.user_id = attributes[:'user_id']
97
93
  end
@@ -100,6 +96,10 @@ module MailSlurpClient
100
96
  self.email_address = attributes[:'email_address']
101
97
  end
102
98
 
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,10 +121,6 @@ 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
-
128
124
  if @user_id.nil?
129
125
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
126
  end
@@ -133,6 +129,10 @@ module MailSlurpClient
133
129
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
134
130
  end
135
131
 
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?
152
151
  return false if @user_id.nil?
153
152
  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 &&
167
166
  user_id == o.user_id &&
168
167
  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, inbox_id, user_id, email_address, created_at, updated_at, use_threads].hash
183
+ [name, id, user_id, email_address, inbox_id, 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