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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
- data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
- data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
- data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
- data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
- data/lib/mailslurp_client/api/email_controller_api.rb +145 -122
- data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
- data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
- data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
- data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
- data/lib/mailslurp_client/api/inbox_controller_api.rb +198 -178
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
- data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
- data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +3 -3
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +22 -22
- data/lib/mailslurp_client/models/alias_dto.rb +64 -49
- data/lib/mailslurp_client/models/alias_projection.rb +50 -50
- data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
- data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
- data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
- data/lib/mailslurp_client/models/condition_option.rb +13 -3
- data/lib/mailslurp_client/models/contact_dto.rb +63 -63
- data/lib/mailslurp_client/models/contact_projection.rb +39 -39
- data/lib/mailslurp_client/models/content_match_options.rb +6 -1
- data/lib/mailslurp_client/models/count_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_alias_options.rb +11 -1
- data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
- data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
- data/lib/mailslurp_client/models/create_group_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -1
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +24 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +21 -21
- data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
- data/lib/mailslurp_client/models/domain_dto.rb +100 -70
- data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
- data/lib/mailslurp_client/models/domain_preview.rb +29 -28
- data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
- data/lib/mailslurp_client/models/email.rb +179 -139
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
- data/lib/mailslurp_client/models/email_links_result.rb +19 -19
- data/lib/mailslurp_client/models/email_preview.rb +63 -48
- data/lib/mailslurp_client/models/email_projection.rb +77 -77
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
- data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
- data/lib/mailslurp_client/models/export_link.rb +1 -1
- data/lib/mailslurp_client/models/export_options.rb +2 -2
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
- data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
- data/lib/mailslurp_client/models/group_dto.rb +28 -28
- data/lib/mailslurp_client/models/group_projection.rb +29 -29
- data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
- data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
- data/lib/mailslurp_client/models/match_option.rb +18 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +77 -77
- data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/name_server_record.rb +16 -16
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
- data/lib/mailslurp_client/models/page_alias.rb +59 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
- data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
- data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
- data/lib/mailslurp_client/models/recipient.rb +19 -19
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
- data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
- data/lib/mailslurp_client/models/send_email_options.rb +112 -110
- data/lib/mailslurp_client/models/sender.rb +20 -19
- data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
- data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
- data/lib/mailslurp_client/models/sort.rb +1 -1
- data/lib/mailslurp_client/models/template_dto.rb +33 -33
- data/lib/mailslurp_client/models/template_projection.rb +37 -37
- data/lib/mailslurp_client/models/template_variable.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/thread_projection.rb +71 -71
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
- data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
- data/lib/mailslurp_client/models/validation_dto.rb +11 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -1
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
- data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
- data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
- data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -3
- 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(['
|
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
|
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 `SendEmailOptions` 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(['
|
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(['
|
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
|
393
|
-
data, _status_code, _headers =
|
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 `name` and `content-type`. Use the `attachmentId` 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
|
403
|
+
def get_attachments1_with_http_info(opts = {})
|
408
404
|
if @api_client.config.debugging
|
409
|
-
@api_client.config.logger.debug 'Calling API: AttachmentControllerApi.
|
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(['
|
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#
|
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
|
-
#
|
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(
|
466
|
-
data, _status_code, _headers = upload_attachment_with_http_info(
|
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
|
-
#
|
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(
|
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 '
|
480
|
-
if @api_client.config.client_side_validation &&
|
481
|
-
fail ArgumentError, "Missing the required parameter '
|
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(['
|
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(
|
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
|
-
#
|
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 `application/pdf`
|
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
|
-
#
|
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 `application/pdf`
|
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(
|
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(
|
599
|
-
data, _status_code, _headers = upload_multipart_form_with_http_info(
|
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 `SendEmailOptions` 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(
|
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(['
|
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(['
|
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(['
|
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 [
|
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 [
|
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(['
|
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(['
|
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(['
|
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<
|
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<
|
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(['
|
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<
|
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
|
84
|
+
# @param request_body [Array<String>]
|
85
85
|
# @param [Hash] opts the optional parameters
|
86
86
|
# @return [nil]
|
87
|
-
def bulk_delete_inboxes(
|
88
|
-
bulk_delete_inboxes_with_http_info(
|
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
|
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(
|
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 '
|
101
|
-
if @api_client.config.client_side_validation &&
|
102
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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]
|
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]
|
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 = {})
|