mailslurp_client 15.17.32 → 15.17.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +3 -0
  3. data/lib/mailslurp_client/api/sms_controller_api.rb +56 -0
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +186 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
  7. data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
  8. data/lib/mailslurp_client/models/email.rb +13 -13
  9. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  12. data/lib/mailslurp_client/models/page_alias.rb +17 -16
  13. data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
  14. data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
  15. data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
  16. data/lib/mailslurp_client/models/page_complaint.rb +17 -16
  17. data/lib/mailslurp_client/models/page_connector.rb +17 -16
  18. data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
  19. data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
  20. data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
  21. data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
  22. data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
  23. data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
  24. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
  25. data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
  26. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
  28. data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
  29. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
  30. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
  31. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
  32. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
  33. data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
  34. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
  35. data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
  36. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
  37. data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
  38. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
  39. data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
  40. data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
  41. data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
  42. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
  43. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
  44. data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
  45. data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
  46. data/lib/mailslurp_client/models/pageable_object.rb +10 -10
  47. data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
  48. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
  49. data/lib/mailslurp_client/models/thread_projection.rb +11 -11
  50. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  51. data/lib/mailslurp_client/models/user_info_dto.rb +2 -2
  52. data/lib/mailslurp_client/models/webhook_redrive_all_result.rb +222 -0
  53. data/lib/mailslurp_client/models/webhook_result_dto.rb +56 -16
  54. data/lib/mailslurp_client/version.rb +1 -1
  55. data/lib/mailslurp_client.rb +1 -0
  56. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b66d7eb48418522d9af019e393c27859d19f8d90b3343f7cdf4b09254a6b13c
4
- data.tar.gz: 5ab18eaa5cb6081ccb78c5539722b24a9d2fb9f15358e05abe051820588553c2
3
+ metadata.gz: f592144a7e81437b7c73cc45fd304a9574111badc1a8c6f3add0c429f1ce8a74
4
+ data.tar.gz: 716b45de6ac031530edbe658305a6d51524ef4b8d18c56b4594f711afb63839e
5
5
  SHA512:
6
- metadata.gz: 8ddc3a17d6e58175993b96d423c1a54f0406ee4dd5be2244a1e91fb1bc74d2d5d056eb6784ed475efbdda6536eb722e2eccbd96969f757801333e414bde8f528
7
- data.tar.gz: 150be50ae7a56d94f1d83e82129485b979a4b8399c55aa5a8e19259d16c94df12075dec29078e8769f89e7709e4aec1ee715d53c7068914c0f95e36b7fc0d3a4
6
+ metadata.gz: cb1cb933502fc7cb5702466c7e294311e882103cf401a9486c180d4c57b7de5a3141ebed0856d30c1552f2679e6e13e1c22671a7ed134f9be2016ce44358c50b
7
+ data.tar.gz: 122b03c2dbe78ff81e2bafd201b877c52950e75682ea40cf47698ef9c7817c3f5091927caf07cdaa77a25789dae77fac8c080accdcc8537cd9fd9f78d4c4f7ba
@@ -384,6 +384,7 @@ module MailSlurpClient
384
384
  # @option opts [String] :file_name_filter Optional file name and content type search filter
385
385
  # @option opts [DateTime] :since Filter by created at after the given timestamp
386
386
  # @option opts [DateTime] :before Filter by created at before the given timestamp
387
+ # @option opts [String] :inbox_id Optional inboxId to filter attachments by
387
388
  # @return [PageAttachmentEntity]
388
389
  def get_attachments(opts = {})
389
390
  data, _status_code, _headers = get_attachments_with_http_info(opts)
@@ -399,6 +400,7 @@ module MailSlurpClient
399
400
  # @option opts [String] :file_name_filter Optional file name and content type search filter
400
401
  # @option opts [DateTime] :since Filter by created at after the given timestamp
401
402
  # @option opts [DateTime] :before Filter by created at before the given timestamp
403
+ # @option opts [String] :inbox_id Optional inboxId to filter attachments by
402
404
  # @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
403
405
  def get_attachments_with_http_info(opts = {})
404
406
  if @api_client.config.debugging
@@ -419,6 +421,7 @@ module MailSlurpClient
419
421
  query_params[:'fileNameFilter'] = opts[:'file_name_filter'] if !opts[:'file_name_filter'].nil?
420
422
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
421
423
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
424
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
422
425
 
423
426
  # header parameters
424
427
  header_params = opts[:header_params] || {}
@@ -198,6 +198,62 @@ module MailSlurpClient
198
198
  return data, status_code, headers
199
199
  end
200
200
 
201
+ # Get SMS count
202
+ # Get number of SMS
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [CountDto]
205
+ def get_sms_count(opts = {})
206
+ data, _status_code, _headers = get_sms_count_with_http_info(opts)
207
+ data
208
+ end
209
+
210
+ # Get SMS count
211
+ # Get number of SMS
212
+ # @param [Hash] opts the optional parameters
213
+ # @return [Array<(CountDto, Integer, Hash)>] CountDto data, response status code and response headers
214
+ def get_sms_count_with_http_info(opts = {})
215
+ if @api_client.config.debugging
216
+ @api_client.config.logger.debug 'Calling API: SmsControllerApi.get_sms_count ...'
217
+ end
218
+ # resource path
219
+ local_var_path = '/sms/count'
220
+
221
+ # query parameters
222
+ query_params = opts[:query_params] || {}
223
+
224
+ # header parameters
225
+ header_params = opts[:header_params] || {}
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
228
+
229
+ # form parameters
230
+ form_params = opts[:form_params] || {}
231
+
232
+ # http body (model)
233
+ post_body = opts[:body]
234
+
235
+ # return_type
236
+ return_type = opts[:return_type] || 'CountDto'
237
+
238
+ # auth_names
239
+ auth_names = opts[:auth_names] || ['API_KEY']
240
+
241
+ new_options = opts.merge(
242
+ :header_params => header_params,
243
+ :query_params => query_params,
244
+ :form_params => form_params,
245
+ :body => post_body,
246
+ :auth_names => auth_names,
247
+ :return_type => return_type
248
+ )
249
+
250
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug "API called: SmsControllerApi#get_sms_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
253
+ end
254
+ return data, status_code, headers
255
+ end
256
+
201
257
  # Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController.
202
258
  # Returns a SMS summary object with content.
203
259
  # @param sms_id [String]
@@ -507,6 +507,15 @@ module MailSlurpClient
507
507
  # @option opts [DateTime] :since Filter by created at after the given timestamp
508
508
  # @option opts [DateTime] :before Filter by created at before the given timestamp
509
509
  # @option opts [Boolean] :unseen_only Filter for unseen exceptions only
510
+ # @option opts [String] :result_type Filter by result type
511
+ # @option opts [String] :event_name Filter by event name
512
+ # @option opts [Integer] :min_status_code Minimum response status
513
+ # @option opts [Integer] :max_status_code Maximum response status
514
+ # @option opts [String] :inbox_id Inbox ID
515
+ # @option opts [String] :sms_id Sms ID
516
+ # @option opts [String] :attachment_id Attachment ID
517
+ # @option opts [String] :email_id Email ID
518
+ # @option opts [String] :phone_id Phone ID
510
519
  # @return [PageWebhookResult]
511
520
  def get_all_webhook_results(opts = {})
512
521
  data, _status_code, _headers = get_all_webhook_results_with_http_info(opts)
@@ -522,6 +531,15 @@ module MailSlurpClient
522
531
  # @option opts [DateTime] :since Filter by created at after the given timestamp
523
532
  # @option opts [DateTime] :before Filter by created at before the given timestamp
524
533
  # @option opts [Boolean] :unseen_only Filter for unseen exceptions only
534
+ # @option opts [String] :result_type Filter by result type
535
+ # @option opts [String] :event_name Filter by event name
536
+ # @option opts [Integer] :min_status_code Minimum response status
537
+ # @option opts [Integer] :max_status_code Maximum response status
538
+ # @option opts [String] :inbox_id Inbox ID
539
+ # @option opts [String] :sms_id Sms ID
540
+ # @option opts [String] :attachment_id Attachment ID
541
+ # @option opts [String] :email_id Email ID
542
+ # @option opts [String] :phone_id Phone ID
525
543
  # @return [Array<(PageWebhookResult, Integer, Hash)>] PageWebhookResult data, response status code and response headers
526
544
  def get_all_webhook_results_with_http_info(opts = {})
527
545
  if @api_client.config.debugging
@@ -531,6 +549,14 @@ module MailSlurpClient
531
549
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
532
550
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
533
551
  end
552
+ allowable_values = ["BAD_RESPONSE", "EXCEPTION", "SUCCESS", "REDRIVEN"]
553
+ if @api_client.config.client_side_validation && opts[:'result_type'] && !allowable_values.include?(opts[:'result_type'])
554
+ fail ArgumentError, "invalid value for \"result_type\", must be one of #{allowable_values}"
555
+ end
556
+ allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
557
+ if @api_client.config.client_side_validation && opts[:'event_name'] && !allowable_values.include?(opts[:'event_name'])
558
+ fail ArgumentError, "invalid value for \"event_name\", must be one of #{allowable_values}"
559
+ end
534
560
  # resource path
535
561
  local_var_path = '/webhooks/results'
536
562
 
@@ -543,6 +569,15 @@ module MailSlurpClient
543
569
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
544
570
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
545
571
  query_params[:'unseenOnly'] = opts[:'unseen_only'] if !opts[:'unseen_only'].nil?
572
+ query_params[:'resultType'] = opts[:'result_type'] if !opts[:'result_type'].nil?
573
+ query_params[:'eventName'] = opts[:'event_name'] if !opts[:'event_name'].nil?
574
+ query_params[:'minStatusCode'] = opts[:'min_status_code'] if !opts[:'min_status_code'].nil?
575
+ query_params[:'maxStatusCode'] = opts[:'max_status_code'] if !opts[:'max_status_code'].nil?
576
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
577
+ query_params[:'smsId'] = opts[:'sms_id'] if !opts[:'sms_id'].nil?
578
+ query_params[:'attachmentId'] = opts[:'attachment_id'] if !opts[:'attachment_id'].nil?
579
+ query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
580
+ query_params[:'phoneId'] = opts[:'phone_id'] if !opts[:'phone_id'].nil?
546
581
 
547
582
  # header parameters
548
583
  header_params = opts[:header_params] || {}
@@ -1701,6 +1736,15 @@ module MailSlurpClient
1701
1736
  # @option opts [DateTime] :since Filter by created at after the given timestamp
1702
1737
  # @option opts [DateTime] :before Filter by created at before the given timestamp
1703
1738
  # @option opts [Boolean] :unseen_only Filter for unseen exceptions only
1739
+ # @option opts [String] :result_type Filter by result type
1740
+ # @option opts [String] :event_name Filter by event name
1741
+ # @option opts [Integer] :min_status_code Minimum response status
1742
+ # @option opts [Integer] :max_status_code Maximum response status
1743
+ # @option opts [String] :inbox_id Inbox ID
1744
+ # @option opts [String] :sms_id Sms ID
1745
+ # @option opts [String] :attachment_id Attachment ID
1746
+ # @option opts [String] :email_id Email ID
1747
+ # @option opts [String] :phone_id Phone ID
1704
1748
  # @return [PageWebhookResult]
1705
1749
  def get_webhook_results(webhook_id, opts = {})
1706
1750
  data, _status_code, _headers = get_webhook_results_with_http_info(webhook_id, opts)
@@ -1717,6 +1761,15 @@ module MailSlurpClient
1717
1761
  # @option opts [DateTime] :since Filter by created at after the given timestamp
1718
1762
  # @option opts [DateTime] :before Filter by created at before the given timestamp
1719
1763
  # @option opts [Boolean] :unseen_only Filter for unseen exceptions only
1764
+ # @option opts [String] :result_type Filter by result type
1765
+ # @option opts [String] :event_name Filter by event name
1766
+ # @option opts [Integer] :min_status_code Minimum response status
1767
+ # @option opts [Integer] :max_status_code Maximum response status
1768
+ # @option opts [String] :inbox_id Inbox ID
1769
+ # @option opts [String] :sms_id Sms ID
1770
+ # @option opts [String] :attachment_id Attachment ID
1771
+ # @option opts [String] :email_id Email ID
1772
+ # @option opts [String] :phone_id Phone ID
1720
1773
  # @return [Array<(PageWebhookResult, Integer, Hash)>] PageWebhookResult data, response status code and response headers
1721
1774
  def get_webhook_results_with_http_info(webhook_id, opts = {})
1722
1775
  if @api_client.config.debugging
@@ -1730,6 +1783,14 @@ module MailSlurpClient
1730
1783
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
1731
1784
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
1732
1785
  end
1786
+ allowable_values = ["BAD_RESPONSE", "EXCEPTION", "SUCCESS", "REDRIVEN"]
1787
+ if @api_client.config.client_side_validation && opts[:'result_type'] && !allowable_values.include?(opts[:'result_type'])
1788
+ fail ArgumentError, "invalid value for \"result_type\", must be one of #{allowable_values}"
1789
+ end
1790
+ allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
1791
+ if @api_client.config.client_side_validation && opts[:'event_name'] && !allowable_values.include?(opts[:'event_name'])
1792
+ fail ArgumentError, "invalid value for \"event_name\", must be one of #{allowable_values}"
1793
+ end
1733
1794
  # resource path
1734
1795
  local_var_path = '/webhooks/{webhookId}/results'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
1735
1796
 
@@ -1742,6 +1803,15 @@ module MailSlurpClient
1742
1803
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
1743
1804
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
1744
1805
  query_params[:'unseenOnly'] = opts[:'unseen_only'] if !opts[:'unseen_only'].nil?
1806
+ query_params[:'resultType'] = opts[:'result_type'] if !opts[:'result_type'].nil?
1807
+ query_params[:'eventName'] = opts[:'event_name'] if !opts[:'event_name'].nil?
1808
+ query_params[:'minStatusCode'] = opts[:'min_status_code'] if !opts[:'min_status_code'].nil?
1809
+ query_params[:'maxStatusCode'] = opts[:'max_status_code'] if !opts[:'max_status_code'].nil?
1810
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
1811
+ query_params[:'smsId'] = opts[:'sms_id'] if !opts[:'sms_id'].nil?
1812
+ query_params[:'attachmentId'] = opts[:'attachment_id'] if !opts[:'attachment_id'].nil?
1813
+ query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
1814
+ query_params[:'phoneId'] = opts[:'phone_id'] if !opts[:'phone_id'].nil?
1745
1815
 
1746
1816
  # header parameters
1747
1817
  header_params = opts[:header_params] || {}
@@ -1776,6 +1846,66 @@ module MailSlurpClient
1776
1846
  return data, status_code, headers
1777
1847
  end
1778
1848
 
1849
+ # Get a webhook results count for a webhook
1850
+ # @param webhook_id [String] ID of webhook to get results for
1851
+ # @param [Hash] opts the optional parameters
1852
+ # @return [CountDto]
1853
+ def get_webhook_results_count(webhook_id, opts = {})
1854
+ data, _status_code, _headers = get_webhook_results_count_with_http_info(webhook_id, opts)
1855
+ data
1856
+ end
1857
+
1858
+ # Get a webhook results count for a webhook
1859
+ # @param webhook_id [String] ID of webhook to get results for
1860
+ # @param [Hash] opts the optional parameters
1861
+ # @return [Array<(CountDto, Integer, Hash)>] CountDto data, response status code and response headers
1862
+ def get_webhook_results_count_with_http_info(webhook_id, opts = {})
1863
+ if @api_client.config.debugging
1864
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.get_webhook_results_count ...'
1865
+ end
1866
+ # verify the required parameter 'webhook_id' is set
1867
+ if @api_client.config.client_side_validation && webhook_id.nil?
1868
+ fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookControllerApi.get_webhook_results_count"
1869
+ end
1870
+ # resource path
1871
+ local_var_path = '/webhooks/{webhookId}/results/count'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
1872
+
1873
+ # query parameters
1874
+ query_params = opts[:query_params] || {}
1875
+
1876
+ # header parameters
1877
+ header_params = opts[:header_params] || {}
1878
+ # HTTP header 'Accept' (if needed)
1879
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1880
+
1881
+ # form parameters
1882
+ form_params = opts[:form_params] || {}
1883
+
1884
+ # http body (model)
1885
+ post_body = opts[:body]
1886
+
1887
+ # return_type
1888
+ return_type = opts[:return_type] || 'CountDto'
1889
+
1890
+ # auth_names
1891
+ auth_names = opts[:auth_names] || ['API_KEY']
1892
+
1893
+ new_options = opts.merge(
1894
+ :header_params => header_params,
1895
+ :query_params => query_params,
1896
+ :form_params => form_params,
1897
+ :body => post_body,
1898
+ :auth_names => auth_names,
1899
+ :return_type => return_type
1900
+ )
1901
+
1902
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1903
+ if @api_client.config.debugging
1904
+ @api_client.config.logger.debug "API called: WebhookControllerApi#get_webhook_results_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1905
+ end
1906
+ return data, status_code, headers
1907
+ end
1908
+
1779
1909
  # Get count of unseen webhook results with error status
1780
1910
  # @param [Hash] opts the optional parameters
1781
1911
  # @return [UnseenErrorCountDto]
@@ -1890,6 +2020,62 @@ module MailSlurpClient
1890
2020
  return data, status_code, headers
1891
2021
  end
1892
2022
 
2023
+ # Redrive all webhook results that have failed status
2024
+ # Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload.
2025
+ # @param [Hash] opts the optional parameters
2026
+ # @return [WebhookRedriveAllResult]
2027
+ def redrive_all_webhook_results(opts = {})
2028
+ data, _status_code, _headers = redrive_all_webhook_results_with_http_info(opts)
2029
+ data
2030
+ end
2031
+
2032
+ # Redrive all webhook results that have failed status
2033
+ # Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload.
2034
+ # @param [Hash] opts the optional parameters
2035
+ # @return [Array<(WebhookRedriveAllResult, Integer, Hash)>] WebhookRedriveAllResult data, response status code and response headers
2036
+ def redrive_all_webhook_results_with_http_info(opts = {})
2037
+ if @api_client.config.debugging
2038
+ @api_client.config.logger.debug 'Calling API: WebhookControllerApi.redrive_all_webhook_results ...'
2039
+ end
2040
+ # resource path
2041
+ local_var_path = '/webhooks/results/redrive'
2042
+
2043
+ # query parameters
2044
+ query_params = opts[:query_params] || {}
2045
+
2046
+ # header parameters
2047
+ header_params = opts[:header_params] || {}
2048
+ # HTTP header 'Accept' (if needed)
2049
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
2050
+
2051
+ # form parameters
2052
+ form_params = opts[:form_params] || {}
2053
+
2054
+ # http body (model)
2055
+ post_body = opts[:body]
2056
+
2057
+ # return_type
2058
+ return_type = opts[:return_type] || 'WebhookRedriveAllResult'
2059
+
2060
+ # auth_names
2061
+ auth_names = opts[:auth_names] || ['API_KEY']
2062
+
2063
+ new_options = opts.merge(
2064
+ :header_params => header_params,
2065
+ :query_params => query_params,
2066
+ :form_params => form_params,
2067
+ :body => post_body,
2068
+ :auth_names => auth_names,
2069
+ :return_type => return_type
2070
+ )
2071
+
2072
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2073
+ if @api_client.config.debugging
2074
+ @api_client.config.logger.debug "API called: WebhookControllerApi#redrive_all_webhook_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2075
+ end
2076
+ return data, status_code, headers
2077
+ end
2078
+
1893
2079
  # Get a webhook result and try to resend the original webhook payload
1894
2080
  # Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method.
1895
2081
  # @param webhook_result_id [String] Webhook Result ID
@@ -17,10 +17,10 @@ module MailSlurpClient
17
17
  class AliasProjection
18
18
  attr_accessor :inbox_id
19
19
 
20
- attr_accessor :email_address
21
-
22
20
  attr_accessor :user_id
23
21
 
22
+ attr_accessor :email_address
23
+
24
24
  attr_accessor :use_threads
25
25
 
26
26
  attr_accessor :created_at
@@ -35,8 +35,8 @@ module MailSlurpClient
35
35
  def self.attribute_map
36
36
  {
37
37
  :'inbox_id' => :'inboxId',
38
- :'email_address' => :'emailAddress',
39
38
  :'user_id' => :'userId',
39
+ :'email_address' => :'emailAddress',
40
40
  :'use_threads' => :'useThreads',
41
41
  :'created_at' => :'createdAt',
42
42
  :'updated_at' => :'updatedAt',
@@ -49,8 +49,8 @@ module MailSlurpClient
49
49
  def self.openapi_types
50
50
  {
51
51
  :'inbox_id' => :'String',
52
- :'email_address' => :'String',
53
52
  :'user_id' => :'String',
53
+ :'email_address' => :'String',
54
54
  :'use_threads' => :'Boolean',
55
55
  :'created_at' => :'DateTime',
56
56
  :'updated_at' => :'DateTime',
@@ -84,14 +84,14 @@ module MailSlurpClient
84
84
  self.inbox_id = attributes[:'inbox_id']
85
85
  end
86
86
 
87
- if attributes.key?(:'email_address')
88
- self.email_address = attributes[:'email_address']
89
- end
90
-
91
87
  if attributes.key?(:'user_id')
92
88
  self.user_id = attributes[:'user_id']
93
89
  end
94
90
 
91
+ if attributes.key?(:'email_address')
92
+ self.email_address = attributes[:'email_address']
93
+ end
94
+
95
95
  if attributes.key?(:'use_threads')
96
96
  self.use_threads = attributes[:'use_threads']
97
97
  end
@@ -121,14 +121,14 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
122
122
  end
123
123
 
124
- if @email_address.nil?
125
- invalid_properties.push('invalid value for "email_address", email_address 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
131
127
 
128
+ if @email_address.nil?
129
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
+ end
131
+
132
132
  if @created_at.nil?
133
133
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
134
  end
@@ -148,8 +148,8 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @inbox_id.nil?
151
- return false if @email_address.nil?
152
151
  return false if @user_id.nil?
152
+ return false if @email_address.nil?
153
153
  return false if @created_at.nil?
154
154
  return false if @updated_at.nil?
155
155
  return false if @id.nil?
@@ -162,8 +162,8 @@ module MailSlurpClient
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
164
  inbox_id == o.inbox_id &&
165
- email_address == o.email_address &&
166
165
  user_id == o.user_id &&
166
+ email_address == o.email_address &&
167
167
  use_threads == o.use_threads &&
168
168
  created_at == o.created_at &&
169
169
  updated_at == o.updated_at &&
@@ -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
- [inbox_id, email_address, user_id, use_threads, created_at, updated_at, name, id].hash
183
+ [inbox_id, user_id, email_address, use_threads, created_at, updated_at, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -30,6 +30,8 @@ module MailSlurpClient
30
30
 
31
31
  attr_accessor :name
32
32
 
33
+ attr_accessor :inbox_id
34
+
33
35
  attr_accessor :created_at
34
36
 
35
37
  attr_accessor :updated_at
@@ -45,6 +47,7 @@ module MailSlurpClient
45
47
  :'content_length' => :'contentLength',
46
48
  :'content_id' => :'contentId',
47
49
  :'name' => :'name',
50
+ :'inbox_id' => :'inboxId',
48
51
  :'created_at' => :'createdAt',
49
52
  :'updated_at' => :'updatedAt'
50
53
  }
@@ -61,6 +64,7 @@ module MailSlurpClient
61
64
  :'content_length' => :'Integer',
62
65
  :'content_id' => :'String',
63
66
  :'name' => :'String',
67
+ :'inbox_id' => :'String',
64
68
  :'created_at' => :'DateTime',
65
69
  :'updated_at' => :'DateTime'
66
70
  }
@@ -119,6 +123,10 @@ module MailSlurpClient
119
123
  self.name = attributes[:'name']
120
124
  end
121
125
 
126
+ if attributes.key?(:'inbox_id')
127
+ self.inbox_id = attributes[:'inbox_id']
128
+ end
129
+
122
130
  if attributes.key?(:'created_at')
123
131
  self.created_at = attributes[:'created_at']
124
132
  end
@@ -174,6 +182,7 @@ module MailSlurpClient
174
182
  content_length == o.content_length &&
175
183
  content_id == o.content_id &&
176
184
  name == o.name &&
185
+ inbox_id == o.inbox_id &&
177
186
  created_at == o.created_at &&
178
187
  updated_at == o.updated_at
179
188
  end
@@ -187,7 +196,7 @@ module MailSlurpClient
187
196
  # Calculates hash code according to all attributes.
188
197
  # @return [Integer] Hash code
189
198
  def hash
190
- [id, attachment_id, bucket, user_id, content_type, content_length, content_id, name, created_at, updated_at].hash
199
+ [id, attachment_id, bucket, user_id, content_type, content_length, content_id, name, inbox_id, created_at, updated_at].hash
191
200
  end
192
201
 
193
202
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
+ attr_accessor :subject
19
+
18
20
  attr_accessor :sender
19
21
 
20
22
  attr_accessor :bounce_type
@@ -23,18 +25,16 @@ module MailSlurpClient
23
25
 
24
26
  attr_accessor :created_at
25
27
 
26
- attr_accessor :subject
27
-
28
28
  attr_accessor :id
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
+ :'subject' => :'subject',
33
34
  :'sender' => :'sender',
34
35
  :'bounce_type' => :'bounceType',
35
36
  :'bounce_mta' => :'bounceMta',
36
37
  :'created_at' => :'createdAt',
37
- :'subject' => :'subject',
38
38
  :'id' => :'id'
39
39
  }
40
40
  end
@@ -42,11 +42,11 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
+ :'subject' => :'String',
45
46
  :'sender' => :'String',
46
47
  :'bounce_type' => :'String',
47
48
  :'bounce_mta' => :'String',
48
49
  :'created_at' => :'DateTime',
49
- :'subject' => :'String',
50
50
  :'id' => :'String'
51
51
  }
52
52
  end
@@ -54,9 +54,9 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
+ :'subject',
57
58
  :'bounce_type',
58
59
  :'bounce_mta',
59
- :'subject',
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,10 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'subject')
79
+ self.subject = attributes[:'subject']
80
+ end
81
+
78
82
  if attributes.key?(:'sender')
79
83
  self.sender = attributes[:'sender']
80
84
  end
@@ -91,10 +95,6 @@ module MailSlurpClient
91
95
  self.created_at = attributes[:'created_at']
92
96
  end
93
97
 
94
- if attributes.key?(:'subject')
95
- self.subject = attributes[:'subject']
96
- end
97
-
98
98
  if attributes.key?(:'id')
99
99
  self.id = attributes[:'id']
100
100
  end
@@ -128,11 +128,11 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
+ subject == o.subject &&
131
132
  sender == o.sender &&
132
133
  bounce_type == o.bounce_type &&
133
134
  bounce_mta == o.bounce_mta &&
134
135
  created_at == o.created_at &&
135
- subject == o.subject &&
136
136
  id == o.id
137
137
  end
138
138
 
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Integer] Hash code
147
147
  def hash
148
- [sender, bounce_type, bounce_mta, created_at, subject, id].hash
148
+ [subject, sender, bounce_type, bounce_mta, created_at, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -96,10 +96,10 @@ module MailSlurpClient
96
96
  # A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts.
97
97
  attr_accessor :body_part_content_types
98
98
 
99
- attr_accessor :html
100
-
101
99
  attr_accessor :xamp_html
102
100
 
101
+ attr_accessor :html
102
+
103
103
  # Attribute mapping from ruby-style variable name to JSON key.
104
104
  def self.attribute_map
105
105
  {
@@ -131,8 +131,8 @@ module MailSlurpClient
131
131
  :'team_access' => :'teamAccess',
132
132
  :'is_x_amp_html' => :'isXAmpHtml',
133
133
  :'body_part_content_types' => :'bodyPartContentTypes',
134
- :'html' => :'html',
135
- :'xamp_html' => :'xampHtml'
134
+ :'xamp_html' => :'xampHtml',
135
+ :'html' => :'html'
136
136
  }
137
137
  end
138
138
 
@@ -167,8 +167,8 @@ module MailSlurpClient
167
167
  :'team_access' => :'Boolean',
168
168
  :'is_x_amp_html' => :'Boolean',
169
169
  :'body_part_content_types' => :'Array<String>',
170
- :'html' => :'Boolean',
171
- :'xamp_html' => :'Boolean'
170
+ :'xamp_html' => :'Boolean',
171
+ :'html' => :'Boolean'
172
172
  }
173
173
  end
174
174
 
@@ -339,13 +339,13 @@ module MailSlurpClient
339
339
  end
340
340
  end
341
341
 
342
- if attributes.key?(:'html')
343
- self.html = attributes[:'html']
344
- end
345
-
346
342
  if attributes.key?(:'xamp_html')
347
343
  self.xamp_html = attributes[:'xamp_html']
348
344
  end
345
+
346
+ if attributes.key?(:'html')
347
+ self.html = attributes[:'html']
348
+ end
349
349
  end
350
350
 
351
351
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -434,8 +434,8 @@ module MailSlurpClient
434
434
  team_access == o.team_access &&
435
435
  is_x_amp_html == o.is_x_amp_html &&
436
436
  body_part_content_types == o.body_part_content_types &&
437
- html == o.html &&
438
- xamp_html == o.xamp_html
437
+ xamp_html == o.xamp_html &&
438
+ html == o.html
439
439
  end
440
440
 
441
441
  # @see the `==` method
@@ -447,7 +447,7 @@ module MailSlurpClient
447
447
  # Calculates hash code according to all attributes.
448
448
  # @return [Integer] Hash code
449
449
  def hash
450
- [id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, html, xamp_html].hash
450
+ [id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, xamp_html, html].hash
451
451
  end
452
452
 
453
453
  # Builds the object from hash