mailslurp_client 15.7.13 → 15.7.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +9 -9
  3. data/lib/mailslurp_client/api/common_actions_controller_api.rb +6 -0
  4. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/attachment_entity.rb +1 -0
  8. data/lib/mailslurp_client/models/attachment_projection.rb +16 -15
  9. data/lib/mailslurp_client/models/bounce_projection.rb +1 -0
  10. data/lib/mailslurp_client/models/bounce_recipient.rb +1 -0
  11. data/lib/mailslurp_client/models/contact_dto.rb +1 -0
  12. data/lib/mailslurp_client/models/contact_projection.rb +14 -13
  13. data/lib/mailslurp_client/models/count_dto.rb +1 -0
  14. data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
  15. data/lib/mailslurp_client/models/create_group_options.rb +1 -0
  16. data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
  17. data/lib/mailslurp_client/models/create_template_options.rb +1 -0
  18. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -0
  19. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -0
  20. data/lib/mailslurp_client/models/email.rb +13 -4
  21. data/lib/mailslurp_client/models/email_preview_urls.rb +1 -0
  22. data/lib/mailslurp_client/models/email_projection.rb +32 -32
  23. data/lib/mailslurp_client/models/email_validation_request.rb +1 -0
  24. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -18
  25. data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -0
  26. data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -0
  27. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -0
  28. data/lib/mailslurp_client/models/gravatar_url.rb +1 -0
  29. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -0
  30. data/lib/mailslurp_client/models/group_dto.rb +1 -0
  31. data/lib/mailslurp_client/models/group_projection.rb +1 -0
  32. data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -0
  33. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +9 -0
  34. data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
  35. data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
  36. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -0
  37. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -0
  38. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
  39. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -0
  40. data/lib/mailslurp_client/models/inbox_id_item.rb +1 -0
  41. data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -0
  42. data/lib/mailslurp_client/models/inbox_preview.rb +12 -1
  43. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -0
  44. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -0
  45. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -0
  46. data/lib/mailslurp_client/models/inline_object1.rb +270 -0
  47. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -0
  48. data/lib/mailslurp_client/models/missed_email.rb +1 -0
  49. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -13
  50. data/lib/mailslurp_client/models/organization_inbox_projection.rb +15 -4
  51. data/lib/mailslurp_client/models/recipient.rb +1 -0
  52. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
  53. data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
  54. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
  55. data/lib/mailslurp_client/models/sent_email_projection.rb +38 -29
  56. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
  57. data/lib/mailslurp_client/models/template_dto.rb +1 -0
  58. data/lib/mailslurp_client/models/template_projection.rb +1 -0
  59. data/lib/mailslurp_client/models/template_variable.rb +1 -0
  60. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
  61. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
  62. data/lib/mailslurp_client/models/thread_projection.rb +15 -15
  63. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
  64. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +16 -15
  65. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
  66. data/lib/mailslurp_client/models/unread_count.rb +1 -0
  67. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
  68. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
  69. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
  70. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
  71. data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
  72. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  73. data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
  74. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  75. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
  76. data/lib/mailslurp_client/version.rb +1 -1
  77. data/lib/mailslurp_client.rb +1 -0
  78. metadata +3 -2
@@ -81,6 +81,8 @@ module MailSlurpClient
81
81
  # Can the email be accessed by organization team members
82
82
  attr_accessor :team_access
83
83
 
84
+ attr_accessor :html
85
+
84
86
  # Attribute mapping from ruby-style variable name to JSON key.
85
87
  def self.attribute_map
86
88
  {
@@ -106,7 +108,8 @@ module MailSlurpClient
106
108
  :'created_at' => :'createdAt',
107
109
  :'updated_at' => :'updatedAt',
108
110
  :'read' => :'read',
109
- :'team_access' => :'teamAccess'
111
+ :'team_access' => :'teamAccess',
112
+ :'html' => :'html'
110
113
  }
111
114
  end
112
115
 
@@ -135,7 +138,8 @@ module MailSlurpClient
135
138
  :'created_at' => :'DateTime',
136
139
  :'updated_at' => :'DateTime',
137
140
  :'read' => :'Boolean',
138
- :'team_access' => :'Boolean'
141
+ :'team_access' => :'Boolean',
142
+ :'html' => :'Boolean'
139
143
  }
140
144
  end
141
145
 
@@ -261,6 +265,10 @@ module MailSlurpClient
261
265
  if attributes.key?(:'team_access')
262
266
  self.team_access = attributes[:'team_access']
263
267
  end
268
+
269
+ if attributes.key?(:'html')
270
+ self.html = attributes[:'html']
271
+ end
264
272
  end
265
273
 
266
274
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -343,7 +351,8 @@ module MailSlurpClient
343
351
  created_at == o.created_at &&
344
352
  updated_at == o.updated_at &&
345
353
  read == o.read &&
346
- team_access == o.team_access
354
+ team_access == o.team_access &&
355
+ html == o.html
347
356
  end
348
357
 
349
358
  # @see the `==` method
@@ -355,7 +364,7 @@ module MailSlurpClient
355
364
  # Calculates hash code according to all attributes.
356
365
  # @return [Integer] Hash code
357
366
  def hash
358
- [id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access].hash
367
+ [id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
359
368
  end
360
369
 
361
370
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # URLs for email body
16
17
  class EmailPreviewUrls
17
18
  attr_accessor :raw_smtp_message_url
18
19
 
@@ -21,17 +21,19 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :attachments
24
+ attr_accessor :created_at
25
25
 
26
26
  attr_accessor :inbox_id
27
27
 
28
+ attr_accessor :attachments
29
+
28
30
  attr_accessor :to
29
31
 
30
32
  attr_accessor :bcc
31
33
 
32
34
  attr_accessor :cc
33
35
 
34
- attr_accessor :created_at
36
+ attr_accessor :team_access
35
37
 
36
38
  attr_accessor :read
37
39
 
@@ -39,24 +41,22 @@ module MailSlurpClient
39
41
 
40
42
  attr_accessor :body_excerpt
41
43
 
42
- attr_accessor :team_access
43
-
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
49
  :'subject' => :'subject',
50
- :'attachments' => :'attachments',
50
+ :'created_at' => :'createdAt',
51
51
  :'inbox_id' => :'inboxId',
52
+ :'attachments' => :'attachments',
52
53
  :'to' => :'to',
53
54
  :'bcc' => :'bcc',
54
55
  :'cc' => :'cc',
55
- :'created_at' => :'createdAt',
56
+ :'team_access' => :'teamAccess',
56
57
  :'read' => :'read',
57
58
  :'body_md5_hash' => :'bodyMD5Hash',
58
- :'body_excerpt' => :'bodyExcerpt',
59
- :'team_access' => :'teamAccess'
59
+ :'body_excerpt' => :'bodyExcerpt'
60
60
  }
61
61
  end
62
62
 
@@ -66,16 +66,16 @@ module MailSlurpClient
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
68
  :'subject' => :'String',
69
- :'attachments' => :'Array<String>',
69
+ :'created_at' => :'DateTime',
70
70
  :'inbox_id' => :'String',
71
+ :'attachments' => :'Array<String>',
71
72
  :'to' => :'Array<String>',
72
73
  :'bcc' => :'Array<String>',
73
74
  :'cc' => :'Array<String>',
74
- :'created_at' => :'DateTime',
75
+ :'team_access' => :'Boolean',
75
76
  :'read' => :'Boolean',
76
77
  :'body_md5_hash' => :'String',
77
- :'body_excerpt' => :'String',
78
- :'team_access' => :'Boolean'
78
+ :'body_excerpt' => :'String'
79
79
  }
80
80
  end
81
81
 
@@ -112,16 +112,20 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'attachments')
116
- if (value = attributes[:'attachments']).is_a?(Array)
117
- self.attachments = value
118
- end
115
+ if attributes.key?(:'created_at')
116
+ self.created_at = attributes[:'created_at']
119
117
  end
120
118
 
121
119
  if attributes.key?(:'inbox_id')
122
120
  self.inbox_id = attributes[:'inbox_id']
123
121
  end
124
122
 
123
+ if attributes.key?(:'attachments')
124
+ if (value = attributes[:'attachments']).is_a?(Array)
125
+ self.attachments = value
126
+ end
127
+ end
128
+
125
129
  if attributes.key?(:'to')
126
130
  if (value = attributes[:'to']).is_a?(Array)
127
131
  self.to = value
@@ -140,8 +144,8 @@ module MailSlurpClient
140
144
  end
141
145
  end
142
146
 
143
- if attributes.key?(:'created_at')
144
- self.created_at = attributes[:'created_at']
147
+ if attributes.key?(:'team_access')
148
+ self.team_access = attributes[:'team_access']
145
149
  end
146
150
 
147
151
  if attributes.key?(:'read')
@@ -155,10 +159,6 @@ module MailSlurpClient
155
159
  if attributes.key?(:'body_excerpt')
156
160
  self.body_excerpt = attributes[:'body_excerpt']
157
161
  end
158
-
159
- if attributes.key?(:'team_access')
160
- self.team_access = attributes[:'team_access']
161
- end
162
162
  end
163
163
 
164
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -169,6 +169,10 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "id", id cannot be nil.')
170
170
  end
171
171
 
172
+ if @created_at.nil?
173
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
174
+ end
175
+
172
176
  if @inbox_id.nil?
173
177
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
174
178
  end
@@ -177,10 +181,6 @@ module MailSlurpClient
177
181
  invalid_properties.push('invalid value for "to", to cannot be nil.')
178
182
  end
179
183
 
180
- if @created_at.nil?
181
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
- end
183
-
184
184
  invalid_properties
185
185
  end
186
186
 
@@ -188,9 +188,9 @@ module MailSlurpClient
188
188
  # @return true if the model is valid
189
189
  def valid?
190
190
  return false if @id.nil?
191
+ return false if @created_at.nil?
191
192
  return false if @inbox_id.nil?
192
193
  return false if @to.nil?
193
- return false if @created_at.nil?
194
194
  true
195
195
  end
196
196
 
@@ -202,16 +202,16 @@ module MailSlurpClient
202
202
  id == o.id &&
203
203
  from == o.from &&
204
204
  subject == o.subject &&
205
- attachments == o.attachments &&
205
+ created_at == o.created_at &&
206
206
  inbox_id == o.inbox_id &&
207
+ attachments == o.attachments &&
207
208
  to == o.to &&
208
209
  bcc == o.bcc &&
209
210
  cc == o.cc &&
210
- created_at == o.created_at &&
211
+ team_access == o.team_access &&
211
212
  read == o.read &&
212
213
  body_md5_hash == o.body_md5_hash &&
213
- body_excerpt == o.body_excerpt &&
214
- team_access == o.team_access
214
+ body_excerpt == o.body_excerpt
215
215
  end
216
216
 
217
217
  # @see the `==` method
@@ -223,7 +223,7 @@ module MailSlurpClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [id, from, subject, attachments, inbox_id, to, bcc, cc, created_at, read, body_md5_hash, body_excerpt, team_access].hash
226
+ [id, from, subject, created_at, inbox_id, attachments, to, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Email validation request
16
17
  class EmailValidationRequest
17
18
  attr_accessor :id
18
19
 
@@ -13,22 +13,23 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Record of inbox expiration
16
17
  class ExpiredInboxRecordProjection
17
18
  attr_accessor :id
18
19
 
20
+ attr_accessor :created_at
21
+
19
22
  attr_accessor :user_id
20
23
 
21
24
  attr_accessor :email_address
22
25
 
23
- attr_accessor :created_at
24
-
25
26
  # Attribute mapping from ruby-style variable name to JSON key.
26
27
  def self.attribute_map
27
28
  {
28
29
  :'id' => :'id',
30
+ :'created_at' => :'createdAt',
29
31
  :'user_id' => :'userId',
30
- :'email_address' => :'emailAddress',
31
- :'created_at' => :'createdAt'
32
+ :'email_address' => :'emailAddress'
32
33
  }
33
34
  end
34
35
 
@@ -36,9 +37,9 @@ module MailSlurpClient
36
37
  def self.openapi_types
37
38
  {
38
39
  :'id' => :'String',
40
+ :'created_at' => :'DateTime',
39
41
  :'user_id' => :'String',
40
- :'email_address' => :'String',
41
- :'created_at' => :'DateTime'
42
+ :'email_address' => :'String'
42
43
  }
43
44
  end
44
45
 
@@ -67,6 +68,10 @@ module MailSlurpClient
67
68
  self.id = attributes[:'id']
68
69
  end
69
70
 
71
+ if attributes.key?(:'created_at')
72
+ self.created_at = attributes[:'created_at']
73
+ end
74
+
70
75
  if attributes.key?(:'user_id')
71
76
  self.user_id = attributes[:'user_id']
72
77
  end
@@ -74,10 +79,6 @@ module MailSlurpClient
74
79
  if attributes.key?(:'email_address')
75
80
  self.email_address = attributes[:'email_address']
76
81
  end
77
-
78
- if attributes.key?(:'created_at')
79
- self.created_at = attributes[:'created_at']
80
- end
81
82
  end
82
83
 
83
84
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,6 +89,10 @@ module MailSlurpClient
88
89
  invalid_properties.push('invalid value for "id", id cannot be nil.')
89
90
  end
90
91
 
92
+ if @created_at.nil?
93
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
94
+ end
95
+
91
96
  if @user_id.nil?
92
97
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
93
98
  end
@@ -96,10 +101,6 @@ module MailSlurpClient
96
101
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
97
102
  end
98
103
 
99
- if @created_at.nil?
100
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
101
- end
102
-
103
104
  invalid_properties
104
105
  end
105
106
 
@@ -107,9 +108,9 @@ module MailSlurpClient
107
108
  # @return true if the model is valid
108
109
  def valid?
109
110
  return false if @id.nil?
111
+ return false if @created_at.nil?
110
112
  return false if @user_id.nil?
111
113
  return false if @email_address.nil?
112
- return false if @created_at.nil?
113
114
  true
114
115
  end
115
116
 
@@ -119,9 +120,9 @@ module MailSlurpClient
119
120
  return true if self.equal?(o)
120
121
  self.class == o.class &&
121
122
  id == o.id &&
123
+ created_at == o.created_at &&
122
124
  user_id == o.user_id &&
123
- email_address == o.email_address &&
124
- created_at == o.created_at
125
+ email_address == o.email_address
125
126
  end
126
127
 
127
128
  # @see the `==` method
@@ -133,7 +134,7 @@ module MailSlurpClient
133
134
  # Calculates hash code according to all attributes.
134
135
  # @return [Integer] Hash code
135
136
  def hash
136
- [id, user_id, email_address, created_at].hash
137
+ [id, created_at, user_id, email_address].hash
137
138
  end
138
139
 
139
140
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Options for filtering bounced email recipients
16
17
  class FilterBouncedRecipientsOptions
17
18
  attr_accessor :email_recipients
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Remaining recipients that were filtered to remove bounced recipients
16
17
  class FilterBouncedRecipientsResult
17
18
  attr_accessor :filtered_recipients
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Result from calling expire on any inboxes that have applicable expiration dates given current time.
16
17
  class FlushExpiredInboxesResult
17
18
  attr_accessor :inbox_ids
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # User image
16
17
  class GravatarUrl
17
18
  attr_accessor :url
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Describes contacts attached to a contact group
16
17
  class GroupContactsDto
17
18
  attr_accessor :group
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Contact group data
16
17
  class GroupDto
17
18
  attr_accessor :id
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Data for contact group
16
17
  class GroupProjection
17
18
  attr_accessor :name
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # IMAP operation flags
16
17
  class ImapFlagOperationOptions
17
18
  attr_accessor :flag_operation
18
19
 
@@ -13,21 +13,30 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Access details for inbox using SMTP or IMAP
16
17
  class ImapSmtpAccessDetails
18
+ # SMTP server host domain
17
19
  attr_accessor :smtp_server_host
18
20
 
21
+ # SMTP server host port
19
22
  attr_accessor :smtp_server_port
20
23
 
24
+ # SMTP username for login
21
25
  attr_accessor :smtp_username
22
26
 
27
+ # SMTP for login
23
28
  attr_accessor :smtp_password
24
29
 
30
+ # IMAP server host domain
25
31
  attr_accessor :imap_server_host
26
32
 
33
+ # IMAP server host port
27
34
  attr_accessor :imap_server_port
28
35
 
36
+ # IMAP username for login
29
37
  attr_accessor :imap_username
30
38
 
39
+ # IMAP password for login
31
40
  attr_accessor :imap_password
32
41
 
33
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Result of search for inbox by email address
16
17
  class InboxByEmailAddressResult
17
18
  attr_accessor :inbox_id
18
19
 
@@ -48,6 +48,9 @@ module MailSlurpClient
48
48
  # Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
49
49
  attr_accessor :read_only
50
50
 
51
+ # Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions.
52
+ attr_accessor :virtual_inbox
53
+
51
54
  class EnumAttributeValidator
52
55
  attr_reader :datatype
53
56
  attr_reader :allowable_values
@@ -83,7 +86,8 @@ module MailSlurpClient
83
86
  :'favourite' => :'favourite',
84
87
  :'tags' => :'tags',
85
88
  :'inbox_type' => :'inboxType',
86
- :'read_only' => :'readOnly'
89
+ :'read_only' => :'readOnly',
90
+ :'virtual_inbox' => :'virtualInbox'
87
91
  }
88
92
  end
89
93
 
@@ -100,7 +104,8 @@ module MailSlurpClient
100
104
  :'favourite' => :'Boolean',
101
105
  :'tags' => :'Array<String>',
102
106
  :'inbox_type' => :'String',
103
- :'read_only' => :'Boolean'
107
+ :'read_only' => :'Boolean',
108
+ :'virtual_inbox' => :'Boolean'
104
109
  }
105
110
  end
106
111
 
@@ -170,6 +175,10 @@ module MailSlurpClient
170
175
  if attributes.key?(:'read_only')
171
176
  self.read_only = attributes[:'read_only']
172
177
  end
178
+
179
+ if attributes.key?(:'virtual_inbox')
180
+ self.virtual_inbox = attributes[:'virtual_inbox']
181
+ end
173
182
  end
174
183
 
175
184
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -196,6 +205,10 @@ module MailSlurpClient
196
205
  invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
197
206
  end
198
207
 
208
+ if @virtual_inbox.nil?
209
+ invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
210
+ end
211
+
199
212
  invalid_properties
200
213
  end
201
214
 
@@ -209,6 +222,7 @@ module MailSlurpClient
209
222
  inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
210
223
  return false unless inbox_type_validator.valid?(@inbox_type)
211
224
  return false if @read_only.nil?
225
+ return false if @virtual_inbox.nil?
212
226
  true
213
227
  end
214
228
 
@@ -237,7 +251,8 @@ module MailSlurpClient
237
251
  favourite == o.favourite &&
238
252
  tags == o.tags &&
239
253
  inbox_type == o.inbox_type &&
240
- read_only == o.read_only
254
+ read_only == o.read_only &&
255
+ virtual_inbox == o.virtual_inbox
241
256
  end
242
257
 
243
258
  # @see the `==` method
@@ -249,7 +264,7 @@ module MailSlurpClient
249
264
  # Calculates hash code according to all attributes.
250
265
  # @return [Integer] Hash code
251
266
  def hash
252
- [id, user_id, created_at, name, description, email_address, expires_at, favourite, tags, inbox_type, read_only].hash
267
+ [id, user_id, created_at, name, description, email_address, expires_at, favourite, tags, inbox_type, read_only, virtual_inbox].hash
253
268
  end
254
269
 
255
270
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Result of email exists query
16
17
  class InboxExistsDto
17
18
  attr_accessor :exists
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Inbox forwarder
16
17
  class InboxForwarderDto
17
18
  attr_accessor :id
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Options for testing an inbox forwarder against a value
16
17
  class InboxForwarderTestOptions
17
18
  attr_accessor :test_value
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Results of inbox forwarder test
16
17
  class InboxForwarderTestResult
17
18
  attr_accessor :matches
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Inbox ID and email address pair
16
17
  class InboxIdItem
17
18
  attr_accessor :id
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # List of inbox IDs and email addresses
16
17
  class InboxIdsResult
17
18
  attr_accessor :inbox_ids
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Inbox data
16
17
  class InboxPreview
17
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
18
19
  attr_accessor :id
@@ -38,6 +39,9 @@ module MailSlurpClient
38
39
  # Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
39
40
  attr_accessor :inbox_type
40
41
 
42
+ # Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions.
43
+ attr_accessor :virtual_inbox
44
+
41
45
  # Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
42
46
  attr_accessor :expires_at
43
47
 
@@ -74,6 +78,7 @@ module MailSlurpClient
74
78
  :'tags' => :'tags',
75
79
  :'team_access' => :'teamAccess',
76
80
  :'inbox_type' => :'inboxType',
81
+ :'virtual_inbox' => :'virtualInbox',
77
82
  :'expires_at' => :'expiresAt'
78
83
  }
79
84
  end
@@ -89,6 +94,7 @@ module MailSlurpClient
89
94
  :'tags' => :'Array<String>',
90
95
  :'team_access' => :'Boolean',
91
96
  :'inbox_type' => :'String',
97
+ :'virtual_inbox' => :'Boolean',
92
98
  :'expires_at' => :'String'
93
99
  }
94
100
  end
@@ -148,6 +154,10 @@ module MailSlurpClient
148
154
  self.inbox_type = attributes[:'inbox_type']
149
155
  end
150
156
 
157
+ if attributes.key?(:'virtual_inbox')
158
+ self.virtual_inbox = attributes[:'virtual_inbox']
159
+ end
160
+
151
161
  if attributes.key?(:'expires_at')
152
162
  self.expires_at = attributes[:'expires_at']
153
163
  end
@@ -211,6 +221,7 @@ module MailSlurpClient
211
221
  tags == o.tags &&
212
222
  team_access == o.team_access &&
213
223
  inbox_type == o.inbox_type &&
224
+ virtual_inbox == o.virtual_inbox &&
214
225
  expires_at == o.expires_at
215
226
  end
216
227
 
@@ -223,7 +234,7 @@ module MailSlurpClient
223
234
  # Calculates hash code according to all attributes.
224
235
  # @return [Integer] Hash code
225
236
  def hash
226
- [id, email_address, created_at, favourite, name, tags, team_access, inbox_type, expires_at].hash
237
+ [id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
227
238
  end
228
239
 
229
240
  # Builds the object from hash