mailslurp_client 15.0.2 → 15.0.6
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 +191 -117
- 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 +360 -226
- 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 +11 -26
- data/lib/mailslurp_client/models/alias_dto.rb +46 -57
- data/lib/mailslurp_client/models/alias_projection.rb +38 -68
- data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
- data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
- data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
- data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
- data/lib/mailslurp_client/models/condition_option.rb +3 -3
- data/lib/mailslurp_client/models/contact_dto.rb +54 -74
- data/lib/mailslurp_client/models/contact_projection.rb +43 -53
- data/lib/mailslurp_client/models/content_match_options.rb +1 -1
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_alias_options.rb +1 -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 -6
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -11
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +19 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +16 -26
- data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
- data/lib/mailslurp_client/models/domain_dto.rb +60 -81
- data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
- data/lib/mailslurp_client/models/domain_preview.rb +27 -51
- data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
- data/lib/mailslurp_client/models/email.rb +135 -136
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
- data/lib/mailslurp_client/models/email_links_result.rb +14 -24
- data/lib/mailslurp_client/models/email_preview.rb +48 -48
- data/lib/mailslurp_client/models/email_projection.rb +67 -87
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
- data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
- data/lib/mailslurp_client/models/export_link.rb +1 -6
- data/lib/mailslurp_client/models/export_options.rb +2 -7
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
- data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
- data/lib/mailslurp_client/models/group_dto.rb +23 -38
- data/lib/mailslurp_client/models/group_projection.rb +23 -38
- data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
- data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
- data/lib/mailslurp_client/models/match_option.rb +8 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +68 -103
- data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/name_server_record.rb +11 -31
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
- data/lib/mailslurp_client/models/page_alias.rb +50 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
- data/lib/mailslurp_client/models/pageable.rb +29 -29
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
- data/lib/mailslurp_client/models/recipient.rb +14 -24
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
- data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
- data/lib/mailslurp_client/models/send_email_options.rb +108 -116
- data/lib/mailslurp_client/models/sender.rb +15 -24
- data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
- data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
- data/lib/mailslurp_client/models/sort.rb +14 -14
- data/lib/mailslurp_client/models/template_dto.rb +23 -48
- data/lib/mailslurp_client/models/template_projection.rb +26 -51
- data/lib/mailslurp_client/models/template_variable.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
- data/lib/mailslurp_client/models/thread_projection.rb +58 -93
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/unread_count.rb +1 -6
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
- 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 -6
- 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 +1 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -6
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
- data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
- data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
- data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
- data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6959d1ce1f57d0e522da0bd747963f5868e399f5e327521057d95aaeb128bb1
|
4
|
+
data.tar.gz: c67e7e8161dbcccfb63fc985e828eac77587f934c2a07c8670d0375c02254d41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 014cad7bdde7a28a961c88d2d4ecc32a7e9ac5d7a85a99becf808d789129ac5b960c7422c93f5a706f9aba34c9dd8ce729ef263916f42737c471482218f9c472
|
7
|
+
data.tar.gz: 8f5aef45a3f426f3f000c21133d7a4ccd8384fd04caf1ee221b760c79ef3db836a4693e04f9d83d59dfd45986027db8154ba2925ac00deb973313173d05f812f
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2022 MailSlurp Email API (Provided by Pettman OÜ, Estonia)
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
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
|
|
@@ -21,7 +21,7 @@ module MailSlurpClient
|
|
21
21
|
end
|
22
22
|
# Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active.
|
23
23
|
# Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
|
24
|
-
# @param create_alias_options [CreateAliasOptions]
|
24
|
+
# @param create_alias_options [CreateAliasOptions]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AliasDto]
|
27
27
|
def create_alias(create_alias_options, opts = {})
|
@@ -31,7 +31,7 @@ module MailSlurpClient
|
|
31
31
|
|
32
32
|
# Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active.
|
33
33
|
# Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
|
34
|
-
# @param create_alias_options [CreateAliasOptions]
|
34
|
+
# @param create_alias_options [CreateAliasOptions]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AliasDto, Integer, Hash)>] AliasDto data, response status code and response headers
|
37
37
|
def create_alias_with_http_info(create_alias_options, opts = {})
|
@@ -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
|
# HTTP header 'Content-Type'
|
56
56
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
57
|
|
@@ -84,7 +84,7 @@ module MailSlurpClient
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Delete an email alias
|
87
|
-
# @param alias_id [String]
|
87
|
+
# @param alias_id [String]
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @return [nil]
|
90
90
|
def delete_alias(alias_id, opts = {})
|
@@ -93,7 +93,7 @@ module MailSlurpClient
|
|
93
93
|
end
|
94
94
|
|
95
95
|
# Delete an email alias
|
96
|
-
# @param alias_id [String]
|
96
|
+
# @param alias_id [String]
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
99
99
|
def delete_alias_with_http_info(alias_id, opts = {})
|
@@ -143,7 +143,7 @@ module MailSlurpClient
|
|
143
143
|
|
144
144
|
# Get an email alias
|
145
145
|
# Get an email alias by ID
|
146
|
-
# @param alias_id [String]
|
146
|
+
# @param alias_id [String]
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [AliasDto]
|
149
149
|
def get_alias(alias_id, opts = {})
|
@@ -153,7 +153,7 @@ module MailSlurpClient
|
|
153
153
|
|
154
154
|
# Get an email alias
|
155
155
|
# Get an email alias by ID
|
156
|
-
# @param alias_id [String]
|
156
|
+
# @param alias_id [String]
|
157
157
|
# @param [Hash] opts the optional parameters
|
158
158
|
# @return [Array<(AliasDto, Integer, Hash)>] AliasDto data, response status code and response headers
|
159
159
|
def get_alias_with_http_info(alias_id, opts = {})
|
@@ -173,7 +173,7 @@ module MailSlurpClient
|
|
173
173
|
# header parameters
|
174
174
|
header_params = opts[:header_params] || {}
|
175
175
|
# HTTP header 'Accept' (if needed)
|
176
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
177
177
|
|
178
178
|
# form parameters
|
179
179
|
form_params = opts[:form_params] || {}
|
@@ -205,13 +205,13 @@ module MailSlurpClient
|
|
205
205
|
|
206
206
|
# Get emails for an alias
|
207
207
|
# Get paginated emails for an alias by ID
|
208
|
-
# @param alias_id [String]
|
208
|
+
# @param alias_id [String]
|
209
209
|
# @param [Hash] opts the optional parameters
|
210
|
-
# @option opts [DateTime] :before Optional filter by sent before given date time
|
211
210
|
# @option opts [Integer] :page Optional page index alias email list pagination (default to 0)
|
212
|
-
# @option opts [DateTime] :since Optional filter by sent after given date time
|
213
211
|
# @option opts [Integer] :size Optional page size alias email list pagination (default to 20)
|
214
212
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
213
|
+
# @option opts [DateTime] :since Optional filter by sent after given date time
|
214
|
+
# @option opts [DateTime] :before Optional filter by sent before given date time
|
215
215
|
# @return [PageEmailProjection]
|
216
216
|
def get_alias_emails(alias_id, opts = {})
|
217
217
|
data, _status_code, _headers = get_alias_emails_with_http_info(alias_id, opts)
|
@@ -220,13 +220,13 @@ module MailSlurpClient
|
|
220
220
|
|
221
221
|
# Get emails for an alias
|
222
222
|
# Get paginated emails for an alias by ID
|
223
|
-
# @param alias_id [String]
|
223
|
+
# @param alias_id [String]
|
224
224
|
# @param [Hash] opts the optional parameters
|
225
|
-
# @option opts [DateTime] :before Optional filter by sent before given date time
|
226
225
|
# @option opts [Integer] :page Optional page index alias email list pagination
|
227
|
-
# @option opts [DateTime] :since Optional filter by sent after given date time
|
228
226
|
# @option opts [Integer] :size Optional page size alias email list pagination
|
229
227
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
228
|
+
# @option opts [DateTime] :since Optional filter by sent after given date time
|
229
|
+
# @option opts [DateTime] :before Optional filter by sent before given date time
|
230
230
|
# @return [Array<(PageEmailProjection, Integer, Hash)>] PageEmailProjection data, response status code and response headers
|
231
231
|
def get_alias_emails_with_http_info(alias_id, opts = {})
|
232
232
|
if @api_client.config.debugging
|
@@ -245,16 +245,16 @@ module MailSlurpClient
|
|
245
245
|
|
246
246
|
# query parameters
|
247
247
|
query_params = opts[:query_params] || {}
|
248
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
249
248
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
250
|
-
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
251
249
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
252
250
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
251
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
252
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
253
253
|
|
254
254
|
# header parameters
|
255
255
|
header_params = opts[:header_params] || {}
|
256
256
|
# HTTP header 'Accept' (if needed)
|
257
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
258
258
|
|
259
259
|
# form parameters
|
260
260
|
form_params = opts[:form_params] || {}
|
@@ -286,13 +286,13 @@ module MailSlurpClient
|
|
286
286
|
|
287
287
|
# Get threads created for an alias
|
288
288
|
# Returns threads created for an email alias in paginated form
|
289
|
-
# @param alias_id [String]
|
289
|
+
# @param alias_id [String]
|
290
290
|
# @param [Hash] opts the optional parameters
|
291
|
-
# @option opts [DateTime] :before Optional filter by sent before given date time
|
292
291
|
# @option opts [Integer] :page Optional page index in thread list pagination (default to 0)
|
293
|
-
# @option opts [DateTime] :since Optional filter by sent after given date time
|
294
292
|
# @option opts [Integer] :size Optional page size in thread list pagination (default to 20)
|
295
293
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
294
|
+
# @option opts [DateTime] :since Optional filter by sent after given date time
|
295
|
+
# @option opts [DateTime] :before Optional filter by sent before given date time
|
296
296
|
# @return [PageThreadProjection]
|
297
297
|
def get_alias_threads(alias_id, opts = {})
|
298
298
|
data, _status_code, _headers = get_alias_threads_with_http_info(alias_id, opts)
|
@@ -301,13 +301,13 @@ module MailSlurpClient
|
|
301
301
|
|
302
302
|
# Get threads created for an alias
|
303
303
|
# Returns threads created for an email alias in paginated form
|
304
|
-
# @param alias_id [String]
|
304
|
+
# @param alias_id [String]
|
305
305
|
# @param [Hash] opts the optional parameters
|
306
|
-
# @option opts [DateTime] :before Optional filter by sent before given date time
|
307
306
|
# @option opts [Integer] :page Optional page index in thread list pagination
|
308
|
-
# @option opts [DateTime] :since Optional filter by sent after given date time
|
309
307
|
# @option opts [Integer] :size Optional page size in thread list pagination
|
310
308
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
309
|
+
# @option opts [DateTime] :since Optional filter by sent after given date time
|
310
|
+
# @option opts [DateTime] :before Optional filter by sent before given date time
|
311
311
|
# @return [Array<(PageThreadProjection, Integer, Hash)>] PageThreadProjection data, response status code and response headers
|
312
312
|
def get_alias_threads_with_http_info(alias_id, opts = {})
|
313
313
|
if @api_client.config.debugging
|
@@ -326,16 +326,16 @@ module MailSlurpClient
|
|
326
326
|
|
327
327
|
# query parameters
|
328
328
|
query_params = opts[:query_params] || {}
|
329
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
330
329
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
331
|
-
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
332
330
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
333
331
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
332
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
333
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
334
334
|
|
335
335
|
# header parameters
|
336
336
|
header_params = opts[:header_params] || {}
|
337
337
|
# HTTP header 'Accept' (if needed)
|
338
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
338
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
339
339
|
|
340
340
|
# form parameters
|
341
341
|
form_params = opts[:form_params] || {}
|
@@ -368,11 +368,11 @@ module MailSlurpClient
|
|
368
368
|
# Get all email aliases you have created
|
369
369
|
# Get all email aliases in paginated form
|
370
370
|
# @param [Hash] opts the optional parameters
|
371
|
-
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
372
371
|
# @option opts [Integer] :page Optional page index in alias list pagination (default to 0)
|
373
|
-
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
374
372
|
# @option opts [Integer] :size Optional page size in alias list pagination (default to 20)
|
375
373
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
374
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
375
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
376
376
|
# @return [PageAlias]
|
377
377
|
def get_aliases(opts = {})
|
378
378
|
data, _status_code, _headers = get_aliases_with_http_info(opts)
|
@@ -382,11 +382,11 @@ module MailSlurpClient
|
|
382
382
|
# Get all email aliases you have created
|
383
383
|
# Get all email aliases in paginated form
|
384
384
|
# @param [Hash] opts the optional parameters
|
385
|
-
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
386
385
|
# @option opts [Integer] :page Optional page index in alias list pagination
|
387
|
-
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
388
386
|
# @option opts [Integer] :size Optional page size in alias list pagination
|
389
387
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
388
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
389
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
390
390
|
# @return [Array<(PageAlias, Integer, Hash)>] PageAlias data, response status code and response headers
|
391
391
|
def get_aliases_with_http_info(opts = {})
|
392
392
|
if @api_client.config.debugging
|
@@ -401,16 +401,16 @@ module MailSlurpClient
|
|
401
401
|
|
402
402
|
# query parameters
|
403
403
|
query_params = opts[:query_params] || {}
|
404
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
405
404
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
406
|
-
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
407
405
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
408
406
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
407
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
408
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
409
409
|
|
410
410
|
# header parameters
|
411
411
|
header_params = opts[:header_params] || {}
|
412
412
|
# HTTP header 'Accept' (if needed)
|
413
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
413
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
414
414
|
|
415
415
|
# form parameters
|
416
416
|
form_params = opts[:form_params] || {}
|
@@ -444,7 +444,7 @@ module MailSlurpClient
|
|
444
444
|
# Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`.
|
445
445
|
# @param alias_id [String] ID of the alias that email belongs to
|
446
446
|
# @param email_id [String] ID of the email that should be replied to
|
447
|
-
# @param reply_to_alias_email_options [ReplyToAliasEmailOptions]
|
447
|
+
# @param reply_to_alias_email_options [ReplyToAliasEmailOptions]
|
448
448
|
# @param [Hash] opts the optional parameters
|
449
449
|
# @return [SentEmailDto]
|
450
450
|
def reply_to_alias_email(alias_id, email_id, reply_to_alias_email_options, opts = {})
|
@@ -456,7 +456,7 @@ module MailSlurpClient
|
|
456
456
|
# Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`.
|
457
457
|
# @param alias_id [String] ID of the alias that email belongs to
|
458
458
|
# @param email_id [String] ID of the email that should be replied to
|
459
|
-
# @param reply_to_alias_email_options [ReplyToAliasEmailOptions]
|
459
|
+
# @param reply_to_alias_email_options [ReplyToAliasEmailOptions]
|
460
460
|
# @param [Hash] opts the optional parameters
|
461
461
|
# @return [Array<(SentEmailDto, Integer, Hash)>] SentEmailDto data, response status code and response headers
|
462
462
|
def reply_to_alias_email_with_http_info(alias_id, email_id, reply_to_alias_email_options, opts = {})
|
@@ -484,7 +484,7 @@ module MailSlurpClient
|
|
484
484
|
# header parameters
|
485
485
|
header_params = opts[:header_params] || {}
|
486
486
|
# HTTP header 'Accept' (if needed)
|
487
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
487
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
488
488
|
# HTTP header 'Content-Type'
|
489
489
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
490
490
|
|
@@ -518,22 +518,22 @@ module MailSlurpClient
|
|
518
518
|
|
519
519
|
# Send an email from an alias inbox
|
520
520
|
# Send an email from an alias. Replies to the email will be forwarded to the alias masked email address
|
521
|
-
# @param alias_id [String]
|
521
|
+
# @param alias_id [String]
|
522
|
+
# @param send_email_options [SendEmailOptions]
|
522
523
|
# @param [Hash] opts the optional parameters
|
523
|
-
# @option opts [SendEmailOptions] :send_email_options Options for the email to be sent
|
524
524
|
# @return [SentEmailDto]
|
525
|
-
def send_alias_email(alias_id, opts = {})
|
526
|
-
data, _status_code, _headers = send_alias_email_with_http_info(alias_id, opts)
|
525
|
+
def send_alias_email(alias_id, send_email_options, opts = {})
|
526
|
+
data, _status_code, _headers = send_alias_email_with_http_info(alias_id, send_email_options, opts)
|
527
527
|
data
|
528
528
|
end
|
529
529
|
|
530
530
|
# Send an email from an alias inbox
|
531
531
|
# Send an email from an alias. Replies to the email will be forwarded to the alias masked email address
|
532
|
-
# @param alias_id [String]
|
532
|
+
# @param alias_id [String]
|
533
|
+
# @param send_email_options [SendEmailOptions]
|
533
534
|
# @param [Hash] opts the optional parameters
|
534
|
-
# @option opts [SendEmailOptions] :send_email_options Options for the email to be sent
|
535
535
|
# @return [Array<(SentEmailDto, Integer, Hash)>] SentEmailDto data, response status code and response headers
|
536
|
-
def send_alias_email_with_http_info(alias_id, opts = {})
|
536
|
+
def send_alias_email_with_http_info(alias_id, send_email_options, opts = {})
|
537
537
|
if @api_client.config.debugging
|
538
538
|
@api_client.config.logger.debug 'Calling API: AliasControllerApi.send_alias_email ...'
|
539
539
|
end
|
@@ -541,6 +541,10 @@ module MailSlurpClient
|
|
541
541
|
if @api_client.config.client_side_validation && alias_id.nil?
|
542
542
|
fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.send_alias_email"
|
543
543
|
end
|
544
|
+
# verify the required parameter 'send_email_options' is set
|
545
|
+
if @api_client.config.client_side_validation && send_email_options.nil?
|
546
|
+
fail ArgumentError, "Missing the required parameter 'send_email_options' when calling AliasControllerApi.send_alias_email"
|
547
|
+
end
|
544
548
|
# resource path
|
545
549
|
local_var_path = '/aliases/{aliasId}/emails'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
|
546
550
|
|
@@ -550,7 +554,7 @@ module MailSlurpClient
|
|
550
554
|
# header parameters
|
551
555
|
header_params = opts[:header_params] || {}
|
552
556
|
# HTTP header 'Accept' (if needed)
|
553
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
557
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
554
558
|
# HTTP header 'Content-Type'
|
555
559
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
556
560
|
|
@@ -558,7 +562,7 @@ module MailSlurpClient
|
|
558
562
|
form_params = opts[:form_params] || {}
|
559
563
|
|
560
564
|
# http body (model)
|
561
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
565
|
+
post_body = opts[:body] || @api_client.object_to_http_body(send_email_options)
|
562
566
|
|
563
567
|
# return_type
|
564
568
|
return_type = opts[:return_type] || 'SentEmailDto'
|
@@ -583,20 +587,20 @@ module MailSlurpClient
|
|
583
587
|
end
|
584
588
|
|
585
589
|
# Update an email alias
|
586
|
-
# @param alias_id [String]
|
587
|
-
# @param update_alias_options [UpdateAliasOptions]
|
590
|
+
# @param alias_id [String]
|
591
|
+
# @param update_alias_options [UpdateAliasOptions]
|
588
592
|
# @param [Hash] opts the optional parameters
|
589
|
-
# @return [
|
593
|
+
# @return [AliasDto]
|
590
594
|
def update_alias(alias_id, update_alias_options, opts = {})
|
591
|
-
update_alias_with_http_info(alias_id, update_alias_options, opts)
|
592
|
-
|
595
|
+
data, _status_code, _headers = update_alias_with_http_info(alias_id, update_alias_options, opts)
|
596
|
+
data
|
593
597
|
end
|
594
598
|
|
595
599
|
# Update an email alias
|
596
|
-
# @param alias_id [String]
|
597
|
-
# @param update_alias_options [UpdateAliasOptions]
|
600
|
+
# @param alias_id [String]
|
601
|
+
# @param update_alias_options [UpdateAliasOptions]
|
598
602
|
# @param [Hash] opts the optional parameters
|
599
|
-
# @return [Array<(
|
603
|
+
# @return [Array<(AliasDto, Integer, Hash)>] AliasDto data, response status code and response headers
|
600
604
|
def update_alias_with_http_info(alias_id, update_alias_options, opts = {})
|
601
605
|
if @api_client.config.debugging
|
602
606
|
@api_client.config.logger.debug 'Calling API: AliasControllerApi.update_alias ...'
|
@@ -618,7 +622,7 @@ module MailSlurpClient
|
|
618
622
|
# header parameters
|
619
623
|
header_params = opts[:header_params] || {}
|
620
624
|
# HTTP header 'Accept' (if needed)
|
621
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
625
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
622
626
|
# HTTP header 'Content-Type'
|
623
627
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
624
628
|
|
@@ -629,7 +633,7 @@ module MailSlurpClient
|
|
629
633
|
post_body = opts[:body] || @api_client.object_to_http_body(update_alias_options)
|
630
634
|
|
631
635
|
# return_type
|
632
|
-
return_type = opts[:return_type]
|
636
|
+
return_type = opts[:return_type] || 'AliasDto'
|
633
637
|
|
634
638
|
# auth_names
|
635
639
|
auth_names = opts[:auth_names] || ['API_KEY']
|