mailslurp_client 13.0.1 → 14.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/alias_controller_api.rb +19 -1
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +7 -1
  4. data/lib/mailslurp_client/api/bounce_controller_api.rb +13 -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 +45 -1
  7. data/lib/mailslurp_client/api/contact_controller_api.rb +7 -1
  8. data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
  9. data/lib/mailslurp_client/api/email_controller_api.rb +17 -5
  10. data/lib/mailslurp_client/api/expired_controller_api.rb +7 -1
  11. data/lib/mailslurp_client/api/export_controller_api.rb +1 -1
  12. data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
  13. data/lib/mailslurp_client/api/group_controller_api.rb +13 -1
  14. data/lib/mailslurp_client/api/inbox_controller_api.rb +111 -7
  15. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +7 -1
  16. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +7 -1
  17. data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
  18. data/lib/mailslurp_client/api/missed_email_controller_api.rb +94 -1
  19. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +25 -1
  20. data/lib/mailslurp_client/api/template_controller_api.rb +81 -7
  21. data/lib/mailslurp_client/api/tracking_controller_api.rb +7 -1
  22. data/lib/mailslurp_client/api/wait_for_controller_api.rb +22 -7
  23. data/lib/mailslurp_client/api/webhook_controller_api.rb +386 -8
  24. data/lib/mailslurp_client/api_client.rb +1 -1
  25. data/lib/mailslurp_client/api_error.rb +1 -1
  26. data/lib/mailslurp_client/configuration.rb +1 -1
  27. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +3 -3
  28. data/lib/mailslurp_client/models/alias_dto.rb +1 -1
  29. data/lib/mailslurp_client/models/alias_projection.rb +1 -1
  30. data/lib/mailslurp_client/models/attachment_entity.rb +1 -1
  31. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  32. data/lib/mailslurp_client/models/attachment_projection.rb +1 -1
  33. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  34. data/lib/mailslurp_client/models/bounce_projection.rb +1 -1
  35. data/lib/mailslurp_client/models/bounce_recipient.rb +1 -1
  36. data/lib/mailslurp_client/models/bounced_email_dto.rb +1 -1
  37. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +1 -1
  38. data/lib/mailslurp_client/models/bulk_send_email_options.rb +1 -1
  39. data/lib/mailslurp_client/models/condition_option.rb +1 -1
  40. data/lib/mailslurp_client/models/contact_dto.rb +1 -1
  41. data/lib/mailslurp_client/models/contact_projection.rb +1 -1
  42. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  43. data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
  44. data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
  45. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  46. data/lib/mailslurp_client/models/create_group_options.rb +1 -1
  47. data/lib/mailslurp_client/models/create_inbox_dto.rb +2 -2
  48. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +18 -29
  49. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +1 -1
  50. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  51. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  52. data/lib/mailslurp_client/models/create_webhook_options.rb +3 -3
  53. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  54. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -1
  55. data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
  56. data/lib/mailslurp_client/models/dns_lookup_result.rb +1 -1
  57. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  58. data/lib/mailslurp_client/models/domain_dto.rb +1 -1
  59. data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
  60. data/lib/mailslurp_client/models/domain_preview.rb +1 -1
  61. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  62. data/lib/mailslurp_client/models/email.rb +29 -11
  63. data/lib/mailslurp_client/models/email_analysis.rb +1 -1
  64. data/lib/mailslurp_client/models/email_content_match_result.rb +1 -1
  65. data/lib/mailslurp_client/models/email_links_result.rb +1 -1
  66. data/lib/mailslurp_client/models/email_preview.rb +7 -7
  67. data/lib/mailslurp_client/models/email_projection.rb +1 -1
  68. data/lib/mailslurp_client/models/email_recipients.rb +230 -0
  69. data/lib/mailslurp_client/models/email_text_lines_result.rb +1 -1
  70. data/lib/mailslurp_client/models/email_verification_result.rb +2 -2
  71. data/lib/mailslurp_client/models/expiration_defaults.rb +19 -5
  72. data/lib/mailslurp_client/models/expired_inbox_dto.rb +1 -1
  73. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +1 -1
  74. data/lib/mailslurp_client/models/export_link.rb +1 -1
  75. data/lib/mailslurp_client/models/export_options.rb +1 -1
  76. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +227 -0
  77. data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
  78. data/lib/mailslurp_client/models/gravatar_url.rb +1 -1
  79. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -1
  80. data/lib/mailslurp_client/models/group_dto.rb +1 -1
  81. data/lib/mailslurp_client/models/group_projection.rb +1 -1
  82. data/lib/mailslurp_client/models/html_validation_result.rb +1 -1
  83. data/lib/mailslurp_client/models/inbox.rb +1 -1
  84. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -1
  85. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
  86. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -1
  87. data/lib/mailslurp_client/models/{inbox_projection.rb → inbox_preview.rb} +23 -25
  88. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -1
  89. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
  90. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -1
  91. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  92. data/lib/mailslurp_client/models/json_schema_dto.rb +211 -0
  93. data/lib/mailslurp_client/models/match_option.rb +1 -1
  94. data/lib/mailslurp_client/models/match_options.rb +1 -1
  95. data/lib/mailslurp_client/models/missed_email.rb +1 -6
  96. data/lib/mailslurp_client/models/missed_email_projection.rb +1 -6
  97. data/lib/mailslurp_client/models/name_server_record.rb +1 -1
  98. data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -1
  99. data/lib/mailslurp_client/models/page_alias.rb +1 -1
  100. data/lib/mailslurp_client/models/page_attachment_entity.rb +1 -1
  101. data/lib/mailslurp_client/models/page_bounced_email.rb +1 -1
  102. data/lib/mailslurp_client/models/page_bounced_recipients.rb +1 -1
  103. data/lib/mailslurp_client/models/page_contact_projection.rb +1 -1
  104. data/lib/mailslurp_client/models/page_email_preview.rb +1 -1
  105. data/lib/mailslurp_client/models/page_email_projection.rb +1 -1
  106. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +1 -1
  107. data/lib/mailslurp_client/models/page_group_projection.rb +1 -1
  108. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +1 -1
  109. data/lib/mailslurp_client/models/page_inbox_projection.rb +2 -2
  110. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +1 -1
  111. data/lib/mailslurp_client/models/page_missed_email_projection.rb +1 -1
  112. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +1 -1
  113. data/lib/mailslurp_client/models/page_sent_email_projection.rb +1 -1
  114. data/lib/mailslurp_client/models/page_template_projection.rb +1 -1
  115. data/lib/mailslurp_client/models/page_thread_projection.rb +1 -1
  116. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +1 -1
  117. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +299 -0
  118. data/lib/mailslurp_client/models/page_webhook_projection.rb +2 -1
  119. data/lib/mailslurp_client/models/page_webhook_result.rb +2 -2
  120. data/lib/mailslurp_client/models/pageable.rb +1 -1
  121. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  122. data/lib/mailslurp_client/models/{model_alias.rb → recipient.rb} +14 -74
  123. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +1 -1
  124. data/lib/mailslurp_client/models/reply_to_email_options.rb +1 -1
  125. data/lib/mailslurp_client/models/send_email_options.rb +1 -1
  126. data/lib/mailslurp_client/models/sender.rb +234 -0
  127. data/lib/mailslurp_client/models/sent_email_dto.rb +1 -1
  128. data/lib/mailslurp_client/models/sent_email_projection.rb +1 -1
  129. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  130. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -1
  131. data/lib/mailslurp_client/models/sort.rb +1 -1
  132. data/lib/mailslurp_client/models/template_dto.rb +1 -1
  133. data/lib/mailslurp_client/models/template_projection.rb +1 -1
  134. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  135. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
  136. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
  137. data/lib/mailslurp_client/models/thread_projection.rb +1 -1
  138. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -1
  139. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +1 -1
  140. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +254 -0
  141. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  142. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +211 -0
  143. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  144. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  145. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
  146. data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
  147. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -2
  148. data/lib/mailslurp_client/models/validation_dto.rb +1 -1
  149. data/lib/mailslurp_client/models/validation_message.rb +1 -1
  150. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  151. data/lib/mailslurp_client/models/wait_for_conditions.rb +43 -3
  152. data/lib/mailslurp_client/models/webhook_dto.rb +4 -4
  153. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
  154. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +312 -0
  155. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +3 -3
  156. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +3 -3
  157. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +8 -8
  158. data/lib/mailslurp_client/models/webhook_projection.rb +3 -3
  159. data/lib/mailslurp_client/models/webhook_redrive_result.rb +234 -0
  160. data/lib/mailslurp_client/models/{webhook_result_entity.rb → webhook_result_dto.rb} +25 -7
  161. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -1
  162. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
  163. data/lib/mailslurp_client/models/webhook_test_result.rb +1 -1
  164. data/lib/mailslurp_client/version.rb +2 -2
  165. data/lib/mailslurp_client.rb +13 -4
  166. metadata +14 -5
@@ -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
 
@@ -82,6 +82,7 @@ module MailSlurpClient
82
82
  # Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
83
83
  # If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
84
84
  # @param [Hash] opts the optional parameters
85
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
85
86
  # @option opts [Integer] :count Number of emails to wait for. Must be greater that 1
86
87
  # @option opts [Integer] :delay Max milliseconds delay between calls
87
88
  # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
@@ -98,6 +99,7 @@ module MailSlurpClient
98
99
  # Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
99
100
  # If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
100
101
  # @param [Hash] opts the optional parameters
102
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
101
103
  # @option opts [Integer] :count Number of emails to wait for. Must be greater that 1
102
104
  # @option opts [Integer] :delay Max milliseconds delay between calls
103
105
  # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
@@ -119,6 +121,7 @@ module MailSlurpClient
119
121
 
120
122
  # query parameters
121
123
  query_params = opts[:query_params] || {}
124
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
122
125
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
123
126
  query_params[:'delay'] = opts[:'delay'] if !opts[:'delay'].nil?
124
127
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
@@ -163,6 +166,7 @@ module MailSlurpClient
163
166
  # Fetch inbox's latest email or if empty wait for an email to arrive
164
167
  # Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`.
165
168
  # @param [Hash] opts the optional parameters
169
+ # @option opts [DateTime] :before Filter for emails that were before after the given timestamp
166
170
  # @option opts [Integer] :delay Max milliseconds delay between calls
167
171
  # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
168
172
  # @option opts [DateTime] :since Filter for emails that were received after the given timestamp
@@ -178,6 +182,7 @@ module MailSlurpClient
178
182
  # Fetch inbox's latest email or if empty wait for an email to arrive
179
183
  # Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox set `unreadOnly=true` or see the other receive methods such as `waitForNthEmail` or `waitForEmailCount`.
180
184
  # @param [Hash] opts the optional parameters
185
+ # @option opts [DateTime] :before Filter for emails that were before after the given timestamp
181
186
  # @option opts [Integer] :delay Max milliseconds delay between calls
182
187
  # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
183
188
  # @option opts [DateTime] :since Filter for emails that were received after the given timestamp
@@ -198,6 +203,7 @@ module MailSlurpClient
198
203
 
199
204
  # query parameters
200
205
  query_params = opts[:query_params] || {}
206
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
201
207
  query_params[:'delay'] = opts[:'delay'] if !opts[:'delay'].nil?
202
208
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
203
209
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
@@ -242,6 +248,7 @@ module MailSlurpClient
242
248
  # Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method.
243
249
  # @param match_options [MatchOptions] matchOptions
244
250
  # @param [Hash] opts the optional parameters
251
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
245
252
  # @option opts [Integer] :count Number of emails to wait for. Must be greater or equal to 1
246
253
  # @option opts [Integer] :delay Max milliseconds delay between calls
247
254
  # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
@@ -250,8 +257,8 @@ module MailSlurpClient
250
257
  # @option opts [Integer] :timeout Max milliseconds to wait
251
258
  # @option opts [Boolean] :unread_only Optional filter for unread only (default to false)
252
259
  # @return [Array<EmailPreview>]
253
- def wait_for_matching_email(match_options, opts = {})
254
- data, _status_code, _headers = wait_for_matching_email_with_http_info(match_options, opts)
260
+ def wait_for_matching_emails(match_options, opts = {})
261
+ data, _status_code, _headers = wait_for_matching_emails_with_http_info(match_options, opts)
255
262
  data
256
263
  end
257
264
 
@@ -259,6 +266,7 @@ module MailSlurpClient
259
266
  # Perform a search of emails in an inbox with the given patterns. If results match expected count then return or else retry the search until results are found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the &#x60;MatchOptions&#x60; object for options. An example payload is &#x60;{ matches: [{field: &#39;SUBJECT&#39;,should:&#39;CONTAIN&#39;,value:&#39;needle&#39;}] }&#x60;. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController &#x60;getEmailContentMatch&#x60; method.
260
267
  # @param match_options [MatchOptions] matchOptions
261
268
  # @param [Hash] opts the optional parameters
269
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
262
270
  # @option opts [Integer] :count Number of emails to wait for. Must be greater or equal to 1
263
271
  # @option opts [Integer] :delay Max milliseconds delay between calls
264
272
  # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
@@ -267,13 +275,13 @@ module MailSlurpClient
267
275
  # @option opts [Integer] :timeout Max milliseconds to wait
268
276
  # @option opts [Boolean] :unread_only Optional filter for unread only
269
277
  # @return [Array<(Array<EmailPreview>, Integer, Hash)>] Array<EmailPreview> data, response status code and response headers
270
- def wait_for_matching_email_with_http_info(match_options, opts = {})
278
+ def wait_for_matching_emails_with_http_info(match_options, opts = {})
271
279
  if @api_client.config.debugging
272
- @api_client.config.logger.debug 'Calling API: WaitForControllerApi.wait_for_matching_email ...'
280
+ @api_client.config.logger.debug 'Calling API: WaitForControllerApi.wait_for_matching_emails ...'
273
281
  end
274
282
  # verify the required parameter 'match_options' is set
275
283
  if @api_client.config.client_side_validation && match_options.nil?
276
- fail ArgumentError, "Missing the required parameter 'match_options' when calling WaitForControllerApi.wait_for_matching_email"
284
+ fail ArgumentError, "Missing the required parameter 'match_options' when calling WaitForControllerApi.wait_for_matching_emails"
277
285
  end
278
286
  allowable_values = ["ASC", "DESC"]
279
287
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
@@ -284,6 +292,7 @@ module MailSlurpClient
284
292
 
285
293
  # query parameters
286
294
  query_params = opts[:query_params] || {}
295
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
287
296
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
288
297
  query_params[:'delay'] = opts[:'delay'] if !opts[:'delay'].nil?
289
298
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
@@ -322,7 +331,7 @@ module MailSlurpClient
322
331
 
323
332
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
324
333
  if @api_client.config.debugging
325
- @api_client.config.logger.debug "API called: WaitForControllerApi#wait_for_matching_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
334
+ @api_client.config.logger.debug "API called: WaitForControllerApi#wait_for_matching_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
326
335
  end
327
336
  return data, status_code, headers
328
337
  end
@@ -331,6 +340,7 @@ module MailSlurpClient
331
340
  # Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the `MatchOptions` object for options. An example payload is `{ matches: [{field: 'SUBJECT',should:'CONTAIN',value:'needle'}] }`. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController `getEmailContentMatch` method.
332
341
  # @param match_options [MatchOptions] matchOptions
333
342
  # @param [Hash] opts the optional parameters
343
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
334
344
  # @option opts [Integer] :delay Max milliseconds delay between calls
335
345
  # @option opts [String] :inbox_id Id of the inbox we are matching an email for
336
346
  # @option opts [DateTime] :since Filter for emails that were received after the given timestamp
@@ -347,6 +357,7 @@ module MailSlurpClient
347
357
  # Perform a search of emails in an inbox with the given patterns. If a result if found then return or else retry the search until a result is found or timeout is reached. Match options allow simple CONTAINS or EQUALS filtering on SUBJECT, TO, BCC, CC, and FROM. See the &#x60;MatchOptions&#x60; object for options. An example payload is &#x60;{ matches: [{field: &#39;SUBJECT&#39;,should:&#39;CONTAIN&#39;,value:&#39;needle&#39;}] }&#x60;. You can use an array of matches and they will be applied sequentially to filter out emails. If you want to perform matches and extractions of content using Regex patterns see the EmailController &#x60;getEmailContentMatch&#x60; method.
348
358
  # @param match_options [MatchOptions] matchOptions
349
359
  # @param [Hash] opts the optional parameters
360
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
350
361
  # @option opts [Integer] :delay Max milliseconds delay between calls
351
362
  # @option opts [String] :inbox_id Id of the inbox we are matching an email for
352
363
  # @option opts [DateTime] :since Filter for emails that were received after the given timestamp
@@ -371,6 +382,7 @@ module MailSlurpClient
371
382
 
372
383
  # query parameters
373
384
  query_params = opts[:query_params] || {}
385
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
374
386
  query_params[:'delay'] = opts[:'delay'] if !opts[:'delay'].nil?
375
387
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
376
388
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
@@ -416,6 +428,7 @@ module MailSlurpClient
416
428
  # Wait for or fetch the email with a given index in the inbox specified. If index doesn't exist waits for it to exist or timeout to occur.
417
429
  # If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
418
430
  # @param [Hash] opts the optional parameters
431
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
419
432
  # @option opts [Integer] :delay Max milliseconds delay between calls
420
433
  # @option opts [String] :inbox_id Id of the inbox you are fetching emails from
421
434
  # @option opts [Integer] :index Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index&#x3D;1 (default to 0)
@@ -432,6 +445,7 @@ module MailSlurpClient
432
445
  # Wait for or fetch the email with a given index in the inbox specified. If index doesn&#39;t exist waits for it to exist or timeout to occur.
433
446
  # If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
434
447
  # @param [Hash] opts the optional parameters
448
+ # @option opts [DateTime] :before Filter for emails that were received before the given timestamp
435
449
  # @option opts [Integer] :delay Max milliseconds delay between calls
436
450
  # @option opts [String] :inbox_id Id of the inbox you are fetching emails from
437
451
  # @option opts [Integer] :index Zero based index of the email to wait for. If an inbox has 1 email already and you want to wait for the 2nd email pass index&#x3D;1
@@ -453,6 +467,7 @@ module MailSlurpClient
453
467
 
454
468
  # query parameters
455
469
  query_params = opts[:query_params] || {}
470
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
456
471
  query_params[:'delay'] = opts[:'delay'] if !opts[:'delay'].nil?
457
472
  query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
458
473
  query_params[:'index'] = opts[:'index'] if !opts[:'index'].nil?