mailslurp_client 15.12.14 → 15.12.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +104 -0
  3. data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
  4. data/lib/mailslurp_client/api/inbox_controller_api.rb +89 -0
  5. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +292 -0
  6. data/lib/mailslurp_client/api/webhook_controller_api.rb +3 -0
  7. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  8. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  9. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  10. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  11. data/lib/mailslurp_client/models/complaint.rb +289 -0
  12. data/lib/mailslurp_client/models/create_webhook_options.rb +3 -4
  13. data/lib/mailslurp_client/models/delivery_status_dto.rb +345 -0
  14. data/lib/mailslurp_client/models/email.rb +11 -1
  15. data/lib/mailslurp_client/models/email_preview.rb +11 -1
  16. data/lib/mailslurp_client/models/email_projection.rb +31 -22
  17. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  18. data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
  19. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  20. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  21. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  22. data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
  23. data/lib/mailslurp_client/models/page_complaint.rb +308 -0
  24. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  25. data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
  26. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  27. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  28. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  29. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  30. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  31. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  32. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  33. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  34. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  35. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  36. data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  38. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
  40. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  41. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  42. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  43. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  44. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  45. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  46. data/lib/mailslurp_client/models/sent_email_dto.rb +62 -1
  47. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/sort.rb +13 -13
  49. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  50. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
  51. data/lib/mailslurp_client/version.rb +1 -1
  52. data/lib/mailslurp_client.rb +4 -0
  53. metadata +9 -5
@@ -0,0 +1,345 @@
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
+ class DeliveryStatusDto
17
+ attr_accessor :id
18
+
19
+ attr_accessor :user_id
20
+
21
+ attr_accessor :sent_id
22
+
23
+ attr_accessor :remote_mta_ip
24
+
25
+ attr_accessor :inbox_id
26
+
27
+ attr_accessor :reporting_mta
28
+
29
+ attr_accessor :recipients
30
+
31
+ attr_accessor :smtp_response
32
+
33
+ attr_accessor :smtp_status_code
34
+
35
+ attr_accessor :processing_time_millis
36
+
37
+ attr_accessor :received
38
+
39
+ attr_accessor :subject
40
+
41
+ attr_accessor :created_at
42
+
43
+ attr_accessor :updated_at
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'id' => :'id',
49
+ :'user_id' => :'userId',
50
+ :'sent_id' => :'sentId',
51
+ :'remote_mta_ip' => :'remoteMtaIp',
52
+ :'inbox_id' => :'inboxId',
53
+ :'reporting_mta' => :'reportingMta',
54
+ :'recipients' => :'recipients',
55
+ :'smtp_response' => :'smtpResponse',
56
+ :'smtp_status_code' => :'smtpStatusCode',
57
+ :'processing_time_millis' => :'processingTimeMillis',
58
+ :'received' => :'received',
59
+ :'subject' => :'subject',
60
+ :'created_at' => :'createdAt',
61
+ :'updated_at' => :'updatedAt'
62
+ }
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.openapi_types
67
+ {
68
+ :'id' => :'String',
69
+ :'user_id' => :'String',
70
+ :'sent_id' => :'String',
71
+ :'remote_mta_ip' => :'String',
72
+ :'inbox_id' => :'String',
73
+ :'reporting_mta' => :'String',
74
+ :'recipients' => :'Array<String>',
75
+ :'smtp_response' => :'String',
76
+ :'smtp_status_code' => :'Integer',
77
+ :'processing_time_millis' => :'Integer',
78
+ :'received' => :'DateTime',
79
+ :'subject' => :'String',
80
+ :'created_at' => :'DateTime',
81
+ :'updated_at' => :'DateTime'
82
+ }
83
+ end
84
+
85
+ # List of attributes with nullable: true
86
+ def self.openapi_nullable
87
+ Set.new([
88
+ ])
89
+ end
90
+
91
+ # Initializes the object
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ def initialize(attributes = {})
94
+ if (!attributes.is_a?(Hash))
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::DeliveryStatusDto` initialize method"
96
+ end
97
+
98
+ # check to see if the attribute exists and convert string to symbol for hash key
99
+ attributes = attributes.each_with_object({}) { |(k, v), h|
100
+ if (!self.class.attribute_map.key?(k.to_sym))
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::DeliveryStatusDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
102
+ end
103
+ h[k.to_sym] = v
104
+ }
105
+
106
+ if attributes.key?(:'id')
107
+ self.id = attributes[:'id']
108
+ end
109
+
110
+ if attributes.key?(:'user_id')
111
+ self.user_id = attributes[:'user_id']
112
+ end
113
+
114
+ if attributes.key?(:'sent_id')
115
+ self.sent_id = attributes[:'sent_id']
116
+ end
117
+
118
+ if attributes.key?(:'remote_mta_ip')
119
+ self.remote_mta_ip = attributes[:'remote_mta_ip']
120
+ end
121
+
122
+ if attributes.key?(:'inbox_id')
123
+ self.inbox_id = attributes[:'inbox_id']
124
+ end
125
+
126
+ if attributes.key?(:'reporting_mta')
127
+ self.reporting_mta = attributes[:'reporting_mta']
128
+ end
129
+
130
+ if attributes.key?(:'recipients')
131
+ if (value = attributes[:'recipients']).is_a?(Array)
132
+ self.recipients = value
133
+ end
134
+ end
135
+
136
+ if attributes.key?(:'smtp_response')
137
+ self.smtp_response = attributes[:'smtp_response']
138
+ end
139
+
140
+ if attributes.key?(:'smtp_status_code')
141
+ self.smtp_status_code = attributes[:'smtp_status_code']
142
+ end
143
+
144
+ if attributes.key?(:'processing_time_millis')
145
+ self.processing_time_millis = attributes[:'processing_time_millis']
146
+ end
147
+
148
+ if attributes.key?(:'received')
149
+ self.received = attributes[:'received']
150
+ end
151
+
152
+ if attributes.key?(:'subject')
153
+ self.subject = attributes[:'subject']
154
+ end
155
+
156
+ if attributes.key?(:'created_at')
157
+ self.created_at = attributes[:'created_at']
158
+ end
159
+
160
+ if attributes.key?(:'updated_at')
161
+ self.updated_at = attributes[:'updated_at']
162
+ end
163
+ end
164
+
165
+ # Show invalid properties with the reasons. Usually used together with valid?
166
+ # @return Array for valid properties with the reasons
167
+ def list_invalid_properties
168
+ invalid_properties = Array.new
169
+ if @id.nil?
170
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
171
+ end
172
+
173
+ if @user_id.nil?
174
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
175
+ end
176
+
177
+ if @created_at.nil?
178
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
179
+ end
180
+
181
+ if @updated_at.nil?
182
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
183
+ end
184
+
185
+ invalid_properties
186
+ end
187
+
188
+ # Check to see if the all the properties in the model are valid
189
+ # @return true if the model is valid
190
+ def valid?
191
+ return false if @id.nil?
192
+ return false if @user_id.nil?
193
+ return false if @created_at.nil?
194
+ return false if @updated_at.nil?
195
+ true
196
+ end
197
+
198
+ # Checks equality by comparing each attribute.
199
+ # @param [Object] Object to be compared
200
+ def ==(o)
201
+ return true if self.equal?(o)
202
+ self.class == o.class &&
203
+ id == o.id &&
204
+ user_id == o.user_id &&
205
+ sent_id == o.sent_id &&
206
+ remote_mta_ip == o.remote_mta_ip &&
207
+ inbox_id == o.inbox_id &&
208
+ reporting_mta == o.reporting_mta &&
209
+ recipients == o.recipients &&
210
+ smtp_response == o.smtp_response &&
211
+ smtp_status_code == o.smtp_status_code &&
212
+ processing_time_millis == o.processing_time_millis &&
213
+ received == o.received &&
214
+ subject == o.subject &&
215
+ created_at == o.created_at &&
216
+ updated_at == o.updated_at
217
+ end
218
+
219
+ # @see the `==` method
220
+ # @param [Object] Object to be compared
221
+ def eql?(o)
222
+ self == o
223
+ end
224
+
225
+ # Calculates hash code according to all attributes.
226
+ # @return [Integer] Hash code
227
+ def hash
228
+ [id, user_id, sent_id, remote_mta_ip, inbox_id, reporting_mta, recipients, smtp_response, smtp_status_code, processing_time_millis, received, subject, created_at, updated_at].hash
229
+ end
230
+
231
+ # Builds the object from hash
232
+ # @param [Hash] attributes Model attributes in the form of hash
233
+ # @return [Object] Returns the model itself
234
+ def self.build_from_hash(attributes)
235
+ new.build_from_hash(attributes)
236
+ end
237
+
238
+ # Builds the object from hash
239
+ # @param [Hash] attributes Model attributes in the form of hash
240
+ # @return [Object] Returns the model itself
241
+ def build_from_hash(attributes)
242
+ return nil unless attributes.is_a?(Hash)
243
+ self.class.openapi_types.each_pair do |key, type|
244
+ if type =~ /\AArray<(.*)>/i
245
+ # check to ensure the input is an array given that the attribute
246
+ # is documented as an array but the input is not
247
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
248
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
249
+ end
250
+ elsif !attributes[self.class.attribute_map[key]].nil?
251
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
252
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
253
+ end
254
+
255
+ self
256
+ end
257
+
258
+ # Deserializes the data based on type
259
+ # @param string type Data type
260
+ # @param string value Value to be deserialized
261
+ # @return [Object] Deserialized data
262
+ def _deserialize(type, value)
263
+ case type.to_sym
264
+ when :DateTime
265
+ DateTime.parse(value)
266
+ when :Date
267
+ Date.parse(value)
268
+ when :String
269
+ value.to_s
270
+ when :Integer
271
+ value.to_i
272
+ when :Float
273
+ value.to_f
274
+ when :Boolean
275
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
276
+ true
277
+ else
278
+ false
279
+ end
280
+ when :Object
281
+ # generic object (usually a Hash), return directly
282
+ value
283
+ when /\AArray<(?<inner_type>.+)>\z/
284
+ inner_type = Regexp.last_match[:inner_type]
285
+ value.map { |v| _deserialize(inner_type, v) }
286
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
287
+ k_type = Regexp.last_match[:k_type]
288
+ v_type = Regexp.last_match[:v_type]
289
+ {}.tap do |hash|
290
+ value.each do |k, v|
291
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
292
+ end
293
+ end
294
+ else # model
295
+ MailSlurpClient.const_get(type).build_from_hash(value)
296
+ end
297
+ end
298
+
299
+ # Returns the string representation of the object
300
+ # @return [String] String presentation of the object
301
+ def to_s
302
+ to_hash.to_s
303
+ end
304
+
305
+ # to_body is an alias to to_hash (backward compatibility)
306
+ # @return [Hash] Returns the object in the form of hash
307
+ def to_body
308
+ to_hash
309
+ end
310
+
311
+ # Returns the object in the form of hash
312
+ # @return [Hash] Returns the object in the form of hash
313
+ def to_hash
314
+ hash = {}
315
+ self.class.attribute_map.each_pair do |attr, param|
316
+ value = self.send(attr)
317
+ if value.nil?
318
+ is_nullable = self.class.openapi_nullable.include?(attr)
319
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
320
+ end
321
+
322
+ hash[param] = _to_hash(value)
323
+ end
324
+ hash
325
+ end
326
+
327
+ # Outputs non-array value in the form of hash
328
+ # For object, use to_hash. Otherwise, just return the value
329
+ # @param [Object] value Any valid value
330
+ # @return [Hash] Returns the value in the form of hash
331
+ def _to_hash(value)
332
+ if value.is_a?(Array)
333
+ value.compact.map { |v| _to_hash(v) }
334
+ elsif value.is_a?(Hash)
335
+ {}.tap do |hash|
336
+ value.each { |k, v| hash[k] = _to_hash(v) }
337
+ end
338
+ elsif value.respond_to? :to_hash
339
+ value.to_hash
340
+ else
341
+ value
342
+ end
343
+ end
344
+ end
345
+ end
@@ -24,6 +24,9 @@ module MailSlurpClient
24
24
  # ID of the inbox that received the email
25
25
  attr_accessor :inbox_id
26
26
 
27
+ # ID of the domain that received the email
28
+ attr_accessor :domain_id
29
+
27
30
  # List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
28
31
  attr_accessor :to
29
32
 
@@ -89,6 +92,7 @@ module MailSlurpClient
89
92
  :'id' => :'id',
90
93
  :'user_id' => :'userId',
91
94
  :'inbox_id' => :'inboxId',
95
+ :'domain_id' => :'domainId',
92
96
  :'to' => :'to',
93
97
  :'from' => :'from',
94
98
  :'sender' => :'sender',
@@ -119,6 +123,7 @@ module MailSlurpClient
119
123
  :'id' => :'String',
120
124
  :'user_id' => :'String',
121
125
  :'inbox_id' => :'String',
126
+ :'domain_id' => :'String',
122
127
  :'to' => :'Array<String>',
123
128
  :'from' => :'String',
124
129
  :'sender' => :'Sender',
@@ -191,6 +196,10 @@ module MailSlurpClient
191
196
  self.inbox_id = attributes[:'inbox_id']
192
197
  end
193
198
 
199
+ if attributes.key?(:'domain_id')
200
+ self.domain_id = attributes[:'domain_id']
201
+ end
202
+
194
203
  if attributes.key?(:'to')
195
204
  if (value = attributes[:'to']).is_a?(Array)
196
205
  self.to = value
@@ -347,6 +356,7 @@ module MailSlurpClient
347
356
  id == o.id &&
348
357
  user_id == o.user_id &&
349
358
  inbox_id == o.inbox_id &&
359
+ domain_id == o.domain_id &&
350
360
  to == o.to &&
351
361
  from == o.from &&
352
362
  sender == o.sender &&
@@ -379,7 +389,7 @@ module MailSlurpClient
379
389
  # Calculates hash code according to all attributes.
380
390
  # @return [Integer] Hash code
381
391
  def hash
382
- [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
392
+ [id, user_id, inbox_id, domain_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
383
393
  end
384
394
 
385
395
  # Builds the object from hash
@@ -18,6 +18,9 @@ module MailSlurpClient
18
18
  # ID of the email entity
19
19
  attr_accessor :id
20
20
 
21
+ # ID of the domain that received the email
22
+ attr_accessor :domain_id
23
+
21
24
  # The subject line of the email message as specified by SMTP subject header
22
25
  attr_accessor :subject
23
26
 
@@ -46,6 +49,7 @@ module MailSlurpClient
46
49
  def self.attribute_map
47
50
  {
48
51
  :'id' => :'id',
52
+ :'domain_id' => :'domainId',
49
53
  :'subject' => :'subject',
50
54
  :'to' => :'to',
51
55
  :'from' => :'from',
@@ -61,6 +65,7 @@ module MailSlurpClient
61
65
  def self.openapi_types
62
66
  {
63
67
  :'id' => :'String',
68
+ :'domain_id' => :'String',
64
69
  :'subject' => :'String',
65
70
  :'to' => :'Array<String>',
66
71
  :'from' => :'String',
@@ -103,6 +108,10 @@ module MailSlurpClient
103
108
  self.id = attributes[:'id']
104
109
  end
105
110
 
111
+ if attributes.key?(:'domain_id')
112
+ self.domain_id = attributes[:'domain_id']
113
+ end
114
+
106
115
  if attributes.key?(:'subject')
107
116
  self.subject = attributes[:'subject']
108
117
  end
@@ -178,6 +187,7 @@ module MailSlurpClient
178
187
  return true if self.equal?(o)
179
188
  self.class == o.class &&
180
189
  id == o.id &&
190
+ domain_id == o.domain_id &&
181
191
  subject == o.subject &&
182
192
  to == o.to &&
183
193
  from == o.from &&
@@ -197,7 +207,7 @@ module MailSlurpClient
197
207
  # Calculates hash code according to all attributes.
198
208
  # @return [Integer] Hash code
199
209
  def hash
200
- [id, subject, to, from, bcc, cc, created_at, read, attachments].hash
210
+ [id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments].hash
201
211
  end
202
212
 
203
213
  # Builds the object from hash
@@ -25,6 +25,10 @@ module MailSlurpClient
25
25
 
26
26
  attr_accessor :attachments
27
27
 
28
+ attr_accessor :body_md5_hash
29
+
30
+ attr_accessor :body_excerpt
31
+
28
32
  attr_accessor :to
29
33
 
30
34
  attr_accessor :created_at
@@ -33,14 +37,12 @@ module MailSlurpClient
33
37
 
34
38
  attr_accessor :cc
35
39
 
40
+ attr_accessor :domain_id
41
+
36
42
  attr_accessor :team_access
37
43
 
38
44
  attr_accessor :read
39
45
 
40
- attr_accessor :body_md5_hash
41
-
42
- attr_accessor :body_excerpt
43
-
44
46
  # Attribute mapping from ruby-style variable name to JSON key.
45
47
  def self.attribute_map
46
48
  {
@@ -49,14 +51,15 @@ module MailSlurpClient
49
51
  :'subject' => :'subject',
50
52
  :'inbox_id' => :'inboxId',
51
53
  :'attachments' => :'attachments',
54
+ :'body_md5_hash' => :'bodyMD5Hash',
55
+ :'body_excerpt' => :'bodyExcerpt',
52
56
  :'to' => :'to',
53
57
  :'created_at' => :'createdAt',
54
58
  :'bcc' => :'bcc',
55
59
  :'cc' => :'cc',
60
+ :'domain_id' => :'domainId',
56
61
  :'team_access' => :'teamAccess',
57
- :'read' => :'read',
58
- :'body_md5_hash' => :'bodyMD5Hash',
59
- :'body_excerpt' => :'bodyExcerpt'
62
+ :'read' => :'read'
60
63
  }
61
64
  end
62
65
 
@@ -68,14 +71,15 @@ module MailSlurpClient
68
71
  :'subject' => :'String',
69
72
  :'inbox_id' => :'String',
70
73
  :'attachments' => :'Array<String>',
74
+ :'body_md5_hash' => :'String',
75
+ :'body_excerpt' => :'String',
71
76
  :'to' => :'Array<String>',
72
77
  :'created_at' => :'DateTime',
73
78
  :'bcc' => :'Array<String>',
74
79
  :'cc' => :'Array<String>',
80
+ :'domain_id' => :'String',
75
81
  :'team_access' => :'Boolean',
76
- :'read' => :'Boolean',
77
- :'body_md5_hash' => :'String',
78
- :'body_excerpt' => :'String'
82
+ :'read' => :'Boolean'
79
83
  }
80
84
  end
81
85
 
@@ -122,6 +126,14 @@ module MailSlurpClient
122
126
  end
123
127
  end
124
128
 
129
+ if attributes.key?(:'body_md5_hash')
130
+ self.body_md5_hash = attributes[:'body_md5_hash']
131
+ end
132
+
133
+ if attributes.key?(:'body_excerpt')
134
+ self.body_excerpt = attributes[:'body_excerpt']
135
+ end
136
+
125
137
  if attributes.key?(:'to')
126
138
  if (value = attributes[:'to']).is_a?(Array)
127
139
  self.to = value
@@ -144,6 +156,10 @@ module MailSlurpClient
144
156
  end
145
157
  end
146
158
 
159
+ if attributes.key?(:'domain_id')
160
+ self.domain_id = attributes[:'domain_id']
161
+ end
162
+
147
163
  if attributes.key?(:'team_access')
148
164
  self.team_access = attributes[:'team_access']
149
165
  end
@@ -151,14 +167,6 @@ module MailSlurpClient
151
167
  if attributes.key?(:'read')
152
168
  self.read = attributes[:'read']
153
169
  end
154
-
155
- if attributes.key?(:'body_md5_hash')
156
- self.body_md5_hash = attributes[:'body_md5_hash']
157
- end
158
-
159
- if attributes.key?(:'body_excerpt')
160
- self.body_excerpt = attributes[:'body_excerpt']
161
- end
162
170
  end
163
171
 
164
172
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -214,14 +222,15 @@ module MailSlurpClient
214
222
  subject == o.subject &&
215
223
  inbox_id == o.inbox_id &&
216
224
  attachments == o.attachments &&
225
+ body_md5_hash == o.body_md5_hash &&
226
+ body_excerpt == o.body_excerpt &&
217
227
  to == o.to &&
218
228
  created_at == o.created_at &&
219
229
  bcc == o.bcc &&
220
230
  cc == o.cc &&
231
+ domain_id == o.domain_id &&
221
232
  team_access == o.team_access &&
222
- read == o.read &&
223
- body_md5_hash == o.body_md5_hash &&
224
- body_excerpt == o.body_excerpt
233
+ read == o.read
225
234
  end
226
235
 
227
236
  # @see the `==` method
@@ -233,7 +242,7 @@ module MailSlurpClient
233
242
  # Calculates hash code according to all attributes.
234
243
  # @return [Integer] Hash code
235
244
  def hash
236
- [id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
245
+ [id, from, subject, inbox_id, attachments, body_md5_hash, body_excerpt, to, created_at, bcc, cc, domain_id, team_access, read].hash
237
246
  end
238
247
 
239
248
  # Builds the object from hash
@@ -18,6 +18,9 @@ module MailSlurpClient
18
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.
19
19
  attr_accessor :id
20
20
 
21
+ # ID of custom domain used by the inbox if any
22
+ attr_accessor :domain_id
23
+
21
24
  # The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
22
25
  attr_accessor :email_address
23
26
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'domain_id' => :'domainId',
74
78
  :'email_address' => :'emailAddress',
75
79
  :'created_at' => :'createdAt',
76
80
  :'favourite' => :'favourite',
@@ -87,6 +91,7 @@ module MailSlurpClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'id' => :'String',
94
+ :'domain_id' => :'String',
90
95
  :'email_address' => :'String',
91
96
  :'created_at' => :'DateTime',
92
97
  :'favourite' => :'Boolean',
@@ -129,6 +134,10 @@ module MailSlurpClient
129
134
  self.id = attributes[:'id']
130
135
  end
131
136
 
137
+ if attributes.key?(:'domain_id')
138
+ self.domain_id = attributes[:'domain_id']
139
+ end
140
+
132
141
  if attributes.key?(:'email_address')
133
142
  self.email_address = attributes[:'email_address']
134
143
  end
@@ -224,6 +233,7 @@ module MailSlurpClient
224
233
  return true if self.equal?(o)
225
234
  self.class == o.class &&
226
235
  id == o.id &&
236
+ domain_id == o.domain_id &&
227
237
  email_address == o.email_address &&
228
238
  created_at == o.created_at &&
229
239
  favourite == o.favourite &&
@@ -244,7 +254,7 @@ module MailSlurpClient
244
254
  # Calculates hash code according to all attributes.
245
255
  # @return [Integer] Hash code
246
256
  def hash
247
- [id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
257
+ [id, domain_id, email_address, created_at, favourite, name, tags, team_access, inbox_type, virtual_inbox, expires_at].hash
248
258
  end
249
259
 
250
260
  # Builds the object from hash
@@ -18,6 +18,9 @@ module MailSlurpClient
18
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.
19
19
  attr_accessor :id
20
20
 
21
+ # ID of custom domain used by the inbox if any
22
+ attr_accessor :domain_id
23
+
21
24
  # When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
22
25
  attr_accessor :created_at
23
26
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  def self.attribute_map
72
75
  {
73
76
  :'id' => :'id',
77
+ :'domain_id' => :'domainId',
74
78
  :'created_at' => :'createdAt',
75
79
  :'name' => :'name',
76
80
  :'email_address' => :'emailAddress',
@@ -87,6 +91,7 @@ module MailSlurpClient
87
91
  def self.openapi_types
88
92
  {
89
93
  :'id' => :'String',
94
+ :'domain_id' => :'String',
90
95
  :'created_at' => :'DateTime',
91
96
  :'name' => :'String',
92
97
  :'email_address' => :'String',
@@ -128,6 +133,10 @@ module MailSlurpClient
128
133
  self.id = attributes[:'id']
129
134
  end
130
135
 
136
+ if attributes.key?(:'domain_id')
137
+ self.domain_id = attributes[:'domain_id']
138
+ end
139
+
131
140
  if attributes.key?(:'created_at')
132
141
  self.created_at = attributes[:'created_at']
133
142
  end
@@ -228,6 +237,7 @@ module MailSlurpClient
228
237
  return true if self.equal?(o)
229
238
  self.class == o.class &&
230
239
  id == o.id &&
240
+ domain_id == o.domain_id &&
231
241
  created_at == o.created_at &&
232
242
  name == o.name &&
233
243
  email_address == o.email_address &&
@@ -248,7 +258,7 @@ module MailSlurpClient
248
258
  # Calculates hash code according to all attributes.
249
259
  # @return [Integer] Hash code
250
260
  def hash
251
- [id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
261
+ [id, domain_id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
252
262
  end
253
263
 
254
264
  # Builds the object from hash