mailslurp_client 15.12.13 → 15.12.16

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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +104 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  4. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +212 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +71 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/complaint.rb +289 -0
  8. data/lib/mailslurp_client/models/create_contact_options.rb +7 -0
  9. data/lib/mailslurp_client/models/create_domain_options.rb +3 -0
  10. data/lib/mailslurp_client/models/create_inbox_dto.rb +10 -0
  11. data/lib/mailslurp_client/models/create_webhook_options.rb +17 -7
  12. data/lib/mailslurp_client/models/delivery_status.rb +331 -0
  13. data/lib/mailslurp_client/models/email.rb +15 -0
  14. data/lib/mailslurp_client/models/email_analysis.rb +5 -0
  15. data/lib/mailslurp_client/models/email_preview.rb +6 -5
  16. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/inbox_dto.rb +2 -0
  18. data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
  19. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  20. data/lib/mailslurp_client/models/organization_inbox_projection.rb +4 -0
  21. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  22. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  23. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  24. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  25. data/lib/mailslurp_client/models/page_complaint.rb +308 -0
  26. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
  28. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  29. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  30. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  31. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  34. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  36. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  39. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  40. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  41. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  46. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  47. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  48. data/lib/mailslurp_client/models/sent_email_dto.rb +52 -1
  49. data/lib/mailslurp_client/models/sent_email_projection.rb +59 -59
  50. data/lib/mailslurp_client/models/thread_projection.rb +20 -20
  51. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  52. data/lib/mailslurp_client/models/update_inbox_options.rb +5 -0
  53. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -0
  54. data/lib/mailslurp_client/models/webhook_dto.rb +18 -9
  55. data/lib/mailslurp_client/models/webhook_header_name_value.rb +228 -0
  56. data/lib/mailslurp_client/models/webhook_headers.rb +215 -0
  57. data/lib/mailslurp_client/version.rb +1 -1
  58. data/lib/mailslurp_client.rb +6 -0
  59. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f5e9088eca9f13a4a3a191c8420b083d3d7275c8ce5ebcdd219596ae707952f
4
- data.tar.gz: 72799ac2111498f027841601d121bc8c3937ada005ad1c176125fe0d8179740c
3
+ metadata.gz: db8e97b69df32cf2d3d1b05a3abbf221b10d3ae316797ddf7b7ab6621982d43b
4
+ data.tar.gz: 473249ad3e4a85771f550c8cd0ee92ae2ed36ce1d7674caca208d4bc79beb95f
5
5
  SHA512:
6
- metadata.gz: 554fc7a4b57fcfd2b68a4aa26b79f18bfb90ade633863bcce473269048cda126e14f51cd932e34e3e5e250edb83bce49d27fb9989f2cd4a0c21e5143c7ae44bc
7
- data.tar.gz: e91106807651b9ad2c62ad26ac1d44b01b6ed50d96f67e8dd4140033181812118e0700895c887200e24a244bd2f4599e7fdd955528c20e921705ac47859776b0
6
+ metadata.gz: d8a1bea553e9d274a097d316cea53d89000b57bd9310e6b12363d893ea50c567d3ee5d2b56492601cf15090339dd839a295e0ff91bfe3764037e14f49e58c511
7
+ data.tar.gz: b7c74ae25aed2bc8847b704580cd4a99deb1eff427068a3f048943b52c003970e3a0ab6519acc1b1767779a22e225335e1458fe9189a0d9b6b9cd11a1ce2a36f
@@ -19,6 +19,110 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [String]
24
+ def get_smtp_password(opts = {})
25
+ data, _status_code, _headers = get_smtp_password_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
31
+ def get_smtp_password_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: ApiUserControllerApi.get_smtp_password ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/user/smtp/password'
37
+
38
+ # query parameters
39
+ query_params = opts[:query_params] || {}
40
+
41
+ # header parameters
42
+ header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:body]
51
+
52
+ # return_type
53
+ return_type = opts[:return_type] || 'String'
54
+
55
+ # auth_names
56
+ auth_names = opts[:auth_names] || ['API_KEY']
57
+
58
+ new_options = opts.merge(
59
+ :header_params => header_params,
60
+ :query_params => query_params,
61
+ :form_params => form_params,
62
+ :body => post_body,
63
+ :auth_names => auth_names,
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: ApiUserControllerApi#get_smtp_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [String]
76
+ def get_smtp_username(opts = {})
77
+ data, _status_code, _headers = get_smtp_username_with_http_info(opts)
78
+ data
79
+ end
80
+
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
83
+ def get_smtp_username_with_http_info(opts = {})
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug 'Calling API: ApiUserControllerApi.get_smtp_username ...'
86
+ end
87
+ # resource path
88
+ local_var_path = '/user/smtp/username'
89
+
90
+ # query parameters
91
+ query_params = opts[:query_params] || {}
92
+
93
+ # header parameters
94
+ header_params = opts[:header_params] || {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
97
+
98
+ # form parameters
99
+ form_params = opts[:form_params] || {}
100
+
101
+ # http body (model)
102
+ post_body = opts[:body]
103
+
104
+ # return_type
105
+ return_type = opts[:return_type] || 'String'
106
+
107
+ # auth_names
108
+ auth_names = opts[:auth_names] || ['API_KEY']
109
+
110
+ new_options = opts.merge(
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names,
116
+ :return_type => return_type
117
+ )
118
+
119
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: ApiUserControllerApi#get_smtp_username\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+
22
126
  # @param [Hash] opts the optional parameters
23
127
  # @return [UserInfoDto]
24
128
  def get_user_info(opts = {})
@@ -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] || {}
@@ -1648,6 +1651,74 @@ module MailSlurpClient
1648
1651
  return data, status_code, headers
1649
1652
  end
1650
1653
 
1654
+ # Update a webhook request headers
1655
+ # @param webhook_id [String]
1656
+ # @param webhook_headers [WebhookHeaders]
1657
+ # @param [Hash] opts the optional parameters
1658
+ # @return [WebhookDto]
1659
+ def update_webhook_headers(webhook_id, webhook_headers, opts = {})
1660
+ data, _status_code, _headers = update_webhook_headers_with_http_info(webhook_id, webhook_headers, opts)
1661
+ data
1662
+ end
1663
+
1664
+ # Update a webhook request headers
1665
+ # @param webhook_id [String]
1666
+ # @param webhook_headers [WebhookHeaders]
1667
+ # @param [Hash] opts the optional parameters
1668
+ # @return [Array<(WebhookDto, Integer, Hash)>] WebhookDto data, response status code and response headers
1669
+ def update_webhook_headers_with_http_info(webhook_id, webhook_headers, opts = {})
1670
+ if @api_client.config.debugging
1671
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.update_webhook_headers ...'
1672
+ end
1673
+ # verify the required parameter 'webhook_id' is set
1674
+ if @api_client.config.client_side_validation && webhook_id.nil?
1675
+ fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookControllerApi.update_webhook_headers"
1676
+ end
1677
+ # verify the required parameter 'webhook_headers' is set
1678
+ if @api_client.config.client_side_validation && webhook_headers.nil?
1679
+ fail ArgumentError, "Missing the required parameter 'webhook_headers' when calling WebhookControllerApi.update_webhook_headers"
1680
+ end
1681
+ # resource path
1682
+ local_var_path = '/webhooks/{webhookId}/headers'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
1683
+
1684
+ # query parameters
1685
+ query_params = opts[:query_params] || {}
1686
+
1687
+ # header parameters
1688
+ header_params = opts[:header_params] || {}
1689
+ # HTTP header 'Accept' (if needed)
1690
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1691
+ # HTTP header 'Content-Type'
1692
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1693
+
1694
+ # form parameters
1695
+ form_params = opts[:form_params] || {}
1696
+
1697
+ # http body (model)
1698
+ post_body = opts[:body] || @api_client.object_to_http_body(webhook_headers)
1699
+
1700
+ # return_type
1701
+ return_type = opts[:return_type] || 'WebhookDto'
1702
+
1703
+ # auth_names
1704
+ auth_names = opts[:auth_names] || ['API_KEY']
1705
+
1706
+ new_options = opts.merge(
1707
+ :header_params => header_params,
1708
+ :query_params => query_params,
1709
+ :form_params => form_params,
1710
+ :body => post_body,
1711
+ :auth_names => auth_names,
1712
+ :return_type => return_type
1713
+ )
1714
+
1715
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1716
+ if @api_client.config.debugging
1717
+ @api_client.config.logger.debug "API called: WebhookControllerApi#update_webhook_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1718
+ end
1719
+ return data, status_code, headers
1720
+ end
1721
+
1651
1722
  # Verify a webhook payload signature
1652
1723
  # Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.
1653
1724
  # @param verify_webhook_signature_options [VerifyWebhookSignatureOptions]
@@ -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