mailslurp_client 11.9.7 → 11.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client.rb +4 -2
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +1 -1
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +130 -1
  5. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +1 -1
  6. data/lib/mailslurp_client/api/common_actions_controller_api.rb +1 -1
  7. data/lib/mailslurp_client/api/contact_controller_api.rb +1 -1
  8. data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
  9. data/lib/mailslurp_client/api/email_controller_api.rb +7 -7
  10. data/lib/mailslurp_client/api/expired_controller_api.rb +1 -1
  11. data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
  12. data/lib/mailslurp_client/api/group_controller_api.rb +1 -1
  13. data/lib/mailslurp_client/api/inbox_controller_api.rb +61 -1
  14. data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
  15. data/lib/mailslurp_client/api/missed_email_controller_api.rb +1 -1
  16. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +1 -1
  17. data/lib/mailslurp_client/api/template_controller_api.rb +1 -1
  18. data/lib/mailslurp_client/api/wait_for_controller_api.rb +1 -1
  19. data/lib/mailslurp_client/api/webhook_controller_api.rb +13 -6
  20. data/lib/mailslurp_client/api_client.rb +1 -1
  21. data/lib/mailslurp_client/api_error.rb +1 -1
  22. data/lib/mailslurp_client/configuration.rb +1 -1
  23. data/lib/mailslurp_client/models/{webhook_payload.rb → abstract_webhook_payload.rb} +22 -110
  24. data/lib/mailslurp_client/models/alias_dto.rb +1 -1
  25. data/lib/mailslurp_client/models/alias_projection.rb +1 -1
  26. data/lib/mailslurp_client/models/attachment_entity.rb +289 -0
  27. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  28. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  29. data/lib/mailslurp_client/models/bulk_send_email_options.rb +1 -1
  30. data/lib/mailslurp_client/models/contact_dto.rb +11 -2
  31. data/lib/mailslurp_client/models/contact_projection.rb +1 -1
  32. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  33. data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
  34. data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
  35. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  36. data/lib/mailslurp_client/models/create_group_options.rb +1 -1
  37. data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -1
  38. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  39. data/lib/mailslurp_client/models/create_webhook_options.rb +46 -2
  40. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  41. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -1
  42. data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
  43. data/lib/mailslurp_client/models/dns_lookup_result.rb +1 -1
  44. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  45. data/lib/mailslurp_client/models/domain_dto.rb +1 -1
  46. data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
  47. data/lib/mailslurp_client/models/domain_preview.rb +1 -1
  48. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  49. data/lib/mailslurp_client/models/email.rb +1 -1
  50. data/lib/mailslurp_client/models/email_analysis.rb +1 -1
  51. data/lib/mailslurp_client/models/email_content_match_result.rb +1 -1
  52. data/lib/mailslurp_client/models/email_preview.rb +1 -1
  53. data/lib/mailslurp_client/models/email_projection.rb +1 -1
  54. data/lib/mailslurp_client/models/email_text_lines_result.rb +1 -1
  55. data/lib/mailslurp_client/models/email_verification_result.rb +1 -1
  56. data/lib/mailslurp_client/models/expiration_defaults.rb +1 -1
  57. data/lib/mailslurp_client/models/expired_inbox_dto.rb +1 -1
  58. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +1 -1
  59. data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
  60. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -1
  61. data/lib/mailslurp_client/models/group_dto.rb +1 -1
  62. data/lib/mailslurp_client/models/group_projection.rb +1 -1
  63. data/lib/mailslurp_client/models/html_validation_result.rb +1 -1
  64. data/lib/mailslurp_client/models/inbox.rb +1 -1
  65. data/lib/mailslurp_client/models/inbox_projection.rb +1 -1
  66. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  67. data/lib/mailslurp_client/models/match_option.rb +1 -1
  68. data/lib/mailslurp_client/models/match_options.rb +1 -1
  69. data/lib/mailslurp_client/models/missed_email.rb +1 -1
  70. data/lib/mailslurp_client/models/missed_email_projection.rb +1 -1
  71. data/lib/mailslurp_client/models/model_alias.rb +1 -1
  72. data/lib/mailslurp_client/models/name_server_record.rb +1 -1
  73. data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -1
  74. data/lib/mailslurp_client/models/page_alias.rb +1 -1
  75. data/lib/mailslurp_client/models/page_attachment_entity.rb +299 -0
  76. data/lib/mailslurp_client/models/page_contact_projection.rb +1 -1
  77. data/lib/mailslurp_client/models/page_email_preview.rb +1 -1
  78. data/lib/mailslurp_client/models/page_email_projection.rb +1 -1
  79. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +1 -1
  80. data/lib/mailslurp_client/models/page_group_projection.rb +1 -1
  81. data/lib/mailslurp_client/models/page_inbox_projection.rb +1 -1
  82. data/lib/mailslurp_client/models/page_missed_email_projection.rb +1 -1
  83. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +1 -1
  84. data/lib/mailslurp_client/models/page_sent_email_projection.rb +1 -1
  85. data/lib/mailslurp_client/models/page_template_projection.rb +1 -1
  86. data/lib/mailslurp_client/models/page_thread_projection.rb +1 -1
  87. data/lib/mailslurp_client/models/page_webhook_projection.rb +1 -1
  88. data/lib/mailslurp_client/models/pageable.rb +1 -1
  89. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  90. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +1 -1
  91. data/lib/mailslurp_client/models/reply_to_email_options.rb +1 -1
  92. data/lib/mailslurp_client/models/send_email_options.rb +1 -1
  93. data/lib/mailslurp_client/models/sent_email_dto.rb +1 -1
  94. data/lib/mailslurp_client/models/sent_email_projection.rb +1 -1
  95. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  96. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -1
  97. data/lib/mailslurp_client/models/sort.rb +1 -1
  98. data/lib/mailslurp_client/models/template_dto.rb +1 -1
  99. data/lib/mailslurp_client/models/template_projection.rb +1 -1
  100. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  101. data/lib/mailslurp_client/models/thread_projection.rb +1 -1
  102. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  103. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  104. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  105. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
  106. data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
  107. data/lib/mailslurp_client/models/upload_attachment_options.rb +1 -1
  108. data/lib/mailslurp_client/models/validation_dto.rb +1 -1
  109. data/lib/mailslurp_client/models/validation_message.rb +1 -1
  110. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  111. data/lib/mailslurp_client/models/wait_for_conditions.rb +1 -1
  112. data/lib/mailslurp_client/models/webhook_dto.rb +23 -2
  113. data/lib/mailslurp_client/models/webhook_projection.rb +1 -1
  114. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -1
  115. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
  116. data/lib/mailslurp_client/models/webhook_test_result.rb +1 -1
  117. data/lib/mailslurp_client/version.rb +2 -2
  118. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02a8ff40a73da5d30250d02a5bfed53138036c65229f98b7b08aff3cee2a1333
4
- data.tar.gz: f60df01fa25d8c5f882640ec7897382ecd109df7c4ef58e980c12472ff97c9d8
3
+ metadata.gz: 41fe85cd74e85ccdd84615c7a3eb8a2169ef54fc73c49f8c8c3ba2f614a4b15e
4
+ data.tar.gz: 11c152cc56e56ff3d833a0d0d0c8cd43849c8c2fa8d1e1a0577b87ca974083a7
5
5
  SHA512:
6
- metadata.gz: 6944996acaa881427c510bf699fcf4451bb1e4632761b3c0b62247f6856c488e8b72ad7c78f666df92f4bbe8c54c73953c811db35defb30b8c955cf79da374dc
7
- data.tar.gz: c157b393de6c93f30fcfd7ebbdb8d3a92c0a44c0a5bffe44f3665ad80709d6569b43fc76131f71f8c8ed18ebe81aa83f9d33dd9bde1706ed2eeb0970bee2b3cf
6
+ metadata.gz: bae501eadf151c3aaea83cf9a28d7a8e266e9cf898f8a00e9b81adb8983641924371334c0ec817cf6191873c3af61776bc2f3b10c9ab8d9b2fe2fd5e265db34f
7
+ data.tar.gz: a30bd45b40d36e4a46775a5eea20d5c1243b1ed3b4e60ebee4b1f5d526b0f087eb9c49c608622f2a2d60da88300ff3bf3578cd09d4233d5ca073b3ce03cda2eb
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -17,8 +17,10 @@ require 'mailslurp_client/version'
17
17
  require 'mailslurp_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'mailslurp_client/models/abstract_webhook_payload'
20
21
  require 'mailslurp_client/models/alias_dto'
21
22
  require 'mailslurp_client/models/alias_projection'
23
+ require 'mailslurp_client/models/attachment_entity'
22
24
  require 'mailslurp_client/models/attachment_meta_data'
23
25
  require 'mailslurp_client/models/basic_auth_options'
24
26
  require 'mailslurp_client/models/bulk_send_email_options'
@@ -67,6 +69,7 @@ require 'mailslurp_client/models/model_alias'
67
69
  require 'mailslurp_client/models/name_server_record'
68
70
  require 'mailslurp_client/models/organization_inbox_projection'
69
71
  require 'mailslurp_client/models/page_alias'
72
+ require 'mailslurp_client/models/page_attachment_entity'
70
73
  require 'mailslurp_client/models/page_contact_projection'
71
74
  require 'mailslurp_client/models/page_email_preview'
72
75
  require 'mailslurp_client/models/page_email_projection'
@@ -104,7 +107,6 @@ require 'mailslurp_client/models/validation_message'
104
107
  require 'mailslurp_client/models/verify_email_address_options'
105
108
  require 'mailslurp_client/models/wait_for_conditions'
106
109
  require 'mailslurp_client/models/webhook_dto'
107
- require 'mailslurp_client/models/webhook_payload'
108
110
  require 'mailslurp_client/models/webhook_projection'
109
111
  require 'mailslurp_client/models/webhook_test_request'
110
112
  require 'mailslurp_client/models/webhook_test_response'
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -19,6 +19,66 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Delete an attachment
23
+ # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
24
+ # @param attachment_id [String] ID of attachment
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def delete_attachment(attachment_id, opts = {})
28
+ delete_attachment_with_http_info(attachment_id, opts)
29
+ nil
30
+ end
31
+
32
+ # Delete an attachment
33
+ # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
34
+ # @param attachment_id [String] ID of attachment
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def delete_attachment_with_http_info(attachment_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.delete_attachment ...'
40
+ end
41
+ # verify the required parameter 'attachment_id' is set
42
+ if @api_client.config.client_side_validation && attachment_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.delete_attachment"
44
+ end
45
+ # resource path
46
+ local_var_path = '/attachments/{attachmentId}'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body]
59
+
60
+ # return_type
61
+ return_type = opts[:return_type]
62
+
63
+ # auth_names
64
+ auth_names = opts[:auth_names] || ['API_KEY']
65
+
66
+ new_options = opts.merge(
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#delete_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
22
82
  # Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.
23
83
  # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
24
84
  # @param attachment_id [String] ID of attachment
@@ -205,6 +265,75 @@ module MailSlurpClient
205
265
  return data, status_code, headers
206
266
  end
207
267
 
268
+ # Get email attachments
269
+ # 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.
270
+ # @param [Hash] opts the optional parameters
271
+ # @option opts [Integer] :page Optional page index event list pagination (default to 0)
272
+ # @option opts [Integer] :size Optional page size event list pagination (default to 20)
273
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
274
+ # @return [PageAttachmentEntity]
275
+ def get_attachments(opts = {})
276
+ data, _status_code, _headers = get_attachments_with_http_info(opts)
277
+ data
278
+ end
279
+
280
+ # Get email attachments
281
+ # 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.
282
+ # @param [Hash] opts the optional parameters
283
+ # @option opts [Integer] :page Optional page index event list pagination
284
+ # @option opts [Integer] :size Optional page size event list pagination
285
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
286
+ # @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
287
+ def get_attachments_with_http_info(opts = {})
288
+ if @api_client.config.debugging
289
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachments ...'
290
+ end
291
+ allowable_values = ["ASC", "DESC"]
292
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
293
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
294
+ end
295
+ # resource path
296
+ local_var_path = '/attachments'
297
+
298
+ # query parameters
299
+ query_params = opts[:query_params] || {}
300
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
301
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
302
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
303
+
304
+ # header parameters
305
+ header_params = opts[:header_params] || {}
306
+ # HTTP header 'Accept' (if needed)
307
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
+
309
+ # form parameters
310
+ form_params = opts[:form_params] || {}
311
+
312
+ # http body (model)
313
+ post_body = opts[:body]
314
+
315
+ # return_type
316
+ return_type = opts[:return_type] || 'PageAttachmentEntity'
317
+
318
+ # auth_names
319
+ auth_names = opts[:auth_names] || ['API_KEY']
320
+
321
+ new_options = opts.merge(
322
+ :header_params => header_params,
323
+ :query_params => query_params,
324
+ :form_params => form_params,
325
+ :body => post_body,
326
+ :auth_names => auth_names,
327
+ :return_type => return_type
328
+ )
329
+
330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
208
337
  # Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.
209
338
  # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
210
339
  # @param upload_options [UploadAttachmentOptions] uploadOptions
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -413,8 +413,8 @@ module MailSlurpClient
413
413
  # @param email_id [String] ID of email
414
414
  # @param [Hash] opts the optional parameters
415
415
  # @return [Array<AttachmentMetaData>]
416
- def get_attachments(email_id, opts = {})
417
- data, _status_code, _headers = get_attachments_with_http_info(email_id, opts)
416
+ def get_attachments1(email_id, opts = {})
417
+ data, _status_code, _headers = get_attachments1_with_http_info(email_id, opts)
418
418
  data
419
419
  end
420
420
 
@@ -423,13 +423,13 @@ module MailSlurpClient
423
423
  # @param email_id [String] ID of email
424
424
  # @param [Hash] opts the optional parameters
425
425
  # @return [Array<(Array<AttachmentMetaData>, Integer, Hash)>] Array<AttachmentMetaData> data, response status code and response headers
426
- def get_attachments_with_http_info(email_id, opts = {})
426
+ def get_attachments1_with_http_info(email_id, opts = {})
427
427
  if @api_client.config.debugging
428
- @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_attachments ...'
428
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_attachments1 ...'
429
429
  end
430
430
  # verify the required parameter 'email_id' is set
431
431
  if @api_client.config.client_side_validation && email_id.nil?
432
- fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_attachments"
432
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_attachments1"
433
433
  end
434
434
  # resource path
435
435
  local_var_path = '/emails/{emailId}/attachments'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
@@ -465,7 +465,7 @@ module MailSlurpClient
465
465
 
466
466
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
467
467
  if @api_client.config.debugging
468
- @api_client.config.logger.debug "API called: EmailControllerApi#get_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
468
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_attachments1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
469
469
  end
470
470
  return data, status_code, headers
471
471
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1032,6 +1032,66 @@ module MailSlurpClient
1032
1032
  return data, status_code, headers
1033
1033
  end
1034
1034
 
1035
+ # Send a test email to inbox
1036
+ # Send an inbox a test email to test email receiving is working
1037
+ # @param inbox_id [String] inboxId
1038
+ # @param [Hash] opts the optional parameters
1039
+ # @return [nil]
1040
+ def send_test_email(inbox_id, opts = {})
1041
+ send_test_email_with_http_info(inbox_id, opts)
1042
+ nil
1043
+ end
1044
+
1045
+ # Send a test email to inbox
1046
+ # Send an inbox a test email to test email receiving is working
1047
+ # @param inbox_id [String] inboxId
1048
+ # @param [Hash] opts the optional parameters
1049
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1050
+ def send_test_email_with_http_info(inbox_id, opts = {})
1051
+ if @api_client.config.debugging
1052
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.send_test_email ...'
1053
+ end
1054
+ # verify the required parameter 'inbox_id' is set
1055
+ if @api_client.config.client_side_validation && inbox_id.nil?
1056
+ fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.send_test_email"
1057
+ end
1058
+ # resource path
1059
+ local_var_path = '/inboxes/{inboxId}/send-test-email'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
1060
+
1061
+ # query parameters
1062
+ query_params = opts[:query_params] || {}
1063
+
1064
+ # header parameters
1065
+ header_params = opts[:header_params] || {}
1066
+
1067
+ # form parameters
1068
+ form_params = opts[:form_params] || {}
1069
+
1070
+ # http body (model)
1071
+ post_body = opts[:body]
1072
+
1073
+ # return_type
1074
+ return_type = opts[:return_type]
1075
+
1076
+ # auth_names
1077
+ auth_names = opts[:auth_names] || ['API_KEY']
1078
+
1079
+ new_options = opts.merge(
1080
+ :header_params => header_params,
1081
+ :query_params => query_params,
1082
+ :form_params => form_params,
1083
+ :body => post_body,
1084
+ :auth_names => auth_names,
1085
+ :return_type => return_type
1086
+ )
1087
+
1088
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1089
+ if @api_client.config.debugging
1090
+ @api_client.config.logger.debug "API called: InboxControllerApi#send_test_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1091
+ end
1092
+ return data, status_code, headers
1093
+ end
1094
+
1035
1095
  # Set inbox favourited state
1036
1096
  # Set and return new favourite state for an inbox
1037
1097
  # @param inbox_id [String] inboxId
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7