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
@@ -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
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Rules for inbox
16
17
  class InboxRulesetDto
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
+ # Test options for inbox ruleset
16
17
  class InboxRulesetTestOptions
17
18
  attr_accessor :test_target
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Result of test of inbox ruleset
16
17
  class InboxRulesetTestResult
17
18
  # Map of inbox ruleset ID to boolean of if target matches
18
19
  attr_accessor :ruleset_matches
@@ -0,0 +1,270 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ # Byte array request body
17
+ class InlineObject1
18
+ attr_accessor :short
19
+
20
+ attr_accessor :char
21
+
22
+ attr_accessor :int
23
+
24
+ attr_accessor :long
25
+
26
+ attr_accessor :float
27
+
28
+ attr_accessor :double
29
+
30
+ attr_accessor :direct
31
+
32
+ attr_accessor :read_only
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'short' => :'short',
38
+ :'char' => :'char',
39
+ :'int' => :'int',
40
+ :'long' => :'long',
41
+ :'float' => :'float',
42
+ :'double' => :'double',
43
+ :'direct' => :'direct',
44
+ :'read_only' => :'readOnly'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.openapi_types
50
+ {
51
+ :'short' => :'Integer',
52
+ :'char' => :'String',
53
+ :'int' => :'Integer',
54
+ :'long' => :'Integer',
55
+ :'float' => :'Float',
56
+ :'double' => :'Float',
57
+ :'direct' => :'Boolean',
58
+ :'read_only' => :'Boolean'
59
+ }
60
+ end
61
+
62
+ # List of attributes with nullable: true
63
+ def self.openapi_nullable
64
+ Set.new([
65
+ ])
66
+ end
67
+
68
+ # Initializes the object
69
+ # @param [Hash] attributes Model attributes in the form of hash
70
+ def initialize(attributes = {})
71
+ if (!attributes.is_a?(Hash))
72
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InlineObject1` initialize method"
73
+ end
74
+
75
+ # check to see if the attribute exists and convert string to symbol for hash key
76
+ attributes = attributes.each_with_object({}) { |(k, v), h|
77
+ if (!self.class.attribute_map.key?(k.to_sym))
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InlineObject1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ end
80
+ h[k.to_sym] = v
81
+ }
82
+
83
+ if attributes.key?(:'short')
84
+ self.short = attributes[:'short']
85
+ end
86
+
87
+ if attributes.key?(:'char')
88
+ self.char = attributes[:'char']
89
+ end
90
+
91
+ if attributes.key?(:'int')
92
+ self.int = attributes[:'int']
93
+ end
94
+
95
+ if attributes.key?(:'long')
96
+ self.long = attributes[:'long']
97
+ end
98
+
99
+ if attributes.key?(:'float')
100
+ self.float = attributes[:'float']
101
+ end
102
+
103
+ if attributes.key?(:'double')
104
+ self.double = attributes[:'double']
105
+ end
106
+
107
+ if attributes.key?(:'direct')
108
+ self.direct = attributes[:'direct']
109
+ end
110
+
111
+ if attributes.key?(:'read_only')
112
+ self.read_only = attributes[:'read_only']
113
+ end
114
+ end
115
+
116
+ # Show invalid properties with the reasons. Usually used together with valid?
117
+ # @return Array for valid properties with the reasons
118
+ def list_invalid_properties
119
+ invalid_properties = Array.new
120
+ invalid_properties
121
+ end
122
+
123
+ # Check to see if the all the properties in the model are valid
124
+ # @return true if the model is valid
125
+ def valid?
126
+ true
127
+ end
128
+
129
+ # Checks equality by comparing each attribute.
130
+ # @param [Object] Object to be compared
131
+ def ==(o)
132
+ return true if self.equal?(o)
133
+ self.class == o.class &&
134
+ short == o.short &&
135
+ char == o.char &&
136
+ int == o.int &&
137
+ long == o.long &&
138
+ float == o.float &&
139
+ double == o.double &&
140
+ direct == o.direct &&
141
+ read_only == o.read_only
142
+ end
143
+
144
+ # @see the `==` method
145
+ # @param [Object] Object to be compared
146
+ def eql?(o)
147
+ self == o
148
+ end
149
+
150
+ # Calculates hash code according to all attributes.
151
+ # @return [Integer] Hash code
152
+ def hash
153
+ [short, char, int, long, float, double, direct, read_only].hash
154
+ end
155
+
156
+ # Builds the object from hash
157
+ # @param [Hash] attributes Model attributes in the form of hash
158
+ # @return [Object] Returns the model itself
159
+ def self.build_from_hash(attributes)
160
+ new.build_from_hash(attributes)
161
+ end
162
+
163
+ # Builds the object from hash
164
+ # @param [Hash] attributes Model attributes in the form of hash
165
+ # @return [Object] Returns the model itself
166
+ def build_from_hash(attributes)
167
+ return nil unless attributes.is_a?(Hash)
168
+ self.class.openapi_types.each_pair do |key, type|
169
+ if type =~ /\AArray<(.*)>/i
170
+ # check to ensure the input is an array given that the attribute
171
+ # is documented as an array but the input is not
172
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
173
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
174
+ end
175
+ elsif !attributes[self.class.attribute_map[key]].nil?
176
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
177
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
178
+ end
179
+
180
+ self
181
+ end
182
+
183
+ # Deserializes the data based on type
184
+ # @param string type Data type
185
+ # @param string value Value to be deserialized
186
+ # @return [Object] Deserialized data
187
+ def _deserialize(type, value)
188
+ case type.to_sym
189
+ when :DateTime
190
+ DateTime.parse(value)
191
+ when :Date
192
+ Date.parse(value)
193
+ when :String
194
+ value.to_s
195
+ when :Integer
196
+ value.to_i
197
+ when :Float
198
+ value.to_f
199
+ when :Boolean
200
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
201
+ true
202
+ else
203
+ false
204
+ end
205
+ when :Object
206
+ # generic object (usually a Hash), return directly
207
+ value
208
+ when /\AArray<(?<inner_type>.+)>\z/
209
+ inner_type = Regexp.last_match[:inner_type]
210
+ value.map { |v| _deserialize(inner_type, v) }
211
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
212
+ k_type = Regexp.last_match[:k_type]
213
+ v_type = Regexp.last_match[:v_type]
214
+ {}.tap do |hash|
215
+ value.each do |k, v|
216
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
217
+ end
218
+ end
219
+ else # model
220
+ MailSlurpClient.const_get(type).build_from_hash(value)
221
+ end
222
+ end
223
+
224
+ # Returns the string representation of the object
225
+ # @return [String] String presentation of the object
226
+ def to_s
227
+ to_hash.to_s
228
+ end
229
+
230
+ # to_body is an alias to to_hash (backward compatibility)
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_body
233
+ to_hash
234
+ end
235
+
236
+ # Returns the object in the form of hash
237
+ # @return [Hash] Returns the object in the form of hash
238
+ def to_hash
239
+ hash = {}
240
+ self.class.attribute_map.each_pair do |attr, param|
241
+ value = self.send(attr)
242
+ if value.nil?
243
+ is_nullable = self.class.openapi_nullable.include?(attr)
244
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
+ end
246
+
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ # Outputs non-array value in the form of hash
253
+ # For object, use to_hash. Otherwise, just return the value
254
+ # @param [Object] value Any valid value
255
+ # @return [Hash] Returns the value in the form of hash
256
+ def _to_hash(value)
257
+ if value.is_a?(Array)
258
+ value.compact.map { |v| _to_hash(v) }
259
+ elsif value.is_a?(Hash)
260
+ {}.tap do |hash|
261
+ value.each { |k, v| hash[k] = _to_hash(v) }
262
+ end
263
+ elsif value.respond_to? :to_hash
264
+ value.to_hash
265
+ else
266
+ value
267
+ end
268
+ end
269
+ end
270
+ end
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # JSONSchema for payload
16
17
  class JSONSchemaDto
17
18
  attr_accessor :value
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Missed email
16
17
  class MissedEmail
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
+ # Missed email data
16
17
  class MissedEmailProjection
17
18
  attr_accessor :id
18
19
 
@@ -20,18 +21,18 @@ module MailSlurpClient
20
21
 
21
22
  attr_accessor :subject
22
23
 
23
- attr_accessor :user_id
24
-
25
24
  attr_accessor :created_at
26
25
 
26
+ attr_accessor :user_id
27
+
27
28
  # Attribute mapping from ruby-style variable name to JSON key.
28
29
  def self.attribute_map
29
30
  {
30
31
  :'id' => :'id',
31
32
  :'from' => :'from',
32
33
  :'subject' => :'subject',
33
- :'user_id' => :'userId',
34
- :'created_at' => :'createdAt'
34
+ :'created_at' => :'createdAt',
35
+ :'user_id' => :'userId'
35
36
  }
36
37
  end
37
38
 
@@ -41,8 +42,8 @@ module MailSlurpClient
41
42
  :'id' => :'String',
42
43
  :'from' => :'String',
43
44
  :'subject' => :'String',
44
- :'user_id' => :'String',
45
- :'created_at' => :'DateTime'
45
+ :'created_at' => :'DateTime',
46
+ :'user_id' => :'String'
46
47
  }
47
48
  end
48
49
 
@@ -79,13 +80,13 @@ module MailSlurpClient
79
80
  self.subject = attributes[:'subject']
80
81
  end
81
82
 
82
- if attributes.key?(:'user_id')
83
- self.user_id = attributes[:'user_id']
84
- end
85
-
86
83
  if attributes.key?(:'created_at')
87
84
  self.created_at = attributes[:'created_at']
88
85
  end
86
+
87
+ if attributes.key?(:'user_id')
88
+ self.user_id = attributes[:'user_id']
89
+ end
89
90
  end
90
91
 
91
92
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,8 +120,8 @@ module MailSlurpClient
119
120
  id == o.id &&
120
121
  from == o.from &&
121
122
  subject == o.subject &&
122
- user_id == o.user_id &&
123
- created_at == o.created_at
123
+ created_at == o.created_at &&
124
+ user_id == o.user_id
124
125
  end
125
126
 
126
127
  # @see the `==` method
@@ -132,7 +133,7 @@ module MailSlurpClient
132
133
  # Calculates hash code according to all attributes.
133
134
  # @return [Integer] Hash code
134
135
  def hash
135
- [id, from, subject, user_id, created_at].hash
136
+ [id, from, subject, created_at, user_id].hash
136
137
  end
137
138
 
138
139
  # 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
+ # Organization team inbox
16
17
  class OrganizationInboxProjection
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
@@ -41,6 +42,9 @@ module MailSlurpClient
41
42
  # 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.
42
43
  attr_accessor :read_only
43
44
 
45
+ # 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.
46
+ attr_accessor :virtual_inbox
47
+
44
48
  class EnumAttributeValidator
45
49
  attr_reader :datatype
46
50
  attr_reader :allowable_values
@@ -74,7 +78,8 @@ module MailSlurpClient
74
78
  :'tags' => :'tags',
75
79
  :'team_access' => :'teamAccess',
76
80
  :'inbox_type' => :'inboxType',
77
- :'read_only' => :'readOnly'
81
+ :'read_only' => :'readOnly',
82
+ :'virtual_inbox' => :'virtualInbox'
78
83
  }
79
84
  end
80
85
 
@@ -89,7 +94,8 @@ module MailSlurpClient
89
94
  :'tags' => :'Array<String>',
90
95
  :'team_access' => :'Boolean',
91
96
  :'inbox_type' => :'String',
92
- :'read_only' => :'Boolean'
97
+ :'read_only' => :'Boolean',
98
+ :'virtual_inbox' => :'Boolean'
93
99
  }
94
100
  end
95
101
 
@@ -151,6 +157,10 @@ module MailSlurpClient
151
157
  if attributes.key?(:'read_only')
152
158
  self.read_only = attributes[:'read_only']
153
159
  end
160
+
161
+ if attributes.key?(:'virtual_inbox')
162
+ self.virtual_inbox = attributes[:'virtual_inbox']
163
+ end
154
164
  end
155
165
 
156
166
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -216,7 +226,8 @@ module MailSlurpClient
216
226
  tags == o.tags &&
217
227
  team_access == o.team_access &&
218
228
  inbox_type == o.inbox_type &&
219
- read_only == o.read_only
229
+ read_only == o.read_only &&
230
+ virtual_inbox == o.virtual_inbox
220
231
  end
221
232
 
222
233
  # @see the `==` method
@@ -228,7 +239,7 @@ module MailSlurpClient
228
239
  # Calculates hash code according to all attributes.
229
240
  # @return [Integer] Hash code
230
241
  def hash
231
- [id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only].hash
242
+ [id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
232
243
  end
233
244
 
234
245
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
+ attr_accessor :last
25
+
24
26
  attr_accessor :total_elements
25
27
 
26
28
  attr_accessor :total_pages
27
29
 
28
- attr_accessor :last
29
-
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :number_of_elements
37
-
38
36
  attr_accessor :first
39
37
 
38
+ attr_accessor :number_of_elements
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
+ :'last' => :'last',
48
49
  :'total_elements' => :'totalElements',
49
50
  :'total_pages' => :'totalPages',
50
- :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'number_of_elements' => :'numberOfElements',
55
54
  :'first' => :'first',
55
+ :'number_of_elements' => :'numberOfElements',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<AliasProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
+ :'last' => :'Boolean',
66
67
  :'total_elements' => :'Integer',
67
68
  :'total_pages' => :'Integer',
68
- :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'number_of_elements' => :'Integer',
73
72
  :'first' => :'Boolean',
73
+ :'number_of_elements' => :'Integer',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,6 +110,10 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
+ if attributes.key?(:'last')
114
+ self.last = attributes[:'last']
115
+ end
116
+
113
117
  if attributes.key?(:'total_elements')
114
118
  self.total_elements = attributes[:'total_elements']
115
119
  end
@@ -118,10 +122,6 @@ module MailSlurpClient
118
122
  self.total_pages = attributes[:'total_pages']
119
123
  end
120
124
 
121
- if attributes.key?(:'last')
122
- self.last = attributes[:'last']
123
- end
124
-
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'number_of_elements')
138
- self.number_of_elements = attributes[:'number_of_elements']
139
- end
140
-
141
137
  if attributes.key?(:'first')
142
138
  self.first = attributes[:'first']
143
139
  end
144
140
 
141
+ if attributes.key?(:'number_of_elements')
142
+ self.number_of_elements = attributes[:'number_of_elements']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
+ last == o.last &&
171
172
  total_elements == o.total_elements &&
172
173
  total_pages == o.total_pages &&
173
- last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- number_of_elements == o.number_of_elements &&
178
177
  first == o.first &&
178
+ number_of_elements == o.number_of_elements &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
191
+ [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash