mailslurp_client 15.13.32 → 15.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/api_user_controller_api.rb +0 -4
- data/lib/mailslurp_client/api/bounce_controller_api.rb +76 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +131 -5
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +145 -0
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +6 -6
- data/lib/mailslurp_client/models/alias_dto.rb +5 -0
- data/lib/mailslurp_client/models/alias_projection.rb +13 -13
- data/lib/mailslurp_client/models/attachment_entity.rb +0 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +3 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +3 -0
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +3 -0
- data/lib/mailslurp_client/models/bounced_email_dto.rb +12 -0
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +10 -0
- data/lib/mailslurp_client/models/contact_dto.rb +7 -0
- data/lib/mailslurp_client/models/contact_projection.rb +5 -0
- data/lib/mailslurp_client/models/create_alias_options.rb +2 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
- data/lib/mailslurp_client/models/create_group_options.rb +1 -0
- data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -0
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +2 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +2 -0
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -0
- data/lib/mailslurp_client/models/domain_dto.rb +1 -0
- data/lib/mailslurp_client/models/domain_preview.rb +1 -0
- data/lib/mailslurp_client/models/email.rb +1 -0
- data/lib/mailslurp_client/models/email_preview.rb +1 -0
- data/lib/mailslurp_client/models/email_projection.rb +35 -27
- data/lib/mailslurp_client/models/{email_validation_request.rb → email_validation_request_dto.rb} +8 -3
- data/lib/mailslurp_client/models/email_verification_result.rb +1 -0
- data/lib/mailslurp_client/models/expiration_defaults.rb +3 -0
- data/lib/mailslurp_client/models/export_options.rb +5 -0
- data/lib/mailslurp_client/models/forward_email_options.rb +20 -4
- data/lib/mailslurp_client/models/group_dto.rb +1 -0
- data/lib/mailslurp_client/models/group_projection.rb +1 -0
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_by_name_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +316 -0
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +250 -0
- data/lib/mailslurp_client/models/match_options.rb +2 -0
- data/lib/mailslurp_client/models/{missed_email.rb → missed_email_dto.rb} +16 -3
- data/lib/mailslurp_client/models/missed_email_projection.rb +3 -0
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -0
- data/lib/mailslurp_client/models/page_email_validation_request.rb +1 -1
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +308 -0
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +308 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/recipient.rb +1 -0
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +6 -0
- data/lib/mailslurp_client/models/reply_to_email_options.rb +8 -0
- data/lib/mailslurp_client/models/scheduled_job.rb +2 -2
- data/lib/mailslurp_client/models/scheduled_job_dto.rb +371 -0
- data/lib/mailslurp_client/models/send_email_options.rb +20 -0
- data/lib/mailslurp_client/models/sent_email_dto.rb +22 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +48 -48
- data/lib/mailslurp_client/models/simple_send_email_options.rb +3 -0
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/template_projection.rb +20 -20
- data/lib/mailslurp_client/models/thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +4 -0
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -0
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -0
- data/lib/mailslurp_client/models/verify_email_address_options.rb +3 -0
- data/lib/mailslurp_client/models/wait_for_conditions.rb +8 -0
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +8 -0
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +3 -0
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -0
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +6 -0
- data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
- data/lib/mailslurp_client/models/webhook_test_response.rb +2 -0
- data/lib/mailslurp_client/models/webhook_test_result.rb +1 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +7 -2
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3afacb167496caeeb14fd0729514b99481e413fed1937c125b30f3daa185a28d
|
4
|
+
data.tar.gz: 2a1f0dba656f186fe4dacbbbda10b57786c226e64406fd0a1f2ffd2041d78f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe3e225c87ec823b407fec99d2fd08fedcf19223f85d9510d17095a80c37d1a6603da9fe0f5cb92db40c81680ced407dc5ee3069651590523954449db32b9d88
|
7
|
+
data.tar.gz: 38c1dabe8262bff661abf071f4cdf79a8f5b80543c50ad48863c42eaeb6720be3cf2d7cb8a4b7e89cd22489469ba7f213b7dd155dffb75e9222e6fc2afe87357
|
@@ -42,10 +42,6 @@ module MailSlurpClient
|
|
42
42
|
if @api_client.config.client_side_validation && property.nil?
|
43
43
|
fail ArgumentError, "Missing the required parameter 'property' when calling ApiUserControllerApi.get_json_property_as_string"
|
44
44
|
end
|
45
|
-
# verify the required parameter 'body' is set
|
46
|
-
if @api_client.config.client_side_validation && body.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ApiUserControllerApi.get_json_property_as_string"
|
48
|
-
end
|
49
45
|
# resource path
|
50
46
|
local_var_path = '/user/json/pluck'
|
51
47
|
|
@@ -443,5 +443,81 @@ module MailSlurpClient
|
|
443
443
|
end
|
444
444
|
return data, status_code, headers
|
445
445
|
end
|
446
|
+
|
447
|
+
# Get paginated list of unsubscribed recipients.
|
448
|
+
# Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again.
|
449
|
+
# @param [Hash] opts the optional parameters
|
450
|
+
# @option opts [Integer] :page Optional page index (default to 0)
|
451
|
+
# @option opts [Integer] :size Optional page size (default to 20)
|
452
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
453
|
+
# @option opts [String] :domain_id Filter by domainId
|
454
|
+
# @return [PageListUnsubscribeRecipients]
|
455
|
+
def get_list_unsubscribe_recipients(opts = {})
|
456
|
+
data, _status_code, _headers = get_list_unsubscribe_recipients_with_http_info(opts)
|
457
|
+
data
|
458
|
+
end
|
459
|
+
|
460
|
+
# Get paginated list of unsubscribed recipients.
|
461
|
+
# Unsubscribed recipient have unsubscribed from a mailing list for a user or domain and cannot be contacted again.
|
462
|
+
# @param [Hash] opts the optional parameters
|
463
|
+
# @option opts [Integer] :page Optional page index
|
464
|
+
# @option opts [Integer] :size Optional page size
|
465
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
466
|
+
# @option opts [String] :domain_id Filter by domainId
|
467
|
+
# @return [Array<(PageListUnsubscribeRecipients, Integer, Hash)>] PageListUnsubscribeRecipients data, response status code and response headers
|
468
|
+
def get_list_unsubscribe_recipients_with_http_info(opts = {})
|
469
|
+
if @api_client.config.debugging
|
470
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_list_unsubscribe_recipients ...'
|
471
|
+
end
|
472
|
+
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
|
473
|
+
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling BounceControllerApi.get_list_unsubscribe_recipients, must be smaller than or equal to 100.'
|
474
|
+
end
|
475
|
+
|
476
|
+
allowable_values = ["ASC", "DESC"]
|
477
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
478
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
479
|
+
end
|
480
|
+
# resource path
|
481
|
+
local_var_path = '/bounce/list-unsubscribe-recipients'
|
482
|
+
|
483
|
+
# query parameters
|
484
|
+
query_params = opts[:query_params] || {}
|
485
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
486
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
487
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
488
|
+
query_params[:'domainId'] = opts[:'domain_id'] if !opts[:'domain_id'].nil?
|
489
|
+
|
490
|
+
# header parameters
|
491
|
+
header_params = opts[:header_params] || {}
|
492
|
+
# HTTP header 'Accept' (if needed)
|
493
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
494
|
+
|
495
|
+
# form parameters
|
496
|
+
form_params = opts[:form_params] || {}
|
497
|
+
|
498
|
+
# http body (model)
|
499
|
+
post_body = opts[:body]
|
500
|
+
|
501
|
+
# return_type
|
502
|
+
return_type = opts[:return_type] || 'PageListUnsubscribeRecipients'
|
503
|
+
|
504
|
+
# auth_names
|
505
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
506
|
+
|
507
|
+
new_options = opts.merge(
|
508
|
+
:header_params => header_params,
|
509
|
+
:query_params => query_params,
|
510
|
+
:form_params => form_params,
|
511
|
+
:body => post_body,
|
512
|
+
:auth_names => auth_names,
|
513
|
+
:return_type => return_type
|
514
|
+
)
|
515
|
+
|
516
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
517
|
+
if @api_client.config.debugging
|
518
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_list_unsubscribe_recipients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
519
|
+
end
|
520
|
+
return data, status_code, headers
|
521
|
+
end
|
446
522
|
end
|
447
523
|
end
|
@@ -19,6 +19,68 @@ module MailSlurpClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Cancel a scheduled email job
|
23
|
+
# Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete.
|
24
|
+
# @param job_id [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [ScheduledJobDto]
|
27
|
+
def cancel_scheduled_job(job_id, opts = {})
|
28
|
+
data, _status_code, _headers = cancel_scheduled_job_with_http_info(job_id, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Cancel a scheduled email job
|
33
|
+
# Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete.
|
34
|
+
# @param job_id [String]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(ScheduledJobDto, Integer, Hash)>] ScheduledJobDto data, response status code and response headers
|
37
|
+
def cancel_scheduled_job_with_http_info(job_id, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.cancel_scheduled_job ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'job_id' is set
|
42
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling InboxControllerApi.cancel_scheduled_job"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/inboxes/scheduled-jobs/{jobId}'.sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'ScheduledJobDto'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#cancel_scheduled_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
22
84
|
# Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either `SMTP` or `HTTP` inboxes.
|
23
85
|
# Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty.
|
24
86
|
# @param [Hash] opts the optional parameters
|
@@ -1808,6 +1870,68 @@ module MailSlurpClient
|
|
1808
1870
|
return data, status_code, headers
|
1809
1871
|
end
|
1810
1872
|
|
1873
|
+
# Get a scheduled email job
|
1874
|
+
# Get a scheduled email job details.
|
1875
|
+
# @param job_id [String]
|
1876
|
+
# @param [Hash] opts the optional parameters
|
1877
|
+
# @return [ScheduledJobDto]
|
1878
|
+
def get_scheduled_job(job_id, opts = {})
|
1879
|
+
data, _status_code, _headers = get_scheduled_job_with_http_info(job_id, opts)
|
1880
|
+
data
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
# Get a scheduled email job
|
1884
|
+
# Get a scheduled email job details.
|
1885
|
+
# @param job_id [String]
|
1886
|
+
# @param [Hash] opts the optional parameters
|
1887
|
+
# @return [Array<(ScheduledJobDto, Integer, Hash)>] ScheduledJobDto data, response status code and response headers
|
1888
|
+
def get_scheduled_job_with_http_info(job_id, opts = {})
|
1889
|
+
if @api_client.config.debugging
|
1890
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_scheduled_job ...'
|
1891
|
+
end
|
1892
|
+
# verify the required parameter 'job_id' is set
|
1893
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
1894
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling InboxControllerApi.get_scheduled_job"
|
1895
|
+
end
|
1896
|
+
# resource path
|
1897
|
+
local_var_path = '/inboxes/scheduled-jobs/{jobId}'.sub('{' + 'jobId' + '}', CGI.escape(job_id.to_s))
|
1898
|
+
|
1899
|
+
# query parameters
|
1900
|
+
query_params = opts[:query_params] || {}
|
1901
|
+
|
1902
|
+
# header parameters
|
1903
|
+
header_params = opts[:header_params] || {}
|
1904
|
+
# HTTP header 'Accept' (if needed)
|
1905
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1906
|
+
|
1907
|
+
# form parameters
|
1908
|
+
form_params = opts[:form_params] || {}
|
1909
|
+
|
1910
|
+
# http body (model)
|
1911
|
+
post_body = opts[:body]
|
1912
|
+
|
1913
|
+
# return_type
|
1914
|
+
return_type = opts[:return_type] || 'ScheduledJobDto'
|
1915
|
+
|
1916
|
+
# auth_names
|
1917
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1918
|
+
|
1919
|
+
new_options = opts.merge(
|
1920
|
+
:header_params => header_params,
|
1921
|
+
:query_params => query_params,
|
1922
|
+
:form_params => form_params,
|
1923
|
+
:body => post_body,
|
1924
|
+
:auth_names => auth_names,
|
1925
|
+
:return_type => return_type
|
1926
|
+
)
|
1927
|
+
|
1928
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1929
|
+
if @api_client.config.debugging
|
1930
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_scheduled_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1931
|
+
end
|
1932
|
+
return data, status_code, headers
|
1933
|
+
end
|
1934
|
+
|
1811
1935
|
# Get all scheduled email sending jobs for the inbox
|
1812
1936
|
# Schedule sending of emails using scheduled jobs.
|
1813
1937
|
# @param inbox_id [String]
|
@@ -2408,10 +2532,10 @@ module MailSlurpClient
|
|
2408
2532
|
# @option opts [DateTime] :send_at_timestamp Sending timestamp
|
2409
2533
|
# @option opts [Integer] :send_at_now_plus_seconds Send after n seconds
|
2410
2534
|
# @option opts [Boolean] :validate_before_enqueue Validate before adding to queue
|
2411
|
-
# @return [
|
2535
|
+
# @return [ScheduledJobDto]
|
2412
2536
|
def send_with_schedule(inbox_id, send_email_options, opts = {})
|
2413
|
-
send_with_schedule_with_http_info(inbox_id, send_email_options, opts)
|
2414
|
-
|
2537
|
+
data, _status_code, _headers = send_with_schedule_with_http_info(inbox_id, send_email_options, opts)
|
2538
|
+
data
|
2415
2539
|
end
|
2416
2540
|
|
2417
2541
|
# Send email with with delay or schedule
|
@@ -2422,7 +2546,7 @@ module MailSlurpClient
|
|
2422
2546
|
# @option opts [DateTime] :send_at_timestamp Sending timestamp
|
2423
2547
|
# @option opts [Integer] :send_at_now_plus_seconds Send after n seconds
|
2424
2548
|
# @option opts [Boolean] :validate_before_enqueue Validate before adding to queue
|
2425
|
-
# @return [Array<(
|
2549
|
+
# @return [Array<(ScheduledJobDto, Integer, Hash)>] ScheduledJobDto data, response status code and response headers
|
2426
2550
|
def send_with_schedule_with_http_info(inbox_id, send_email_options, opts = {})
|
2427
2551
|
if @api_client.config.debugging
|
2428
2552
|
@api_client.config.logger.debug 'Calling API: InboxControllerApi.send_with_schedule ...'
|
@@ -2446,6 +2570,8 @@ module MailSlurpClient
|
|
2446
2570
|
|
2447
2571
|
# header parameters
|
2448
2572
|
header_params = opts[:header_params] || {}
|
2573
|
+
# HTTP header 'Accept' (if needed)
|
2574
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
2449
2575
|
# HTTP header 'Content-Type'
|
2450
2576
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2451
2577
|
|
@@ -2456,7 +2582,7 @@ module MailSlurpClient
|
|
2456
2582
|
post_body = opts[:body] || @api_client.object_to_http_body(send_email_options)
|
2457
2583
|
|
2458
2584
|
# return_type
|
2459
|
-
return_type = opts[:return_type]
|
2585
|
+
return_type = opts[:return_type] || 'ScheduledJobDto'
|
2460
2586
|
|
2461
2587
|
# auth_names
|
2462
2588
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -269,6 +269,81 @@ module MailSlurpClient
|
|
269
269
|
return data, status_code, headers
|
270
270
|
end
|
271
271
|
|
272
|
+
# Get an inbox forwarder event list
|
273
|
+
# Get inbox ruleset events
|
274
|
+
# @param id [String] ID of inbox forwarder
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @option opts [Integer] :page Optional page index in inbox forwarder event list pagination (default to 0)
|
277
|
+
# @option opts [Integer] :size Optional page size in inbox forwarder event list pagination (default to 20)
|
278
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
279
|
+
# @return [PageInboxForwarderEvents]
|
280
|
+
def get_inbox_forwarder_events(id, opts = {})
|
281
|
+
data, _status_code, _headers = get_inbox_forwarder_events_with_http_info(id, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Get an inbox forwarder event list
|
286
|
+
# Get inbox ruleset events
|
287
|
+
# @param id [String] ID of inbox forwarder
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @option opts [Integer] :page Optional page index in inbox forwarder event list pagination
|
290
|
+
# @option opts [Integer] :size Optional page size in inbox forwarder event list pagination
|
291
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
292
|
+
# @return [Array<(PageInboxForwarderEvents, Integer, Hash)>] PageInboxForwarderEvents data, response status code and response headers
|
293
|
+
def get_inbox_forwarder_events_with_http_info(id, opts = {})
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug 'Calling API: InboxForwarderControllerApi.get_inbox_forwarder_events ...'
|
296
|
+
end
|
297
|
+
# verify the required parameter 'id' is set
|
298
|
+
if @api_client.config.client_side_validation && id.nil?
|
299
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling InboxForwarderControllerApi.get_inbox_forwarder_events"
|
300
|
+
end
|
301
|
+
allowable_values = ["ASC", "DESC"]
|
302
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
303
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
304
|
+
end
|
305
|
+
# resource path
|
306
|
+
local_var_path = '/forwarders/{id}/events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
307
|
+
|
308
|
+
# query parameters
|
309
|
+
query_params = opts[:query_params] || {}
|
310
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
311
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
312
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
header_params = opts[:header_params] || {}
|
316
|
+
# HTTP header 'Accept' (if needed)
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = opts[:form_params] || {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = opts[:body]
|
324
|
+
|
325
|
+
# return_type
|
326
|
+
return_type = opts[:return_type] || 'PageInboxForwarderEvents'
|
327
|
+
|
328
|
+
# auth_names
|
329
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
330
|
+
|
331
|
+
new_options = opts.merge(
|
332
|
+
:header_params => header_params,
|
333
|
+
:query_params => query_params,
|
334
|
+
:form_params => form_params,
|
335
|
+
:body => post_body,
|
336
|
+
:auth_names => auth_names,
|
337
|
+
:return_type => return_type
|
338
|
+
)
|
339
|
+
|
340
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug "API called: InboxForwarderControllerApi#get_inbox_forwarder_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
|
+
end
|
344
|
+
return data, status_code, headers
|
345
|
+
end
|
346
|
+
|
272
347
|
# List inbox forwarders
|
273
348
|
# List all forwarders attached to an inbox
|
274
349
|
# @param [Hash] opts the optional parameters
|
@@ -554,5 +629,75 @@ module MailSlurpClient
|
|
554
629
|
end
|
555
630
|
return data, status_code, headers
|
556
631
|
end
|
632
|
+
|
633
|
+
# Update an inbox forwarder
|
634
|
+
# Update inbox ruleset
|
635
|
+
# @param id [String] ID of inbox forwarder
|
636
|
+
# @param create_inbox_forwarder_options [CreateInboxForwarderOptions]
|
637
|
+
# @param [Hash] opts the optional parameters
|
638
|
+
# @return [InboxForwarderDto]
|
639
|
+
def update_inbox_forwarder(id, create_inbox_forwarder_options, opts = {})
|
640
|
+
data, _status_code, _headers = update_inbox_forwarder_with_http_info(id, create_inbox_forwarder_options, opts)
|
641
|
+
data
|
642
|
+
end
|
643
|
+
|
644
|
+
# Update an inbox forwarder
|
645
|
+
# Update inbox ruleset
|
646
|
+
# @param id [String] ID of inbox forwarder
|
647
|
+
# @param create_inbox_forwarder_options [CreateInboxForwarderOptions]
|
648
|
+
# @param [Hash] opts the optional parameters
|
649
|
+
# @return [Array<(InboxForwarderDto, Integer, Hash)>] InboxForwarderDto data, response status code and response headers
|
650
|
+
def update_inbox_forwarder_with_http_info(id, create_inbox_forwarder_options, opts = {})
|
651
|
+
if @api_client.config.debugging
|
652
|
+
@api_client.config.logger.debug 'Calling API: InboxForwarderControllerApi.update_inbox_forwarder ...'
|
653
|
+
end
|
654
|
+
# verify the required parameter 'id' is set
|
655
|
+
if @api_client.config.client_side_validation && id.nil?
|
656
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling InboxForwarderControllerApi.update_inbox_forwarder"
|
657
|
+
end
|
658
|
+
# verify the required parameter 'create_inbox_forwarder_options' is set
|
659
|
+
if @api_client.config.client_side_validation && create_inbox_forwarder_options.nil?
|
660
|
+
fail ArgumentError, "Missing the required parameter 'create_inbox_forwarder_options' when calling InboxForwarderControllerApi.update_inbox_forwarder"
|
661
|
+
end
|
662
|
+
# resource path
|
663
|
+
local_var_path = '/forwarders/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
664
|
+
|
665
|
+
# query parameters
|
666
|
+
query_params = opts[:query_params] || {}
|
667
|
+
|
668
|
+
# header parameters
|
669
|
+
header_params = opts[:header_params] || {}
|
670
|
+
# HTTP header 'Accept' (if needed)
|
671
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
672
|
+
# HTTP header 'Content-Type'
|
673
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
674
|
+
|
675
|
+
# form parameters
|
676
|
+
form_params = opts[:form_params] || {}
|
677
|
+
|
678
|
+
# http body (model)
|
679
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_inbox_forwarder_options)
|
680
|
+
|
681
|
+
# return_type
|
682
|
+
return_type = opts[:return_type] || 'InboxForwarderDto'
|
683
|
+
|
684
|
+
# auth_names
|
685
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
686
|
+
|
687
|
+
new_options = opts.merge(
|
688
|
+
:header_params => header_params,
|
689
|
+
:query_params => query_params,
|
690
|
+
:form_params => form_params,
|
691
|
+
:body => post_body,
|
692
|
+
:auth_names => auth_names,
|
693
|
+
:return_type => return_type
|
694
|
+
)
|
695
|
+
|
696
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
697
|
+
if @api_client.config.debugging
|
698
|
+
@api_client.config.logger.debug "API called: InboxForwarderControllerApi#update_inbox_forwarder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
699
|
+
end
|
700
|
+
return data, status_code, headers
|
701
|
+
end
|
557
702
|
end
|
558
703
|
end
|
@@ -183,7 +183,7 @@ module MailSlurpClient
|
|
183
183
|
# List emails that were missed due to plan limits.
|
184
184
|
# @param missed_email_id [String]
|
185
185
|
# @param [Hash] opts the optional parameters
|
186
|
-
# @return [
|
186
|
+
# @return [MissedEmailDto]
|
187
187
|
def get_missed_email(missed_email_id, opts = {})
|
188
188
|
data, _status_code, _headers = get_missed_email_with_http_info(missed_email_id, opts)
|
189
189
|
data
|
@@ -193,7 +193,7 @@ module MailSlurpClient
|
|
193
193
|
# List emails that were missed due to plan limits.
|
194
194
|
# @param missed_email_id [String]
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
|
-
# @return [Array<(
|
196
|
+
# @return [Array<(MissedEmailDto, Integer, Hash)>] MissedEmailDto data, response status code and response headers
|
197
197
|
def get_missed_email_with_http_info(missed_email_id, opts = {})
|
198
198
|
if @api_client.config.debugging
|
199
199
|
@api_client.config.logger.debug 'Calling API: MissedEmailControllerApi.get_missed_email ...'
|
@@ -220,7 +220,7 @@ module MailSlurpClient
|
|
220
220
|
post_body = opts[:body]
|
221
221
|
|
222
222
|
# return_type
|
223
|
-
return_type = opts[:return_type] || '
|
223
|
+
return_type = opts[:return_type] || 'MissedEmailDto'
|
224
224
|
|
225
225
|
# auth_names
|
226
226
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -303,7 +303,7 @@ module MailSlurpClient
|
|
303
303
|
# @option opts [Integer] :timeout Optional timeout milliseconds
|
304
304
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
305
305
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
306
|
-
# @return [
|
306
|
+
# @return [MissedEmailDto]
|
307
307
|
def wait_for_nth_missed_email(index, opts = {})
|
308
308
|
data, _status_code, _headers = wait_for_nth_missed_email_with_http_info(index, opts)
|
309
309
|
data
|
@@ -317,7 +317,7 @@ module MailSlurpClient
|
|
317
317
|
# @option opts [Integer] :timeout Optional timeout milliseconds
|
318
318
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
319
319
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
320
|
-
# @return [Array<(
|
320
|
+
# @return [Array<(MissedEmailDto, Integer, Hash)>] MissedEmailDto data, response status code and response headers
|
321
321
|
def wait_for_nth_missed_email_with_http_info(index, opts = {})
|
322
322
|
if @api_client.config.debugging
|
323
323
|
@api_client.config.logger.debug 'Calling API: MissedEmailControllerApi.wait_for_nth_missed_email ...'
|
@@ -357,7 +357,7 @@ module MailSlurpClient
|
|
357
357
|
post_body = opts[:body]
|
358
358
|
|
359
359
|
# return_type
|
360
|
-
return_type = opts[:return_type] || '
|
360
|
+
return_type = opts[:return_type] || 'MissedEmailDto'
|
361
361
|
|
362
362
|
# auth_names
|
363
363
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -27,10 +27,10 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
|
-
attr_accessor :use_threads
|
31
|
-
|
32
30
|
attr_accessor :updated_at
|
33
31
|
|
32
|
+
attr_accessor :use_threads
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
@@ -40,8 +40,8 @@ module MailSlurpClient
|
|
40
40
|
:'user_id' => :'userId',
|
41
41
|
:'email_address' => :'emailAddress',
|
42
42
|
:'created_at' => :'createdAt',
|
43
|
-
:'
|
44
|
-
:'
|
43
|
+
:'updated_at' => :'updatedAt',
|
44
|
+
:'use_threads' => :'useThreads'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -54,8 +54,8 @@ module MailSlurpClient
|
|
54
54
|
:'user_id' => :'String',
|
55
55
|
:'email_address' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
|
-
:'
|
58
|
-
:'
|
57
|
+
:'updated_at' => :'DateTime',
|
58
|
+
:'use_threads' => :'Boolean'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -104,13 +104,13 @@ module MailSlurpClient
|
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.key?(:'use_threads')
|
108
|
-
self.use_threads = attributes[:'use_threads']
|
109
|
-
end
|
110
|
-
|
111
107
|
if attributes.key?(:'updated_at')
|
112
108
|
self.updated_at = attributes[:'updated_at']
|
113
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'use_threads')
|
112
|
+
self.use_threads = attributes[:'use_threads']
|
113
|
+
end
|
114
114
|
end
|
115
115
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -167,8 +167,8 @@ module MailSlurpClient
|
|
167
167
|
user_id == o.user_id &&
|
168
168
|
email_address == o.email_address &&
|
169
169
|
created_at == o.created_at &&
|
170
|
-
|
171
|
-
|
170
|
+
updated_at == o.updated_at &&
|
171
|
+
use_threads == o.use_threads
|
172
172
|
end
|
173
173
|
|
174
174
|
# @see the `==` method
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[name, id, inbox_id, user_id, email_address, created_at,
|
183
|
+
[name, id, inbox_id, user_id, email_address, created_at, updated_at, use_threads].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -78,6 +78,13 @@ module MailSlurpClient
|
|
78
78
|
# List of attributes with nullable: true
|
79
79
|
def self.openapi_nullable
|
80
80
|
Set.new([
|
81
|
+
:'sent_to_recipients',
|
82
|
+
:'bounce_mta',
|
83
|
+
:'bounce_type',
|
84
|
+
:'bounce_recipients',
|
85
|
+
:'bounce_sub_type',
|
86
|
+
:'sent_email_id',
|
87
|
+
:'subject',
|
81
88
|
])
|
82
89
|
end
|
83
90
|
|
@@ -153,6 +160,10 @@ module MailSlurpClient
|
|
153
160
|
# @return Array for valid properties with the reasons
|
154
161
|
def list_invalid_properties
|
155
162
|
invalid_properties = Array.new
|
163
|
+
if @id.nil?
|
164
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
165
|
+
end
|
166
|
+
|
156
167
|
if @user_id.nil?
|
157
168
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
158
169
|
end
|
@@ -175,6 +186,7 @@ module MailSlurpClient
|
|
175
186
|
# Check to see if the all the properties in the model are valid
|
176
187
|
# @return true if the model is valid
|
177
188
|
def valid?
|
189
|
+
return false if @id.nil?
|
178
190
|
return false if @user_id.nil?
|
179
191
|
return false if @notification_type.nil?
|
180
192
|
return false if @sender.nil?
|