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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76c2b51b52d7f63580e4bc83b871eb60321b422deafab4d32f480050825affed
4
- data.tar.gz: b2193b5d4554b6fdbaade20bb9f791ca1eac9d163d24fd47faea01aa6e2bec1a
3
+ metadata.gz: 49a895adb891dc40b1bc2974fe5298e7fe05847362e9447a9bdac0873036116b
4
+ data.tar.gz: 944ba2ff57efae68ef7b1baba6ba1a78c0193f0033835b8efff92e7ed57f1007
5
5
  SHA512:
6
- metadata.gz: 7771fa21777885c9cc0003f17188e518af59d5317ef9ddb811c9a93ff13919dd4467469cb9d66934da5c25a52320462835e9abf8780313a370126740a98f9ec7
7
- data.tar.gz: 2d873c50edcdedfbe3d787d8ad31023bdd923e6ae154d4262be6571bcee52f671b2a64d51cf9d04ceb1a36a01a96081fdc72d8e070324a3106cb0ff07cde9913
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 [nil]
26
+ # @return [Bounce]
27
27
  def get_bounced_email(id, opts = {})
28
- get_bounced_email_with_http_info(id, opts)
29
- nil
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<(nil, Integer, Hash)>] nil, response status code and response headers
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 a bounced email.
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
- # @return [nil]
89
- def get_bounced_email1(id, opts = {})
90
- get_bounced_email1_with_http_info(id, opts)
91
- nil
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 a bounced email.
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
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
99
- def get_bounced_email1_with_http_info(id, opts = {})
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.get_bounced_email1 ...'
105
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_emails ...'
102
106
  end
103
- # verify the required parameter 'id' is set
104
- if @api_client.config.client_side_validation && id.nil?
105
- fail ArgumentError, "Missing the required parameter 'id' when calling BounceControllerApi.get_bounced_email1"
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/recipients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
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#get_bounced_email1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 paginated list of bounced emails.
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
- # @option opts [Integer] :page Optional page index (default to 0)
150
- # @option opts [Integer] :size Optional page size (default to 20)
151
- # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
152
- # @return [nil]
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 paginated list of bounced emails.
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
- # @option opts [Integer] :page Optional page index
162
- # @option opts [Integer] :size Optional page size
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.get_bounced_emails ...'
170
+ @api_client.config.logger.debug 'Calling API: BounceControllerApi.get_bounced_recipient ...'
168
171
  end
169
- allowable_values = ["ASC", "DESC"]
170
- if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
171
- fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
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/emails'
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#get_bounced_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 [nil]
221
+ # @return [PageBouncedRecipients]
222
222
  def get_bounced_recipients(opts = {})
223
- get_bounced_recipients_with_http_info(opts)
224
- nil
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<(nil, Integer, Hash)>] nil, response status code and response headers
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']
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '12.8.0'
14
+ VERSION = '12.8.1'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.8.0
4
+ version: 12.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp