mailslurp_client 15.16.3 → 15.16.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/domain_controller_api.rb +62 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
  8. data/lib/mailslurp_client/models/email_projection.rb +23 -23
  9. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  10. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  11. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  12. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  14. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  15. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  17. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  20. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  26. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
  27. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
  31. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  38. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +16 -16
  40. data/lib/mailslurp_client/models/webhook_projection.rb +12 -12
  41. data/lib/mailslurp_client/version.rb +1 -1
  42. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d05d2fb81208f8c3acb81cdf4f834a10e67c7c80838500736c22c10c4255232
4
- data.tar.gz: '08f52b080df2e9cb8873411f8e00b47095e97775474ea8c2d14b09d3796abf2d'
3
+ metadata.gz: 2818afe6d4f896b869934204a842292b9ba03dd8bd6dbc8a2d7011e2bc6c7bc7
4
+ data.tar.gz: d3f610bd841b0ce472bfe5dbc6eeb16e94d612075a6be1a6a4674cfd76152028
5
5
  SHA512:
6
- metadata.gz: 704525a5eb25a56e630d88280abb1c77b6de413fb51a5e68a92ad8477096fa8c91976fa7dbaa87af142b51d255c88d4206fe24176f3de655bca0c8f5bea11e1a
7
- data.tar.gz: 06ad382b4856619c5d91a1a6502f38757954ccee4552717e6005bbc95b7c9525015a9d8568a8f30edc1bfb4dfa309eede0d7a99b417b3f8a41dbbad17b3a821f
6
+ metadata.gz: 0edf5f8dd3a6e5eddd536903e55cd7bdefb32706d7ab55a1e374bc9decc9101abd32178252f22a64b9fd13e3fdc5e5fff2e9a03cfb56f2fb9c02595e2ec22e26
7
+ data.tar.gz: 76d88c34e37b6e22b0e7c607a5eba44121cd6c7336be8fdd3e04b32a0bae77f15e0cfccada3e16c75f9924e3d2f4bc27f69f1f71a7523fc2f97f463899d2ea0d
@@ -269,6 +269,68 @@ module MailSlurpClient
269
269
  return data, status_code, headers
270
270
  end
271
271
 
272
+ # Get catch all wild card inbox for domain
273
+ # Get the catch all inbox for a domain for missed emails
274
+ # @param id [String]
275
+ # @param [Hash] opts the optional parameters
276
+ # @return [InboxDto]
277
+ def get_domain_wildcard_catch_all_inbox(id, opts = {})
278
+ data, _status_code, _headers = get_domain_wildcard_catch_all_inbox_with_http_info(id, opts)
279
+ data
280
+ end
281
+
282
+ # Get catch all wild card inbox for domain
283
+ # Get the catch all inbox for a domain for missed emails
284
+ # @param id [String]
285
+ # @param [Hash] opts the optional parameters
286
+ # @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
287
+ def get_domain_wildcard_catch_all_inbox_with_http_info(id, opts = {})
288
+ if @api_client.config.debugging
289
+ @api_client.config.logger.debug 'Calling API: DomainControllerApi.get_domain_wildcard_catch_all_inbox ...'
290
+ end
291
+ # verify the required parameter 'id' is set
292
+ if @api_client.config.client_side_validation && id.nil?
293
+ fail ArgumentError, "Missing the required parameter 'id' when calling DomainControllerApi.get_domain_wildcard_catch_all_inbox"
294
+ end
295
+ # resource path
296
+ local_var_path = '/domains/{id}/wildcard'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
297
+
298
+ # query parameters
299
+ query_params = opts[:query_params] || {}
300
+
301
+ # header parameters
302
+ header_params = opts[:header_params] || {}
303
+ # HTTP header 'Accept' (if needed)
304
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
305
+
306
+ # form parameters
307
+ form_params = opts[:form_params] || {}
308
+
309
+ # http body (model)
310
+ post_body = opts[:body]
311
+
312
+ # return_type
313
+ return_type = opts[:return_type] || 'InboxDto'
314
+
315
+ # auth_names
316
+ auth_names = opts[:auth_names] || ['API_KEY']
317
+
318
+ new_options = opts.merge(
319
+ :header_params => header_params,
320
+ :query_params => query_params,
321
+ :form_params => form_params,
322
+ :body => post_body,
323
+ :auth_names => auth_names,
324
+ :return_type => return_type
325
+ )
326
+
327
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
328
+ if @api_client.config.debugging
329
+ @api_client.config.logger.debug "API called: DomainControllerApi#get_domain_wildcard_catch_all_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
330
+ end
331
+ return data, status_code, headers
332
+ end
333
+
272
334
  # Get domains
273
335
  # List all custom domains you have created
274
336
  # @param [Hash] opts the optional parameters
@@ -543,6 +543,7 @@ module MailSlurpClient
543
543
  # Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
544
544
  # @param email_address [String] Email address
545
545
  # @param [Hash] opts the optional parameters
546
+ # @option opts [Boolean] :allow_catch_all
546
547
  # @return [InboxExistsDto]
547
548
  def does_inbox_exist(email_address, opts = {})
548
549
  data, _status_code, _headers = does_inbox_exist_with_http_info(email_address, opts)
@@ -553,6 +554,7 @@ module MailSlurpClient
553
554
  # Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
554
555
  # @param email_address [String] Email address
555
556
  # @param [Hash] opts the optional parameters
557
+ # @option opts [Boolean] :allow_catch_all
556
558
  # @return [Array<(InboxExistsDto, Integer, Hash)>] InboxExistsDto data, response status code and response headers
557
559
  def does_inbox_exist_with_http_info(email_address, opts = {})
558
560
  if @api_client.config.debugging
@@ -568,6 +570,7 @@ module MailSlurpClient
568
570
  # query parameters
569
571
  query_params = opts[:query_params] || {}
570
572
  query_params[:'emailAddress'] = email_address
573
+ query_params[:'allowCatchAll'] = opts[:'allow_catch_all'] if !opts[:'allow_catch_all'].nil?
571
574
 
572
575
  # header parameters
573
576
  header_params = opts[:header_params] || {}
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
- attr_accessor :inbox_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :updated_at
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'inbox_id' => :'inboxId',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
- :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'updated_at' => :'updatedAt',
44
44
  :'use_threads' => :'useThreads'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'inbox_id' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
- :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'updated_at' => :'DateTime',
58
58
  :'use_threads' => :'Boolean'
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.email_address = attributes[:'email_address']
97
101
  end
98
102
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_id']
101
- end
102
-
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -121,6 +121,10 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
+ if @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
134
  end
131
135
 
132
- if @inbox_id.nil?
133
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
- end
135
-
136
136
  if @created_at.nil?
137
137
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
138
  end
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
+ return false if @inbox_id.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
- return false if @inbox_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,9 +163,9 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ inbox_id == o.inbox_id &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
- inbox_id == o.inbox_id &&
169
169
  created_at == o.created_at &&
170
170
  updated_at == o.updated_at &&
171
171
  use_threads == o.use_threads
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
183
+ [name, id, inbox_id, user_id, email_address, created_at, updated_at, use_threads].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -20,6 +20,9 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
+ # Content type of attachment.
24
+ attr_accessor :content_type
25
+
23
26
  attr_accessor :user_id
24
27
 
25
28
  attr_accessor :created_at
@@ -29,19 +32,16 @@ module MailSlurpClient
29
32
  # Attachment ID
30
33
  attr_accessor :attachment_id
31
34
 
32
- # Content type of attachment.
33
- attr_accessor :content_type
34
-
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
+ :'content_type' => :'contentType',
40
41
  :'user_id' => :'userId',
41
42
  :'created_at' => :'createdAt',
42
43
  :'updated_at' => :'updatedAt',
43
- :'attachment_id' => :'attachmentId',
44
- :'content_type' => :'contentType'
44
+ :'attachment_id' => :'attachmentId'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
+ :'content_type' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'created_at' => :'DateTime',
55
56
  :'updated_at' => :'DateTime',
56
- :'attachment_id' => :'String',
57
- :'content_type' => :'String'
57
+ :'attachment_id' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -63,7 +63,7 @@ module MailSlurpClient
63
63
  Set.new([
64
64
  :'name',
65
65
  :'content_length',
66
- :'content_type'
66
+ :'content_type',
67
67
  ])
68
68
  end
69
69
 
@@ -90,6 +90,10 @@ module MailSlurpClient
90
90
  self.content_length = attributes[:'content_length']
91
91
  end
92
92
 
93
+ if attributes.key?(:'content_type')
94
+ self.content_type = attributes[:'content_type']
95
+ end
96
+
93
97
  if attributes.key?(:'user_id')
94
98
  self.user_id = attributes[:'user_id']
95
99
  end
@@ -105,10 +109,6 @@ module MailSlurpClient
105
109
  if attributes.key?(:'attachment_id')
106
110
  self.attachment_id = attributes[:'attachment_id']
107
111
  end
108
-
109
- if attributes.key?(:'content_type')
110
- self.content_type = attributes[:'content_type']
111
- end
112
112
  end
113
113
 
114
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,11 +151,11 @@ module MailSlurpClient
151
151
  self.class == o.class &&
152
152
  name == o.name &&
153
153
  content_length == o.content_length &&
154
+ content_type == o.content_type &&
154
155
  user_id == o.user_id &&
155
156
  created_at == o.created_at &&
156
157
  updated_at == o.updated_at &&
157
- attachment_id == o.attachment_id &&
158
- content_type == o.content_type
158
+ attachment_id == o.attachment_id
159
159
  end
160
160
 
161
161
  # @see the `==` method
@@ -167,7 +167,7 @@ module MailSlurpClient
167
167
  # Calculates hash code according to all attributes.
168
168
  # @return [Integer] Hash code
169
169
  def hash
170
- [name, content_length, user_id, created_at, updated_at, attachment_id, content_type].hash
170
+ [name, content_length, content_type, user_id, created_at, updated_at, attachment_id].hash
171
171
  end
172
172
 
173
173
  # Builds the object from hash
@@ -17,10 +17,10 @@ module MailSlurpClient
17
17
  class BounceProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :subject
21
-
22
20
  attr_accessor :sender
23
21
 
22
+ attr_accessor :subject
23
+
24
24
  attr_accessor :created_at
25
25
 
26
26
  attr_accessor :bounce_type
@@ -31,8 +31,8 @@ module MailSlurpClient
31
31
  def self.attribute_map
32
32
  {
33
33
  :'id' => :'id',
34
- :'subject' => :'subject',
35
34
  :'sender' => :'sender',
35
+ :'subject' => :'subject',
36
36
  :'created_at' => :'createdAt',
37
37
  :'bounce_type' => :'bounceType',
38
38
  :'bounce_mta' => :'bounceMta'
@@ -43,8 +43,8 @@ module MailSlurpClient
43
43
  def self.openapi_types
44
44
  {
45
45
  :'id' => :'String',
46
- :'subject' => :'String',
47
46
  :'sender' => :'String',
47
+ :'subject' => :'String',
48
48
  :'created_at' => :'DateTime',
49
49
  :'bounce_type' => :'String',
50
50
  :'bounce_mta' => :'String'
@@ -79,14 +79,14 @@ module MailSlurpClient
79
79
  self.id = attributes[:'id']
80
80
  end
81
81
 
82
- if attributes.key?(:'subject')
83
- self.subject = attributes[:'subject']
84
- end
85
-
86
82
  if attributes.key?(:'sender')
87
83
  self.sender = attributes[:'sender']
88
84
  end
89
85
 
86
+ if attributes.key?(:'subject')
87
+ self.subject = attributes[:'subject']
88
+ end
89
+
90
90
  if attributes.key?(:'created_at')
91
91
  self.created_at = attributes[:'created_at']
92
92
  end
@@ -129,8 +129,8 @@ module MailSlurpClient
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
131
  id == o.id &&
132
- subject == o.subject &&
133
132
  sender == o.sender &&
133
+ subject == o.subject &&
134
134
  created_at == o.created_at &&
135
135
  bounce_type == o.bounce_type &&
136
136
  bounce_mta == o.bounce_mta
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Integer] Hash code
147
147
  def hash
148
- [id, subject, sender, created_at, bounce_type, bounce_mta].hash
148
+ [id, sender, subject, created_at, bounce_type, bounce_mta].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :status
21
21
 
22
- attr_accessor :sent_email_id
23
-
24
22
  attr_accessor :created_at
25
23
 
24
+ attr_accessor :sent_email_id
25
+
26
26
  attr_accessor :recipient
27
27
 
28
28
  attr_accessor :action
@@ -32,8 +32,8 @@ module MailSlurpClient
32
32
  {
33
33
  :'id' => :'id',
34
34
  :'status' => :'status',
35
- :'sent_email_id' => :'sentEmailId',
36
35
  :'created_at' => :'createdAt',
36
+ :'sent_email_id' => :'sentEmailId',
37
37
  :'recipient' => :'recipient',
38
38
  :'action' => :'action'
39
39
  }
@@ -44,8 +44,8 @@ module MailSlurpClient
44
44
  {
45
45
  :'id' => :'String',
46
46
  :'status' => :'String',
47
- :'sent_email_id' => :'String',
48
47
  :'created_at' => :'DateTime',
48
+ :'sent_email_id' => :'String',
49
49
  :'recipient' => :'String',
50
50
  :'action' => :'String'
51
51
  }
@@ -83,14 +83,14 @@ module MailSlurpClient
83
83
  self.status = attributes[:'status']
84
84
  end
85
85
 
86
- if attributes.key?(:'sent_email_id')
87
- self.sent_email_id = attributes[:'sent_email_id']
88
- end
89
-
90
86
  if attributes.key?(:'created_at')
91
87
  self.created_at = attributes[:'created_at']
92
88
  end
93
89
 
90
+ if attributes.key?(:'sent_email_id')
91
+ self.sent_email_id = attributes[:'sent_email_id']
92
+ end
93
+
94
94
  if attributes.key?(:'recipient')
95
95
  self.recipient = attributes[:'recipient']
96
96
  end
@@ -130,8 +130,8 @@ module MailSlurpClient
130
130
  self.class == o.class &&
131
131
  id == o.id &&
132
132
  status == o.status &&
133
- sent_email_id == o.sent_email_id &&
134
133
  created_at == o.created_at &&
134
+ sent_email_id == o.sent_email_id &&
135
135
  recipient == o.recipient &&
136
136
  action == o.action
137
137
  end
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Integer] Hash code
147
147
  def hash
148
- [id, status, sent_email_id, created_at, recipient, action].hash
148
+ [id, status, created_at, sent_email_id, recipient, action].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :inbox_id
25
25
 
26
- attr_accessor :attachments
27
-
28
26
  attr_accessor :created_at
29
27
 
28
+ attr_accessor :attachments
29
+
30
30
  attr_accessor :to
31
31
 
32
32
  attr_accessor :bcc
@@ -35,14 +35,14 @@ module MailSlurpClient
35
35
 
36
36
  attr_accessor :domain_id
37
37
 
38
+ attr_accessor :body_md5_hash
39
+
38
40
  attr_accessor :read
39
41
 
40
42
  attr_accessor :body_excerpt
41
43
 
42
44
  attr_accessor :team_access
43
45
 
44
- attr_accessor :body_md5_hash
45
-
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
47
47
  def self.attribute_map
48
48
  {
@@ -50,16 +50,16 @@ module MailSlurpClient
50
50
  :'from' => :'from',
51
51
  :'subject' => :'subject',
52
52
  :'inbox_id' => :'inboxId',
53
- :'attachments' => :'attachments',
54
53
  :'created_at' => :'createdAt',
54
+ :'attachments' => :'attachments',
55
55
  :'to' => :'to',
56
56
  :'bcc' => :'bcc',
57
57
  :'cc' => :'cc',
58
58
  :'domain_id' => :'domainId',
59
+ :'body_md5_hash' => :'bodyMD5Hash',
59
60
  :'read' => :'read',
60
61
  :'body_excerpt' => :'bodyExcerpt',
61
- :'team_access' => :'teamAccess',
62
- :'body_md5_hash' => :'bodyMD5Hash'
62
+ :'team_access' => :'teamAccess'
63
63
  }
64
64
  end
65
65
 
@@ -70,16 +70,16 @@ module MailSlurpClient
70
70
  :'from' => :'String',
71
71
  :'subject' => :'String',
72
72
  :'inbox_id' => :'String',
73
- :'attachments' => :'Array<String>',
74
73
  :'created_at' => :'DateTime',
74
+ :'attachments' => :'Array<String>',
75
75
  :'to' => :'Array<String>',
76
76
  :'bcc' => :'Array<String>',
77
77
  :'cc' => :'Array<String>',
78
78
  :'domain_id' => :'String',
79
+ :'body_md5_hash' => :'String',
79
80
  :'read' => :'Boolean',
80
81
  :'body_excerpt' => :'String',
81
- :'team_access' => :'Boolean',
82
- :'body_md5_hash' => :'String'
82
+ :'team_access' => :'Boolean'
83
83
  }
84
84
  end
85
85
 
@@ -92,8 +92,8 @@ module MailSlurpClient
92
92
  :'bcc',
93
93
  :'cc',
94
94
  :'domain_id',
95
+ :'body_md5_hash',
95
96
  :'body_excerpt',
96
- :'body_md5_hash'
97
97
  ])
98
98
  end
99
99
 
@@ -128,16 +128,16 @@ module MailSlurpClient
128
128
  self.inbox_id = attributes[:'inbox_id']
129
129
  end
130
130
 
131
+ if attributes.key?(:'created_at')
132
+ self.created_at = attributes[:'created_at']
133
+ end
134
+
131
135
  if attributes.key?(:'attachments')
132
136
  if (value = attributes[:'attachments']).is_a?(Array)
133
137
  self.attachments = value
134
138
  end
135
139
  end
136
140
 
137
- if attributes.key?(:'created_at')
138
- self.created_at = attributes[:'created_at']
139
- end
140
-
141
141
  if attributes.key?(:'to')
142
142
  if (value = attributes[:'to']).is_a?(Array)
143
143
  self.to = value
@@ -160,6 +160,10 @@ module MailSlurpClient
160
160
  self.domain_id = attributes[:'domain_id']
161
161
  end
162
162
 
163
+ if attributes.key?(:'body_md5_hash')
164
+ self.body_md5_hash = attributes[:'body_md5_hash']
165
+ end
166
+
163
167
  if attributes.key?(:'read')
164
168
  self.read = attributes[:'read']
165
169
  end
@@ -171,10 +175,6 @@ module MailSlurpClient
171
175
  if attributes.key?(:'team_access')
172
176
  self.team_access = attributes[:'team_access']
173
177
  end
174
-
175
- if attributes.key?(:'body_md5_hash')
176
- self.body_md5_hash = attributes[:'body_md5_hash']
177
- end
178
178
  end
179
179
 
180
180
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -229,16 +229,16 @@ module MailSlurpClient
229
229
  from == o.from &&
230
230
  subject == o.subject &&
231
231
  inbox_id == o.inbox_id &&
232
- attachments == o.attachments &&
233
232
  created_at == o.created_at &&
233
+ attachments == o.attachments &&
234
234
  to == o.to &&
235
235
  bcc == o.bcc &&
236
236
  cc == o.cc &&
237
237
  domain_id == o.domain_id &&
238
+ body_md5_hash == o.body_md5_hash &&
238
239
  read == o.read &&
239
240
  body_excerpt == o.body_excerpt &&
240
- team_access == o.team_access &&
241
- body_md5_hash == o.body_md5_hash
241
+ team_access == o.team_access
242
242
  end
243
243
 
244
244
  # @see the `==` method
@@ -250,7 +250,7 @@ module MailSlurpClient
250
250
  # Calculates hash code according to all attributes.
251
251
  # @return [Integer] Hash code
252
252
  def hash
253
- [id, from, subject, inbox_id, attachments, created_at, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash].hash
253
+ [id, from, subject, inbox_id, created_at, attachments, to, bcc, cc, domain_id, body_md5_hash, read, body_excerpt, team_access].hash
254
254
  end
255
255
 
256
256
  # Builds the object from hash
@@ -21,12 +21,12 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :status
23
23
 
24
- attr_accessor :user_id
25
-
26
24
  attr_accessor :email_id
27
25
 
28
26
  attr_accessor :inbox_id
29
27
 
28
+ attr_accessor :user_id
29
+
30
30
  attr_accessor :created_at
31
31
 
32
32
  attr_accessor :forwarder_id
@@ -59,9 +59,9 @@ module MailSlurpClient
59
59
  :'message' => :'message',
60
60
  :'id' => :'id',
61
61
  :'status' => :'status',
62
- :'user_id' => :'userId',
63
62
  :'email_id' => :'emailId',
64
63
  :'inbox_id' => :'inboxId',
64
+ :'user_id' => :'userId',
65
65
  :'created_at' => :'createdAt',
66
66
  :'forwarder_id' => :'forwarderId'
67
67
  }
@@ -73,9 +73,9 @@ module MailSlurpClient
73
73
  :'message' => :'String',
74
74
  :'id' => :'String',
75
75
  :'status' => :'String',
76
- :'user_id' => :'String',
77
76
  :'email_id' => :'String',
78
77
  :'inbox_id' => :'String',
78
+ :'user_id' => :'String',
79
79
  :'created_at' => :'DateTime',
80
80
  :'forwarder_id' => :'String'
81
81
  }
@@ -87,9 +87,9 @@ module MailSlurpClient
87
87
  :'message',
88
88
  :'id',
89
89
  :'status',
90
- :'user_id',
91
90
  :'email_id',
92
91
  :'inbox_id',
92
+ :'user_id',
93
93
  :'forwarder_id'
94
94
  ])
95
95
  end
@@ -121,10 +121,6 @@ module MailSlurpClient
121
121
  self.status = attributes[:'status']
122
122
  end
123
123
 
124
- if attributes.key?(:'user_id')
125
- self.user_id = attributes[:'user_id']
126
- end
127
-
128
124
  if attributes.key?(:'email_id')
129
125
  self.email_id = attributes[:'email_id']
130
126
  end
@@ -133,6 +129,10 @@ module MailSlurpClient
133
129
  self.inbox_id = attributes[:'inbox_id']
134
130
  end
135
131
 
132
+ if attributes.key?(:'user_id')
133
+ self.user_id = attributes[:'user_id']
134
+ end
135
+
136
136
  if attributes.key?(:'created_at')
137
137
  self.created_at = attributes[:'created_at']
138
138
  end
@@ -180,9 +180,9 @@ module MailSlurpClient
180
180
  message == o.message &&
181
181
  id == o.id &&
182
182
  status == o.status &&
183
- user_id == o.user_id &&
184
183
  email_id == o.email_id &&
185
184
  inbox_id == o.inbox_id &&
185
+ user_id == o.user_id &&
186
186
  created_at == o.created_at &&
187
187
  forwarder_id == o.forwarder_id
188
188
  end
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [message, id, status, user_id, email_id, inbox_id, created_at, forwarder_id].hash
199
+ [message, id, status, email_id, inbox_id, user_id, created_at, forwarder_id].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash