mailslurp_client 15.7.14 → 15.7.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) 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 +27 -27
  7. data/lib/mailslurp_client/models/attachment_entity.rb +1 -0
  8. data/lib/mailslurp_client/models/attachment_projection.rb +35 -34
  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 +15 -15
  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/page_alias.rb +19 -19
  52. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  53. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  54. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  55. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  56. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  57. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  58. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  59. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  60. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  61. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  62. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  63. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  64. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  65. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  66. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  67. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  68. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  69. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  70. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  71. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  72. data/lib/mailslurp_client/models/recipient.rb +1 -0
  73. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
  74. data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
  75. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
  76. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -18
  77. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
  78. data/lib/mailslurp_client/models/template_dto.rb +1 -0
  79. data/lib/mailslurp_client/models/template_projection.rb +19 -18
  80. data/lib/mailslurp_client/models/template_variable.rb +1 -0
  81. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
  82. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
  83. data/lib/mailslurp_client/models/thread_projection.rb +21 -21
  84. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
  85. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +25 -24
  86. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
  87. data/lib/mailslurp_client/models/unread_count.rb +1 -0
  88. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
  89. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
  90. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
  91. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
  92. data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
  93. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  94. data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
  95. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  96. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
  97. data/lib/mailslurp_client/version.rb +1 -1
  98. data/lib/mailslurp_client.rb +1 -0
  99. metadata +3 -2
@@ -45,6 +45,9 @@ module MailSlurpClient
45
45
  # 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).
46
46
  attr_accessor :inbox_type
47
47
 
48
+ # Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
49
+ attr_accessor :virtual_inbox
50
+
48
51
  class EnumAttributeValidator
49
52
  attr_reader :datatype
50
53
  attr_reader :allowable_values
@@ -79,7 +82,8 @@ module MailSlurpClient
79
82
  :'favourite' => :'favourite',
80
83
  :'expires_in' => :'expiresIn',
81
84
  :'allow_team_access' => :'allowTeamAccess',
82
- :'inbox_type' => :'inboxType'
85
+ :'inbox_type' => :'inboxType',
86
+ :'virtual_inbox' => :'virtualInbox'
83
87
  }
84
88
  end
85
89
 
@@ -95,7 +99,8 @@ module MailSlurpClient
95
99
  :'favourite' => :'Boolean',
96
100
  :'expires_in' => :'Integer',
97
101
  :'allow_team_access' => :'Boolean',
98
- :'inbox_type' => :'String'
102
+ :'inbox_type' => :'String',
103
+ :'virtual_inbox' => :'Boolean'
99
104
  }
100
105
  end
101
106
 
@@ -161,6 +166,10 @@ module MailSlurpClient
161
166
  if attributes.key?(:'inbox_type')
162
167
  self.inbox_type = attributes[:'inbox_type']
163
168
  end
169
+
170
+ if attributes.key?(:'virtual_inbox')
171
+ self.virtual_inbox = attributes[:'virtual_inbox']
172
+ end
164
173
  end
165
174
 
166
175
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -202,7 +211,8 @@ module MailSlurpClient
202
211
  favourite == o.favourite &&
203
212
  expires_in == o.expires_in &&
204
213
  allow_team_access == o.allow_team_access &&
205
- inbox_type == o.inbox_type
214
+ inbox_type == o.inbox_type &&
215
+ virtual_inbox == o.virtual_inbox
206
216
  end
207
217
 
208
218
  # @see the `==` method
@@ -214,7 +224,7 @@ module MailSlurpClient
214
224
  # Calculates hash code according to all attributes.
215
225
  # @return [Integer] Hash code
216
226
  def hash
217
- [email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type].hash
227
+ [email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type, virtual_inbox].hash
218
228
  end
219
229
 
220
230
  # 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 creating email templates
16
17
  class CreateTemplateOptions
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
+ # Options for creating a tracking pixel for email open tracking
16
17
  class CreateTrackingPixelOptions
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
+ # Domain record description
16
17
  class DescribeDomainOptions
17
18
  attr_accessor :domain
18
19
 
@@ -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,6 +21,8 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
+ attr_accessor :created_at
25
+
24
26
  attr_accessor :inbox_id
25
27
 
26
28
  attr_accessor :attachments
@@ -31,8 +33,6 @@ module MailSlurpClient
31
33
 
32
34
  attr_accessor :cc
33
35
 
34
- attr_accessor :created_at
35
-
36
36
  attr_accessor :team_access
37
37
 
38
38
  attr_accessor :read
@@ -47,12 +47,12 @@ module MailSlurpClient
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
49
  :'subject' => :'subject',
50
+ :'created_at' => :'createdAt',
50
51
  :'inbox_id' => :'inboxId',
51
52
  :'attachments' => :'attachments',
52
53
  :'to' => :'to',
53
54
  :'bcc' => :'bcc',
54
55
  :'cc' => :'cc',
55
- :'created_at' => :'createdAt',
56
56
  :'team_access' => :'teamAccess',
57
57
  :'read' => :'read',
58
58
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -66,12 +66,12 @@ module MailSlurpClient
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
68
  :'subject' => :'String',
69
+ :'created_at' => :'DateTime',
69
70
  :'inbox_id' => :'String',
70
71
  :'attachments' => :'Array<String>',
71
72
  :'to' => :'Array<String>',
72
73
  :'bcc' => :'Array<String>',
73
74
  :'cc' => :'Array<String>',
74
- :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -112,6 +112,10 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
+ if attributes.key?(:'created_at')
116
+ self.created_at = attributes[:'created_at']
117
+ end
118
+
115
119
  if attributes.key?(:'inbox_id')
116
120
  self.inbox_id = attributes[:'inbox_id']
117
121
  end
@@ -140,10 +144,6 @@ module MailSlurpClient
140
144
  end
141
145
  end
142
146
 
143
- if attributes.key?(:'created_at')
144
- self.created_at = attributes[:'created_at']
145
- end
146
-
147
147
  if attributes.key?(:'team_access')
148
148
  self.team_access = attributes[:'team_access']
149
149
  end
@@ -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,12 +202,12 @@ module MailSlurpClient
202
202
  id == o.id &&
203
203
  from == o.from &&
204
204
  subject == o.subject &&
205
+ created_at == o.created_at &&
205
206
  inbox_id == o.inbox_id &&
206
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
211
  team_access == o.team_access &&
212
212
  read == o.read &&
213
213
  body_md5_hash == o.body_md5_hash &&
@@ -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, inbox_id, attachments, to, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].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