mailslurp_client 15.0.3 → 15.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
  10. data/lib/mailslurp_client/api/email_controller_api.rb +145 -122
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
  12. data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
  13. data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
  14. data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +198 -178
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
  21. data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
  25. data/lib/mailslurp_client/api_client.rb +1 -1
  26. data/lib/mailslurp_client/api_error.rb +1 -1
  27. data/lib/mailslurp_client/configuration.rb +3 -3
  28. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +22 -22
  29. data/lib/mailslurp_client/models/alias_dto.rb +64 -49
  30. data/lib/mailslurp_client/models/alias_projection.rb +50 -50
  31. data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
  32. data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
  33. data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
  34. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  35. data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
  37. data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
  38. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
  39. data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
  40. data/lib/mailslurp_client/models/condition_option.rb +13 -3
  41. data/lib/mailslurp_client/models/contact_dto.rb +63 -63
  42. data/lib/mailslurp_client/models/contact_projection.rb +39 -39
  43. data/lib/mailslurp_client/models/content_match_options.rb +6 -1
  44. data/lib/mailslurp_client/models/count_dto.rb +1 -1
  45. data/lib/mailslurp_client/models/create_alias_options.rb +11 -1
  46. data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
  47. data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
  48. data/lib/mailslurp_client/models/create_group_options.rb +1 -1
  49. data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
  50. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
  51. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
  52. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  53. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  54. data/lib/mailslurp_client/models/create_webhook_options.rb +24 -19
  55. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  56. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +21 -21
  57. data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
  58. data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
  59. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  60. data/lib/mailslurp_client/models/domain_dto.rb +100 -70
  61. data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
  62. data/lib/mailslurp_client/models/domain_preview.rb +29 -28
  63. data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
  64. data/lib/mailslurp_client/models/email.rb +179 -139
  65. data/lib/mailslurp_client/models/email_analysis.rb +29 -29
  66. data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
  67. data/lib/mailslurp_client/models/email_links_result.rb +19 -19
  68. data/lib/mailslurp_client/models/email_preview.rb +63 -48
  69. data/lib/mailslurp_client/models/email_projection.rb +77 -77
  70. data/lib/mailslurp_client/models/email_recipients.rb +17 -16
  71. data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
  72. data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
  73. data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
  74. data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
  75. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
  76. data/lib/mailslurp_client/models/export_link.rb +1 -1
  77. data/lib/mailslurp_client/models/export_options.rb +2 -2
  78. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
  79. data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
  80. data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
  81. data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
  82. data/lib/mailslurp_client/models/group_dto.rb +28 -28
  83. data/lib/mailslurp_client/models/group_projection.rb +29 -29
  84. data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
  85. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
  86. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
  87. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
  89. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
  90. data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
  91. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
  93. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
  94. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  95. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  96. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
  97. data/lib/mailslurp_client/models/match_option.rb +18 -3
  98. data/lib/mailslurp_client/models/match_options.rb +17 -17
  99. data/lib/mailslurp_client/models/missed_email.rb +77 -77
  100. data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
  101. data/lib/mailslurp_client/models/name_server_record.rb +16 -16
  102. data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
  103. data/lib/mailslurp_client/models/page_alias.rb +59 -50
  104. data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
  105. data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
  106. data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
  107. data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
  108. data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
  109. data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
  110. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
  111. data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
  112. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
  113. data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
  114. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
  116. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
  117. data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
  118. data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
  119. data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
  120. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
  121. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
  122. data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
  123. data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
  124. data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
  125. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  126. data/lib/mailslurp_client/models/recipient.rb +19 -19
  127. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
  128. data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
  129. data/lib/mailslurp_client/models/send_email_options.rb +112 -110
  130. data/lib/mailslurp_client/models/sender.rb +20 -19
  131. data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
  132. data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
  133. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
  134. data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
  135. data/lib/mailslurp_client/models/sort.rb +1 -1
  136. data/lib/mailslurp_client/models/template_dto.rb +33 -33
  137. data/lib/mailslurp_client/models/template_projection.rb +37 -37
  138. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  139. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
  140. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
  141. data/lib/mailslurp_client/models/thread_projection.rb +71 -71
  142. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
  143. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
  144. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
  145. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  146. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
  147. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  148. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  149. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
  150. data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
  151. data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
  152. data/lib/mailslurp_client/models/validation_dto.rb +11 -1
  153. data/lib/mailslurp_client/models/validation_message.rb +2 -1
  154. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  155. data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
  156. data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
  157. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
  158. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
  159. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
  160. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
  161. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
  162. data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
  163. data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
  164. data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
  165. data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
  166. data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
  167. data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
  168. data/lib/mailslurp_client/version.rb +2 -2
  169. data/lib/mailslurp_client.rb +4 -3
  170. metadata +5 -4
@@ -4,7 +4,7 @@
4
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
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -72,7 +72,6 @@ module MailSlurpClient
72
72
  end
73
73
 
74
74
  # Delete an attachment
75
- # 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.
76
75
  # @param attachment_id [String] ID of attachment
77
76
  # @param [Hash] opts the optional parameters
78
77
  # @return [nil]
@@ -82,7 +81,6 @@ module MailSlurpClient
82
81
  end
83
82
 
84
83
  # Delete an attachment
85
- # 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.
86
84
  # @param attachment_id [String] ID of attachment
87
85
  # @param [Hash] opts the optional parameters
88
86
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -163,7 +161,7 @@ module MailSlurpClient
163
161
  # header parameters
164
162
  header_params = opts[:header_params] || {}
165
163
  # HTTP header 'Accept' (if needed)
166
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
164
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
167
165
 
168
166
  # form parameters
169
167
  form_params = opts[:form_params] || {}
@@ -197,7 +195,7 @@ module MailSlurpClient
197
195
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
198
196
  # @param attachment_id [String] ID of attachment
199
197
  # @param [Hash] opts the optional parameters
200
- # @return [String]
198
+ # @return [Array<String>]
201
199
  def download_attachment_as_bytes(attachment_id, opts = {})
202
200
  data, _status_code, _headers = download_attachment_as_bytes_with_http_info(attachment_id, opts)
203
201
  data
@@ -207,7 +205,7 @@ module MailSlurpClient
207
205
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
208
206
  # @param attachment_id [String] ID of attachment
209
207
  # @param [Hash] opts the optional parameters
210
- # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
208
+ # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
211
209
  def download_attachment_as_bytes_with_http_info(attachment_id, opts = {})
212
210
  if @api_client.config.debugging
213
211
  @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_bytes ...'
@@ -234,7 +232,7 @@ module MailSlurpClient
234
232
  post_body = opts[:body]
235
233
 
236
234
  # return_type
237
- return_type = opts[:return_type] || 'String'
235
+ return_type = opts[:return_type] || 'Array<String>'
238
236
 
239
237
  # auth_names
240
238
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -256,7 +254,6 @@ module MailSlurpClient
256
254
  end
257
255
 
258
256
  # Get an attachment entity
259
- # 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.
260
257
  # @param attachment_id [String] ID of attachment
261
258
  # @param [Hash] opts the optional parameters
262
259
  # @return [AttachmentEntity]
@@ -266,7 +263,6 @@ module MailSlurpClient
266
263
  end
267
264
 
268
265
  # Get an attachment entity
269
- # 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 &#x60;SendEmailOptions&#x60; when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
270
266
  # @param attachment_id [String] ID of attachment
271
267
  # @param [Hash] opts the optional parameters
272
268
  # @return [Array<(AttachmentEntity, Integer, Hash)>] AttachmentEntity data, response status code and response headers
@@ -287,7 +283,7 @@ module MailSlurpClient
287
283
  # header parameters
288
284
  header_params = opts[:header_params] || {}
289
285
  # HTTP header 'Accept' (if needed)
290
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
286
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
291
287
 
292
288
  # form parameters
293
289
  form_params = opts[:form_params] || {}
@@ -349,7 +345,7 @@ module MailSlurpClient
349
345
  # header parameters
350
346
  header_params = opts[:header_params] || {}
351
347
  # HTTP header 'Accept' (if needed)
352
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
348
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
353
349
 
354
350
  # form parameters
355
351
  form_params = opts[:form_params] || {}
@@ -382,31 +378,31 @@ module MailSlurpClient
382
378
  # Get email attachments
383
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.
384
380
  # @param [Hash] opts the optional parameters
385
- # @option opts [DateTime] :before Filter by created at before the given timestamp
386
- # @option opts [String] :file_name_filter Optional file name and content type search filter
387
381
  # @option opts [Integer] :page Optional page index event list pagination (default to 0)
388
- # @option opts [DateTime] :since Filter by created at after the given timestamp
389
382
  # @option opts [Integer] :size Optional page size event list pagination (default to 20)
390
383
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
384
+ # @option opts [String] :file_name_filter Optional file name and content type search filter
385
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
386
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
391
387
  # @return [PageAttachmentEntity]
392
- def get_attachments(opts = {})
393
- data, _status_code, _headers = get_attachments_with_http_info(opts)
388
+ def get_attachments1(opts = {})
389
+ data, _status_code, _headers = get_attachments1_with_http_info(opts)
394
390
  data
395
391
  end
396
392
 
397
393
  # Get email attachments
398
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.
399
395
  # @param [Hash] opts the optional parameters
400
- # @option opts [DateTime] :before Filter by created at before the given timestamp
401
- # @option opts [String] :file_name_filter Optional file name and content type search filter
402
396
  # @option opts [Integer] :page Optional page index event list pagination
403
- # @option opts [DateTime] :since Filter by created at after the given timestamp
404
397
  # @option opts [Integer] :size Optional page size event list pagination
405
398
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
399
+ # @option opts [String] :file_name_filter Optional file name and content type search filter
400
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
401
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
406
402
  # @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
407
- def get_attachments_with_http_info(opts = {})
403
+ def get_attachments1_with_http_info(opts = {})
408
404
  if @api_client.config.debugging
409
- @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachments ...'
405
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachments1 ...'
410
406
  end
411
407
  allowable_values = ["ASC", "DESC"]
412
408
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
@@ -417,17 +413,17 @@ module MailSlurpClient
417
413
 
418
414
  # query parameters
419
415
  query_params = opts[:query_params] || {}
420
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
421
- query_params[:'fileNameFilter'] = opts[:'file_name_filter'] if !opts[:'file_name_filter'].nil?
422
416
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
423
- query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
424
417
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
425
418
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
419
+ query_params[:'fileNameFilter'] = opts[:'file_name_filter'] if !opts[:'file_name_filter'].nil?
420
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
421
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
426
422
 
427
423
  # header parameters
428
424
  header_params = opts[:header_params] || {}
429
425
  # HTTP header 'Accept' (if needed)
430
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
426
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
431
427
 
432
428
  # form parameters
433
429
  form_params = opts[:form_params] || {}
@@ -452,33 +448,31 @@ module MailSlurpClient
452
448
 
453
449
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
454
450
  if @api_client.config.debugging
455
- @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
451
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachments1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
456
452
  end
457
453
  return data, status_code, headers
458
454
  end
459
455
 
460
456
  # Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.
461
- # 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.
462
- # @param upload_options [UploadAttachmentOptions] uploadOptions
457
+ # @param upload_attachment_options [UploadAttachmentOptions]
463
458
  # @param [Hash] opts the optional parameters
464
459
  # @return [Array<String>]
465
- def upload_attachment(upload_options, opts = {})
466
- data, _status_code, _headers = upload_attachment_with_http_info(upload_options, opts)
460
+ def upload_attachment(upload_attachment_options, opts = {})
461
+ data, _status_code, _headers = upload_attachment_with_http_info(upload_attachment_options, opts)
467
462
  data
468
463
  end
469
464
 
470
465
  # Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.
471
- # 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 &#x60;SendEmailOptions&#x60; when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
472
- # @param upload_options [UploadAttachmentOptions] uploadOptions
466
+ # @param upload_attachment_options [UploadAttachmentOptions]
473
467
  # @param [Hash] opts the optional parameters
474
468
  # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
475
- def upload_attachment_with_http_info(upload_options, opts = {})
469
+ def upload_attachment_with_http_info(upload_attachment_options, opts = {})
476
470
  if @api_client.config.debugging
477
471
  @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.upload_attachment ...'
478
472
  end
479
- # verify the required parameter 'upload_options' is set
480
- if @api_client.config.client_side_validation && upload_options.nil?
481
- fail ArgumentError, "Missing the required parameter 'upload_options' when calling AttachmentControllerApi.upload_attachment"
473
+ # verify the required parameter 'upload_attachment_options' is set
474
+ if @api_client.config.client_side_validation && upload_attachment_options.nil?
475
+ fail ArgumentError, "Missing the required parameter 'upload_attachment_options' when calling AttachmentControllerApi.upload_attachment"
482
476
  end
483
477
  # resource path
484
478
  local_var_path = '/attachments'
@@ -489,7 +483,7 @@ module MailSlurpClient
489
483
  # header parameters
490
484
  header_params = opts[:header_params] || {}
491
485
  # HTTP header 'Accept' (if needed)
492
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
486
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
493
487
  # HTTP header 'Content-Type'
494
488
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
495
489
 
@@ -497,7 +491,7 @@ module MailSlurpClient
497
491
  form_params = opts[:form_params] || {}
498
492
 
499
493
  # http body (model)
500
- post_body = opts[:body] || @api_client.object_to_http_body(upload_options)
494
+ post_body = opts[:body] || @api_client.object_to_http_body(upload_attachment_options)
501
495
 
502
496
  # return_type
503
497
  return_type = opts[:return_type] || 'Array<String>'
@@ -522,28 +516,30 @@ module MailSlurpClient
522
516
  end
523
517
 
524
518
  # Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
525
- # 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.
519
+ # @param request_body [Array<String>]
526
520
  # @param [Hash] opts the optional parameters
527
521
  # @option opts [String] :content_type Optional contentType for file. For instance &#x60;application/pdf&#x60;
528
522
  # @option opts [String] :filename Optional filename to save upload with
529
- # @option opts [String] :byte_array Byte array request body
530
523
  # @return [Array<String>]
531
- def upload_attachment_bytes(opts = {})
532
- data, _status_code, _headers = upload_attachment_bytes_with_http_info(opts)
524
+ def upload_attachment_bytes(request_body, opts = {})
525
+ data, _status_code, _headers = upload_attachment_bytes_with_http_info(request_body, opts)
533
526
  data
534
527
  end
535
528
 
536
529
  # Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
537
- # 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 &#x60;SendEmailOptions&#x60; when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
530
+ # @param request_body [Array<String>]
538
531
  # @param [Hash] opts the optional parameters
539
532
  # @option opts [String] :content_type Optional contentType for file. For instance &#x60;application/pdf&#x60;
540
533
  # @option opts [String] :filename Optional filename to save upload with
541
- # @option opts [String] :byte_array Byte array request body
542
534
  # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
543
- def upload_attachment_bytes_with_http_info(opts = {})
535
+ def upload_attachment_bytes_with_http_info(request_body, opts = {})
544
536
  if @api_client.config.debugging
545
537
  @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.upload_attachment_bytes ...'
546
538
  end
539
+ # verify the required parameter 'request_body' is set
540
+ if @api_client.config.client_side_validation && request_body.nil?
541
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling AttachmentControllerApi.upload_attachment_bytes"
542
+ end
547
543
  # resource path
548
544
  local_var_path = '/attachments/bytes'
549
545
 
@@ -563,7 +559,7 @@ module MailSlurpClient
563
559
  form_params = opts[:form_params] || {}
564
560
 
565
561
  # http body (model)
566
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'byte_array'])
562
+ post_body = opts[:body] || @api_client.object_to_http_body(request_body)
567
563
 
568
564
  # return_type
569
565
  return_type = opts[:return_type] || 'Array<String>'
@@ -588,34 +584,28 @@ module MailSlurpClient
588
584
  end
589
585
 
590
586
  # Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment.
591
- # 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.
592
- # @param file [File] file
593
587
  # @param [Hash] opts the optional parameters
594
588
  # @option opts [String] :content_type Optional content type of attachment
595
589
  # @option opts [String] :filename Optional name of file
596
590
  # @option opts [String] :x_filename Optional content type header of attachment
591
+ # @option opts [InlineObject] :inline_object
597
592
  # @return [Array<String>]
598
- def upload_multipart_form(file, opts = {})
599
- data, _status_code, _headers = upload_multipart_form_with_http_info(file, opts)
593
+ def upload_multipart_form(opts = {})
594
+ data, _status_code, _headers = upload_multipart_form_with_http_info(opts)
600
595
  data
601
596
  end
602
597
 
603
598
  # Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment.
604
- # 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 &#x60;SendEmailOptions&#x60; when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
605
- # @param file [File] file
606
599
  # @param [Hash] opts the optional parameters
607
600
  # @option opts [String] :content_type Optional content type of attachment
608
601
  # @option opts [String] :filename Optional name of file
609
602
  # @option opts [String] :x_filename Optional content type header of attachment
603
+ # @option opts [InlineObject] :inline_object
610
604
  # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
611
- def upload_multipart_form_with_http_info(file, opts = {})
605
+ def upload_multipart_form_with_http_info(opts = {})
612
606
  if @api_client.config.debugging
613
607
  @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.upload_multipart_form ...'
614
608
  end
615
- # verify the required parameter 'file' is set
616
- if @api_client.config.client_side_validation && file.nil?
617
- fail ArgumentError, "Missing the required parameter 'file' when calling AttachmentControllerApi.upload_multipart_form"
618
- end
619
609
  # resource path
620
610
  local_var_path = '/attachments/multipart'
621
611
 
@@ -628,16 +618,15 @@ module MailSlurpClient
628
618
  # header parameters
629
619
  header_params = opts[:header_params] || {}
630
620
  # HTTP header 'Accept' (if needed)
631
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
621
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
632
622
  # HTTP header 'Content-Type'
633
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
623
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
634
624
 
635
625
  # form parameters
636
626
  form_params = opts[:form_params] || {}
637
- form_params['file'] = file
638
627
 
639
628
  # http body (model)
640
- post_body = opts[:body]
629
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'inline_object'])
641
630
 
642
631
  # return_type
643
632
  return_type = opts[:return_type] || 'Array<String>'
@@ -4,7 +4,7 @@
4
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
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -51,7 +51,7 @@ module MailSlurpClient
51
51
  # header parameters
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
55
55
 
56
56
  # form parameters
57
57
  form_params = opts[:form_params] || {}
@@ -84,11 +84,11 @@ module MailSlurpClient
84
84
  # Get paginated list of bounced emails.
85
85
  # Bounced emails are email you have sent that were rejected by a recipient
86
86
  # @param [Hash] opts the optional parameters
87
- # @option opts [DateTime] :before Filter by created at before the given timestamp
88
- # @option opts [Integer] :page Optional page index (default to 0)
89
- # @option opts [DateTime] :since Filter by created at after the given timestamp
87
+ # @option opts [Integer] :page Optional page index (default to 0)
90
88
  # @option opts [Integer] :size Optional page size (default to 20)
91
89
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
90
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
91
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
92
92
  # @return [PageBouncedEmail]
93
93
  def get_bounced_emails(opts = {})
94
94
  data, _status_code, _headers = get_bounced_emails_with_http_info(opts)
@@ -98,16 +98,20 @@ module MailSlurpClient
98
98
  # Get paginated list of bounced emails.
99
99
  # Bounced emails are email you have sent that were rejected by a recipient
100
100
  # @param [Hash] opts the optional parameters
101
- # @option opts [DateTime] :before Filter by created at before the given timestamp
102
- # @option opts [Integer] :page Optional page index
103
- # @option opts [DateTime] :since Filter by created at after the given timestamp
101
+ # @option opts [Integer] :page Optional page index
104
102
  # @option opts [Integer] :size Optional page size
105
103
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
104
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
105
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
106
106
  # @return [Array<(PageBouncedEmail, Integer, Hash)>] PageBouncedEmail data, response status code and response headers
107
107
  def get_bounced_emails_with_http_info(opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_emails ...'
110
110
  end
111
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
112
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling BounceControllerApi.get_bounced_emails, must be smaller than or equal to 100.'
113
+ end
114
+
111
115
  allowable_values = ["ASC", "DESC"]
112
116
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
113
117
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
@@ -117,16 +121,16 @@ module MailSlurpClient
117
121
 
118
122
  # query parameters
119
123
  query_params = opts[:query_params] || {}
120
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
121
124
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
122
- query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
123
125
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
124
126
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
127
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
128
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
125
129
 
126
130
  # header parameters
127
131
  header_params = opts[:header_params] || {}
128
132
  # HTTP header 'Accept' (if needed)
129
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
130
134
 
131
135
  # form parameters
132
136
  form_params = opts[:form_params] || {}
@@ -188,7 +192,7 @@ module MailSlurpClient
188
192
  # header parameters
189
193
  header_params = opts[:header_params] || {}
190
194
  # HTTP header 'Accept' (if needed)
191
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
195
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
192
196
 
193
197
  # form parameters
194
198
  form_params = opts[:form_params] || {}
@@ -221,11 +225,11 @@ module MailSlurpClient
221
225
  # Get paginated list of bounced recipients.
222
226
  # Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address.
223
227
  # @param [Hash] opts the optional parameters
224
- # @option opts [DateTime] :before Filter by created at before the given timestamp
225
228
  # @option opts [Integer] :page Optional page index (default to 0)
226
- # @option opts [DateTime] :since Filter by created at after the given timestamp
227
229
  # @option opts [Integer] :size Optional page size (default to 20)
228
230
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
231
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
232
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
229
233
  # @return [PageBouncedRecipients]
230
234
  def get_bounced_recipients(opts = {})
231
235
  data, _status_code, _headers = get_bounced_recipients_with_http_info(opts)
@@ -235,16 +239,20 @@ module MailSlurpClient
235
239
  # Get paginated list of bounced recipients.
236
240
  # Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address.
237
241
  # @param [Hash] opts the optional parameters
238
- # @option opts [DateTime] :before Filter by created at before the given timestamp
239
242
  # @option opts [Integer] :page Optional page index
240
- # @option opts [DateTime] :since Filter by created at after the given timestamp
241
243
  # @option opts [Integer] :size Optional page size
242
244
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
245
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
246
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
243
247
  # @return [Array<(PageBouncedRecipients, Integer, Hash)>] PageBouncedRecipients data, response status code and response headers
244
248
  def get_bounced_recipients_with_http_info(opts = {})
245
249
  if @api_client.config.debugging
246
250
  @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_recipients ...'
247
251
  end
252
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
253
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling BounceControllerApi.get_bounced_recipients, must be smaller than or equal to 100.'
254
+ end
255
+
248
256
  allowable_values = ["ASC", "DESC"]
249
257
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
250
258
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
@@ -254,16 +262,16 @@ module MailSlurpClient
254
262
 
255
263
  # query parameters
256
264
  query_params = opts[:query_params] || {}
257
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
258
265
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
259
- query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
260
266
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
261
267
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
268
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
269
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
262
270
 
263
271
  # header parameters
264
272
  header_params = opts[:header_params] || {}
265
273
  # HTTP header 'Accept' (if needed)
266
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
274
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
267
275
 
268
276
  # form parameters
269
277
  form_params = opts[:form_params] || {}
@@ -4,7 +4,7 @@
4
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
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -22,7 +22,7 @@ module MailSlurpClient
22
22
  # Bulk create Inboxes (email addresses)
23
23
  # @param count [Integer] Number of inboxes to be created in bulk
24
24
  # @param [Hash] opts the optional parameters
25
- # @return [Array<Inbox>]
25
+ # @return [Array<InboxDto>]
26
26
  def bulk_create_inboxes(count, opts = {})
27
27
  data, _status_code, _headers = bulk_create_inboxes_with_http_info(count, opts)
28
28
  data
@@ -31,7 +31,7 @@ module MailSlurpClient
31
31
  # Bulk create Inboxes (email addresses)
32
32
  # @param count [Integer] Number of inboxes to be created in bulk
33
33
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(Array<Inbox>, Integer, Hash)>] Array<Inbox> data, response status code and response headers
34
+ # @return [Array<(Array<InboxDto>, Integer, Hash)>] Array<InboxDto> data, response status code and response headers
35
35
  def bulk_create_inboxes_with_http_info(count, opts = {})
36
36
  if @api_client.config.debugging
37
37
  @api_client.config.logger.debug 'Calling API: BulkActionsControllerApi.bulk_create_inboxes ...'
@@ -50,7 +50,7 @@ module MailSlurpClient
50
50
  # header parameters
51
51
  header_params = opts[:header_params] || {}
52
52
  # HTTP header 'Accept' (if needed)
53
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
54
54
 
55
55
  # form parameters
56
56
  form_params = opts[:form_params] || {}
@@ -59,7 +59,7 @@ module MailSlurpClient
59
59
  post_body = opts[:body]
60
60
 
61
61
  # return_type
62
- return_type = opts[:return_type] || 'Array<Inbox>'
62
+ return_type = opts[:return_type] || 'Array<InboxDto>'
63
63
 
64
64
  # auth_names
65
65
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -81,25 +81,25 @@ module MailSlurpClient
81
81
  end
82
82
 
83
83
  # Bulk Delete Inboxes
84
- # @param ids [Array<String>] ids
84
+ # @param request_body [Array<String>]
85
85
  # @param [Hash] opts the optional parameters
86
86
  # @return [nil]
87
- def bulk_delete_inboxes(ids, opts = {})
88
- bulk_delete_inboxes_with_http_info(ids, opts)
87
+ def bulk_delete_inboxes(request_body, opts = {})
88
+ bulk_delete_inboxes_with_http_info(request_body, opts)
89
89
  nil
90
90
  end
91
91
 
92
92
  # Bulk Delete Inboxes
93
- # @param ids [Array<String>] ids
93
+ # @param request_body [Array<String>]
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
96
- def bulk_delete_inboxes_with_http_info(ids, opts = {})
96
+ def bulk_delete_inboxes_with_http_info(request_body, opts = {})
97
97
  if @api_client.config.debugging
98
98
  @api_client.config.logger.debug 'Calling API: BulkActionsControllerApi.bulk_delete_inboxes ...'
99
99
  end
100
- # verify the required parameter 'ids' is set
101
- if @api_client.config.client_side_validation && ids.nil?
102
- fail ArgumentError, "Missing the required parameter 'ids' when calling BulkActionsControllerApi.bulk_delete_inboxes"
100
+ # verify the required parameter 'request_body' is set
101
+ if @api_client.config.client_side_validation && request_body.nil?
102
+ fail ArgumentError, "Missing the required parameter 'request_body' when calling BulkActionsControllerApi.bulk_delete_inboxes"
103
103
  end
104
104
  # resource path
105
105
  local_var_path = '/bulk/inboxes'
@@ -116,7 +116,7 @@ module MailSlurpClient
116
116
  form_params = opts[:form_params] || {}
117
117
 
118
118
  # http body (model)
119
- post_body = opts[:body] || @api_client.object_to_http_body(ids)
119
+ post_body = opts[:body] || @api_client.object_to_http_body(request_body)
120
120
 
121
121
  # return_type
122
122
  return_type = opts[:return_type]
@@ -141,7 +141,7 @@ module MailSlurpClient
141
141
  end
142
142
 
143
143
  # Bulk Send Emails
144
- # @param bulk_send_email_options [BulkSendEmailOptions] bulkSendEmailOptions
144
+ # @param bulk_send_email_options [BulkSendEmailOptions]
145
145
  # @param [Hash] opts the optional parameters
146
146
  # @return [nil]
147
147
  def bulk_send_emails(bulk_send_email_options, opts = {})
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  end
151
151
 
152
152
  # Bulk Send Emails
153
- # @param bulk_send_email_options [BulkSendEmailOptions] bulkSendEmailOptions
153
+ # @param bulk_send_email_options [BulkSendEmailOptions]
154
154
  # @param [Hash] opts the optional parameters
155
155
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
156
156
  def bulk_send_emails_with_http_info(bulk_send_email_options, opts = {})