mailslurp_client 15.9.0 → 15.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +74 -0
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +4 -4
  4. data/lib/mailslurp_client/api/email_controller_api.rb +68 -3
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +138 -0
  6. data/lib/mailslurp_client/api/missed_email_controller_api.rb +56 -0
  7. data/lib/mailslurp_client/api/phone_controller_api.rb +487 -0
  8. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +73 -0
  9. data/lib/mailslurp_client/api/sms_controller_api.rb +286 -0
  10. data/lib/mailslurp_client/api/template_controller_api.rb +124 -0
  11. data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
  12. data/lib/mailslurp_client/api/webhook_controller_api.rb +2 -2
  13. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  14. data/lib/mailslurp_client/models/alias_projection.rb +31 -31
  15. data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
  16. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  17. data/lib/mailslurp_client/models/bounce_projection.rb +31 -4
  18. data/lib/mailslurp_client/models/{bounce_recipient.rb → bounce_recipient_projection.rb} +35 -36
  19. data/lib/mailslurp_client/models/bounced_email_dto.rb +19 -1
  20. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +37 -1
  21. data/lib/mailslurp_client/models/contact_projection.rb +18 -13
  22. data/lib/mailslurp_client/models/create_emergency_address_options.rb +324 -0
  23. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  24. data/lib/mailslurp_client/models/email_html_dto.rb +215 -0
  25. data/lib/mailslurp_client/models/email_preview.rb +5 -0
  26. data/lib/mailslurp_client/models/email_projection.rb +29 -19
  27. data/lib/mailslurp_client/models/emergency_address.rb +408 -0
  28. data/lib/mailslurp_client/models/emergency_address_dto.rb +273 -0
  29. data/lib/mailslurp_client/models/empty_response_dto.rb +206 -0
  30. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/inbox_by_name_result.rb +221 -0
  32. data/lib/mailslurp_client/models/inbox_dto.rb +11 -1
  33. data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
  34. data/lib/mailslurp_client/models/missed_email.rb +37 -1
  35. data/lib/mailslurp_client/models/organization_inbox_projection.rb +5 -0
  36. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  37. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  38. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  39. data/lib/mailslurp_client/models/page_bounced_recipients.rb +23 -23
  40. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  41. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  42. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  43. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  44. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  45. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  46. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  47. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  48. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  49. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  50. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  51. data/lib/mailslurp_client/models/page_phone_number_projection.rb +308 -0
  52. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  53. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +344 -0
  54. data/lib/mailslurp_client/models/page_sms_projection.rb +308 -0
  55. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  56. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  57. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  58. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  59. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  60. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  61. data/lib/mailslurp_client/models/phone_number_dto.rb +347 -0
  62. data/lib/mailslurp_client/models/phone_number_projection.rb +302 -0
  63. data/lib/mailslurp_client/models/phone_plan_dto.rb +287 -0
  64. data/lib/mailslurp_client/models/send_with_queue_result.rb +318 -0
  65. data/lib/mailslurp_client/models/sent_email_projection.rb +18 -13
  66. data/lib/mailslurp_client/models/sms_match_option.rb +289 -0
  67. data/lib/mailslurp_client/models/sms_message.rb +318 -0
  68. data/lib/mailslurp_client/models/sms_preview.rb +267 -0
  69. data/lib/mailslurp_client/models/sms_projection.rb +282 -0
  70. data/lib/mailslurp_client/models/template_preview.rb +211 -0
  71. data/lib/mailslurp_client/models/template_projection.rb +18 -18
  72. data/lib/mailslurp_client/models/thread_projection.rb +36 -36
  73. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  74. data/lib/mailslurp_client/models/user_info_dto.rb +334 -0
  75. data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +371 -0
  76. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
  77. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
  78. data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
  79. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
  80. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
  81. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  82. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +7 -2
  83. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
  84. data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
  85. data/lib/mailslurp_client/models/webhook_result_dto.rb +7 -2
  86. data/lib/mailslurp_client/version.rb +1 -1
  87. data/lib/mailslurp_client.rb +24 -1
  88. metadata +26 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a734643ad9ca1c4f77074ebd209fcca5ef43e4a9a870c6a541b15e1dbbd2c3d
4
- data.tar.gz: 40694a7bb03bf6a5ee39efc0286d68d59baf53fc4e352a5d59c71fe4b8bb70b5
3
+ metadata.gz: 32eea135d18b8fd70fc05ec1a964019736c8a2e4f8578cd76b48ed87426fed99
4
+ data.tar.gz: c5e7f4bf1cc835fbe7e7d5fcfae0199bc1b3640f304c1b99ac63dc2f3f429453
5
5
  SHA512:
6
- metadata.gz: b133ddaf383186a02e4cf175baa5b35c340ffb5966e93d60c34b87ff435f4c07bf73ea66d19f28fefd0295d09e57de7cbcbbc0987bd435095b1cf693bfd1f96b
7
- data.tar.gz: b99e848b715bcc2083515f85531827a087c8c7d41b08ce68937a7482a3e0dddc484f55c0a0c7aa50b8869a40547fb5d57c7495c64824b8e914c2b8e4da2eeb01
6
+ metadata.gz: b3a33d9811ee03ce418624bf4ed12ef03b18c268c842f53bed6d161942a142ae2e8f1663002fd33c654445da6cce05082b4c1be1a861619c662c4f6d335ed263
7
+ data.tar.gz: 456e9cdb58128e69371419eba8a666b344447cf02f091559a74965a1c62a2e320823665c4b22c86a16c60173e29d36166728d1fd3a795c2b86d157ebdf5c7fc8
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MailSlurpClient
16
+ class ApiUserControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [UserInfoDto]
24
+ def get_user_info(opts = {})
25
+ data, _status_code, _headers = get_user_info_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(UserInfoDto, Integer, Hash)>] UserInfoDto data, response status code and response headers
31
+ def get_user_info_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: ApiUserControllerApi.get_user_info ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/user/info'
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] || 'UserInfoDto'
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_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ end
74
+ end
@@ -378,8 +378,8 @@ module MailSlurpClient
378
378
  # Get email attachments
379
379
  # Get all attachments in paginated response. Each entity contains meta data for the attachment such as `name` and `content-type`. Use the `attachmentId` and the download endpoints to get the file contents.
380
380
  # @param [Hash] opts the optional parameters
381
- # @option opts [Integer] :page Optional page index event list pagination (default to 0)
382
- # @option opts [Integer] :size Optional page size event list pagination (default to 20)
381
+ # @option opts [Integer] :page Optional page index for list pagination (default to 0)
382
+ # @option opts [Integer] :size Optional page size for list pagination (default to 20)
383
383
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
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
@@ -393,8 +393,8 @@ module MailSlurpClient
393
393
  # Get email attachments
394
394
  # Get all attachments in paginated response. Each entity contains meta data for the attachment such as &#x60;name&#x60; and &#x60;content-type&#x60;. Use the &#x60;attachmentId&#x60; and the download endpoints to get the file contents.
395
395
  # @param [Hash] opts the optional parameters
396
- # @option opts [Integer] :page Optional page index event list pagination
397
- # @option opts [Integer] :size Optional page size event list pagination
396
+ # @option opts [Integer] :page Optional page index for list pagination
397
+ # @option opts [Integer] :size Optional page size for list pagination
398
398
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
399
399
  # @option opts [String] :file_name_filter Optional file name and content type search filter
400
400
  # @option opts [DateTime] :since Filter by created at after the given timestamp
@@ -856,7 +856,7 @@ module MailSlurpClient
856
856
  end
857
857
 
858
858
  # Get email content as HTML. For displaying emails in browser context.
859
- # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`
859
+ # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`. Returns content-type `text/html;charset=utf-8` so you must call expecting that content response not JSON. For JSON response see the `getEmailHTMLJson` method.
860
860
  # @param email_id [String]
861
861
  # @param [Hash] opts the optional parameters
862
862
  # @option opts [Boolean] :decode (default to false)
@@ -867,7 +867,7 @@ module MailSlurpClient
867
867
  end
868
868
 
869
869
  # Get email content as HTML. For displaying emails in browser context.
870
- # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: &#x60;?apiKey&#x3D;xxx&#x60;
870
+ # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: &#x60;?apiKey&#x3D;xxx&#x60;. Returns content-type &#x60;text/html;charset&#x3D;utf-8&#x60; so you must call expecting that content response not JSON. For JSON response see the &#x60;getEmailHTMLJson&#x60; method.
871
871
  # @param email_id [String]
872
872
  # @param [Hash] opts the optional parameters
873
873
  # @option opts [Boolean] :decode
@@ -890,7 +890,7 @@ module MailSlurpClient
890
890
  # header parameters
891
891
  header_params = opts[:header_params] || {}
892
892
  # HTTP header 'Accept' (if needed)
893
- header_params['Accept'] = @api_client.select_header_accept(['text/html'])
893
+ header_params['Accept'] = @api_client.select_header_accept(['text/html;charset=utf-8', 'text/html'])
894
894
 
895
895
  # form parameters
896
896
  form_params = opts[:form_params] || {}
@@ -920,6 +920,71 @@ module MailSlurpClient
920
920
  return data, status_code, headers
921
921
  end
922
922
 
923
+ # Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content
924
+ # Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type `application/json;charset=utf-8` so you must call expecting that content response not JSON.
925
+ # @param email_id [String]
926
+ # @param [Hash] opts the optional parameters
927
+ # @option opts [Boolean] :decode (default to false)
928
+ # @return [EmailHtmlDto]
929
+ def get_email_html_json(email_id, opts = {})
930
+ data, _status_code, _headers = get_email_html_json_with_http_info(email_id, opts)
931
+ data
932
+ end
933
+
934
+ # Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content
935
+ # Retrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type &#x60;application/json;charset&#x3D;utf-8&#x60; so you must call expecting that content response not JSON.
936
+ # @param email_id [String]
937
+ # @param [Hash] opts the optional parameters
938
+ # @option opts [Boolean] :decode
939
+ # @return [Array<(EmailHtmlDto, Integer, Hash)>] EmailHtmlDto data, response status code and response headers
940
+ def get_email_html_json_with_http_info(email_id, opts = {})
941
+ if @api_client.config.debugging
942
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_html_json ...'
943
+ end
944
+ # verify the required parameter 'email_id' is set
945
+ if @api_client.config.client_side_validation && email_id.nil?
946
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_html_json"
947
+ end
948
+ # resource path
949
+ local_var_path = '/emails/{emailId}/html/json'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
950
+
951
+ # query parameters
952
+ query_params = opts[:query_params] || {}
953
+ query_params[:'decode'] = opts[:'decode'] if !opts[:'decode'].nil?
954
+
955
+ # header parameters
956
+ header_params = opts[:header_params] || {}
957
+ # HTTP header 'Accept' (if needed)
958
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
959
+
960
+ # form parameters
961
+ form_params = opts[:form_params] || {}
962
+
963
+ # http body (model)
964
+ post_body = opts[:body]
965
+
966
+ # return_type
967
+ return_type = opts[:return_type] || 'EmailHtmlDto'
968
+
969
+ # auth_names
970
+ auth_names = opts[:auth_names] || ['API_KEY']
971
+
972
+ new_options = opts.merge(
973
+ :header_params => header_params,
974
+ :query_params => query_params,
975
+ :form_params => form_params,
976
+ :body => post_body,
977
+ :auth_names => auth_names,
978
+ :return_type => return_type
979
+ )
980
+
981
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
982
+ if @api_client.config.debugging
983
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_email_html_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
984
+ end
985
+ return data, status_code, headers
986
+ end
987
+
923
988
  # Parse and return text from an email, stripping HTML and decoding encoded characters
924
989
  # Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors
925
990
  # @param email_id [String] ID of email to perform HTML query on
@@ -966,6 +966,69 @@ module MailSlurpClient
966
966
  return data, status_code, headers
967
967
  end
968
968
 
969
+ # Search for an inbox with the given name
970
+ # Get a inbox result by name
971
+ # @param name [String]
972
+ # @param [Hash] opts the optional parameters
973
+ # @return [InboxByNameResult]
974
+ def get_inbox_by_name(name, opts = {})
975
+ data, _status_code, _headers = get_inbox_by_name_with_http_info(name, opts)
976
+ data
977
+ end
978
+
979
+ # Search for an inbox with the given name
980
+ # Get a inbox result by name
981
+ # @param name [String]
982
+ # @param [Hash] opts the optional parameters
983
+ # @return [Array<(InboxByNameResult, Integer, Hash)>] InboxByNameResult data, response status code and response headers
984
+ def get_inbox_by_name_with_http_info(name, opts = {})
985
+ if @api_client.config.debugging
986
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_inbox_by_name ...'
987
+ end
988
+ # verify the required parameter 'name' is set
989
+ if @api_client.config.client_side_validation && name.nil?
990
+ fail ArgumentError, "Missing the required parameter 'name' when calling InboxControllerApi.get_inbox_by_name"
991
+ end
992
+ # resource path
993
+ local_var_path = '/inboxes/byName'
994
+
995
+ # query parameters
996
+ query_params = opts[:query_params] || {}
997
+ query_params[:'name'] = name
998
+
999
+ # header parameters
1000
+ header_params = opts[:header_params] || {}
1001
+ # HTTP header 'Accept' (if needed)
1002
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1003
+
1004
+ # form parameters
1005
+ form_params = opts[:form_params] || {}
1006
+
1007
+ # http body (model)
1008
+ post_body = opts[:body]
1009
+
1010
+ # return_type
1011
+ return_type = opts[:return_type] || 'InboxByNameResult'
1012
+
1013
+ # auth_names
1014
+ auth_names = opts[:auth_names] || ['API_KEY']
1015
+
1016
+ new_options = opts.merge(
1017
+ :header_params => header_params,
1018
+ :query_params => query_params,
1019
+ :form_params => form_params,
1020
+ :body => post_body,
1021
+ :auth_names => auth_names,
1022
+ :return_type => return_type
1023
+ )
1024
+
1025
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1026
+ if @api_client.config.debugging
1027
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_inbox_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1028
+ end
1029
+ return data, status_code, headers
1030
+ end
1031
+
969
1032
  # Get total inbox count
970
1033
  # @param [Hash] opts the optional parameters
971
1034
  # @return [CountDto]
@@ -1887,6 +1950,81 @@ module MailSlurpClient
1887
1950
  return data, status_code, headers
1888
1951
  end
1889
1952
 
1953
+ # Send email with queue
1954
+ # Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
1955
+ # @param inbox_id [String] ID of the inbox you want to send the email from
1956
+ # @param validate_before_enqueue [Boolean] Validate before adding to queue
1957
+ # @param send_email_options [SendEmailOptions]
1958
+ # @param [Hash] opts the optional parameters
1959
+ # @return [nil]
1960
+ def send_email_with_queue(inbox_id, validate_before_enqueue, send_email_options, opts = {})
1961
+ send_email_with_queue_with_http_info(inbox_id, validate_before_enqueue, send_email_options, opts)
1962
+ nil
1963
+ end
1964
+
1965
+ # Send email with queue
1966
+ # Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
1967
+ # @param inbox_id [String] ID of the inbox you want to send the email from
1968
+ # @param validate_before_enqueue [Boolean] Validate before adding to queue
1969
+ # @param send_email_options [SendEmailOptions]
1970
+ # @param [Hash] opts the optional parameters
1971
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1972
+ def send_email_with_queue_with_http_info(inbox_id, validate_before_enqueue, send_email_options, opts = {})
1973
+ if @api_client.config.debugging
1974
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.send_email_with_queue ...'
1975
+ end
1976
+ # verify the required parameter 'inbox_id' is set
1977
+ if @api_client.config.client_side_validation && inbox_id.nil?
1978
+ fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.send_email_with_queue"
1979
+ end
1980
+ # verify the required parameter 'validate_before_enqueue' is set
1981
+ if @api_client.config.client_side_validation && validate_before_enqueue.nil?
1982
+ fail ArgumentError, "Missing the required parameter 'validate_before_enqueue' when calling InboxControllerApi.send_email_with_queue"
1983
+ end
1984
+ # verify the required parameter 'send_email_options' is set
1985
+ if @api_client.config.client_side_validation && send_email_options.nil?
1986
+ fail ArgumentError, "Missing the required parameter 'send_email_options' when calling InboxControllerApi.send_email_with_queue"
1987
+ end
1988
+ # resource path
1989
+ local_var_path = '/inboxes/{inboxId}/with-queue'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
1990
+
1991
+ # query parameters
1992
+ query_params = opts[:query_params] || {}
1993
+ query_params[:'validateBeforeEnqueue'] = validate_before_enqueue
1994
+
1995
+ # header parameters
1996
+ header_params = opts[:header_params] || {}
1997
+ # HTTP header 'Content-Type'
1998
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1999
+
2000
+ # form parameters
2001
+ form_params = opts[:form_params] || {}
2002
+
2003
+ # http body (model)
2004
+ post_body = opts[:body] || @api_client.object_to_http_body(send_email_options)
2005
+
2006
+ # return_type
2007
+ return_type = opts[:return_type]
2008
+
2009
+ # auth_names
2010
+ auth_names = opts[:auth_names] || ['API_KEY']
2011
+
2012
+ new_options = opts.merge(
2013
+ :header_params => header_params,
2014
+ :query_params => query_params,
2015
+ :form_params => form_params,
2016
+ :body => post_body,
2017
+ :auth_names => auth_names,
2018
+ :return_type => return_type
2019
+ )
2020
+
2021
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2022
+ if @api_client.config.debugging
2023
+ @api_client.config.logger.debug "API called: InboxControllerApi#send_email_with_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2024
+ end
2025
+ return data, status_code, headers
2026
+ end
2027
+
1890
2028
  # Send email using an SMTP mail envelope and message body and return sent confirmation
1891
2029
  # Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY.
1892
2030
  # @param inbox_id [String] ID of the inbox you want to send the email from
@@ -180,6 +180,7 @@ module MailSlurpClient
180
180
  end
181
181
 
182
182
  # Get MissedEmail
183
+ # List emails that were missed due to plan limits.
183
184
  # @param missed_email_id [String]
184
185
  # @param [Hash] opts the optional parameters
185
186
  # @return [MissedEmail]
@@ -189,6 +190,7 @@ module MailSlurpClient
189
190
  end
190
191
 
191
192
  # Get MissedEmail
193
+ # List emails that were missed due to plan limits.
192
194
  # @param missed_email_id [String]
193
195
  # @param [Hash] opts the optional parameters
194
196
  # @return [Array<(MissedEmail, Integer, Hash)>] MissedEmail data, response status code and response headers
@@ -239,6 +241,60 @@ module MailSlurpClient
239
241
  return data, status_code, headers
240
242
  end
241
243
 
244
+ # Restore missed emails
245
+ # If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method.
246
+ # @param [Hash] opts the optional parameters
247
+ # @return [nil]
248
+ def restore_missed_emails(opts = {})
249
+ restore_missed_emails_with_http_info(opts)
250
+ nil
251
+ end
252
+
253
+ # Restore missed emails
254
+ # If emails were missed due to a plan limit they are saved as missed emails. If support team enables the canRestore flag these emails can be reload into your account using this method.
255
+ # @param [Hash] opts the optional parameters
256
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
257
+ def restore_missed_emails_with_http_info(opts = {})
258
+ if @api_client.config.debugging
259
+ @api_client.config.logger.debug 'Calling API: MissedEmailControllerApi.restore_missed_emails ...'
260
+ end
261
+ # resource path
262
+ local_var_path = '/missed-emails/restore'
263
+
264
+ # query parameters
265
+ query_params = opts[:query_params] || {}
266
+
267
+ # header parameters
268
+ header_params = opts[:header_params] || {}
269
+
270
+ # form parameters
271
+ form_params = opts[:form_params] || {}
272
+
273
+ # http body (model)
274
+ post_body = opts[:body]
275
+
276
+ # return_type
277
+ return_type = opts[:return_type]
278
+
279
+ # auth_names
280
+ auth_names = opts[:auth_names] || ['API_KEY']
281
+
282
+ new_options = opts.merge(
283
+ :header_params => header_params,
284
+ :query_params => query_params,
285
+ :form_params => form_params,
286
+ :body => post_body,
287
+ :auth_names => auth_names,
288
+ :return_type => return_type
289
+ )
290
+
291
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug "API called: MissedEmailControllerApi#restore_missed_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
294
+ end
295
+ return data, status_code, headers
296
+ end
297
+
242
298
  # Wait for Nth missed email
243
299
  # Wait for 0 based index missed email
244
300
  # @param index [Integer] Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index&#x3D;1