mailslurp_client 15.7.5 → 15.7.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +60 -0
  3. data/lib/mailslurp_client/api/webhook_controller_api.rb +233 -3
  4. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  7. data/lib/mailslurp_client/models/bounce_recipient.rb +5 -0
  8. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  9. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/inbox_dto.rb +1 -1
  11. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  12. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  14. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  15. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  17. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  19. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  22. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  32. data/lib/mailslurp_client/models/sent_email_projection.rb +45 -45
  33. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  34. data/lib/mailslurp_client/models/thread_projection.rb +15 -15
  35. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +339 -0
  37. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +302 -0
  38. data/lib/mailslurp_client/models/webhook_dto.rb +3 -8
  39. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
  40. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
  41. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  42. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
  43. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
  44. data/lib/mailslurp_client/models/webhook_projection.rb +2 -7
  45. data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -7
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +2 -0
  48. metadata +4 -2
@@ -197,7 +197,7 @@ module MailSlurpClient
197
197
  return false if @message_id.nil?
198
198
  return false if @webhook_id.nil?
199
199
  return false if @event_name.nil?
200
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
200
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
201
201
  return false unless event_name_validator.valid?(@event_name)
202
202
  return false if @inbox_id.nil?
203
203
  return false if @pixel_id.nil?
@@ -210,7 +210,7 @@ module MailSlurpClient
210
210
  # Custom attribute writer method checking allowed values (enum).
211
211
  # @param [Object] event_name Object to be assigned
212
212
  def event_name=(event_name)
213
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
213
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
214
214
  unless validator.valid?(event_name)
215
215
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
216
216
  end
@@ -184,7 +184,7 @@ module MailSlurpClient
184
184
  return false if @message_id.nil?
185
185
  return false if @webhook_id.nil?
186
186
  return false if @event_name.nil?
187
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
187
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
188
188
  return false unless event_name_validator.valid?(@event_name)
189
189
  return false if @email_id.nil?
190
190
  return false if @inbox_id.nil?
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Custom attribute writer method checking allowed values (enum).
197
197
  # @param [Object] event_name Object to be assigned
198
198
  def event_name=(event_name)
199
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
199
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
200
200
  unless validator.valid?(event_name)
201
201
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
202
202
  end
@@ -184,7 +184,7 @@ module MailSlurpClient
184
184
  return false if @message_id.nil?
185
185
  return false if @webhook_id.nil?
186
186
  return false if @event_name.nil?
187
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
187
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
188
188
  return false unless event_name_validator.valid?(@event_name)
189
189
  return false if @attachment_id.nil?
190
190
  return false if @name.nil?
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Custom attribute writer method checking allowed values (enum).
197
197
  # @param [Object] event_name Object to be assigned
198
198
  def event_name=(event_name)
199
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
199
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
200
200
  unless validator.valid?(event_name)
201
201
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
202
202
  end
@@ -240,7 +240,7 @@ module MailSlurpClient
240
240
  return false if @message_id.nil?
241
241
  return false if @webhook_id.nil?
242
242
  return false if @event_name.nil?
243
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
243
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
244
244
  return false unless event_name_validator.valid?(@event_name)
245
245
  return false if @contact_id.nil?
246
246
  return false if @email_addresses.nil?
@@ -252,7 +252,7 @@ module MailSlurpClient
252
252
  # Custom attribute writer method checking allowed values (enum).
253
253
  # @param [Object] event_name Object to be assigned
254
254
  def event_name=(event_name)
255
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
255
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
256
256
  unless validator.valid?(event_name)
257
257
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
258
258
  end
@@ -253,7 +253,7 @@ module MailSlurpClient
253
253
  return false if @message_id.nil?
254
254
  return false if @webhook_id.nil?
255
255
  return false if @event_name.nil?
256
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
256
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
257
257
  return false unless event_name_validator.valid?(@event_name)
258
258
  return false if @inbox_id.nil?
259
259
  return false if @email_id.nil?
@@ -269,7 +269,7 @@ module MailSlurpClient
269
269
  # Custom attribute writer method checking allowed values (enum).
270
270
  # @param [Object] event_name Object to be assigned
271
271
  def event_name=(event_name)
272
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
272
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
273
273
  unless validator.valid?(event_name)
274
274
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
275
275
  end
@@ -139,10 +139,6 @@ module MailSlurpClient
139
139
  invalid_properties.push('invalid value for "url", url cannot be nil.')
140
140
  end
141
141
 
142
- if @inbox_id.nil?
143
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
144
- end
145
-
146
142
  if @created_at.nil?
147
143
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
148
144
  end
@@ -159,8 +155,7 @@ module MailSlurpClient
159
155
  def valid?
160
156
  return false if @id.nil?
161
157
  return false if @url.nil?
162
- return false if @inbox_id.nil?
163
- event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
158
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
164
159
  return false unless event_name_validator.valid?(@event_name)
165
160
  return false if @created_at.nil?
166
161
  return false if @updated_at.nil?
@@ -170,7 +165,7 @@ module MailSlurpClient
170
165
  # Custom attribute writer method checking allowed values (enum).
171
166
  # @param [Object] event_name Object to be assigned
172
167
  def event_name=(event_name)
173
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
168
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
174
169
  unless validator.valid?(event_name)
175
170
  fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
176
171
  end
@@ -206,10 +206,6 @@ module MailSlurpClient
206
206
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
207
207
  end
208
208
 
209
- if @inbox_id.nil?
210
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
211
- end
212
-
213
209
  if @webhook_id.nil?
214
210
  invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
215
211
  end
@@ -249,7 +245,6 @@ module MailSlurpClient
249
245
  # @return true if the model is valid
250
246
  def valid?
251
247
  return false if @user_id.nil?
252
- return false if @inbox_id.nil?
253
248
  return false if @webhook_id.nil?
254
249
  return false if @webhook_url.nil?
255
250
  return false if @message_id.nil?
@@ -257,7 +252,7 @@ module MailSlurpClient
257
252
  http_method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
258
253
  return false unless http_method_validator.valid?(@http_method)
259
254
  return false if @webhook_event.nil?
260
- webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
255
+ webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
261
256
  return false unless webhook_event_validator.valid?(@webhook_event)
262
257
  return false if @response_time_millis.nil?
263
258
  result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
@@ -280,7 +275,7 @@ module MailSlurpClient
280
275
  # Custom attribute writer method checking allowed values (enum).
281
276
  # @param [Object] webhook_event Object to be assigned
282
277
  def webhook_event=(webhook_event)
283
- validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
278
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT"])
284
279
  unless validator.valid?(webhook_event)
285
280
  fail ArgumentError, "invalid value for \"webhook_event\", must be one of #{validator.allowable_values}."
286
281
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.7.5'
14
+ VERSION = '15.7.10'
15
15
  end
@@ -160,6 +160,8 @@ require 'mailslurp_client/models/validation_dto'
160
160
  require 'mailslurp_client/models/validation_message'
161
161
  require 'mailslurp_client/models/verify_email_address_options'
162
162
  require 'mailslurp_client/models/wait_for_conditions'
163
+ require 'mailslurp_client/models/webhook_bounce_payload'
164
+ require 'mailslurp_client/models/webhook_bounce_recipient_payload'
163
165
  require 'mailslurp_client/models/webhook_dto'
164
166
  require 'mailslurp_client/models/webhook_email_opened_payload'
165
167
  require 'mailslurp_client/models/webhook_email_read_payload'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.7.5
4
+ version: 15.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-22 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
@@ -193,6 +193,8 @@ files:
193
193
  - lib/mailslurp_client/models/validation_message.rb
194
194
  - lib/mailslurp_client/models/verify_email_address_options.rb
195
195
  - lib/mailslurp_client/models/wait_for_conditions.rb
196
+ - lib/mailslurp_client/models/webhook_bounce_payload.rb
197
+ - lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb
196
198
  - lib/mailslurp_client/models/webhook_dto.rb
197
199
  - lib/mailslurp_client/models/webhook_email_opened_payload.rb
198
200
  - lib/mailslurp_client/models/webhook_email_read_payload.rb