mailslurp_client 8.3.1 → 8.4.0

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: 73a7a6bce5d2930743647f53b1b93e19ea81179b32de56b6bd3c7a0d4ca84e62
4
- data.tar.gz: 6f02b97e47c2f56c52e9c0eb68351c5a24b7b646b56dd0cdd7ac4efd4bf82801
3
+ metadata.gz: 9005d0f3b6653725d8c99997bde969c67c85d182407200ab1df23b8105635c8a
4
+ data.tar.gz: c81db7a3da9ee55e22377a5c10a52f20c550bdc2ad20c70e6ce6183cca1c12f8
5
5
  SHA512:
6
- metadata.gz: 819cfdb8b68c76a89130bef694eaabd2db78e98d1205f7258fb1bee9f1696ca751bcc2a9c50099779a24110997f27f559b2632b1bc0a6292416b4f6fafdad65b
7
- data.tar.gz: d878ffa757ae2fd463ac0b5a59db2ae7433abf85925186d21ba780b0cd73c23b648759b3a010f08dfe630a999bddf2a503a7f08deba97ed2a46f26246e7136fc
6
+ metadata.gz: 3910aefd959a7b28869636571e51b3a15d98073f8ff243919c3118a70a37ffbb810fd9f688ccedf47f62d5ace6be9ccc9af70d6dbeeb57ea882364676f6e8ed2
7
+ data.tar.gz: ef868c5a8e1f3fd0c6c6b87d381b13d1fff3bcfe731330cc7e7e046f44cdeb520d54cf9a1db98270da6855a6b8f5ded0304e69b702157d7fc8c0167a8f3ed36b
@@ -17,18 +17,20 @@ require 'mailslurp_client/version'
17
17
  require 'mailslurp_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'mailslurp_client/models/alias_dto'
21
+ require 'mailslurp_client/models/alias_projection'
22
+ require 'mailslurp_client/models/alias_verification_result'
20
23
  require 'mailslurp_client/models/attachment_meta_data'
21
24
  require 'mailslurp_client/models/basic_auth_options'
22
25
  require 'mailslurp_client/models/bulk_send_email_options'
23
26
  require 'mailslurp_client/models/contact_dto'
24
27
  require 'mailslurp_client/models/contact_projection'
25
28
  require 'mailslurp_client/models/content_match_options'
26
- require 'mailslurp_client/models/create_anonymous_alias_options'
29
+ require 'mailslurp_client/models/create_alias_options'
27
30
  require 'mailslurp_client/models/create_contact_options'
28
31
  require 'mailslurp_client/models/create_domain_options'
29
32
  require 'mailslurp_client/models/create_group_options'
30
33
  require 'mailslurp_client/models/create_inbox_dto'
31
- require 'mailslurp_client/models/create_owned_alias_options'
32
34
  require 'mailslurp_client/models/create_template_options'
33
35
  require 'mailslurp_client/models/create_webhook_options'
34
36
  require 'mailslurp_client/models/dns_lookup_options'
@@ -68,6 +70,7 @@ require 'mailslurp_client/models/page_template_projection'
68
70
  require 'mailslurp_client/models/page_webhook_projection'
69
71
  require 'mailslurp_client/models/pageable'
70
72
  require 'mailslurp_client/models/raw_email_json'
73
+ require 'mailslurp_client/models/reply_to_email_options'
71
74
  require 'mailslurp_client/models/send_email_options'
72
75
  require 'mailslurp_client/models/sent_email_dto'
73
76
  require 'mailslurp_client/models/sent_email_projection'
@@ -78,6 +81,7 @@ require 'mailslurp_client/models/template_dto'
78
81
  require 'mailslurp_client/models/template_projection'
79
82
  require 'mailslurp_client/models/template_variable'
80
83
  require 'mailslurp_client/models/unread_count'
84
+ require 'mailslurp_client/models/update_alias_options'
81
85
  require 'mailslurp_client/models/update_group_contacts'
82
86
  require 'mailslurp_client/models/update_inbox_options'
83
87
  require 'mailslurp_client/models/upload_attachment_options'
@@ -19,28 +19,28 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create an email alias
23
- # Create an email alias belonging to a user ID. To create anonymous aliases use the `createAnonymousAlias` method.
24
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
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
+ # 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] createAliasOptions
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [nil]
27
- def create_alias(create_owned_alias_options, opts = {})
28
- create_alias_with_http_info(create_owned_alias_options, opts)
29
- nil
26
+ # @return [ModelAlias]
27
+ def create_alias(create_alias_options, opts = {})
28
+ data, _status_code, _headers = create_alias_with_http_info(create_alias_options, opts)
29
+ data
30
30
  end
31
31
 
32
- # Create an email alias
33
- # Create an email alias belonging to a user ID. To create anonymous aliases use the `createAnonymousAlias` method.
34
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
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
+ # 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] createAliasOptions
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
- def create_alias_with_http_info(create_owned_alias_options, opts = {})
36
+ # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
37
+ def create_alias_with_http_info(create_alias_options, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: AliasControllerApi.create_alias ...'
40
40
  end
41
- # verify the required parameter 'create_owned_alias_options' is set
42
- if @api_client.config.client_side_validation && create_owned_alias_options.nil?
43
- fail ArgumentError, "Missing the required parameter 'create_owned_alias_options' when calling AliasControllerApi.create_alias"
41
+ # verify the required parameter 'create_alias_options' is set
42
+ if @api_client.config.client_side_validation && create_alias_options.nil?
43
+ fail ArgumentError, "Missing the required parameter 'create_alias_options' when calling AliasControllerApi.create_alias"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/aliases'
@@ -59,10 +59,10 @@ module MailSlurpClient
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(create_owned_alias_options)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(create_alias_options)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type]
65
+ return_type = opts[:return_type] || 'ModelAlias'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -83,48 +83,44 @@ module MailSlurpClient
83
83
  return data, status_code, headers
84
84
  end
85
85
 
86
- # Create an anonymous email alias
87
- # @param create_anonymous_alias_options [CreateAnonymousAliasOptions] createAnonymousAliasOptions
86
+ # Delete an email alias
87
+ # @param alias_id [String] aliasId
88
88
  # @param [Hash] opts the optional parameters
89
- # @return [ModelAlias]
90
- def create_anonymous_alias(create_anonymous_alias_options, opts = {})
91
- data, _status_code, _headers = create_anonymous_alias_with_http_info(create_anonymous_alias_options, opts)
92
- data
89
+ # @return [nil]
90
+ def delete_alias(alias_id, opts = {})
91
+ delete_alias_with_http_info(alias_id, opts)
92
+ nil
93
93
  end
94
94
 
95
- # Create an anonymous email alias
96
- # @param create_anonymous_alias_options [CreateAnonymousAliasOptions] createAnonymousAliasOptions
95
+ # Delete an email alias
96
+ # @param alias_id [String] aliasId
97
97
  # @param [Hash] opts the optional parameters
98
- # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
99
- def create_anonymous_alias_with_http_info(create_anonymous_alias_options, opts = {})
98
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
99
+ def delete_alias_with_http_info(alias_id, opts = {})
100
100
  if @api_client.config.debugging
101
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.create_anonymous_alias ...'
101
+ @api_client.config.logger.debug 'Calling API: AliasControllerApi.delete_alias ...'
102
102
  end
103
- # verify the required parameter 'create_anonymous_alias_options' is set
104
- if @api_client.config.client_side_validation && create_anonymous_alias_options.nil?
105
- fail ArgumentError, "Missing the required parameter 'create_anonymous_alias_options' when calling AliasControllerApi.create_anonymous_alias"
103
+ # verify the required parameter 'alias_id' is set
104
+ if @api_client.config.client_side_validation && alias_id.nil?
105
+ fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.delete_alias"
106
106
  end
107
107
  # resource path
108
- local_var_path = '/aliases/anonymous'
108
+ local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
109
109
 
110
110
  # query parameters
111
111
  query_params = opts[:query_params] || {}
112
112
 
113
113
  # header parameters
114
114
  header_params = opts[:header_params] || {}
115
- # HTTP header 'Accept' (if needed)
116
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
- # HTTP header 'Content-Type'
118
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
119
115
 
120
116
  # form parameters
121
117
  form_params = opts[:form_params] || {}
122
118
 
123
119
  # http body (model)
124
- post_body = opts[:body] || @api_client.object_to_http_body(create_anonymous_alias_options)
120
+ post_body = opts[:body]
125
121
 
126
122
  # return_type
127
- return_type = opts[:return_type] || 'ModelAlias'
123
+ return_type = opts[:return_type]
128
124
 
129
125
  # auth_names
130
126
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -138,33 +134,35 @@ module MailSlurpClient
138
134
  :return_type => return_type
139
135
  )
140
136
 
141
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
137
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
138
  if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: AliasControllerApi#create_anonymous_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ @api_client.config.logger.debug "API called: AliasControllerApi#delete_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
140
  end
145
141
  return data, status_code, headers
146
142
  end
147
143
 
148
- # Delete an owned alias
144
+ # Get an email alias
145
+ # Get an email alias by ID
149
146
  # @param alias_id [String] aliasId
150
147
  # @param [Hash] opts the optional parameters
151
- # @return [nil]
152
- def delete_alias(alias_id, opts = {})
153
- delete_alias_with_http_info(alias_id, opts)
154
- nil
148
+ # @return [AliasDto]
149
+ def get_alias(alias_id, opts = {})
150
+ data, _status_code, _headers = get_alias_with_http_info(alias_id, opts)
151
+ data
155
152
  end
156
153
 
157
- # Delete an owned alias
154
+ # Get an email alias
155
+ # Get an email alias by ID
158
156
  # @param alias_id [String] aliasId
159
157
  # @param [Hash] opts the optional parameters
160
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
161
- def delete_alias_with_http_info(alias_id, opts = {})
158
+ # @return [Array<(AliasDto, Integer, Hash)>] AliasDto data, response status code and response headers
159
+ def get_alias_with_http_info(alias_id, opts = {})
162
160
  if @api_client.config.debugging
163
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.delete_alias ...'
161
+ @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias ...'
164
162
  end
165
163
  # verify the required parameter 'alias_id' is set
166
164
  if @api_client.config.client_side_validation && alias_id.nil?
167
- fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.delete_alias"
165
+ fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias"
168
166
  end
169
167
  # resource path
170
168
  local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
@@ -174,6 +172,8 @@ module MailSlurpClient
174
172
 
175
173
  # header parameters
176
174
  header_params = opts[:header_params] || {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
177
 
178
178
  # form parameters
179
179
  form_params = opts[:form_params] || {}
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  post_body = opts[:body]
183
183
 
184
184
  # return_type
185
- return_type = opts[:return_type]
185
+ return_type = opts[:return_type] || 'AliasDto'
186
186
 
187
187
  # auth_names
188
188
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -196,41 +196,55 @@ module MailSlurpClient
196
196
  :return_type => return_type
197
197
  )
198
198
 
199
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
199
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
200
200
  if @api_client.config.debugging
201
- @api_client.config.logger.debug "API called: AliasControllerApi#delete_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
201
+ @api_client.config.logger.debug "API called: AliasControllerApi#get_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
202
202
  end
203
203
  return data, status_code, headers
204
204
  end
205
205
 
206
- # Get an email alias
207
- # Get an email alias by ID
206
+ # Get validation result from alias verification
207
+ # Verify an email alias email address with the verification token that was emailed to the address
208
208
  # @param alias_id [String] aliasId
209
+ # @param email_address [String] emailAddress
210
+ # @param verification_token [String] verificationToken
209
211
  # @param [Hash] opts the optional parameters
210
- # @return [ModelAlias]
211
- def get_alias(alias_id, opts = {})
212
- data, _status_code, _headers = get_alias_with_http_info(alias_id, opts)
212
+ # @return [AliasVerificationResult]
213
+ def get_alias_verification(alias_id, email_address, verification_token, opts = {})
214
+ data, _status_code, _headers = get_alias_verification_with_http_info(alias_id, email_address, verification_token, opts)
213
215
  data
214
216
  end
215
217
 
216
- # Get an email alias
217
- # Get an email alias by ID
218
+ # Get validation result from alias verification
219
+ # Verify an email alias email address with the verification token that was emailed to the address
218
220
  # @param alias_id [String] aliasId
221
+ # @param email_address [String] emailAddress
222
+ # @param verification_token [String] verificationToken
219
223
  # @param [Hash] opts the optional parameters
220
- # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
221
- def get_alias_with_http_info(alias_id, opts = {})
224
+ # @return [Array<(AliasVerificationResult, Integer, Hash)>] AliasVerificationResult data, response status code and response headers
225
+ def get_alias_verification_with_http_info(alias_id, email_address, verification_token, opts = {})
222
226
  if @api_client.config.debugging
223
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias ...'
227
+ @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias_verification ...'
224
228
  end
225
229
  # verify the required parameter 'alias_id' is set
226
230
  if @api_client.config.client_side_validation && alias_id.nil?
227
- fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias"
231
+ fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias_verification"
232
+ end
233
+ # verify the required parameter 'email_address' is set
234
+ if @api_client.config.client_side_validation && email_address.nil?
235
+ fail ArgumentError, "Missing the required parameter 'email_address' when calling AliasControllerApi.get_alias_verification"
236
+ end
237
+ # verify the required parameter 'verification_token' is set
238
+ if @api_client.config.client_side_validation && verification_token.nil?
239
+ fail ArgumentError, "Missing the required parameter 'verification_token' when calling AliasControllerApi.get_alias_verification"
228
240
  end
229
241
  # resource path
230
- local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
242
+ local_var_path = '/aliases/{aliasId}/verification'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
231
243
 
232
244
  # query parameters
233
245
  query_params = opts[:query_params] || {}
246
+ query_params[:'emailAddress'] = email_address
247
+ query_params[:'verificationToken'] = verification_token
234
248
 
235
249
  # header parameters
236
250
  header_params = opts[:header_params] || {}
@@ -244,7 +258,7 @@ module MailSlurpClient
244
258
  post_body = opts[:body]
245
259
 
246
260
  # return_type
247
- return_type = opts[:return_type] || 'ModelAlias'
261
+ return_type = opts[:return_type] || 'AliasVerificationResult'
248
262
 
249
263
  # auth_names
250
264
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -260,12 +274,12 @@ module MailSlurpClient
260
274
 
261
275
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
262
276
  if @api_client.config.debugging
263
- @api_client.config.logger.debug "API called: AliasControllerApi#get_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
+ @api_client.config.logger.debug "API called: AliasControllerApi#get_alias_verification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
278
  end
265
279
  return data, status_code, headers
266
280
  end
267
281
 
268
- # Get all email aliases
282
+ # Get all email aliases you have created
269
283
  # Get all email aliases in paginated form
270
284
  # @param [Hash] opts the optional parameters
271
285
  # @option opts [Integer] :page Optional page index in alias list pagination (default to 0)
@@ -277,7 +291,7 @@ module MailSlurpClient
277
291
  data
278
292
  end
279
293
 
280
- # Get all email aliases
294
+ # Get all email aliases you have created
281
295
  # Get all email aliases in paginated form
282
296
  # @param [Hash] opts the optional parameters
283
297
  # @option opts [Integer] :page Optional page index in alias list pagination
@@ -334,22 +348,22 @@ module MailSlurpClient
334
348
  return data, status_code, headers
335
349
  end
336
350
 
337
- # Update an owned alias
351
+ # Update an email alias
338
352
  # @param alias_id [String] aliasId
339
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
353
+ # @param update_alias_options [UpdateAliasOptions] updateAliasOptions
340
354
  # @param [Hash] opts the optional parameters
341
355
  # @return [nil]
342
- def update_alias(alias_id, create_owned_alias_options, opts = {})
343
- update_alias_with_http_info(alias_id, create_owned_alias_options, opts)
356
+ def update_alias(alias_id, update_alias_options, opts = {})
357
+ update_alias_with_http_info(alias_id, update_alias_options, opts)
344
358
  nil
345
359
  end
346
360
 
347
- # Update an owned alias
361
+ # Update an email alias
348
362
  # @param alias_id [String] aliasId
349
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
363
+ # @param update_alias_options [UpdateAliasOptions] updateAliasOptions
350
364
  # @param [Hash] opts the optional parameters
351
365
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
352
- def update_alias_with_http_info(alias_id, create_owned_alias_options, opts = {})
366
+ def update_alias_with_http_info(alias_id, update_alias_options, opts = {})
353
367
  if @api_client.config.debugging
354
368
  @api_client.config.logger.debug 'Calling API: AliasControllerApi.update_alias ...'
355
369
  end
@@ -357,9 +371,9 @@ module MailSlurpClient
357
371
  if @api_client.config.client_side_validation && alias_id.nil?
358
372
  fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.update_alias"
359
373
  end
360
- # verify the required parameter 'create_owned_alias_options' is set
361
- if @api_client.config.client_side_validation && create_owned_alias_options.nil?
362
- fail ArgumentError, "Missing the required parameter 'create_owned_alias_options' when calling AliasControllerApi.update_alias"
374
+ # verify the required parameter 'update_alias_options' is set
375
+ if @api_client.config.client_side_validation && update_alias_options.nil?
376
+ fail ArgumentError, "Missing the required parameter 'update_alias_options' when calling AliasControllerApi.update_alias"
363
377
  end
364
378
  # resource path
365
379
  local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
@@ -378,7 +392,7 @@ module MailSlurpClient
378
392
  form_params = opts[:form_params] || {}
379
393
 
380
394
  # http body (model)
381
- post_body = opts[:body] || @api_client.object_to_http_body(create_owned_alias_options)
395
+ post_body = opts[:body] || @api_client.object_to_http_body(update_alias_options)
382
396
 
383
397
  # return_type
384
398
  return_type = opts[:return_type]
@@ -925,6 +925,76 @@ module MailSlurpClient
925
925
  return data, status_code, headers
926
926
  end
927
927
 
928
+ # Reply to an email
929
+ # 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`.
930
+ # @param email_id [String] emailId
931
+ # @param reply_to_email_options [ReplyToEmailOptions] replyToEmailOptions
932
+ # @param [Hash] opts the optional parameters
933
+ # @return [SentEmailDto]
934
+ def reply_to_email(email_id, reply_to_email_options, opts = {})
935
+ data, _status_code, _headers = reply_to_email_with_http_info(email_id, reply_to_email_options, opts)
936
+ data
937
+ end
938
+
939
+ # Reply to an email
940
+ # 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 &#x60;to&#x60;, &#x60;cc&#x60;, and &#x60;bcc&#x60;.
941
+ # @param email_id [String] emailId
942
+ # @param reply_to_email_options [ReplyToEmailOptions] replyToEmailOptions
943
+ # @param [Hash] opts the optional parameters
944
+ # @return [Array<(SentEmailDto, Integer, Hash)>] SentEmailDto data, response status code and response headers
945
+ def reply_to_email_with_http_info(email_id, reply_to_email_options, opts = {})
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.reply_to_email ...'
948
+ end
949
+ # verify the required parameter 'email_id' is set
950
+ if @api_client.config.client_side_validation && email_id.nil?
951
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.reply_to_email"
952
+ end
953
+ # verify the required parameter 'reply_to_email_options' is set
954
+ if @api_client.config.client_side_validation && reply_to_email_options.nil?
955
+ fail ArgumentError, "Missing the required parameter 'reply_to_email_options' when calling EmailControllerApi.reply_to_email"
956
+ end
957
+ # resource path
958
+ local_var_path = '/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
959
+
960
+ # query parameters
961
+ query_params = opts[:query_params] || {}
962
+
963
+ # header parameters
964
+ header_params = opts[:header_params] || {}
965
+ # HTTP header 'Accept' (if needed)
966
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
967
+ # HTTP header 'Content-Type'
968
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
969
+
970
+ # form parameters
971
+ form_params = opts[:form_params] || {}
972
+
973
+ # http body (model)
974
+ post_body = opts[:body] || @api_client.object_to_http_body(reply_to_email_options)
975
+
976
+ # return_type
977
+ return_type = opts[:return_type] || 'SentEmailDto'
978
+
979
+ # auth_names
980
+ auth_names = opts[:auth_names] || ['API_KEY']
981
+
982
+ new_options = opts.merge(
983
+ :header_params => header_params,
984
+ :query_params => query_params,
985
+ :form_params => form_params,
986
+ :body => post_body,
987
+ :auth_names => auth_names,
988
+ :return_type => return_type
989
+ )
990
+
991
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
992
+ if @api_client.config.debugging
993
+ @api_client.config.logger.debug "API called: EmailControllerApi#reply_to_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
994
+ end
995
+ return data, status_code, headers
996
+ end
997
+
928
998
  # Validate email
929
999
  # Validate the HTML content of email if HTML is found. Considered valid if no HTML.
930
1000
  # @param email_id [String] ID of email