mailslurp_client 12.7.1 → 12.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b30658f0733495cbe14304739a5e4d473c9fd1879fe04e77a1de08bebe1ebda
4
- data.tar.gz: 36cbfd25f86f748c889e165a9f75d2ce4963d1a6321301893cc12a169529d533
3
+ metadata.gz: 0be4890f6575516d8fd55e9c1ecddec727214797175b97bc7a3640e854ab4efa
4
+ data.tar.gz: 5c4d1103dd95353d2a45b3c77082f53288f8d92949f81616406c854363bf31a8
5
5
  SHA512:
6
- metadata.gz: a6e6578ddedee45fe6d211f754fcc382d4794e5fff8155c371159a73b685a911bd920def06aac75f36d3520b462dbcf29f26e5dac2c7b2897e340130804989e9
7
- data.tar.gz: fccc3baccf13a1dc499b99f775110bd1cb40668fd89584f1bd00284ce7f2869bad7976f1b8660ce48b4ec050546b5a3fa7ac601e7eaf124a60b43e490dd9d960
6
+ metadata.gz: bbdedc8356a9c4c5a0fc3dfdc118aa80933f5682062412c2e967dea81b26862332eec13e39106d24a9dc40a0cb318647389aa669f9ea9af9f4e85aa87794859a
7
+ data.tar.gz: cbf43aff215df9400b093697d8f665b2e0c3d88ad6ab169c2fc2bcd774287bb16c00547a00a0ba4bbbbc8fdfea5650296518d73c12ea8c8879062509b69e0865
@@ -20,9 +20,14 @@ require 'mailslurp_client/configuration'
20
20
  require 'mailslurp_client/models/abstract_webhook_payload'
21
21
  require 'mailslurp_client/models/alias_dto'
22
22
  require 'mailslurp_client/models/alias_projection'
23
+ require 'mailslurp_client/models/attachment_entity'
23
24
  require 'mailslurp_client/models/attachment_meta_data'
24
25
  require 'mailslurp_client/models/attachment_projection'
25
26
  require 'mailslurp_client/models/basic_auth_options'
27
+ require 'mailslurp_client/models/bounce_projection'
28
+ require 'mailslurp_client/models/bounce_recipient'
29
+ require 'mailslurp_client/models/bounced_email_dto'
30
+ require 'mailslurp_client/models/bounced_recipient_dto'
26
31
  require 'mailslurp_client/models/bulk_send_email_options'
27
32
  require 'mailslurp_client/models/condition_option'
28
33
  require 'mailslurp_client/models/contact_dto'
@@ -82,6 +87,8 @@ require 'mailslurp_client/models/name_server_record'
82
87
  require 'mailslurp_client/models/organization_inbox_projection'
83
88
  require 'mailslurp_client/models/page_alias'
84
89
  require 'mailslurp_client/models/page_attachment_entity'
90
+ require 'mailslurp_client/models/page_bounced_email'
91
+ require 'mailslurp_client/models/page_bounced_recipients'
85
92
  require 'mailslurp_client/models/page_contact_projection'
86
93
  require 'mailslurp_client/models/page_email_preview'
87
94
  require 'mailslurp_client/models/page_email_projection'
@@ -140,6 +147,7 @@ require 'mailslurp_client/models/webhook_test_result'
140
147
  # APIs
141
148
  require 'mailslurp_client/api/alias_controller_api'
142
149
  require 'mailslurp_client/api/attachment_controller_api'
150
+ require 'mailslurp_client/api/bounce_controller_api'
143
151
  require 'mailslurp_client/api/bulk_actions_controller_api'
144
152
  require 'mailslurp_client/api/common_actions_controller_api'
145
153
  require 'mailslurp_client/api/contact_controller_api'
@@ -19,6 +19,58 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Delete all attachments
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [nil]
25
+ def delete_all_attachments(opts = {})
26
+ delete_all_attachments_with_http_info(opts)
27
+ nil
28
+ end
29
+
30
+ # Delete all attachments
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
33
+ def delete_all_attachments_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.delete_all_attachments ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/attachments'
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:body]
51
+
52
+ # return_type
53
+ return_type = opts[:return_type]
54
+
55
+ # auth_names
56
+ auth_names = opts[:auth_names] || ['API_KEY']
57
+
58
+ new_options = opts.merge(
59
+ :header_params => header_params,
60
+ :query_params => query_params,
61
+ :form_params => form_params,
62
+ :body => post_body,
63
+ :auth_names => auth_names,
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#delete_all_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+
22
74
  # Delete an attachment
23
75
  # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
24
76
  # @param attachment_id [String] ID of attachment
@@ -203,6 +255,68 @@ module MailSlurpClient
203
255
  return data, status_code, headers
204
256
  end
205
257
 
258
+ # Get an attachment entity
259
+ # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
260
+ # @param attachment_id [String] ID of attachment
261
+ # @param [Hash] opts the optional parameters
262
+ # @return [AttachmentEntity]
263
+ def get_attachment(attachment_id, opts = {})
264
+ data, _status_code, _headers = get_attachment_with_http_info(attachment_id, opts)
265
+ data
266
+ end
267
+
268
+ # Get an attachment entity
269
+ # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with &#x60;SendEmailOptions&#x60; when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
270
+ # @param attachment_id [String] ID of attachment
271
+ # @param [Hash] opts the optional parameters
272
+ # @return [Array<(AttachmentEntity, Integer, Hash)>] AttachmentEntity data, response status code and response headers
273
+ def get_attachment_with_http_info(attachment_id, opts = {})
274
+ if @api_client.config.debugging
275
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachment ...'
276
+ end
277
+ # verify the required parameter 'attachment_id' is set
278
+ if @api_client.config.client_side_validation && attachment_id.nil?
279
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.get_attachment"
280
+ end
281
+ # resource path
282
+ local_var_path = '/attachments/{attachmentId}'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
283
+
284
+ # query parameters
285
+ query_params = opts[:query_params] || {}
286
+
287
+ # header parameters
288
+ header_params = opts[:header_params] || {}
289
+ # HTTP header 'Accept' (if needed)
290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
291
+
292
+ # form parameters
293
+ form_params = opts[:form_params] || {}
294
+
295
+ # http body (model)
296
+ post_body = opts[:body]
297
+
298
+ # return_type
299
+ return_type = opts[:return_type] || 'AttachmentEntity'
300
+
301
+ # auth_names
302
+ auth_names = opts[:auth_names] || ['API_KEY']
303
+
304
+ new_options = opts.merge(
305
+ :header_params => header_params,
306
+ :query_params => query_params,
307
+ :form_params => form_params,
308
+ :body => post_body,
309
+ :auth_names => auth_names,
310
+ :return_type => return_type
311
+ )
312
+
313
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
314
+ if @api_client.config.debugging
315
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
316
+ end
317
+ return data, status_code, headers
318
+ end
319
+
206
320
  # Get email attachment metadata information
207
321
  # Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment.
208
322
  # @param attachment_id [String] ID of attachment
@@ -404,7 +518,7 @@ module MailSlurpClient
404
518
  # Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
405
519
  # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
406
520
  # @param [Hash] opts the optional parameters
407
- # @option opts [String] :string Optional contentType for file. For instance &#x60;application/pdf&#x60;
521
+ # @option opts [String] :content_type Optional contentType for file. For instance &#x60;application/pdf&#x60;
408
522
  # @option opts [String] :filename Optional filename to save upload with
409
523
  # @option opts [String] :byte_array Byte array request body
410
524
  # @return [Array<String>]
@@ -416,7 +530,7 @@ module MailSlurpClient
416
530
  # Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
417
531
  # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with &#x60;SendEmailOptions&#x60; when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
418
532
  # @param [Hash] opts the optional parameters
419
- # @option opts [String] :string Optional contentType for file. For instance &#x60;application/pdf&#x60;
533
+ # @option opts [String] :content_type Optional contentType for file. For instance &#x60;application/pdf&#x60;
420
534
  # @option opts [String] :filename Optional filename to save upload with
421
535
  # @option opts [String] :byte_array Byte array request body
422
536
  # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
@@ -429,7 +543,7 @@ module MailSlurpClient
429
543
 
430
544
  # query parameters
431
545
  query_params = opts[:query_params] || {}
432
- query_params[:'String'] = opts[:'string'] if !opts[:'string'].nil?
546
+ query_params[:'contentType'] = opts[:'content_type'] if !opts[:'content_type'].nil?
433
547
  query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
434
548
 
435
549
  # header parameters
@@ -0,0 +1,284 @@
1
+ =begin
2
+ #MailSlurp API
3
+
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
+
6
+ The version of the OpenAPI document: 6.5.2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MailSlurpClient
16
+ class BounceControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get a bounced email.
23
+ # Bounced emails are email you have sent that were rejected by a recipient
24
+ # @param id [String] ID of the bounced email to fetch
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [BouncedEmailDto]
27
+ def get_bounced_email(id, opts = {})
28
+ data, _status_code, _headers = get_bounced_email_with_http_info(id, opts)
29
+ data
30
+ end
31
+
32
+ # Get a bounced email.
33
+ # Bounced emails are email you have sent that were rejected by a recipient
34
+ # @param id [String] ID of the bounced email to fetch
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(BouncedEmailDto, Integer, Hash)>] BouncedEmailDto data, response status code and response headers
37
+ def get_bounced_email_with_http_info(id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_email ...'
40
+ end
41
+ # verify the required parameter 'id' is set
42
+ if @api_client.config.client_side_validation && id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'id' when calling BounceControllerApi.get_bounced_email"
44
+ end
45
+ # resource path
46
+ local_var_path = '/bounce/emails/{id}'.sub('{' + 'id' + '}', CGI.escape(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(['application/json'])
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] || 'BouncedEmailDto'
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(:GET, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: BounceControllerApi#get_bounced_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Get paginated list of bounced emails.
85
+ # Bounced emails are email you have sent that were rejected by a recipient
86
+ # @param [Hash] opts the optional parameters
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
94
+ end
95
+
96
+ # Get paginated list of bounced emails.
97
+ # Bounced emails are email you have sent that were rejected by a recipient
98
+ # @param [Hash] opts the optional parameters
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 = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_emails ...'
106
+ end
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}"
110
+ end
111
+ # resource path
112
+ local_var_path = '/bounce/emails'
113
+
114
+ # query parameters
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?
119
+
120
+ # header parameters
121
+ header_params = opts[:header_params] || {}
122
+ # HTTP header 'Accept' (if needed)
123
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:body]
130
+
131
+ # return_type
132
+ return_type = opts[:return_type] || 'PageBouncedEmail'
133
+
134
+ # auth_names
135
+ auth_names = opts[:auth_names] || ['API_KEY']
136
+
137
+ new_options = opts.merge(
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: BounceControllerApi#get_bounced_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
153
+ # Get a bounced email.
154
+ # Bounced emails are email you have sent that were rejected by a recipient
155
+ # @param id [String] ID of the bounced recipient
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [BouncedRecipientDto]
158
+ def get_bounced_recipient(id, opts = {})
159
+ data, _status_code, _headers = get_bounced_recipient_with_http_info(id, opts)
160
+ data
161
+ end
162
+
163
+ # Get a bounced email.
164
+ # Bounced emails are email you have sent that were rejected by a recipient
165
+ # @param id [String] ID of the bounced recipient
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [Array<(BouncedRecipientDto, Integer, Hash)>] BouncedRecipientDto data, response status code and response headers
168
+ def get_bounced_recipient_with_http_info(id, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_recipient ...'
171
+ end
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"
175
+ end
176
+ # resource path
177
+ local_var_path = '/bounce/recipients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
178
+
179
+ # query parameters
180
+ query_params = opts[:query_params] || {}
181
+
182
+ # header parameters
183
+ header_params = opts[:header_params] || {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
186
+
187
+ # form parameters
188
+ form_params = opts[:form_params] || {}
189
+
190
+ # http body (model)
191
+ post_body = opts[:body]
192
+
193
+ # return_type
194
+ return_type = opts[:return_type] || 'BouncedRecipientDto'
195
+
196
+ # auth_names
197
+ auth_names = opts[:auth_names] || ['API_KEY']
198
+
199
+ new_options = opts.merge(
200
+ :header_params => header_params,
201
+ :query_params => query_params,
202
+ :form_params => form_params,
203
+ :body => post_body,
204
+ :auth_names => auth_names,
205
+ :return_type => return_type
206
+ )
207
+
208
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
209
+ if @api_client.config.debugging
210
+ @api_client.config.logger.debug "API called: BounceControllerApi#get_bounced_recipient\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
211
+ end
212
+ return data, status_code, headers
213
+ end
214
+
215
+ # Get paginated list of bounced recipients.
216
+ # Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address.
217
+ # @param [Hash] opts the optional parameters
218
+ # @option opts [Integer] :page Optional page index (default to 0)
219
+ # @option opts [Integer] :size Optional page size (default to 20)
220
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
221
+ # @return [PageBouncedRecipients]
222
+ def get_bounced_recipients(opts = {})
223
+ data, _status_code, _headers = get_bounced_recipients_with_http_info(opts)
224
+ data
225
+ end
226
+
227
+ # Get paginated list of bounced recipients.
228
+ # Bounced recipients are email addresses that you have sent emails to that did not accept the sent email. Once a recipient is bounced you cannot send emails to that address.
229
+ # @param [Hash] opts the optional parameters
230
+ # @option opts [Integer] :page Optional page index
231
+ # @option opts [Integer] :size Optional page size
232
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
233
+ # @return [Array<(PageBouncedRecipients, Integer, Hash)>] PageBouncedRecipients data, response status code and response headers
234
+ def get_bounced_recipients_with_http_info(opts = {})
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_recipients ...'
237
+ end
238
+ allowable_values = ["ASC", "DESC"]
239
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
240
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
241
+ end
242
+ # resource path
243
+ local_var_path = '/bounce/recipients'
244
+
245
+ # query parameters
246
+ query_params = opts[:query_params] || {}
247
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
248
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
249
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
250
+
251
+ # header parameters
252
+ header_params = opts[:header_params] || {}
253
+ # HTTP header 'Accept' (if needed)
254
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
255
+
256
+ # form parameters
257
+ form_params = opts[:form_params] || {}
258
+
259
+ # http body (model)
260
+ post_body = opts[:body]
261
+
262
+ # return_type
263
+ return_type = opts[:return_type] || 'PageBouncedRecipients'
264
+
265
+ # auth_names
266
+ auth_names = opts[:auth_names] || ['API_KEY']
267
+
268
+ new_options = opts.merge(
269
+ :header_params => header_params,
270
+ :query_params => query_params,
271
+ :form_params => form_params,
272
+ :body => post_body,
273
+ :auth_names => auth_names,
274
+ :return_type => return_type
275
+ )
276
+
277
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: BounceControllerApi#get_bounced_recipients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
283
+ end
284
+ end