mailslurp_client 12.8.0 → 12.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/bounce_controller_api.rb +51 -51
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49a895adb891dc40b1bc2974fe5298e7fe05847362e9447a9bdac0873036116b
|
4
|
+
data.tar.gz: 944ba2ff57efae68ef7b1baba6ba1a78c0193f0033835b8efff92e7ed57f1007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0ab02f60f634753822bdb3727c2b0bf1d8a0d64c447d7617417d12c8c5f1e3776f496549f636b4feb524a598b38d001a71d358c7544b9be334430f79af7fc6
|
7
|
+
data.tar.gz: a664fc6b6042398f1871e2f10e80530ef8130f6b846129007b4d3c2f0fe7de9f07eb4554c73eb6c00beff6a3ffc20d7d1a13faa9f34963d549f031d802e3da27
|
@@ -23,17 +23,17 @@ module MailSlurpClient
|
|
23
23
|
# Bounced emails are email you have sent that were rejected by a recipient
|
24
24
|
# @param id [String] ID of the bounced email to fetch
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [Bounce]
|
27
27
|
def get_bounced_email(id, opts = {})
|
28
|
-
get_bounced_email_with_http_info(id, opts)
|
29
|
-
|
28
|
+
data, _status_code, _headers = get_bounced_email_with_http_info(id, opts)
|
29
|
+
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Get a bounced email.
|
33
33
|
# Bounced emails are email you have sent that were rejected by a recipient
|
34
34
|
# @param id [String] ID of the bounced email to fetch
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(Bounce, Integer, Hash)>] Bounce data, response status code and response headers
|
37
37
|
def get_bounced_email_with_http_info(id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_email ...'
|
@@ -60,7 +60,7 @@ module MailSlurpClient
|
|
60
60
|
post_body = opts[:body]
|
61
61
|
|
62
62
|
# return_type
|
63
|
-
return_type = opts[:return_type]
|
63
|
+
return_type = opts[:return_type] || 'Bounce'
|
64
64
|
|
65
65
|
# auth_names
|
66
66
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -81,34 +81,41 @@ module MailSlurpClient
|
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
83
83
|
|
84
|
-
# Get
|
84
|
+
# Get paginated list of bounced emails.
|
85
85
|
# Bounced emails are email you have sent that were rejected by a recipient
|
86
|
-
# @param id [String] ID of the bounced recipient
|
87
86
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @
|
89
|
-
|
90
|
-
|
91
|
-
|
87
|
+
# @option opts [Integer] :page Optional page index (default to 0)
|
88
|
+
# @option opts [Integer] :size Optional page size (default to 20)
|
89
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
90
|
+
# @return [PageBouncedEmail]
|
91
|
+
def get_bounced_emails(opts = {})
|
92
|
+
data, _status_code, _headers = get_bounced_emails_with_http_info(opts)
|
93
|
+
data
|
92
94
|
end
|
93
95
|
|
94
|
-
# Get
|
96
|
+
# Get paginated list of bounced emails.
|
95
97
|
# Bounced emails are email you have sent that were rejected by a recipient
|
96
|
-
# @param id [String] ID of the bounced recipient
|
97
98
|
# @param [Hash] opts the optional parameters
|
98
|
-
# @
|
99
|
-
|
99
|
+
# @option opts [Integer] :page Optional page index
|
100
|
+
# @option opts [Integer] :size Optional page size
|
101
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
102
|
+
# @return [Array<(PageBouncedEmail, Integer, Hash)>] PageBouncedEmail data, response status code and response headers
|
103
|
+
def get_bounced_emails_with_http_info(opts = {})
|
100
104
|
if @api_client.config.debugging
|
101
|
-
@api_client.config.logger.debug 'Calling API: BounceControllerApi.
|
105
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_emails ...'
|
102
106
|
end
|
103
|
-
|
104
|
-
if @api_client.config.client_side_validation &&
|
105
|
-
fail ArgumentError, "
|
107
|
+
allowable_values = ["ASC", "DESC"]
|
108
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
109
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
106
110
|
end
|
107
111
|
# resource path
|
108
|
-
local_var_path = '/bounce/
|
112
|
+
local_var_path = '/bounce/emails'
|
109
113
|
|
110
114
|
# query parameters
|
111
115
|
query_params = opts[:query_params] || {}
|
116
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
117
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
118
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
112
119
|
|
113
120
|
# header parameters
|
114
121
|
header_params = opts[:header_params] || {}
|
@@ -122,7 +129,7 @@ module MailSlurpClient
|
|
122
129
|
post_body = opts[:body]
|
123
130
|
|
124
131
|
# return_type
|
125
|
-
return_type = opts[:return_type]
|
132
|
+
return_type = opts[:return_type] || 'PageBouncedEmail'
|
126
133
|
|
127
134
|
# auth_names
|
128
135
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -138,46 +145,39 @@ module MailSlurpClient
|
|
138
145
|
|
139
146
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
140
147
|
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called: BounceControllerApi#
|
148
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_bounced_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
149
|
end
|
143
150
|
return data, status_code, headers
|
144
151
|
end
|
145
152
|
|
146
|
-
# Get
|
153
|
+
# Get a bounced email.
|
147
154
|
# Bounced emails are email you have sent that were rejected by a recipient
|
155
|
+
# @param id [String] ID of the bounced recipient
|
148
156
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
def get_bounced_emails(opts = {})
|
154
|
-
get_bounced_emails_with_http_info(opts)
|
155
|
-
nil
|
157
|
+
# @return [BounceRecipient]
|
158
|
+
def get_bounced_recipient(id, opts = {})
|
159
|
+
data, _status_code, _headers = get_bounced_recipient_with_http_info(id, opts)
|
160
|
+
data
|
156
161
|
end
|
157
162
|
|
158
|
-
# Get
|
163
|
+
# Get a bounced email.
|
159
164
|
# Bounced emails are email you have sent that were rejected by a recipient
|
165
|
+
# @param id [String] ID of the bounced recipient
|
160
166
|
# @param [Hash] opts the optional parameters
|
161
|
-
# @
|
162
|
-
|
163
|
-
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
164
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
165
|
-
def get_bounced_emails_with_http_info(opts = {})
|
167
|
+
# @return [Array<(BounceRecipient, Integer, Hash)>] BounceRecipient data, response status code and response headers
|
168
|
+
def get_bounced_recipient_with_http_info(id, opts = {})
|
166
169
|
if @api_client.config.debugging
|
167
|
-
@api_client.config.logger.debug 'Calling API: BounceControllerApi.
|
170
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_recipient ...'
|
168
171
|
end
|
169
|
-
|
170
|
-
if @api_client.config.client_side_validation &&
|
171
|
-
fail ArgumentError, "
|
172
|
+
# verify the required parameter 'id' is set
|
173
|
+
if @api_client.config.client_side_validation && id.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BounceControllerApi.get_bounced_recipient"
|
172
175
|
end
|
173
176
|
# resource path
|
174
|
-
local_var_path = '/bounce/
|
177
|
+
local_var_path = '/bounce/recipients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
175
178
|
|
176
179
|
# query parameters
|
177
180
|
query_params = opts[:query_params] || {}
|
178
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
179
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
180
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
181
181
|
|
182
182
|
# header parameters
|
183
183
|
header_params = opts[:header_params] || {}
|
@@ -191,7 +191,7 @@ module MailSlurpClient
|
|
191
191
|
post_body = opts[:body]
|
192
192
|
|
193
193
|
# return_type
|
194
|
-
return_type = opts[:return_type]
|
194
|
+
return_type = opts[:return_type] || 'BounceRecipient'
|
195
195
|
|
196
196
|
# auth_names
|
197
197
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -207,7 +207,7 @@ module MailSlurpClient
|
|
207
207
|
|
208
208
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
209
209
|
if @api_client.config.debugging
|
210
|
-
@api_client.config.logger.debug "API called: BounceControllerApi#
|
210
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_bounced_recipient\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
211
|
end
|
212
212
|
return data, status_code, headers
|
213
213
|
end
|
@@ -218,10 +218,10 @@ module MailSlurpClient
|
|
218
218
|
# @option opts [Integer] :page Optional page index (default to 0)
|
219
219
|
# @option opts [Integer] :size Optional page size (default to 20)
|
220
220
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
221
|
-
# @return [
|
221
|
+
# @return [PageBouncedRecipients]
|
222
222
|
def get_bounced_recipients(opts = {})
|
223
|
-
get_bounced_recipients_with_http_info(opts)
|
224
|
-
|
223
|
+
data, _status_code, _headers = get_bounced_recipients_with_http_info(opts)
|
224
|
+
data
|
225
225
|
end
|
226
226
|
|
227
227
|
# Get paginated list of bounced recipients.
|
@@ -230,7 +230,7 @@ module MailSlurpClient
|
|
230
230
|
# @option opts [Integer] :page Optional page index
|
231
231
|
# @option opts [Integer] :size Optional page size
|
232
232
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
233
|
-
# @return [Array<(
|
233
|
+
# @return [Array<(PageBouncedRecipients, Integer, Hash)>] PageBouncedRecipients data, response status code and response headers
|
234
234
|
def get_bounced_recipients_with_http_info(opts = {})
|
235
235
|
if @api_client.config.debugging
|
236
236
|
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_recipients ...'
|
@@ -260,7 +260,7 @@ module MailSlurpClient
|
|
260
260
|
post_body = opts[:body]
|
261
261
|
|
262
262
|
# return_type
|
263
|
-
return_type = opts[:return_type]
|
263
|
+
return_type = opts[:return_type] || 'PageBouncedRecipients'
|
264
264
|
|
265
265
|
# auth_names
|
266
266
|
auth_names = opts[:auth_names] || ['API_KEY']
|