mailslurp_client 15.0.0 → 15.0.4
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 +59 -55
- data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
- data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
- data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
- data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
- data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
- data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
- data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
- data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
- data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
- data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
- data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
- data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
- data/lib/mailslurp_client/configuration.rb +4 -4
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
- data/lib/mailslurp_client/models/alias_dto.rb +45 -56
- data/lib/mailslurp_client/models/alias_projection.rb +42 -72
- data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
- data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
- data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
- data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
- data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
- data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
- data/lib/mailslurp_client/models/condition_option.rb +2 -2
- data/lib/mailslurp_client/models/contact_dto.rb +53 -73
- data/lib/mailslurp_client/models/contact_projection.rb +42 -52
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
- data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
- data/lib/mailslurp_client/models/create_group_options.rb +0 -5
- data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
- data/lib/mailslurp_client/models/create_template_options.rb +0 -10
- data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
- data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
- data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
- data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
- data/lib/mailslurp_client/models/domain_dto.rb +59 -80
- data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
- data/lib/mailslurp_client/models/domain_preview.rb +26 -50
- data/lib/mailslurp_client/models/email.rb +134 -135
- data/lib/mailslurp_client/models/email_analysis.rb +28 -28
- data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
- data/lib/mailslurp_client/models/email_links_result.rb +13 -23
- data/lib/mailslurp_client/models/email_preview.rb +47 -47
- data/lib/mailslurp_client/models/email_projection.rb +77 -97
- data/lib/mailslurp_client/models/email_recipients.rb +16 -15
- data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
- data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
- data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
- data/lib/mailslurp_client/models/export_link.rb +0 -5
- data/lib/mailslurp_client/models/export_options.rb +1 -6
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
- data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
- data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
- data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
- data/lib/mailslurp_client/models/group_dto.rb +22 -37
- data/lib/mailslurp_client/models/group_projection.rb +22 -37
- data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
- data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
- data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
- data/lib/mailslurp_client/models/match_option.rb +7 -2
- data/lib/mailslurp_client/models/match_options.rb +16 -16
- data/lib/mailslurp_client/models/missed_email.rb +67 -102
- data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/name_server_record.rb +10 -30
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
- data/lib/mailslurp_client/models/page_alias.rb +52 -52
- data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
- data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
- data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
- data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
- data/lib/mailslurp_client/models/pageable.rb +10 -10
- data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
- data/lib/mailslurp_client/models/recipient.rb +13 -23
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
- data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
- data/lib/mailslurp_client/models/send_email_options.rb +107 -115
- data/lib/mailslurp_client/models/sender.rb +14 -23
- data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
- data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
- data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
- data/lib/mailslurp_client/models/template_dto.rb +22 -47
- data/lib/mailslurp_client/models/template_projection.rb +16 -41
- data/lib/mailslurp_client/models/template_variable.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
- data/lib/mailslurp_client/models/thread_projection.rb +60 -95
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/unread_count.rb +0 -5
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
- data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
- data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
- data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
- data/lib/mailslurp_client/models/validation_message.rb +1 -5
- data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
- data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
- data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
- data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
- data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
- data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
- data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
- data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -1
- 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: 54b679b105fd2bfae8a3a9c0ac429705d07dd8ca31196490568b6545b791e49d
|
4
|
+
data.tar.gz: 5c47bd53e56968d340f1a1261a5043e2a0b54191d19dbf9a488ce8527e40bbfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b08ae9e944c6447d5d3e486b23b3879d5e5c78a7544211db6e7246f32b39b489b0c01eeca1087e7ad7c1235dcf7222190c02da8628f39c861a2804d0cb0776
|
7
|
+
data.tar.gz: 39e82817639b411c40004114df0cd9b69d6021dc3d18bdc7c1df8d125972575f7578f2543ec065b6bd857bce1b45e9ce354a297a96d383b8b04c9ef6b14da367
|
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
|
|
@@ -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']
|